node_ids
listlengths
4
1.4k
edge_index
listlengths
1
2.22k
text
listlengths
4
1.4k
source
stringlengths
14
427k
[ 7, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 20, 13, 4, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 4, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 149, 5 ], [ 149, 6 ], [ 6, 7 ], [ 149, 8 ], [ 8, 9 ], [ 149, 10 ], [ 10, 11 ], [ 149, 12 ], [ 12, 13 ], [ 149, ...
[ "import java.util.Scanner;\n \npublic class Main {\n\tstatic int[]z;\n public static int a,b,n,w,t;\n\tprivate static Scanner sc;\n public static void main(String[] args) {\n sc = new Scanner(System.in);\n w=sc.nextInt();\n n=sc.nextInt();\n z = new int[w];\n mmm();\n ...
import java.util.Scanner; public class Main { static int[]z; public static int a,b,n,w,t; private static Scanner sc; public static void main(String[] args) { sc = new Scanner(System.in); w=sc.nextInt(); n=sc.nextInt(); z = new int[w]; mmm(); for(int i=0;i<w;i+...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 2, 13, 17, 1...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 151, 8 ], [ 151, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.util.*;\nimport java.util.regex.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int w = sc.nextInt(),n = sc.nextInt(),a,b,z;\n int[] amida = new int[w];\n for(int i=0;i<w;i++)amida[i]=i+1;\n for(int i=0;i<n;i++){\n String ...
import java.util.*; import java.util.regex.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int w = sc.nextInt(),n = sc.nextInt(),a,b,z; int[] amida = new int[w]; for(int i=0;i<w;i++)amida[i]=i+1; for(int i=0;i<n;i++){ String s = sc.next(); ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 41, 13, 17, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17, 11, 1, 41, 13, 17, 2,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 138, 5 ], [ 138, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int box[] = new int[30];\n int x=0; \n int w = sc.nextInt();\n int n = sc.nextInt();\n \n for(int i=0;i<w;i++){\n box...
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int box[] = new int[30]; int x=0; int w = sc.nextInt(); int n = sc.nextInt(); for(int i=0;i<w;i++){ box[i] = i + 1; ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 38, 30, 41, 13, 20, 41, 13, 42, 2, 0, 13, 4, 18, 13, 17, 30, 14, 13, 30, 0, 13, 20, 4, 18, 13, 13, 11, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 175, 8 ], [ 175, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tboolean first=true;\n String str=\"\";\n int i=0,length=0;\n int[] amida = null...
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main{ public static void main(String[] args) throws Exception { // TODO ????????????????????????????????????????????? boolean first=true; String str=""; int i=0,length=0; int[] amida = null; try (BufferedRead...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 17, 30, 41, 13, 20, 41, 13, 20, 4, 18, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 41, 13, 41, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], ...
[ "import java.io.*;\nimport java.util.*;\n\nclass Main{\n public static void main(String[] args){\n\ttry{\n\t BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t int[] x = new int[Integer.valueOf(sc.readLine())];\n\t int p, a, b, t = Integer.valueOf(sc.readLine());\n\t String...
import java.io.*; import java.util.*; class Main{ public static void main(String[] args){ try{ BufferedReader sc = new BufferedReader(new InputStreamReader(System.in)); int[] x = new int[Integer.valueOf(sc.readLine())]; int p, a, b, t = Integer.valueOf(sc.readLine()); String st, u, v; for...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 134, 5 ], [ 134, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint w = sc.nextInt();\n\t\tint n = sc.nextInt();\n\t\tint[] value = new int[w];\n\t\tfor(int i = 0; i< w; i++) {\n\t\t\tvalue[i] = i + 1;\n\t\t}\n\n\t\tfor(int i=0; i<n; i++) ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] value = new int[w]; for(int i = 0; i< w; i++) { value[i] = i + 1; } for(int i=0; i<n; i++) { String str= sc.next(); Stri...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 2, 13, 17, 42,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 7, 12 ], [ 12, 13 ], [ 12, 14 ], [...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\nclass Main {\n\n static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n public static void main(String[] args) throws Exception{\n\n int w = Integer.parseInt(reader.readLine());\n ...
import java.io.BufferedReader; import java.io.InputStreamReader; class Main { static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); public static void main(String[] args) throws Exception{ int w = Integer.parseInt(reader.readLine()); int n = Int...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 177, 11 ], [ 177, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tstr = br.readLine();\n\t\tint w = ...
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)); String str; str = br.readLine(); int w = Integer.parseInt(str); ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 17, 41, 13, 20, 2, 13, 17, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 13, 11, 1, 41, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 132, 5 ], [ 132, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n \n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint w = s.nextInt();\n\t\tint n = s.nextInt();\n\t\tString[] in = new String[2];\n\t\tint[] out = new int[w+1];\n\t\tint temp;\n\t\tfor(int i=0 ; i<=w ; i++)\n\t\t\tout[i...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int w = s.nextInt(); int n = s.nextInt(); String[] in = new String[2]; int[] out = new int[w+1]; int temp; for(int i=0 ; i<=w ; i++) out[i] = i; for(int i=0 ; i<n ; i++){ ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 17, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17, 41, 13, 20...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 173, 5 ], [ 173, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tscanner.useDelimiter(\"[\\\\n,]\");\n\t\tint l_num = scanner.nextInt();\n\t\tint w_num = scanner.nextInt();\n\t\tint[] ans = new int[l_num];\n\t\tint tmp;\n\t\tfor(int i=...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); scanner.useDelimiter("[\\n,]"); int l_num = scanner.nextInt(); int w_num = scanner.nextInt(); int[] ans = new int[l_num]; int tmp; for(int i=0; i<l_num; i++){ ans[i] = i+1;...
[ 7, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 0, 13, 20, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17, 41, 13, 20, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 225, 5 ], [ 225, 6 ], [ 6, 7 ], [ 225, 8 ], [ 8, 9 ], [ 8, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ...
[ "import java.util.Scanner;\n//0011 DrawingLots}\n\npublic class Main {\n\tprivate static Scanner sc;\n\n\tpublic static void main(String args[]) {\n\t\tsc = new Scanner(System.in);\n\t\tint w, n;\n\n\t\t// w???n???????????????\n\t\tw = sc.nextInt();\n\t\tn = sc.nextInt();\n\n\t\t// ??´??°???????????????????????????...
import java.util.Scanner; //0011 DrawingLots} public class Main { private static Scanner sc; public static void main(String args[]) { sc = new Scanner(System.in); int w, n; // w???n??????????????? w = sc.nextInt(); n = sc.nextInt(); // ??´??°???????????????????????????????????????????????????????£????...
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17, 41, 13, 20, 13, 17, 41, 13, 20, 1...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 200, 5 ], [ 200, 6 ], [ 6, 7 ], [ 6, 8 ], [ 200, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ...
[ "import java.util.Scanner;\n\npublic class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\tint w = sc.nextInt();\n\t\tint n = sc.nextInt();\n\t\tint[] num =new int[w];\n\t\tfor(int i=0;i<w;i++){\n\t\t\tnum[i]=i+1;\n\t\t}\n\n\t\tString [][] scombo =new String[...
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int w = sc.nextInt(); int n = sc.nextInt(); int[] num =new int[w]; for(int i=0;i<w;i++){ num[i]=i+1; } String [][] scombo =new String[n][2]; int [][] combo =new int[n]...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 142, 5 ], [ 142, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint w = sc.nextInt();\n\t\tint n = sc.nextInt();\n\n\t\tint[] num = new int[w];\n\t\tfor(int i = 0;i < num.length;i++) {\n\t\t\tnum[i] = i+1;\n\t\t}\n\t\tfor(int i = 0;i<n;i++...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] num = new int[w]; for(int i = 0;i < num.length;i++) { num[i] = i+1; } for(int i = 0;i<n;i++) { String ab_st = sc.next(); ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 1...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 172, 5 ], [ 172, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int w = Integer.parseInt(scanner.nextLine());\n int n = Integer.parseInt(scanner.nextLine());\n int a[] = new int[n];\n int b[] = new int[n...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int w = Integer.parseInt(scanner.nextLine()); int n = Integer.parseInt(scanner.nextLine()); int a[] = new int[n]; int b[] = new int[n]; in...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 0...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 139, 5 ], [ 139, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int w = sc.nextInt();// 縦線の本数\n int n = sc.nextInt();// 横棒の本数\n int a[] = new int[n];\n int b[] = new int[n];\n\n for (int i = 0; i < n; i++) {// 横棒の入力\n Stri...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int w = sc.nextInt();// 縦線の本数 int n = sc.nextInt();// 横棒の本数 int a[] = new int[n]; int b[] = new int[n]; for (int i = 0; i < n; i++) {// 横棒の入力 String ab = sc.next(...
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 4, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17, 41, 13, 4, 18, 13, 4, 13, 11, 1, 41, 13, 17, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 149, 5 ], [ 149, 6 ], [ 6, 7 ], [ 6, 8 ], [ 149, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ...
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tint w = Integer.parseInt(input());\n\t\tint[] amida = new int[w];\n\n\t\tfor (int i = 0; i < w; i++) {\n\n\t\t\tamida[i] = i + 1;\n\n\t\t}\n\n\t\tint n ...
import java.util.Scanner; public class Main { public static Scanner scanner = new Scanner(System.in); public static void main(String[] args) { int w = Integer.parseInt(input()); int[] amida = new int[w]; for (int i = 0; i < w; i++) { amida[i] = i + 1; } int n = Integer.parseInt(input()); for (...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 128, 5 ], [ 128, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint w=sc.nextInt();\n\t\tint n=sc.nextInt();\n\t\tint[] wArr=new int[w];\n\t\tfor(int i=0;i<w;i++){\n\t\t\twArr[i]=i+1;\n\t\t}\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString[] ab=sc.next...
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc=new Scanner(System.in); int w=sc.nextInt(); int n=sc.nextInt(); int[] wArr=new int[w]; for(int i=0;i<w;i++){ wArr[i]=i+1; } for(int i=0;i<n;i++){ String[] ab=sc.next().split(","); int a=Integer.parse...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 0, 13, 20, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ ...
[ "import java.util.*;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint w, n, a, b, tmp;\n\t\tString[] s;\n\t\tint[] table;\n\t\twhile(sc.hasNext()){\n\t\t\tw = sc.nextInt();\n\t\t\ttable = new int[w + 1];\n\t\t\tfor(int i = 0; i <= w; i++){\n\t\t\t\ttable[i...
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int w, n, a, b, tmp; String[] s; int[] table; while(sc.hasNext()){ w = sc.nextInt(); table = new int[w + 1]; for(int i = 0; i <= w; i++){ table[i] = i; } n = sc.nextInt(); for(i...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 38, 5, 13, 30, 30, 41, 13, 4, 18, 13, 0, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 182, 14 ], ...
[ "import java.io.*;\nimport java.util.Arrays;\nimport java.util.Scanner;\nimport java.util.ArrayList;\npublic class Main{\n\tpublic static void main(String args[]){\n int a=0,b=0,c=0,i=0,n=0,j=0,m=0;\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n\n try{\n String lin...
import java.io.*; import java.util.Arrays; import java.util.Scanner; import java.util.ArrayList; public class Main{ public static void main(String args[]){ int a=0,b=0,c=0,i=0,n=0,j=0,m=0; BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); try{ String line = reader.readLi...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 149, 8 ], [ 149, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.util.*;\nimport java.text.*;\n/*\nMain class for AOJ where there is no input.\n*/\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int width = Integer.parseInt(sc.nextLine());\n int n = Integer.parseInt(sc.nextLine());\n String...
import java.util.*; import java.text.*; /* Main class for AOJ where there is no input. */ public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int width = Integer.parseInt(sc.nextLine()); int n = Integer.parseInt(sc.nextLine()); String[] arr; i...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17, 4, 18, 13, 11, 1, 41,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 233, 8 ], [ 233, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.io.*;\nimport java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner sc= new Scanner(System.in);\n int w=sc.nextInt();\n int n=sc.nextInt();\n int amida[]=new int[w];\n for (int i=0;i<w;i++){\n amida[i]=i+1;\n }...
import java.io.*; import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc= new Scanner(System.in); int w=sc.nextInt(); int n=sc.nextInt(); int amida[]=new int[w]; for (int i=0;i<w;i++){ amida[i]=i+1; } sc.nex...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 135, 5 ], [ 135, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint w = sc.nextInt();\n\t\tint n = sc.nextInt();\n\t\tint[] s = new int[w];\n\t\tfor (int i = 0; i < w; i++) {\n\t\t\ts[i] = i + 1;\n\t\t}\n\t\tfor (int i = 0; i < n; i++) {\n...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] s = new int[w]; for (int i = 0; i < w; i++) { s[i] = i + 1; } for (int i = 0; i < n; i++) { String line = sc.next(); Stri...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 41, 13, 41, 13, 41, 13, 20, 13, 11, 1, 2, 13, 13, 30, 0, 18, 13, 13, 40, 13, 11, 1, 0, 13, 4, 18, 13, 4, 18, 13, 2, 40, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [...
[ "import java.util.*;class Main{public static void main(String[]z){Scanner s=new Scanner(System.in);int t=s.nextInt(),i=0,a,b,c;int[]n=new int[t];for(;i<t;)n[i]=i++;for(t=s.nextInt(),s.nextLine();t-->0;){z=s.nextLine().split(\",\");c=n[a=new Integer(z[0])-1];n[a]=n[b=new Integer(z[1])-1];n[b]=c;}for(int e:n)System.o...
import java.util.*;class Main{public static void main(String[]z){Scanner s=new Scanner(System.in);int t=s.nextInt(),i=0,a,b,c;int[]n=new int[t];for(;i<t;)n[i]=i++;for(t=s.nextInt(),s.nextLine();t-->0;){z=s.nextLine().split(",");c=n[a=new Integer(z[0])-1];n[a]=n[b=new Integer(z[1])-1];n[b]=c;}for(int e:n)System.out.prin...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], ...
[ "import java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\nimport static java.util.Collections.swap;\n\n/**\n * Wrong Answer\n */\nclass Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint w =...
import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Scanner; import static java.util.Collections.swap; /** * Wrong Answer */ class Main { public static void main(String[] args) throws IOException { Scanner in = new Scanner(System.in); int w = in.nextInt(); int n =...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 20, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 136, 5 ], [ 136, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], ...
[ "import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint w,n;\n\t\tint a,b;\n\t\tint[] d;\n\t\tw=sc.nextInt();\n\t\tn=sc.nextInt();\n\t\td=new int[w+1];\n\t\tfor(int i=1;i<=w;i++)d[i]=i;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString str=...
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc=new Scanner(System.in); int w,n; int a,b; int[] d; w=sc.nextInt(); n=sc.nextInt(); d=new int[w+1]; for(int i=1;i<=w;i++)d[i]=i; for(int i=0;i<n;i++){ String str=sc.next(); String[] ab=str.split(",")...
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 41, 13, 41, 13, 12, 13, 30, 42, 4, 13, 30, 4, 13, 23, 13, 12, 13, 30, 14, 40, 4, 18, 13, 29, 17, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 20, 2, 13, 17, 41, 13, 41,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 163, 5 ], [ 163, 6 ], [ 6, 7 ], [ 6, 8 ], [ 163, 9 ], [ 9, 10 ], [ 163, 11 ], [ 11, 12 ], [ 163, 13 ], [ 13, 1...
[ "import java.util.*;\npublic class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tstatic int w, h;\n\tstatic int[]amida;\n\tpublic static void main(String[] args) {\n\t\twhile(read()){\n\t\t\tsolve();\n\t\t}\n\t}\n\tstatic boolean read(){\n\t\tif(!sc.hasNext())return false;\n\t\tw = sc.nextInt(); h = sc.n...
import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); static int w, h; static int[]amida; public static void main(String[] args) { while(read()){ solve(); } } static boolean read(){ if(!sc.hasNext())return false; w = sc.nextInt(); h = sc.nextInt(); amida = new int[w+1]; ...
[ 7, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 41, 13, 4, 18, 20, 4, 18, 13, 17, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 40, 13, 0, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 13, 41,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 147, 5 ], [ 147, 6 ], [ 6, 7 ], [ 147, 8 ], [ 8, 9 ], [ 8, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 13, 14 ...
[ "import java.util.*;\n\npublic class Main {\n\t\n\tprivate static int[] list;\n\t\n\tpublic static void main(String[] args) {\n\n\t\t//input\n\t\tScanner sc = new Scanner(System.in).useDelimiter(System.getProperty(\"line.separator\"));\n\t\tint w = sc.nextInt();\n\t\tint n = sc.nextInt();\n\t\tw++;\n\n\t\t//initial...
import java.util.*; public class Main { private static int[] list; public static void main(String[] args) { //input Scanner sc = new Scanner(System.in).useDelimiter(System.getProperty("line.separator")); int w = sc.nextInt(); int n = sc.nextInt(); w++; //initialization list = new int[w]; for(in...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 3...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], ...
[ "import java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.List;\nimport java.util.ArrayList;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in...
import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.List; import java.util.ArrayList; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); i...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17, 41, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], ...
[ "import java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Scanner;\nimport java.text.DecimalFormat;\n\nclass Main {\n public static void main (String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n\n int w = sc.nextInt();...
import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Scanner; import java.text.DecimalFormat; class Main { public static void main (String[] args) throws IOException { Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int[] ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 41, 13, 0, 13, 0, 13, 17, 41, 13, 20, 41, 13, 20, 41, 13, 20, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 275, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = \"\";\n\t\tint w, n;\n\t\...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; public class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String s = ""; int w, n; w = n = 0; Main main = n...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17, 4, 18, 13, 17, 11...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 131, 5 ], [ 131, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ...
[ "import java.util.Scanner;\npublic class Main{\npublic static void main(String[] args){\ntry(Scanner sc = new Scanner(System.in)){\nint w = sc.nextInt();\nint n = sc.nextInt();\nint[] values = new int[w];\nfor(int i = 0; i < values.length; i++){\nvalues[i] = i + 1;\n}\nsc.useDelimiter(\",|\\n\");\nfor(int i = 0; i<...
import java.util.Scanner; public class Main{ public static void main(String[] args){ try(Scanner sc = new Scanner(System.in)){ int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for(int i = 0; i < values.length; i++){ values[i] = i + 1; } sc.useDelimiter(",|\n"); for(int i = 0; i<n; i++){ int a = sc...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 1...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 141, 8 ], [ 141, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.util.*;\nimport java.lang.*;\n\n/**\n * DrawingLots\n */\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int w = sc.nextInt();\n int n = sc.nextInt();\n int a[] = new int[n];\n int b[] = new int[n];\n\n ...
import java.util.*; import java.lang.*; /** * DrawingLots */ public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int a[] = new int[n]; int b[] = new int[n]; for (int i = 0; ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 4, 18, 20, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 20, 2, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 240, 8 ], [ 240, 9 ], [ 9, 10 ], [ 240, 11 ], [ 11, 12 ], [ 11, 13 ], [ 13, 14 ...
[ "import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\tprivate int lots[][];\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\t\n\tprivate void run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint w = scan.nextInt();\n\t\tint n = scan.nextInt();\n\t\tlots =...
import java.util.Arrays; import java.util.Scanner; public class Main { private int lots[][]; public static void main(String[] args) { new Main().run(); } private void run() { Scanner scan = new Scanner(System.in); int w = scan.nextInt(); int n = scan.nextInt(); lots = new int[n+1][w]; for (int j ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 20, 17, 41, 13, 20, 17, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 162, 8 ], [ 162, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.util.Scanner;\nimport java.util.ArrayList;\n\npublic class Main {\n\tpublic static void main(String args[]){\n\t\tScanner in=new Scanner(System.in);\n\t\tArrayList<String> shuff= new ArrayList<String>();\n\t\tint w,n,tmp;\n\t\tint shuf_num[] =new int[2];\n\t\tString buf[]=new String[2];\n\t\tw=in.nextI...
import java.util.Scanner; import java.util.ArrayList; public class Main { public static void main(String args[]){ Scanner in=new Scanner(System.in); ArrayList<String> shuff= new ArrayList<String>(); int w,n,tmp; int shuf_num[] =new int[2]; String buf[]=new String[2]; w=in.nextInt(); n=in.nextInt(); in...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 17, 4, 18, 13, 17, 30, 41, 13, 20, 41, 13, 41, 13, 20, 17, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 2...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nclass Main{\n public static void main(String args[]){\n\ttry{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t String str;\n\t String strary[] = new String[2];\n\t int w = Integer.parseInt(br.readLine...
import java.io.BufferedReader; import java.io.InputStreamReader; class Main{ public static void main(String args[]){ try{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str; String strary[] = new String[2]; int w = Integer.parseInt(br.readLine()); int n = ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 133, 5 ], [ 133, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int w1 = sc.nextInt();\n int[] w2 = new int[w1];\n for(int i=0;i<w1;i++){\n w2[i] = i+1;\n }\n int n = sc.nextInt();\n fo...
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int w1 = sc.nextInt(); int[] w2 = new int[w1]; for(int i=0;i<w1;i++){ w2[i] = i+1; } int n = sc.nextInt(); for(int i=0;i<n;i+...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 13, 41, 13, 4, 18, 13, 11, 1, 2, 13, 17, 1, 40, 13, 30, 30, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 119, 5 ], [ 119, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint w = stdIn.nextInt();\n\t\tint[] a = new int[w+1];\n\t\tfor (int i = 1; i <= w; i++)\n\t\t\ta[i] = i;\n\t\tint s = stdIn.nextInt();\n\t\tfor (; s != 0; s--) {\n\t\t\tStr...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int w = stdIn.nextInt(); int[] a = new int[w+1]; for (int i = 1; i <= w; i++) a[i] = i; int s = stdIn.nextInt(); for (; s != 0; s--) { String[] S = stdIn.next().split(","); ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 17, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 131, 5 ], [ 131, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tscan.useDelimiter(\",|//s|\\n\");\n\t\tint w = Integer.parseInt(scan.next());\n\t\tint n = Integer.parseInt(scan.next());\n\t\tint[] number = new int[w];\n\t\tfor( int i = 0; ...
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); scan.useDelimiter(",|//s|\n"); int w = Integer.parseInt(scan.next()); int n = Integer.parseInt(scan.next()); int[] number = new int[w]; for( int i = 0; i < w; i++){ number[i] = i+...
[ 7, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 0, 13, 20, 4, 18, 13, 17, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 121, 5 ], [ 121, 6 ], [ 6, 7 ], [ 121, 8 ], [ 8, 9 ], [ 8, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ...
[ "import java.util.Scanner;\n\npublic class Main {\n\tprivate static Scanner scan;\n\tpublic static void main(String[] args) {\n\t\tscan = new Scanner(System.in);\n\t\tscan.useDelimiter(\",|\\\\s+\");\n\t\tint a[] = new int[31];\n\t\tfor(int i = 0;i < 31;i++){\n\t\t\ta[i] = i;\n\t\t}\n\t\tint w = scan.nextInt();\n\t...
import java.util.Scanner; public class Main { private static Scanner scan; public static void main(String[] args) { scan = new Scanner(System.in); scan.useDelimiter(",|\\s+"); int a[] = new int[31]; for(int i = 0;i < 31;i++){ a[i] = i; } int w = scan.nextInt(); int n = scan.nextInt(); for(int i = ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 2, 13, 17, 1...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 140, 14 ], ...
[ "import java.io.*;\nimport java.util.*;\nimport java.lang.Math;\nimport java.util.Arrays;\n\npublic class Main {\n public static void main(final String[] args) {\n\n Scanner sc = new Scanner(System.in);\n \n int w = sc.nextInt();\n int ar[] = new int[w];\n int n = sc.nextInt();...
import java.io.*; import java.util.*; import java.lang.Math; import java.util.Arrays; public class Main { public static void main(final String[] args) { Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int ar[] = new int[w]; int n = sc.nextInt(); for (int...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 2, 13, 17, 13, 0, 13, 4, 18, 13, 0, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 150, 8 ], [ 150, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.io.*;\nimport java.util.*;\npublic class Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\t//Scanner reader=new Scanner(System.in);\n\t\tString s=reader.readLine();\n\t\tint in=Integer.parseInt(s);\n\...
import java.io.*; import java.util.*; public class Main{ public static void main(String[] args)throws IOException{ BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); //Scanner reader=new Scanner(System.in); String s=reader.readLine(); int in=Integer.parseInt(s); //int in=reader.nextI...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 2, 13, 17, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 202, 11 ], [ 202, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new In...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { // TODO ????????????????????????????????????????????? BufferedReader br = new BufferedReader(new InputStreamReader(Sy...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 41, 13, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 3...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 157, 14 ], ...
[ "import java.io.*;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.StringTokenizer;\n \n \n \n \npublic class Main {\n \n \n public static void main(String[] args) {\n \n try {\n \n \tBufferedReader br = new BufferedReader(new InputStreamReader(Sys...
import java.io.*; import java.util.ArrayList; import java.util.List; import java.util.StringTokenizer; public class Main { public static void main(String[] args) { try { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17, 11, 1, 41, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 138, 5 ], [ 138, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\n\npublic class Main {\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint line = Integer.parseInt(sc.nextLine());\n\t\tint n = Integer.parseInt(sc.nextLine());\n\n\t\tint[] values = new int[line];\n\t\tfor(int i=0;i<line;i++){\n\t\t\tvalues[i...
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int line = Integer.parseInt(sc.nextLine()); int n = Integer.parseInt(sc.nextLine()); int[] values = new int[line]; for(int i=0;i<line;i++){ values[i] = i+1; } for(int i=0;i<n...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 4...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 150, 5 ], [ 150, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.*;\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint w = Integer.parseInt(br.readLine());\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tString[] c = new String[2];\n\t\tint ...
import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int w = Integer.parseInt(br.readLine()); int n = Integer.parseInt(br.readLine()); String[] c = new String[2]; int f=0; int s=0; int t...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 139, 5 ], [ 139, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner s = new Scanner(System.in);\n int[] am = new int[32];\n int n,i,w,a,b,t;\n String st;\n String[] x;\n w = s.nextInt();\n n = s.nextInt();\n for(i=1;i<=w;i++...
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); int[] am = new int[32]; int n,i,w,a,b,t; String st; String[] x; w = s.nextInt(); n = s.nextInt(); for(i=1;i<=w;i++)am[i]=i; ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 1...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 164, 5 ], [ 164, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], ...
[ "import java.util.Scanner;\n\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint w, n, pos;\n\t\tString string;\n\t\tString[] strings;\n\n\t\tw = sc.nextInt();\n\t\tn = sc.nextInt();\n\t\tint[] endPos = new int[w];\n\t\tint[] na = new int[n];\n\t\t...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int w, n, pos; String string; String[] strings; w = sc.nextInt(); n = sc.nextInt(); int[] endPos = new int[w]; int[] na = new int[n]; int[] nb = new int[n]; for(int i = 0;...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 120, 5 ], [ 120, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tint w = Integer.parseInt(sc.nextLine());\n\t\t\tint n = Integer.parseInt(sc.nextLine());\n\t\t\tint[] ans = new int[w];\n\t\t\tfor (int i = 0; i < ans.length; i++) {\...
import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { int w = Integer.parseInt(sc.nextLine()); int n = Integer.parseInt(sc.nextLine()); int[] ans = new int[w]; for (int i = 0; i < ans.length; i++) { ans[i] = i + 1; } ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 148, 5 ], [ 148, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] row = new int[sc.nextInt()];\n\t\tfor(int i = 0; i < row.length; i++){\n\t\t\trow[i] = i + 1;\n\t\t}\n\t\tint ctimes = sc.nextInt();\n\t\n\t\tsc.nextLine();\n\t\tfor(int j...
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int[] row = new int[sc.nextInt()]; for(int i = 0; i < row.length; i++){ row[i] = i + 1; } int ctimes = sc.nextInt(); sc.nextLine(); for(int j = 0; j < ctimes; j++){ int[] ch ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 2, 13, 17, 11, 1, 41, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 134, 5 ], [ 134, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint w = sc.nextInt();\n\t\tint n = sc.nextInt();\n\t\tint[] array = new int[w];\n\t\tint swap1, swap2;\n\t\tbyte garbage;\n\n\t\tfor(int i = 0;i < w;i++) array[i] = i + 1;\n\n...
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] array = new int[w]; int swap1, swap2; byte garbage; for(int i = 0;i < w;i++) array[i] = i + 1; for(int i = 0;i < n;i++){ // S...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 20, 13, 0, 13, 20, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 183, 5 ], [ 183, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint w, n, l[][], num[];\n\t\tint i;\n\t\tint tmp;\n\t\tString str;\n\t\tString str1[];\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tw = sc.nextInt();\n\t\tn = sc.nextInt();\n\n\t\tnum = new int[w];\n\t\tstr1 =...
import java.util.Scanner; public class Main { public static void main(String[] args) { int w, n, l[][], num[]; int i; int tmp; String str; String str1[]; Scanner sc = new Scanner(System.in); w = sc.nextInt(); n = sc.nextInt(); num = new int[w]; str1 = new String[2]; for (i = 0; i < w; ++i) ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 0, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.io.*;\nimport java.util.*;\n\nclass Main{\n\t\tpublic static void main(String args[]) throws IOException{\n\t\t\tArrayList<String> line_list = new ArrayList<String>();\n\n\t\t\tScanner scan = new Scanner(System.in);\n\t\t\t\n\t\t\tint low,line;\n\t\t\t\n\t\t\tlow = Integer.parseInt(scan.next());\n\t\t\...
import java.io.*; import java.util.*; class Main{ public static void main(String args[]) throws IOException{ ArrayList<String> line_list = new ArrayList<String>(); Scanner scan = new Scanner(System.in); int low,line; low = Integer.parseInt(scan.next()); line = Integer.parseInt(scan.next()); ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 13, 0, 18, 13, 13, 13, 29, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 156, 8 ], [ 156, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n\n static void swapidx(int[] arr, int lhs, int rhs){\n \tint tmp = arr[lhs];\n \tarr[lhs] = arr[rhs];\n \tarr[rhs] = tmp;\n \treturn;\n }\n \n public static void main(String [] args){\n \tScanner sc = new Sca...
import java.io.IOException; import java.util.Scanner; public class Main { static void swapidx(int[] arr, int lhs, int rhs){ int tmp = arr[lhs]; arr[lhs] = arr[rhs]; arr[rhs] = tmp; return; } public static void main(String [] args){ Scanner sc = new Scanner(System.in); i...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 2, 13, 17, 13, 41, 13, 41, 13, 41, 13, 41, 13, 4...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 145, 5 ], [ 145, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tint w = scn.nextInt(), n = scn.nextInt();\n\t\tint[] ans = new int[w];\n\t\tfor(int i = 1;i <= w;i++) {\n\t\t\tans[i-1] = i;\n\t\t}\n\t\tint a,b,buf;\n\t\tString line = scn.n...
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner scn = new Scanner(System.in); int w = scn.nextInt(), n = scn.nextInt(); int[] ans = new int[w]; for(int i = 1;i <= w;i++) { ans[i-1] = i; } int a,b,buf; String line = scn.nextLine(); for(int i = 0;i < n;i...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 169, 11 ], [ 169, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint w = Integer.parseInt(br...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int w = Integer.parseInt(br.readLine()); i...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 133, 5 ], [ 133, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main{\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int x = sc.nextInt();\n\n int y = sc.nextInt();\n\n int[] values = new int[x];\n\n for (int i = 0; i < values.length; i++) {\n\n values[i] = i +1;\n\n }\n for (int i = ...
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); int[] values = new int[x]; for (int i = 0; i < values.length; i++) { values[i] = i +1; } for (int i = 0; i < y; i++) { Stri...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 11, 1, 41, 13, 17, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class Main{\n\n public static final int FIRST_NUMBER = 0;\n public static final int SECOND_NUMBER = 1;\n\n public static void main(String[] args) th...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; public class Main{ public static final int FIRST_NUMBER = 0; public static final int SECOND_NUMBER = 1; public static void main(String[] args) throws NumberForma...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 0, 18, 13, 13, 13, 41, 13, 4, 18, 13, 4, 18, 13, 17, 42, 2, 13, 17, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 126, 5 ], [ 126, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.*;\npublic class Main {\n public static void main(String[] args) throws java.io.IOException{\n Scanner scan = new Scanner(System.in);\n int w=scan.nextInt();\n int [] line =new int[w+1];\n for(int i=1;i<w+1;i++)\n \tline[i]=i;\n int n=scan.nextInt();\n ...
import java.util.*; public class Main { public static void main(String[] args) throws java.io.IOException{ Scanner scan = new Scanner(System.in); int w=scan.nextInt(); int [] line =new int[w+1]; for(int i=1;i<w+1;i++) line[i]=i; int n=scan.nextInt(); scan.use...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 139, 5 ], [ 139, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint w = sc.nextInt();\n\t\tint n = sc.nextInt();\n\t\tint[] values = new int[w];\n\n\t\tfor (int i = 0; i < values.length; i++) {\n\t\t\tvalues[i] = i + 1;\n\t\t}\n\n\t\tf...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for (int i = 0; i < values.length; i++) { values[i] = i + 1; } for (int i = 0; i < n; i++) { String...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 4, 18, 13, 2, 13, 17, 41, 1...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.Collections;\n\npublic class Main\n{\n\tpublic static void main(String[] arg) throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(Syste...
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; public class Main { public static void main(String[] arg) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int v = ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 17, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 2, 13, 17...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 130, 11 ], [ 130, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\nimport java.math.*;\nimport java.text.*;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint w = in.nextInt();\n\t\tint n = in.nextInt();\n\t\tin.useDelimiter(\"[\\\\s*[,\\\\n]\\\\s*]\");\n\t\tint[] ls = new int[w];\n\t\tf...
import java.util.Scanner; import java.math.*; import java.text.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int w = in.nextInt(); int n = in.nextInt(); in.useDelimiter("[\\s*[,\\n]\\s*]"); int[] ls = new int[w]; for(int i=0; i<w; i++) ls[i] = i+1;...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 13, 11, 1, 41...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 133, 5 ], [ 133, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int row = sc.nextInt();\n int n = sc.nextInt();\n int save, x, y;\n int[] ans = new int[row+1];\n for(int i=1; i<=row; i++) {\n ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int row = sc.nextInt(); int n = sc.nextInt(); int save, x, y; int[] ans = new int[row+1]; for(int i=1; i<=row; i++) { ans[i] = i; ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 13, 41, 13, 4, 18, 13, 42, 2, 40, 13, 17, 30, 41, 13, 4, 18, 4, 18,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [...
[ "import java.util.Scanner;\n\nclass Main {\n public static void main(String[] z) {\n Scanner sc = new Scanner(System.in);\n int[] l=new int[sc.nextInt()];\n for(int i=0;i<l.length;i++) {\n l[i]=i;\n }\n int n=sc.nextInt();\n while(n-->0) {\n String[...
import java.util.Scanner; class Main { public static void main(String[] z) { Scanner sc = new Scanner(System.in); int[] l=new int[sc.nextInt()]; for(int i=0;i<l.length;i++) { l[i]=i; } int n=sc.nextInt(); while(n-->0) { String[] lines=sc.next(...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 0, 18, 13, 13, 20...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 153, 5 ], [ 153, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\t\tint[][] c = new int[k][];\n\t\t\n\t\tfor(int i = 0; i < k; i++) {\n\t\t\tString s = sc.next();\n\t\t\tString[] ns = s.split...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int[][] c = new int[k][]; for(int i = 0; i < k; i++) { String s = sc.next(); String[] ns = s.split(","); c[i] = new int[]{Integer...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 4, 18, 20, 17, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17, 0, 13, 4, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 131, 5 ], [ 131, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ]...
[ "import java.util.Scanner;\n\npublic class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner cin = new Scanner(System.in).useDelimiter(\",|\\\\s+\");\n\n\t\tint a,b,t,n;\n\n\t\tn = cin.nextInt();\n\t\tint[] num = new int[n];\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tnum[i] = i+1;\n\t\t}\n\t\t\n\t\...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner cin = new Scanner(System.in).useDelimiter(",|\\s+"); int a,b,t,n; n = cin.nextInt(); int[] num = new int[n]; for(int i=0; i<n; i++) { num[i] = i+1; } n = cin.nextInt(); for(int i=0; i<n; i++) { ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 17, 41, 13, 20, 17, 41, 13, 20, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 41, 13, 42, 2, 13, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 154, 8 ], [ 154, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.io.*;\nimport java.util.Scanner;\npublic class Main{ \n public static void main(String[]args){ \n Scanner sc = new Scanner(System.in);\nint w = sc.nextInt(); \nint n= sc.nextInt();\n int [] a = new int[30];\n int [] b = new int[30];\n int [] S = new int[30];\n int i=0,j=0,k=0,p,q;\n ...
import java.io.*; import java.util.Scanner; public class Main{ public static void main(String[]args){ Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n= sc.nextInt(); int [] a = new int[30]; int [] b = new int[30]; int [] S = new int[30]; int i=0,j=0,k=0,p,q; while(j<w){ ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17, 41, 13, 41, 13, 20,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 152, 5 ], [ 152, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], ...
[ "import java.util.Scanner;\npublic class Main {\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n int w,n;\n w = scan.nextInt();\n n = scan.nextInt();\n int[] x = new int[w];\n for(int i=0;i<w;i++){\n x[i]=i+1;\n }\...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int w,n; w = scan.nextInt(); n = scan.nextInt(); int[] x = new int[w]; for(int i=0;i<w;i++){ x[i]=i+1; } String s...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 2, 13, 17, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 0,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 168, 5 ], [ 168, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String args[]){\n\t\tScanner in = new Scanner(System.in);\n\t\tint w = in.nextInt();\n\t\tint n = in.nextInt();\n\t\tint end[] = new int [w + 1];\n\t\tint change[][] = new int [n][2];\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tString[] num = in...
import java.util.Scanner; public class Main { public static void main(String args[]){ Scanner in = new Scanner(System.in); int w = in.nextInt(); int n = in.nextInt(); int end[] = new int [w + 1]; int change[][] = new int [n][2]; for(int i = 0;i < n;i++){ String[] num = in.next().split(","); change[i...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 4, 18, 20, 17, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ], ...
[ "import java.util.Scanner;\n\nclass Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc = new Scanner(System.in).useDelimiter(\"[,\\\\n]\");\n\t\t\n\t\tint w = sc.nextInt();\n\t\tint lines[] = new int[w];\n\t\tfor (int i = 0; i < w; i++)\n\t\t{\n\t\t\tlines[i] = i;\n\t\t}\n\t\tint n = sc.nextInt(...
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in).useDelimiter("[,\\n]"); int w = sc.nextInt(); int lines[] = new int[w]; for (int i = 0; i < w; i++) { lines[i] = i; } int n = sc.nextInt(); for (int i = 0; i < n; i++) { int ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 0, 13, 20, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 13, 11, 1, 41, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 136, 5 ], [ 136, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], ...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint w, n;\n\t\tw = sc.nextInt();\n\t\tn = sc.nextInt();\n\n\t\tint[] ans;\n\t\tans = new int[w + 1];\n\n\t\tfor (int i = 0; i <= w; i++) {\n\t\t\tans[i] = i;\n\t\t}\n\n\t\tf...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int w, n; w = sc.nextInt(); n = sc.nextInt(); int[] ans; ans = new int[w + 1]; for (int i = 0; i <= w; i++) { ans[i] = i; } for (int i = 0; i < n; i++) { int a, b; ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 130, 5 ], [ 130, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int w = sc.nextInt();\n int n = sc.nextInt();\n int array[] = new int[w];\n for (int i = 0; i < w; i++) array[i] = i+1;\n for (int i = 0;...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int array[] = new int[w]; for (int i = 0; i < w; i++) array[i] = i+1; for (int i = 0; i < n; i++){ ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17, 41, 13, 2...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 176, 11 ], [ 176, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Scanner;\n\npublic class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException\n\t * @throws NumberFormatException\n\t */\n\tpublic static void main(String[] args) throws NumberFormatException,\n\t\t\tIOException {\n\t\t// TODO ...
import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; public class Main { /** * @param args * @throws IOException * @throws NumberFormatException */ public static void main(String[] args) throws NumberFormatException, IOException { // TODO ?????????????????????????????...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 41, 13, 20, 17, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], ...
[ "\nimport java.util.*;\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.lang.*;\nimport java.util.Scanner;\nimport java.util.StringTokenizer;\n\npublic class Main\n{\n\tpublic static void main (String[] arg)throws IOException\n\t{\n\t\tBufferedReader input...
import java.util.*; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.lang.*; import java.util.Scanner; import java.util.StringTokenizer; public class Main { public static void main (String[] arg)throws IOException { BufferedReader input =new BufferedReader (...
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 136, 5 ], [ 136, 6 ], [ 6, 7 ], [ 6, 8 ], [ 136, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ...
[ "import java.util.*;\n\npublic class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint w = scan.nextInt();\n\t\tint[] dl = new int[w];\n\t\tfor(int i = 0; i < w; i++){\n\t\t\tdl[i] = i + 1;\n\t\t}\n\t\tint n = scan.nextInt();\n\t\tfor(int i = ...
import java.util.*; public class Main{ private static final Scanner scan = new Scanner(System.in); public static void main(String[] args){ int w = scan.nextInt(); int[] dl = new int[w]; for(int i = 0; i < w; i++){ dl[i] = i + 1; } int n = scan.nextInt(); for(int i = 0; i < n; i++){ String input = ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 2, 13, 17, 41, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayDeque;\nimport java.util.ArrayList;\nimport java.util.Deque;\nimport java.util.List;\n\npublic class Main {\n\n\t@SuppressWarnings(\"unchecked\")\n\tpublic static void main(String[] args) throws IO...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Deque; import java.util.List; public class Main { @SuppressWarnings("unchecked") public static void main(String[] args) throws IOException { Buffe...
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 13, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 13, 13, 2, 4, 18, 13, 17, 2, 4, 18, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 140, 5 ], [ 140, 6 ], [ 6, 7 ], [ 6, 8 ], [ 140, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ...
[ "import java.util.*;\n\npublic class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n int w = scn.nextInt(), n = scn.nextInt();\n int[] ary = createArray(w);\n scn.useDelimiter(\"\\\\s+|,\");\n for(int i = 0; i <...
import java.util.*; public class Main { private static final Scanner scn = new Scanner(System.in); public static void main(String[] args) { int w = scn.nextInt(), n = scn.nextInt(); int[] ary = createArray(w); scn.useDelimiter("\\s+|,"); for(int i = 0; i < n; i++) { ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 157, 8 ], [ 157, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n BufferedReader read = new BufferedReader(\n new java.io.InputStreamReader(System.in));\n\n int w = Integer.parseIn...
import java.io.BufferedReader; import java.io.IOException; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader read = new BufferedReader( new java.io.InputStreamReader(System.in)); int w = Integer.parseInt(read.readLine...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17, 41, 13, 20, 13, 17, 11, 1, 41, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 170, 5 ], [ 170, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint tateLine = sc.nextInt();\n\t\tint yokoLine = sc.nextInt();\n\t\tint[] numList = new int[tateLine];\n\t\t\n\t\tfor (int i = 0; i < ta...
import java.util.Scanner; public class Main { public static void main(String[] args) { @SuppressWarnings("resource") Scanner sc = new Scanner(System.in); int tateLine = sc.nextInt(); int yokoLine = sc.nextInt(); int[] numList = new int[tateLine]; for (int i = 0; i < tateLine; i++) { numList[i] = i ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 0, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 2, 13, 17, 11, 1, 41, 13, 17, 2, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [...
[ "import java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint w = scan.nextInt();\n\t\tint n = scan.nextInt();\n\t\tint[] amida;\n\t\tamida = new int[w];\n\t\tfor (int i = 0; i < amida.length; i ++) amida[i] = i + 1;\n\t\tfor (int i = 0; i...
import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); int w = scan.nextInt(); int n = scan.nextInt(); int[] amida; amida = new int[w]; for (int i = 0; i < amida.length; i ++) amida[i] = i + 1; for (int i = 0; i < n; i ++) { String line =...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 4, 18, 13, 17, 0, 18, 18, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 181, 5 ], [ 181, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint w = sc.nextInt();\n\t\tint n = sc.nextInt();\n\t\tint[][] horizontalLine = new int[n][2];\n\t\tString[] input = null;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tinput = sc.n...
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[][] horizontalLine = new int[n][2]; String[] input = null; for(int i = 0; i < n; i++){ input = sc.next().split(","); horizontalL...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 2, 17, 17, 41, 13, 17, 12, 13, 30, 0, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 2, 13, 17, 11, 1, 41, 13, 17, 2, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], ...
[ "import java.util.*;\nimport java.lang.*;\nimport java.math.*;\nimport java.io.*;\n\nimport static java.lang.Math.*;\nimport static java.util.Arrays.*;\n\npublic class Main{\n\n\tScanner sc;\n\n\tstatic final int INF=1<<28;\n\tstatic final double EPS=1e-9;\n\n\tvoid run(){\n\t\tsc=new Scanner(System.in);\n\t\tint n...
import java.util.*; import java.lang.*; import java.math.*; import java.io.*; import static java.lang.Math.*; import static java.util.Arrays.*; public class Main{ Scanner sc; static final int INF=1<<28; static final double EPS=1e-9; void run(){ sc=new Scanner(System.in); int n=sc.nextInt(); int[] l=new i...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [...
[ "import java.io.*;\nclass Main\n{\n public static void main(String args[])throws IOException\n {\n\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\tint w=Integer.parseInt(input.readLine());\n\tint a[]=new int[w];\n\tfor(int i=0;i<w;i++)\n\t {\n\t\ta[i]=i+1;\n\t }\n\tint n=I...
import java.io.*; class Main { public static void main(String args[])throws IOException { BufferedReader input=new BufferedReader(new InputStreamReader(System.in)); int w=Integer.parseInt(input.readLine()); int a[]=new int[w]; for(int i=0;i<w;i++) { a[i]=i+1; } int n=Integer.parseInt(input.read...
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 4, 18, 20, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 2, 13, 17, 4, 18,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 113, 5 ], [ 113, 6 ], [ 6, 7 ], [ 6, 8 ], [ 113, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ...
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n new Main().run();\n }\n\n private void run() {\n int w = sc.nextInt();\n int n = sc.nextInt();\n\n int[] lines = new int[w];\n for(int i = 0; i < w; i++) lines[i] = i + 1;\n\n sc.useDelimiter(\"[,\\n]\");\n...
import java.util.*; public class Main { public static void main(String[] args) { new Main().run(); } private void run() { int w = sc.nextInt(); int n = sc.nextInt(); int[] lines = new int[w]; for(int i = 0; i < w; i++) lines[i] = i + 1; sc.useDelimiter("[,\n]"); for(int i = 0; i <...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 4, 18, 20, 23, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 17, 30, 41, 13, 20, 4, 13, 13, 12, 13, 30, 41, 13, 4, 13, 4, 13, 4, 18, 13, 41, 1...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 167, 14 ], ...
[ "import static java.lang.System.out;\nimport static java.lang.Integer.parseInt;\nimport java.io.File;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n new Main().lots();\n }\n\n public void lots() {\n try (Scanner scan = new Scanner(System.in)) ...
import static java.lang.System.out; import static java.lang.Integer.parseInt; import java.io.File; import java.util.Scanner; public class Main { public static void main(String[] args) { new Main().lots(); } public void lots() { try (Scanner scan = new Scanner(System.in)) { dra...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 41, 13, 4, 13, 41, 13, 4, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 2, 13, 17, 11, 1, 41, 13, 17, 2,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 141, 8 ], [ 141, 9 ], [ 9, 10 ], [ 9, 11 ], [ 141, 12 ], [ 12, 13 ], [ 12, 14 ...
[ "import java.io.PrintWriter;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tstatic Scanner scan = new Scanner(System.in);\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\n\tpublic static void main(String[] args) {\n\t\tint w = si(), n = si();\n\t\tint[] ary = new int[w];\n\t\tfor (int i = 0; i < ...
import java.io.PrintWriter; import java.util.Scanner; public class Main { static Scanner scan = new Scanner(System.in); static PrintWriter out = new PrintWriter(System.out); public static void main(String[] args) { int w = si(), n = si(); int[] ary = new int[w]; for (int i = 0; i < w; i++) ary[i]=i+1; ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 13, 30, 0, 13, 4, 18, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 20, 13, 11, 1, 41, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 206, 11 ], [ 206, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// ????£??????¬??°\n\t\tint vertical = 0;\...
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 vertical = 0; // ?¨??£??????¬??° i...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 20, 2, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 136, 5 ], [ 136, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], ...
[ "import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\n\t\tint w,n,a,b,i,tmp;\n\t\tw=s.nextInt();//ツ縦\n\t\tn=s.nextInt();//ツ可。\n\t\tint k[]=new int[w+1];\n\t\tfor(i=1;i<=w;i++){\n\t\t\tk[i]=i;\n\t\t}\n\t\tfor(i=0;i<n;i++){\n\t\t\tString[] ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s=new Scanner(System.in); int w,n,a,b,i,tmp; w=s.nextInt();//ツ縦 n=s.nextInt();//ツ可。 int k[]=new int[w+1]; for(i=1;i<=w;i++){ k[i]=i; } for(i=0;i<n;i++){ String[] str=s.next().split(","); a=Integer.pa...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 157, 5 ], [ 157, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], ...
[ "import java.io.*;\n\n public class Main{\n\t public static void main(String args[]) throws IOException{\n\t\t BufferedReader bf = new BufferedReader(\n\t\t\t\t new InputStreamReader(System.in));\n\t\t int w,n,right,left,x;\n\t\t String str;\n\t\t w = Integer.parseInt(bf.readLine());\n\t\t n = Integer.parseInt(bf.r...
import java.io.*; public class Main{ public static void main(String args[]) throws IOException{ BufferedReader bf = new BufferedReader( new InputStreamReader(System.in)); int w,n,right,left,x; String str; w = Integer.parseInt(bf.readLine()); n = Integer.parseInt(bf.readLine()); int[] order = ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 157, 5 ], [ 157, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint w = sc.nextInt();\n\t\tint n = sc.nextInt();\n\t\tint[] lines = new int[w+1];\n\t\tfor(int i =1; i<lines.length; i++){\n\t\t\tlines[i]=i;\t//initialize lines[]\n\t\t}\...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] lines = new int[w+1]; for(int i =1; i<lines.length; i++){ lines[i]=i; //initialize lines[] } for(int i=0; i<n; i++){ Strin...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 148, 11 ], [ 148, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(S...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { // TODO Auto-generated method stub BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int w...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [...
[ "import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int w = sc.nextInt();\n int n = sc.nextInt();\n int[] num = new int[w];\n for(int i=0;i<num.length;i++){\n num[i] = i+1;\n }\n for(int j=0;j<n;j++){\n String s...
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] num = new int[w]; for(int i=0;i<num.length;i++){ num[i] = i+1; } for(int j=0;j<n;j++){ String str = sc.next(); ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 0...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 167, 5 ], [ 167, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\npublic class Main{\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int w = sc.nextInt();\n int n = sc.nextInt();\n int[] a = new int[n];\n int[] b = new int[n];\n for(int i = 0; i < n; i++){\n String...
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] a = new int[n]; int[] b = new int[n]; for(int i = 0; i < n; i++){ String s = sc.next();...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 17, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 0, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17, 11, 1, 41, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 124, 5 ], [ 124, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tsc.useDelimiter(\"\\\\D\");\n\n\t\tint w = sc.nextInt();\n\t\tint n = sc.nextInt();\n\n\t\tint[] amida;\n\t\tamida = new int[w];\n\n\t\tfor (int i = 0; i < w; i++) {\n\t\t\tam...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); sc.useDelimiter("\\D"); int w = sc.nextInt(); int n = sc.nextInt(); int[] amida; amida = new int[w]; for (int i = 0; i < w; i++) { amida[i] = i + 1; } for (int i = 0; i ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 13, 17...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 159, 5 ], [ 159, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], ...
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main (String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int x, y, c;\n String str;\n\n str = sc.nextLine();\n int w = Integer.parseInt(str);\n int[] a = new int[w];\n for (int i = ...
import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int x, y, c; String str; str = sc.nextLine(); int w = Integer.parseInt(str); int[] a = new int[w]; for (int i = 0; i < w; i++) ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 192, 11 ], [ 192, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\npublic class Main {\n\tpublic static void main(String[] aegs){\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint a = 0;\n\t\tString t = \"\";\n\t\t/*\n\t\twhile (true){\n\...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] aegs){ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int a = 0; String t = ""; /* while (true){ try { t = br.readLine(); ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 2, 13, 17, 0, 13, 4,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 232, 5 ], [ 232, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.*;\npublic class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) throws IOException{\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\n\t\tString str = br.readLine();\n\t\tint n = Integer.parseInt(str)...
import java.io.*; public class Main { /** * @param args */ public static void main(String[] args) throws IOException{ InputStreamReader is = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(is); String str = br.readLine(); int n = Integer.parseInt(str); int m = n; int[] amida...
[ 7, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 0, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 2, 13, 17, 41, 13, 20, 2, 13, 17, 41, 13, 20, 2, 13, 17, 41, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 175, 5 ], [ 175, 6 ], [ 6, 7 ], [ 175, 8 ], [ 8, 9 ], [ 8, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static Scanner sc;\n\t\n\tpublic static void main(String[] args){\n\t\t//宣言\n\t\tsc = new Scanner(System.in);\n\t\tint w=sc.nextInt();\n\t\tint n=sc.nextInt();\n\t\tint a[]=new int[n+1];\n\t\tint b[]=new int[n+1];\n\t\tString s[]=new String[n+1];\n\t\tint ...
import java.util.Scanner; public class Main { public static Scanner sc; public static void main(String[] args){ //宣言 sc = new Scanner(System.in); int w=sc.nextInt(); int n=sc.nextInt(); int a[]=new int[n+1]; int b[]=new int[n+1]; String s[]=new String[n+1]; int i=0; for(i=1;i<=n;i++){ String s...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "\nimport java.io.*;\nimport java.util.ArrayList;\nimport java.util.List;\n\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tint verticalLine = Integer.parseInt(br.readLine());//???????????¬??°\n\t\...
import java.io.*; import java.util.ArrayList; import java.util.List; class Main { public static void main(String[] args) { try { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int verticalLine = Integer.parseInt(br.readLine());//???????????¬??° int horizontalLine = Integer....
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 38, 5, 13, 30, 4, 18, 18, 13, 13, 17, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.io.*;\nimport java.util.StringTokenizer;\n\nclass Main {\n\tpublic static void main(String args[]) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\n\t\ttry {\n\t\t\tint w = Integer.parseInt(br.readLine());\n\t\t\tint n = Integer.parse...
import java.io.*; import java.util.StringTokenizer; class Main { public static void main(String args[]) { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); try { int w = Integer.parseInt(br.readLine()); int n = Integer.parseInt(br.readLine()); int a...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 130, 8 ], [ 130, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int[] set = new int[30];\n \n int w = sc.nextInt();\n int n = sc.nextInt();\n \n for (int i=0;i<w;i++) set[i] = i+1;\n ...
import java.io.*; import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int[] set = new int[30]; int w = sc.nextInt(); int n = sc.nextInt(); for (int i=0;i<w;i++) set[i] = i+1; for (int i...