1단계 : 2798번 / 블랙잭 import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.StringTokenizer; public class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWri..
백준/단계별로 풀어보기
1단계 : 10872번 / 팩토리얼 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main{ public static void main(String args[]) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); int pack = 1; for (int i=1; i= r) return 1; else if(s.charAt(l) != s.charAt(r)) return 0; el..
8단계 : 11650번 / 좌표 정렬하기 import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.Arrays; import java.util.StringTokenizer; public class Main{ public static void main(String args[]) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Buffe..
1단계 : 2750번 / 수 정렬하기 import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int least; int[] arr = new int[N]; for(int i=0; i
1단계 : 2738번 / 행렬 덧셈 import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); // 행렬 크기 N * M int N = sc.nextInt(); int M = sc.nextInt(); // 행렬 A int[][] A = new int[N][M]; for (int i=0; i