목록공부 (85)
hara
https://www.acmicpc.net/problem/6603 import java.util.ArrayList; import java.util.Scanner; public class a6603 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(true) { int k = sc.nextInt(); if(k == 0) break; int[] s = new int[k]; for(int i=0; i
https://www.acmicpc.net/problem/10971 import java.util.Scanner; public class a10971 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int[][] money = new int[num][num]; int[] arr = new int[num]; for(int i=0; i= arr[i]) { i--; } if(i = i && arr[j]
https://www.acmicpc.net/problem/10819 import java.util.Arrays; import java.util.Scanner; public class a10819 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int[] arr = new int[num]; for(int i=0; i= arr[i]) { i--; } if(i = i && arr[j]
https://www.acmicpc.net/problem/9019 import java.util.LinkedList; import java.util.Queue; import java.util.Scanner; public class a9019 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); for(int i=0; i0; p--) { System.out.print(s.charAt(p-1)); } System.out.println(); } } }
https://www.acmicpc.net/problem/1722 import java.util.Scanner; public class a1722_2 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int check = sc.nextInt(); long[] f = new long[num+1]; boolean[] c = new boolean[num+1]; f[0] = 1; for(int i=1; i
https://www.acmicpc.net/problem/1963 import java.util.LinkedList; import java.util.Queue; import java.util.Scanner; public class a1963 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); boolean[] check = new boolean[10001]; for(int i=2; i