목록공부/알고리즘 (52)
hara
https://www.acmicpc.net/problem/11057 import java.util.Scanner; public class a11057 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); long[][] arr = new long[num+1][10]; for(int i=0; i
https://www.acmicpc.net/problem/10844 import java.util.Scanner; public class a10844 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); long[][] arr = new long[num+1][10]; for(int i=1; i
https://www.acmicpc.net/problem/2193 import java.util.Scanner; public class a2193 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); long[] arr = new long[num+1]; arr[1] = 1; if(num == 1) { System.out.println(arr[num]); }else { for(int i=2; i
https://www.acmicpc.net/problem/11727 import java.util.Scanner; public class a11727 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int[] arr = new int[num+1]; arr[0] = arr[1] = 1; if(num == 1) { System.out.println(arr[num]); }else { for(int i=2; i
https://www.acmicpc.net/problem/11052 import java.util.Scanner; public class a11052 { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int[] p = new int[num+1]; for(int i=1; i
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