목록완전탐색 (4)
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(); } } }