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,
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,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
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.InputStreamReader;\nimport java.io.BufferedReader;\nimport java.util.StringTokenizer;\nimport java.io.IOException;\nimport java.util.List;\nimport java.util.ArrayList;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n InputStreamReader inputReader = n... | import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.util.StringTokenizer;
import java.io.IOException;
import java.util.List;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) throws IOException {
InputStreamReader inputReader = new InputStreamR... |
[
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,
0,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
147,
5
],
[
147,
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 Scanner sc=new Scanner(System.in);\n int w,n,x,y;\n w=sc.nextInt();\n n=sc.nextInt();\n int[] values=new int[w];\n int i;\n for(i=0;i<values.length;i++){\n values... | import java.util.Scanner;
public class Main{
public static void main(String args[]){
Scanner sc=new Scanner(System.in);
int w,n,x,y;
w=sc.nextInt();
n=sc.nextInt();
int[] values=new int[w];
int i;
for(i=0;i<values.length;i++){
values[i]=i+1;
... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
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,
... | [
[
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
],
[
150,
14
],
... | [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException,\n\t\t\tIOException {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamRe... |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws NumberFormatException,
IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(
System.in))... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
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
],
[
185,
5
],
[
185,
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 n, k;\n\t\tint a[];\n\n\t\tn = sc.nextInt();\n\t\tk = sc.nextInt();\n\t\ta = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = i + 1;\n\t\t}\n\t\tfor (int i = 0... | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int n, k;
int a[];
n = sc.nextInt();
k = sc.nextInt();
a = new int[n];
for (int i = 0; i < n; i++) {
a[i] = i + 1;
}
for (int i = 0; i < k; i++) {
String 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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
137,
5
],
[
137,
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 input = new Scanner(System.in);\n\t\t\n\t\tint N = Integer.parseInt(input.nextLine());\n\t\tint W = Integer.parseInt(input.nextLine());\n\t\t\n\t\tint[] v = new int[N];\n\t\t\n\t\tfor(int i = 0; i < N; i++) v[i... | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int N = Integer.parseInt(input.nextLine());
int W = Integer.parseInt(input.nextLine());
int[] v = new int[N];
for(int i = 0; i < N; i++) v[i] = i;
for(int i = 0; i < 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,
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
],
[
121,
5
],
[
121,
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{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint w = sc.nextInt();\n\t\tint h = sc.nextInt();\n\n\t\tint[] ary = new int[w];\n\t\tfor (int i = 0; i < w; i++)\n\t\t{\n\t\t\tary[i] = i + 1;\n\t\t}\n\n\t\tfor (int 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 h = sc.nextInt();
int[] ary = new int[w];
for (int i = 0; i < w; i++)
{
ary[i] = i + 1;
}
for (int i = 0; i < h; i++)
{
String ab = sc.next(... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
17,
0,
13,
4,
18,
13,
0,
13,
4,
18,
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
],
[
128,
5
],
[
128,
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 public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n sc.useDelimiter(\",|\\n\");\n int w=0,n=0;\n int[] data=new int[30];\n w=sc.nextInt();\n n=sc.nextInt();\n for(int i=0;i<w;i++){\n data[i]=i+1;\n }\n for(int j=0;j<n;j++){\n i... | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
sc.useDelimiter(",|\n");
int w=0,n=0;
int[] data=new int[30];
w=sc.nextInt();
n=sc.nextInt();
for(int i=0;i<w;i++){
data[i]=i+1;
}
for(int j=0;j<n;j++){
int a=sc.nextInt();
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
41,
13,
0,
13,
20,
13,
0,
13,
20,
17,
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
],
[
212,
5
],
[
212,
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\tScanner sc = new Scanner(System.in);\n\tint d;\n\tint w = sc.nextInt();\n\tint n = sc.nextInt();\n\tint[] line;\n\tint[] a;\n\tline = new int[w];\n\ta = new int[2];\n\tfor(int i=0;i<w;i++) line[i] = i+1;\n\tfor(int i=0;... | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int d;
int w = sc.nextInt();
int n = sc.nextInt();
int[] line;
int[] a;
line = new int[w];
a = new int[2];
for(int i=0;i<w;i++) line[i] = i+1;
for(int i=0;i<n;i++){
String s = sc... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
4,
18,
20,
17,
41,
13,
4,
18,
13,
41,
13,
4,
18,
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,
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
],
[
11,
12
],
[
12,
13
],
[
11,
14
],
... | [
"import java.util.Scanner;\n\nclass Main {\n private static void solve() {\n Scanner scanner = new Scanner(System.in).useDelimiter(\"[,\\\\s]+\");\n\n int w = scanner.nextInt();\n int n = scanner.nextInt();\n int[] number = new int[w + 1];\n for (int i = 1; i <= w; i++) {\n ... | import java.util.Scanner;
class Main {
private static void solve() {
Scanner scanner = new Scanner(System.in).useDelimiter("[,\\s]+");
int w = scanner.nextInt();
int n = scanner.nextInt();
int[] number = new int[w + 1];
for (int i = 1; i <= w; i++) {
number[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,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
... | [
[
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;\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 ans[] = new int[w];\n\t\tfor (int i=0;i<w;i++) {\n\t\t\tans[i] = i+1;\n\t\t}\n\t\tfor (int i=0;i<n;i++) {\n\t\t\tString... | 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 ans[] = new int[w];
for (int i=0;i<w;i++) {
ans[i] = i+1;
}
for (int i=0;i<n;i++) {
String line = sc.next();
int a = line.in... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
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,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
152,
8
],
[
152,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
11,
14
]... | [
"import java.util.Scanner;\nimport java.lang.Math;\n\npublic class Main {\n\n\tpublic static void main(String args[]){\n\n\t\tint w,n,a,b,temp;\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tw = Integer.parseInt(in.next());\n\t\tn = Integer.parseInt(in.next());\n\t\t\n\t\tint lot[] = new int[w];\n\t\t\n\t\tfo... | import java.util.Scanner;
import java.lang.Math;
public class Main {
public static void main(String args[]){
int w,n,a,b,temp;
Scanner in = new Scanner(System.in);
w = Integer.parseInt(in.next());
n = Integer.parseInt(in.next());
int lot[] = new int[w];
for(int i=0;i<w;i++){
lot[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,
0,
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,
17,
11,
1,
41,
... | [
[
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\n\npublic class Main{\n \n public static void main(String[] args) {\n Scanner sc =new Scanner(System.in);\n \n int w =sc.nextInt();\n int n=sc.nextInt();\n \n int[] num;\n num=new int[w];\n\n for(int i=0;i<w;i++){\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[] num;
num=new int[w];
for(int i=0;i<w;i++){
num[i]=i+1;
... |
[
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,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
13,
17,
11,
... | [
[
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 public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n sc.useDelimiter(\",|\\n\");\n int w = sc.nextInt();\n int n = sc.nextInt();\n int[] num;\n num = new int[w];\n int i;\n for... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
sc.useDelimiter(",|\n");
int w = sc.nextInt();
int n = sc.nextInt();
int[] num;
num = new int[w];
int i;
for(i=0;i<w;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,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
13,
17,
42,
2,
40,
13... | [
[
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 public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int w = scan.nextInt();//縦線の数\n int n = scan.nextInt();//横線の本数\n int[] amida = new int[w];\n int copy = 0;\n for(int i=0;i<amida.length;... | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int w = scan.nextInt();//縦線の数
int n = scan.nextInt();//横線の本数
int[] amida = new int[w];
int copy = 0;
for(int i=0;i<amida.length;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
],
[
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 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[w];\n for(int i=0;i<a.length;i++){\n a[i]=i+1;\n }\n for(int j=... | 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[w];
for(int i=0;i<a.length;i++){
a[i]=i+1;
}
for(int j=0;j<n;j++){
... |
[
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,
30,
0,
18,
13,
13,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
127,
5
],
[
127,
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 num[]=new int[w+1];\n\t\tfor(int i=1;i<=w;i++){\n\t\t\tnum[i]=i;\n\t\t}\n\n\t\tint n=sc.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString[] str=sc.nex... | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int w=sc.nextInt();
int num[]=new int[w+1];
for(int i=1;i<=w;i++){
num[i]=i;
}
int n=sc.nextInt();
for(int i=0;i<n;i++){
String[] str=sc.next().split(",");
int a=Integer.parse... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
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
],
[
0,
10
],
[
194,
11
],
[
194,
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 IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] num;\n\t\tString str;\n\t\t\n\t\tint tmp... | 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[] num;
String str;
int tmp;
int W = Integer.parseIn... |
[
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,
2,
13,
17,
41,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1... | [
[
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
],
[
12,
14
],... | [
"import java.util.Scanner;\n\n\npublic class Main{\npublic static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint w=Integer.valueOf(scan.nextLine());\n\tint n=Integer.valueOf(scan.nextLine());\n\tint[] a=new int[n];\n\tint[] b=new int[n];\n\tint[] lots=new int[w+1];\n\tint temp;\n\n\tfor... | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int w=Integer.valueOf(scan.nextLine());
int n=Integer.valueOf(scan.nextLine());
int[] a=new int[n];
int[] b=new int[n];
int[] lots=new int[w+1];
int temp;
for(int i=1;i<lots.length;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,
0,
18,
13,
13,
2,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
174,
5
],
[
174,
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 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 int a=0,b=0;\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;
int a=0,b=0;
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,
38,
5,
13,
30,
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,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
156,
11
],
[
156,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{\n int w = Integer.parseInt(reader.readL... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
try{
int w = Integer.parseInt(reader.readLine());
... |
[
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,
17,
41,
13,
20,
17,
41,
13,
20,
17,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
197,
5
],
[
197,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
... | [
"import java.io.*;\n \npublic class Main{\n public static void main(String[] args){\n BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n String s,t,u;\n int a,b,hako;\n hako=0;\n String[] abc=new String[2];\n int[] xyz=new int[2];\n try{... | import java.io.*;
public class Main{
public static void main(String[] args){
BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
String s,t,u;
int a,b,hako;
hako=0;
String[] abc=new String[2];
int[] xyz=new int[2];
try{
... |
[
7,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
20,
23,
13,
12,
13,
30,
0,
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,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
140,
5
],
[
140,
6
],
[
6,
7
],
[
140,
8
],
[
8,
9
],
[
8,
10
],
[
10,
11
],
[
8,
12
],
[
12,
13
],
[
140,
14
... | [
"import java.util.Scanner;\n\npublic class Main {\n\tprivate Scanner sc;\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main();\n\t}\n\t\n\tpublic Main() {\n\t\tsc = new Scanner(System.in);\n\n\t\tint num = Integer.parseInt(sc.nextLine());\n\t\tint[] e = new int[num];\n\t\tfor (int i = 0; i < num; i++) {\... | import java.util.Scanner;
public class Main {
private Scanner sc;
public static void main(String[] args) {
new Main();
}
public Main() {
sc = new Scanner(System.in);
int num = Integer.parseInt(sc.nextLine());
int[] e = new int[num];
for (int i = 0; i < num; i++) {
e[i] = i + 1;
}
int lim =... |
[
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,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
133,
11
],
[
133,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.awt.print.Printable;\nimport java.util.Scanner;\nimport javax.sound.midi.SysexMessage;\n \npublic class Main{ \n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int w = sc.nextInt();\n int amidaArray[] = new i... | import java.awt.print.Printable;
import java.util.Scanner;
import javax.sound.midi.SysexMessage;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int w = sc.nextInt();
int amidaArray[] = new int[n+1];
... |
[
7,
15,
13,
17,
15,
13,
17,
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,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
128,
11
],
[
128,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.Scanner;\nimport java.lang.Math;\nimport java.math.BigDecimal;\n\npublic class Main{\n\t\n\tpublic static void main(String[] args){\n\n\t\tScanner s = new Scanner(System.in);\n\t\ts.useDelimiter(\"\\\\s*,\\\\s*|\\\\s\");\n\t\t\n\t\tint w = s.nextInt();\n\t\tint n = s.nextInt();\n\t\t\t\t\n\t\tint[... | import java.util.Scanner;
import java.lang.Math;
import java.math.BigDecimal;
public class Main{
public static void main(String[] args){
Scanner s = new Scanner(System.in);
s.useDelimiter("\\s*,\\s*|\\s");
int w = s.nextInt();
int n = s.nextInt();
int[] x = new int[w];
for(int i = 0; i < 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,
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
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"\n\nimport java.util.Scanner;\n\nclass Main{\n\n\n\tpublic static void main(String[] a){\n\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\tint tatebo = sc.nextInt();\n\t\tint yokobo = sc.nextInt();\n\n\t\tint num [] = new int[tatebo];\n\t\tfor(int i = 0; i < tatebo; i++) {\n\t\t\tnum[i] = i + 1;\n\t\t}\n\n\n\t\... |
import java.util.Scanner;
class Main{
public static void main(String[] a){
Scanner sc = new Scanner(System.in);
int tatebo = sc.nextInt();
int yokobo = sc.nextInt();
int num [] = new int[tatebo];
for(int i = 0; i < tatebo; i++) {
num[i] = i + 1;
}
for(int i = 0; i < yokobo; i++) {
Strin... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
20,
2,
13,
17,
17,
0,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[... | [
"import java.util.*;\nclass Main{\n \n public static void main(String args[]){\n int w,n;\n int[][] Edge;\n int[] Ans;\n Scanner in = new Scanner(System.in);\n String[] s;\n \n \n w = in.nextInt();\n n = in.nextInt();\n Edge = new int[w+1][2];\n Ans = new int[w+1];\n for(int i=... | import java.util.*;
class Main{
public static void main(String args[]){
int w,n;
int[][] Edge;
int[] Ans;
Scanner in = new Scanner(System.in);
String[] s;
w = in.nextInt();
n = in.nextInt();
Edge = new int[w+1][2];
Ans = new int[w+1];
for(int i=1;i<=w;i++)Ans[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,
17,
11,
1,
41,
13,
17,
2,
13,
18,
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
],
[
185,
8
],
[
185,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
]... | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n // Here your code !\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int VerticalLineNum = Integer.parseInt(br.... | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
// Here your code !
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int VerticalLineNum = Integer.parseInt(br.readLine());... |
[
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,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
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.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.List;\n\nclass Main {\n public static void main(String[] args) {\n try {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n \tint verticalLineNum =... | import java.io.BufferedReader;
import java.io.InputStreamReader;
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 verticalLineNum = Integer.parseInt... |
[
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,
30,
0,
18,
13,
13,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
... | [
[
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;\nclass Main{\n\tpublic static void main(String[] a){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint w = scan.nextInt();\n\t\tint[] line = new int[w + 1];\n\t\tfor(int i = 1; i <= w; i++){\n\t\t\tline[i] = i;\n\t\t}\n\t\tint n = scan.nextInt();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\... | import java.util.Scanner;
class Main{
public static void main(String[] a){
Scanner scan = new Scanner(System.in);
int w = scan.nextInt();
int[] line = new int[w + 1];
for(int i = 1; i <= w; i++){
line[i] = i;
}
int n = scan.nextInt();
for(int i = 0; i < n; i++){
String str = scan.next();
String[... |
[
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
],
[
164,
5
],
[
164,
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\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint w = sc.nextInt();\n\t\tint[] k = new int[w];\n\t\tfor(int i = 0; i < w; i++){\n\t\t\tk[i] = i+1;\n\t\t}\n\t\tint n = sc.nextInt();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString s... | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int w = sc.nextInt();
int[] k = new int[w];
for(int i = 0; i < w; i++){
k[i] = i+1;
}
int n = sc.nextInt();
for(int i = 0; i < n; i++){
String s = sc.next();
int h = 0;
for(h =... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
2,
4,
18,
13,
4,
18,
13,
17,
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,
13,
42,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
127,
8
],
[
127,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
]... | [
"import java.io.*;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\tint l=Integer.parseInt(s.nextLine())+1;\n\t\tint x=Integer.parseInt(s.nextLine());\n\t\tint[] p = new int[l];\n\t\... | import java.io.*;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
int l=Integer.parseInt(s.nextLine())+1;
int x=Integer.parseInt(s.nextLine());
int[] p = new int[l];
for(int i=0;i<l;i++)p[i]... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
20,
41,
13,
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,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.io.*;\n\nclass Main {\n\tpublic static void main(String args[]) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString t[];\n\t\t\tint w = Integer.parseInt(reader.readLine());\n\t\t\tint n = Integer.parseInt(reader.readLine());\n\t\t\tint a[] = n... | import java.io.*;
class Main {
public static void main(String args[]) {
try {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String t[];
int w = Integer.parseInt(reader.readLine());
int n = Integer.parseInt(reader.readLine());
int a[] = new int[w];
for(int i = 0;i < ... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
38,
5,
13,
30,
30,
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,
30,
30,
0,
... | [
[
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
],
[
8,
14
],
... | [
"import java.io.*;\n\npublic class Main{\n public static void main(String[] args){\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int w, n;\n try{\n w = Integer.parseInt(reader.readLine());\n n = Integer.parseInt(reader.readLine());\n int[] b = new int[w];... | import java.io.*;
public class Main{
public static void main(String[] args){
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int w, n;
try{
w = Integer.parseInt(reader.readLine());
n = Integer.parseInt(reader.readLine());
int[] b = new int[w];
for(int... |
[
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,
2,
13,
17,
41,
13,
20,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
192,
5
],
[
192,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.*;\npublic class Main {\n\n\tpublic void doIt(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint w = sc.nextInt();\n\t\tint n = sc.nextInt();\n\t\tint [][] list1 = new int[n][w+1];\n\t\tint [][] list2 = new int[n][w+1];\n\t\tfor(int i=0; i < n; i++){\n\t\t\tString [] input = sc.next().split(\",... | import java.util.*;
public class Main {
public void doIt(){
Scanner sc = new Scanner(System.in);
int w = sc.nextInt();
int n = sc.nextInt();
int [][] list1 = new int[n][w+1];
int [][] list2 = new int[n][w+1];
for(int i=0; i < n; i++){
String [] input = sc.next().split(",");
int input0 = Integer.pars... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
2,
13,
17,
0,
18,
13,
2,
13,
17,
18,
13,
2,
13,
17,
0,
18,
13,
2,
13,
17,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
215,
5
],
[
215,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
11,
13
],
[
13,
14
]... | [
"import java.util.Scanner;\n\npublic class Main{\n\tpublic static void swap(int[] m, int x, int y){\n\t\tint temp = m[x-1];\n\t\tm[x-1] = m[y-1];\n\t\tm[y-1] = temp;\n\t}\n\t\t\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\t\n\t\tint w = stdIn.nextInt();\n\t\tint[] m = ... | import java.util.Scanner;
public class Main{
public static void swap(int[] m, int x, int y){
int temp = m[x-1];
m[x-1] = m[y-1];
m[y-1] = temp;
}
public static void main(String[] args){
Scanner stdIn = new Scanner(System.in);
int w = stdIn.nextInt();
int[] m = new int[w];
for(int i = 0; i < w; i... |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
2,
13,
17,
2,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
41,
13,
4... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
196,
5
],
[
196,
6
],
[
6,
7
],
[
6,
8
],
[
196,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
... | [
"import java.util.*;\npublic class Main{\n public static void main(String[] args){\n\tnew Main().run();\n }\n Scanner sc = new Scanner(System.in);\n\n void run(){\n\twhile(sc.hasNext()){\n\t int w = sc.nextInt();\n\t int n = sc.nextInt();\n\t int[][] lot = new int[n+1][w+1];\n\t int i=1;\n\t... | import java.util.*;
public class Main{
public static void main(String[] args){
new Main().run();
}
Scanner sc = new Scanner(System.in);
void run(){
while(sc.hasNext()){
int w = sc.nextInt();
int n = sc.nextInt();
int[][] lot = new int[n+1][w+1];
int i=1;
while(i<=n){
String... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
4,
13,
23,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
17,
41,
13,
4,
18,
13,
41,
13,
4,
13,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
152,
5
],
[
152,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
6,
11
],
[
11,
12
],
[
152,
13
],
[
13,
14
... | [
"import java.util.*;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\tscan();\n\t\t\n\t}\n\t//??\\????°???¨??¢??°\n\tpublic static void scan() {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tscanner.useDelimiter(\"\\\\s*,\\\\s*|\\n\");\n\t\tint W = scanner.nextInt();\n\t\tint[] amida =... | import java.util.*;
public class Main{
public static void main(String[] args) {
scan();
}
//??\????°???¨??¢??°
public static void scan() {
Scanner scanner = new Scanner(System.in);
scanner.useDelimiter("\\s*,\\s*|\n");
int W = scanner.nextInt();
int[] amida = Amida(W);
int N = scanner.nextInt();
... |
[
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,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
13,
17,
0,
18,
13,
13,
17,
11,
1,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
146,
5
],
[
146,
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 scan = new Scanner(System.in);\n\t\tint w = scan.nextInt();\n\t\tint n = scan.nextInt();\n\t\tint[] s = new int[w + 1];\n\t\tfor (int i = 0; i < w; i++) {\n\t\t\ts[i] = i + 1;\n\t\t}\n\t\ts[w] = 0;\n\t\tfor (in... | import java.util.Scanner;
public class Main{
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
int w = scan.nextInt();
int n = scan.nextInt();
int[] s = new int[w + 1];
for (int i = 0; i < w; i++) {
s[i] = i + 1;
}
s[w] = 0;
for (int j = 0; j < n; j++) {
String str ... |
[
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,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
13,
17,
41,
13,
20,
1... | [
[
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.util.*;\nimport java.math.*;\n\nclass Main {\n public static void main (String[] args) {\n Scanner scanner = new Scanner(System.in);\n int vNum = scanner.nextInt();\n int hNum = scanner.nextInt();\n\n int[] v = new int[vNum];\n for (int ii = 0; ii < v.length; ii++) {\n v[ii] = ii +... | import java.util.*;
import java.math.*;
class Main {
public static void main (String[] args) {
Scanner scanner = new Scanner(System.in);
int vNum = scanner.nextInt();
int hNum = scanner.nextInt();
int[] v = new int[vNum];
for (int ii = 0; ii < v.length; ii++) {
v[ii] = ii + 1;
}
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,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17... | [
[
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\t// キーボード入力\n\t\tScanner stdIn = new Scanner( System.in );\n\t\tint w = stdIn.nextInt();//縦棒の数\n\t\tint n = stdIn.nextInt();//横棒の数\n\t\tString[] yoko = new String[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tyoko[i] = stdIn.n... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// キーボード入力
Scanner stdIn = new Scanner( System.in );
int w = stdIn.nextInt();//縦棒の数
int n = stdIn.nextInt();//横棒の数
String[] yoko = new String[n];
for(int i=0;i<n;i++){
yoko[i] = stdIn.next();
}
int[] amida = new ... |
[
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,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
2,
13,
17,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
140,
5
],
[
140,
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\tScanner sc = new Scanner(System.in);\n int num[],c,i,n,w;\n w = sc.nextInt();\n n = sc.nextInt();\n\n num = new int[30];\n\n for(i=0;i<w;i++) num[i] = i + 1;\n\n for (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 num[],c,i,n,w;
w = sc.nextInt();
n = sc.nextInt();
num = new int[30];
for(i=0;i<w;i++) num[i] = i + 1;
for (i=0;i<n;i++){
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,
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
],
[
136,
5
],
[
136,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner input=new Scanner(System.in);\n\t\tint hor=input.nextInt();\n\t\tint ver=input.nextInt();\n\t\t\n\t\tint[] num=new int[hor];\n\t\t\n\t\tfor(int i=0;i<num.length;i++){\n\t\t\tnum[i]=i+1;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<... | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner input=new Scanner(System.in);
int hor=input.nextInt();
int ver=input.nextInt();
int[] num=new int[hor];
for(int i=0;i<num.length;i++){
num[i]=i+1;
}
for(int i=0;i<ver;i++){
String[] str=input.next().spl... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
4,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
176,
5
],
[
176,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
6,
11
],
[
11,
12
],
[
176,
13
],
[
13,
14
... | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tdoIt();\n\t}\n\tpublic static void doIt(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint w = sc.nextInt();\n\t\tint n = sc.nextInt();\n\t\tint[][] hor = new int[n][2];\n\t\... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
doIt();
}
public static void doIt(){
Scanner sc = new Scanner(System.in);
int w = sc.nextInt();
int n = sc.nextInt();
int[][] hor = new int[n][2];
for(int i = 0; i < n; i++){
St... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
13,
11,
1,
4... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
171,
8
],
[
171,
9
],
[
9,
10
],
[
9,
11
],
[
171,
12
],
[
12,
13
],
[
12,
14
... | [
"import java.util.ArrayList;\nimport java.util.Scanner;\n\n\npublic class Main {\n\tprivate\tstatic\tScanner\t\t\t\tstdin = null;\n\tprivate\tstatic\tArrayList<Integer>\tlist = null;\n\n\tstatic {\n\t\tlist = new ArrayList<Integer>();\n\t\tstdin = new Scanner(System.in);\n\t}\n\n\t/**\n\t * @param args\n\t */\n\t... | import java.util.ArrayList;
import java.util.Scanner;
public class Main {
private static Scanner stdin = null;
private static ArrayList<Integer> list = null;
static {
list = new ArrayList<Integer>();
stdin = new Scanner(System.in);
}
/**
* @param args
*/
public static void main(String[] args) {
... |
[
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
],
[
138,
5
],
[
138,
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 T[] = new int[w];\n\t\tfor(int i=0;i<w;i++){\n\t\t\t\tT[i]=i+1;\n\t\t\t\t//System.out.println(T[i]);\n\t\t\t}\n\t\tint n = sc.nextInt();\n\t\t\tfor... | import java.util.Scanner;
public class Main {
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int w = sc.nextInt();
int T[] = new int[w];
for(int i=0;i<w;i++){
T[i]=i+1;
//System.out.println(T[i]);
}
int n = sc.nextInt();
for(int i = 0;i<n;i++ ){
int temp = 0;
... |
[
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,
17,
41,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
17,
0,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
174,
5
],
[
174,
6
],
[
6,
7
],
[
6,
8
],
[
174,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
... | [
"import java.util.Scanner;\n\n\npublic class Main {\n\t\n\tScanner sc = new Scanner(System.in);\n\t\n\tvoid run() {\n\t\t\n\t\tint w = sc.nextInt();\n\t\tint n = sc.nextInt();\n\t\t\n\t\tint[][] h = new int [n][2];\n\t\t\n\t\tString[] s;\n\t\tint[] ans = new int [w];\n\t\t\n\t\tfor (int i=0;i<n;i++) {\n\t\t\ts = sc... | import java.util.Scanner;
public class Main {
Scanner sc = new Scanner(System.in);
void run() {
int w = sc.nextInt();
int n = sc.nextInt();
int[][] h = new int [n][2];
String[] s;
int[] ans = new int [w];
for (int i=0;i<n;i++) {
s = sc.next().split(",");
h[i][0] = Integer.parse... |
[
7,
15,
13,
17,
15,
13,
17,
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,
2,
13,
17,
41,
13,
4,
18,
13... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
117,
11
],
[
117,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.lang.System;\nimport java.lang.Exception;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in).useDelimiter(\"\\\\D\");\n\n int w = sc.nextInt();\n int[] ans = new int[w];\n for (int i = 0; i < ... | import java.lang.System;
import java.lang.Exception;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in).useDelimiter("\\D");
int w = sc.nextInt();
int[] ans = new int[w];
for (int i = 0; i < w; i++) {
... |
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
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,
0,
13,
20,
13,
11,
1,
0,
13,
17,
2,
13,
13... | [
[
0,
1
],
[
267,
2
],
[
267,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
5,
11
],
[
11,
12
],
[
5,
13
],
[
13,
14
],... | [
"public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int w, n;\n int[] a;\n int i, j, k, x, y, t, tmp;\n String str;\n char[] ch;\n\n w = sc.nextInt();\n n = sc.nextInt();\n a = new int[w... | public class Main{
public void run(java.io.InputStream in, java.io.PrintStream out){
java.util.Scanner sc = new java.util.Scanner(in);
/*answer*/
int w, n;
int[] a;
int i, j, k, x, y, t, tmp;
String str;
char[] ch;
w = sc.nextInt();
n = sc.nextInt();
a = new int[w];
for(i = 0;... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
18,
13,
13,
38,
5,
13,
30,
30,
41,
13,
20,
41,
13,
4,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
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
],
[
0,
10
],
[
194,
11
],
[
194,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.io.InputStream;\nimport java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\n /** 区切り文字 */\n private static final String DELIMITER = \",\";\n\n /**\n * メインメソッド\n *\n * @param args\n */\n public static void main(String[] args) {\n // ローカルテスト用。提出時は\"Sy... | import java.io.InputStream;
import java.util.Arrays;
import java.util.Scanner;
public class Main {
/** 区切り文字 */
private static final String DELIMITER = ",";
/**
* メインメソッド
*
* @param args
*/
public static void main(String[] args) {
// ローカルテスト用。提出時は"System.in"に修正。
In... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
2,
13,
17,
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
],
[
0,
7
],
[
138,
8
],
[
138,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
]... | [
"import java.util.*;\nimport java.text.*;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\tint w = in.nextInt();\n\t\tfor(int i=0; i<w; i++){\n\t\t\tlist.add(i+1);\n\t\t}\n\t\t\n\t\tint n = in.nex... | import java.util.*;
import java.text.*;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
ArrayList<Integer> list = new ArrayList<Integer>();
int w = in.nextInt();
for(int i=0; i<w; i++){
list.add(i+1);
}
int n = in.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,
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 public static void main(String[]args){\n \tScanner sc=new Scanner(System.in);\n \tint w=sc.nextInt();\n \tint n=sc.nextInt();\n \tint[] values=new int[w];\n \tfor(int i=0;i<values.length;i++){\n \t\tvalues[i]=i+1;\n \t}\n\n \tfor(int i=0;i<n;i++){\n \t\tS... | 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 str=sc.next();
Stri... |
[
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,
30,
0,
18,
13,
13,
2,
13,
1... | [
[
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.*;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t//scan.useDelimiter(\",|?\\n\");\n\t\tint w=scan.nextInt();\n\t\tint n=scan.nextInt();\n\t\tString input;\n\t\tint a,b;\n\t\tint[] ans=new int[w];\n\t\tfor(int i=... | import java.io.*;
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
//scan.useDelimiter(",|?\n");
int w=scan.nextInt();
int n=scan.nextInt();
String input;
int a,b;
int[] ans=new int[w];
for(int i=0;i<w;i++){
ans[i]=i+1;
}
//sc... |
[
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,
0,
18,
13,
13,
2,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
... | [
[
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;\n\npublic class Main {\n public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\t\n\tint w = scan.nextInt(); // 縦線の数\n\tint[] narabi = new int[w]; // 現在の阿弥陀の数字の並び\n\tfor (int i=0; i<w; i++)\n\t narabi[i] = i+1;\n\n\tint n = scan.nextInt(); // 横線の数\n ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int w = scan.nextInt(); // 縦線の数
int[] narabi = new int[w]; // 現在の阿弥陀の数字の並び
for (int i=0; i<w; i++)
narabi[i] = i+1;
int n = scan.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,
30,
0,
18,
13,
13,
13,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
143,
5
],
[
143,
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\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n//\t\tsc.useDelimiter(\"\\\\r*\\\\n*,*\");\n//\t\tint a = sc.nextInt();\n//\t\tint b = sc.nextInt();\n//\t\tSystem.out... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
// sc.useDelimiter("\\r*\\n*,*");
// int a = sc.nextInt();
// int b = sc.nextInt();
// System.out.println(a);
// System.out.printl... |
[
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,
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
],
[
120,
5
],
[
120,
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(\"\\\\D+\");\n\n\t\tint w = scan.nextInt();\n\t\tint n = scan.nextInt();\n\t\t\n\t\tint[] a = new int[w];\n\t\tfor(int i=0;i<w;i++)\n\t\t\ta[i] = i+1;\n\t\... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
scan.useDelimiter("\\D+");
int w = scan.nextInt();
int n = scan.nextInt();
int[] a = new int[w];
for(int i=0;i<w;i++)
a[i] = i+1;
for(int i=0;i<n;i++) {
int x = scan... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
4,
18,
20,
17,
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,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
111,
5
],
[
111,
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\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in).useDelimiter(\"\\\\D\");\n\t\tint w = s.nextInt();\n\t\tint n = s.nextInt();\n\t\tint[] l = new int[w];\n\t\tfor(int i = 0; i < w; ++i) {\n\t\t\tl[i] = i + 1;\n\t\t}\n\t\tfor(int i =... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in).useDelimiter("\\D");
int w = s.nextInt();
int n = s.nextInt();
int[] l = new int[w];
for(int i = 0; i < w; ++i) {
l[i] = i + 1;
}
for(int i = 0; i < n; ++i) {
int a = s.nextInt... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
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,
13,
11,
1,
41,
13,
17,
2... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
154,
5
],
[
154,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
13,
14
... | [
"import java.util.*;\n\npublic class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\ttry\n\t\t{\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint w, n, a, b, tmp;\n\t\t\tString input;\n\n\t\t\tw = sc.nextInt();\n\t\t\tn = sc.nextInt();\n\n\t\t\tint[] lots = new int[w];\n\t\t\tfor(int i = 0; i < w; ... | import java.util.*;
public class Main
{
public static void main(String[] args)
{
try
{
Scanner sc = new Scanner(System.in);
int w, n, a, b, tmp;
String input;
w = sc.nextInt();
n = sc.nextInt();
int[] lots = new int[w];
for(int i = 0; i < w; i++)
{
lots[i] = i + 1;
}
for(int ... |
[
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,
41,
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
],
[
159,
11
],
[
159,
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\t\tint w = Integer.parseInt(br.readLine());\n\t\t\tin... | 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 w = Integer.parseInt(br.readLine());
int n = Integer.parseInt... |
[
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
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"import java.io.*;\n\nclass Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br=\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tint n=Integer.parseInt(br.readLine());\n\t\tint m=Integer.parseInt(br.readLine());\n\t\tint[] line=new int[n];\n\t\tfor(int i=0;i... | import java.io.*;
class Main{
public static void main(String[] args)throws IOException{
BufferedReader br=
new BufferedReader(new InputStreamReader(System.in));
int n=Integer.parseInt(br.readLine());
int m=Integer.parseInt(br.readLine());
int[] line=new int[n];
for(int i=0;i<n;i++){
line[i]=i+1;
}
... |
[
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,
41,
13,
20,
13,
41,
13,
17,
41,
13,
17,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
... | [
[
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.*;\nimport java.util.*;\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 a[] = new int[w];\n\t\tint b[] = new int[n];\n\t\tint c[] = new int[n];\n\t\tint temp = 0;\n\t\tint i = 0;... | import java.io.*;
import java.util.*;
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[w];
int b[] = new int[n];
int c[] = new int[n];
int temp = 0;
int i = 0;
String str;
for(i=0;i<n;i++){... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
17,
41,
13,
17,
42,
2,
0... | [
[
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
],
[
224,
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) throws NumberFormatException, IOException {\n\n\t\tString strLine =\"\";\n\t\tBufferedReader stdReader =\n\t\t\t\tnew Buffer... | 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) throws NumberFormatException, IOException {
String strLine ="";
BufferedReader stdReader =
new BufferedReader(new InputStreamRea... |
[
7,
15,
13,
17,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
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,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
4,
8
],
[
8,
9
],
[
4,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.util.*;\nclass P\n{\n\tint a;\n\tint b;\n\tP(int a, int b)\n\t{\n\t\tthis.a = a;\n\t\tthis.b = b;\n\t}\n}\npublic class Main \n{\n\tpublic static void main(String[] args) \n\t{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint w = stdIn.nextInt();\n\t\tint n = stdIn.nextInt();\n\t\tList<P> list = n... | import java.util.*;
class P
{
int a;
int b;
P(int a, int b)
{
this.a = a;
this.b = b;
}
}
public class Main
{
public static void main(String[] args)
{
Scanner stdIn = new Scanner(System.in);
int w = stdIn.nextInt();
int n = stdIn.nextInt();
List<P> list = new ArrayList<P>();
for(int i = 0; i < n;... |
[
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,
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;\n\n\npublic class Main {\n public static void main(String[] args){\n \tScanner input = new Scanner(System.in);\n \tint n = input.nextInt();\n \tint m = input.nextInt();\n \tint[] num = new int[n];\n \tfor(int i = 0 ; i < n ; i++){\n \t\tnum[i] = (i+1);\n \t}\n \... | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
int n = input.nextInt();
int m = input.nextInt();
int[] num = new int[n];
for(int i = 0 ; i < n ; i++){
num[i] = (i+1);
}
for(int i = 0 ; i < m ; 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,
11,
1,
41,
13,
17,
2,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
138,
8
],
[
138,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
]... | [
"import java.util.Scanner;\nimport java.util.ArrayList;\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[] ac = new int[w];\n for(int i=0;i<w;i++){\n ac[i]=i+1;\n }\n for(int i=0;i... | import java.util.Scanner;
import java.util.ArrayList;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int w = sc.nextInt();
int n = sc.nextInt();
int[] ac = new int[w];
for(int i=0;i<w;i++){
ac[i]=i+1;
}
for(int i=0;i<n;i++){
St... |
[
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,
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... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
144,
11
],
[
144,
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 = br.readLine();\n\t\tint verticalLines... | 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 = br.readLine();
int verticalLines = Integer.parseInt(... |
[
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,
2,
13,
17,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
204,
5
],
[
204,
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\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[][] map = new int[n][w+1];\n\t\tint[] ans = new int[w+1];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString s = sc.next();\n\t\t... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int w = sc.nextInt();
int n = sc.nextInt();
int[][] map = new int[n][w+1];
int[] ans = new int[w+1];
for(int i=0;i<n;i++){
String s = sc.next();
int a, b;
if(s.substring(1,2).co... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
20,
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,
11,
1,
41,
13,
17,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
149,
5
],
[
149,
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\tpublic static void main(String[] args){\n\t\tint w;\n\t\tint n;\n\t\t\n\t\t//データ入力の準備\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//あみだくじのサイズを入力\n\t\tw = sc.nextInt();\n\t\tn = sc.nextInt();\n\t\t\n\t\t//データ格納用配列の追加\n\t\tint[] data = new int[w];\n\t\tfor ... | import java.util.Scanner;
public class Main{
public static void main(String[] args){
int w;
int n;
//データ入力の準備
Scanner sc = new Scanner(System.in);
//あみだくじのサイズを入力
w = sc.nextInt();
n = sc.nextInt();
//データ格納用配列の追加
int[] data = new int[w];
for (int i = 0; i < w; i++){
data[i] = i + 1;
}... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
13,
28,
13,
4,
18,
13,
30,
30,
0,
13,
4,
18,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
257,
11
],
[
257,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n /**\n * あみだくじの情報を受け取り、その結果を表示する。\n *\n * @param args\n */\n public static void main(String[] args) throws IOException {\n\n // 入力値を受け取る\n Lots lots = readLot... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
/**
* あみだくじの情報を受け取り、その結果を表示する。
*
* @param args
*/
public static void main(String[] args) throws IOException {
// 入力値を受け取る
Lots lots = readLots();
// あみ... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
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,
41,
13,
2... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
160,
5
],
[
160,
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\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str;\n int w = sc.nextInt();\n int n = sc.nextInt();\n int[] tate = new int[w];\n for(int i=0;i<w;i++) {\n \ttate[i]=i+1... | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String str;
int w = sc.nextInt();
int n = sc.nextInt();
int[] tate = new int[w];
for(int i=0;i<w;i++) {
tate[i]=i+1;
}
... |
[
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,
13,
13,
41,
13,
4,
13,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
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.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.List;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// ストリームを作成する\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSyst... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
class Main {
public static void main(String[] args) {
// ストリームを作成する
BufferedReader reader = new BufferedReader(new InputStreamReader(
System.in));
int vertical =... |
[
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
],
[
132,
5
],
[
132,
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 scanner = new Scanner(System.in);\n int w = scanner.nextInt();\n int n = scanner.nextInt();\n int[] numbers = new int[w];\n \n for (int i = 0; i < w; i++) {\n num... | import java.util.*;
public class Main {
public static void main (String[] args) {
Scanner scanner = new Scanner(System.in);
int w = scanner.nextInt();
int n = scanner.nextInt();
int[] numbers = new int[w];
for (int i = 0; i < w; i++) {
numbers[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,
20,
13,
41,
13,
41,
13,
41,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
13,
17,
1... | [
[
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 scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n int M = scanner.nextInt();\n int P[] = new int[N];\n int a,b,x;\n String[] str;\n\n for(int i=0;i<M;i++){\n P[i] = i + 1;\n }\n... | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
int M = scanner.nextInt();
int P[] = new int[N];
int a,b,x;
String[] str;
for(int i=0;i<M;i++){
P[i] = i + 1;
}
for(int i=0;i<... |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
17,
41,
13,
12,
13,
30,
41,
13,
4,
18,
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,
41,
13,
4,
18,
13,
11,
1,
41,
13,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
129,
5
],
[
129,
6
],
[
6,
7
],
[
6,
8
],
[
129,
9
],
[
9,
10
],
[
9,
11
],
[
129,
12
],
[
12,
13
],
[
129,
14... | [
"import java.util.Scanner;\n\npublic class Main {\n public static Scanner sc = new Scanner(System.in);\n public static long res = 0;\n public static int[] ary;\n public static void main(String[] args) throws Exception {\n int w = sc.nextInt();\n ary = new int[w+1];\n for (int i = 0;... | import java.util.Scanner;
public class Main {
public static Scanner sc = new Scanner(System.in);
public static long res = 0;
public static int[] ary;
public static void main(String[] args) throws Exception {
int w = sc.nextInt();
ary = new int[w+1];
for (int i = 0; i <= w; i++) ... |
[
7,
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,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
153,
5
],
[
153,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
11,
13
],
[
8,
14
],... | [
"import java.util.Scanner;\n\npublic class Main\n{\n\tprivate static void swap(int r[],int a,int b)\n\t{\n\t\tint tmp=r[a];\n\t\tr[a]=r[b];\n\t\tr[b]=tmp;\n\t}\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan=new Scanner(System.in);\n\t\tint w=scan.nextInt();\n\t\tint n=scan.nextInt();\n\t\tint a,b;... | import java.util.Scanner;
public class Main
{
private static void swap(int r[],int a,int b)
{
int tmp=r[a];
r[a]=r[b];
r[b]=tmp;
}
public static void main(String[] args)
{
Scanner scan=new Scanner(System.in);
int w=scan.nextInt();
int n=scan.nextInt();
int a,b;
int[] r=new int[w];
for(int i=0;i<... |
[
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
183,
5
],
[
183,
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\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int h = sc.nextInt();\n sc.nextLine();\n int w = sc.nextInt();\n sc.nextLine();\n int[] f = new int[w];\n int[] l = new int[w];\n ... | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int h = sc.nextInt();
sc.nextLine();
int w = sc.nextInt();
sc.nextLine();
int[] f = new int[w];
int[] l = new int[w];
for(int i = 0;i... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
2,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
129,
5
],
[
129,
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\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint w = sc.nextInt();\n\t\tint[] sticks = new int[w + 1];\n\t\tint n = sc.nextInt();\n\n\t\tfor (int i = 1; i < sticks.length; i++)\n\t\t\tsticks[i] = i;\n\t\tfor (int 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[] sticks = new int[w + 1];
int n = sc.nextInt();
for (int i = 1; i < sticks.length; i++)
sticks[i] = i;
for (int i = 0; i < n; i++) {
String str =... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
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,
0,
18,
13,
2,
13,
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
],
[
139,
14
],
... | [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String readStr;\... |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String readStr;
int nu... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
41,
13,
41,
13,
20,
41,
13,
38,
5,
13,
30,
4,
18,
18,
13,
13,
17,
30,
38,
5,
13,
30,
30,
4,
18,
13,
30,
14,
2,
17,
0,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
261,
11
],
[
261,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\npublic class Main {\n\n\tpublic static void main(String[] a){\n\n\t\tint NumberOfColumn = 0;\n\t\tint NumberOfBar = 0;\n\t\tint[][] arr;\n\t\tint[] ans;\n\t\tBufferedReader bf = new BufferedReader(new InputStreamRea... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] a){
int NumberOfColumn = 0;
int NumberOfBar = 0;
int[][] arr;
int[] ans;
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
String tm... |
[
7,
15,
13,
17,
15,
13,
17,
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,
41,
13,
4,
18... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
170,
11
],
[
170,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.Scanner;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\npublic class Main {\npublic static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int[] num = new int[in.nextInt()];\n for (int i = 0; i < num.length; i++) {\n\tnum[i] = i + 1;\n }\n int count =... | import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int[] num = new int[in.nextInt()];
for (int i = 0; i < num.length; i++) {
num[i] = i + 1;
}
int count = in.nextInt();
... |
[
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
0,
18,
18,
13,
13,
17,
4,... | [
[
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.*;\n\nclass Main{\n public static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n\n\tint w = sc.nextInt();\n\tint n = sc.nextInt();\n\n\tint[][] change = new int[n][2];\n\tfor(int i=0; i<n; i++){\n\t String[] s = (sc.next()).split(\",\");\n\t change[i][0] = Integer.par... | import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int w = sc.nextInt();
int n = sc.nextInt();
int[][] change = new int[n][2];
for(int i=0; i<n; i++){
String[] s = (sc.next()).split(",");
change[i][0] = Integer.parseInt(s[0]);
change[i... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
4,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
17,
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... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
121,
5
],
[
121,
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\n public static void main(String[] args) {\n try (Scanner in = new Scanner(System.in)) {\n solve(in);\n }\n }\n\n private static void solve(Scanner in) {\n in.useDelimiter(\"\\\\D\");\n int w = in.nextInt();\n ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner in = new Scanner(System.in)) {
solve(in);
}
}
private static void solve(Scanner in) {
in.useDelimiter("\\D");
int w = in.nextInt();
int n = in.nextInt();... |
[
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,
0,
13,
20,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
147,
5
],
[
147,
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 Scanner scan = new Scanner(System.in);\n int w,n,i,temp;\n int[] num;\n String line;\n\n w=scan.nextInt();\n n=scan.nextInt();\n num = new int[w];\n for(i=0;i<w;i++... | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int w,n,i,temp;
int[] num;
String line;
w=scan.nextInt();
n=scan.nextInt();
num = new int[w];
for(i=0;i<w;i++){
nu... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
13,
17,
30,
41,
13,
4,
18,
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,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
153,
11
],
[
153,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.io.*;\nimport java.math.BigInteger;\nimport java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n int w = Integer.parseInt(br.readLine());\n ... | import java.io.*;
import java.math.BigInteger;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
int w = Integer.parseInt(br.readLine());
int[] ... |
[
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
],
[
129,
5
],
[
129,
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) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint w = sc.nextInt();\n\t\tint n = sc.nextInt();\n\n\t\tint[] array = new int[w];\n\t\tfor(int i = 0; i < w; i++){\n\t\t\tarray[i] = i + 1;\n\t\t}\n\t\tfor(... | import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
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++){
String[] ... |
[
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,
11,
1,
41,
13,
17,
2,
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
],
[
132,
11
],
[
132,
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\tint n = Integer.parseInt(br.readLine());\n\t\tint ... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
int m = Integer.parseInt... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
4,
18,
20,
17,
41,
13,
4,
18,
13,
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,
11,
1,
41,
13,
17,
2,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
111,
5
],
[
111,
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\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in).useDelimiter(\"\\\\s*,\\\\s*|\\\\n\");\n\t\t\n\t\tint VirticalLines = scan.nextInt();\n\t\tint hoirizontalLines = scan.nextInt();\n\n\t\tint[] lineNumber = new int[VirticalLines +... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in).useDelimiter("\\s*,\\s*|\\n");
int VirticalLines = scan.nextInt();
int hoirizontalLines = scan.nextInt();
int[] lineNumber = new int[VirticalLines + 1];
for(int i = 1; i <= Virtic... |
[
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,
41,
13,
17,
41,
13,
20,
41,
13,
17,
41,
13,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
14,
2,
13,
17,
30,
... | [
[
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
],
... | [
"import java.io.*;\nimport java.util.ArrayList;\nimport java.util.List;\n\nclass Main {\n public static void main(String[] args) {\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\\????????????????????????\n String line; // ??\\????????????????... | 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));// ??\????????????????????????
String line; // ??\???????????????????????\???
... |
[
7,
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,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
188,
11
],
[
188,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\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) {\n\n\tScanner sc = new Scanner(System.in);\n\t// ?¨??????\\?????¨?????... | import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main{
public static final int FIRST_NUMBER = 0;
public static final int SECOND_NUMBER = 1;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// ?¨??????\?????¨????????????????£?
int a... |
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
2,
4,
18,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
9,
11
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
... | [
"class Main\n{\n\tpublic static void main( String[] args )\n\t{\n\t\tjava.util.Scanner sc = new java.util.Scanner( System.in );\n\t\t\n\t\tint[] street = new int[sc.nextInt()+1];\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor( int w = 1 ; w < street.length ; w++ )\n\t\t\tstreet[w] = w;\n\t\t\t\n\t\tString in;\n\t\tStr... | class Main
{
public static void main( String[] args )
{
java.util.Scanner sc = new java.util.Scanner( System.in );
int[] street = new int[sc.nextInt()+1];
int n = sc.nextInt();
for( int w = 1 ; w < street.length ; w++ )
street[w] = w;
String in;
String[] sp;
int work = 0;
int change1 = ... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
38,
5,
13,
30,
30,
41,
13,
4,
... | [
[
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.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void swap(ArrayList<Integer> list, int a, int b){\n int c = list.get(a);\n list.set(a, list.get(b));\n list.set(b, c);\n }\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in... | import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void swap(ArrayList<Integer> list, int a, int b){
int c = list.get(a);
list.set(a, list.get(b));
list.set(b, c);
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
ArrayList<... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
17,
11,
1,
41,
13,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
195,
8
],
[
195,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
]... | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\n//public class Problem0011_DrawingLots {\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t//\tProblem0011_DrawingLots test = new Problem0011_DrawingLots();\n\t\t\tMain test = new Main();\n\t\t\t\n\t\t\tBufferedRead... | import java.io.BufferedReader;
import java.io.InputStreamReader;
//public class Problem0011_DrawingLots {
public class Main {
public static void main(String[] args) {
try {
// Problem0011_DrawingLots test = new Problem0011_DrawingLots();
Main test = new Main();
BufferedReader reader = new BufferedReader... |
[
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,
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,
11,
1,... | [
[
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
],
[
12,
14
],... | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tint w = sc.nextInt();\n\t\tint n = sc.nextInt();\n\t\tint[] x = new int[w];\n\t\tString empty = sc.nextLine();\n\n\t\tfor (int i = 0;... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int w = sc.nextInt();
int n = sc.nextInt();
int[] x = new int[w];
String empty = sc.nextLine();
for (int i = 0; i < x.length; i++) {
x[i] = ... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
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,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
4,
18,
13,
17,
0,
13,
20,
2,
13,
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
],
[
147,
14
],
... | [
"import java.io.*;\nimport java.lang.*;\nimport java.util.Scanner;\nimport java.util.Arrays;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint w, n, i, tmp;\n\t\tint L,R;\n\t\tint list[];\n\n\t\tw = sc.nextInt();\n\t\tn = sc.nextI... | import java.io.*;
import java.lang.*;
import java.util.Scanner;
import java.util.Arrays;
public class Main {
public static void main(String[] args) throws IOException{
Scanner sc = new Scanner(System.in);
int w, n, i, tmp;
int L,R;
int list[];
w = sc.nextInt();
n = sc.nextInt();
sc.useDelimiter(",| |\... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
... | [
[
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
],
[
13,
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\ttry{\n\t\t\tint w=Integer.parseInt(br.readLine());\n\t\t\tint n=Integer.parseInt(br.readLine());\n\t\t\tint rep;\n\t\t\tint[] line=n... | import java.io.*;
public class Main {
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
try{
int w=Integer.parseInt(br.readLine());
int n=Integer.parseInt(br.readLine());
int rep;
int[] line=new int[w+1];
for(int i=1;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,
41,
13,
41,
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
],
[
137,
5
],
[
137,
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[]argc){\n Scanner sc = new Scanner(System.in);\n int w = sc.nextInt();\n int n = sc.nextInt();\n int a,b,c;\n int[] t = new int[w];\n for(int i=0;i<w;i++){\n t[i]=i+1;\n }... | import java.util.Scanner;
public class Main{
public static void main(String[]argc){
Scanner sc = new Scanner(System.in);
int w = sc.nextInt();
int n = sc.nextInt();
int a,b,c;
int[] t = new int[w];
for(int i=0;i<w;i++){
t[i]=i+1;
}
for(int... |
[
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,
41,
13,
20,
17,
11,
1,
41,
13,
17... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
132,
5
],
[
132,
6
],
[
6,
7
],
[
6,
8
],
[
132,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
... | [
"import java.util.*;\n\npublic class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint w = sc.nextInt();\n\t\tint[] ints = new int[w];\n\t\tfor (int i=0; i<w; i++) {\n\t\t\tints[i] = i+1;\n\t\t}\n\t\tint n = sc.nextInt();\n\t\tString[] strs = new String[2];\n... | import java.util.*;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int w = sc.nextInt();
int[] ints = new int[w];
for (int i=0; i<w; i++) {
ints[i] = i+1;
}
int n = sc.nextInt();
String[] strs = new String[2];
for (int i=0; i<n; i++) {
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,
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
],
[
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{\npublic static void main(String[] args){\nScanner sc=new Scanner(System.in);\nint w=sc.nextInt();\nint n=sc.nextInt();\nint[] k=new int[w];\nfor(int i=0;i<w;i++){\nk[i]=i+1;\n}\nfor(int j=0;j<n;j++){\nString[] line=sc.next().split(\",\");\nint p=Integer.parseInt(line[0]);\n... | 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[] k=new int[w];
for(int i=0;i<w;i++){
k[i]=i+1;
}
for(int j=0;j<n;j++){
String[] line=sc.next().split(",");
int p=Integer.parseInt(line[0]);
int q=Integer.parseIn... |
[
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,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
13,
17,
41,
13,
4,
18,
13,
11,
1,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
183,
5
],
[
183,
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\n Scanner scn = new Scanner(System.in);\n int w = scn.nextInt();\n int n = scn.nextInt();\n\n int[] array;\n array = new int[w];\n\n for(int i = 0; i < w; i++){\n ar... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
int w = scn.nextInt();
int n = scn.nextInt();
int[] array;
array = new int[w];
for(int i = 0; i < w; i++){
array[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,
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
],
[
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 w = sc.nextInt();\n\t\tint n = sc.nextInt();\n\t\tint[] values = new int[w];\n\t\tfor (int i = 0; i < values.length; i++) {\n\t\t\tvalues[i] = i + 1;\n\t\t}\n\t\tfor (int 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[] values = new int[w];
for (int i = 0; i < values.length; i++) {
values[i] = i + 1;
}
for (int i = 0; i < n; i++) {
String str ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.