java 348

[백준] 2210번. 숫자판 점프(JAVA)

문제https://www.acmicpc.net/problem/2210풀이(11분)import java.util.*;import java.io.*;public class Main { static String grid[][] = new String[5][5]; // 숫자 격자판 (5x5 크기) static int dx[] = {0, 0, 1, -1}; // 상하좌우 이동을 위한 배열 (x 좌표 변화) static int dy[] = {1, -1, 0, 0}; // 상하좌우 이동을 위한 배열 (y 좌표 변화) static HashSet uniqueNumbers = new HashSet(); // 중복을 방지하기 위한 HashSet public static void main(Strin..