import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; class Dot{ int x; int y; public Dot(int x, int y) { this.x = x; this.y = y; } } public class Main { static int map[][]; // 2차원 미로 배열 static boolean visit[][]; // 2차원 방문여부 배열 static int n, m, ca; static int[] dx = {-1,0,1,0}; static int[] dy = {0,1,0,-1}; public static void bfs(int x, ..
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; class Dot{ int x, y; public Dot(int x, int y) { this.x = x; this.y = y; } } public class Main { static int map[][]; // 2차원 미로 배열 static int n,m; static int[] dx = {-1,0,1,0}; static int[] dy = {0,1,0,-1}; public static int bfs() { //BFS메소드 Queue q = new LinkedList(); for(int i = 0; i < n; i++) { for(int j = 0; j..
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { static Integer dp[]; static int arr[]; public static void main(String[] args) throws Exception, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); dp = new Integer[N + 1]; arr = new int[N + 1]; for(int i = 1..
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { static Integer dp[]; public static void main(String[] args) throws Exception, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); dp = new Integer[N + 1]; System.out.println(find(N)); } static int find(int N)..