node_ids
listlengths 4
1.4k
| edge_index
listlengths 1
2.22k
| text
listlengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
17,
17,
41,
13,
20,
17,
41,
13,
20,
17,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
8,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
8,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
43,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
56,
64
],
[
64,
65
],
[
65,
66
],
[
56,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
69,
75
],
[
75,
76
],
[
76,
77
],
[
8,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
78,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
96,
97
],
[
8,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
103,
104
],
[
103,
105
],
[
98,
106
],
[
106,
107
],
[
107,
108
],
[
98,
109
],
[
110,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
111,
119
],
[
119,
120
],
[
120,
121
],
[
111,
122
],
[
123,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
128,
134
],
[
134,
135
],
[
134,
136
],
[
110,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
142,
143
],
[
142,
144
],
[
6,
145
],
[
145,
146
]
] | [
"import java.util.Scanner;\n\n class Main{\n\tpublic static void main(String[] args){\n\tScanner scan = new Scanner(System.in);\n\n\tint n, m, i, j;\n\tint a[][] = new int[100][100];\n\tint b[] = new int[100];\n\tint c[] = new int[100];\n\tn = scan.nextInt();\n\tm = scan.nextInt();\n\tfor(i = 0; i < n; i++) {\n\t\tfor(j = 0; j < m; j++) {\n\t\t\ta[i][j] = scan.nextInt();\n\t\t}\n\t}\n\tfor(j = 0; j < m; j++) {\n\t\tb[j] = scan.nextInt();\n\t}\n\tfor(i = 0; i < n; i++) {\n\t\tfor(j = 0; j < m; j++) {\n\t\t\tc[i] += a[i][j] * b[j];\n\t\t}\n\t\tSystem.out.println(c[i]);\n\t}\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n\tpublic static void main(String[] args){\n\tScanner scan = new Scanner(System.in);\n\n\tint n, m, i, j;\n\tint a[][] = new int[100][100];\n\tint b[] = new int[100];\n\tint c[] = new int[100];\n\tn = scan.nextInt();\n\tm = scan.nextInt();\n\tfor(i = 0; i < n; i++) {\n\t\tfor(j = 0; j < m; j++) {\n\t\t\ta[i][j] = scan.nextInt();\n\t\t}\n\t}\n\tfor(j = 0; j < m; j++) {\n\t\tb[j] = scan.nextInt();\n\t}\n\tfor(i = 0; i < n; i++) {\n\t\tfor(j = 0; j < m; j++) {\n\t\t\tc[i] += a[i][j] * b[j];\n\t\t}\n\t\tSystem.out.println(c[i]);\n\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args){\n\tScanner scan = new Scanner(System.in);\n\n\tint n, m, i, j;\n\tint a[][] = new int[100][100];\n\tint b[] = new int[100];\n\tint c[] = new int[100];\n\tn = scan.nextInt();\n\tm = scan.nextInt();\n\tfor(i = 0; i < n; i++) {\n\t\tfor(j = 0; j < m; j++) {\n\t\t\ta[i][j] = scan.nextInt();\n\t\t}\n\t}\n\tfor(j = 0; j < m; j++) {\n\t\tb[j] = scan.nextInt();\n\t}\n\tfor(i = 0; i < n; i++) {\n\t\tfor(j = 0; j < m; j++) {\n\t\t\tc[i] += a[i][j] * b[j];\n\t\t}\n\t\tSystem.out.println(c[i]);\n\t}\n\n\t}",
"main",
"{\n\tScanner scan = new Scanner(System.in);\n\n\tint n, m, i, j;\n\tint a[][] = new int[100][100];\n\tint b[] = new int[100];\n\tint c[] = new int[100];\n\tn = scan.nextInt();\n\tm = scan.nextInt();\n\tfor(i = 0; i < n; i++) {\n\t\tfor(j = 0; j < m; j++) {\n\t\t\ta[i][j] = scan.nextInt();\n\t\t}\n\t}\n\tfor(j = 0; j < m; j++) {\n\t\tb[j] = scan.nextInt();\n\t}\n\tfor(i = 0; i < n; i++) {\n\t\tfor(j = 0; j < m; j++) {\n\t\t\tc[i] += a[i][j] * b[j];\n\t\t}\n\t\tSystem.out.println(c[i]);\n\t}\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n",
"n",
"m",
"m",
"i",
"i",
"j;",
"j",
"int a[][] = new int[100][100];",
"a",
"new int[100][100]",
"100",
"100",
"int b[] = new int[100];",
"b",
"new int[100]",
"100",
"int c[] = new int[100];",
"c",
"new int[100]",
"100",
"n = scan.nextInt()",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"m = scan.nextInt()",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(i = 0; i < n; i++) {\n\t\tfor(j = 0; j < m; j++) {\n\t\t\ta[i][j] = scan.nextInt();\n\t\t}\n\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\tfor(j = 0; j < m; j++) {\n\t\t\ta[i][j] = scan.nextInt();\n\t\t}\n\t}",
"{\n\t\tfor(j = 0; j < m; j++) {\n\t\t\ta[i][j] = scan.nextInt();\n\t\t}\n\t}",
"for(j = 0; j < m; j++) {\n\t\t\ta[i][j] = scan.nextInt();\n\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\ta[i][j] = scan.nextInt();\n\t\t}",
"{\n\t\t\ta[i][j] = scan.nextInt();\n\t\t}",
"a[i][j] = scan.nextInt()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(j = 0; j < m; j++) {\n\t\tb[j] = scan.nextInt();\n\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\tb[j] = scan.nextInt();\n\t}",
"{\n\t\tb[j] = scan.nextInt();\n\t}",
"b[j] = scan.nextInt()",
"b[j]",
"b",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(i = 0; i < n; i++) {\n\t\tfor(j = 0; j < m; j++) {\n\t\t\tc[i] += a[i][j] * b[j];\n\t\t}\n\t\tSystem.out.println(c[i]);\n\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\tfor(j = 0; j < m; j++) {\n\t\t\tc[i] += a[i][j] * b[j];\n\t\t}\n\t\tSystem.out.println(c[i]);\n\t}",
"{\n\t\tfor(j = 0; j < m; j++) {\n\t\t\tc[i] += a[i][j] * b[j];\n\t\t}\n\t\tSystem.out.println(c[i]);\n\t}",
"for(j = 0; j < m; j++) {\n\t\t\tc[i] += a[i][j] * b[j];\n\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\tc[i] += a[i][j] * b[j];\n\t\t}",
"{\n\t\t\tc[i] += a[i][j] * b[j];\n\t\t}",
"c[i] += a[i][j] * b[j]",
"c[i]",
"c",
"i",
"a[i][j] * b[j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"System.out.println(c[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[i]",
"c",
"i",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int n, m, i, j;
int a[][] = new int[100][100];
int b[] = new int[100];
int c[] = new int[100];
n = scan.nextInt();
m = scan.nextInt();
for(i = 0; i < n; i++) {
for(j = 0; j < m; j++) {
a[i][j] = scan.nextInt();
}
}
for(j = 0; j < m; j++) {
b[j] = scan.nextInt();
}
for(i = 0; i < n; i++) {
for(j = 0; j < m; j++) {
c[i] += a[i][j] * b[j];
}
System.out.println(c[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,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
0,
13,
17,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
44,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
58,
64
],
[
64,
65
],
[
65,
66
],
[
8,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
85,
86
],
[
8,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
87,
95
],
[
95,
96
],
[
96,
97
],
[
87,
98
],
[
99,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
103,
111
],
[
111,
112
],
[
112,
113
],
[
103,
114
],
[
115,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
118,
124
],
[
124,
125
],
[
124,
126
],
[
99,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
6,
133
],
[
133,
134
]
] | [
"import java.util.*;\n \nclass Main{\n public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n int[][] matrix = new int[n][m];\n int[] vectorB = new int[m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j += 1) {\n matrix[i][j] = scan.nextInt();\n }\n }\n for (int s = 0; s < m; s++) {\n vectorB[s] = scan.nextInt();\n }\n for (int t = 0; t < n; t++) {\n int ans = 0;\n for (int u = 0; u < m; u++) {\n ans += matrix[t][u] * vectorB[u];\n }\n System.out.println(ans);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n int[][] matrix = new int[n][m];\n int[] vectorB = new int[m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j += 1) {\n matrix[i][j] = scan.nextInt();\n }\n }\n for (int s = 0; s < m; s++) {\n vectorB[s] = scan.nextInt();\n }\n for (int t = 0; t < n; t++) {\n int ans = 0;\n for (int u = 0; u < m; u++) {\n ans += matrix[t][u] * vectorB[u];\n }\n System.out.println(ans);\n }\n }\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n int[][] matrix = new int[n][m];\n int[] vectorB = new int[m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j += 1) {\n matrix[i][j] = scan.nextInt();\n }\n }\n for (int s = 0; s < m; s++) {\n vectorB[s] = scan.nextInt();\n }\n for (int t = 0; t < n; t++) {\n int ans = 0;\n for (int u = 0; u < m; u++) {\n ans += matrix[t][u] * vectorB[u];\n }\n System.out.println(ans);\n }\n }",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n int[][] matrix = new int[n][m];\n int[] vectorB = new int[m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j += 1) {\n matrix[i][j] = scan.nextInt();\n }\n }\n for (int s = 0; s < m; s++) {\n vectorB[s] = scan.nextInt();\n }\n for (int t = 0; t < n; t++) {\n int ans = 0;\n for (int u = 0; u < m; u++) {\n ans += matrix[t][u] * vectorB[u];\n }\n System.out.println(ans);\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[][] matrix = new int[n][m];",
"matrix",
"new int[n][m]",
"n",
"m",
"int[] vectorB = new int[m];",
"vectorB",
"new int[m]",
"m",
"for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j += 1) {\n matrix[i][j] = scan.nextInt();\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < m; j += 1) {\n matrix[i][j] = scan.nextInt();\n }\n }",
"{\n for (int j = 0; j < m; j += 1) {\n matrix[i][j] = scan.nextInt();\n }\n }",
"for (int j = 0; j < m; j += 1) {\n matrix[i][j] = scan.nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j += 1",
"j += 1",
"j",
"1",
"{\n matrix[i][j] = scan.nextInt();\n }",
"{\n matrix[i][j] = scan.nextInt();\n }",
"matrix[i][j] = scan.nextInt()",
"matrix[i][j]",
"matrix[i]",
"matrix",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int s = 0; s < m; s++) {\n vectorB[s] = scan.nextInt();\n }",
"int s = 0;",
"int s = 0;",
"s",
"0",
"s < m",
"s",
"m",
"s++",
"s++",
"s",
"{\n vectorB[s] = scan.nextInt();\n }",
"{\n vectorB[s] = scan.nextInt();\n }",
"vectorB[s] = scan.nextInt()",
"vectorB[s]",
"vectorB",
"s",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int t = 0; t < n; t++) {\n int ans = 0;\n for (int u = 0; u < m; u++) {\n ans += matrix[t][u] * vectorB[u];\n }\n System.out.println(ans);\n }",
"int t = 0;",
"int t = 0;",
"t",
"0",
"t < n",
"t",
"n",
"t++",
"t++",
"t",
"{\n int ans = 0;\n for (int u = 0; u < m; u++) {\n ans += matrix[t][u] * vectorB[u];\n }\n System.out.println(ans);\n }",
"{\n int ans = 0;\n for (int u = 0; u < m; u++) {\n ans += matrix[t][u] * vectorB[u];\n }\n System.out.println(ans);\n }",
"int ans = 0;",
"ans",
"0",
"for (int u = 0; u < m; u++) {\n ans += matrix[t][u] * vectorB[u];\n }",
"int u = 0;",
"int u = 0;",
"u",
"0",
"u < m",
"u",
"m",
"u++",
"u++",
"u",
"{\n ans += matrix[t][u] * vectorB[u];\n }",
"{\n ans += matrix[t][u] * vectorB[u];\n }",
"ans += matrix[t][u] * vectorB[u]",
"ans",
"matrix[t][u] * vectorB[u]",
"matrix[t][u]",
"matrix[t]",
"matrix",
"t",
"u",
"vectorB[u]",
"vectorB",
"u",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args"
] | import java.util.*;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int m = scan.nextInt();
int[][] matrix = new int[n][m];
int[] vectorB = new int[m];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j += 1) {
matrix[i][j] = scan.nextInt();
}
}
for (int s = 0; s < m; s++) {
vectorB[s] = scan.nextInt();
}
for (int t = 0; t < n; t++) {
int ans = 0;
for (int u = 0; u < m; u++) {
ans += matrix[t][u] * vectorB[u];
}
System.out.println(ans);
}
}
} |
[
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,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
169,
5
],
[
169,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
60,
66
],
[
66,
67
],
[
67,
68
],
[
8,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
69,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
86,
87
],
[
8,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
88,
96
],
[
96,
97
],
[
97,
98
],
[
88,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
8,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
105,
113
],
[
113,
114
],
[
114,
115
],
[
105,
116
],
[
117,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
118,
126
],
[
126,
127
],
[
127,
128
],
[
118,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
134,
140
],
[
140,
141
],
[
140,
142
],
[
8,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
143,
148
],
[
148,
149
],
[
148,
150
],
[
143,
151
],
[
151,
152
],
[
152,
153
],
[
143,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
155,
160
],
[
160,
161
],
[
160,
162
],
[
8,
163
],
[
163,
164
],
[
164,
165
],
[
6,
166
],
[
166,
167
],
[
0,
168
],
[
168,
169
],
[
168,
170
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n\n int[][] A = new int[n][m];\n int[] b = new int[m];\n int[] c = new int[n];\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++)\n A[i][j] = sc.nextInt();\n }\n for(int i = 0; i < m; i++)\n b[i] = sc.nextInt();\n\n for(int i = 0; i < n; i++)\n c[i] = 0;\n\n for(int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++)\n c[i] += A[i][j] * b[j];\n }\n\n for(int i = 0; i < n; i++)\n System.out.println(c[i]);\n\n sc.close();\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n\n int[][] A = new int[n][m];\n int[] b = new int[m];\n int[] c = new int[n];\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++)\n A[i][j] = sc.nextInt();\n }\n for(int i = 0; i < m; i++)\n b[i] = sc.nextInt();\n\n for(int i = 0; i < n; i++)\n c[i] = 0;\n\n for(int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++)\n c[i] += A[i][j] * b[j];\n }\n\n for(int i = 0; i < n; i++)\n System.out.println(c[i]);\n\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n\n int[][] A = new int[n][m];\n int[] b = new int[m];\n int[] c = new int[n];\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++)\n A[i][j] = sc.nextInt();\n }\n for(int i = 0; i < m; i++)\n b[i] = sc.nextInt();\n\n for(int i = 0; i < n; i++)\n c[i] = 0;\n\n for(int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++)\n c[i] += A[i][j] * b[j];\n }\n\n for(int i = 0; i < n; i++)\n System.out.println(c[i]);\n\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n\n int[][] A = new int[n][m];\n int[] b = new int[m];\n int[] c = new int[n];\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++)\n A[i][j] = sc.nextInt();\n }\n for(int i = 0; i < m; i++)\n b[i] = sc.nextInt();\n\n for(int i = 0; i < n; i++)\n c[i] = 0;\n\n for(int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++)\n c[i] += A[i][j] * b[j];\n }\n\n for(int i = 0; i < n; i++)\n System.out.println(c[i]);\n\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] A = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int[] b = new int[m];",
"b",
"new int[m]",
"m",
"int[] c = new int[n];",
"c",
"new int[n]",
"n",
"for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++)\n A[i][j] = sc.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < m; j++)\n A[i][j] = sc.nextInt();\n }",
"{\n for(int j = 0; j < m; j++)\n A[i][j] = sc.nextInt();\n }",
"for(int j = 0; j < m; j++)\n A[i][j] = sc.nextInt();",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"A[i][j] = sc.nextInt();",
"A[i][j] = sc.nextInt()",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < m; i++)\n b[i] = sc.nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"b[i] = sc.nextInt();",
"b[i] = sc.nextInt()",
"b[i]",
"b",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < n; i++)\n c[i] = 0;",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"c[i] = 0;",
"c[i] = 0",
"c[i]",
"c",
"i",
"0",
"for(int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++)\n c[i] += A[i][j] * b[j];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < m; j++)\n c[i] += A[i][j] * b[j];\n }",
"{\n for (int j = 0; j < m; j++)\n c[i] += A[i][j] * b[j];\n }",
"for (int j = 0; j < m; j++)\n c[i] += A[i][j] * b[j];",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"c[i] += A[i][j] * b[j];",
"c[i] += A[i][j] * b[j]",
"c[i]",
"c",
"i",
"A[i][j] * b[j]",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"b[j]",
"b",
"j",
"for(int i = 0; i < n; i++)\n System.out.println(c[i]);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"System.out.println(c[i]);",
"System.out.println(c[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[i]",
"c",
"i",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n\n int[][] A = new int[n][m];\n int[] b = new int[m];\n int[] c = new int[n];\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++)\n A[i][j] = sc.nextInt();\n }\n for(int i = 0; i < m; i++)\n b[i] = sc.nextInt();\n\n for(int i = 0; i < n; i++)\n c[i] = 0;\n\n for(int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++)\n c[i] += A[i][j] * b[j];\n }\n\n for(int i = 0; i < n; i++)\n System.out.println(c[i]);\n\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n\n int[][] A = new int[n][m];\n int[] b = new int[m];\n int[] c = new int[n];\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++)\n A[i][j] = sc.nextInt();\n }\n for(int i = 0; i < m; i++)\n b[i] = sc.nextInt();\n\n for(int i = 0; i < n; i++)\n c[i] = 0;\n\n for(int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++)\n c[i] += A[i][j] * b[j];\n }\n\n for(int i = 0; i < n; i++)\n System.out.println(c[i]);\n\n sc.close();\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
int[][] A = new int[n][m];
int[] b = new int[m];
int[] c = new int[n];
for(int i = 0; i < n; i++){
for(int j = 0; j < m; j++)
A[i][j] = sc.nextInt();
}
for(int i = 0; i < m; i++)
b[i] = sc.nextInt();
for(int i = 0; i < n; i++)
c[i] = 0;
for(int i = 0; i < n; i++) {
for (int j = 0; j < m; j++)
c[i] += A[i][j] * b[j];
}
for(int i = 0; i < n; i++)
System.out.println(c[i]);
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
41,
13,
20,
18,
13,
17,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
41,
13,
20,
18,
13,
17,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
17,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
2,
18,
18,
13,
13,
13,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
212,
8
],
[
212,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
17,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
26,
27
],
[
26,
28
],
[
11,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
38
],
[
29,
39
],
[
39,
40
],
[
40,
41
],
[
29,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
51,
53
],
[
11,
54
],
[
54,
55
],
[
54,
56
],
[
57,
58
],
[
57,
59
],
[
60,
61
],
[
60,
62
],
[
11,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
63,
73
],
[
73,
74
],
[
74,
75
],
[
63,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
80,
85
],
[
77,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
93,
95
],
[
86,
96
],
[
96,
97
],
[
97,
98
],
[
86,
99
],
[
100,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
101,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
110,
111
],
[
110,
112
],
[
11,
113
],
[
113,
114
],
[
113,
115
],
[
116,
117
],
[
116,
118
],
[
11,
119
],
[
119,
120
],
[
119,
121
],
[
122,
123
],
[
122,
124
],
[
11,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
132,
134
],
[
125,
135
],
[
135,
136
],
[
136,
137
],
[
125,
138
],
[
139,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
144,
145
],
[
145,
146
],
[
139,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
151,
152
],
[
152,
153
],
[
151,
154
],
[
154,
155
],
[
154,
156
],
[
11,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
157,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
164,
166
],
[
157,
167
],
[
167,
168
],
[
168,
169
],
[
157,
170
],
[
171,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
175,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
182,
184
],
[
175,
185
],
[
185,
186
],
[
186,
187
],
[
175,
188
],
[
189,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
194,
198
],
[
193,
199
],
[
199,
200
],
[
199,
201
],
[
192,
202
],
[
171,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
203,
208
],
[
9,
209
],
[
209,
210
],
[
0,
211
],
[
211,
212
],
[
211,
213
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\t\t\n\t\tString[] nANDmStr = input.readLine().split(\" \");\n\t\t\n\t\tint[] nANDm = new int[nANDmStr.length];\n\t\t\n\t\tfor(int insert = 0; insert < nANDmStr.length; insert++)\n\t\t{\n\t\t\tnANDm[insert] = Integer.parseInt(nANDmStr[insert]);\n\t\t}\n\t\t\n\t\tint[][] matrix = new int[nANDm[0]][nANDm[1]];\n\t\t\n\t\tfor(int row = 0; row < matrix.length; row++)\n\t\t{\n\t\t\tString[] matrixStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int column = 0; column < matrixStr.length; column++)\n\t\t\t{\n\t\t\t\tmatrix[row][column] = Integer.parseInt(matrixStr[column]);\n\t\t\t}\n\t\t}\n\n\t\t\n\t\tString[] vectorStr = new String[nANDm[1]];\n\t\t\n\t\tint[] vector = new int[vectorStr.length];\n\t\t\n\t\tfor(int insert = 0; insert < vector.length; insert++)\n\t\t{\n\t\t\tvectorStr[insert] = input.readLine();\n\t\t\t\n\t\t\tvector[insert] = Integer.parseInt(vectorStr[insert]);\n\t\t}\n\t\t\n\t\tfor(int row = 0; row < nANDm[0]; row++)\n\t\t{\n\t\t\tint solution = 0;\n\t\t\t\n\t\t\tfor(int column = 0; column < nANDm[1]; column++)\n\t\t\t{\n\t\t\t\tsolution = matrix[row][column] * vector[column] + solution;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(solution);\n\t\t}\n\t}\n\n}\n",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\t\t\n\t\tString[] nANDmStr = input.readLine().split(\" \");\n\t\t\n\t\tint[] nANDm = new int[nANDmStr.length];\n\t\t\n\t\tfor(int insert = 0; insert < nANDmStr.length; insert++)\n\t\t{\n\t\t\tnANDm[insert] = Integer.parseInt(nANDmStr[insert]);\n\t\t}\n\t\t\n\t\tint[][] matrix = new int[nANDm[0]][nANDm[1]];\n\t\t\n\t\tfor(int row = 0; row < matrix.length; row++)\n\t\t{\n\t\t\tString[] matrixStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int column = 0; column < matrixStr.length; column++)\n\t\t\t{\n\t\t\t\tmatrix[row][column] = Integer.parseInt(matrixStr[column]);\n\t\t\t}\n\t\t}\n\n\t\t\n\t\tString[] vectorStr = new String[nANDm[1]];\n\t\t\n\t\tint[] vector = new int[vectorStr.length];\n\t\t\n\t\tfor(int insert = 0; insert < vector.length; insert++)\n\t\t{\n\t\t\tvectorStr[insert] = input.readLine();\n\t\t\t\n\t\t\tvector[insert] = Integer.parseInt(vectorStr[insert]);\n\t\t}\n\t\t\n\t\tfor(int row = 0; row < nANDm[0]; row++)\n\t\t{\n\t\t\tint solution = 0;\n\t\t\t\n\t\t\tfor(int column = 0; column < nANDm[1]; column++)\n\t\t\t{\n\t\t\t\tsolution = matrix[row][column] * vector[column] + solution;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(solution);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\t\t\n\t\tString[] nANDmStr = input.readLine().split(\" \");\n\t\t\n\t\tint[] nANDm = new int[nANDmStr.length];\n\t\t\n\t\tfor(int insert = 0; insert < nANDmStr.length; insert++)\n\t\t{\n\t\t\tnANDm[insert] = Integer.parseInt(nANDmStr[insert]);\n\t\t}\n\t\t\n\t\tint[][] matrix = new int[nANDm[0]][nANDm[1]];\n\t\t\n\t\tfor(int row = 0; row < matrix.length; row++)\n\t\t{\n\t\t\tString[] matrixStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int column = 0; column < matrixStr.length; column++)\n\t\t\t{\n\t\t\t\tmatrix[row][column] = Integer.parseInt(matrixStr[column]);\n\t\t\t}\n\t\t}\n\n\t\t\n\t\tString[] vectorStr = new String[nANDm[1]];\n\t\t\n\t\tint[] vector = new int[vectorStr.length];\n\t\t\n\t\tfor(int insert = 0; insert < vector.length; insert++)\n\t\t{\n\t\t\tvectorStr[insert] = input.readLine();\n\t\t\t\n\t\t\tvector[insert] = Integer.parseInt(vectorStr[insert]);\n\t\t}\n\t\t\n\t\tfor(int row = 0; row < nANDm[0]; row++)\n\t\t{\n\t\t\tint solution = 0;\n\t\t\t\n\t\t\tfor(int column = 0; column < nANDm[1]; column++)\n\t\t\t{\n\t\t\t\tsolution = matrix[row][column] * vector[column] + solution;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(solution);\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\t\t\n\t\tString[] nANDmStr = input.readLine().split(\" \");\n\t\t\n\t\tint[] nANDm = new int[nANDmStr.length];\n\t\t\n\t\tfor(int insert = 0; insert < nANDmStr.length; insert++)\n\t\t{\n\t\t\tnANDm[insert] = Integer.parseInt(nANDmStr[insert]);\n\t\t}\n\t\t\n\t\tint[][] matrix = new int[nANDm[0]][nANDm[1]];\n\t\t\n\t\tfor(int row = 0; row < matrix.length; row++)\n\t\t{\n\t\t\tString[] matrixStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int column = 0; column < matrixStr.length; column++)\n\t\t\t{\n\t\t\t\tmatrix[row][column] = Integer.parseInt(matrixStr[column]);\n\t\t\t}\n\t\t}\n\n\t\t\n\t\tString[] vectorStr = new String[nANDm[1]];\n\t\t\n\t\tint[] vector = new int[vectorStr.length];\n\t\t\n\t\tfor(int insert = 0; insert < vector.length; insert++)\n\t\t{\n\t\t\tvectorStr[insert] = input.readLine();\n\t\t\t\n\t\t\tvector[insert] = Integer.parseInt(vectorStr[insert]);\n\t\t}\n\t\t\n\t\tfor(int row = 0; row < nANDm[0]; row++)\n\t\t{\n\t\t\tint solution = 0;\n\t\t\t\n\t\t\tfor(int column = 0; column < nANDm[1]; column++)\n\t\t\t{\n\t\t\t\tsolution = matrix[row][column] * vector[column] + solution;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(solution);\n\t\t}\n\t}",
"BufferedReader input = new BufferedReader (new InputStreamReader (System.in));",
"input",
"new BufferedReader (new InputStreamReader (System.in))",
"String[] nANDmStr = input.readLine().split(\" \");",
"nANDmStr",
"input.readLine().split(\" \")",
"input.readLine().split",
"input.readLine()",
"input.readLine",
"input",
"\" \"",
"int[] nANDm = new int[nANDmStr.length];",
"nANDm",
"new int[nANDmStr.length]",
"nANDmStr.length",
"nANDmStr",
"nANDmStr.length",
"for(int insert = 0; insert < nANDmStr.length; insert++)\n\t\t{\n\t\t\tnANDm[insert] = Integer.parseInt(nANDmStr[insert]);\n\t\t}",
"int insert = 0;",
"int insert = 0;",
"insert",
"0",
"insert < nANDmStr.length",
"insert",
"nANDmStr.length",
"nANDmStr",
"nANDmStr.length",
"insert++",
"insert++",
"insert",
"{\n\t\t\tnANDm[insert] = Integer.parseInt(nANDmStr[insert]);\n\t\t}",
"{\n\t\t\tnANDm[insert] = Integer.parseInt(nANDmStr[insert]);\n\t\t}",
"nANDm[insert] = Integer.parseInt(nANDmStr[insert])",
"nANDm[insert]",
"nANDm",
"insert",
"Integer.parseInt(nANDmStr[insert])",
"Integer.parseInt",
"Integer",
"nANDmStr[insert]",
"nANDmStr",
"insert",
"int[][] matrix = new int[nANDm[0]][nANDm[1]];",
"matrix",
"new int[nANDm[0]][nANDm[1]]",
"nANDm[0]",
"nANDm",
"0",
"nANDm[1]",
"nANDm",
"1",
"for(int row = 0; row < matrix.length; row++)\n\t\t{\n\t\t\tString[] matrixStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int column = 0; column < matrixStr.length; column++)\n\t\t\t{\n\t\t\t\tmatrix[row][column] = Integer.parseInt(matrixStr[column]);\n\t\t\t}\n\t\t}",
"int row = 0;",
"int row = 0;",
"row",
"0",
"row < matrix.length",
"row",
"matrix.length",
"matrix",
"matrix.length",
"row++",
"row++",
"row",
"{\n\t\t\tString[] matrixStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int column = 0; column < matrixStr.length; column++)\n\t\t\t{\n\t\t\t\tmatrix[row][column] = Integer.parseInt(matrixStr[column]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] matrixStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int column = 0; column < matrixStr.length; column++)\n\t\t\t{\n\t\t\t\tmatrix[row][column] = Integer.parseInt(matrixStr[column]);\n\t\t\t}\n\t\t}",
"String[] matrixStr = input.readLine().split(\" \");",
"matrixStr",
"input.readLine().split(\" \")",
"input.readLine().split",
"input.readLine()",
"input.readLine",
"input",
"\" \"",
"for(int column = 0; column < matrixStr.length; column++)\n\t\t\t{\n\t\t\t\tmatrix[row][column] = Integer.parseInt(matrixStr[column]);\n\t\t\t}",
"int column = 0;",
"int column = 0;",
"column",
"0",
"column < matrixStr.length",
"column",
"matrixStr.length",
"matrixStr",
"matrixStr.length",
"column++",
"column++",
"column",
"{\n\t\t\t\tmatrix[row][column] = Integer.parseInt(matrixStr[column]);\n\t\t\t}",
"{\n\t\t\t\tmatrix[row][column] = Integer.parseInt(matrixStr[column]);\n\t\t\t}",
"matrix[row][column] = Integer.parseInt(matrixStr[column])",
"matrix[row][column]",
"matrix[row]",
"matrix",
"row",
"column",
"Integer.parseInt(matrixStr[column])",
"Integer.parseInt",
"Integer",
"matrixStr[column]",
"matrixStr",
"column",
"String[] vectorStr = new String[nANDm[1]];",
"vectorStr",
"new String[nANDm[1]]",
"nANDm[1]",
"nANDm",
"1",
"int[] vector = new int[vectorStr.length];",
"vector",
"new int[vectorStr.length]",
"vectorStr.length",
"vectorStr",
"vectorStr.length",
"for(int insert = 0; insert < vector.length; insert++)\n\t\t{\n\t\t\tvectorStr[insert] = input.readLine();\n\t\t\t\n\t\t\tvector[insert] = Integer.parseInt(vectorStr[insert]);\n\t\t}",
"int insert = 0;",
"int insert = 0;",
"insert",
"0",
"insert < vector.length",
"insert",
"vector.length",
"vector",
"vector.length",
"insert++",
"insert++",
"insert",
"{\n\t\t\tvectorStr[insert] = input.readLine();\n\t\t\t\n\t\t\tvector[insert] = Integer.parseInt(vectorStr[insert]);\n\t\t}",
"{\n\t\t\tvectorStr[insert] = input.readLine();\n\t\t\t\n\t\t\tvector[insert] = Integer.parseInt(vectorStr[insert]);\n\t\t}",
"vectorStr[insert] = input.readLine()",
"vectorStr[insert]",
"vectorStr",
"insert",
"input.readLine()",
"input.readLine",
"input",
"vector[insert] = Integer.parseInt(vectorStr[insert])",
"vector[insert]",
"vector",
"insert",
"Integer.parseInt(vectorStr[insert])",
"Integer.parseInt",
"Integer",
"vectorStr[insert]",
"vectorStr",
"insert",
"for(int row = 0; row < nANDm[0]; row++)\n\t\t{\n\t\t\tint solution = 0;\n\t\t\t\n\t\t\tfor(int column = 0; column < nANDm[1]; column++)\n\t\t\t{\n\t\t\t\tsolution = matrix[row][column] * vector[column] + solution;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(solution);\n\t\t}",
"int row = 0;",
"int row = 0;",
"row",
"0",
"row < nANDm[0]",
"row",
"nANDm[0]",
"nANDm",
"0",
"row++",
"row++",
"row",
"{\n\t\t\tint solution = 0;\n\t\t\t\n\t\t\tfor(int column = 0; column < nANDm[1]; column++)\n\t\t\t{\n\t\t\t\tsolution = matrix[row][column] * vector[column] + solution;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(solution);\n\t\t}",
"{\n\t\t\tint solution = 0;\n\t\t\t\n\t\t\tfor(int column = 0; column < nANDm[1]; column++)\n\t\t\t{\n\t\t\t\tsolution = matrix[row][column] * vector[column] + solution;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(solution);\n\t\t}",
"int solution = 0;",
"solution",
"0",
"for(int column = 0; column < nANDm[1]; column++)\n\t\t\t{\n\t\t\t\tsolution = matrix[row][column] * vector[column] + solution;\n\t\t\t}",
"int column = 0;",
"int column = 0;",
"column",
"0",
"column < nANDm[1]",
"column",
"nANDm[1]",
"nANDm",
"1",
"column++",
"column++",
"column",
"{\n\t\t\t\tsolution = matrix[row][column] * vector[column] + solution;\n\t\t\t}",
"{\n\t\t\t\tsolution = matrix[row][column] * vector[column] + solution;\n\t\t\t}",
"solution = matrix[row][column] * vector[column] + solution",
"solution",
"matrix[row][column] * vector[column] + solution",
"matrix[row][column] * vector[column]",
"matrix[row][column]",
"matrix[row]",
"matrix",
"row",
"column",
"vector[column]",
"vector",
"column",
"solution",
"System.out.println(solution)",
"System.out.println",
"System.out",
"System",
"System.out",
"solution",
"String[] args",
"args",
"public class Main {\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\t\t\n\t\tString[] nANDmStr = input.readLine().split(\" \");\n\t\t\n\t\tint[] nANDm = new int[nANDmStr.length];\n\t\t\n\t\tfor(int insert = 0; insert < nANDmStr.length; insert++)\n\t\t{\n\t\t\tnANDm[insert] = Integer.parseInt(nANDmStr[insert]);\n\t\t}\n\t\t\n\t\tint[][] matrix = new int[nANDm[0]][nANDm[1]];\n\t\t\n\t\tfor(int row = 0; row < matrix.length; row++)\n\t\t{\n\t\t\tString[] matrixStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int column = 0; column < matrixStr.length; column++)\n\t\t\t{\n\t\t\t\tmatrix[row][column] = Integer.parseInt(matrixStr[column]);\n\t\t\t}\n\t\t}\n\n\t\t\n\t\tString[] vectorStr = new String[nANDm[1]];\n\t\t\n\t\tint[] vector = new int[vectorStr.length];\n\t\t\n\t\tfor(int insert = 0; insert < vector.length; insert++)\n\t\t{\n\t\t\tvectorStr[insert] = input.readLine();\n\t\t\t\n\t\t\tvector[insert] = Integer.parseInt(vectorStr[insert]);\n\t\t}\n\t\t\n\t\tfor(int row = 0; row < nANDm[0]; row++)\n\t\t{\n\t\t\tint solution = 0;\n\t\t\t\n\t\t\tfor(int column = 0; column < nANDm[1]; column++)\n\t\t\t{\n\t\t\t\tsolution = matrix[row][column] * vector[column] + solution;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(solution);\n\t\t}\n\t}\n\n}",
"public class Main {\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\t\t\n\t\tString[] nANDmStr = input.readLine().split(\" \");\n\t\t\n\t\tint[] nANDm = new int[nANDmStr.length];\n\t\t\n\t\tfor(int insert = 0; insert < nANDmStr.length; insert++)\n\t\t{\n\t\t\tnANDm[insert] = Integer.parseInt(nANDmStr[insert]);\n\t\t}\n\t\t\n\t\tint[][] matrix = new int[nANDm[0]][nANDm[1]];\n\t\t\n\t\tfor(int row = 0; row < matrix.length; row++)\n\t\t{\n\t\t\tString[] matrixStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int column = 0; column < matrixStr.length; column++)\n\t\t\t{\n\t\t\t\tmatrix[row][column] = Integer.parseInt(matrixStr[column]);\n\t\t\t}\n\t\t}\n\n\t\t\n\t\tString[] vectorStr = new String[nANDm[1]];\n\t\t\n\t\tint[] vector = new int[vectorStr.length];\n\t\t\n\t\tfor(int insert = 0; insert < vector.length; insert++)\n\t\t{\n\t\t\tvectorStr[insert] = input.readLine();\n\t\t\t\n\t\t\tvector[insert] = Integer.parseInt(vectorStr[insert]);\n\t\t}\n\t\t\n\t\tfor(int row = 0; row < nANDm[0]; row++)\n\t\t{\n\t\t\tint solution = 0;\n\t\t\t\n\t\t\tfor(int column = 0; column < nANDm[1]; column++)\n\t\t\t{\n\t\t\t\tsolution = matrix[row][column] * vector[column] + solution;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(solution);\n\t\t}\n\t}\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main (String[] args) throws java.lang.Exception
{
BufferedReader input = new BufferedReader (new InputStreamReader (System.in));
String[] nANDmStr = input.readLine().split(" ");
int[] nANDm = new int[nANDmStr.length];
for(int insert = 0; insert < nANDmStr.length; insert++)
{
nANDm[insert] = Integer.parseInt(nANDmStr[insert]);
}
int[][] matrix = new int[nANDm[0]][nANDm[1]];
for(int row = 0; row < matrix.length; row++)
{
String[] matrixStr = input.readLine().split(" ");
for(int column = 0; column < matrixStr.length; column++)
{
matrix[row][column] = Integer.parseInt(matrixStr[column]);
}
}
String[] vectorStr = new String[nANDm[1]];
int[] vector = new int[vectorStr.length];
for(int insert = 0; insert < vector.length; insert++)
{
vectorStr[insert] = input.readLine();
vector[insert] = Integer.parseInt(vectorStr[insert]);
}
for(int row = 0; row < nANDm[0]; row++)
{
int solution = 0;
for(int column = 0; column < nANDm[1]; column++)
{
solution = matrix[row][column] * vector[column] + solution;
}
System.out.println(solution);
}
}
}
|
[
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,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
18,
13,
13,
0,
18,
18,
13,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
0,
18,
13,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
0,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
187,
11
],
[
187,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
34,
35
],
[
34,
36
],
[
14,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
42,
44
],
[
14,
45
],
[
45,
46
],
[
45,
47
],
[
14,
50
],
[
50,
51
],
[
50,
52
],
[
14,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
54,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
66,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
66,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
78,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
96,
97
],
[
96,
98
],
[
90,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
99,
105
],
[
14,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
106,
114
],
[
114,
115
],
[
115,
116
],
[
106,
117
],
[
118,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
118,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
118,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
14,
135
],
[
135,
136
],
[
135,
137
],
[
14,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
143,
144
],
[
143,
145
],
[
138,
146
],
[
146,
147
],
[
147,
148
],
[
138,
149
],
[
150,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
156,
157
],
[
156,
158
],
[
151,
159
],
[
159,
160
],
[
160,
161
],
[
151,
162
],
[
163,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
166,
172
],
[
172,
173
],
[
172,
174
],
[
150,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
175,
180
],
[
150,
181
],
[
181,
182
],
[
181,
183
],
[
12,
184
],
[
184,
185
],
[
0,
186
],
[
186,
187
],
[
186,
188
]
] | [
"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 input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString first_line = input.readLine();\n\t\t// ?????°??¨?????°?????????\n\t\tString[] array_of_li_col = first_line.split(\" \");\n\t\t// ?????°\n\t\tint line = Integer.parseInt(array_of_li_col[0]);\n\t\t// ?????°\n\t\tint column = Integer.parseInt(array_of_li_col[1]);\n\t\t// ??????A???????¬??????????\n\t\tint matrix_array_A[][] = new int[line][column];\n\t\t// ????????????????????????\n\t\tint vector_array_b[] = new int[column];\n\n\t\t// ??????A??????????????°?????°?????????\n\t\tfor (int line_A = 0; line_A < line; line_A++) {\n\t\t\tString elements_A = input.readLine();\n\t\t\tString[] elements_A_array = elements_A.split(\" \");\n\t\t\tfor (int column_A = 0; column_A < column; column_A++) {\n\t\t\t\t// ??\\??????????????????A???????´?\n\t\t\t\tint elements_A_num = Integer.parseInt(elements_A_array[column_A]);\n\t\t\t\t// ??????A???????¬???????????????\\????????????????´????????´?\n\t\t\t\tmatrix_array_A[line_A][column_A] = elements_A_num;\n\t\t\t}\n\n\t\t}\n\t\t// ???????????\\????????????column?????°??°?????????\n\t\tfor (int column_b = 0; column_b < column; column_b++) {\n\t\t\tString elements_b = input.readLine();\n\t\t\tint elements_b_num = Integer.parseInt(elements_b);\n\t\t\t// ??????????????????b?????\\??????????????°??????????´?\n\t\t\tvector_array_b[column_b] = elements_b_num;\n\t\t}\n\t\t// ????´?Ci\n\t\tint elements_Ci = 0;\n\t\tfor (int line_A = 0; line_A < line; line_A++) {\n\t\t\tfor (int column_A = 0; column_A < column; column_A++) {\n\t\t\t\telements_Ci += matrix_array_A[line_A][column_A] * vector_array_b[column_A];\n\t\t\t}\n\t\t\tSystem.out.println(elements_Ci);\n\t\t\telements_Ci = 0;\n\t\t}\n\n\t}//150\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString first_line = input.readLine();\n\t\t// ?????°??¨?????°?????????\n\t\tString[] array_of_li_col = first_line.split(\" \");\n\t\t// ?????°\n\t\tint line = Integer.parseInt(array_of_li_col[0]);\n\t\t// ?????°\n\t\tint column = Integer.parseInt(array_of_li_col[1]);\n\t\t// ??????A???????¬??????????\n\t\tint matrix_array_A[][] = new int[line][column];\n\t\t// ????????????????????????\n\t\tint vector_array_b[] = new int[column];\n\n\t\t// ??????A??????????????°?????°?????????\n\t\tfor (int line_A = 0; line_A < line; line_A++) {\n\t\t\tString elements_A = input.readLine();\n\t\t\tString[] elements_A_array = elements_A.split(\" \");\n\t\t\tfor (int column_A = 0; column_A < column; column_A++) {\n\t\t\t\t// ??\\??????????????????A???????´?\n\t\t\t\tint elements_A_num = Integer.parseInt(elements_A_array[column_A]);\n\t\t\t\t// ??????A???????¬???????????????\\????????????????´????????´?\n\t\t\t\tmatrix_array_A[line_A][column_A] = elements_A_num;\n\t\t\t}\n\n\t\t}\n\t\t// ???????????\\????????????column?????°??°?????????\n\t\tfor (int column_b = 0; column_b < column; column_b++) {\n\t\t\tString elements_b = input.readLine();\n\t\t\tint elements_b_num = Integer.parseInt(elements_b);\n\t\t\t// ??????????????????b?????\\??????????????°??????????´?\n\t\t\tvector_array_b[column_b] = elements_b_num;\n\t\t}\n\t\t// ????´?Ci\n\t\tint elements_Ci = 0;\n\t\tfor (int line_A = 0; line_A < line; line_A++) {\n\t\t\tfor (int column_A = 0; column_A < column; column_A++) {\n\t\t\t\telements_Ci += matrix_array_A[line_A][column_A] * vector_array_b[column_A];\n\t\t\t}\n\t\t\tSystem.out.println(elements_Ci);\n\t\t\telements_Ci = 0;\n\t\t}\n\n\t}//150\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString first_line = input.readLine();\n\t\t// ?????°??¨?????°?????????\n\t\tString[] array_of_li_col = first_line.split(\" \");\n\t\t// ?????°\n\t\tint line = Integer.parseInt(array_of_li_col[0]);\n\t\t// ?????°\n\t\tint column = Integer.parseInt(array_of_li_col[1]);\n\t\t// ??????A???????¬??????????\n\t\tint matrix_array_A[][] = new int[line][column];\n\t\t// ????????????????????????\n\t\tint vector_array_b[] = new int[column];\n\n\t\t// ??????A??????????????°?????°?????????\n\t\tfor (int line_A = 0; line_A < line; line_A++) {\n\t\t\tString elements_A = input.readLine();\n\t\t\tString[] elements_A_array = elements_A.split(\" \");\n\t\t\tfor (int column_A = 0; column_A < column; column_A++) {\n\t\t\t\t// ??\\??????????????????A???????´?\n\t\t\t\tint elements_A_num = Integer.parseInt(elements_A_array[column_A]);\n\t\t\t\t// ??????A???????¬???????????????\\????????????????´????????´?\n\t\t\t\tmatrix_array_A[line_A][column_A] = elements_A_num;\n\t\t\t}\n\n\t\t}\n\t\t// ???????????\\????????????column?????°??°?????????\n\t\tfor (int column_b = 0; column_b < column; column_b++) {\n\t\t\tString elements_b = input.readLine();\n\t\t\tint elements_b_num = Integer.parseInt(elements_b);\n\t\t\t// ??????????????????b?????\\??????????????°??????????´?\n\t\t\tvector_array_b[column_b] = elements_b_num;\n\t\t}\n\t\t// ????´?Ci\n\t\tint elements_Ci = 0;\n\t\tfor (int line_A = 0; line_A < line; line_A++) {\n\t\t\tfor (int column_A = 0; column_A < column; column_A++) {\n\t\t\t\telements_Ci += matrix_array_A[line_A][column_A] * vector_array_b[column_A];\n\t\t\t}\n\t\t\tSystem.out.println(elements_Ci);\n\t\t\telements_Ci = 0;\n\t\t}\n\n\t}//150",
"main",
"{\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString first_line = input.readLine();\n\t\t// ?????°??¨?????°?????????\n\t\tString[] array_of_li_col = first_line.split(\" \");\n\t\t// ?????°\n\t\tint line = Integer.parseInt(array_of_li_col[0]);\n\t\t// ?????°\n\t\tint column = Integer.parseInt(array_of_li_col[1]);\n\t\t// ??????A???????¬??????????\n\t\tint matrix_array_A[][] = new int[line][column];\n\t\t// ????????????????????????\n\t\tint vector_array_b[] = new int[column];\n\n\t\t// ??????A??????????????°?????°?????????\n\t\tfor (int line_A = 0; line_A < line; line_A++) {\n\t\t\tString elements_A = input.readLine();\n\t\t\tString[] elements_A_array = elements_A.split(\" \");\n\t\t\tfor (int column_A = 0; column_A < column; column_A++) {\n\t\t\t\t// ??\\??????????????????A???????´?\n\t\t\t\tint elements_A_num = Integer.parseInt(elements_A_array[column_A]);\n\t\t\t\t// ??????A???????¬???????????????\\????????????????´????????´?\n\t\t\t\tmatrix_array_A[line_A][column_A] = elements_A_num;\n\t\t\t}\n\n\t\t}\n\t\t// ???????????\\????????????column?????°??°?????????\n\t\tfor (int column_b = 0; column_b < column; column_b++) {\n\t\t\tString elements_b = input.readLine();\n\t\t\tint elements_b_num = Integer.parseInt(elements_b);\n\t\t\t// ??????????????????b?????\\??????????????°??????????´?\n\t\t\tvector_array_b[column_b] = elements_b_num;\n\t\t}\n\t\t// ????´?Ci\n\t\tint elements_Ci = 0;\n\t\tfor (int line_A = 0; line_A < line; line_A++) {\n\t\t\tfor (int column_A = 0; column_A < column; column_A++) {\n\t\t\t\telements_Ci += matrix_array_A[line_A][column_A] * vector_array_b[column_A];\n\t\t\t}\n\t\t\tSystem.out.println(elements_Ci);\n\t\t\telements_Ci = 0;\n\t\t}\n\n\t}",
"BufferedReader input = new BufferedReader(new InputStreamReader(System.in));",
"input",
"new BufferedReader(new InputStreamReader(System.in))",
"String first_line = input.readLine();",
"first_line",
"input.readLine()",
"input.readLine",
"input",
"String[] array_of_li_col = first_line.split(\" \");",
"array_of_li_col",
"first_line.split(\" \")",
"first_line.split",
"first_line",
"\" \"",
"int line = Integer.parseInt(array_of_li_col[0]);",
"line",
"Integer.parseInt(array_of_li_col[0])",
"Integer.parseInt",
"Integer",
"array_of_li_col[0]",
"array_of_li_col",
"0",
"int column = Integer.parseInt(array_of_li_col[1]);",
"column",
"Integer.parseInt(array_of_li_col[1])",
"Integer.parseInt",
"Integer",
"array_of_li_col[1]",
"array_of_li_col",
"1",
"int matrix_array_A[][] = new int[line][column];",
"matrix_array_A",
"new int[line][column]",
"line",
"column",
"int vector_array_b[] = new int[column];",
"vector_array_b",
"new int[column]",
"column",
"for (int line_A = 0; line_A < line; line_A++) {\n\t\t\tString elements_A = input.readLine();\n\t\t\tString[] elements_A_array = elements_A.split(\" \");\n\t\t\tfor (int column_A = 0; column_A < column; column_A++) {\n\t\t\t\t// ??\\??????????????????A???????´?\n\t\t\t\tint elements_A_num = Integer.parseInt(elements_A_array[column_A]);\n\t\t\t\t// ??????A???????¬???????????????\\????????????????´????????´?\n\t\t\t\tmatrix_array_A[line_A][column_A] = elements_A_num;\n\t\t\t}\n\n\t\t}",
"int line_A = 0;",
"int line_A = 0;",
"line_A",
"0",
"line_A < line",
"line_A",
"line",
"line_A++",
"line_A++",
"line_A",
"{\n\t\t\tString elements_A = input.readLine();\n\t\t\tString[] elements_A_array = elements_A.split(\" \");\n\t\t\tfor (int column_A = 0; column_A < column; column_A++) {\n\t\t\t\t// ??\\??????????????????A???????´?\n\t\t\t\tint elements_A_num = Integer.parseInt(elements_A_array[column_A]);\n\t\t\t\t// ??????A???????¬???????????????\\????????????????´????????´?\n\t\t\t\tmatrix_array_A[line_A][column_A] = elements_A_num;\n\t\t\t}\n\n\t\t}",
"{\n\t\t\tString elements_A = input.readLine();\n\t\t\tString[] elements_A_array = elements_A.split(\" \");\n\t\t\tfor (int column_A = 0; column_A < column; column_A++) {\n\t\t\t\t// ??\\??????????????????A???????´?\n\t\t\t\tint elements_A_num = Integer.parseInt(elements_A_array[column_A]);\n\t\t\t\t// ??????A???????¬???????????????\\????????????????´????????´?\n\t\t\t\tmatrix_array_A[line_A][column_A] = elements_A_num;\n\t\t\t}\n\n\t\t}",
"String elements_A = input.readLine();",
"elements_A",
"input.readLine()",
"input.readLine",
"input",
"String[] elements_A_array = elements_A.split(\" \");",
"elements_A_array",
"elements_A.split(\" \")",
"elements_A.split",
"elements_A",
"\" \"",
"for (int column_A = 0; column_A < column; column_A++) {\n\t\t\t\t// ??\\??????????????????A???????´?\n\t\t\t\tint elements_A_num = Integer.parseInt(elements_A_array[column_A]);\n\t\t\t\t// ??????A???????¬???????????????\\????????????????´????????´?\n\t\t\t\tmatrix_array_A[line_A][column_A] = elements_A_num;\n\t\t\t}",
"int column_A = 0;",
"int column_A = 0;",
"column_A",
"0",
"column_A < column",
"column_A",
"column",
"column_A++",
"column_A++",
"column_A",
"{\n\t\t\t\t// ??\\??????????????????A???????´?\n\t\t\t\tint elements_A_num = Integer.parseInt(elements_A_array[column_A]);\n\t\t\t\t// ??????A???????¬???????????????\\????????????????´????????´?\n\t\t\t\tmatrix_array_A[line_A][column_A] = elements_A_num;\n\t\t\t}",
"{\n\t\t\t\t// ??\\??????????????????A???????´?\n\t\t\t\tint elements_A_num = Integer.parseInt(elements_A_array[column_A]);\n\t\t\t\t// ??????A???????¬???????????????\\????????????????´????????´?\n\t\t\t\tmatrix_array_A[line_A][column_A] = elements_A_num;\n\t\t\t}",
"int elements_A_num = Integer.parseInt(elements_A_array[column_A]);",
"elements_A_num",
"Integer.parseInt(elements_A_array[column_A])",
"Integer.parseInt",
"Integer",
"elements_A_array[column_A]",
"elements_A_array",
"column_A",
"matrix_array_A[line_A][column_A] = elements_A_num",
"matrix_array_A[line_A][column_A]",
"matrix_array_A[line_A]",
"matrix_array_A",
"line_A",
"column_A",
"elements_A_num",
"for (int column_b = 0; column_b < column; column_b++) {\n\t\t\tString elements_b = input.readLine();\n\t\t\tint elements_b_num = Integer.parseInt(elements_b);\n\t\t\t// ??????????????????b?????\\??????????????°??????????´?\n\t\t\tvector_array_b[column_b] = elements_b_num;\n\t\t}",
"int column_b = 0;",
"int column_b = 0;",
"column_b",
"0",
"column_b < column",
"column_b",
"column",
"column_b++",
"column_b++",
"column_b",
"{\n\t\t\tString elements_b = input.readLine();\n\t\t\tint elements_b_num = Integer.parseInt(elements_b);\n\t\t\t// ??????????????????b?????\\??????????????°??????????´?\n\t\t\tvector_array_b[column_b] = elements_b_num;\n\t\t}",
"{\n\t\t\tString elements_b = input.readLine();\n\t\t\tint elements_b_num = Integer.parseInt(elements_b);\n\t\t\t// ??????????????????b?????\\??????????????°??????????´?\n\t\t\tvector_array_b[column_b] = elements_b_num;\n\t\t}",
"String elements_b = input.readLine();",
"elements_b",
"input.readLine()",
"input.readLine",
"input",
"int elements_b_num = Integer.parseInt(elements_b);",
"elements_b_num",
"Integer.parseInt(elements_b)",
"Integer.parseInt",
"Integer",
"elements_b",
"vector_array_b[column_b] = elements_b_num",
"vector_array_b[column_b]",
"vector_array_b",
"column_b",
"elements_b_num",
"int elements_Ci = 0;",
"elements_Ci",
"0",
"for (int line_A = 0; line_A < line; line_A++) {\n\t\t\tfor (int column_A = 0; column_A < column; column_A++) {\n\t\t\t\telements_Ci += matrix_array_A[line_A][column_A] * vector_array_b[column_A];\n\t\t\t}\n\t\t\tSystem.out.println(elements_Ci);\n\t\t\telements_Ci = 0;\n\t\t}",
"int line_A = 0;",
"int line_A = 0;",
"line_A",
"0",
"line_A < line",
"line_A",
"line",
"line_A++",
"line_A++",
"line_A",
"{\n\t\t\tfor (int column_A = 0; column_A < column; column_A++) {\n\t\t\t\telements_Ci += matrix_array_A[line_A][column_A] * vector_array_b[column_A];\n\t\t\t}\n\t\t\tSystem.out.println(elements_Ci);\n\t\t\telements_Ci = 0;\n\t\t}",
"{\n\t\t\tfor (int column_A = 0; column_A < column; column_A++) {\n\t\t\t\telements_Ci += matrix_array_A[line_A][column_A] * vector_array_b[column_A];\n\t\t\t}\n\t\t\tSystem.out.println(elements_Ci);\n\t\t\telements_Ci = 0;\n\t\t}",
"for (int column_A = 0; column_A < column; column_A++) {\n\t\t\t\telements_Ci += matrix_array_A[line_A][column_A] * vector_array_b[column_A];\n\t\t\t}",
"int column_A = 0;",
"int column_A = 0;",
"column_A",
"0",
"column_A < column",
"column_A",
"column",
"column_A++",
"column_A++",
"column_A",
"{\n\t\t\t\telements_Ci += matrix_array_A[line_A][column_A] * vector_array_b[column_A];\n\t\t\t}",
"{\n\t\t\t\telements_Ci += matrix_array_A[line_A][column_A] * vector_array_b[column_A];\n\t\t\t}",
"elements_Ci += matrix_array_A[line_A][column_A] * vector_array_b[column_A]",
"elements_Ci",
"matrix_array_A[line_A][column_A] * vector_array_b[column_A]",
"matrix_array_A[line_A][column_A]",
"matrix_array_A[line_A]",
"matrix_array_A",
"line_A",
"column_A",
"vector_array_b[column_A]",
"vector_array_b",
"column_A",
"System.out.println(elements_Ci)",
"System.out.println",
"System.out",
"System",
"System.out",
"elements_Ci",
"elements_Ci = 0",
"elements_Ci",
"0",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString first_line = input.readLine();\n\t\t// ?????°??¨?????°?????????\n\t\tString[] array_of_li_col = first_line.split(\" \");\n\t\t// ?????°\n\t\tint line = Integer.parseInt(array_of_li_col[0]);\n\t\t// ?????°\n\t\tint column = Integer.parseInt(array_of_li_col[1]);\n\t\t// ??????A???????¬??????????\n\t\tint matrix_array_A[][] = new int[line][column];\n\t\t// ????????????????????????\n\t\tint vector_array_b[] = new int[column];\n\n\t\t// ??????A??????????????°?????°?????????\n\t\tfor (int line_A = 0; line_A < line; line_A++) {\n\t\t\tString elements_A = input.readLine();\n\t\t\tString[] elements_A_array = elements_A.split(\" \");\n\t\t\tfor (int column_A = 0; column_A < column; column_A++) {\n\t\t\t\t// ??\\??????????????????A???????´?\n\t\t\t\tint elements_A_num = Integer.parseInt(elements_A_array[column_A]);\n\t\t\t\t// ??????A???????¬???????????????\\????????????????´????????´?\n\t\t\t\tmatrix_array_A[line_A][column_A] = elements_A_num;\n\t\t\t}\n\n\t\t}\n\t\t// ???????????\\????????????column?????°??°?????????\n\t\tfor (int column_b = 0; column_b < column; column_b++) {\n\t\t\tString elements_b = input.readLine();\n\t\t\tint elements_b_num = Integer.parseInt(elements_b);\n\t\t\t// ??????????????????b?????\\??????????????°??????????´?\n\t\t\tvector_array_b[column_b] = elements_b_num;\n\t\t}\n\t\t// ????´?Ci\n\t\tint elements_Ci = 0;\n\t\tfor (int line_A = 0; line_A < line; line_A++) {\n\t\t\tfor (int column_A = 0; column_A < column; column_A++) {\n\t\t\t\telements_Ci += matrix_array_A[line_A][column_A] * vector_array_b[column_A];\n\t\t\t}\n\t\t\tSystem.out.println(elements_Ci);\n\t\t\telements_Ci = 0;\n\t\t}\n\n\t}//150\n}",
"public class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString first_line = input.readLine();\n\t\t// ?????°??¨?????°?????????\n\t\tString[] array_of_li_col = first_line.split(\" \");\n\t\t// ?????°\n\t\tint line = Integer.parseInt(array_of_li_col[0]);\n\t\t// ?????°\n\t\tint column = Integer.parseInt(array_of_li_col[1]);\n\t\t// ??????A???????¬??????????\n\t\tint matrix_array_A[][] = new int[line][column];\n\t\t// ????????????????????????\n\t\tint vector_array_b[] = new int[column];\n\n\t\t// ??????A??????????????°?????°?????????\n\t\tfor (int line_A = 0; line_A < line; line_A++) {\n\t\t\tString elements_A = input.readLine();\n\t\t\tString[] elements_A_array = elements_A.split(\" \");\n\t\t\tfor (int column_A = 0; column_A < column; column_A++) {\n\t\t\t\t// ??\\??????????????????A???????´?\n\t\t\t\tint elements_A_num = Integer.parseInt(elements_A_array[column_A]);\n\t\t\t\t// ??????A???????¬???????????????\\????????????????´????????´?\n\t\t\t\tmatrix_array_A[line_A][column_A] = elements_A_num;\n\t\t\t}\n\n\t\t}\n\t\t// ???????????\\????????????column?????°??°?????????\n\t\tfor (int column_b = 0; column_b < column; column_b++) {\n\t\t\tString elements_b = input.readLine();\n\t\t\tint elements_b_num = Integer.parseInt(elements_b);\n\t\t\t// ??????????????????b?????\\??????????????°??????????´?\n\t\t\tvector_array_b[column_b] = elements_b_num;\n\t\t}\n\t\t// ????´?Ci\n\t\tint elements_Ci = 0;\n\t\tfor (int line_A = 0; line_A < line; line_A++) {\n\t\t\tfor (int column_A = 0; column_A < column; column_A++) {\n\t\t\t\telements_Ci += matrix_array_A[line_A][column_A] * vector_array_b[column_A];\n\t\t\t}\n\t\t\tSystem.out.println(elements_Ci);\n\t\t\telements_Ci = 0;\n\t\t}\n\n\t}//150\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args) throws IOException {
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
String first_line = input.readLine();
// ?????°??¨?????°?????????
String[] array_of_li_col = first_line.split(" ");
// ?????°
int line = Integer.parseInt(array_of_li_col[0]);
// ?????°
int column = Integer.parseInt(array_of_li_col[1]);
// ??????A???????¬??????????
int matrix_array_A[][] = new int[line][column];
// ????????????????????????
int vector_array_b[] = new int[column];
// ??????A??????????????°?????°?????????
for (int line_A = 0; line_A < line; line_A++) {
String elements_A = input.readLine();
String[] elements_A_array = elements_A.split(" ");
for (int column_A = 0; column_A < column; column_A++) {
// ??\??????????????????A???????´?
int elements_A_num = Integer.parseInt(elements_A_array[column_A]);
// ??????A???????¬???????????????\????????????????´????????´?
matrix_array_A[line_A][column_A] = elements_A_num;
}
}
// ???????????\????????????column?????°??°?????????
for (int column_b = 0; column_b < column; column_b++) {
String elements_b = input.readLine();
int elements_b_num = Integer.parseInt(elements_b);
// ??????????????????b?????\??????????????°??????????´?
vector_array_b[column_b] = elements_b_num;
}
// ????´?Ci
int elements_Ci = 0;
for (int line_A = 0; line_A < line; line_A++) {
for (int column_A = 0; column_A < column; column_A++) {
elements_Ci += matrix_array_A[line_A][column_A] * vector_array_b[column_A];
}
System.out.println(elements_Ci);
elements_Ci = 0;
}
}//150
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
140,
8
],
[
140,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
11,
33
],
[
33,
34
],
[
33,
35
],
[
11,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
50,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
62,
68
],
[
68,
69
],
[
69,
70
],
[
11,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
71,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
11,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
90,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
106,
114
],
[
114,
115
],
[
115,
116
],
[
106,
117
],
[
118,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
121,
127
],
[
127,
128
],
[
127,
129
],
[
102,
130
],
[
130,
131
],
[
131,
132
],
[
130,
133
],
[
11,
134
],
[
134,
135
],
[
135,
136
],
[
9,
137
],
[
137,
138
],
[
0,
139
],
[
139,
140
],
[
139,
141
]
] | [
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=in.nextInt(),m=in.nextInt(),A[][]=new int[n][m],b[]=new int[m];\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++)A[i][j]=in.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i=0;i<m;i++)b[i]=in.nextInt();\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint c=0;\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tc+=A[i][j]*b[j];\n\t\t\t}\n\t\t\tout.println(c);\n\t\t}\n\t\t\n\t\tout.flush();\n\t}\n\n}\n",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=in.nextInt(),m=in.nextInt(),A[][]=new int[n][m],b[]=new int[m];\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++)A[i][j]=in.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i=0;i<m;i++)b[i]=in.nextInt();\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint c=0;\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tc+=A[i][j]*b[j];\n\t\t\t}\n\t\t\tout.println(c);\n\t\t}\n\t\t\n\t\tout.flush();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=in.nextInt(),m=in.nextInt(),A[][]=new int[n][m],b[]=new int[m];\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++)A[i][j]=in.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i=0;i<m;i++)b[i]=in.nextInt();\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint c=0;\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tc+=A[i][j]*b[j];\n\t\t\t}\n\t\t\tout.println(c);\n\t\t}\n\t\t\n\t\tout.flush();\n\t}",
"main",
"{\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=in.nextInt(),m=in.nextInt(),A[][]=new int[n][m],b[]=new int[m];\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++)A[i][j]=in.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i=0;i<m;i++)b[i]=in.nextInt();\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint c=0;\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tc+=A[i][j]*b[j];\n\t\t\t}\n\t\t\tout.println(c);\n\t\t}\n\t\t\n\t\tout.flush();\n\t}",
"Scanner in=new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"PrintWriter out=new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"int n=in.nextInt()",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"m=in.nextInt()",
"m",
"in.nextInt()",
"in.nextInt",
"in",
"A[][]=new int[n][m]",
"A",
"new int[n][m]",
"n",
"m",
"b[]=new int[m];",
"b",
"new int[m]",
"m",
"for(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++)A[i][j]=in.nextInt();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<m;j++)A[i][j]=in.nextInt();\n\t\t}",
"{\n\t\t\tfor(int j=0;j<m;j++)A[i][j]=in.nextInt();\n\t\t}",
"for(int j=0;j<m;j++)A[i][j]=in.nextInt();",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"A[i][j]=in.nextInt();",
"A[i][j]=in.nextInt()",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"in.nextInt()",
"in.nextInt",
"in",
"for(int i=0;i<m;i++)b[i]=in.nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"b[i]=in.nextInt();",
"b[i]=in.nextInt()",
"b[i]",
"b",
"i",
"in.nextInt()",
"in.nextInt",
"in",
"for(int i=0;i<n;i++) {\n\t\t\tint c=0;\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tc+=A[i][j]*b[j];\n\t\t\t}\n\t\t\tout.println(c);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint c=0;\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tc+=A[i][j]*b[j];\n\t\t\t}\n\t\t\tout.println(c);\n\t\t}",
"{\n\t\t\tint c=0;\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tc+=A[i][j]*b[j];\n\t\t\t}\n\t\t\tout.println(c);\n\t\t}",
"int c=0;",
"c",
"0",
"for(int j=0;j<m;j++) {\n\t\t\t\tc+=A[i][j]*b[j];\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tc+=A[i][j]*b[j];\n\t\t\t}",
"{\n\t\t\t\tc+=A[i][j]*b[j];\n\t\t\t}",
"c+=A[i][j]*b[j]",
"c",
"A[i][j]*b[j]",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"b[j]",
"b",
"j",
"out.println(c)",
"out.println",
"out",
"c",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=in.nextInt(),m=in.nextInt(),A[][]=new int[n][m],b[]=new int[m];\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++)A[i][j]=in.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i=0;i<m;i++)b[i]=in.nextInt();\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint c=0;\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tc+=A[i][j]*b[j];\n\t\t\t}\n\t\t\tout.println(c);\n\t\t}\n\t\t\n\t\tout.flush();\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=in.nextInt(),m=in.nextInt(),A[][]=new int[n][m],b[]=new int[m];\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++)A[i][j]=in.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i=0;i<m;i++)b[i]=in.nextInt();\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint c=0;\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tc+=A[i][j]*b[j];\n\t\t\t}\n\t\t\tout.println(c);\n\t\t}\n\t\t\n\t\tout.flush();\n\t}\n\n}",
"Main"
] | import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
PrintWriter out=new PrintWriter(System.out);
int n=in.nextInt(),m=in.nextInt(),A[][]=new int[n][m],b[]=new int[m];
for(int i=0;i<n;i++) {
for(int j=0;j<m;j++)A[i][j]=in.nextInt();
}
for(int i=0;i<m;i++)b[i]=in.nextInt();
for(int i=0;i<n;i++) {
int c=0;
for(int j=0;j<m;j++) {
c+=A[i][j]*b[j];
}
out.println(c);
}
out.flush();
}
}
|
[
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,
13,
41,
13,
20,
13,
41,
13,
20,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
17,
28,
13,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
13,
40,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
13,
13,
28,
13,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
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
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
11,
34
],
[
34,
35
],
[
34,
36
],
[
11,
38
],
[
38,
39
],
[
39,
40
],
[
11,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
53,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
53,
65
],
[
65,
66
],
[
65,
67
],
[
53,
68
],
[
68,
69
],
[
68,
70
],
[
68,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
73,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
72,
83
],
[
83,
84
],
[
11,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
85,
96
],
[
97,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
97,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
11,
108
],
[
108,
109
],
[
108,
110
],
[
108,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
121,
122
],
[
121,
123
],
[
116,
124
],
[
124,
125
],
[
125,
126
],
[
116,
127
],
[
128,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
135,
136
],
[
135,
137
],
[
112,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
9,
144
],
[
144,
145
]
] | [
"import java.util.Arrays;\nimport java.util.Scanner;\nclass Main {\n \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 \n int[][] A = new int[n][m];\n int[] b = new int[m];\n int[] sum = new int[m];\n\n scanner.nextLine();\n for(int i=0;i<n;i++){\n String input = scanner.nextLine();\n String inputTmp[] = input.split(\" \");\n int j = 0;\n for (String num : inputTmp) {\n A[i][j] = Integer.parseInt(num);\n j++;\n }\n }\n\n for(int i=0;i<m;i++){\n int num = scanner.nextInt();\n b[i] = num;\n }\n \n for(int[] a: A){\n int val = 0;\n for(int k = 0;k<m;k++){\n val += a[k] * b[k];\n }\n System.out.println(val);\n }\n }\n}\n",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n \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 \n int[][] A = new int[n][m];\n int[] b = new int[m];\n int[] sum = new int[m];\n\n scanner.nextLine();\n for(int i=0;i<n;i++){\n String input = scanner.nextLine();\n String inputTmp[] = input.split(\" \");\n int j = 0;\n for (String num : inputTmp) {\n A[i][j] = Integer.parseInt(num);\n j++;\n }\n }\n\n for(int i=0;i<m;i++){\n int num = scanner.nextInt();\n b[i] = num;\n }\n \n for(int[] a: A){\n int val = 0;\n for(int k = 0;k<m;k++){\n val += a[k] * b[k];\n }\n System.out.println(val);\n }\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int m = scanner.nextInt();\n \n int[][] A = new int[n][m];\n int[] b = new int[m];\n int[] sum = new int[m];\n\n scanner.nextLine();\n for(int i=0;i<n;i++){\n String input = scanner.nextLine();\n String inputTmp[] = input.split(\" \");\n int j = 0;\n for (String num : inputTmp) {\n A[i][j] = Integer.parseInt(num);\n j++;\n }\n }\n\n for(int i=0;i<m;i++){\n int num = scanner.nextInt();\n b[i] = num;\n }\n \n for(int[] a: A){\n int val = 0;\n for(int k = 0;k<m;k++){\n val += a[k] * b[k];\n }\n System.out.println(val);\n }\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int m = scanner.nextInt();\n \n int[][] A = new int[n][m];\n int[] b = new int[m];\n int[] sum = new int[m];\n\n scanner.nextLine();\n for(int i=0;i<n;i++){\n String input = scanner.nextLine();\n String inputTmp[] = input.split(\" \");\n int j = 0;\n for (String num : inputTmp) {\n A[i][j] = Integer.parseInt(num);\n j++;\n }\n }\n\n for(int i=0;i<m;i++){\n int num = scanner.nextInt();\n b[i] = num;\n }\n \n for(int[] a: A){\n int val = 0;\n for(int k = 0;k<m;k++){\n val += a[k] * b[k];\n }\n System.out.println(val);\n }\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int m = scanner.nextInt();",
"m",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int[][] A = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int[] b = new int[m];",
"b",
"new int[m]",
"m",
"int[] sum = new int[m];",
"sum",
"new int[m]",
"m",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"for(int i=0;i<n;i++){\n String input = scanner.nextLine();\n String inputTmp[] = input.split(\" \");\n int j = 0;\n for (String num : inputTmp) {\n A[i][j] = Integer.parseInt(num);\n j++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String input = scanner.nextLine();\n String inputTmp[] = input.split(\" \");\n int j = 0;\n for (String num : inputTmp) {\n A[i][j] = Integer.parseInt(num);\n j++;\n }\n }",
"{\n String input = scanner.nextLine();\n String inputTmp[] = input.split(\" \");\n int j = 0;\n for (String num : inputTmp) {\n A[i][j] = Integer.parseInt(num);\n j++;\n }\n }",
"String input = scanner.nextLine();",
"input",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"String inputTmp[] = input.split(\" \");",
"inputTmp",
"input.split(\" \")",
"input.split",
"input",
"\" \"",
"int j = 0;",
"j",
"0",
"for (String num : inputTmp) {\n A[i][j] = Integer.parseInt(num);\n j++;\n }",
"String num",
"inputTmp",
"{\n A[i][j] = Integer.parseInt(num);\n j++;\n }",
"{\n A[i][j] = Integer.parseInt(num);\n j++;\n }",
"A[i][j] = Integer.parseInt(num)",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"Integer.parseInt(num)",
"Integer.parseInt",
"Integer",
"num",
"j++",
"j",
"for(int i=0;i<m;i++){\n int num = scanner.nextInt();\n b[i] = num;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n int num = scanner.nextInt();\n b[i] = num;\n }",
"{\n int num = scanner.nextInt();\n b[i] = num;\n }",
"int num = scanner.nextInt();",
"num",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"b[i] = num",
"b[i]",
"b",
"i",
"num",
"for(int[] a: A){\n int val = 0;\n for(int k = 0;k<m;k++){\n val += a[k] * b[k];\n }\n System.out.println(val);\n }",
"int[] a",
"A",
"{\n int val = 0;\n for(int k = 0;k<m;k++){\n val += a[k] * b[k];\n }\n System.out.println(val);\n }",
"{\n int val = 0;\n for(int k = 0;k<m;k++){\n val += a[k] * b[k];\n }\n System.out.println(val);\n }",
"int val = 0;",
"val",
"0",
"for(int k = 0;k<m;k++){\n val += a[k] * b[k];\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k<m",
"k",
"m",
"k++",
"k++",
"k",
"{\n val += a[k] * b[k];\n }",
"{\n val += a[k] * b[k];\n }",
"val += a[k] * b[k]",
"val",
"a[k] * b[k]",
"a[k]",
"a",
"k",
"b[k]",
"b",
"k",
"System.out.println(val)",
"System.out.println",
"System.out",
"System",
"System.out",
"val",
"String args[]",
"args"
] | import java.util.Arrays;
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[][] A = new int[n][m];
int[] b = new int[m];
int[] sum = new int[m];
scanner.nextLine();
for(int i=0;i<n;i++){
String input = scanner.nextLine();
String inputTmp[] = input.split(" ");
int j = 0;
for (String num : inputTmp) {
A[i][j] = Integer.parseInt(num);
j++;
}
}
for(int i=0;i<m;i++){
int num = scanner.nextInt();
b[i] = num;
}
for(int[] a: A){
int val = 0;
for(int k = 0;k<m;k++){
val += a[k] * b[k];
}
System.out.println(val);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
2,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
13,
13,
30,
0,
18,
13,
2,
13,
13,
4,
18,
13,
18,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
18,
13,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
0,
13,
2,
18,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
157,
5
],
[
157,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
42,
43
],
[
42,
44
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
49,
59
],
[
59,
60
],
[
60,
61
],
[
49,
62
],
[
63,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
76,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
85,
86
],
[
85,
87
],
[
8,
88
],
[
88,
89
],
[
88,
90
],
[
8,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
92,
100
],
[
100,
101
],
[
101,
102
],
[
92,
103
],
[
104,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
104,
113
],
[
113,
114
],
[
113,
115
],
[
104,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
121,
122
],
[
121,
123
],
[
116,
124
],
[
124,
125
],
[
125,
126
],
[
116,
127
],
[
128,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
136,
137
],
[
136,
138
],
[
128,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
145,
146
],
[
145,
147
],
[
104,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
6,
154
],
[
154,
155
],
[
0,
156
],
[
156,
157
],
[
156,
158
]
] | [
"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\tString line1 = sc.nextLine();\n\t\tString[] line1b = line1.split(\" \");\n\t\tint n = Integer.parseInt(line1b[0]);\n\t\tint m = Integer.parseInt(line1b[1]);\n\n\t\tString[] all = new String[n + m];\n\n\t\tint[] mm = new int[m];\n\n\t\tfor (int i = 0; i < n + m; i++) {\n\t\t\tall[i] = sc.nextLine();\n\t\t\tif (i >= n) {\n\t\t\t\tmm[i - n] = Integer.parseInt(all[i]);\n\t\t\t}\n\t\t}\n\n\t\tint[] nn = new int[m];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] kari = all[i].split(\" \");\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tnn[j] = Integer.parseInt(kari[j]);\n\t\t\t\tsum += nn[j] * mm[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tString[] line1b = line1.split(\" \");\n\t\tint n = Integer.parseInt(line1b[0]);\n\t\tint m = Integer.parseInt(line1b[1]);\n\n\t\tString[] all = new String[n + m];\n\n\t\tint[] mm = new int[m];\n\n\t\tfor (int i = 0; i < n + m; i++) {\n\t\t\tall[i] = sc.nextLine();\n\t\t\tif (i >= n) {\n\t\t\t\tmm[i - n] = Integer.parseInt(all[i]);\n\t\t\t}\n\t\t}\n\n\t\tint[] nn = new int[m];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] kari = all[i].split(\" \");\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tnn[j] = Integer.parseInt(kari[j]);\n\t\t\t\tsum += nn[j] * mm[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tString[] line1b = line1.split(\" \");\n\t\tint n = Integer.parseInt(line1b[0]);\n\t\tint m = Integer.parseInt(line1b[1]);\n\n\t\tString[] all = new String[n + m];\n\n\t\tint[] mm = new int[m];\n\n\t\tfor (int i = 0; i < n + m; i++) {\n\t\t\tall[i] = sc.nextLine();\n\t\t\tif (i >= n) {\n\t\t\t\tmm[i - n] = Integer.parseInt(all[i]);\n\t\t\t}\n\t\t}\n\n\t\tint[] nn = new int[m];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] kari = all[i].split(\" \");\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tnn[j] = Integer.parseInt(kari[j]);\n\t\t\t\tsum += nn[j] * mm[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tString[] line1b = line1.split(\" \");\n\t\tint n = Integer.parseInt(line1b[0]);\n\t\tint m = Integer.parseInt(line1b[1]);\n\n\t\tString[] all = new String[n + m];\n\n\t\tint[] mm = new int[m];\n\n\t\tfor (int i = 0; i < n + m; i++) {\n\t\t\tall[i] = sc.nextLine();\n\t\t\tif (i >= n) {\n\t\t\t\tmm[i - n] = Integer.parseInt(all[i]);\n\t\t\t}\n\t\t}\n\n\t\tint[] nn = new int[m];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] kari = all[i].split(\" \");\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tnn[j] = Integer.parseInt(kari[j]);\n\t\t\t\tsum += nn[j] * mm[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line1 = sc.nextLine();",
"line1",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] line1b = line1.split(\" \");",
"line1b",
"line1.split(\" \")",
"line1.split",
"line1",
"\" \"",
"int n = Integer.parseInt(line1b[0]);",
"n",
"Integer.parseInt(line1b[0])",
"Integer.parseInt",
"Integer",
"line1b[0]",
"line1b",
"0",
"int m = Integer.parseInt(line1b[1]);",
"m",
"Integer.parseInt(line1b[1])",
"Integer.parseInt",
"Integer",
"line1b[1]",
"line1b",
"1",
"String[] all = new String[n + m];",
"all",
"new String[n + m]",
"n + m",
"n",
"m",
"int[] mm = new int[m];",
"mm",
"new int[m]",
"m",
"for (int i = 0; i < n + m; i++) {\n\t\t\tall[i] = sc.nextLine();\n\t\t\tif (i >= n) {\n\t\t\t\tmm[i - n] = Integer.parseInt(all[i]);\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n + m",
"i",
"n + m",
"n",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tall[i] = sc.nextLine();\n\t\t\tif (i >= n) {\n\t\t\t\tmm[i - n] = Integer.parseInt(all[i]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tall[i] = sc.nextLine();\n\t\t\tif (i >= n) {\n\t\t\t\tmm[i - n] = Integer.parseInt(all[i]);\n\t\t\t}\n\t\t}",
"all[i] = sc.nextLine()",
"all[i]",
"all",
"i",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if (i >= n) {\n\t\t\t\tmm[i - n] = Integer.parseInt(all[i]);\n\t\t\t}",
"i >= n",
"i",
"n",
"{\n\t\t\t\tmm[i - n] = Integer.parseInt(all[i]);\n\t\t\t}",
"mm[i - n] = Integer.parseInt(all[i])",
"mm[i - n]",
"mm",
"i - n",
"i",
"n",
"Integer.parseInt(all[i])",
"Integer.parseInt",
"Integer",
"all[i]",
"all",
"i",
"int[] nn = new int[m];",
"nn",
"new int[m]",
"m",
"for (int i = 0; i < n; i++) {\n\t\t\tString[] kari = all[i].split(\" \");\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tnn[j] = Integer.parseInt(kari[j]);\n\t\t\t\tsum += nn[j] * mm[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString[] kari = all[i].split(\" \");\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tnn[j] = Integer.parseInt(kari[j]);\n\t\t\t\tsum += nn[j] * mm[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}",
"{\n\t\t\tString[] kari = all[i].split(\" \");\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tnn[j] = Integer.parseInt(kari[j]);\n\t\t\t\tsum += nn[j] * mm[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}",
"String[] kari = all[i].split(\" \");",
"kari",
"all[i].split(\" \")",
"all[i].split",
"all[i]",
"all",
"i",
"\" \"",
"int sum = 0;",
"sum",
"0",
"for (int j = 0; j < m; j++) {\n\t\t\t\tnn[j] = Integer.parseInt(kari[j]);\n\t\t\t\tsum += nn[j] * mm[j];\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tnn[j] = Integer.parseInt(kari[j]);\n\t\t\t\tsum += nn[j] * mm[j];\n\t\t\t}",
"{\n\t\t\t\tnn[j] = Integer.parseInt(kari[j]);\n\t\t\t\tsum += nn[j] * mm[j];\n\t\t\t}",
"nn[j] = Integer.parseInt(kari[j])",
"nn[j]",
"nn",
"j",
"Integer.parseInt(kari[j])",
"Integer.parseInt",
"Integer",
"kari[j]",
"kari",
"j",
"sum += nn[j] * mm[j]",
"sum",
"nn[j] * mm[j]",
"nn[j]",
"nn",
"j",
"mm[j]",
"mm",
"j",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tString[] line1b = line1.split(\" \");\n\t\tint n = Integer.parseInt(line1b[0]);\n\t\tint m = Integer.parseInt(line1b[1]);\n\n\t\tString[] all = new String[n + m];\n\n\t\tint[] mm = new int[m];\n\n\t\tfor (int i = 0; i < n + m; i++) {\n\t\t\tall[i] = sc.nextLine();\n\t\t\tif (i >= n) {\n\t\t\t\tmm[i - n] = Integer.parseInt(all[i]);\n\t\t\t}\n\t\t}\n\n\t\tint[] nn = new int[m];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] kari = all[i].split(\" \");\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tnn[j] = Integer.parseInt(kari[j]);\n\t\t\t\tsum += nn[j] * mm[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tString[] line1b = line1.split(\" \");\n\t\tint n = Integer.parseInt(line1b[0]);\n\t\tint m = Integer.parseInt(line1b[1]);\n\n\t\tString[] all = new String[n + m];\n\n\t\tint[] mm = new int[m];\n\n\t\tfor (int i = 0; i < n + m; i++) {\n\t\t\tall[i] = sc.nextLine();\n\t\t\tif (i >= n) {\n\t\t\t\tmm[i - n] = Integer.parseInt(all[i]);\n\t\t\t}\n\t\t}\n\n\t\tint[] nn = new int[m];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] kari = all[i].split(\" \");\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tnn[j] = Integer.parseInt(kari[j]);\n\t\t\t\tsum += nn[j] * mm[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
String line1 = sc.nextLine();
String[] line1b = line1.split(" ");
int n = Integer.parseInt(line1b[0]);
int m = Integer.parseInt(line1b[1]);
String[] all = new String[n + m];
int[] mm = new int[m];
for (int i = 0; i < n + m; i++) {
all[i] = sc.nextLine();
if (i >= n) {
mm[i - n] = Integer.parseInt(all[i]);
}
}
int[] nn = new int[m];
for (int i = 0; i < n; i++) {
String[] kari = all[i].split(" ");
int sum = 0;
for (int j = 0; j < m; j++) {
nn[j] = Integer.parseInt(kari[j]);
sum += nn[j] * mm[j];
}
System.out.println(sum);
}
}
} |
[
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,
13,
41,
13,
20,
13,
17,
41,
13,
20,
13,
17,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
17,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
17,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
17,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
17,
0,
18,
18,
13,
13,
17,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
18,
13,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
40,
50
],
[
50,
51
],
[
51,
52
],
[
40,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
55,
67
],
[
67,
68
],
[
68,
69
],
[
55,
70
],
[
71,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
72,
78
],
[
78,
79
],
[
79,
80
],
[
54,
81
],
[
81,
82
],
[
82,
83
],
[
8,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
91,
93
],
[
84,
94
],
[
94,
95
],
[
95,
96
],
[
84,
97
],
[
98,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
99,
105
],
[
105,
106
],
[
106,
107
],
[
98,
108
],
[
108,
109
],
[
109,
110
],
[
8,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
118,
120
],
[
111,
121
],
[
121,
122
],
[
122,
123
],
[
111,
124
],
[
125,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
129,
141
],
[
141,
142
],
[
142,
143
],
[
129,
144
],
[
145,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
148,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
145,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
159,
165
],
[
8,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
166,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
173,
175
],
[
166,
176
],
[
176,
177
],
[
177,
178
],
[
166,
179
],
[
180,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
181,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
186,
190
],
[
6,
191
],
[
191,
192
]
] | [
"import java.util.Scanner;\n\nclass Main {\n public static void main(String args[]) {\n Scanner scan = new Scanner(System.in);\n\n int r = scan.nextInt();\n int col = scan.nextInt();\n\n int[][] a = new int[r][col];\n int[][] b = new int[col][1];\n int[][] c = new int[r][1];\n scan.nextLine();\n\n for (int i = 0; i < a.length;i++) {\n for(int j = 0;j < a[0].length;j++) {\n a[i][j] = scan.nextInt();\n }\n scan.nextLine();\n }\n for (int i = 0; i < b.length;i++) {\n b[i][0] = scan.nextInt();\n scan.nextLine();\n }\n for (int i = 0; i < a.length;i++) {\n int t = 0;\n for (int j = 0; j < a[0].length;j++) {\n t += a[i][j] * b[j][0];\n c[i][0] = t;\n }\n }\n for (int i = 0; i < c.length; i++) {\n System.out.println(c[i][0]);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String args[]) {\n Scanner scan = new Scanner(System.in);\n\n int r = scan.nextInt();\n int col = scan.nextInt();\n\n int[][] a = new int[r][col];\n int[][] b = new int[col][1];\n int[][] c = new int[r][1];\n scan.nextLine();\n\n for (int i = 0; i < a.length;i++) {\n for(int j = 0;j < a[0].length;j++) {\n a[i][j] = scan.nextInt();\n }\n scan.nextLine();\n }\n for (int i = 0; i < b.length;i++) {\n b[i][0] = scan.nextInt();\n scan.nextLine();\n }\n for (int i = 0; i < a.length;i++) {\n int t = 0;\n for (int j = 0; j < a[0].length;j++) {\n t += a[i][j] * b[j][0];\n c[i][0] = t;\n }\n }\n for (int i = 0; i < c.length; i++) {\n System.out.println(c[i][0]);\n }\n }\n}",
"Main",
"public static void main(String args[]) {\n Scanner scan = new Scanner(System.in);\n\n int r = scan.nextInt();\n int col = scan.nextInt();\n\n int[][] a = new int[r][col];\n int[][] b = new int[col][1];\n int[][] c = new int[r][1];\n scan.nextLine();\n\n for (int i = 0; i < a.length;i++) {\n for(int j = 0;j < a[0].length;j++) {\n a[i][j] = scan.nextInt();\n }\n scan.nextLine();\n }\n for (int i = 0; i < b.length;i++) {\n b[i][0] = scan.nextInt();\n scan.nextLine();\n }\n for (int i = 0; i < a.length;i++) {\n int t = 0;\n for (int j = 0; j < a[0].length;j++) {\n t += a[i][j] * b[j][0];\n c[i][0] = t;\n }\n }\n for (int i = 0; i < c.length; i++) {\n System.out.println(c[i][0]);\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n\n int r = scan.nextInt();\n int col = scan.nextInt();\n\n int[][] a = new int[r][col];\n int[][] b = new int[col][1];\n int[][] c = new int[r][1];\n scan.nextLine();\n\n for (int i = 0; i < a.length;i++) {\n for(int j = 0;j < a[0].length;j++) {\n a[i][j] = scan.nextInt();\n }\n scan.nextLine();\n }\n for (int i = 0; i < b.length;i++) {\n b[i][0] = scan.nextInt();\n scan.nextLine();\n }\n for (int i = 0; i < a.length;i++) {\n int t = 0;\n for (int j = 0; j < a[0].length;j++) {\n t += a[i][j] * b[j][0];\n c[i][0] = t;\n }\n }\n for (int i = 0; i < c.length; i++) {\n System.out.println(c[i][0]);\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int r = scan.nextInt();",
"r",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int col = scan.nextInt();",
"col",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[][] a = new int[r][col];",
"a",
"new int[r][col]",
"r",
"col",
"int[][] b = new int[col][1];",
"b",
"new int[col][1]",
"col",
"1",
"int[][] c = new int[r][1];",
"c",
"new int[r][1]",
"r",
"1",
"scan.nextLine()",
"scan.nextLine",
"scan",
"for (int i = 0; i < a.length;i++) {\n for(int j = 0;j < a[0].length;j++) {\n a[i][j] = scan.nextInt();\n }\n scan.nextLine();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"{\n for(int j = 0;j < a[0].length;j++) {\n a[i][j] = scan.nextInt();\n }\n scan.nextLine();\n }",
"{\n for(int j = 0;j < a[0].length;j++) {\n a[i][j] = scan.nextInt();\n }\n scan.nextLine();\n }",
"for(int j = 0;j < a[0].length;j++) {\n a[i][j] = scan.nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < a[0].length",
"j",
"a[0].length",
"a[0]",
"a",
"0",
"a[0].length",
"j++",
"j++",
"j",
"{\n a[i][j] = scan.nextInt();\n }",
"{\n a[i][j] = scan.nextInt();\n }",
"a[i][j] = scan.nextInt()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"scan.nextLine()",
"scan.nextLine",
"scan",
"for (int i = 0; i < b.length;i++) {\n b[i][0] = scan.nextInt();\n scan.nextLine();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < b.length",
"i",
"b.length",
"b",
"b.length",
"i++",
"i++",
"i",
"{\n b[i][0] = scan.nextInt();\n scan.nextLine();\n }",
"{\n b[i][0] = scan.nextInt();\n scan.nextLine();\n }",
"b[i][0] = scan.nextInt()",
"b[i][0]",
"b[i]",
"b",
"i",
"0",
"scan.nextInt()",
"scan.nextInt",
"scan",
"scan.nextLine()",
"scan.nextLine",
"scan",
"for (int i = 0; i < a.length;i++) {\n int t = 0;\n for (int j = 0; j < a[0].length;j++) {\n t += a[i][j] * b[j][0];\n c[i][0] = t;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"{\n int t = 0;\n for (int j = 0; j < a[0].length;j++) {\n t += a[i][j] * b[j][0];\n c[i][0] = t;\n }\n }",
"{\n int t = 0;\n for (int j = 0; j < a[0].length;j++) {\n t += a[i][j] * b[j][0];\n c[i][0] = t;\n }\n }",
"int t = 0;",
"t",
"0",
"for (int j = 0; j < a[0].length;j++) {\n t += a[i][j] * b[j][0];\n c[i][0] = t;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < a[0].length",
"j",
"a[0].length",
"a[0]",
"a",
"0",
"a[0].length",
"j++",
"j++",
"j",
"{\n t += a[i][j] * b[j][0];\n c[i][0] = t;\n }",
"{\n t += a[i][j] * b[j][0];\n c[i][0] = t;\n }",
"t += a[i][j] * b[j][0]",
"t",
"a[i][j] * b[j][0]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j][0]",
"b[j]",
"b",
"j",
"0",
"c[i][0] = t",
"c[i][0]",
"c[i]",
"c",
"i",
"0",
"t",
"for (int i = 0; i < c.length; i++) {\n System.out.println(c[i][0]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < c.length",
"i",
"c.length",
"c",
"c.length",
"i++",
"i++",
"i",
"{\n System.out.println(c[i][0]);\n }",
"{\n System.out.println(c[i][0]);\n }",
"System.out.println(c[i][0])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[i][0]",
"c[i]",
"c",
"i",
"0",
"String args[]",
"args"
] | import java.util.Scanner;
class Main {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
int r = scan.nextInt();
int col = scan.nextInt();
int[][] a = new int[r][col];
int[][] b = new int[col][1];
int[][] c = new int[r][1];
scan.nextLine();
for (int i = 0; i < a.length;i++) {
for(int j = 0;j < a[0].length;j++) {
a[i][j] = scan.nextInt();
}
scan.nextLine();
}
for (int i = 0; i < b.length;i++) {
b[i][0] = scan.nextInt();
scan.nextLine();
}
for (int i = 0; i < a.length;i++) {
int t = 0;
for (int j = 0; j < a[0].length;j++) {
t += a[i][j] * b[j][0];
c[i][0] = t;
}
}
for (int i = 0; i < c.length; i++) {
System.out.println(c[i][0]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
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,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
187,
5
],
[
187,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
14,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
64,
69
],
[
61,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
83,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
92,
94
],
[
8,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
95,
103
],
[
103,
104
],
[
104,
105
],
[
95,
106
],
[
107,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
115,
116
],
[
116,
117
],
[
8,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
118,
126
],
[
126,
127
],
[
127,
128
],
[
118,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
139,
140
],
[
139,
141
],
[
134,
142
],
[
142,
143
],
[
143,
144
],
[
134,
145
],
[
146,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
149,
155
],
[
155,
156
],
[
155,
157
],
[
130,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
8,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
168,
169
],
[
168,
170
],
[
163,
171
],
[
171,
172
],
[
172,
173
],
[
163,
174
],
[
175,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
176,
181
],
[
181,
182
],
[
181,
183
],
[
6,
184
],
[
184,
185
],
[
0,
186
],
[
186,
187
],
[
186,
188
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] dimention = sc.nextLine().split(\" \");\n int n = Integer.parseInt(dimention[0]);\n int m = Integer.parseInt(dimention[1]);\n \n //declaration of matrices\n int[][] matrix_1 = new int[n][m];\n int[] matrix_2 = new int[m];\n int[] answer = new int[n];\n \n //initialization of matrix_1\n for (int row = 0; row < n; row ++) {\n String[] input = sc.nextLine().split(\" \");\n for(int col = 0; col < m; col ++) {\n matrix_1[row][col] = Integer.parseInt(input[col]);\n }\n }\n \n //initialization of matrix_2\n for (int i = 0; i < m; i ++) {\n matrix_2[i] = Integer.parseInt(sc.nextLine());\n }\n \n //calculation\n for (int row = 0; row < n; row ++) {\n int temp = 0;\n for (int col = 0; col < m; col ++) {\n temp += matrix_1[row][col] * matrix_2[col];\n }\n answer[row] = temp;\n }\n \n //print out\n for(int i = 0; i < n; i ++) {\n System.out.println(answer[i]);\n }\n \n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] dimention = sc.nextLine().split(\" \");\n int n = Integer.parseInt(dimention[0]);\n int m = Integer.parseInt(dimention[1]);\n \n //declaration of matrices\n int[][] matrix_1 = new int[n][m];\n int[] matrix_2 = new int[m];\n int[] answer = new int[n];\n \n //initialization of matrix_1\n for (int row = 0; row < n; row ++) {\n String[] input = sc.nextLine().split(\" \");\n for(int col = 0; col < m; col ++) {\n matrix_1[row][col] = Integer.parseInt(input[col]);\n }\n }\n \n //initialization of matrix_2\n for (int i = 0; i < m; i ++) {\n matrix_2[i] = Integer.parseInt(sc.nextLine());\n }\n \n //calculation\n for (int row = 0; row < n; row ++) {\n int temp = 0;\n for (int col = 0; col < m; col ++) {\n temp += matrix_1[row][col] * matrix_2[col];\n }\n answer[row] = temp;\n }\n \n //print out\n for(int i = 0; i < n; i ++) {\n System.out.println(answer[i]);\n }\n \n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] dimention = sc.nextLine().split(\" \");\n int n = Integer.parseInt(dimention[0]);\n int m = Integer.parseInt(dimention[1]);\n \n //declaration of matrices\n int[][] matrix_1 = new int[n][m];\n int[] matrix_2 = new int[m];\n int[] answer = new int[n];\n \n //initialization of matrix_1\n for (int row = 0; row < n; row ++) {\n String[] input = sc.nextLine().split(\" \");\n for(int col = 0; col < m; col ++) {\n matrix_1[row][col] = Integer.parseInt(input[col]);\n }\n }\n \n //initialization of matrix_2\n for (int i = 0; i < m; i ++) {\n matrix_2[i] = Integer.parseInt(sc.nextLine());\n }\n \n //calculation\n for (int row = 0; row < n; row ++) {\n int temp = 0;\n for (int col = 0; col < m; col ++) {\n temp += matrix_1[row][col] * matrix_2[col];\n }\n answer[row] = temp;\n }\n \n //print out\n for(int i = 0; i < n; i ++) {\n System.out.println(answer[i]);\n }\n \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String[] dimention = sc.nextLine().split(\" \");\n int n = Integer.parseInt(dimention[0]);\n int m = Integer.parseInt(dimention[1]);\n \n //declaration of matrices\n int[][] matrix_1 = new int[n][m];\n int[] matrix_2 = new int[m];\n int[] answer = new int[n];\n \n //initialization of matrix_1\n for (int row = 0; row < n; row ++) {\n String[] input = sc.nextLine().split(\" \");\n for(int col = 0; col < m; col ++) {\n matrix_1[row][col] = Integer.parseInt(input[col]);\n }\n }\n \n //initialization of matrix_2\n for (int i = 0; i < m; i ++) {\n matrix_2[i] = Integer.parseInt(sc.nextLine());\n }\n \n //calculation\n for (int row = 0; row < n; row ++) {\n int temp = 0;\n for (int col = 0; col < m; col ++) {\n temp += matrix_1[row][col] * matrix_2[col];\n }\n answer[row] = temp;\n }\n \n //print out\n for(int i = 0; i < n; i ++) {\n System.out.println(answer[i]);\n }\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String[] dimention = sc.nextLine().split(\" \");",
"dimention",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"int n = Integer.parseInt(dimention[0]);",
"n",
"Integer.parseInt(dimention[0])",
"Integer.parseInt",
"Integer",
"dimention[0]",
"dimention",
"0",
"int m = Integer.parseInt(dimention[1]);",
"m",
"Integer.parseInt(dimention[1])",
"Integer.parseInt",
"Integer",
"dimention[1]",
"dimention",
"1",
"int[][] matrix_1 = new int[n][m];",
"matrix_1",
"new int[n][m]",
"n",
"m",
"int[] matrix_2 = new int[m];",
"matrix_2",
"new int[m]",
"m",
"int[] answer = new int[n];",
"answer",
"new int[n]",
"n",
"for (int row = 0; row < n; row ++) {\n String[] input = sc.nextLine().split(\" \");\n for(int col = 0; col < m; col ++) {\n matrix_1[row][col] = Integer.parseInt(input[col]);\n }\n }",
"int row = 0;",
"int row = 0;",
"row",
"0",
"row < n",
"row",
"n",
"row ++",
"row ++",
"row",
"{\n String[] input = sc.nextLine().split(\" \");\n for(int col = 0; col < m; col ++) {\n matrix_1[row][col] = Integer.parseInt(input[col]);\n }\n }",
"{\n String[] input = sc.nextLine().split(\" \");\n for(int col = 0; col < m; col ++) {\n matrix_1[row][col] = Integer.parseInt(input[col]);\n }\n }",
"String[] input = sc.nextLine().split(\" \");",
"input",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"for(int col = 0; col < m; col ++) {\n matrix_1[row][col] = Integer.parseInt(input[col]);\n }",
"int col = 0;",
"int col = 0;",
"col",
"0",
"col < m",
"col",
"m",
"col ++",
"col ++",
"col",
"{\n matrix_1[row][col] = Integer.parseInt(input[col]);\n }",
"{\n matrix_1[row][col] = Integer.parseInt(input[col]);\n }",
"matrix_1[row][col] = Integer.parseInt(input[col])",
"matrix_1[row][col]",
"matrix_1[row]",
"matrix_1",
"row",
"col",
"Integer.parseInt(input[col])",
"Integer.parseInt",
"Integer",
"input[col]",
"input",
"col",
"for (int i = 0; i < m; i ++) {\n matrix_2[i] = Integer.parseInt(sc.nextLine());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i ++",
"i ++",
"i",
"{\n matrix_2[i] = Integer.parseInt(sc.nextLine());\n }",
"{\n matrix_2[i] = Integer.parseInt(sc.nextLine());\n }",
"matrix_2[i] = Integer.parseInt(sc.nextLine())",
"matrix_2[i]",
"matrix_2",
"i",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for (int row = 0; row < n; row ++) {\n int temp = 0;\n for (int col = 0; col < m; col ++) {\n temp += matrix_1[row][col] * matrix_2[col];\n }\n answer[row] = temp;\n }",
"int row = 0;",
"int row = 0;",
"row",
"0",
"row < n",
"row",
"n",
"row ++",
"row ++",
"row",
"{\n int temp = 0;\n for (int col = 0; col < m; col ++) {\n temp += matrix_1[row][col] * matrix_2[col];\n }\n answer[row] = temp;\n }",
"{\n int temp = 0;\n for (int col = 0; col < m; col ++) {\n temp += matrix_1[row][col] * matrix_2[col];\n }\n answer[row] = temp;\n }",
"int temp = 0;",
"temp",
"0",
"for (int col = 0; col < m; col ++) {\n temp += matrix_1[row][col] * matrix_2[col];\n }",
"int col = 0;",
"int col = 0;",
"col",
"0",
"col < m",
"col",
"m",
"col ++",
"col ++",
"col",
"{\n temp += matrix_1[row][col] * matrix_2[col];\n }",
"{\n temp += matrix_1[row][col] * matrix_2[col];\n }",
"temp += matrix_1[row][col] * matrix_2[col]",
"temp",
"matrix_1[row][col] * matrix_2[col]",
"matrix_1[row][col]",
"matrix_1[row]",
"matrix_1",
"row",
"col",
"matrix_2[col]",
"matrix_2",
"col",
"answer[row] = temp",
"answer[row]",
"answer",
"row",
"temp",
"for(int i = 0; i < n; i ++) {\n System.out.println(answer[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i ++",
"i ++",
"i",
"{\n System.out.println(answer[i]);\n }",
"{\n System.out.println(answer[i]);\n }",
"System.out.println(answer[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"answer[i]",
"answer",
"i",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] dimention = sc.nextLine().split(\" \");\n int n = Integer.parseInt(dimention[0]);\n int m = Integer.parseInt(dimention[1]);\n \n //declaration of matrices\n int[][] matrix_1 = new int[n][m];\n int[] matrix_2 = new int[m];\n int[] answer = new int[n];\n \n //initialization of matrix_1\n for (int row = 0; row < n; row ++) {\n String[] input = sc.nextLine().split(\" \");\n for(int col = 0; col < m; col ++) {\n matrix_1[row][col] = Integer.parseInt(input[col]);\n }\n }\n \n //initialization of matrix_2\n for (int i = 0; i < m; i ++) {\n matrix_2[i] = Integer.parseInt(sc.nextLine());\n }\n \n //calculation\n for (int row = 0; row < n; row ++) {\n int temp = 0;\n for (int col = 0; col < m; col ++) {\n temp += matrix_1[row][col] * matrix_2[col];\n }\n answer[row] = temp;\n }\n \n //print out\n for(int i = 0; i < n; i ++) {\n System.out.println(answer[i]);\n }\n \n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] dimention = sc.nextLine().split(\" \");\n int n = Integer.parseInt(dimention[0]);\n int m = Integer.parseInt(dimention[1]);\n \n //declaration of matrices\n int[][] matrix_1 = new int[n][m];\n int[] matrix_2 = new int[m];\n int[] answer = new int[n];\n \n //initialization of matrix_1\n for (int row = 0; row < n; row ++) {\n String[] input = sc.nextLine().split(\" \");\n for(int col = 0; col < m; col ++) {\n matrix_1[row][col] = Integer.parseInt(input[col]);\n }\n }\n \n //initialization of matrix_2\n for (int i = 0; i < m; i ++) {\n matrix_2[i] = Integer.parseInt(sc.nextLine());\n }\n \n //calculation\n for (int row = 0; row < n; row ++) {\n int temp = 0;\n for (int col = 0; col < m; col ++) {\n temp += matrix_1[row][col] * matrix_2[col];\n }\n answer[row] = temp;\n }\n \n //print out\n for(int i = 0; i < n; i ++) {\n System.out.println(answer[i]);\n }\n \n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String[] dimention = sc.nextLine().split(" ");
int n = Integer.parseInt(dimention[0]);
int m = Integer.parseInt(dimention[1]);
//declaration of matrices
int[][] matrix_1 = new int[n][m];
int[] matrix_2 = new int[m];
int[] answer = new int[n];
//initialization of matrix_1
for (int row = 0; row < n; row ++) {
String[] input = sc.nextLine().split(" ");
for(int col = 0; col < m; col ++) {
matrix_1[row][col] = Integer.parseInt(input[col]);
}
}
//initialization of matrix_2
for (int i = 0; i < m; i ++) {
matrix_2[i] = Integer.parseInt(sc.nextLine());
}
//calculation
for (int row = 0; row < n; row ++) {
int temp = 0;
for (int col = 0; col < m; col ++) {
temp += matrix_1[row][col] * matrix_2[col];
}
answer[row] = temp;
}
//print out
for(int i = 0; i < n; i ++) {
System.out.println(answer[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,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
8,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
86,
94
],
[
94,
95
],
[
95,
96
],
[
86,
97
],
[
98,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
110,
111
],
[
111,
112
],
[
102,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
117,
123
],
[
123,
124
],
[
123,
125
],
[
98,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
6,
132
],
[
132,
133
],
[
0,
134
],
[
134,
135
],
[
134,
136
]
] | [
"import java.util.Scanner;\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 m=sc.nextInt();\n int matrix[][]=new int[n][m];\n int vector[]=new int[m];\n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++) {\n matrix[i][j]=sc.nextInt();\n }\n }\n for(int i=0;i<m;i++){\n vector[i]=sc.nextInt();\n }\n\n for(int i=0;i<n;i++){\n int sum=0;\n for(int j=0;j<m;j++) {\n sum+=matrix[i][j]*vector[j];\n }\n System.out.println(sum);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n int m=sc.nextInt();\n int matrix[][]=new int[n][m];\n int vector[]=new int[m];\n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++) {\n matrix[i][j]=sc.nextInt();\n }\n }\n for(int i=0;i<m;i++){\n vector[i]=sc.nextInt();\n }\n\n for(int i=0;i<n;i++){\n int sum=0;\n for(int j=0;j<m;j++) {\n sum+=matrix[i][j]*vector[j];\n }\n System.out.println(sum);\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n int m=sc.nextInt();\n int matrix[][]=new int[n][m];\n int vector[]=new int[m];\n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++) {\n matrix[i][j]=sc.nextInt();\n }\n }\n for(int i=0;i<m;i++){\n vector[i]=sc.nextInt();\n }\n\n for(int i=0;i<n;i++){\n int sum=0;\n for(int j=0;j<m;j++) {\n sum+=matrix[i][j]*vector[j];\n }\n System.out.println(sum);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n int m=sc.nextInt();\n int matrix[][]=new int[n][m];\n int vector[]=new int[m];\n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++) {\n matrix[i][j]=sc.nextInt();\n }\n }\n for(int i=0;i<m;i++){\n vector[i]=sc.nextInt();\n }\n\n for(int i=0;i<n;i++){\n int sum=0;\n for(int j=0;j<m;j++) {\n sum+=matrix[i][j]*vector[j];\n }\n System.out.println(sum);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m=sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int matrix[][]=new int[n][m];",
"matrix",
"new int[n][m]",
"n",
"m",
"int vector[]=new int[m];",
"vector",
"new int[m]",
"m",
"for(int i=0;i<n;i++){\n for(int j=0;j<m;j++) {\n matrix[i][j]=sc.nextInt();\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j=0;j<m;j++) {\n matrix[i][j]=sc.nextInt();\n }\n }",
"{\n for(int j=0;j<m;j++) {\n matrix[i][j]=sc.nextInt();\n }\n }",
"for(int j=0;j<m;j++) {\n matrix[i][j]=sc.nextInt();\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n matrix[i][j]=sc.nextInt();\n }",
"{\n matrix[i][j]=sc.nextInt();\n }",
"matrix[i][j]=sc.nextInt()",
"matrix[i][j]",
"matrix[i]",
"matrix",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i<m;i++){\n vector[i]=sc.nextInt();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n vector[i]=sc.nextInt();\n }",
"{\n vector[i]=sc.nextInt();\n }",
"vector[i]=sc.nextInt()",
"vector[i]",
"vector",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i<n;i++){\n int sum=0;\n for(int j=0;j<m;j++) {\n sum+=matrix[i][j]*vector[j];\n }\n System.out.println(sum);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int sum=0;\n for(int j=0;j<m;j++) {\n sum+=matrix[i][j]*vector[j];\n }\n System.out.println(sum);\n }",
"{\n int sum=0;\n for(int j=0;j<m;j++) {\n sum+=matrix[i][j]*vector[j];\n }\n System.out.println(sum);\n }",
"int sum=0;",
"sum",
"0",
"for(int j=0;j<m;j++) {\n sum+=matrix[i][j]*vector[j];\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n sum+=matrix[i][j]*vector[j];\n }",
"{\n sum+=matrix[i][j]*vector[j];\n }",
"sum+=matrix[i][j]*vector[j]",
"sum",
"matrix[i][j]*vector[j]",
"matrix[i][j]",
"matrix[i]",
"matrix",
"i",
"j",
"vector[j]",
"vector",
"j",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n int m=sc.nextInt();\n int matrix[][]=new int[n][m];\n int vector[]=new int[m];\n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++) {\n matrix[i][j]=sc.nextInt();\n }\n }\n for(int i=0;i<m;i++){\n vector[i]=sc.nextInt();\n }\n\n for(int i=0;i<n;i++){\n int sum=0;\n for(int j=0;j<m;j++) {\n sum+=matrix[i][j]*vector[j];\n }\n System.out.println(sum);\n }\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n int m=sc.nextInt();\n int matrix[][]=new int[n][m];\n int vector[]=new int[m];\n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++) {\n matrix[i][j]=sc.nextInt();\n }\n }\n for(int i=0;i<m;i++){\n vector[i]=sc.nextInt();\n }\n\n for(int i=0;i<n;i++){\n int sum=0;\n for(int j=0;j<m;j++) {\n sum+=matrix[i][j]*vector[j];\n }\n System.out.println(sum);\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n=sc.nextInt();
int m=sc.nextInt();
int matrix[][]=new int[n][m];
int vector[]=new int[m];
for(int i=0;i<n;i++){
for(int j=0;j<m;j++) {
matrix[i][j]=sc.nextInt();
}
}
for(int i=0;i<m;i++){
vector[i]=sc.nextInt();
}
for(int i=0;i<n;i++){
int sum=0;
for(int j=0;j<m;j++) {
sum+=matrix[i][j]*vector[j];
}
System.out.println(sum);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
20,
23,
13,
12,
13,
30,
4,
18,
20,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
149,
5
],
[
149,
6
],
[
6,
7
],
[
6,
8
],
[
149,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
9,
13
],
[
13,
14
],
[
149,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
149,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
36,
37
],
[
36,
38
],
[
25,
41
],
[
41,
42
],
[
41,
43
],
[
25,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
58,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
25,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
80,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
98,
99
],
[
25,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
100,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
121,
122
],
[
121,
123
],
[
116,
124
],
[
124,
125
],
[
125,
126
],
[
116,
127
],
[
128,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
133,
139
],
[
139,
140
],
[
139,
141
],
[
112,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
142,
147
],
[
0,
148
],
[
148,
149
],
[
148,
150
]
] | [
"import java.util.*;\n \npublic class Main {\n Scanner sc = new Scanner(System.in);\n \n public static void main(String[] args) {\n new Main(); \n }\n \n public Main() {\n new TEST().doIt();\n }\n class TEST{\n void doIt(){\n \tint n = sc.nextInt();\n \tint m = sc.nextInt();\n \tint a[][] = new int [n][m];\n \tint b[] = new int [m];\n \tfor(int i = 0;i < n;i++){\n \t\tfor(int j = 0;j < m;j++){\n \t\t\ta[i][j] = sc.nextInt();\n \t\t}\n \t}\n \tfor(int i = 0;i < m;i++){\n \t\tb[i] = sc.nextInt();\n \t}\n \tfor(int i = 0;i < n;i++){\n \t\tint sum = 0;\n \t\tfor(int j = 0;j < m;j++){\n \t\t\tsum = sum + a[i][j] * b[j];\n \t\t}\n \t\tSystem.out.println(sum);\n \t}\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n Scanner sc = new Scanner(System.in);\n \n public static void main(String[] args) {\n new Main(); \n }\n \n public Main() {\n new TEST().doIt();\n }\n class TEST{\n void doIt(){\n \tint n = sc.nextInt();\n \tint m = sc.nextInt();\n \tint a[][] = new int [n][m];\n \tint b[] = new int [m];\n \tfor(int i = 0;i < n;i++){\n \t\tfor(int j = 0;j < m;j++){\n \t\t\ta[i][j] = sc.nextInt();\n \t\t}\n \t}\n \tfor(int i = 0;i < m;i++){\n \t\tb[i] = sc.nextInt();\n \t}\n \tfor(int i = 0;i < n;i++){\n \t\tint sum = 0;\n \t\tfor(int j = 0;j < m;j++){\n \t\t\tsum = sum + a[i][j] * b[j];\n \t\t}\n \t\tSystem.out.println(sum);\n \t}\n }\n }\n}",
"Main",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) {\n new Main(); \n }",
"main",
"{\n new Main(); \n }",
"new Main()",
"String[] args",
"args",
"public Main() {\n new TEST().doIt();\n }",
"Main",
"{\n new TEST().doIt();\n }",
"new TEST().doIt()",
"new TEST().doIt",
"new TEST()",
"class TEST{\n void doIt(){\n \tint n = sc.nextInt();\n \tint m = sc.nextInt();\n \tint a[][] = new int [n][m];\n \tint b[] = new int [m];\n \tfor(int i = 0;i < n;i++){\n \t\tfor(int j = 0;j < m;j++){\n \t\t\ta[i][j] = sc.nextInt();\n \t\t}\n \t}\n \tfor(int i = 0;i < m;i++){\n \t\tb[i] = sc.nextInt();\n \t}\n \tfor(int i = 0;i < n;i++){\n \t\tint sum = 0;\n \t\tfor(int j = 0;j < m;j++){\n \t\t\tsum = sum + a[i][j] * b[j];\n \t\t}\n \t\tSystem.out.println(sum);\n \t}\n }\n }",
"TEST",
"void doIt(){\n \tint n = sc.nextInt();\n \tint m = sc.nextInt();\n \tint a[][] = new int [n][m];\n \tint b[] = new int [m];\n \tfor(int i = 0;i < n;i++){\n \t\tfor(int j = 0;j < m;j++){\n \t\t\ta[i][j] = sc.nextInt();\n \t\t}\n \t}\n \tfor(int i = 0;i < m;i++){\n \t\tb[i] = sc.nextInt();\n \t}\n \tfor(int i = 0;i < n;i++){\n \t\tint sum = 0;\n \t\tfor(int j = 0;j < m;j++){\n \t\t\tsum = sum + a[i][j] * b[j];\n \t\t}\n \t\tSystem.out.println(sum);\n \t}\n }",
"doIt",
"{\n \tint n = sc.nextInt();\n \tint m = sc.nextInt();\n \tint a[][] = new int [n][m];\n \tint b[] = new int [m];\n \tfor(int i = 0;i < n;i++){\n \t\tfor(int j = 0;j < m;j++){\n \t\t\ta[i][j] = sc.nextInt();\n \t\t}\n \t}\n \tfor(int i = 0;i < m;i++){\n \t\tb[i] = sc.nextInt();\n \t}\n \tfor(int i = 0;i < n;i++){\n \t\tint sum = 0;\n \t\tfor(int j = 0;j < m;j++){\n \t\t\tsum = sum + a[i][j] * b[j];\n \t\t}\n \t\tSystem.out.println(sum);\n \t}\n }",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a[][] = new int [n][m];",
"a",
"new int [n][m]",
"n",
"m",
"int b[] = new int [m];",
"b",
"new int [m]",
"m",
"for(int i = 0;i < n;i++){\n \t\tfor(int j = 0;j < m;j++){\n \t\t\ta[i][j] = sc.nextInt();\n \t\t}\n \t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \t\tfor(int j = 0;j < m;j++){\n \t\t\ta[i][j] = sc.nextInt();\n \t\t}\n \t}",
"{\n \t\tfor(int j = 0;j < m;j++){\n \t\t\ta[i][j] = sc.nextInt();\n \t\t}\n \t}",
"for(int j = 0;j < m;j++){\n \t\t\ta[i][j] = sc.nextInt();\n \t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n \t\t\ta[i][j] = sc.nextInt();\n \t\t}",
"{\n \t\t\ta[i][j] = sc.nextInt();\n \t\t}",
"a[i][j] = sc.nextInt()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0;i < m;i++){\n \t\tb[i] = sc.nextInt();\n \t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n \t\tb[i] = sc.nextInt();\n \t}",
"{\n \t\tb[i] = sc.nextInt();\n \t}",
"b[i] = sc.nextInt()",
"b[i]",
"b",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0;i < n;i++){\n \t\tint sum = 0;\n \t\tfor(int j = 0;j < m;j++){\n \t\t\tsum = sum + a[i][j] * b[j];\n \t\t}\n \t\tSystem.out.println(sum);\n \t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \t\tint sum = 0;\n \t\tfor(int j = 0;j < m;j++){\n \t\t\tsum = sum + a[i][j] * b[j];\n \t\t}\n \t\tSystem.out.println(sum);\n \t}",
"{\n \t\tint sum = 0;\n \t\tfor(int j = 0;j < m;j++){\n \t\t\tsum = sum + a[i][j] * b[j];\n \t\t}\n \t\tSystem.out.println(sum);\n \t}",
"int sum = 0;",
"sum",
"0",
"for(int j = 0;j < m;j++){\n \t\t\tsum = sum + a[i][j] * b[j];\n \t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n \t\t\tsum = sum + a[i][j] * b[j];\n \t\t}",
"{\n \t\t\tsum = sum + a[i][j] * b[j];\n \t\t}",
"sum = sum + a[i][j] * b[j]",
"sum",
"sum + a[i][j] * b[j]",
"sum",
"a[i][j] * b[j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"public class Main {\n Scanner sc = new Scanner(System.in);\n \n public static void main(String[] args) {\n new Main(); \n }\n \n public Main() {\n new TEST().doIt();\n }\n class TEST{\n void doIt(){\n \tint n = sc.nextInt();\n \tint m = sc.nextInt();\n \tint a[][] = new int [n][m];\n \tint b[] = new int [m];\n \tfor(int i = 0;i < n;i++){\n \t\tfor(int j = 0;j < m;j++){\n \t\t\ta[i][j] = sc.nextInt();\n \t\t}\n \t}\n \tfor(int i = 0;i < m;i++){\n \t\tb[i] = sc.nextInt();\n \t}\n \tfor(int i = 0;i < n;i++){\n \t\tint sum = 0;\n \t\tfor(int j = 0;j < m;j++){\n \t\t\tsum = sum + a[i][j] * b[j];\n \t\t}\n \t\tSystem.out.println(sum);\n \t}\n }\n }\n}",
"public class Main {\n Scanner sc = new Scanner(System.in);\n \n public static void main(String[] args) {\n new Main(); \n }\n \n public Main() {\n new TEST().doIt();\n }\n class TEST{\n void doIt(){\n \tint n = sc.nextInt();\n \tint m = sc.nextInt();\n \tint a[][] = new int [n][m];\n \tint b[] = new int [m];\n \tfor(int i = 0;i < n;i++){\n \t\tfor(int j = 0;j < m;j++){\n \t\t\ta[i][j] = sc.nextInt();\n \t\t}\n \t}\n \tfor(int i = 0;i < m;i++){\n \t\tb[i] = sc.nextInt();\n \t}\n \tfor(int i = 0;i < n;i++){\n \t\tint sum = 0;\n \t\tfor(int j = 0;j < m;j++){\n \t\t\tsum = sum + a[i][j] * b[j];\n \t\t}\n \t\tSystem.out.println(sum);\n \t}\n }\n }\n}",
"Main"
] | import java.util.*;
public class Main {
Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
new Main();
}
public Main() {
new TEST().doIt();
}
class TEST{
void doIt(){
int n = sc.nextInt();
int m = sc.nextInt();
int a[][] = new int [n][m];
int b[] = new int [m];
for(int i = 0;i < n;i++){
for(int j = 0;j < m;j++){
a[i][j] = sc.nextInt();
}
}
for(int i = 0;i < m;i++){
b[i] = sc.nextInt();
}
for(int i = 0;i < n;i++){
int sum = 0;
for(int j = 0;j < m;j++){
sum = sum + a[i][j] * b[j];
}
System.out.println(sum);
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
41,
13,
20,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
20,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
4,
18,
13,
20,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
4,
18,
13,
20,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
157,
8
],
[
157,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
11,
14
],
[
14,
15
],
[
11,
16
],
[
16,
17
],
[
11,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
11,
27
],
[
27,
28
],
[
11,
29
],
[
29,
30
],
[
29,
31
],
[
11,
32
],
[
32,
33
],
[
32,
34
],
[
11,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
11,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
11,
45
],
[
45,
46
],
[
45,
47
],
[
11,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
50,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
63,
74
],
[
75,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
76,
82
],
[
82,
83
],
[
83,
84
],
[
11,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
85,
96
],
[
97,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
97,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
11,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
107,
115
],
[
115,
116
],
[
116,
117
],
[
107,
118
],
[
119,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
123,
128
],
[
128,
129
],
[
128,
130
],
[
123,
131
],
[
131,
132
],
[
132,
133
],
[
123,
134
],
[
135,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
139,
142
],
[
138,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
119,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
9,
154
],
[
154,
155
],
[
0,
156
],
[
156,
157
],
[
156,
158
]
] | [
"import java.util.ArrayList;\nimport java.util.Scanner;\n \npublic class Main {\n public static void main(String[] args) {\n int n, m, A[][], i, j, c, a = 1, cnt;\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> b = new ArrayList<Integer>();\n n = sc.nextInt();\n m = sc.nextInt();\n A = new int[n][m];\n \n for(i = 0; n > i; i++){\n for(j = 0; m > j; j++){\n A[i][j] = sc.nextInt();\n }\n }\n \n for(cnt = 0; cnt < m ; cnt++){\n a = sc.nextInt();\n b.add(new Integer(a));\n }\n \n for(i = 0; n > i ; i++){\n c = 0;\n for(j = 0;m > j; j++){\n c += b.get(new Integer(j)) * A[i][j];\n }\n System.out.println(c);\n }\n }\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n int n, m, A[][], i, j, c, a = 1, cnt;\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> b = new ArrayList<Integer>();\n n = sc.nextInt();\n m = sc.nextInt();\n A = new int[n][m];\n \n for(i = 0; n > i; i++){\n for(j = 0; m > j; j++){\n A[i][j] = sc.nextInt();\n }\n }\n \n for(cnt = 0; cnt < m ; cnt++){\n a = sc.nextInt();\n b.add(new Integer(a));\n }\n \n for(i = 0; n > i ; i++){\n c = 0;\n for(j = 0;m > j; j++){\n c += b.get(new Integer(j)) * A[i][j];\n }\n System.out.println(c);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n int n, m, A[][], i, j, c, a = 1, cnt;\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> b = new ArrayList<Integer>();\n n = sc.nextInt();\n m = sc.nextInt();\n A = new int[n][m];\n \n for(i = 0; n > i; i++){\n for(j = 0; m > j; j++){\n A[i][j] = sc.nextInt();\n }\n }\n \n for(cnt = 0; cnt < m ; cnt++){\n a = sc.nextInt();\n b.add(new Integer(a));\n }\n \n for(i = 0; n > i ; i++){\n c = 0;\n for(j = 0;m > j; j++){\n c += b.get(new Integer(j)) * A[i][j];\n }\n System.out.println(c);\n }\n }",
"main",
"{\n int n, m, A[][], i, j, c, a = 1, cnt;\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> b = new ArrayList<Integer>();\n n = sc.nextInt();\n m = sc.nextInt();\n A = new int[n][m];\n \n for(i = 0; n > i; i++){\n for(j = 0; m > j; j++){\n A[i][j] = sc.nextInt();\n }\n }\n \n for(cnt = 0; cnt < m ; cnt++){\n a = sc.nextInt();\n b.add(new Integer(a));\n }\n \n for(i = 0; n > i ; i++){\n c = 0;\n for(j = 0;m > j; j++){\n c += b.get(new Integer(j)) * A[i][j];\n }\n System.out.println(c);\n }\n }",
"int n",
"n",
"m",
"m",
"A[][]",
"A",
"i",
"i",
"j",
"j",
"c",
"c",
"a = 1",
"a",
"1",
"cnt;",
"cnt",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"ArrayList<Integer> b = new ArrayList<Integer>();",
"b",
"new ArrayList<Integer>()",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"m = sc.nextInt()",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"A = new int[n][m]",
"A",
"new int[n][m]",
"n",
"m",
"for(i = 0; n > i; i++){\n for(j = 0; m > j; j++){\n A[i][j] = sc.nextInt();\n }\n }",
"i = 0;",
"i = 0",
"i",
"0",
"n > i",
"n",
"i",
"i++",
"i++",
"i",
"{\n for(j = 0; m > j; j++){\n A[i][j] = sc.nextInt();\n }\n }",
"{\n for(j = 0; m > j; j++){\n A[i][j] = sc.nextInt();\n }\n }",
"for(j = 0; m > j; j++){\n A[i][j] = sc.nextInt();\n }",
"j = 0;",
"j = 0",
"j",
"0",
"m > j",
"m",
"j",
"j++",
"j++",
"j",
"{\n A[i][j] = sc.nextInt();\n }",
"{\n A[i][j] = sc.nextInt();\n }",
"A[i][j] = sc.nextInt()",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(cnt = 0; cnt < m ; cnt++){\n a = sc.nextInt();\n b.add(new Integer(a));\n }",
"cnt = 0;",
"cnt = 0",
"cnt",
"0",
"cnt < m",
"cnt",
"m",
"cnt++",
"cnt++",
"cnt",
"{\n a = sc.nextInt();\n b.add(new Integer(a));\n }",
"{\n a = sc.nextInt();\n b.add(new Integer(a));\n }",
"a = sc.nextInt()",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"b.add(new Integer(a))",
"b.add",
"b",
"new Integer(a)",
"for(i = 0; n > i ; i++){\n c = 0;\n for(j = 0;m > j; j++){\n c += b.get(new Integer(j)) * A[i][j];\n }\n System.out.println(c);\n }",
"i = 0;",
"i = 0",
"i",
"0",
"n > i",
"n",
"i",
"i++",
"i++",
"i",
"{\n c = 0;\n for(j = 0;m > j; j++){\n c += b.get(new Integer(j)) * A[i][j];\n }\n System.out.println(c);\n }",
"{\n c = 0;\n for(j = 0;m > j; j++){\n c += b.get(new Integer(j)) * A[i][j];\n }\n System.out.println(c);\n }",
"c = 0",
"c",
"0",
"for(j = 0;m > j; j++){\n c += b.get(new Integer(j)) * A[i][j];\n }",
"j = 0;",
"j = 0",
"j",
"0",
"m > j",
"m",
"j",
"j++",
"j++",
"j",
"{\n c += b.get(new Integer(j)) * A[i][j];\n }",
"{\n c += b.get(new Integer(j)) * A[i][j];\n }",
"c += b.get(new Integer(j)) * A[i][j]",
"c",
"b.get(new Integer(j)) * A[i][j]",
"b.get(new Integer(j))",
"b.get",
"b",
"new Integer(j)",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"System.out.println(c)",
"System.out.println",
"System.out",
"System",
"System.out",
"c",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n int n, m, A[][], i, j, c, a = 1, cnt;\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> b = new ArrayList<Integer>();\n n = sc.nextInt();\n m = sc.nextInt();\n A = new int[n][m];\n \n for(i = 0; n > i; i++){\n for(j = 0; m > j; j++){\n A[i][j] = sc.nextInt();\n }\n }\n \n for(cnt = 0; cnt < m ; cnt++){\n a = sc.nextInt();\n b.add(new Integer(a));\n }\n \n for(i = 0; n > i ; i++){\n c = 0;\n for(j = 0;m > j; j++){\n c += b.get(new Integer(j)) * A[i][j];\n }\n System.out.println(c);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n int n, m, A[][], i, j, c, a = 1, cnt;\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> b = new ArrayList<Integer>();\n n = sc.nextInt();\n m = sc.nextInt();\n A = new int[n][m];\n \n for(i = 0; n > i; i++){\n for(j = 0; m > j; j++){\n A[i][j] = sc.nextInt();\n }\n }\n \n for(cnt = 0; cnt < m ; cnt++){\n a = sc.nextInt();\n b.add(new Integer(a));\n }\n \n for(i = 0; n > i ; i++){\n c = 0;\n for(j = 0;m > j; j++){\n c += b.get(new Integer(j)) * A[i][j];\n }\n System.out.println(c);\n }\n }\n}",
"Main"
] | import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int n, m, A[][], i, j, c, a = 1, cnt;
Scanner sc = new Scanner(System.in);
ArrayList<Integer> b = new ArrayList<Integer>();
n = sc.nextInt();
m = sc.nextInt();
A = new int[n][m];
for(i = 0; n > i; i++){
for(j = 0; m > j; j++){
A[i][j] = sc.nextInt();
}
}
for(cnt = 0; cnt < m ; cnt++){
a = sc.nextInt();
b.add(new Integer(a));
}
for(i = 0; n > i ; i++){
c = 0;
for(j = 0;m > j; j++){
c += b.get(new Integer(j)) * A[i][j];
}
System.out.println(c);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
156,
5
],
[
156,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
34
],
[
34,
35
],
[
34,
36
],
[
8,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
51,
62
],
[
63,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
64,
70
],
[
70,
71
],
[
71,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
73,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
91,
92
],
[
8,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
98,
100
],
[
93,
101
],
[
101,
102
],
[
102,
103
],
[
93,
104
],
[
105,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
106,
114
],
[
114,
115
],
[
115,
116
],
[
106,
117
],
[
118,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
123,
129
],
[
129,
130
],
[
129,
131
],
[
8,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
137,
138
],
[
137,
139
],
[
132,
140
],
[
140,
141
],
[
141,
142
],
[
132,
143
],
[
144,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
145,
150
],
[
150,
151
],
[
150,
152
],
[
6,
153
],
[
153,
154
],
[
0,
155
],
[
155,
156
],
[
155,
157
]
] | [
"import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> A = new ArrayList<Integer>();\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n int[][] B = new int[n][m];\n int[] C = new int[m];\n int[] D = new int[n];\n\n for (int i=0; i<n; i++) {\n for (int j=0; j<m; j++) {\n B[i][j] = sc.nextInt();\n }\n }\n for (int i=0; i<m; i++) {\n C[i] = sc.nextInt();\n }\n for (int i=0; i<n; i++) {\n for (int j=0; j<m; j++) {\n D[i] += B[i][j] * C[j];\n }\n }\n for (int i=0; i<n; i++) {\n System.out.println(D[i]);\n }\n\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> A = new ArrayList<Integer>();\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n int[][] B = new int[n][m];\n int[] C = new int[m];\n int[] D = new int[n];\n\n for (int i=0; i<n; i++) {\n for (int j=0; j<m; j++) {\n B[i][j] = sc.nextInt();\n }\n }\n for (int i=0; i<m; i++) {\n C[i] = sc.nextInt();\n }\n for (int i=0; i<n; i++) {\n for (int j=0; j<m; j++) {\n D[i] += B[i][j] * C[j];\n }\n }\n for (int i=0; i<n; i++) {\n System.out.println(D[i]);\n }\n\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> A = new ArrayList<Integer>();\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n int[][] B = new int[n][m];\n int[] C = new int[m];\n int[] D = new int[n];\n\n for (int i=0; i<n; i++) {\n for (int j=0; j<m; j++) {\n B[i][j] = sc.nextInt();\n }\n }\n for (int i=0; i<m; i++) {\n C[i] = sc.nextInt();\n }\n for (int i=0; i<n; i++) {\n for (int j=0; j<m; j++) {\n D[i] += B[i][j] * C[j];\n }\n }\n for (int i=0; i<n; i++) {\n System.out.println(D[i]);\n }\n\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> A = new ArrayList<Integer>();\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n int[][] B = new int[n][m];\n int[] C = new int[m];\n int[] D = new int[n];\n\n for (int i=0; i<n; i++) {\n for (int j=0; j<m; j++) {\n B[i][j] = sc.nextInt();\n }\n }\n for (int i=0; i<m; i++) {\n C[i] = sc.nextInt();\n }\n for (int i=0; i<n; i++) {\n for (int j=0; j<m; j++) {\n D[i] += B[i][j] * C[j];\n }\n }\n for (int i=0; i<n; i++) {\n System.out.println(D[i]);\n }\n\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"ArrayList<Integer> A = new ArrayList<Integer>();",
"A",
"new ArrayList<Integer>()",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] B = new int[n][m];",
"B",
"new int[n][m]",
"n",
"m",
"int[] C = new int[m];",
"C",
"new int[m]",
"m",
"int[] D = new int[n];",
"D",
"new int[n]",
"n",
"for (int i=0; i<n; i++) {\n for (int j=0; j<m; j++) {\n B[i][j] = sc.nextInt();\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j=0; j<m; j++) {\n B[i][j] = sc.nextInt();\n }\n }",
"{\n for (int j=0; j<m; j++) {\n B[i][j] = sc.nextInt();\n }\n }",
"for (int j=0; j<m; j++) {\n B[i][j] = sc.nextInt();\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n B[i][j] = sc.nextInt();\n }",
"{\n B[i][j] = sc.nextInt();\n }",
"B[i][j] = sc.nextInt()",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i=0; i<m; i++) {\n C[i] = sc.nextInt();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n C[i] = sc.nextInt();\n }",
"{\n C[i] = sc.nextInt();\n }",
"C[i] = sc.nextInt()",
"C[i]",
"C",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i=0; i<n; i++) {\n for (int j=0; j<m; j++) {\n D[i] += B[i][j] * C[j];\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j=0; j<m; j++) {\n D[i] += B[i][j] * C[j];\n }\n }",
"{\n for (int j=0; j<m; j++) {\n D[i] += B[i][j] * C[j];\n }\n }",
"for (int j=0; j<m; j++) {\n D[i] += B[i][j] * C[j];\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n D[i] += B[i][j] * C[j];\n }",
"{\n D[i] += B[i][j] * C[j];\n }",
"D[i] += B[i][j] * C[j]",
"D[i]",
"D",
"i",
"B[i][j] * C[j]",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"C[j]",
"C",
"j",
"for (int i=0; i<n; i++) {\n System.out.println(D[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n System.out.println(D[i]);\n }",
"{\n System.out.println(D[i]);\n }",
"System.out.println(D[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"D[i]",
"D",
"i",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> A = new ArrayList<Integer>();\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n int[][] B = new int[n][m];\n int[] C = new int[m];\n int[] D = new int[n];\n\n for (int i=0; i<n; i++) {\n for (int j=0; j<m; j++) {\n B[i][j] = sc.nextInt();\n }\n }\n for (int i=0; i<m; i++) {\n C[i] = sc.nextInt();\n }\n for (int i=0; i<n; i++) {\n for (int j=0; j<m; j++) {\n D[i] += B[i][j] * C[j];\n }\n }\n for (int i=0; i<n; i++) {\n System.out.println(D[i]);\n }\n\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> A = new ArrayList<Integer>();\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n int[][] B = new int[n][m];\n int[] C = new int[m];\n int[] D = new int[n];\n\n for (int i=0; i<n; i++) {\n for (int j=0; j<m; j++) {\n B[i][j] = sc.nextInt();\n }\n }\n for (int i=0; i<m; i++) {\n C[i] = sc.nextInt();\n }\n for (int i=0; i<n; i++) {\n for (int j=0; j<m; j++) {\n D[i] += B[i][j] * C[j];\n }\n }\n for (int i=0; i<n; i++) {\n System.out.println(D[i]);\n }\n\n\n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
ArrayList<Integer> A = new ArrayList<Integer>();
int n = sc.nextInt();
int m = sc.nextInt();
int[][] B = new int[n][m];
int[] C = new int[m];
int[] D = new int[n];
for (int i=0; i<n; i++) {
for (int j=0; j<m; j++) {
B[i][j] = sc.nextInt();
}
}
for (int i=0; i<m; i++) {
C[i] = sc.nextInt();
}
for (int i=0; i<n; i++) {
for (int j=0; j<m; j++) {
D[i] += B[i][j] * C[j];
}
}
for (int i=0; i<n; i++) {
System.out.println(D[i]);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
2,
13,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
2,
13,
17,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
13,
41,
13,
20,
2,
13,
17,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
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
],
[
201,
14
],
[
201,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
17,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
37,
39
],
[
17,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
45,
47
],
[
17,
48
],
[
48,
49
],
[
48,
50
],
[
51,
52
],
[
51,
53
],
[
54,
55
],
[
54,
56
],
[
17,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
57,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
69,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
69,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
86,
87
],
[
86,
88
],
[
81,
89
],
[
89,
90
],
[
90,
91
],
[
81,
92
],
[
93,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
94,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
105,
107
],
[
17,
108
],
[
108,
109
],
[
108,
110
],
[
111,
112
],
[
111,
113
],
[
17,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
119,
120
],
[
119,
121
],
[
114,
122
],
[
122,
123
],
[
123,
124
],
[
114,
125
],
[
126,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
126,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
17,
140
],
[
140,
141
],
[
140,
142
],
[
143,
144
],
[
143,
145
],
[
17,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
146,
150
],
[
17,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
156,
157
],
[
156,
158
],
[
151,
159
],
[
159,
160
],
[
160,
161
],
[
151,
162
],
[
163,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
164,
169
],
[
169,
170
],
[
169,
171
],
[
164,
172
],
[
172,
173
],
[
173,
174
],
[
164,
175
],
[
176,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
182,
186
],
[
181,
187
],
[
187,
188
],
[
187,
189
],
[
163,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
190,
195
],
[
195,
196
],
[
195,
197
],
[
15,
198
],
[
198,
199
],
[
0,
200
],
[
200,
201
],
[
200,
202
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\npublic class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String str=br.readLine();\n String[] nm=str.split(\" \");\n \n int n=Integer.parseInt(nm[0]);\n int m=Integer.parseInt(nm[1]);\n int[][] a=new int [n+1][m+1];\n \n for(int i=1;i<=n;i++){\n str=br.readLine();\n String[] div=str.split(\" \");\n for(int j=1;j<=m;j++){\n a[i][j]=Integer.parseInt(div[j-1]);\n }\n }\n int [] b=new int [m+1];\n \n for(int i=1;i<=m;i++){\n str=br.readLine();\n b[i]=Integer.parseInt(str);\n }\n \n int c[]=new int[n+1];\n Arrays.fill(c,0); //c[]に初期値0を設定 \n \n //行列Cを算出\n for(int j=1;j<=n;j++){\n for(int i=1;i<=m;i++){\n c[j]+=a[j][i]*b[i];\n }\n System.out.println(c[j]);\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"public class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String str=br.readLine();\n String[] nm=str.split(\" \");\n \n int n=Integer.parseInt(nm[0]);\n int m=Integer.parseInt(nm[1]);\n int[][] a=new int [n+1][m+1];\n \n for(int i=1;i<=n;i++){\n str=br.readLine();\n String[] div=str.split(\" \");\n for(int j=1;j<=m;j++){\n a[i][j]=Integer.parseInt(div[j-1]);\n }\n }\n int [] b=new int [m+1];\n \n for(int i=1;i<=m;i++){\n str=br.readLine();\n b[i]=Integer.parseInt(str);\n }\n \n int c[]=new int[n+1];\n Arrays.fill(c,0); //c[]に初期値0を設定 \n \n //行列Cを算出\n for(int j=1;j<=n;j++){\n for(int i=1;i<=m;i++){\n c[j]+=a[j][i]*b[i];\n }\n System.out.println(c[j]);\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String str=br.readLine();\n String[] nm=str.split(\" \");\n \n int n=Integer.parseInt(nm[0]);\n int m=Integer.parseInt(nm[1]);\n int[][] a=new int [n+1][m+1];\n \n for(int i=1;i<=n;i++){\n str=br.readLine();\n String[] div=str.split(\" \");\n for(int j=1;j<=m;j++){\n a[i][j]=Integer.parseInt(div[j-1]);\n }\n }\n int [] b=new int [m+1];\n \n for(int i=1;i<=m;i++){\n str=br.readLine();\n b[i]=Integer.parseInt(str);\n }\n \n int c[]=new int[n+1];\n Arrays.fill(c,0); //c[]に初期値0を設定 \n \n //行列Cを算出\n for(int j=1;j<=n;j++){\n for(int i=1;i<=m;i++){\n c[j]+=a[j][i]*b[i];\n }\n System.out.println(c[j]);\n }\n }",
"main",
"{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String str=br.readLine();\n String[] nm=str.split(\" \");\n \n int n=Integer.parseInt(nm[0]);\n int m=Integer.parseInt(nm[1]);\n int[][] a=new int [n+1][m+1];\n \n for(int i=1;i<=n;i++){\n str=br.readLine();\n String[] div=str.split(\" \");\n for(int j=1;j<=m;j++){\n a[i][j]=Integer.parseInt(div[j-1]);\n }\n }\n int [] b=new int [m+1];\n \n for(int i=1;i<=m;i++){\n str=br.readLine();\n b[i]=Integer.parseInt(str);\n }\n \n int c[]=new int[n+1];\n Arrays.fill(c,0); //c[]に初期値0を設定 \n \n //行列Cを算出\n for(int j=1;j<=n;j++){\n for(int i=1;i<=m;i++){\n c[j]+=a[j][i]*b[i];\n }\n System.out.println(c[j]);\n }\n }",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str=br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"String[] nm=str.split(\" \");",
"nm",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"int n=Integer.parseInt(nm[0]);",
"n",
"Integer.parseInt(nm[0])",
"Integer.parseInt",
"Integer",
"nm[0]",
"nm",
"0",
"int m=Integer.parseInt(nm[1]);",
"m",
"Integer.parseInt(nm[1])",
"Integer.parseInt",
"Integer",
"nm[1]",
"nm",
"1",
"int[][] a=new int [n+1][m+1];",
"a",
"new int [n+1][m+1]",
"n+1",
"n",
"1",
"m+1",
"m",
"1",
"for(int i=1;i<=n;i++){\n str=br.readLine();\n String[] div=str.split(\" \");\n for(int j=1;j<=m;j++){\n a[i][j]=Integer.parseInt(div[j-1]);\n }\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n str=br.readLine();\n String[] div=str.split(\" \");\n for(int j=1;j<=m;j++){\n a[i][j]=Integer.parseInt(div[j-1]);\n }\n }",
"{\n str=br.readLine();\n String[] div=str.split(\" \");\n for(int j=1;j<=m;j++){\n a[i][j]=Integer.parseInt(div[j-1]);\n }\n }",
"str=br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"String[] div=str.split(\" \");",
"div",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"for(int j=1;j<=m;j++){\n a[i][j]=Integer.parseInt(div[j-1]);\n }",
"int j=1;",
"int j=1;",
"j",
"1",
"j<=m",
"j",
"m",
"j++",
"j++",
"j",
"{\n a[i][j]=Integer.parseInt(div[j-1]);\n }",
"{\n a[i][j]=Integer.parseInt(div[j-1]);\n }",
"a[i][j]=Integer.parseInt(div[j-1])",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"Integer.parseInt(div[j-1])",
"Integer.parseInt",
"Integer",
"div[j-1]",
"div",
"j-1",
"j",
"1",
"int [] b=new int [m+1];",
"b",
"new int [m+1]",
"m+1",
"m",
"1",
"for(int i=1;i<=m;i++){\n str=br.readLine();\n b[i]=Integer.parseInt(str);\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=m",
"i",
"m",
"i++",
"i++",
"i",
"{\n str=br.readLine();\n b[i]=Integer.parseInt(str);\n }",
"{\n str=br.readLine();\n b[i]=Integer.parseInt(str);\n }",
"str=br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"b[i]=Integer.parseInt(str)",
"b[i]",
"b",
"i",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"int c[]=new int[n+1];",
"c",
"new int[n+1]",
"n+1",
"n",
"1",
"Arrays.fill(c,0)",
"Arrays.fill",
"Arrays",
"c",
"0",
"for(int j=1;j<=n;j++){\n for(int i=1;i<=m;i++){\n c[j]+=a[j][i]*b[i];\n }\n System.out.println(c[j]);\n }",
"int j=1;",
"int j=1;",
"j",
"1",
"j<=n",
"j",
"n",
"j++",
"j++",
"j",
"{\n for(int i=1;i<=m;i++){\n c[j]+=a[j][i]*b[i];\n }\n System.out.println(c[j]);\n }",
"{\n for(int i=1;i<=m;i++){\n c[j]+=a[j][i]*b[i];\n }\n System.out.println(c[j]);\n }",
"for(int i=1;i<=m;i++){\n c[j]+=a[j][i]*b[i];\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=m",
"i",
"m",
"i++",
"i++",
"i",
"{\n c[j]+=a[j][i]*b[i];\n }",
"{\n c[j]+=a[j][i]*b[i];\n }",
"c[j]+=a[j][i]*b[i]",
"c[j]",
"c",
"j",
"a[j][i]*b[i]",
"a[j][i]",
"a[j]",
"a",
"j",
"i",
"b[i]",
"b",
"i",
"System.out.println(c[j])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[j]",
"c",
"j",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String str=br.readLine();\n String[] nm=str.split(\" \");\n \n int n=Integer.parseInt(nm[0]);\n int m=Integer.parseInt(nm[1]);\n int[][] a=new int [n+1][m+1];\n \n for(int i=1;i<=n;i++){\n str=br.readLine();\n String[] div=str.split(\" \");\n for(int j=1;j<=m;j++){\n a[i][j]=Integer.parseInt(div[j-1]);\n }\n }\n int [] b=new int [m+1];\n \n for(int i=1;i<=m;i++){\n str=br.readLine();\n b[i]=Integer.parseInt(str);\n }\n \n int c[]=new int[n+1];\n Arrays.fill(c,0); //c[]に初期値0を設定 \n \n //行列Cを算出\n for(int j=1;j<=n;j++){\n for(int i=1;i<=m;i++){\n c[j]+=a[j][i]*b[i];\n }\n System.out.println(c[j]);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String str=br.readLine();\n String[] nm=str.split(\" \");\n \n int n=Integer.parseInt(nm[0]);\n int m=Integer.parseInt(nm[1]);\n int[][] a=new int [n+1][m+1];\n \n for(int i=1;i<=n;i++){\n str=br.readLine();\n String[] div=str.split(\" \");\n for(int j=1;j<=m;j++){\n a[i][j]=Integer.parseInt(div[j-1]);\n }\n }\n int [] b=new int [m+1];\n \n for(int i=1;i<=m;i++){\n str=br.readLine();\n b[i]=Integer.parseInt(str);\n }\n \n int c[]=new int[n+1];\n Arrays.fill(c,0); //c[]に初期値0を設定 \n \n //行列Cを算出\n for(int j=1;j<=n;j++){\n for(int i=1;i<=m;i++){\n c[j]+=a[j][i]*b[i];\n }\n System.out.println(c[j]);\n }\n }\n}",
"Main"
] | 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 br=new BufferedReader(new InputStreamReader(System.in));
String str=br.readLine();
String[] nm=str.split(" ");
int n=Integer.parseInt(nm[0]);
int m=Integer.parseInt(nm[1]);
int[][] a=new int [n+1][m+1];
for(int i=1;i<=n;i++){
str=br.readLine();
String[] div=str.split(" ");
for(int j=1;j<=m;j++){
a[i][j]=Integer.parseInt(div[j-1]);
}
}
int [] b=new int [m+1];
for(int i=1;i<=m;i++){
str=br.readLine();
b[i]=Integer.parseInt(str);
}
int c[]=new int[n+1];
Arrays.fill(c,0); //c[]に初期値0を設定
//行列Cを算出
for(int j=1;j<=n;j++){
for(int i=1;i<=m;i++){
c[j]+=a[j][i]*b[i];
}
System.out.println(c[j]);
}
}
} |
[
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,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
0,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
8,
86
],
[
86,
87
],
[
86,
88
],
[
8,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
97,
98
],
[
98,
99
],
[
89,
100
],
[
101,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
110,
111
],
[
111,
112
],
[
102,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
117,
123
],
[
123,
124
],
[
123,
125
],
[
101,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
101,
132
],
[
132,
133
],
[
132,
134
],
[
6,
135
],
[
135,
136
]
] | [
"import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n short n = scanner.nextShort();\n short m = scanner.nextShort();\n\n short[][] a = new short[n][m];\n short[] b = new short[m];\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n a[i][j] = scanner.nextShort();\n }\n }\n\n for(int i = 0; i < m; i++){\n b[i] = scanner.nextShort();\n }\n\n int x = 0;\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n x += a[i][j]*b[j];\n }\n System.out.println(x);\n x = 0;\n }\n\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n short n = scanner.nextShort();\n short m = scanner.nextShort();\n\n short[][] a = new short[n][m];\n short[] b = new short[m];\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n a[i][j] = scanner.nextShort();\n }\n }\n\n for(int i = 0; i < m; i++){\n b[i] = scanner.nextShort();\n }\n\n int x = 0;\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n x += a[i][j]*b[j];\n }\n System.out.println(x);\n x = 0;\n }\n\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n short n = scanner.nextShort();\n short m = scanner.nextShort();\n\n short[][] a = new short[n][m];\n short[] b = new short[m];\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n a[i][j] = scanner.nextShort();\n }\n }\n\n for(int i = 0; i < m; i++){\n b[i] = scanner.nextShort();\n }\n\n int x = 0;\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n x += a[i][j]*b[j];\n }\n System.out.println(x);\n x = 0;\n }\n\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n\n short n = scanner.nextShort();\n short m = scanner.nextShort();\n\n short[][] a = new short[n][m];\n short[] b = new short[m];\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n a[i][j] = scanner.nextShort();\n }\n }\n\n for(int i = 0; i < m; i++){\n b[i] = scanner.nextShort();\n }\n\n int x = 0;\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n x += a[i][j]*b[j];\n }\n System.out.println(x);\n x = 0;\n }\n\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"short n = scanner.nextShort();",
"n",
"scanner.nextShort()",
"scanner.nextShort",
"scanner",
"short m = scanner.nextShort();",
"m",
"scanner.nextShort()",
"scanner.nextShort",
"scanner",
"short[][] a = new short[n][m];",
"a",
"new short[n][m]",
"n",
"m",
"short[] b = new short[m];",
"b",
"new short[m]",
"m",
"for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n a[i][j] = scanner.nextShort();\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < m; j++){\n a[i][j] = scanner.nextShort();\n }\n }",
"{\n for(int j = 0; j < m; j++){\n a[i][j] = scanner.nextShort();\n }\n }",
"for(int j = 0; j < m; j++){\n a[i][j] = scanner.nextShort();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n a[i][j] = scanner.nextShort();\n }",
"{\n a[i][j] = scanner.nextShort();\n }",
"a[i][j] = scanner.nextShort()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"scanner.nextShort()",
"scanner.nextShort",
"scanner",
"for(int i = 0; i < m; i++){\n b[i] = scanner.nextShort();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n b[i] = scanner.nextShort();\n }",
"{\n b[i] = scanner.nextShort();\n }",
"b[i] = scanner.nextShort()",
"b[i]",
"b",
"i",
"scanner.nextShort()",
"scanner.nextShort",
"scanner",
"int x = 0;",
"x",
"0",
"for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n x += a[i][j]*b[j];\n }\n System.out.println(x);\n x = 0;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < m; j++){\n x += a[i][j]*b[j];\n }\n System.out.println(x);\n x = 0;\n }",
"{\n for(int j = 0; j < m; j++){\n x += a[i][j]*b[j];\n }\n System.out.println(x);\n x = 0;\n }",
"for(int j = 0; j < m; j++){\n x += a[i][j]*b[j];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n x += a[i][j]*b[j];\n }",
"{\n x += a[i][j]*b[j];\n }",
"x += a[i][j]*b[j]",
"x",
"a[i][j]*b[j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"System.out.println(x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x",
"x = 0",
"x",
"0",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
short n = scanner.nextShort();
short m = scanner.nextShort();
short[][] a = new short[n][m];
short[] b = new short[m];
for(int i = 0; i < n; i++){
for(int j = 0; j < m; j++){
a[i][j] = scanner.nextShort();
}
}
for(int i = 0; i < m; i++){
b[i] = scanner.nextShort();
}
int x = 0;
for(int i = 0; i < n; i++){
for(int j = 0; j < m; j++){
x += a[i][j]*b[j];
}
System.out.println(x);
x = 0;
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
189,
11
],
[
189,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
14,
19
],
[
19,
20
],
[
14,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
28,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
14,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
47,
49
],
[
14,
50
],
[
50,
51
],
[
50,
52
],
[
14,
55
],
[
55,
56
],
[
55,
57
],
[
14,
59
],
[
59,
60
],
[
59,
61
],
[
14,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
63,
74
],
[
75,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
78,
83
],
[
75,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
84,
92
],
[
92,
93
],
[
93,
94
],
[
84,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
97,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
106,
107
],
[
106,
108
],
[
14,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
114,
115
],
[
114,
116
],
[
109,
117
],
[
117,
118
],
[
118,
119
],
[
109,
120
],
[
121,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
121,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
14,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
140,
141
],
[
140,
142
],
[
135,
143
],
[
143,
144
],
[
144,
145
],
[
135,
146
],
[
147,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
153,
154
],
[
153,
155
],
[
148,
156
],
[
156,
157
],
[
157,
158
],
[
148,
159
],
[
160,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
169,
175
],
[
175,
176
],
[
175,
177
],
[
147,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
178,
183
],
[
183,
184
],
[
183,
185
],
[
12,
186
],
[
186,
187
],
[
0,
188
],
[
188,
189
],
[
188,
190
]
] | [
"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{\n\t\tint i,j,n,m;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\n\t\tString[] nm = br.readLine().split(\" \");\n\n\t\tn = Integer.parseInt(nm[0]);//input n\n\t\tm = Integer.parseInt(nm[1]);//input m\n\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[m];\n\t\tint[] out = new int[n];\n\n\t\tfor(i=0; i<n; i++)//get matrix\n\t\t{\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tfor(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tmatrix[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor(i=0; i<m; i++)//get Vmatrix\n\t\t{\n\t\t\tString str = br.readLine();\n\t\t\tvector[i] = Integer.parseInt(str);\n\t\t}\n\n\t\tfor(i=0; i<n; i++)//calc\n\t\t{\n\t\t\tfor(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tout[i] = out[i] + matrix[i][j]*vector[j];\n\t\t\t}\n\n\t\t\tSystem.out.println(out[i]);\n\t\t}\n\n/*++++++++++++++++++++++++++++++++++++*/\n/*\t\tfor(i=0; i<n; i++)\n\t\t{\n\t\t\tfor(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(matrix[i][j]);\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tfor(i=0; i<m; i++)\n\t\t{\n\t\t\tSystem.out.println(vector[i]);\n\t\t}*/\n\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main{\n\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t\tint i,j,n,m;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\n\t\tString[] nm = br.readLine().split(\" \");\n\n\t\tn = Integer.parseInt(nm[0]);//input n\n\t\tm = Integer.parseInt(nm[1]);//input m\n\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[m];\n\t\tint[] out = new int[n];\n\n\t\tfor(i=0; i<n; i++)//get matrix\n\t\t{\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tfor(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tmatrix[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor(i=0; i<m; i++)//get Vmatrix\n\t\t{\n\t\t\tString str = br.readLine();\n\t\t\tvector[i] = Integer.parseInt(str);\n\t\t}\n\n\t\tfor(i=0; i<n; i++)//calc\n\t\t{\n\t\t\tfor(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tout[i] = out[i] + matrix[i][j]*vector[j];\n\t\t\t}\n\n\t\t\tSystem.out.println(out[i]);\n\t\t}\n\n/*++++++++++++++++++++++++++++++++++++*/\n/*\t\tfor(i=0; i<n; i++)\n\t\t{\n\t\t\tfor(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(matrix[i][j]);\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tfor(i=0; i<m; i++)\n\t\t{\n\t\t\tSystem.out.println(vector[i]);\n\t\t}*/\n\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException\n\t{\n\t\tint i,j,n,m;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\n\t\tString[] nm = br.readLine().split(\" \");\n\n\t\tn = Integer.parseInt(nm[0]);//input n\n\t\tm = Integer.parseInt(nm[1]);//input m\n\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[m];\n\t\tint[] out = new int[n];\n\n\t\tfor(i=0; i<n; i++)//get matrix\n\t\t{\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tfor(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tmatrix[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor(i=0; i<m; i++)//get Vmatrix\n\t\t{\n\t\t\tString str = br.readLine();\n\t\t\tvector[i] = Integer.parseInt(str);\n\t\t}\n\n\t\tfor(i=0; i<n; i++)//calc\n\t\t{\n\t\t\tfor(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tout[i] = out[i] + matrix[i][j]*vector[j];\n\t\t\t}\n\n\t\t\tSystem.out.println(out[i]);\n\t\t}\n\n/*++++++++++++++++++++++++++++++++++++*/\n/*\t\tfor(i=0; i<n; i++)\n\t\t{\n\t\t\tfor(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(matrix[i][j]);\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tfor(i=0; i<m; i++)\n\t\t{\n\t\t\tSystem.out.println(vector[i]);\n\t\t}*/\n\n\t}",
"main",
"{\n\t\tint i,j,n,m;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\n\t\tString[] nm = br.readLine().split(\" \");\n\n\t\tn = Integer.parseInt(nm[0]);//input n\n\t\tm = Integer.parseInt(nm[1]);//input m\n\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[m];\n\t\tint[] out = new int[n];\n\n\t\tfor(i=0; i<n; i++)//get matrix\n\t\t{\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tfor(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tmatrix[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor(i=0; i<m; i++)//get Vmatrix\n\t\t{\n\t\t\tString str = br.readLine();\n\t\t\tvector[i] = Integer.parseInt(str);\n\t\t}\n\n\t\tfor(i=0; i<n; i++)//calc\n\t\t{\n\t\t\tfor(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tout[i] = out[i] + matrix[i][j]*vector[j];\n\t\t\t}\n\n\t\t\tSystem.out.println(out[i]);\n\t\t}\n\n/*++++++++++++++++++++++++++++++++++++*/\n/*\t\tfor(i=0; i<n; i++)\n\t\t{\n\t\t\tfor(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(matrix[i][j]);\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tfor(i=0; i<m; i++)\n\t\t{\n\t\t\tSystem.out.println(vector[i]);\n\t\t}*/\n\n\t}",
"int i",
"i",
"j",
"j",
"n",
"n",
"m;",
"m",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in) );",
"br",
"new BufferedReader(new InputStreamReader(System.in) )",
"String[] nm = br.readLine().split(\" \");",
"nm",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"n = Integer.parseInt(nm[0])",
"n",
"Integer.parseInt(nm[0])",
"Integer.parseInt",
"Integer",
"nm[0]",
"nm",
"0",
"m = Integer.parseInt(nm[1])",
"m",
"Integer.parseInt(nm[1])",
"Integer.parseInt",
"Integer",
"nm[1]",
"nm",
"1",
"int[][] matrix = new int[n][m];",
"matrix",
"new int[n][m]",
"n",
"m",
"int[] vector = new int[m];",
"vector",
"new int[m]",
"m",
"int[] out = new int[n];",
"out",
"new int[n]",
"n",
"for(i=0; i<n; i++)//get matrix\n\t\t{\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tfor(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tmatrix[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tfor(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tmatrix[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tfor(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tmatrix[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}",
"String[] str = br.readLine().split(\" \");",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tmatrix[i][j] = Integer.parseInt(str[j]);\n\t\t\t}",
"j=0;",
"j=0",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tmatrix[i][j] = Integer.parseInt(str[j]);\n\t\t\t}",
"{\n\t\t\t\tmatrix[i][j] = Integer.parseInt(str[j]);\n\t\t\t}",
"matrix[i][j] = Integer.parseInt(str[j])",
"matrix[i][j]",
"matrix[i]",
"matrix",
"i",
"j",
"Integer.parseInt(str[j])",
"Integer.parseInt",
"Integer",
"str[j]",
"str",
"j",
"for(i=0; i<m; i++)//get Vmatrix\n\t\t{\n\t\t\tString str = br.readLine();\n\t\t\tvector[i] = Integer.parseInt(str);\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tString str = br.readLine();\n\t\t\tvector[i] = Integer.parseInt(str);\n\t\t}",
"{\n\t\t\tString str = br.readLine();\n\t\t\tvector[i] = Integer.parseInt(str);\n\t\t}",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"vector[i] = Integer.parseInt(str)",
"vector[i]",
"vector",
"i",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"for(i=0; i<n; i++)//calc\n\t\t{\n\t\t\tfor(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tout[i] = out[i] + matrix[i][j]*vector[j];\n\t\t\t}\n\n\t\t\tSystem.out.println(out[i]);\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tout[i] = out[i] + matrix[i][j]*vector[j];\n\t\t\t}\n\n\t\t\tSystem.out.println(out[i]);\n\t\t}",
"{\n\t\t\tfor(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tout[i] = out[i] + matrix[i][j]*vector[j];\n\t\t\t}\n\n\t\t\tSystem.out.println(out[i]);\n\t\t}",
"for(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tout[i] = out[i] + matrix[i][j]*vector[j];\n\t\t\t}",
"j=0;",
"j=0",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tout[i] = out[i] + matrix[i][j]*vector[j];\n\t\t\t}",
"{\n\t\t\t\tout[i] = out[i] + matrix[i][j]*vector[j];\n\t\t\t}",
"out[i] = out[i] + matrix[i][j]*vector[j]",
"out[i]",
"out",
"i",
"out[i] + matrix[i][j]*vector[j]",
"out[i]",
"out",
"i",
"matrix[i][j]*vector[j]",
"matrix[i][j]",
"matrix[i]",
"matrix",
"i",
"j",
"vector[j]",
"vector",
"j",
"System.out.println(out[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"out[i]",
"out",
"i",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t\tint i,j,n,m;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\n\t\tString[] nm = br.readLine().split(\" \");\n\n\t\tn = Integer.parseInt(nm[0]);//input n\n\t\tm = Integer.parseInt(nm[1]);//input m\n\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[m];\n\t\tint[] out = new int[n];\n\n\t\tfor(i=0; i<n; i++)//get matrix\n\t\t{\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tfor(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tmatrix[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor(i=0; i<m; i++)//get Vmatrix\n\t\t{\n\t\t\tString str = br.readLine();\n\t\t\tvector[i] = Integer.parseInt(str);\n\t\t}\n\n\t\tfor(i=0; i<n; i++)//calc\n\t\t{\n\t\t\tfor(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tout[i] = out[i] + matrix[i][j]*vector[j];\n\t\t\t}\n\n\t\t\tSystem.out.println(out[i]);\n\t\t}\n\n/*++++++++++++++++++++++++++++++++++++*/\n/*\t\tfor(i=0; i<n; i++)\n\t\t{\n\t\t\tfor(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(matrix[i][j]);\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tfor(i=0; i<m; i++)\n\t\t{\n\t\t\tSystem.out.println(vector[i]);\n\t\t}*/\n\n\t}\n}",
"public class Main{\n\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t\tint i,j,n,m;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\n\t\tString[] nm = br.readLine().split(\" \");\n\n\t\tn = Integer.parseInt(nm[0]);//input n\n\t\tm = Integer.parseInt(nm[1]);//input m\n\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[m];\n\t\tint[] out = new int[n];\n\n\t\tfor(i=0; i<n; i++)//get matrix\n\t\t{\n\t\t\tString[] str = br.readLine().split(\" \");\n\n\t\t\tfor(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tmatrix[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor(i=0; i<m; i++)//get Vmatrix\n\t\t{\n\t\t\tString str = br.readLine();\n\t\t\tvector[i] = Integer.parseInt(str);\n\t\t}\n\n\t\tfor(i=0; i<n; i++)//calc\n\t\t{\n\t\t\tfor(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tout[i] = out[i] + matrix[i][j]*vector[j];\n\t\t\t}\n\n\t\t\tSystem.out.println(out[i]);\n\t\t}\n\n/*++++++++++++++++++++++++++++++++++++*/\n/*\t\tfor(i=0; i<n; i++)\n\t\t{\n\t\t\tfor(j=0; j<m; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(matrix[i][j]);\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tfor(i=0; i<m; i++)\n\t\t{\n\t\t\tSystem.out.println(vector[i]);\n\t\t}*/\n\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args) throws IOException
{
int i,j,n,m;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in) );
String[] nm = br.readLine().split(" ");
n = Integer.parseInt(nm[0]);//input n
m = Integer.parseInt(nm[1]);//input m
int[][] matrix = new int[n][m];
int[] vector = new int[m];
int[] out = new int[n];
for(i=0; i<n; i++)//get matrix
{
String[] str = br.readLine().split(" ");
for(j=0; j<m; j++)
{
matrix[i][j] = Integer.parseInt(str[j]);
}
}
for(i=0; i<m; i++)//get Vmatrix
{
String str = br.readLine();
vector[i] = Integer.parseInt(str);
}
for(i=0; i<n; i++)//calc
{
for(j=0; j<m; j++)
{
out[i] = out[i] + matrix[i][j]*vector[j];
}
System.out.println(out[i]);
}
/*++++++++++++++++++++++++++++++++++++*/
/* for(i=0; i<n; i++)
{
for(j=0; j<m; j++)
{
System.out.print(matrix[i][j]);
}
System.out.println();
}
for(i=0; i<m; i++)
{
System.out.println(vector[i]);
}*/
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
20,
17,
17,
41,
13,
20,
17,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
0,
18,
13,
13,
17,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13
] | [
[
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
],
[
13,
15
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
8,
43
],
[
43,
44
],
[
43,
45
],
[
8,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
8,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
8,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
56,
64
],
[
64,
65
],
[
65,
66
],
[
56,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
69,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
82,
88
],
[
88,
89
],
[
89,
90
],
[
8,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
91,
99
],
[
99,
100
],
[
100,
101
],
[
91,
102
],
[
103,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
109,
110
],
[
8,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
111,
119
],
[
119,
120
],
[
120,
121
],
[
111,
122
],
[
123,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
129,
130
],
[
129,
131
],
[
124,
132
],
[
132,
133
],
[
133,
134
],
[
124,
135
],
[
136,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
142,
146
],
[
141,
147
],
[
147,
148
],
[
147,
149
],
[
8,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
150,
155
],
[
155,
156
],
[
155,
157
],
[
150,
158
],
[
158,
159
],
[
159,
160
],
[
150,
161
],
[
162,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
168,
169
],
[
168,
170
],
[
6,
171
],
[
171,
172
]
] | [
"import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n\t\tint n,m;\n\t\tint[][] a=new int[101][101];\n\t\tint[] b=new int[101];\n\t\tint[] c=new int[101];\n\t\tfor(int i=0;i<100;i++)c[i]=0;\n\t\tScanner sc=new Scanner(System.in);\n\t\tn=sc.nextInt();\n\t\tm=sc.nextInt();\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=m;j++){\n\t\t\t\ta[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int j=1;j<=m;j++){\n\t\t\tb[j]=sc.nextInt();\n\t\t}\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=m;j++){\n\t\t\t\tc[i]+=(a[i][j]*b[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n\t\tint n,m;\n\t\tint[][] a=new int[101][101];\n\t\tint[] b=new int[101];\n\t\tint[] c=new int[101];\n\t\tfor(int i=0;i<100;i++)c[i]=0;\n\t\tScanner sc=new Scanner(System.in);\n\t\tn=sc.nextInt();\n\t\tm=sc.nextInt();\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=m;j++){\n\t\t\t\ta[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int j=1;j<=m;j++){\n\t\t\tb[j]=sc.nextInt();\n\t\t}\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=m;j++){\n\t\t\t\tc[i]+=(a[i][j]*b[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n }\n}",
"Main",
"public static void main(String[] args){\n\t\tint n,m;\n\t\tint[][] a=new int[101][101];\n\t\tint[] b=new int[101];\n\t\tint[] c=new int[101];\n\t\tfor(int i=0;i<100;i++)c[i]=0;\n\t\tScanner sc=new Scanner(System.in);\n\t\tn=sc.nextInt();\n\t\tm=sc.nextInt();\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=m;j++){\n\t\t\t\ta[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int j=1;j<=m;j++){\n\t\t\tb[j]=sc.nextInt();\n\t\t}\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=m;j++){\n\t\t\t\tc[i]+=(a[i][j]*b[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n }",
"main",
"{\n\t\tint n,m;\n\t\tint[][] a=new int[101][101];\n\t\tint[] b=new int[101];\n\t\tint[] c=new int[101];\n\t\tfor(int i=0;i<100;i++)c[i]=0;\n\t\tScanner sc=new Scanner(System.in);\n\t\tn=sc.nextInt();\n\t\tm=sc.nextInt();\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=m;j++){\n\t\t\t\ta[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int j=1;j<=m;j++){\n\t\t\tb[j]=sc.nextInt();\n\t\t}\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=m;j++){\n\t\t\t\tc[i]+=(a[i][j]*b[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n }",
"int n",
"n",
"m;",
"m",
"int[][] a=new int[101][101];",
"a",
"new int[101][101]",
"101",
"101",
"int[] b=new int[101];",
"b",
"new int[101]",
"101",
"int[] c=new int[101];",
"c",
"new int[101]",
"101",
"for(int i=0;i<100;i++)c[i]=0;",
"int i=0;",
"int i=0;",
"i",
"0",
"i<100",
"i",
"100",
"i++",
"i++",
"i",
"c[i]=0;",
"c[i]=0",
"c[i]",
"c",
"i",
"0",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"n=sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"m=sc.nextInt()",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=m;j++){\n\t\t\t\ta[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=1;j<=m;j++){\n\t\t\t\ta[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=1;j<=m;j++){\n\t\t\t\ta[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int j=1;j<=m;j++){\n\t\t\t\ta[i][j]=sc.nextInt();\n\t\t\t}",
"int j=1;",
"int j=1;",
"j",
"1",
"j<=m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\ta[i][j]=sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\ta[i][j]=sc.nextInt();\n\t\t\t}",
"a[i][j]=sc.nextInt()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j=1;j<=m;j++){\n\t\t\tb[j]=sc.nextInt();\n\t\t}",
"int j=1;",
"int j=1;",
"j",
"1",
"j<=m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\tb[j]=sc.nextInt();\n\t\t}",
"{\n\t\t\tb[j]=sc.nextInt();\n\t\t}",
"b[j]=sc.nextInt()",
"b[j]",
"b",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=m;j++){\n\t\t\t\tc[i]+=(a[i][j]*b[j]);\n\t\t\t}\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=1;j<=m;j++){\n\t\t\t\tc[i]+=(a[i][j]*b[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=1;j<=m;j++){\n\t\t\t\tc[i]+=(a[i][j]*b[j]);\n\t\t\t}\n\t\t}",
"for(int j=1;j<=m;j++){\n\t\t\t\tc[i]+=(a[i][j]*b[j]);\n\t\t\t}",
"int j=1;",
"int j=1;",
"j",
"1",
"j<=m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tc[i]+=(a[i][j]*b[j]);\n\t\t\t}",
"{\n\t\t\t\tc[i]+=(a[i][j]*b[j]);\n\t\t\t}",
"c[i]+=(a[i][j]*b[j])",
"c[i]",
"c",
"i",
"(a[i][j]*b[j])",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"for(int i=1;i<=n;i++){\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"System.out.println(c[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[i]",
"c",
"i",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String[] args){
int n,m;
int[][] a=new int[101][101];
int[] b=new int[101];
int[] c=new int[101];
for(int i=0;i<100;i++)c[i]=0;
Scanner sc=new Scanner(System.in);
n=sc.nextInt();
m=sc.nextInt();
for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++){
a[i][j]=sc.nextInt();
}
}
for(int j=1;j<=m;j++){
b[j]=sc.nextInt();
}
for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++){
c[i]+=(a[i][j]*b[j]);
}
}
for(int i=1;i<=n;i++){
System.out.println(c[i]);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
13,
41,
13,
20,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
190,
11
],
[
190,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
20,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
31,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
14,
42
],
[
42,
43
],
[
42,
44
],
[
14,
47
],
[
47,
48
],
[
47,
49
],
[
14,
51
],
[
51,
52
],
[
51,
53
],
[
14,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
70,
75
],
[
67,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
76,
87
],
[
88,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
89,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
98,
100
],
[
14,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
106,
107
],
[
106,
108
],
[
101,
109
],
[
109,
110
],
[
110,
111
],
[
101,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
120,
121
],
[
121,
122
],
[
14,
123
],
[
123,
124
],
[
123,
125
],
[
14,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
127,
135
],
[
135,
136
],
[
136,
137
],
[
127,
138
],
[
139,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
140,
145
],
[
145,
146
],
[
145,
147
],
[
140,
148
],
[
148,
149
],
[
149,
150
],
[
140,
151
],
[
152,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
157,
163
],
[
163,
164
],
[
163,
165
],
[
14,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
166,
171
],
[
171,
172
],
[
171,
173
],
[
166,
174
],
[
174,
175
],
[
175,
176
],
[
166,
177
],
[
178,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
179,
184
],
[
184,
185
],
[
184,
186
],
[
12,
187
],
[
187,
188
],
[
0,
189
],
[
189,
190
],
[
189,
191
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\npublic class Main\n{\n\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n//\t\t??????A????????°??¨?????°?????????\n\t\tString[] strs = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(strs[0]);\n\t\tint m = Integer.parseInt(strs[1]);\n//\t\t??\\??????????????°??????????????????A??¨B?????????\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\t\n\t\tString[] buf = new String[m];\n//\t\t??????A\n\t\tfor(int row=0; row<n; row++)\n\t\t{\n\t\t\tbuf = br.readLine().split(\" \");\n\t\t\tfor(int col=0; col<m; col++)\n\t\t\t{\n\t\t\t\ta[row][col] = Integer.parseInt(buf[col]);\n\t\t\t}\n\t\t}\n//\t\t?¬????B\n\t\tfor(int col=0; col<m; col++)\tb[col] = Integer.parseInt(br.readLine());\n//\t\tA*B????????????C???????´?\n\t\tint[] c = new int[n];\n\t\tfor(int row=0; row<n; row++)\n\t\t{\n\t\t\tfor(int col=0; col<m; col++)\n\t\t\t{\n\t\t\t\tc[row] += a[row][col] * b[col];\n\t\t\t}\n\t\t}\n//\t\tC?????????????????????\n\t\tfor(int row=0; row<n; row++)\n\t\t{\n\t\t\tSystem.out.println(c[row]);\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main\n{\n\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n//\t\t??????A????????°??¨?????°?????????\n\t\tString[] strs = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(strs[0]);\n\t\tint m = Integer.parseInt(strs[1]);\n//\t\t??\\??????????????°??????????????????A??¨B?????????\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\t\n\t\tString[] buf = new String[m];\n//\t\t??????A\n\t\tfor(int row=0; row<n; row++)\n\t\t{\n\t\t\tbuf = br.readLine().split(\" \");\n\t\t\tfor(int col=0; col<m; col++)\n\t\t\t{\n\t\t\t\ta[row][col] = Integer.parseInt(buf[col]);\n\t\t\t}\n\t\t}\n//\t\t?¬????B\n\t\tfor(int col=0; col<m; col++)\tb[col] = Integer.parseInt(br.readLine());\n//\t\tA*B????????????C???????´?\n\t\tint[] c = new int[n];\n\t\tfor(int row=0; row<n; row++)\n\t\t{\n\t\t\tfor(int col=0; col<m; col++)\n\t\t\t{\n\t\t\t\tc[row] += a[row][col] * b[col];\n\t\t\t}\n\t\t}\n//\t\tC?????????????????????\n\t\tfor(int row=0; row<n; row++)\n\t\t{\n\t\t\tSystem.out.println(c[row]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n//\t\t??????A????????°??¨?????°?????????\n\t\tString[] strs = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(strs[0]);\n\t\tint m = Integer.parseInt(strs[1]);\n//\t\t??\\??????????????°??????????????????A??¨B?????????\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\t\n\t\tString[] buf = new String[m];\n//\t\t??????A\n\t\tfor(int row=0; row<n; row++)\n\t\t{\n\t\t\tbuf = br.readLine().split(\" \");\n\t\t\tfor(int col=0; col<m; col++)\n\t\t\t{\n\t\t\t\ta[row][col] = Integer.parseInt(buf[col]);\n\t\t\t}\n\t\t}\n//\t\t?¬????B\n\t\tfor(int col=0; col<m; col++)\tb[col] = Integer.parseInt(br.readLine());\n//\t\tA*B????????????C???????´?\n\t\tint[] c = new int[n];\n\t\tfor(int row=0; row<n; row++)\n\t\t{\n\t\t\tfor(int col=0; col<m; col++)\n\t\t\t{\n\t\t\t\tc[row] += a[row][col] * b[col];\n\t\t\t}\n\t\t}\n//\t\tC?????????????????????\n\t\tfor(int row=0; row<n; row++)\n\t\t{\n\t\t\tSystem.out.println(c[row]);\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n//\t\t??????A????????°??¨?????°?????????\n\t\tString[] strs = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(strs[0]);\n\t\tint m = Integer.parseInt(strs[1]);\n//\t\t??\\??????????????°??????????????????A??¨B?????????\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\t\n\t\tString[] buf = new String[m];\n//\t\t??????A\n\t\tfor(int row=0; row<n; row++)\n\t\t{\n\t\t\tbuf = br.readLine().split(\" \");\n\t\t\tfor(int col=0; col<m; col++)\n\t\t\t{\n\t\t\t\ta[row][col] = Integer.parseInt(buf[col]);\n\t\t\t}\n\t\t}\n//\t\t?¬????B\n\t\tfor(int col=0; col<m; col++)\tb[col] = Integer.parseInt(br.readLine());\n//\t\tA*B????????????C???????´?\n\t\tint[] c = new int[n];\n\t\tfor(int row=0; row<n; row++)\n\t\t{\n\t\t\tfor(int col=0; col<m; col++)\n\t\t\t{\n\t\t\t\tc[row] += a[row][col] * b[col];\n\t\t\t}\n\t\t}\n//\t\tC?????????????????????\n\t\tfor(int row=0; row<n; row++)\n\t\t{\n\t\t\tSystem.out.println(c[row]);\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] strs = br.readLine().split(\" \");",
"strs",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int n = Integer.parseInt(strs[0]);",
"n",
"Integer.parseInt(strs[0])",
"Integer.parseInt",
"Integer",
"strs[0]",
"strs",
"0",
"int m = Integer.parseInt(strs[1]);",
"m",
"Integer.parseInt(strs[1])",
"Integer.parseInt",
"Integer",
"strs[1]",
"strs",
"1",
"int[][] a = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[] b = new int[m];",
"b",
"new int[m]",
"m",
"String[] buf = new String[m];",
"buf",
"new String[m]",
"m",
"for(int row=0; row<n; row++)\n\t\t{\n\t\t\tbuf = br.readLine().split(\" \");\n\t\t\tfor(int col=0; col<m; col++)\n\t\t\t{\n\t\t\t\ta[row][col] = Integer.parseInt(buf[col]);\n\t\t\t}\n\t\t}",
"int row=0;",
"int row=0;",
"row",
"0",
"row<n",
"row",
"n",
"row++",
"row++",
"row",
"{\n\t\t\tbuf = br.readLine().split(\" \");\n\t\t\tfor(int col=0; col<m; col++)\n\t\t\t{\n\t\t\t\ta[row][col] = Integer.parseInt(buf[col]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tbuf = br.readLine().split(\" \");\n\t\t\tfor(int col=0; col<m; col++)\n\t\t\t{\n\t\t\t\ta[row][col] = Integer.parseInt(buf[col]);\n\t\t\t}\n\t\t}",
"buf = br.readLine().split(\" \")",
"buf",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(int col=0; col<m; col++)\n\t\t\t{\n\t\t\t\ta[row][col] = Integer.parseInt(buf[col]);\n\t\t\t}",
"int col=0;",
"int col=0;",
"col",
"0",
"col<m",
"col",
"m",
"col++",
"col++",
"col",
"{\n\t\t\t\ta[row][col] = Integer.parseInt(buf[col]);\n\t\t\t}",
"{\n\t\t\t\ta[row][col] = Integer.parseInt(buf[col]);\n\t\t\t}",
"a[row][col] = Integer.parseInt(buf[col])",
"a[row][col]",
"a[row]",
"a",
"row",
"col",
"Integer.parseInt(buf[col])",
"Integer.parseInt",
"Integer",
"buf[col]",
"buf",
"col",
"for(int col=0; col<m; col++)\tb[col] = Integer.parseInt(br.readLine());",
"int col=0;",
"int col=0;",
"col",
"0",
"col<m",
"col",
"m",
"col++",
"col++",
"col",
"b[col] = Integer.parseInt(br.readLine());",
"b[col] = Integer.parseInt(br.readLine())",
"b[col]",
"b",
"col",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int[] c = new int[n];",
"c",
"new int[n]",
"n",
"for(int row=0; row<n; row++)\n\t\t{\n\t\t\tfor(int col=0; col<m; col++)\n\t\t\t{\n\t\t\t\tc[row] += a[row][col] * b[col];\n\t\t\t}\n\t\t}",
"int row=0;",
"int row=0;",
"row",
"0",
"row<n",
"row",
"n",
"row++",
"row++",
"row",
"{\n\t\t\tfor(int col=0; col<m; col++)\n\t\t\t{\n\t\t\t\tc[row] += a[row][col] * b[col];\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int col=0; col<m; col++)\n\t\t\t{\n\t\t\t\tc[row] += a[row][col] * b[col];\n\t\t\t}\n\t\t}",
"for(int col=0; col<m; col++)\n\t\t\t{\n\t\t\t\tc[row] += a[row][col] * b[col];\n\t\t\t}",
"int col=0;",
"int col=0;",
"col",
"0",
"col<m",
"col",
"m",
"col++",
"col++",
"col",
"{\n\t\t\t\tc[row] += a[row][col] * b[col];\n\t\t\t}",
"{\n\t\t\t\tc[row] += a[row][col] * b[col];\n\t\t\t}",
"c[row] += a[row][col] * b[col]",
"c[row]",
"c",
"row",
"a[row][col] * b[col]",
"a[row][col]",
"a[row]",
"a",
"row",
"col",
"b[col]",
"b",
"col",
"for(int row=0; row<n; row++)\n\t\t{\n\t\t\tSystem.out.println(c[row]);\n\t\t}",
"int row=0;",
"int row=0;",
"row",
"0",
"row<n",
"row",
"n",
"row++",
"row++",
"row",
"{\n\t\t\tSystem.out.println(c[row]);\n\t\t}",
"{\n\t\t\tSystem.out.println(c[row]);\n\t\t}",
"System.out.println(c[row])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[row]",
"c",
"row",
"String[] args",
"args",
"public class Main\n{\n\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n//\t\t??????A????????°??¨?????°?????????\n\t\tString[] strs = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(strs[0]);\n\t\tint m = Integer.parseInt(strs[1]);\n//\t\t??\\??????????????°??????????????????A??¨B?????????\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\t\n\t\tString[] buf = new String[m];\n//\t\t??????A\n\t\tfor(int row=0; row<n; row++)\n\t\t{\n\t\t\tbuf = br.readLine().split(\" \");\n\t\t\tfor(int col=0; col<m; col++)\n\t\t\t{\n\t\t\t\ta[row][col] = Integer.parseInt(buf[col]);\n\t\t\t}\n\t\t}\n//\t\t?¬????B\n\t\tfor(int col=0; col<m; col++)\tb[col] = Integer.parseInt(br.readLine());\n//\t\tA*B????????????C???????´?\n\t\tint[] c = new int[n];\n\t\tfor(int row=0; row<n; row++)\n\t\t{\n\t\t\tfor(int col=0; col<m; col++)\n\t\t\t{\n\t\t\t\tc[row] += a[row][col] * b[col];\n\t\t\t}\n\t\t}\n//\t\tC?????????????????????\n\t\tfor(int row=0; row<n; row++)\n\t\t{\n\t\t\tSystem.out.println(c[row]);\n\t\t}\n\t}\n}",
"public class Main\n{\n\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n//\t\t??????A????????°??¨?????°?????????\n\t\tString[] strs = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(strs[0]);\n\t\tint m = Integer.parseInt(strs[1]);\n//\t\t??\\??????????????°??????????????????A??¨B?????????\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\t\n\t\tString[] buf = new String[m];\n//\t\t??????A\n\t\tfor(int row=0; row<n; row++)\n\t\t{\n\t\t\tbuf = br.readLine().split(\" \");\n\t\t\tfor(int col=0; col<m; col++)\n\t\t\t{\n\t\t\t\ta[row][col] = Integer.parseInt(buf[col]);\n\t\t\t}\n\t\t}\n//\t\t?¬????B\n\t\tfor(int col=0; col<m; col++)\tb[col] = Integer.parseInt(br.readLine());\n//\t\tA*B????????????C???????´?\n\t\tint[] c = new int[n];\n\t\tfor(int row=0; row<n; row++)\n\t\t{\n\t\t\tfor(int col=0; col<m; col++)\n\t\t\t{\n\t\t\t\tc[row] += a[row][col] * b[col];\n\t\t\t}\n\t\t}\n//\t\tC?????????????????????\n\t\tfor(int row=0; row<n; row++)\n\t\t{\n\t\t\tSystem.out.println(c[row]);\n\t\t}\n\t}\n}",
"Main"
] | 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));
// ??????A????????°??¨?????°?????????
String[] strs = br.readLine().split(" ");
int n = Integer.parseInt(strs[0]);
int m = Integer.parseInt(strs[1]);
// ??\??????????????°??????????????????A??¨B?????????
int[][] a = new int[n][m];
int[] b = new int[m];
String[] buf = new String[m];
// ??????A
for(int row=0; row<n; row++)
{
buf = br.readLine().split(" ");
for(int col=0; col<m; col++)
{
a[row][col] = Integer.parseInt(buf[col]);
}
}
// ?¬????B
for(int col=0; col<m; col++) b[col] = Integer.parseInt(br.readLine());
// A*B????????????C???????´?
int[] c = new int[n];
for(int row=0; row<n; row++)
{
for(int col=0; col<m; col++)
{
c[row] += a[row][col] * b[col];
}
}
// C?????????????????????
for(int row=0; row<n; row++)
{
System.out.println(c[row]);
}
}
} |
[
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,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
18,
13,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
13,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
62,
68
],
[
8,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
69,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
8,
92
],
[
92,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
94,
102
],
[
102,
103
],
[
103,
104
],
[
94,
105
],
[
106,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
110,
118
],
[
118,
119
],
[
119,
120
],
[
110,
121
],
[
122,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
125,
131
],
[
131,
132
],
[
131,
133
],
[
106,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
8,
140
],
[
140,
141
],
[
141,
142
],
[
6,
143
],
[
143,
144
]
] | [
"import java.util.Scanner;\nclass Main {\n public static void main(String args[]) {\nScanner sc=new Scanner(System.in);\nint n=sc.nextInt();\nint m=sc.nextInt();\nint [][]a=new int [n][m];\nint []b=new int [m];\nfor(int i=0;i<n;i++) {\n\tfor(int s=0;s<m;s++) {\n\t\tint A=sc.nextInt();\n\t\ta[i][s]=A;\n\t}\n}\nfor(int q=0;q<m;q++) {\n\tint B=sc.nextInt();\n\tb[q]=B;\n}\nint y;\nfor(int w=0;w<n;w++) {\n\ty=0;\n\tfor(int e=0;e<m;e++) {\n\t\ty+=a[w][e]*b[e];\n\t}\n\tSystem.out.println(y);\n}\nsc.close();\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String args[]) {\nScanner sc=new Scanner(System.in);\nint n=sc.nextInt();\nint m=sc.nextInt();\nint [][]a=new int [n][m];\nint []b=new int [m];\nfor(int i=0;i<n;i++) {\n\tfor(int s=0;s<m;s++) {\n\t\tint A=sc.nextInt();\n\t\ta[i][s]=A;\n\t}\n}\nfor(int q=0;q<m;q++) {\n\tint B=sc.nextInt();\n\tb[q]=B;\n}\nint y;\nfor(int w=0;w<n;w++) {\n\ty=0;\n\tfor(int e=0;e<m;e++) {\n\t\ty+=a[w][e]*b[e];\n\t}\n\tSystem.out.println(y);\n}\nsc.close();\n }\n}",
"Main",
"public static void main(String args[]) {\nScanner sc=new Scanner(System.in);\nint n=sc.nextInt();\nint m=sc.nextInt();\nint [][]a=new int [n][m];\nint []b=new int [m];\nfor(int i=0;i<n;i++) {\n\tfor(int s=0;s<m;s++) {\n\t\tint A=sc.nextInt();\n\t\ta[i][s]=A;\n\t}\n}\nfor(int q=0;q<m;q++) {\n\tint B=sc.nextInt();\n\tb[q]=B;\n}\nint y;\nfor(int w=0;w<n;w++) {\n\ty=0;\n\tfor(int e=0;e<m;e++) {\n\t\ty+=a[w][e]*b[e];\n\t}\n\tSystem.out.println(y);\n}\nsc.close();\n }",
"main",
"{\nScanner sc=new Scanner(System.in);\nint n=sc.nextInt();\nint m=sc.nextInt();\nint [][]a=new int [n][m];\nint []b=new int [m];\nfor(int i=0;i<n;i++) {\n\tfor(int s=0;s<m;s++) {\n\t\tint A=sc.nextInt();\n\t\ta[i][s]=A;\n\t}\n}\nfor(int q=0;q<m;q++) {\n\tint B=sc.nextInt();\n\tb[q]=B;\n}\nint y;\nfor(int w=0;w<n;w++) {\n\ty=0;\n\tfor(int e=0;e<m;e++) {\n\t\ty+=a[w][e]*b[e];\n\t}\n\tSystem.out.println(y);\n}\nsc.close();\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m=sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int [][]a=new int [n][m];",
"a",
"new int [n][m]",
"n",
"m",
"int []b=new int [m];",
"b",
"new int [m]",
"m",
"for(int i=0;i<n;i++) {\n\tfor(int s=0;s<m;s++) {\n\t\tint A=sc.nextInt();\n\t\ta[i][s]=A;\n\t}\n}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\tfor(int s=0;s<m;s++) {\n\t\tint A=sc.nextInt();\n\t\ta[i][s]=A;\n\t}\n}",
"{\n\tfor(int s=0;s<m;s++) {\n\t\tint A=sc.nextInt();\n\t\ta[i][s]=A;\n\t}\n}",
"for(int s=0;s<m;s++) {\n\t\tint A=sc.nextInt();\n\t\ta[i][s]=A;\n\t}",
"int s=0;",
"int s=0;",
"s",
"0",
"s<m",
"s",
"m",
"s++",
"s++",
"s",
"{\n\t\tint A=sc.nextInt();\n\t\ta[i][s]=A;\n\t}",
"{\n\t\tint A=sc.nextInt();\n\t\ta[i][s]=A;\n\t}",
"int A=sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a[i][s]=A",
"a[i][s]",
"a[i]",
"a",
"i",
"s",
"A",
"for(int q=0;q<m;q++) {\n\tint B=sc.nextInt();\n\tb[q]=B;\n}",
"int q=0;",
"int q=0;",
"q",
"0",
"q<m",
"q",
"m",
"q++",
"q++",
"q",
"{\n\tint B=sc.nextInt();\n\tb[q]=B;\n}",
"{\n\tint B=sc.nextInt();\n\tb[q]=B;\n}",
"int B=sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"b[q]=B",
"b[q]",
"b",
"q",
"B",
"int y;",
"y",
"for(int w=0;w<n;w++) {\n\ty=0;\n\tfor(int e=0;e<m;e++) {\n\t\ty+=a[w][e]*b[e];\n\t}\n\tSystem.out.println(y);\n}",
"int w=0;",
"int w=0;",
"w",
"0",
"w<n",
"w",
"n",
"w++",
"w++",
"w",
"{\n\ty=0;\n\tfor(int e=0;e<m;e++) {\n\t\ty+=a[w][e]*b[e];\n\t}\n\tSystem.out.println(y);\n}",
"{\n\ty=0;\n\tfor(int e=0;e<m;e++) {\n\t\ty+=a[w][e]*b[e];\n\t}\n\tSystem.out.println(y);\n}",
"y=0",
"y",
"0",
"for(int e=0;e<m;e++) {\n\t\ty+=a[w][e]*b[e];\n\t}",
"int e=0;",
"int e=0;",
"e",
"0",
"e<m",
"e",
"m",
"e++",
"e++",
"e",
"{\n\t\ty+=a[w][e]*b[e];\n\t}",
"{\n\t\ty+=a[w][e]*b[e];\n\t}",
"y+=a[w][e]*b[e]",
"y",
"a[w][e]*b[e]",
"a[w][e]",
"a[w]",
"a",
"w",
"e",
"b[e]",
"b",
"e",
"System.out.println(y)",
"System.out.println",
"System.out",
"System",
"System.out",
"y",
"sc.close()",
"sc.close",
"sc",
"String args[]",
"args"
] | import java.util.Scanner;
class Main {
public static void main(String args[]) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int m=sc.nextInt();
int [][]a=new int [n][m];
int []b=new int [m];
for(int i=0;i<n;i++) {
for(int s=0;s<m;s++) {
int A=sc.nextInt();
a[i][s]=A;
}
}
for(int q=0;q<m;q++) {
int B=sc.nextInt();
b[q]=B;
}
int y;
for(int w=0;w<n;w++) {
y=0;
for(int e=0;e<m;e++) {
y+=a[w][e]*b[e];
}
System.out.println(y);
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
42,
44
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
8,
49
],
[
49,
50
],
[
49,
51
],
[
8,
54
],
[
54,
55
],
[
54,
56
],
[
8,
58
],
[
58,
59
],
[
58,
60
],
[
8,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
62,
70
],
[
70,
71
],
[
71,
72
],
[
62,
73
],
[
74,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
74,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
74,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
86,
94
],
[
94,
95
],
[
95,
96
],
[
86,
97
],
[
98,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
99,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
108,
109
],
[
108,
110
],
[
8,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
111,
119
],
[
119,
120
],
[
120,
121
],
[
111,
122
],
[
123,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
123,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
8,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
142,
143
],
[
142,
144
],
[
137,
145
],
[
145,
146
],
[
146,
147
],
[
137,
148
],
[
149,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
150,
155
],
[
155,
156
],
[
155,
157
],
[
150,
158
],
[
158,
159
],
[
159,
160
],
[
150,
161
],
[
162,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
163,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
171,
177
],
[
177,
178
],
[
177,
179
],
[
149,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
180,
185
],
[
185,
186
],
[
185,
187
],
[
6,
188
],
[
188,
189
]
] | [
"import java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t// 配列の縦横入力\n\t\tString str = scan.nextLine();\n\t\tString[] spl = str.split(\" \");\n\t\t// 入力した文字列を数値に変換\n\t\tint n = Integer.parseInt(spl[0]);\n\t\tint m = Integer.parseInt(spl[1]);\n\t\t// カウンタ変数\n\t\tint i=0;\n\t\tint j=0;\n\n\t\tString[] input = new String[m];\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tint[] c = new int[n];\n\n\n\t\t// a行列を入力\n\t\tfor(i=0; i<n; i++){\n\t\t\tstr = scan.nextLine();\n\t\t\tinput = str.split(\" \");\n\t\t\tfor(j=0; j<m; j++){\n\t\t\t\ta[i][j] = Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}\n\t\t// b行を入力\n\t\tfor(i=0; i<m; i++){\n\t\t\tstr = scan.nextLine();\n\t\t\tb[i] = Integer.parseInt(str);\n\t\t}\n\n\n\t\t// 行列計算(ループか?)\n\t\tfor(i=0; i<n; i++){\n\t\t\tfor(j=0; j<m; j++){\n\t\t\t\tc[i] = c[i] + (a[i][j] * b[j]);\n\t\t\t}\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t// 配列の縦横入力\n\t\tString str = scan.nextLine();\n\t\tString[] spl = str.split(\" \");\n\t\t// 入力した文字列を数値に変換\n\t\tint n = Integer.parseInt(spl[0]);\n\t\tint m = Integer.parseInt(spl[1]);\n\t\t// カウンタ変数\n\t\tint i=0;\n\t\tint j=0;\n\n\t\tString[] input = new String[m];\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tint[] c = new int[n];\n\n\n\t\t// a行列を入力\n\t\tfor(i=0; i<n; i++){\n\t\t\tstr = scan.nextLine();\n\t\t\tinput = str.split(\" \");\n\t\t\tfor(j=0; j<m; j++){\n\t\t\t\ta[i][j] = Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}\n\t\t// b行を入力\n\t\tfor(i=0; i<m; i++){\n\t\t\tstr = scan.nextLine();\n\t\t\tb[i] = Integer.parseInt(str);\n\t\t}\n\n\n\t\t// 行列計算(ループか?)\n\t\tfor(i=0; i<n; i++){\n\t\t\tfor(j=0; j<m; j++){\n\t\t\t\tc[i] = c[i] + (a[i][j] * b[j]);\n\t\t\t}\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t// 配列の縦横入力\n\t\tString str = scan.nextLine();\n\t\tString[] spl = str.split(\" \");\n\t\t// 入力した文字列を数値に変換\n\t\tint n = Integer.parseInt(spl[0]);\n\t\tint m = Integer.parseInt(spl[1]);\n\t\t// カウンタ変数\n\t\tint i=0;\n\t\tint j=0;\n\n\t\tString[] input = new String[m];\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tint[] c = new int[n];\n\n\n\t\t// a行列を入力\n\t\tfor(i=0; i<n; i++){\n\t\t\tstr = scan.nextLine();\n\t\t\tinput = str.split(\" \");\n\t\t\tfor(j=0; j<m; j++){\n\t\t\t\ta[i][j] = Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}\n\t\t// b行を入力\n\t\tfor(i=0; i<m; i++){\n\t\t\tstr = scan.nextLine();\n\t\t\tb[i] = Integer.parseInt(str);\n\t\t}\n\n\n\t\t// 行列計算(ループか?)\n\t\tfor(i=0; i<n; i++){\n\t\t\tfor(j=0; j<m; j++){\n\t\t\t\tc[i] = c[i] + (a[i][j] * b[j]);\n\t\t\t}\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\t// 配列の縦横入力\n\t\tString str = scan.nextLine();\n\t\tString[] spl = str.split(\" \");\n\t\t// 入力した文字列を数値に変換\n\t\tint n = Integer.parseInt(spl[0]);\n\t\tint m = Integer.parseInt(spl[1]);\n\t\t// カウンタ変数\n\t\tint i=0;\n\t\tint j=0;\n\n\t\tString[] input = new String[m];\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tint[] c = new int[n];\n\n\n\t\t// a行列を入力\n\t\tfor(i=0; i<n; i++){\n\t\t\tstr = scan.nextLine();\n\t\t\tinput = str.split(\" \");\n\t\t\tfor(j=0; j<m; j++){\n\t\t\t\ta[i][j] = Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}\n\t\t// b行を入力\n\t\tfor(i=0; i<m; i++){\n\t\t\tstr = scan.nextLine();\n\t\t\tb[i] = Integer.parseInt(str);\n\t\t}\n\n\n\t\t// 行列計算(ループか?)\n\t\tfor(i=0; i<n; i++){\n\t\t\tfor(j=0; j<m; j++){\n\t\t\t\tc[i] = c[i] + (a[i][j] * b[j]);\n\t\t\t}\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String str = scan.nextLine();",
"str",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String[] spl = str.split(\" \");",
"spl",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"int n = Integer.parseInt(spl[0]);",
"n",
"Integer.parseInt(spl[0])",
"Integer.parseInt",
"Integer",
"spl[0]",
"spl",
"0",
"int m = Integer.parseInt(spl[1]);",
"m",
"Integer.parseInt(spl[1])",
"Integer.parseInt",
"Integer",
"spl[1]",
"spl",
"1",
"int i=0;",
"i",
"0",
"int j=0;",
"j",
"0",
"String[] input = new String[m];",
"input",
"new String[m]",
"m",
"int[][] a = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[] b = new int[m];",
"b",
"new int[m]",
"m",
"int[] c = new int[n];",
"c",
"new int[n]",
"n",
"for(i=0; i<n; i++){\n\t\t\tstr = scan.nextLine();\n\t\t\tinput = str.split(\" \");\n\t\t\tfor(j=0; j<m; j++){\n\t\t\t\ta[i][j] = Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tstr = scan.nextLine();\n\t\t\tinput = str.split(\" \");\n\t\t\tfor(j=0; j<m; j++){\n\t\t\t\ta[i][j] = Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tstr = scan.nextLine();\n\t\t\tinput = str.split(\" \");\n\t\t\tfor(j=0; j<m; j++){\n\t\t\t\ta[i][j] = Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}",
"str = scan.nextLine()",
"str",
"scan.nextLine()",
"scan.nextLine",
"scan",
"input = str.split(\" \")",
"input",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"for(j=0; j<m; j++){\n\t\t\t\ta[i][j] = Integer.parseInt(input[j]);\n\t\t\t}",
"j=0;",
"j=0",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\ta[i][j] = Integer.parseInt(input[j]);\n\t\t\t}",
"{\n\t\t\t\ta[i][j] = Integer.parseInt(input[j]);\n\t\t\t}",
"a[i][j] = Integer.parseInt(input[j])",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"Integer.parseInt(input[j])",
"Integer.parseInt",
"Integer",
"input[j]",
"input",
"j",
"for(i=0; i<m; i++){\n\t\t\tstr = scan.nextLine();\n\t\t\tb[i] = Integer.parseInt(str);\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tstr = scan.nextLine();\n\t\t\tb[i] = Integer.parseInt(str);\n\t\t}",
"{\n\t\t\tstr = scan.nextLine();\n\t\t\tb[i] = Integer.parseInt(str);\n\t\t}",
"str = scan.nextLine()",
"str",
"scan.nextLine()",
"scan.nextLine",
"scan",
"b[i] = Integer.parseInt(str)",
"b[i]",
"b",
"i",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"for(i=0; i<n; i++){\n\t\t\tfor(j=0; j<m; j++){\n\t\t\t\tc[i] = c[i] + (a[i][j] * b[j]);\n\t\t\t}\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(j=0; j<m; j++){\n\t\t\t\tc[i] = c[i] + (a[i][j] * b[j]);\n\t\t\t}\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"{\n\t\t\tfor(j=0; j<m; j++){\n\t\t\t\tc[i] = c[i] + (a[i][j] * b[j]);\n\t\t\t}\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"for(j=0; j<m; j++){\n\t\t\t\tc[i] = c[i] + (a[i][j] * b[j]);\n\t\t\t}",
"j=0;",
"j=0",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tc[i] = c[i] + (a[i][j] * b[j]);\n\t\t\t}",
"{\n\t\t\t\tc[i] = c[i] + (a[i][j] * b[j]);\n\t\t\t}",
"c[i] = c[i] + (a[i][j] * b[j])",
"c[i]",
"c",
"i",
"c[i] + (a[i][j] * b[j])",
"c[i]",
"c",
"i",
"(a[i][j] * b[j])",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"System.out.println(c[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[i]",
"c",
"i",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
// 配列の縦横入力
String str = scan.nextLine();
String[] spl = str.split(" ");
// 入力した文字列を数値に変換
int n = Integer.parseInt(spl[0]);
int m = Integer.parseInt(spl[1]);
// カウンタ変数
int i=0;
int j=0;
String[] input = new String[m];
int[][] a = new int[n][m];
int[] b = new int[m];
int[] c = new int[n];
// a行列を入力
for(i=0; i<n; i++){
str = scan.nextLine();
input = str.split(" ");
for(j=0; j<m; j++){
a[i][j] = Integer.parseInt(input[j]);
}
}
// b行を入力
for(i=0; i<m; i++){
str = scan.nextLine();
b[i] = Integer.parseInt(str);
}
// 行列計算(ループか?)
for(i=0; i<n; i++){
for(j=0; j<m; j++){
c[i] = c[i] + (a[i][j] * b[j]);
}
System.out.println(c[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,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
17,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
17,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
17,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13
] | [
[
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
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
11,
34
],
[
34,
35
],
[
34,
36
],
[
11,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
38,
48
],
[
48,
49
],
[
49,
50
],
[
38,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
53,
65
],
[
65,
66
],
[
66,
67
],
[
53,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
70,
76
],
[
76,
77
],
[
77,
78
],
[
11,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
79,
91
],
[
91,
92
],
[
92,
93
],
[
79,
94
],
[
95,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
101,
102
],
[
11,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
110,
112
],
[
103,
113
],
[
113,
114
],
[
114,
115
],
[
103,
116
],
[
117,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
121,
133
],
[
133,
134
],
[
134,
135
],
[
121,
136
],
[
137,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
140,
146
],
[
146,
147
],
[
146,
148
],
[
117,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
11,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
161,
163
],
[
154,
164
],
[
164,
165
],
[
165,
166
],
[
154,
167
],
[
168,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
169,
174
],
[
174,
175
],
[
174,
176
],
[
9,
177
],
[
177,
178
]
] | [
"import java.io.IOException;\nimport java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tScanner scane = new Scanner(System.in);\n\n\t\tint n = scane.nextInt();\n\n\t\tint m = scane.nextInt();\n\n\t\tint[][] A = new int[n][m];\n\n\t\tint[] b = new int[m];\n\n\t\tint[] c = new int[n];\n\n\t\tfor(int i=0; i<A.length; i++){\n\t\t\tfor(int j = 0; j<A[0].length; j++){\n\n\t\t\t\tA[i][j] = scane.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i= 0; i<A[0].length; i++){\n\t\t\tb[i] = scane.nextInt();\n\t\t}\n\n\n\n\t\tfor(int i=0; i<A.length; i++){\n\t\t\tint sum =0;\n\t\t\tfor(int j = 0; j<A[0].length; j++){\n\t\t\t\tsum += A[i][j]*b[j];\n\t\t\t}\n\n\t\t\tc[i] = sum;\n\t\t}\n\n\t\tfor(int i=0; i<c.length; i++){\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\n\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tScanner scane = new Scanner(System.in);\n\n\t\tint n = scane.nextInt();\n\n\t\tint m = scane.nextInt();\n\n\t\tint[][] A = new int[n][m];\n\n\t\tint[] b = new int[m];\n\n\t\tint[] c = new int[n];\n\n\t\tfor(int i=0; i<A.length; i++){\n\t\t\tfor(int j = 0; j<A[0].length; j++){\n\n\t\t\t\tA[i][j] = scane.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i= 0; i<A[0].length; i++){\n\t\t\tb[i] = scane.nextInt();\n\t\t}\n\n\n\n\t\tfor(int i=0; i<A.length; i++){\n\t\t\tint sum =0;\n\t\t\tfor(int j = 0; j<A[0].length; j++){\n\t\t\t\tsum += A[i][j]*b[j];\n\t\t\t}\n\n\t\t\tc[i] = sum;\n\t\t}\n\n\t\tfor(int i=0; i<c.length; i++){\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\n\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n\t\tScanner scane = new Scanner(System.in);\n\n\t\tint n = scane.nextInt();\n\n\t\tint m = scane.nextInt();\n\n\t\tint[][] A = new int[n][m];\n\n\t\tint[] b = new int[m];\n\n\t\tint[] c = new int[n];\n\n\t\tfor(int i=0; i<A.length; i++){\n\t\t\tfor(int j = 0; j<A[0].length; j++){\n\n\t\t\t\tA[i][j] = scane.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i= 0; i<A[0].length; i++){\n\t\t\tb[i] = scane.nextInt();\n\t\t}\n\n\n\n\t\tfor(int i=0; i<A.length; i++){\n\t\t\tint sum =0;\n\t\t\tfor(int j = 0; j<A[0].length; j++){\n\t\t\t\tsum += A[i][j]*b[j];\n\t\t\t}\n\n\t\t\tc[i] = sum;\n\t\t}\n\n\t\tfor(int i=0; i<c.length; i++){\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\n\n\t}",
"main",
"{\n\n\t\tScanner scane = new Scanner(System.in);\n\n\t\tint n = scane.nextInt();\n\n\t\tint m = scane.nextInt();\n\n\t\tint[][] A = new int[n][m];\n\n\t\tint[] b = new int[m];\n\n\t\tint[] c = new int[n];\n\n\t\tfor(int i=0; i<A.length; i++){\n\t\t\tfor(int j = 0; j<A[0].length; j++){\n\n\t\t\t\tA[i][j] = scane.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i= 0; i<A[0].length; i++){\n\t\t\tb[i] = scane.nextInt();\n\t\t}\n\n\n\n\t\tfor(int i=0; i<A.length; i++){\n\t\t\tint sum =0;\n\t\t\tfor(int j = 0; j<A[0].length; j++){\n\t\t\t\tsum += A[i][j]*b[j];\n\t\t\t}\n\n\t\t\tc[i] = sum;\n\t\t}\n\n\t\tfor(int i=0; i<c.length; i++){\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\n\n\t}",
"Scanner scane = new Scanner(System.in);",
"scane",
"new Scanner(System.in)",
"int n = scane.nextInt();",
"n",
"scane.nextInt()",
"scane.nextInt",
"scane",
"int m = scane.nextInt();",
"m",
"scane.nextInt()",
"scane.nextInt",
"scane",
"int[][] A = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int[] b = new int[m];",
"b",
"new int[m]",
"m",
"int[] c = new int[n];",
"c",
"new int[n]",
"n",
"for(int i=0; i<A.length; i++){\n\t\t\tfor(int j = 0; j<A[0].length; j++){\n\n\t\t\t\tA[i][j] = scane.nextInt();\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<A.length",
"i",
"A.length",
"A",
"A.length",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j<A[0].length; j++){\n\n\t\t\t\tA[i][j] = scane.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j<A[0].length; j++){\n\n\t\t\t\tA[i][j] = scane.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0; j<A[0].length; j++){\n\n\t\t\t\tA[i][j] = scane.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j<A[0].length",
"j",
"A[0].length",
"A[0]",
"A",
"0",
"A[0].length",
"j++",
"j++",
"j",
"{\n\n\t\t\t\tA[i][j] = scane.nextInt();\n\t\t\t}",
"{\n\n\t\t\t\tA[i][j] = scane.nextInt();\n\t\t\t}",
"A[i][j] = scane.nextInt()",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"scane.nextInt()",
"scane.nextInt",
"scane",
"for(int i= 0; i<A[0].length; i++){\n\t\t\tb[i] = scane.nextInt();\n\t\t}",
"int i= 0;",
"int i= 0;",
"i",
"0",
"i<A[0].length",
"i",
"A[0].length",
"A[0]",
"A",
"0",
"A[0].length",
"i++",
"i++",
"i",
"{\n\t\t\tb[i] = scane.nextInt();\n\t\t}",
"{\n\t\t\tb[i] = scane.nextInt();\n\t\t}",
"b[i] = scane.nextInt()",
"b[i]",
"b",
"i",
"scane.nextInt()",
"scane.nextInt",
"scane",
"for(int i=0; i<A.length; i++){\n\t\t\tint sum =0;\n\t\t\tfor(int j = 0; j<A[0].length; j++){\n\t\t\t\tsum += A[i][j]*b[j];\n\t\t\t}\n\n\t\t\tc[i] = sum;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<A.length",
"i",
"A.length",
"A",
"A.length",
"i++",
"i++",
"i",
"{\n\t\t\tint sum =0;\n\t\t\tfor(int j = 0; j<A[0].length; j++){\n\t\t\t\tsum += A[i][j]*b[j];\n\t\t\t}\n\n\t\t\tc[i] = sum;\n\t\t}",
"{\n\t\t\tint sum =0;\n\t\t\tfor(int j = 0; j<A[0].length; j++){\n\t\t\t\tsum += A[i][j]*b[j];\n\t\t\t}\n\n\t\t\tc[i] = sum;\n\t\t}",
"int sum =0;",
"sum",
"0",
"for(int j = 0; j<A[0].length; j++){\n\t\t\t\tsum += A[i][j]*b[j];\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j<A[0].length",
"j",
"A[0].length",
"A[0]",
"A",
"0",
"A[0].length",
"j++",
"j++",
"j",
"{\n\t\t\t\tsum += A[i][j]*b[j];\n\t\t\t}",
"{\n\t\t\t\tsum += A[i][j]*b[j];\n\t\t\t}",
"sum += A[i][j]*b[j]",
"sum",
"A[i][j]*b[j]",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"b[j]",
"b",
"j",
"c[i] = sum",
"c[i]",
"c",
"i",
"sum",
"for(int i=0; i<c.length; i++){\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<c.length",
"i",
"c.length",
"c",
"c.length",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"System.out.println(c[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[i]",
"c",
"i",
"String[] args",
"args"
] | import java.io.IOException;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws IOException {
Scanner scane = new Scanner(System.in);
int n = scane.nextInt();
int m = scane.nextInt();
int[][] A = new int[n][m];
int[] b = new int[m];
int[] c = new int[n];
for(int i=0; i<A.length; i++){
for(int j = 0; j<A[0].length; j++){
A[i][j] = scane.nextInt();
}
}
for(int i= 0; i<A[0].length; i++){
b[i] = scane.nextInt();
}
for(int i=0; i<A.length; i++){
int sum =0;
for(int j = 0; j<A[0].length; j++){
sum += A[i][j]*b[j];
}
c[i] = sum;
}
for(int i=0; i<c.length; i++){
System.out.println(c[i]);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
17,
41,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
178,
11
],
[
178,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
20,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
14,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
37,
39
],
[
14,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
45,
47
],
[
14,
48
],
[
48,
49
],
[
48,
50
],
[
14,
53
],
[
53,
54
],
[
53,
55
],
[
14,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
57,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
72,
77
],
[
69,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
78,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
91,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
100,
101
],
[
100,
102
],
[
14,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
103,
111
],
[
111,
112
],
[
112,
113
],
[
103,
114
],
[
115,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
115,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
126,
127
],
[
125,
128
],
[
14,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
129,
137
],
[
137,
138
],
[
138,
139
],
[
129,
140
],
[
141,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
145,
150
],
[
150,
151
],
[
150,
152
],
[
145,
153
],
[
153,
154
],
[
154,
155
],
[
145,
156
],
[
157,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
160,
166
],
[
166,
167
],
[
166,
168
],
[
141,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
169,
174
],
[
12,
175
],
[
175,
176
],
[
0,
177
],
[
177,
178
],
[
177,
179
]
] | [
"\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\n\t/*\n\t * n*m A // A[n][m]\n\t *\n\t * m*1 b // b[m*1]\n\t *\n\t * A+=b = sysout\n\t *\n\t * A[ni][mj]\n\t *\n\t * b[mi]\n\t */\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t//Scanner sc = new Scanner(System.in);\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t// ???????????????\n\t\tString[] line = br.readLine().split(\" \");\n\t\tint n=0,m=0;\n\t\tn = Integer.parseInt(line[0]); // 3\n\t\tm = Integer.parseInt(line[1]); // 4\n\n\t\tint[][] vector_A = new int[n][m]; // [3][4]\n\n\t\tint[] vector_B = new int[m]; // [4*1]\n\n\n\t\t// ?????±?????\\??????\n\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\t// * 1 2 0 1 0 3 0 1 4 1 1 0\n\n\t\t\tString [] data = br.readLine().split(\" \");// ??????????????????????????¶\n\t\t\tfor\t(int j= 0; j < m; j++){\n\t\t\t\tvector_A[i][j] = Integer.parseInt(data[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {// 1230\n\t\t\tString data2 = br.readLine();\n\t\t\tvector_B[i] = Integer.parseInt(data2);\n\t\t}\n\n\t\t/*\n\t\t * 1201 0301 4110\n\t\t *\n\t\t * 1230\n\t\t *\n\t\t * 1*1=1, 2*2=4, 0*3=0, 1*0=0 tot=5 ...\n\t\t *\n\t\t *\n\t\t */\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint tot = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ttot += vector_A[i][j] * vector_B[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(tot);\n\t\t}\n\n\t\t// sc.close();\n\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main{\n\n\t/*\n\t * n*m A // A[n][m]\n\t *\n\t * m*1 b // b[m*1]\n\t *\n\t * A+=b = sysout\n\t *\n\t * A[ni][mj]\n\t *\n\t * b[mi]\n\t */\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t//Scanner sc = new Scanner(System.in);\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t// ???????????????\n\t\tString[] line = br.readLine().split(\" \");\n\t\tint n=0,m=0;\n\t\tn = Integer.parseInt(line[0]); // 3\n\t\tm = Integer.parseInt(line[1]); // 4\n\n\t\tint[][] vector_A = new int[n][m]; // [3][4]\n\n\t\tint[] vector_B = new int[m]; // [4*1]\n\n\n\t\t// ?????±?????\\??????\n\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\t// * 1 2 0 1 0 3 0 1 4 1 1 0\n\n\t\t\tString [] data = br.readLine().split(\" \");// ??????????????????????????¶\n\t\t\tfor\t(int j= 0; j < m; j++){\n\t\t\t\tvector_A[i][j] = Integer.parseInt(data[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {// 1230\n\t\t\tString data2 = br.readLine();\n\t\t\tvector_B[i] = Integer.parseInt(data2);\n\t\t}\n\n\t\t/*\n\t\t * 1201 0301 4110\n\t\t *\n\t\t * 1230\n\t\t *\n\t\t * 1*1=1, 2*2=4, 0*3=0, 1*0=0 tot=5 ...\n\t\t *\n\t\t *\n\t\t */\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint tot = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ttot += vector_A[i][j] * vector_B[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(tot);\n\t\t}\n\n\t\t// sc.close();\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\t//Scanner sc = new Scanner(System.in);\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t// ???????????????\n\t\tString[] line = br.readLine().split(\" \");\n\t\tint n=0,m=0;\n\t\tn = Integer.parseInt(line[0]); // 3\n\t\tm = Integer.parseInt(line[1]); // 4\n\n\t\tint[][] vector_A = new int[n][m]; // [3][4]\n\n\t\tint[] vector_B = new int[m]; // [4*1]\n\n\n\t\t// ?????±?????\\??????\n\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\t// * 1 2 0 1 0 3 0 1 4 1 1 0\n\n\t\t\tString [] data = br.readLine().split(\" \");// ??????????????????????????¶\n\t\t\tfor\t(int j= 0; j < m; j++){\n\t\t\t\tvector_A[i][j] = Integer.parseInt(data[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {// 1230\n\t\t\tString data2 = br.readLine();\n\t\t\tvector_B[i] = Integer.parseInt(data2);\n\t\t}\n\n\t\t/*\n\t\t * 1201 0301 4110\n\t\t *\n\t\t * 1230\n\t\t *\n\t\t * 1*1=1, 2*2=4, 0*3=0, 1*0=0 tot=5 ...\n\t\t *\n\t\t *\n\t\t */\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint tot = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ttot += vector_A[i][j] * vector_B[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(tot);\n\t\t}\n\n\t\t// sc.close();\n\n\t}",
"main",
"{\n\t\t//Scanner sc = new Scanner(System.in);\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t// ???????????????\n\t\tString[] line = br.readLine().split(\" \");\n\t\tint n=0,m=0;\n\t\tn = Integer.parseInt(line[0]); // 3\n\t\tm = Integer.parseInt(line[1]); // 4\n\n\t\tint[][] vector_A = new int[n][m]; // [3][4]\n\n\t\tint[] vector_B = new int[m]; // [4*1]\n\n\n\t\t// ?????±?????\\??????\n\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\t// * 1 2 0 1 0 3 0 1 4 1 1 0\n\n\t\t\tString [] data = br.readLine().split(\" \");// ??????????????????????????¶\n\t\t\tfor\t(int j= 0; j < m; j++){\n\t\t\t\tvector_A[i][j] = Integer.parseInt(data[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {// 1230\n\t\t\tString data2 = br.readLine();\n\t\t\tvector_B[i] = Integer.parseInt(data2);\n\t\t}\n\n\t\t/*\n\t\t * 1201 0301 4110\n\t\t *\n\t\t * 1230\n\t\t *\n\t\t * 1*1=1, 2*2=4, 0*3=0, 1*0=0 tot=5 ...\n\t\t *\n\t\t *\n\t\t */\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint tot = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ttot += vector_A[i][j] * vector_B[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(tot);\n\t\t}\n\n\t\t// sc.close();\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] line = br.readLine().split(\" \");",
"line",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int n=0",
"n",
"0",
"m=0;",
"m",
"0",
"n = Integer.parseInt(line[0])",
"n",
"Integer.parseInt(line[0])",
"Integer.parseInt",
"Integer",
"line[0]",
"line",
"0",
"m = Integer.parseInt(line[1])",
"m",
"Integer.parseInt(line[1])",
"Integer.parseInt",
"Integer",
"line[1]",
"line",
"1",
"int[][] vector_A = new int[n][m];",
"vector_A",
"new int[n][m]",
"n",
"m",
"int[] vector_B = new int[m];",
"vector_B",
"new int[m]",
"m",
"for (int i = 0; i < n; i++) {\n\n\t\t\t// * 1 2 0 1 0 3 0 1 4 1 1 0\n\n\t\t\tString [] data = br.readLine().split(\" \");// ??????????????????????????¶\n\t\t\tfor\t(int j= 0; j < m; j++){\n\t\t\t\tvector_A[i][j] = Integer.parseInt(data[j]);\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\n\t\t\t// * 1 2 0 1 0 3 0 1 4 1 1 0\n\n\t\t\tString [] data = br.readLine().split(\" \");// ??????????????????????????¶\n\t\t\tfor\t(int j= 0; j < m; j++){\n\t\t\t\tvector_A[i][j] = Integer.parseInt(data[j]);\n\t\t\t}\n\t\t}",
"{\n\n\t\t\t// * 1 2 0 1 0 3 0 1 4 1 1 0\n\n\t\t\tString [] data = br.readLine().split(\" \");// ??????????????????????????¶\n\t\t\tfor\t(int j= 0; j < m; j++){\n\t\t\t\tvector_A[i][j] = Integer.parseInt(data[j]);\n\t\t\t}\n\t\t}",
"String [] data = br.readLine().split(\" \");",
"data",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for\t(int j= 0; j < m; j++){\n\t\t\t\tvector_A[i][j] = Integer.parseInt(data[j]);\n\t\t\t}",
"int j= 0;",
"int j= 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tvector_A[i][j] = Integer.parseInt(data[j]);\n\t\t\t}",
"{\n\t\t\t\tvector_A[i][j] = Integer.parseInt(data[j]);\n\t\t\t}",
"vector_A[i][j] = Integer.parseInt(data[j])",
"vector_A[i][j]",
"vector_A[i]",
"vector_A",
"i",
"j",
"Integer.parseInt(data[j])",
"Integer.parseInt",
"Integer",
"data[j]",
"data",
"j",
"for (int i = 0; i < m; i++) {// 1230\n\t\t\tString data2 = br.readLine();\n\t\t\tvector_B[i] = Integer.parseInt(data2);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{// 1230\n\t\t\tString data2 = br.readLine();\n\t\t\tvector_B[i] = Integer.parseInt(data2);\n\t\t}",
"{// 1230\n\t\t\tString data2 = br.readLine();\n\t\t\tvector_B[i] = Integer.parseInt(data2);\n\t\t}",
"String data2 = br.readLine();",
"data2",
"br.readLine()",
"br.readLine",
"br",
"vector_B[i] = Integer.parseInt(data2)",
"vector_B[i]",
"vector_B",
"i",
"Integer.parseInt(data2)",
"Integer.parseInt",
"Integer",
"data2",
"for (int i = 0; i < n; i++) {\n\t\t\tint tot = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ttot += vector_A[i][j] * vector_B[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(tot);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint tot = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ttot += vector_A[i][j] * vector_B[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(tot);\n\t\t}",
"{\n\t\t\tint tot = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ttot += vector_A[i][j] * vector_B[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(tot);\n\t\t}",
"int tot = 0;",
"tot",
"0",
"for (int j = 0; j < m; j++) {\n\t\t\t\ttot += vector_A[i][j] * vector_B[j];\n\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\ttot += vector_A[i][j] * vector_B[j];\n\n\t\t\t}",
"{\n\t\t\t\ttot += vector_A[i][j] * vector_B[j];\n\n\t\t\t}",
"tot += vector_A[i][j] * vector_B[j]",
"tot",
"vector_A[i][j] * vector_B[j]",
"vector_A[i][j]",
"vector_A[i]",
"vector_A",
"i",
"j",
"vector_B[j]",
"vector_B",
"j",
"System.out.println(tot)",
"System.out.println",
"System.out",
"System",
"System.out",
"tot",
"String[] args",
"args",
"public class Main{\n\n\t/*\n\t * n*m A // A[n][m]\n\t *\n\t * m*1 b // b[m*1]\n\t *\n\t * A+=b = sysout\n\t *\n\t * A[ni][mj]\n\t *\n\t * b[mi]\n\t */\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t//Scanner sc = new Scanner(System.in);\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t// ???????????????\n\t\tString[] line = br.readLine().split(\" \");\n\t\tint n=0,m=0;\n\t\tn = Integer.parseInt(line[0]); // 3\n\t\tm = Integer.parseInt(line[1]); // 4\n\n\t\tint[][] vector_A = new int[n][m]; // [3][4]\n\n\t\tint[] vector_B = new int[m]; // [4*1]\n\n\n\t\t// ?????±?????\\??????\n\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\t// * 1 2 0 1 0 3 0 1 4 1 1 0\n\n\t\t\tString [] data = br.readLine().split(\" \");// ??????????????????????????¶\n\t\t\tfor\t(int j= 0; j < m; j++){\n\t\t\t\tvector_A[i][j] = Integer.parseInt(data[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {// 1230\n\t\t\tString data2 = br.readLine();\n\t\t\tvector_B[i] = Integer.parseInt(data2);\n\t\t}\n\n\t\t/*\n\t\t * 1201 0301 4110\n\t\t *\n\t\t * 1230\n\t\t *\n\t\t * 1*1=1, 2*2=4, 0*3=0, 1*0=0 tot=5 ...\n\t\t *\n\t\t *\n\t\t */\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint tot = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ttot += vector_A[i][j] * vector_B[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(tot);\n\t\t}\n\n\t\t// sc.close();\n\n\t}\n\n}",
"public class Main{\n\n\t/*\n\t * n*m A // A[n][m]\n\t *\n\t * m*1 b // b[m*1]\n\t *\n\t * A+=b = sysout\n\t *\n\t * A[ni][mj]\n\t *\n\t * b[mi]\n\t */\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t//Scanner sc = new Scanner(System.in);\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t// ???????????????\n\t\tString[] line = br.readLine().split(\" \");\n\t\tint n=0,m=0;\n\t\tn = Integer.parseInt(line[0]); // 3\n\t\tm = Integer.parseInt(line[1]); // 4\n\n\t\tint[][] vector_A = new int[n][m]; // [3][4]\n\n\t\tint[] vector_B = new int[m]; // [4*1]\n\n\n\t\t// ?????±?????\\??????\n\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\t// * 1 2 0 1 0 3 0 1 4 1 1 0\n\n\t\t\tString [] data = br.readLine().split(\" \");// ??????????????????????????¶\n\t\t\tfor\t(int j= 0; j < m; j++){\n\t\t\t\tvector_A[i][j] = Integer.parseInt(data[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {// 1230\n\t\t\tString data2 = br.readLine();\n\t\t\tvector_B[i] = Integer.parseInt(data2);\n\t\t}\n\n\t\t/*\n\t\t * 1201 0301 4110\n\t\t *\n\t\t * 1230\n\t\t *\n\t\t * 1*1=1, 2*2=4, 0*3=0, 1*0=0 tot=5 ...\n\t\t *\n\t\t *\n\t\t */\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint tot = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ttot += vector_A[i][j] * vector_B[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(tot);\n\t\t}\n\n\t\t// sc.close();\n\n\t}\n\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
/*
* n*m A // A[n][m]
*
* m*1 b // b[m*1]
*
* A+=b = sysout
*
* A[ni][mj]
*
* b[mi]
*/
public static void main(String[] args) throws IOException {
//Scanner sc = new Scanner(System.in);
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
// ???????????????
String[] line = br.readLine().split(" ");
int n=0,m=0;
n = Integer.parseInt(line[0]); // 3
m = Integer.parseInt(line[1]); // 4
int[][] vector_A = new int[n][m]; // [3][4]
int[] vector_B = new int[m]; // [4*1]
// ?????±?????\??????
for (int i = 0; i < n; i++) {
// * 1 2 0 1 0 3 0 1 4 1 1 0
String [] data = br.readLine().split(" ");// ??????????????????????????¶
for (int j= 0; j < m; j++){
vector_A[i][j] = Integer.parseInt(data[j]);
}
}
for (int i = 0; i < m; i++) {// 1230
String data2 = br.readLine();
vector_B[i] = Integer.parseInt(data2);
}
/*
* 1201 0301 4110
*
* 1230
*
* 1*1=1, 2*2=4, 0*3=0, 1*0=0 tot=5 ...
*
*
*/
for (int i = 0; i < n; i++) {
int tot = 0;
for (int j = 0; j < m; j++) {
tot += vector_A[i][j] * vector_B[j];
}
System.out.println(tot);
}
// sc.close();
}
} |
[
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,
13,
41,
13,
41,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
52,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
65,
71
],
[
71,
72
],
[
72,
73
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
74,
82
],
[
82,
83
],
[
83,
84
],
[
74,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
91,
92
],
[
92,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
8,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
97,
105
],
[
105,
106
],
[
106,
107
],
[
97,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
110,
118
],
[
118,
119
],
[
119,
120
],
[
110,
121
],
[
122,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
127,
133
],
[
133,
134
],
[
133,
135
],
[
8,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
141,
142
],
[
141,
143
],
[
136,
144
],
[
144,
145
],
[
145,
146
],
[
136,
147
],
[
148,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
149,
154
],
[
154,
155
],
[
154,
156
],
[
6,
157
],
[
157,
158
],
[
0,
159
],
[
159,
160
],
[
159,
161
]
] | [
"import java.util.Scanner;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint vecnm[][] = new int[n][m];\n\t\tint i,j;\n\t\tint vec[] = new int[m];\n\t\tint veca[] = new int[n];\n\t\t\n\t\tfor(i=0;i<n;i++){\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\tvecnm[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<m;i++){\n\t\t\tvec[i] = sc.nextInt();\n\t\t}\n\t\tsc.close();\n\t\t\n\t\tfor(i=0;i<n;i++){\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\tveca[i] += (vecnm[i][j]*vec[j]);\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<n;i++){\n\t\t\tSystem.out.println(veca[i]);\n\t\t}\n\t}\n\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint vecnm[][] = new int[n][m];\n\t\tint i,j;\n\t\tint vec[] = new int[m];\n\t\tint veca[] = new int[n];\n\t\t\n\t\tfor(i=0;i<n;i++){\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\tvecnm[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<m;i++){\n\t\t\tvec[i] = sc.nextInt();\n\t\t}\n\t\tsc.close();\n\t\t\n\t\tfor(i=0;i<n;i++){\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\tveca[i] += (vecnm[i][j]*vec[j]);\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<n;i++){\n\t\t\tSystem.out.println(veca[i]);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint vecnm[][] = new int[n][m];\n\t\tint i,j;\n\t\tint vec[] = new int[m];\n\t\tint veca[] = new int[n];\n\t\t\n\t\tfor(i=0;i<n;i++){\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\tvecnm[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<m;i++){\n\t\t\tvec[i] = sc.nextInt();\n\t\t}\n\t\tsc.close();\n\t\t\n\t\tfor(i=0;i<n;i++){\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\tveca[i] += (vecnm[i][j]*vec[j]);\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<n;i++){\n\t\t\tSystem.out.println(veca[i]);\n\t\t}\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint vecnm[][] = new int[n][m];\n\t\tint i,j;\n\t\tint vec[] = new int[m];\n\t\tint veca[] = new int[n];\n\t\t\n\t\tfor(i=0;i<n;i++){\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\tvecnm[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<m;i++){\n\t\t\tvec[i] = sc.nextInt();\n\t\t}\n\t\tsc.close();\n\t\t\n\t\tfor(i=0;i<n;i++){\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\tveca[i] += (vecnm[i][j]*vec[j]);\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<n;i++){\n\t\t\tSystem.out.println(veca[i]);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int vecnm[][] = new int[n][m];",
"vecnm",
"new int[n][m]",
"n",
"m",
"int i",
"i",
"j;",
"j",
"int vec[] = new int[m];",
"vec",
"new int[m]",
"m",
"int veca[] = new int[n];",
"veca",
"new int[n]",
"n",
"for(i=0;i<n;i++){\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\tvecnm[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\tvecnm[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\tvecnm[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for(j=0;j<m;j++){\n\t\t\t\tvecnm[i][j] = sc.nextInt();\n\t\t\t}",
"j=0;",
"j=0",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tvecnm[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tvecnm[i][j] = sc.nextInt();\n\t\t\t}",
"vecnm[i][j] = sc.nextInt()",
"vecnm[i][j]",
"vecnm[i]",
"vecnm",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(i=0;i<m;i++){\n\t\t\tvec[i] = sc.nextInt();\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tvec[i] = sc.nextInt();\n\t\t}",
"{\n\t\t\tvec[i] = sc.nextInt();\n\t\t}",
"vec[i] = sc.nextInt()",
"vec[i]",
"vec",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"for(i=0;i<n;i++){\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\tveca[i] += (vecnm[i][j]*vec[j]);\n\t\t\t}\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\tveca[i] += (vecnm[i][j]*vec[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\tveca[i] += (vecnm[i][j]*vec[j]);\n\t\t\t}\n\t\t}",
"for(j=0;j<m;j++){\n\t\t\t\tveca[i] += (vecnm[i][j]*vec[j]);\n\t\t\t}",
"j=0;",
"j=0",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tveca[i] += (vecnm[i][j]*vec[j]);\n\t\t\t}",
"{\n\t\t\t\tveca[i] += (vecnm[i][j]*vec[j]);\n\t\t\t}",
"veca[i] += (vecnm[i][j]*vec[j])",
"veca[i]",
"veca",
"i",
"(vecnm[i][j]*vec[j])",
"vecnm[i][j]",
"vecnm[i]",
"vecnm",
"i",
"j",
"vec[j]",
"vec",
"j",
"for(i=0;i<n;i++){\n\t\t\tSystem.out.println(veca[i]);\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(veca[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(veca[i]);\n\t\t}",
"System.out.println(veca[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"veca[i]",
"veca",
"i",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint vecnm[][] = new int[n][m];\n\t\tint i,j;\n\t\tint vec[] = new int[m];\n\t\tint veca[] = new int[n];\n\t\t\n\t\tfor(i=0;i<n;i++){\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\tvecnm[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<m;i++){\n\t\t\tvec[i] = sc.nextInt();\n\t\t}\n\t\tsc.close();\n\t\t\n\t\tfor(i=0;i<n;i++){\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\tveca[i] += (vecnm[i][j]*vec[j]);\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<n;i++){\n\t\t\tSystem.out.println(veca[i]);\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint vecnm[][] = new int[n][m];\n\t\tint i,j;\n\t\tint vec[] = new int[m];\n\t\tint veca[] = new int[n];\n\t\t\n\t\tfor(i=0;i<n;i++){\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\tvecnm[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<m;i++){\n\t\t\tvec[i] = sc.nextInt();\n\t\t}\n\t\tsc.close();\n\t\t\n\t\tfor(i=0;i<n;i++){\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\tveca[i] += (vecnm[i][j]*vec[j]);\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<n;i++){\n\t\t\tSystem.out.println(veca[i]);\n\t\t}\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
int vecnm[][] = new int[n][m];
int i,j;
int vec[] = new int[m];
int veca[] = new int[n];
for(i=0;i<n;i++){
for(j=0;j<m;j++){
vecnm[i][j] = sc.nextInt();
}
}
for(i=0;i<m;i++){
vec[i] = sc.nextInt();
}
sc.close();
for(i=0;i<n;i++){
for(j=0;j<m;j++){
veca[i] += (vecnm[i][j]*vec[j]);
}
}
for(i=0;i<n;i++){
System.out.println(veca[i]);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
0,
18,
18,
13,
13,
40,
13,
4,
18,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
0,
18,
13,
40,
13,
4,
18,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
40,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
29
],
[
29,
30
],
[
29,
31
],
[
11,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
39,
41
],
[
34,
42
],
[
42,
43
],
[
43,
44
],
[
34,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
56,
63
],
[
63,
64
],
[
64,
65
],
[
47,
66
],
[
11,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
76,
81
],
[
81,
82
],
[
82,
83
],
[
67,
84
],
[
11,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
85,
96
],
[
97,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
106,
107
],
[
106,
108
],
[
101,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
112,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
101,
122
],
[
97,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
123,
128
],
[
9,
129
],
[
129,
130
],
[
0,
131
],
[
131,
132
],
[
131,
133
]
] | [
"import java.util.*;\n\npublic class Main {\n public static final int MAX = 100;\n\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n int h = scn.nextInt(), w = scn.nextInt();\n int[] ary = new int[MAX];\n int[][] tbl = new int[MAX][MAX];\n for(int i = 0; i < h; i++) {\n for(int j = 0; j < w; tbl[i][j++] = scn.nextInt());\n }\n for(int i = 0; i < w; ary[i++] = scn.nextInt());\n for(int i = 0; i < h; i++) {\n int v = 0;\n for(int j = 0; j < w; v += tbl[i][j] * ary[j++]);\n System.out.println(v);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static final int MAX = 100;\n\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n int h = scn.nextInt(), w = scn.nextInt();\n int[] ary = new int[MAX];\n int[][] tbl = new int[MAX][MAX];\n for(int i = 0; i < h; i++) {\n for(int j = 0; j < w; tbl[i][j++] = scn.nextInt());\n }\n for(int i = 0; i < w; ary[i++] = scn.nextInt());\n for(int i = 0; i < h; i++) {\n int v = 0;\n for(int j = 0; j < w; v += tbl[i][j] * ary[j++]);\n System.out.println(v);\n }\n }\n}",
"Main",
"public static final int MAX = 100;",
"MAX",
"100",
"public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n int h = scn.nextInt(), w = scn.nextInt();\n int[] ary = new int[MAX];\n int[][] tbl = new int[MAX][MAX];\n for(int i = 0; i < h; i++) {\n for(int j = 0; j < w; tbl[i][j++] = scn.nextInt());\n }\n for(int i = 0; i < w; ary[i++] = scn.nextInt());\n for(int i = 0; i < h; i++) {\n int v = 0;\n for(int j = 0; j < w; v += tbl[i][j] * ary[j++]);\n System.out.println(v);\n }\n }",
"main",
"{\n Scanner scn = new Scanner(System.in);\n int h = scn.nextInt(), w = scn.nextInt();\n int[] ary = new int[MAX];\n int[][] tbl = new int[MAX][MAX];\n for(int i = 0; i < h; i++) {\n for(int j = 0; j < w; tbl[i][j++] = scn.nextInt());\n }\n for(int i = 0; i < w; ary[i++] = scn.nextInt());\n for(int i = 0; i < h; i++) {\n int v = 0;\n for(int j = 0; j < w; v += tbl[i][j] * ary[j++]);\n System.out.println(v);\n }\n }",
"Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"int h = scn.nextInt()",
"h",
"scn.nextInt()",
"scn.nextInt",
"scn",
"w = scn.nextInt();",
"w",
"scn.nextInt()",
"scn.nextInt",
"scn",
"int[] ary = new int[MAX];",
"ary",
"new int[MAX]",
"MAX",
"int[][] tbl = new int[MAX][MAX];",
"tbl",
"new int[MAX][MAX]",
"MAX",
"MAX",
"for(int i = 0; i < h; i++) {\n for(int j = 0; j < w; tbl[i][j++] = scn.nextInt());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < h",
"i",
"h",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < w; tbl[i][j++] = scn.nextInt());\n }",
"{\n for(int j = 0; j < w; tbl[i][j++] = scn.nextInt());\n }",
"for(int j = 0; j < w; tbl[i][j++] = scn.nextInt());",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < w",
"j",
"w",
"tbl[i][j++] = scn.nextInt()",
"tbl[i][j++] = scn.nextInt()",
"tbl[i][j++]",
"tbl[i]",
"tbl",
"i",
"j++",
"j",
"scn.nextInt()",
"scn.nextInt",
"scn",
";",
"for(int i = 0; i < w; ary[i++] = scn.nextInt());",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < w",
"i",
"w",
"ary[i++] = scn.nextInt()",
"ary[i++] = scn.nextInt()",
"ary[i++]",
"ary",
"i++",
"i",
"scn.nextInt()",
"scn.nextInt",
"scn",
";",
"for(int i = 0; i < h; i++) {\n int v = 0;\n for(int j = 0; j < w; v += tbl[i][j] * ary[j++]);\n System.out.println(v);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < h",
"i",
"h",
"i++",
"i++",
"i",
"{\n int v = 0;\n for(int j = 0; j < w; v += tbl[i][j] * ary[j++]);\n System.out.println(v);\n }",
"{\n int v = 0;\n for(int j = 0; j < w; v += tbl[i][j] * ary[j++]);\n System.out.println(v);\n }",
"int v = 0;",
"v",
"0",
"for(int j = 0; j < w; v += tbl[i][j] * ary[j++]);",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < w",
"j",
"w",
"v += tbl[i][j] * ary[j++]",
"v += tbl[i][j] * ary[j++]",
"v",
"tbl[i][j] * ary[j++]",
"tbl[i][j]",
"tbl[i]",
"tbl",
"i",
"j",
"ary[j++]",
"ary",
"j++",
"j",
";",
"System.out.println(v)",
"System.out.println",
"System.out",
"System",
"System.out",
"v",
"String[] args",
"args",
"public class Main {\n public static final int MAX = 100;\n\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n int h = scn.nextInt(), w = scn.nextInt();\n int[] ary = new int[MAX];\n int[][] tbl = new int[MAX][MAX];\n for(int i = 0; i < h; i++) {\n for(int j = 0; j < w; tbl[i][j++] = scn.nextInt());\n }\n for(int i = 0; i < w; ary[i++] = scn.nextInt());\n for(int i = 0; i < h; i++) {\n int v = 0;\n for(int j = 0; j < w; v += tbl[i][j] * ary[j++]);\n System.out.println(v);\n }\n }\n}",
"public class Main {\n public static final int MAX = 100;\n\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n int h = scn.nextInt(), w = scn.nextInt();\n int[] ary = new int[MAX];\n int[][] tbl = new int[MAX][MAX];\n for(int i = 0; i < h; i++) {\n for(int j = 0; j < w; tbl[i][j++] = scn.nextInt());\n }\n for(int i = 0; i < w; ary[i++] = scn.nextInt());\n for(int i = 0; i < h; i++) {\n int v = 0;\n for(int j = 0; j < w; v += tbl[i][j] * ary[j++]);\n System.out.println(v);\n }\n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static final int MAX = 100;
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
int h = scn.nextInt(), w = scn.nextInt();
int[] ary = new int[MAX];
int[][] tbl = new int[MAX][MAX];
for(int i = 0; i < h; i++) {
for(int j = 0; j < w; tbl[i][j++] = scn.nextInt());
}
for(int i = 0; i < w; ary[i++] = scn.nextInt());
for(int i = 0; i < h; i++) {
int v = 0;
for(int j = 0; j < w; v += tbl[i][j] * ary[j++]);
System.out.println(v);
}
}
} |
[
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,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
162,
5
],
[
162,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
8,
90
],
[
90,
91
],
[
90,
92
],
[
8,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
98,
100
],
[
93,
101
],
[
101,
102
],
[
102,
103
],
[
93,
104
],
[
105,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
106,
114
],
[
114,
115
],
[
115,
116
],
[
106,
117
],
[
118,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
121,
127
],
[
127,
128
],
[
127,
129
],
[
105,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
105,
135
],
[
135,
136
],
[
135,
137
],
[
8,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
143,
144
],
[
143,
145
],
[
138,
146
],
[
146,
147
],
[
147,
148
],
[
138,
149
],
[
150,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
156,
157
],
[
156,
158
],
[
6,
159
],
[
159,
160
],
[
0,
161
],
[
161,
162
],
[
161,
163
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint m = scan.nextInt();\n\t\tint n = scan.nextInt();\n\t\tint matrix[][] = new int[m][n];\n\t\tint last[] = new int[m];\n\t\tint small[] = new int[n];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tmatrix[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsmall[i] = scan.nextInt();\n\t\t}\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int p = 0; p < n; p++) {\n\t\t\t\tsum += matrix[i][p] * small[p];\n\t\t\t} last[i] = sum;\n\t\t\tsum = 0;\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tSystem.out.println(last[i]);\n\t\t}\n}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint m = scan.nextInt();\n\t\tint n = scan.nextInt();\n\t\tint matrix[][] = new int[m][n];\n\t\tint last[] = new int[m];\n\t\tint small[] = new int[n];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tmatrix[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsmall[i] = scan.nextInt();\n\t\t}\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int p = 0; p < n; p++) {\n\t\t\t\tsum += matrix[i][p] * small[p];\n\t\t\t} last[i] = sum;\n\t\t\tsum = 0;\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tSystem.out.println(last[i]);\n\t\t}\n}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint m = scan.nextInt();\n\t\tint n = scan.nextInt();\n\t\tint matrix[][] = new int[m][n];\n\t\tint last[] = new int[m];\n\t\tint small[] = new int[n];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tmatrix[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsmall[i] = scan.nextInt();\n\t\t}\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int p = 0; p < n; p++) {\n\t\t\t\tsum += matrix[i][p] * small[p];\n\t\t\t} last[i] = sum;\n\t\t\tsum = 0;\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tSystem.out.println(last[i]);\n\t\t}\n}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint m = scan.nextInt();\n\t\tint n = scan.nextInt();\n\t\tint matrix[][] = new int[m][n];\n\t\tint last[] = new int[m];\n\t\tint small[] = new int[n];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tmatrix[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsmall[i] = scan.nextInt();\n\t\t}\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int p = 0; p < n; p++) {\n\t\t\t\tsum += matrix[i][p] * small[p];\n\t\t\t} last[i] = sum;\n\t\t\tsum = 0;\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tSystem.out.println(last[i]);\n\t\t}\n}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int matrix[][] = new int[m][n];",
"matrix",
"new int[m][n]",
"m",
"n",
"int last[] = new int[m];",
"last",
"new int[m]",
"m",
"int small[] = new int[n];",
"small",
"new int[n]",
"n",
"for (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tmatrix[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tmatrix[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tmatrix[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"for (int j = 0; j < n; j++) {\n\t\t\t\tmatrix[i][j] = scan.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < n",
"j",
"n",
"j++",
"j++",
"j",
"{\n\t\t\t\tmatrix[i][j] = scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\tmatrix[i][j] = scan.nextInt();\n\t\t\t}",
"matrix[i][j] = scan.nextInt()",
"matrix[i][j]",
"matrix[i]",
"matrix",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int i = 0; i < n; i++) {\n\t\t\tsmall[i] = scan.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tsmall[i] = scan.nextInt();\n\t\t}",
"{\n\t\t\tsmall[i] = scan.nextInt();\n\t\t}",
"small[i] = scan.nextInt()",
"small[i]",
"small",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int sum = 0;",
"sum",
"0",
"for (int i = 0; i < m; i++) {\n\t\t\tfor (int p = 0; p < n; p++) {\n\t\t\t\tsum += matrix[i][p] * small[p];\n\t\t\t} last[i] = sum;\n\t\t\tsum = 0;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int p = 0; p < n; p++) {\n\t\t\t\tsum += matrix[i][p] * small[p];\n\t\t\t} last[i] = sum;\n\t\t\tsum = 0;\n\t\t}",
"{\n\t\t\tfor (int p = 0; p < n; p++) {\n\t\t\t\tsum += matrix[i][p] * small[p];\n\t\t\t} last[i] = sum;\n\t\t\tsum = 0;\n\t\t}",
"for (int p = 0; p < n; p++) {\n\t\t\t\tsum += matrix[i][p] * small[p];\n\t\t\t}",
"int p = 0;",
"int p = 0;",
"p",
"0",
"p < n",
"p",
"n",
"p++",
"p++",
"p",
"{\n\t\t\t\tsum += matrix[i][p] * small[p];\n\t\t\t}",
"{\n\t\t\t\tsum += matrix[i][p] * small[p];\n\t\t\t}",
"sum += matrix[i][p] * small[p]",
"sum",
"matrix[i][p] * small[p]",
"matrix[i][p]",
"matrix[i]",
"matrix",
"i",
"p",
"small[p]",
"small",
"p",
"last[i] = sum",
"last[i]",
"last",
"i",
"sum",
"sum = 0",
"sum",
"0",
"for (int i = 0; i < m; i++) {\n\t\t\tSystem.out.println(last[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(last[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(last[i]);\n\t\t}",
"System.out.println(last[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"last[i]",
"last",
"i",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint m = scan.nextInt();\n\t\tint n = scan.nextInt();\n\t\tint matrix[][] = new int[m][n];\n\t\tint last[] = new int[m];\n\t\tint small[] = new int[n];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tmatrix[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsmall[i] = scan.nextInt();\n\t\t}\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int p = 0; p < n; p++) {\n\t\t\t\tsum += matrix[i][p] * small[p];\n\t\t\t} last[i] = sum;\n\t\t\tsum = 0;\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tSystem.out.println(last[i]);\n\t\t}\n}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint m = scan.nextInt();\n\t\tint n = scan.nextInt();\n\t\tint matrix[][] = new int[m][n];\n\t\tint last[] = new int[m];\n\t\tint small[] = new int[n];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tmatrix[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsmall[i] = scan.nextInt();\n\t\t}\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int p = 0; p < n; p++) {\n\t\t\t\tsum += matrix[i][p] * small[p];\n\t\t\t} last[i] = sum;\n\t\t\tsum = 0;\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tSystem.out.println(last[i]);\n\t\t}\n}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int m = scan.nextInt();
int n = scan.nextInt();
int matrix[][] = new int[m][n];
int last[] = new int[m];
int small[] = new int[n];
for (int i = 0; i < m; i++) {
for (int j = 0; j < n; j++) {
matrix[i][j] = scan.nextInt();
}
}
for (int i = 0; i < n; i++) {
small[i] = scan.nextInt();
}
int sum = 0;
for (int i = 0; i < m; i++) {
for (int p = 0; p < n; p++) {
sum += matrix[i][p] * small[p];
} last[i] = sum;
sum = 0;
}
for (int i = 0; i < m; i++) {
System.out.println(last[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,
17,
41,
13,
20,
17,
17,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
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
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
59,
65
],
[
65,
66
],
[
66,
67
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
85,
86
],
[
8,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
87,
95
],
[
95,
96
],
[
96,
97
],
[
87,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
99,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
115,
121
],
[
121,
122
],
[
121,
123
],
[
8,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
129,
130
],
[
129,
131
],
[
124,
132
],
[
132,
133
],
[
133,
134
],
[
124,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
141,
142
],
[
141,
143
],
[
6,
144
],
[
144,
145
],
[
0,
146
],
[
146,
147
],
[
146,
148
]
] | [
"import java.util.Scanner;\npublic class Main\n{\n\tpublic static void main( String args[] )\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint n = input.nextInt();\n\t\tint m = input.nextInt();\n\t\tint[] s = new int[111];\n\t\tint[][] a = new int[111][111];\n\t\tint[] b = new int[111];\n\t\tfor(int i = 0; i < n; i++)\n\t\t\tfor(int k = 0; k < m; k++)\n\t\t\t\ta[i][k] = input.nextInt();\n\t\tfor(int i = 0; i < m; i++)\n\t\t\tb[i] = input.nextInt();\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tfor (int k = 0; k < m; k++)\n\t\t\ts[i] += a[i][k] * b[k];\n\t\tfor(int i = 0; i < n; i++)\n\t\t\tSystem.out.println(s[i]);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main\n{\n\tpublic static void main( String args[] )\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint n = input.nextInt();\n\t\tint m = input.nextInt();\n\t\tint[] s = new int[111];\n\t\tint[][] a = new int[111][111];\n\t\tint[] b = new int[111];\n\t\tfor(int i = 0; i < n; i++)\n\t\t\tfor(int k = 0; k < m; k++)\n\t\t\t\ta[i][k] = input.nextInt();\n\t\tfor(int i = 0; i < m; i++)\n\t\t\tb[i] = input.nextInt();\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tfor (int k = 0; k < m; k++)\n\t\t\ts[i] += a[i][k] * b[k];\n\t\tfor(int i = 0; i < n; i++)\n\t\t\tSystem.out.println(s[i]);\n\t}\n}",
"Main",
"public static void main( String args[] )\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint n = input.nextInt();\n\t\tint m = input.nextInt();\n\t\tint[] s = new int[111];\n\t\tint[][] a = new int[111][111];\n\t\tint[] b = new int[111];\n\t\tfor(int i = 0; i < n; i++)\n\t\t\tfor(int k = 0; k < m; k++)\n\t\t\t\ta[i][k] = input.nextInt();\n\t\tfor(int i = 0; i < m; i++)\n\t\t\tb[i] = input.nextInt();\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tfor (int k = 0; k < m; k++)\n\t\t\ts[i] += a[i][k] * b[k];\n\t\tfor(int i = 0; i < n; i++)\n\t\t\tSystem.out.println(s[i]);\n\t}",
"main",
"{\n\t\tScanner input = new Scanner(System.in);\n\t\tint n = input.nextInt();\n\t\tint m = input.nextInt();\n\t\tint[] s = new int[111];\n\t\tint[][] a = new int[111][111];\n\t\tint[] b = new int[111];\n\t\tfor(int i = 0; i < n; i++)\n\t\t\tfor(int k = 0; k < m; k++)\n\t\t\t\ta[i][k] = input.nextInt();\n\t\tfor(int i = 0; i < m; i++)\n\t\t\tb[i] = input.nextInt();\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tfor (int k = 0; k < m; k++)\n\t\t\ts[i] += a[i][k] * b[k];\n\t\tfor(int i = 0; i < n; i++)\n\t\t\tSystem.out.println(s[i]);\n\t}",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"int n = input.nextInt();",
"n",
"input.nextInt()",
"input.nextInt",
"input",
"int m = input.nextInt();",
"m",
"input.nextInt()",
"input.nextInt",
"input",
"int[] s = new int[111];",
"s",
"new int[111]",
"111",
"int[][] a = new int[111][111];",
"a",
"new int[111][111]",
"111",
"111",
"int[] b = new int[111];",
"b",
"new int[111]",
"111",
"for(int i = 0; i < n; i++)\n\t\t\tfor(int k = 0; k < m; k++)\n\t\t\t\ta[i][k] = input.nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"for(int k = 0; k < m; k++)\n\t\t\t\ta[i][k] = input.nextInt();",
"for(int k = 0; k < m; k++)\n\t\t\t\ta[i][k] = input.nextInt();",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"a[i][k] = input.nextInt();",
"a[i][k] = input.nextInt()",
"a[i][k]",
"a[i]",
"a",
"i",
"k",
"input.nextInt()",
"input.nextInt",
"input",
"for(int i = 0; i < m; i++)\n\t\t\tb[i] = input.nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"b[i] = input.nextInt();",
"b[i] = input.nextInt()",
"b[i]",
"b",
"i",
"input.nextInt()",
"input.nextInt",
"input",
"for (int i = 0; i < n; i++)\n\t\t\tfor (int k = 0; k < m; k++)\n\t\t\ts[i] += a[i][k] * b[k];",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"for (int k = 0; k < m; k++)\n\t\t\ts[i] += a[i][k] * b[k];",
"for (int k = 0; k < m; k++)\n\t\t\ts[i] += a[i][k] * b[k];",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"s[i] += a[i][k] * b[k];",
"s[i] += a[i][k] * b[k]",
"s[i]",
"s",
"i",
"a[i][k] * b[k]",
"a[i][k]",
"a[i]",
"a",
"i",
"k",
"b[k]",
"b",
"k",
"for(int i = 0; i < n; i++)\n\t\t\tSystem.out.println(s[i]);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"System.out.println(s[i]);",
"System.out.println(s[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"s[i]",
"s",
"i",
"String args[]",
"args",
"public class Main\n{\n\tpublic static void main( String args[] )\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint n = input.nextInt();\n\t\tint m = input.nextInt();\n\t\tint[] s = new int[111];\n\t\tint[][] a = new int[111][111];\n\t\tint[] b = new int[111];\n\t\tfor(int i = 0; i < n; i++)\n\t\t\tfor(int k = 0; k < m; k++)\n\t\t\t\ta[i][k] = input.nextInt();\n\t\tfor(int i = 0; i < m; i++)\n\t\t\tb[i] = input.nextInt();\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tfor (int k = 0; k < m; k++)\n\t\t\ts[i] += a[i][k] * b[k];\n\t\tfor(int i = 0; i < n; i++)\n\t\t\tSystem.out.println(s[i]);\n\t}\n}",
"public class Main\n{\n\tpublic static void main( String args[] )\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint n = input.nextInt();\n\t\tint m = input.nextInt();\n\t\tint[] s = new int[111];\n\t\tint[][] a = new int[111][111];\n\t\tint[] b = new int[111];\n\t\tfor(int i = 0; i < n; i++)\n\t\t\tfor(int k = 0; k < m; k++)\n\t\t\t\ta[i][k] = input.nextInt();\n\t\tfor(int i = 0; i < m; i++)\n\t\t\tb[i] = input.nextInt();\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tfor (int k = 0; k < m; k++)\n\t\t\ts[i] += a[i][k] * b[k];\n\t\tfor(int i = 0; i < n; i++)\n\t\t\tSystem.out.println(s[i]);\n\t}\n}",
"Main"
] | 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[] s = new int[111];
int[][] a = new int[111][111];
int[] b = new int[111];
for(int i = 0; i < n; i++)
for(int k = 0; k < m; k++)
a[i][k] = input.nextInt();
for(int i = 0; i < m; i++)
b[i] = input.nextInt();
for (int i = 0; i < n; i++)
for (int k = 0; k < m; k++)
s[i] += a[i][k] * b[k];
for(int i = 0; i < n; i++)
System.out.println(s[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,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
139,
5
],
[
139,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
90,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
106,
114
],
[
114,
115
],
[
115,
116
],
[
106,
117
],
[
118,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
121,
127
],
[
127,
128
],
[
127,
129
],
[
102,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
6,
136
],
[
136,
137
],
[
0,
138
],
[
138,
139
],
[
138,
140
]
] | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n\n int[][] A = new int[n][m];\n int[] B = new int[m];\n int[] ans = new int[n];\n \n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n A[i][j]=sc.nextInt();\n }\n }\n for(int i=0;i<m;i++){\n B[i]=sc.nextInt();\n }\n \n for(int i=0;i<n;i++){\n int a=0;\n for(int j=0;j<m;j++){\n a+=A[i][j]*B[j];\n }\n System.out.println(a);\n }\n }\n}\n",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n\n int[][] A = new int[n][m];\n int[] B = new int[m];\n int[] ans = new int[n];\n \n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n A[i][j]=sc.nextInt();\n }\n }\n for(int i=0;i<m;i++){\n B[i]=sc.nextInt();\n }\n \n for(int i=0;i<n;i++){\n int a=0;\n for(int j=0;j<m;j++){\n a+=A[i][j]*B[j];\n }\n System.out.println(a);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n\n int[][] A = new int[n][m];\n int[] B = new int[m];\n int[] ans = new int[n];\n \n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n A[i][j]=sc.nextInt();\n }\n }\n for(int i=0;i<m;i++){\n B[i]=sc.nextInt();\n }\n \n for(int i=0;i<n;i++){\n int a=0;\n for(int j=0;j<m;j++){\n a+=A[i][j]*B[j];\n }\n System.out.println(a);\n }\n }",
"main",
"{\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n\n int[][] A = new int[n][m];\n int[] B = new int[m];\n int[] ans = new int[n];\n \n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n A[i][j]=sc.nextInt();\n }\n }\n for(int i=0;i<m;i++){\n B[i]=sc.nextInt();\n }\n \n for(int i=0;i<n;i++){\n int a=0;\n for(int j=0;j<m;j++){\n a+=A[i][j]*B[j];\n }\n System.out.println(a);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] A = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int[] B = new int[m];",
"B",
"new int[m]",
"m",
"int[] ans = new int[n];",
"ans",
"new int[n]",
"n",
"for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n A[i][j]=sc.nextInt();\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j=0;j<m;j++){\n A[i][j]=sc.nextInt();\n }\n }",
"{\n for(int j=0;j<m;j++){\n A[i][j]=sc.nextInt();\n }\n }",
"for(int j=0;j<m;j++){\n A[i][j]=sc.nextInt();\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n A[i][j]=sc.nextInt();\n }",
"{\n A[i][j]=sc.nextInt();\n }",
"A[i][j]=sc.nextInt()",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i<m;i++){\n B[i]=sc.nextInt();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n B[i]=sc.nextInt();\n }",
"{\n B[i]=sc.nextInt();\n }",
"B[i]=sc.nextInt()",
"B[i]",
"B",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i<n;i++){\n int a=0;\n for(int j=0;j<m;j++){\n a+=A[i][j]*B[j];\n }\n System.out.println(a);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int a=0;\n for(int j=0;j<m;j++){\n a+=A[i][j]*B[j];\n }\n System.out.println(a);\n }",
"{\n int a=0;\n for(int j=0;j<m;j++){\n a+=A[i][j]*B[j];\n }\n System.out.println(a);\n }",
"int a=0;",
"a",
"0",
"for(int j=0;j<m;j++){\n a+=A[i][j]*B[j];\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n a+=A[i][j]*B[j];\n }",
"{\n a+=A[i][j]*B[j];\n }",
"a+=A[i][j]*B[j]",
"a",
"A[i][j]*B[j]",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"B[j]",
"B",
"j",
"System.out.println(a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n\n int[][] A = new int[n][m];\n int[] B = new int[m];\n int[] ans = new int[n];\n \n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n A[i][j]=sc.nextInt();\n }\n }\n for(int i=0;i<m;i++){\n B[i]=sc.nextInt();\n }\n \n for(int i=0;i<n;i++){\n int a=0;\n for(int j=0;j<m;j++){\n a+=A[i][j]*B[j];\n }\n System.out.println(a);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n\n int[][] A = new int[n][m];\n int[] B = new int[m];\n int[] ans = new int[n];\n \n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n A[i][j]=sc.nextInt();\n }\n }\n for(int i=0;i<m;i++){\n B[i]=sc.nextInt();\n }\n \n for(int i=0;i<n;i++){\n int a=0;\n for(int j=0;j<m;j++){\n a+=A[i][j]*B[j];\n }\n System.out.println(a);\n }\n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
int[][] A = new int[n][m];
int[] B = new int[m];
int[] ans = new int[n];
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
A[i][j]=sc.nextInt();
}
}
for(int i=0;i<m;i++){
B[i]=sc.nextInt();
}
for(int i=0;i<n;i++){
int a=0;
for(int j=0;j<m;j++){
a+=A[i][j]*B[j];
}
System.out.println(a);
}
}
}
|
[
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,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
156,
5
],
[
156,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
90,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
103,
111
],
[
111,
112
],
[
112,
113
],
[
103,
114
],
[
115,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
120,
126
],
[
126,
127
],
[
126,
128
],
[
8,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
129,
137
],
[
137,
138
],
[
138,
139
],
[
129,
140
],
[
141,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
142,
147
],
[
147,
148
],
[
147,
149
],
[
8,
150
],
[
150,
151
],
[
151,
152
],
[
6,
153
],
[
153,
154
],
[
0,
155
],
[
155,
156
],
[
155,
157
]
] | [
"import \tjava.util.Scanner;\npublic class Main{\n\tpublic static void main(String[] agrs){\n Scanner s=new Scanner(System.in);\n \tint n=s.nextInt();\n int m=s.nextInt();\n \n int[][] a=new int[n][m];\n \tint[] b=new int[m];\n int[] c =new int[n];\n \n for(int i=0;i<n;i++){\n \tfor(int j=0;j<m;j++){\n \ta[i][j]=s.nextInt();\n }\n }\n for(int i=0;i<m;i++){\n \tb[i]=s.nextInt();\n }\n for(int i=0;i<n;i++){\n \tfor(int o=0;o<m;o++){\n \t\tc[i]+=a[i][o]*b[o];\n }\n }\n for(int i=0;i<n;i++){\n \t\tSystem.out.println(c[i]);\n }\n \n s.close();\n }\n}",
"import \tjava.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] agrs){\n Scanner s=new Scanner(System.in);\n \tint n=s.nextInt();\n int m=s.nextInt();\n \n int[][] a=new int[n][m];\n \tint[] b=new int[m];\n int[] c =new int[n];\n \n for(int i=0;i<n;i++){\n \tfor(int j=0;j<m;j++){\n \ta[i][j]=s.nextInt();\n }\n }\n for(int i=0;i<m;i++){\n \tb[i]=s.nextInt();\n }\n for(int i=0;i<n;i++){\n \tfor(int o=0;o<m;o++){\n \t\tc[i]+=a[i][o]*b[o];\n }\n }\n for(int i=0;i<n;i++){\n \t\tSystem.out.println(c[i]);\n }\n \n s.close();\n }\n}",
"Main",
"public static void main(String[] agrs){\n Scanner s=new Scanner(System.in);\n \tint n=s.nextInt();\n int m=s.nextInt();\n \n int[][] a=new int[n][m];\n \tint[] b=new int[m];\n int[] c =new int[n];\n \n for(int i=0;i<n;i++){\n \tfor(int j=0;j<m;j++){\n \ta[i][j]=s.nextInt();\n }\n }\n for(int i=0;i<m;i++){\n \tb[i]=s.nextInt();\n }\n for(int i=0;i<n;i++){\n \tfor(int o=0;o<m;o++){\n \t\tc[i]+=a[i][o]*b[o];\n }\n }\n for(int i=0;i<n;i++){\n \t\tSystem.out.println(c[i]);\n }\n \n s.close();\n }",
"main",
"{\n Scanner s=new Scanner(System.in);\n \tint n=s.nextInt();\n int m=s.nextInt();\n \n int[][] a=new int[n][m];\n \tint[] b=new int[m];\n int[] c =new int[n];\n \n for(int i=0;i<n;i++){\n \tfor(int j=0;j<m;j++){\n \ta[i][j]=s.nextInt();\n }\n }\n for(int i=0;i<m;i++){\n \tb[i]=s.nextInt();\n }\n for(int i=0;i<n;i++){\n \tfor(int o=0;o<m;o++){\n \t\tc[i]+=a[i][o]*b[o];\n }\n }\n for(int i=0;i<n;i++){\n \t\tSystem.out.println(c[i]);\n }\n \n s.close();\n }",
"Scanner s=new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int n=s.nextInt();",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"int m=s.nextInt();",
"m",
"s.nextInt()",
"s.nextInt",
"s",
"int[][] a=new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[] b=new int[m];",
"b",
"new int[m]",
"m",
"int[] c =new int[n];",
"c",
"new int[n]",
"n",
"for(int i=0;i<n;i++){\n \tfor(int j=0;j<m;j++){\n \ta[i][j]=s.nextInt();\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tfor(int j=0;j<m;j++){\n \ta[i][j]=s.nextInt();\n }\n }",
"{\n \tfor(int j=0;j<m;j++){\n \ta[i][j]=s.nextInt();\n }\n }",
"for(int j=0;j<m;j++){\n \ta[i][j]=s.nextInt();\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n \ta[i][j]=s.nextInt();\n }",
"{\n \ta[i][j]=s.nextInt();\n }",
"a[i][j]=s.nextInt()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"s.nextInt()",
"s.nextInt",
"s",
"for(int i=0;i<m;i++){\n \tb[i]=s.nextInt();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n \tb[i]=s.nextInt();\n }",
"{\n \tb[i]=s.nextInt();\n }",
"b[i]=s.nextInt()",
"b[i]",
"b",
"i",
"s.nextInt()",
"s.nextInt",
"s",
"for(int i=0;i<n;i++){\n \tfor(int o=0;o<m;o++){\n \t\tc[i]+=a[i][o]*b[o];\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tfor(int o=0;o<m;o++){\n \t\tc[i]+=a[i][o]*b[o];\n }\n }",
"{\n \tfor(int o=0;o<m;o++){\n \t\tc[i]+=a[i][o]*b[o];\n }\n }",
"for(int o=0;o<m;o++){\n \t\tc[i]+=a[i][o]*b[o];\n }",
"int o=0;",
"int o=0;",
"o",
"0",
"o<m",
"o",
"m",
"o++",
"o++",
"o",
"{\n \t\tc[i]+=a[i][o]*b[o];\n }",
"{\n \t\tc[i]+=a[i][o]*b[o];\n }",
"c[i]+=a[i][o]*b[o]",
"c[i]",
"c",
"i",
"a[i][o]*b[o]",
"a[i][o]",
"a[i]",
"a",
"i",
"o",
"b[o]",
"b",
"o",
"for(int i=0;i<n;i++){\n \t\tSystem.out.println(c[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \t\tSystem.out.println(c[i]);\n }",
"{\n \t\tSystem.out.println(c[i]);\n }",
"System.out.println(c[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[i]",
"c",
"i",
"s.close()",
"s.close",
"s",
"String[] agrs",
"agrs",
"public class Main{\n\tpublic static void main(String[] agrs){\n Scanner s=new Scanner(System.in);\n \tint n=s.nextInt();\n int m=s.nextInt();\n \n int[][] a=new int[n][m];\n \tint[] b=new int[m];\n int[] c =new int[n];\n \n for(int i=0;i<n;i++){\n \tfor(int j=0;j<m;j++){\n \ta[i][j]=s.nextInt();\n }\n }\n for(int i=0;i<m;i++){\n \tb[i]=s.nextInt();\n }\n for(int i=0;i<n;i++){\n \tfor(int o=0;o<m;o++){\n \t\tc[i]+=a[i][o]*b[o];\n }\n }\n for(int i=0;i<n;i++){\n \t\tSystem.out.println(c[i]);\n }\n \n s.close();\n }\n}",
"public class Main{\n\tpublic static void main(String[] agrs){\n Scanner s=new Scanner(System.in);\n \tint n=s.nextInt();\n int m=s.nextInt();\n \n int[][] a=new int[n][m];\n \tint[] b=new int[m];\n int[] c =new int[n];\n \n for(int i=0;i<n;i++){\n \tfor(int j=0;j<m;j++){\n \ta[i][j]=s.nextInt();\n }\n }\n for(int i=0;i<m;i++){\n \tb[i]=s.nextInt();\n }\n for(int i=0;i<n;i++){\n \tfor(int o=0;o<m;o++){\n \t\tc[i]+=a[i][o]*b[o];\n }\n }\n for(int i=0;i<n;i++){\n \t\tSystem.out.println(c[i]);\n }\n \n s.close();\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] agrs){
Scanner s=new Scanner(System.in);
int n=s.nextInt();
int m=s.nextInt();
int[][] a=new int[n][m];
int[] b=new int[m];
int[] c =new int[n];
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
a[i][j]=s.nextInt();
}
}
for(int i=0;i<m;i++){
b[i]=s.nextInt();
}
for(int i=0;i<n;i++){
for(int o=0;o<m;o++){
c[i]+=a[i][o]*b[o];
}
}
for(int i=0;i<n;i++){
System.out.println(c[i]);
}
s.close();
}
}
|
[
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,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
18,
13,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
161,
5
],
[
161,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
60,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
66,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
73,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
85,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
8,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
96,
104
],
[
104,
105
],
[
105,
106
],
[
96,
107
],
[
108,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
114,
115
],
[
114,
116
],
[
109,
117
],
[
117,
118
],
[
118,
119
],
[
109,
120
],
[
121,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
126,
132
],
[
132,
133
],
[
132,
134
],
[
8,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
142,
144
],
[
135,
145
],
[
145,
146
],
[
146,
147
],
[
135,
148
],
[
149,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
150,
155
],
[
155,
156
],
[
155,
157
],
[
6,
158
],
[
158,
159
],
[
0,
160
],
[
160,
161
],
[
160,
162
]
] | [
"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 = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[][] mat_A = new int[n][m];\n\t\tint[] mat_B = new int[m];\n\t\tint[] mat_C = new int[n];\n\n\t\tfor(int i = 0; i<n; i++){\n\t\t\tfor(int j = 0;j<m;j++){\n\t\t\t\tint mat_element = sc.nextInt();\n\t\t\t\tmat_A[i][j] = mat_element;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<m;i++){\n\t\t\tint mat_element2 = sc.nextInt();\n\t\t\tmat_B[i] = mat_element2;\n\t\t}\n\n\t\tfor(int i = 0;i<n; i++){\n\t\t\tfor(int j = 0; j<m; j++){\n\t\t\t\tmat_C[i] += mat_A[i][j] * mat_B[j];\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i<mat_C.length; i++){\n\t\t\tSystem.out.println(mat_C[i]);\n\t\t}\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[][] mat_A = new int[n][m];\n\t\tint[] mat_B = new int[m];\n\t\tint[] mat_C = new int[n];\n\n\t\tfor(int i = 0; i<n; i++){\n\t\t\tfor(int j = 0;j<m;j++){\n\t\t\t\tint mat_element = sc.nextInt();\n\t\t\t\tmat_A[i][j] = mat_element;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<m;i++){\n\t\t\tint mat_element2 = sc.nextInt();\n\t\t\tmat_B[i] = mat_element2;\n\t\t}\n\n\t\tfor(int i = 0;i<n; i++){\n\t\t\tfor(int j = 0; j<m; j++){\n\t\t\t\tmat_C[i] += mat_A[i][j] * mat_B[j];\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i<mat_C.length; i++){\n\t\t\tSystem.out.println(mat_C[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[][] mat_A = new int[n][m];\n\t\tint[] mat_B = new int[m];\n\t\tint[] mat_C = new int[n];\n\n\t\tfor(int i = 0; i<n; i++){\n\t\t\tfor(int j = 0;j<m;j++){\n\t\t\t\tint mat_element = sc.nextInt();\n\t\t\t\tmat_A[i][j] = mat_element;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<m;i++){\n\t\t\tint mat_element2 = sc.nextInt();\n\t\t\tmat_B[i] = mat_element2;\n\t\t}\n\n\t\tfor(int i = 0;i<n; i++){\n\t\t\tfor(int j = 0; j<m; j++){\n\t\t\t\tmat_C[i] += mat_A[i][j] * mat_B[j];\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i<mat_C.length; i++){\n\t\t\tSystem.out.println(mat_C[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[][] mat_A = new int[n][m];\n\t\tint[] mat_B = new int[m];\n\t\tint[] mat_C = new int[n];\n\n\t\tfor(int i = 0; i<n; i++){\n\t\t\tfor(int j = 0;j<m;j++){\n\t\t\t\tint mat_element = sc.nextInt();\n\t\t\t\tmat_A[i][j] = mat_element;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<m;i++){\n\t\t\tint mat_element2 = sc.nextInt();\n\t\t\tmat_B[i] = mat_element2;\n\t\t}\n\n\t\tfor(int i = 0;i<n; i++){\n\t\t\tfor(int j = 0; j<m; j++){\n\t\t\t\tmat_C[i] += mat_A[i][j] * mat_B[j];\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i<mat_C.length; i++){\n\t\t\tSystem.out.println(mat_C[i]);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] mat_A = new int[n][m];",
"mat_A",
"new int[n][m]",
"n",
"m",
"int[] mat_B = new int[m];",
"mat_B",
"new int[m]",
"m",
"int[] mat_C = new int[n];",
"mat_C",
"new int[n]",
"n",
"for(int i = 0; i<n; i++){\n\t\t\tfor(int j = 0;j<m;j++){\n\t\t\t\tint mat_element = sc.nextInt();\n\t\t\t\tmat_A[i][j] = mat_element;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0;j<m;j++){\n\t\t\t\tint mat_element = sc.nextInt();\n\t\t\t\tmat_A[i][j] = mat_element;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0;j<m;j++){\n\t\t\t\tint mat_element = sc.nextInt();\n\t\t\t\tmat_A[i][j] = mat_element;\n\t\t\t}\n\t\t}",
"for(int j = 0;j<m;j++){\n\t\t\t\tint mat_element = sc.nextInt();\n\t\t\t\tmat_A[i][j] = mat_element;\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tint mat_element = sc.nextInt();\n\t\t\t\tmat_A[i][j] = mat_element;\n\t\t\t}",
"{\n\t\t\t\tint mat_element = sc.nextInt();\n\t\t\t\tmat_A[i][j] = mat_element;\n\t\t\t}",
"int mat_element = sc.nextInt();",
"mat_element",
"sc.nextInt()",
"sc.nextInt",
"sc",
"mat_A[i][j] = mat_element",
"mat_A[i][j]",
"mat_A[i]",
"mat_A",
"i",
"j",
"mat_element",
"for(int i=0;i<m;i++){\n\t\t\tint mat_element2 = sc.nextInt();\n\t\t\tmat_B[i] = mat_element2;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tint mat_element2 = sc.nextInt();\n\t\t\tmat_B[i] = mat_element2;\n\t\t}",
"{\n\t\t\tint mat_element2 = sc.nextInt();\n\t\t\tmat_B[i] = mat_element2;\n\t\t}",
"int mat_element2 = sc.nextInt();",
"mat_element2",
"sc.nextInt()",
"sc.nextInt",
"sc",
"mat_B[i] = mat_element2",
"mat_B[i]",
"mat_B",
"i",
"mat_element2",
"for(int i = 0;i<n; i++){\n\t\t\tfor(int j = 0; j<m; j++){\n\t\t\t\tmat_C[i] += mat_A[i][j] * mat_B[j];\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j<m; j++){\n\t\t\t\tmat_C[i] += mat_A[i][j] * mat_B[j];\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j<m; j++){\n\t\t\t\tmat_C[i] += mat_A[i][j] * mat_B[j];\n\t\t\t}\n\t\t}",
"for(int j = 0; j<m; j++){\n\t\t\t\tmat_C[i] += mat_A[i][j] * mat_B[j];\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tmat_C[i] += mat_A[i][j] * mat_B[j];\n\t\t\t}",
"{\n\t\t\t\tmat_C[i] += mat_A[i][j] * mat_B[j];\n\t\t\t}",
"mat_C[i] += mat_A[i][j] * mat_B[j]",
"mat_C[i]",
"mat_C",
"i",
"mat_A[i][j] * mat_B[j]",
"mat_A[i][j]",
"mat_A[i]",
"mat_A",
"i",
"j",
"mat_B[j]",
"mat_B",
"j",
"for(int i = 0; i<mat_C.length; i++){\n\t\t\tSystem.out.println(mat_C[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<mat_C.length",
"i",
"mat_C.length",
"mat_C",
"mat_C.length",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(mat_C[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(mat_C[i]);\n\t\t}",
"System.out.println(mat_C[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"mat_C[i]",
"mat_C",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[][] mat_A = new int[n][m];\n\t\tint[] mat_B = new int[m];\n\t\tint[] mat_C = new int[n];\n\n\t\tfor(int i = 0; i<n; i++){\n\t\t\tfor(int j = 0;j<m;j++){\n\t\t\t\tint mat_element = sc.nextInt();\n\t\t\t\tmat_A[i][j] = mat_element;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<m;i++){\n\t\t\tint mat_element2 = sc.nextInt();\n\t\t\tmat_B[i] = mat_element2;\n\t\t}\n\n\t\tfor(int i = 0;i<n; i++){\n\t\t\tfor(int j = 0; j<m; j++){\n\t\t\t\tmat_C[i] += mat_A[i][j] * mat_B[j];\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i<mat_C.length; i++){\n\t\t\tSystem.out.println(mat_C[i]);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[][] mat_A = new int[n][m];\n\t\tint[] mat_B = new int[m];\n\t\tint[] mat_C = new int[n];\n\n\t\tfor(int i = 0; i<n; i++){\n\t\t\tfor(int j = 0;j<m;j++){\n\t\t\t\tint mat_element = sc.nextInt();\n\t\t\t\tmat_A[i][j] = mat_element;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<m;i++){\n\t\t\tint mat_element2 = sc.nextInt();\n\t\t\tmat_B[i] = mat_element2;\n\t\t}\n\n\t\tfor(int i = 0;i<n; i++){\n\t\t\tfor(int j = 0; j<m; j++){\n\t\t\t\tmat_C[i] += mat_A[i][j] * mat_B[j];\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i<mat_C.length; i++){\n\t\t\tSystem.out.println(mat_C[i]);\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
int[][] mat_A = new int[n][m];
int[] mat_B = new int[m];
int[] mat_C = new int[n];
for(int i = 0; i<n; i++){
for(int j = 0;j<m;j++){
int mat_element = sc.nextInt();
mat_A[i][j] = mat_element;
}
}
for(int i=0;i<m;i++){
int mat_element2 = sc.nextInt();
mat_B[i] = mat_element2;
}
for(int i = 0;i<n; i++){
for(int j = 0; j<m; j++){
mat_C[i] += mat_A[i][j] * mat_B[j];
}
}
for(int i = 0; i<mat_C.length; i++){
System.out.println(mat_C[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,
13,
41,
13,
20,
13,
41,
13,
20,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
153,
5
],
[
153,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
35
],
[
35,
36
],
[
8,
37
],
[
37,
38
],
[
8,
39
],
[
39,
40
],
[
8,
41
],
[
41,
42
],
[
8,
43
],
[
43,
44
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
58,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
8,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
80,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
98,
99
],
[
8,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
100,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
113,
121
],
[
121,
122
],
[
122,
123
],
[
113,
124
],
[
125,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
130,
136
],
[
136,
137
],
[
136,
138
],
[
112,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
144,
145
],
[
144,
146
],
[
8,
147
],
[
147,
148
],
[
148,
149
],
[
6,
150
],
[
150,
151
],
[
0,
152
],
[
152,
153
],
[
152,
154
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\tint a[][] = new int [n][m];\n\t\tint b[] = new int[m];\n\t\tint ans[] = new int[n];\n\t\tint k,c,l,i,j;\n\n\t\tfor(k=0;k<n;k++) {\n\t\t\tfor(c=0;c<m;c++) {\n\t\t\t\ta[k][c] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(l=0;l<m;l++) {\n\t\t\tb[l] = scan.nextInt();\n\t\t}\n\n\t\tfor(i=0;i<n;i++) {\n\t\t\tfor(j=0;j<m;j++) {\n\t\t\t\tans[i] += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans[i]);\n\t\t}\n\t\tscan.close();\n\n\t}\n\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\tint a[][] = new int [n][m];\n\t\tint b[] = new int[m];\n\t\tint ans[] = new int[n];\n\t\tint k,c,l,i,j;\n\n\t\tfor(k=0;k<n;k++) {\n\t\t\tfor(c=0;c<m;c++) {\n\t\t\t\ta[k][c] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(l=0;l<m;l++) {\n\t\t\tb[l] = scan.nextInt();\n\t\t}\n\n\t\tfor(i=0;i<n;i++) {\n\t\t\tfor(j=0;j<m;j++) {\n\t\t\t\tans[i] += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans[i]);\n\t\t}\n\t\tscan.close();\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\tint a[][] = new int [n][m];\n\t\tint b[] = new int[m];\n\t\tint ans[] = new int[n];\n\t\tint k,c,l,i,j;\n\n\t\tfor(k=0;k<n;k++) {\n\t\t\tfor(c=0;c<m;c++) {\n\t\t\t\ta[k][c] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(l=0;l<m;l++) {\n\t\t\tb[l] = scan.nextInt();\n\t\t}\n\n\t\tfor(i=0;i<n;i++) {\n\t\t\tfor(j=0;j<m;j++) {\n\t\t\t\tans[i] += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans[i]);\n\t\t}\n\t\tscan.close();\n\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\tint a[][] = new int [n][m];\n\t\tint b[] = new int[m];\n\t\tint ans[] = new int[n];\n\t\tint k,c,l,i,j;\n\n\t\tfor(k=0;k<n;k++) {\n\t\t\tfor(c=0;c<m;c++) {\n\t\t\t\ta[k][c] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(l=0;l<m;l++) {\n\t\t\tb[l] = scan.nextInt();\n\t\t}\n\n\t\tfor(i=0;i<n;i++) {\n\t\t\tfor(j=0;j<m;j++) {\n\t\t\t\tans[i] += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans[i]);\n\t\t}\n\t\tscan.close();\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int a[][] = new int [n][m];",
"a",
"new int [n][m]",
"n",
"m",
"int b[] = new int[m];",
"b",
"new int[m]",
"m",
"int ans[] = new int[n];",
"ans",
"new int[n]",
"n",
"int k",
"k",
"c",
"c",
"l",
"l",
"i",
"i",
"j;",
"j",
"for(k=0;k<n;k++) {\n\t\t\tfor(c=0;c<m;c++) {\n\t\t\t\ta[k][c] = scan.nextInt();\n\t\t\t}\n\t\t}",
"k=0;",
"k=0",
"k",
"0",
"k<n",
"k",
"n",
"k++",
"k++",
"k",
"{\n\t\t\tfor(c=0;c<m;c++) {\n\t\t\t\ta[k][c] = scan.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(c=0;c<m;c++) {\n\t\t\t\ta[k][c] = scan.nextInt();\n\t\t\t}\n\t\t}",
"for(c=0;c<m;c++) {\n\t\t\t\ta[k][c] = scan.nextInt();\n\t\t\t}",
"c=0;",
"c=0",
"c",
"0",
"c<m",
"c",
"m",
"c++",
"c++",
"c",
"{\n\t\t\t\ta[k][c] = scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\ta[k][c] = scan.nextInt();\n\t\t\t}",
"a[k][c] = scan.nextInt()",
"a[k][c]",
"a[k]",
"a",
"k",
"c",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(l=0;l<m;l++) {\n\t\t\tb[l] = scan.nextInt();\n\t\t}",
"l=0;",
"l=0",
"l",
"0",
"l<m",
"l",
"m",
"l++",
"l++",
"l",
"{\n\t\t\tb[l] = scan.nextInt();\n\t\t}",
"{\n\t\t\tb[l] = scan.nextInt();\n\t\t}",
"b[l] = scan.nextInt()",
"b[l]",
"b",
"l",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(i=0;i<n;i++) {\n\t\t\tfor(j=0;j<m;j++) {\n\t\t\t\tans[i] += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans[i]);\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(j=0;j<m;j++) {\n\t\t\t\tans[i] += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans[i]);\n\t\t}",
"{\n\t\t\tfor(j=0;j<m;j++) {\n\t\t\t\tans[i] += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans[i]);\n\t\t}",
"for(j=0;j<m;j++) {\n\t\t\t\tans[i] += a[i][j] * b[j];\n\t\t\t}",
"j=0;",
"j=0",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tans[i] += a[i][j] * b[j];\n\t\t\t}",
"{\n\t\t\t\tans[i] += a[i][j] * b[j];\n\t\t\t}",
"ans[i] += a[i][j] * b[j]",
"ans[i]",
"ans",
"i",
"a[i][j] * b[j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"System.out.println(ans[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"ans[i]",
"ans",
"i",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\tint a[][] = new int [n][m];\n\t\tint b[] = new int[m];\n\t\tint ans[] = new int[n];\n\t\tint k,c,l,i,j;\n\n\t\tfor(k=0;k<n;k++) {\n\t\t\tfor(c=0;c<m;c++) {\n\t\t\t\ta[k][c] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(l=0;l<m;l++) {\n\t\t\tb[l] = scan.nextInt();\n\t\t}\n\n\t\tfor(i=0;i<n;i++) {\n\t\t\tfor(j=0;j<m;j++) {\n\t\t\t\tans[i] += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans[i]);\n\t\t}\n\t\tscan.close();\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\tint a[][] = new int [n][m];\n\t\tint b[] = new int[m];\n\t\tint ans[] = new int[n];\n\t\tint k,c,l,i,j;\n\n\t\tfor(k=0;k<n;k++) {\n\t\t\tfor(c=0;c<m;c++) {\n\t\t\t\ta[k][c] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(l=0;l<m;l++) {\n\t\t\tb[l] = scan.nextInt();\n\t\t}\n\n\t\tfor(i=0;i<n;i++) {\n\t\t\tfor(j=0;j<m;j++) {\n\t\t\t\tans[i] += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans[i]);\n\t\t}\n\t\tscan.close();\n\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int m = scan.nextInt();
int a[][] = new int [n][m];
int b[] = new int[m];
int ans[] = new int[n];
int k,c,l,i,j;
for(k=0;k<n;k++) {
for(c=0;c<m;c++) {
a[k][c] = scan.nextInt();
}
}
for(l=0;l<m;l++) {
b[l] = scan.nextInt();
}
for(i=0;i<n;i++) {
for(j=0;j<m;j++) {
ans[i] += a[i][j] * b[j];
}
System.out.println(ans[i]);
}
scan.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
17,
17,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
18,
13,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
152,
5
],
[
152,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
54,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
66,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
72,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
79,
87
],
[
87,
88
],
[
88,
89
],
[
79,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
91,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
8,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
110,
111
],
[
111,
112
],
[
102,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
120,
121
],
[
120,
122
],
[
115,
123
],
[
123,
124
],
[
124,
125
],
[
115,
126
],
[
127,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
132,
138
],
[
138,
139
],
[
138,
140
],
[
114,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
141,
146
],
[
146,
147
],
[
146,
148
],
[
6,
149
],
[
149,
150
],
[
0,
151
],
[
151,
152
],
[
151,
153
]
] | [
"import java.util.Scanner;\npublic class Main{\n public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint[][][] houses = new int[4][3][10];\t\n\tint n = scan.nextInt();\n\tint m = scan.nextInt();\n\tint[][] a = new int[n][m];\n\tint[] b = new int[m];\n\tint[] c = new int[n];\n\tfor (int i = 0; i < n; i++) {\n\t for (int j = 0; j < m; j++) {\n\t\tint element = scan.nextInt();\n\t\ta[i][j] = element;\n\t }\n\t}\n\tfor (int i = 0; i < m; i++) {\n\t int element = scan.nextInt();\n\t b[i] = element;\n\t}\n\tfor (int i = 0; i < n; i++) {\n\t for (int j = 0; j < m; j++) {\n\t\tc[i] += a[i][j] * b[j];\n\t }\n\t System.out.println(c[i]);\n\t}\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint[][][] houses = new int[4][3][10];\t\n\tint n = scan.nextInt();\n\tint m = scan.nextInt();\n\tint[][] a = new int[n][m];\n\tint[] b = new int[m];\n\tint[] c = new int[n];\n\tfor (int i = 0; i < n; i++) {\n\t for (int j = 0; j < m; j++) {\n\t\tint element = scan.nextInt();\n\t\ta[i][j] = element;\n\t }\n\t}\n\tfor (int i = 0; i < m; i++) {\n\t int element = scan.nextInt();\n\t b[i] = element;\n\t}\n\tfor (int i = 0; i < n; i++) {\n\t for (int j = 0; j < m; j++) {\n\t\tc[i] += a[i][j] * b[j];\n\t }\n\t System.out.println(c[i]);\n\t}\n }\n}",
"Main",
"public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint[][][] houses = new int[4][3][10];\t\n\tint n = scan.nextInt();\n\tint m = scan.nextInt();\n\tint[][] a = new int[n][m];\n\tint[] b = new int[m];\n\tint[] c = new int[n];\n\tfor (int i = 0; i < n; i++) {\n\t for (int j = 0; j < m; j++) {\n\t\tint element = scan.nextInt();\n\t\ta[i][j] = element;\n\t }\n\t}\n\tfor (int i = 0; i < m; i++) {\n\t int element = scan.nextInt();\n\t b[i] = element;\n\t}\n\tfor (int i = 0; i < n; i++) {\n\t for (int j = 0; j < m; j++) {\n\t\tc[i] += a[i][j] * b[j];\n\t }\n\t System.out.println(c[i]);\n\t}\n }",
"main",
"{\n\tScanner scan = new Scanner(System.in);\n\tint[][][] houses = new int[4][3][10];\t\n\tint n = scan.nextInt();\n\tint m = scan.nextInt();\n\tint[][] a = new int[n][m];\n\tint[] b = new int[m];\n\tint[] c = new int[n];\n\tfor (int i = 0; i < n; i++) {\n\t for (int j = 0; j < m; j++) {\n\t\tint element = scan.nextInt();\n\t\ta[i][j] = element;\n\t }\n\t}\n\tfor (int i = 0; i < m; i++) {\n\t int element = scan.nextInt();\n\t b[i] = element;\n\t}\n\tfor (int i = 0; i < n; i++) {\n\t for (int j = 0; j < m; j++) {\n\t\tc[i] += a[i][j] * b[j];\n\t }\n\t System.out.println(c[i]);\n\t}\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int[][][] houses = new int[4][3][10];",
"houses",
"new int[4][3][10]",
"4",
"3",
"10",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[][] a = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[] b = new int[m];",
"b",
"new int[m]",
"m",
"int[] c = new int[n];",
"c",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n\t for (int j = 0; j < m; j++) {\n\t\tint element = scan.nextInt();\n\t\ta[i][j] = element;\n\t }\n\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t for (int j = 0; j < m; j++) {\n\t\tint element = scan.nextInt();\n\t\ta[i][j] = element;\n\t }\n\t}",
"{\n\t for (int j = 0; j < m; j++) {\n\t\tint element = scan.nextInt();\n\t\ta[i][j] = element;\n\t }\n\t}",
"for (int j = 0; j < m; j++) {\n\t\tint element = scan.nextInt();\n\t\ta[i][j] = element;\n\t }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\tint element = scan.nextInt();\n\t\ta[i][j] = element;\n\t }",
"{\n\t\tint element = scan.nextInt();\n\t\ta[i][j] = element;\n\t }",
"int element = scan.nextInt();",
"element",
"scan.nextInt()",
"scan.nextInt",
"scan",
"a[i][j] = element",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"element",
"for (int i = 0; i < m; i++) {\n\t int element = scan.nextInt();\n\t b[i] = element;\n\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t int element = scan.nextInt();\n\t b[i] = element;\n\t}",
"{\n\t int element = scan.nextInt();\n\t b[i] = element;\n\t}",
"int element = scan.nextInt();",
"element",
"scan.nextInt()",
"scan.nextInt",
"scan",
"b[i] = element",
"b[i]",
"b",
"i",
"element",
"for (int i = 0; i < n; i++) {\n\t for (int j = 0; j < m; j++) {\n\t\tc[i] += a[i][j] * b[j];\n\t }\n\t System.out.println(c[i]);\n\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t for (int j = 0; j < m; j++) {\n\t\tc[i] += a[i][j] * b[j];\n\t }\n\t System.out.println(c[i]);\n\t}",
"{\n\t for (int j = 0; j < m; j++) {\n\t\tc[i] += a[i][j] * b[j];\n\t }\n\t System.out.println(c[i]);\n\t}",
"for (int j = 0; j < m; j++) {\n\t\tc[i] += a[i][j] * b[j];\n\t }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\tc[i] += a[i][j] * b[j];\n\t }",
"{\n\t\tc[i] += a[i][j] * b[j];\n\t }",
"c[i] += a[i][j] * b[j]",
"c[i]",
"c",
"i",
"a[i][j] * b[j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"System.out.println(c[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[i]",
"c",
"i",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint[][][] houses = new int[4][3][10];\t\n\tint n = scan.nextInt();\n\tint m = scan.nextInt();\n\tint[][] a = new int[n][m];\n\tint[] b = new int[m];\n\tint[] c = new int[n];\n\tfor (int i = 0; i < n; i++) {\n\t for (int j = 0; j < m; j++) {\n\t\tint element = scan.nextInt();\n\t\ta[i][j] = element;\n\t }\n\t}\n\tfor (int i = 0; i < m; i++) {\n\t int element = scan.nextInt();\n\t b[i] = element;\n\t}\n\tfor (int i = 0; i < n; i++) {\n\t for (int j = 0; j < m; j++) {\n\t\tc[i] += a[i][j] * b[j];\n\t }\n\t System.out.println(c[i]);\n\t}\n }\n}",
"public class Main{\n public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint[][][] houses = new int[4][3][10];\t\n\tint n = scan.nextInt();\n\tint m = scan.nextInt();\n\tint[][] a = new int[n][m];\n\tint[] b = new int[m];\n\tint[] c = new int[n];\n\tfor (int i = 0; i < n; i++) {\n\t for (int j = 0; j < m; j++) {\n\t\tint element = scan.nextInt();\n\t\ta[i][j] = element;\n\t }\n\t}\n\tfor (int i = 0; i < m; i++) {\n\t int element = scan.nextInt();\n\t b[i] = element;\n\t}\n\tfor (int i = 0; i < n; i++) {\n\t for (int j = 0; j < m; j++) {\n\t\tc[i] += a[i][j] * b[j];\n\t }\n\t System.out.println(c[i]);\n\t}\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int[][][] houses = new int[4][3][10];
int n = scan.nextInt();
int m = scan.nextInt();
int[][] a = new int[n][m];
int[] b = new int[m];
int[] c = new int[n];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
int element = scan.nextInt();
a[i][j] = element;
}
}
for (int i = 0; i < m; i++) {
int element = scan.nextInt();
b[i] = element;
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
c[i] += a[i][j] * b[j];
}
System.out.println(c[i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
0,
18,
18,
13,
13,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
0,
18,
13,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
8,
34
],
[
34,
35
],
[
34,
36
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
52,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
64,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
64,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
76,
82
],
[
8,
83
],
[
83,
84
],
[
83,
85
],
[
8,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
87,
95
],
[
95,
96
],
[
96,
97
],
[
87,
98
],
[
99,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
99,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
99,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
8,
116
],
[
116,
117
],
[
116,
118
],
[
8,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
125,
126
],
[
125,
127
],
[
120,
128
],
[
128,
129
],
[
129,
130
],
[
120,
131
],
[
132,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
141,
142
],
[
141,
143
],
[
136,
144
],
[
144,
145
],
[
145,
146
],
[
136,
147
],
[
148,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
151,
157
],
[
157,
158
],
[
157,
159
],
[
132,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
132,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
165,
170
],
[
170,
171
],
[
170,
172
],
[
6,
173
],
[
173,
174
]
] | [
"\nimport java.util.*;\n\nclass Main {\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//整数nと整数mを受け取る\n\t\tString s1 = sc.next();\n\t\tint n = Integer.parseInt(s1);\n\t\tString s2 = sc.next();\n\t\tint m = Integer.parseInt(s2);\n\t\t\n\t\t//配列Aにはn*mの行列の値を格納\n\t\tint A[][] = new int[n][m];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tString s3 = sc.next();\n\t\t\t\tint a = Integer.parseInt(s3);\n\t\t\t\tA[i][j] = a;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//配列bにはm*1の行列の値を格納\n\t\tint b[] = new int[m];\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tString s4 = sc.next();\n\t\t\tint b1 = Integer.parseInt(s4);\n\t\t\tb[i] = b1;\n\t\t}\n\t\t\n\t\t//配列cにはn*1行列をAとbの行列から与えられた条件通りに計算したものを格納し、cの要素を表示する\n\t\tint c[] = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tsum += A[i][j] * b[j];\n\t\t\t}\n\t\t\tc[i] = sum;\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//整数nと整数mを受け取る\n\t\tString s1 = sc.next();\n\t\tint n = Integer.parseInt(s1);\n\t\tString s2 = sc.next();\n\t\tint m = Integer.parseInt(s2);\n\t\t\n\t\t//配列Aにはn*mの行列の値を格納\n\t\tint A[][] = new int[n][m];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tString s3 = sc.next();\n\t\t\t\tint a = Integer.parseInt(s3);\n\t\t\t\tA[i][j] = a;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//配列bにはm*1の行列の値を格納\n\t\tint b[] = new int[m];\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tString s4 = sc.next();\n\t\t\tint b1 = Integer.parseInt(s4);\n\t\t\tb[i] = b1;\n\t\t}\n\t\t\n\t\t//配列cにはn*1行列をAとbの行列から与えられた条件通りに計算したものを格納し、cの要素を表示する\n\t\tint c[] = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tsum += A[i][j] * b[j];\n\t\t\t}\n\t\t\tc[i] = sum;\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String args[]){\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//整数nと整数mを受け取る\n\t\tString s1 = sc.next();\n\t\tint n = Integer.parseInt(s1);\n\t\tString s2 = sc.next();\n\t\tint m = Integer.parseInt(s2);\n\t\t\n\t\t//配列Aにはn*mの行列の値を格納\n\t\tint A[][] = new int[n][m];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tString s3 = sc.next();\n\t\t\t\tint a = Integer.parseInt(s3);\n\t\t\t\tA[i][j] = a;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//配列bにはm*1の行列の値を格納\n\t\tint b[] = new int[m];\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tString s4 = sc.next();\n\t\t\tint b1 = Integer.parseInt(s4);\n\t\t\tb[i] = b1;\n\t\t}\n\t\t\n\t\t//配列cにはn*1行列をAとbの行列から与えられた条件通りに計算したものを格納し、cの要素を表示する\n\t\tint c[] = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tsum += A[i][j] * b[j];\n\t\t\t}\n\t\t\tc[i] = sum;\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t}",
"main",
"{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//整数nと整数mを受け取る\n\t\tString s1 = sc.next();\n\t\tint n = Integer.parseInt(s1);\n\t\tString s2 = sc.next();\n\t\tint m = Integer.parseInt(s2);\n\t\t\n\t\t//配列Aにはn*mの行列の値を格納\n\t\tint A[][] = new int[n][m];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tString s3 = sc.next();\n\t\t\t\tint a = Integer.parseInt(s3);\n\t\t\t\tA[i][j] = a;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//配列bにはm*1の行列の値を格納\n\t\tint b[] = new int[m];\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tString s4 = sc.next();\n\t\t\tint b1 = Integer.parseInt(s4);\n\t\t\tb[i] = b1;\n\t\t}\n\t\t\n\t\t//配列cにはn*1行列をAとbの行列から与えられた条件通りに計算したものを格納し、cの要素を表示する\n\t\tint c[] = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tsum += A[i][j] * b[j];\n\t\t\t}\n\t\t\tc[i] = sum;\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s1 = sc.next();",
"s1",
"sc.next()",
"sc.next",
"sc",
"int n = Integer.parseInt(s1);",
"n",
"Integer.parseInt(s1)",
"Integer.parseInt",
"Integer",
"s1",
"String s2 = sc.next();",
"s2",
"sc.next()",
"sc.next",
"sc",
"int m = Integer.parseInt(s2);",
"m",
"Integer.parseInt(s2)",
"Integer.parseInt",
"Integer",
"s2",
"int A[][] = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"for(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tString s3 = sc.next();\n\t\t\t\tint a = Integer.parseInt(s3);\n\t\t\t\tA[i][j] = a;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tString s3 = sc.next();\n\t\t\t\tint a = Integer.parseInt(s3);\n\t\t\t\tA[i][j] = a;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tString s3 = sc.next();\n\t\t\t\tint a = Integer.parseInt(s3);\n\t\t\t\tA[i][j] = a;\n\t\t\t}\n\t\t}",
"for(int j = 0; j < m; j++){\n\t\t\t\tString s3 = sc.next();\n\t\t\t\tint a = Integer.parseInt(s3);\n\t\t\t\tA[i][j] = a;\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tString s3 = sc.next();\n\t\t\t\tint a = Integer.parseInt(s3);\n\t\t\t\tA[i][j] = a;\n\t\t\t}",
"{\n\t\t\t\tString s3 = sc.next();\n\t\t\t\tint a = Integer.parseInt(s3);\n\t\t\t\tA[i][j] = a;\n\t\t\t}",
"String s3 = sc.next();",
"s3",
"sc.next()",
"sc.next",
"sc",
"int a = Integer.parseInt(s3);",
"a",
"Integer.parseInt(s3)",
"Integer.parseInt",
"Integer",
"s3",
"A[i][j] = a",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"a",
"int b[] = new int[m];",
"b",
"new int[m]",
"m",
"for(int i = 0; i < m; i++){\n\t\t\tString s4 = sc.next();\n\t\t\tint b1 = Integer.parseInt(s4);\n\t\t\tb[i] = b1;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tString s4 = sc.next();\n\t\t\tint b1 = Integer.parseInt(s4);\n\t\t\tb[i] = b1;\n\t\t}",
"{\n\t\t\tString s4 = sc.next();\n\t\t\tint b1 = Integer.parseInt(s4);\n\t\t\tb[i] = b1;\n\t\t}",
"String s4 = sc.next();",
"s4",
"sc.next()",
"sc.next",
"sc",
"int b1 = Integer.parseInt(s4);",
"b1",
"Integer.parseInt(s4)",
"Integer.parseInt",
"Integer",
"s4",
"b[i] = b1",
"b[i]",
"b",
"i",
"b1",
"int c[] = new int[n];",
"c",
"new int[n]",
"n",
"for(int i = 0; i < n; i++){\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tsum += A[i][j] * b[j];\n\t\t\t}\n\t\t\tc[i] = sum;\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tsum += A[i][j] * b[j];\n\t\t\t}\n\t\t\tc[i] = sum;\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"{\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tsum += A[i][j] * b[j];\n\t\t\t}\n\t\t\tc[i] = sum;\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"int sum = 0;",
"sum",
"0",
"for(int j = 0; j < m; j++){\n\t\t\t\tsum += A[i][j] * b[j];\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tsum += A[i][j] * b[j];\n\t\t\t}",
"{\n\t\t\t\tsum += A[i][j] * b[j];\n\t\t\t}",
"sum += A[i][j] * b[j]",
"sum",
"A[i][j] * b[j]",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"b[j]",
"b",
"j",
"c[i] = sum",
"c[i]",
"c",
"i",
"sum",
"System.out.println(c[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[i]",
"c",
"i",
"String args[]",
"args"
] |
import java.util.*;
class Main {
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
//整数nと整数mを受け取る
String s1 = sc.next();
int n = Integer.parseInt(s1);
String s2 = sc.next();
int m = Integer.parseInt(s2);
//配列Aにはn*mの行列の値を格納
int A[][] = new int[n][m];
for(int i = 0; i < n; i++){
for(int j = 0; j < m; j++){
String s3 = sc.next();
int a = Integer.parseInt(s3);
A[i][j] = a;
}
}
//配列bにはm*1の行列の値を格納
int b[] = new int[m];
for(int i = 0; i < m; i++){
String s4 = sc.next();
int b1 = Integer.parseInt(s4);
b[i] = b1;
}
//配列cにはn*1行列をAとbの行列から与えられた条件通りに計算したものを格納し、cの要素を表示する
int c[] = new int[n];
for(int i = 0; i < n; i++){
int sum = 0;
for(int j = 0; j < m; j++){
sum += A[i][j] * b[j];
}
c[i] = sum;
System.out.println(c[i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
38,
5,
13,
30,
4,
18,
18,
13,
13,
17,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
13,
20,
13,
13,
0,
13,
20,
13,
0,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
13,
13,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
160,
5
],
[
160,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
8,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
15,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
25,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
25,
39
],
[
39,
40
],
[
39,
41
],
[
25,
44
],
[
44,
45
],
[
44,
46
],
[
25,
48
],
[
48,
49
],
[
48,
50
],
[
25,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
52,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
65,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
78,
84
],
[
84,
85
],
[
85,
86
],
[
25,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
87,
95
],
[
95,
96
],
[
96,
97
],
[
87,
98
],
[
99,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
104,
105
],
[
105,
106
],
[
25,
107
],
[
107,
108
],
[
108,
109
],
[
25,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
110,
118
],
[
118,
119
],
[
119,
120
],
[
110,
121
],
[
122,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
123,
128
],
[
128,
129
],
[
128,
130
],
[
123,
131
],
[
131,
132
],
[
132,
133
],
[
123,
134
],
[
135,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
122,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
149,
154
],
[
154,
155
],
[
154,
156
],
[
6,
157
],
[
157,
158
],
[
0,
159
],
[
159,
160
],
[
159,
161
]
] | [
"//import java.io.FileNotFoundException;\n//import java.io.FileReader;\nimport java.util.Scanner;\n\n\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\t\t\t\n\t\tint[][] a;\n\t\tint[] b;\n\t\tint []c;\n\t\ttry{Scanner sc =new Scanner(System.in);\n\t\t\tint n=sc.nextInt();\n\t\t\tint m=sc.nextInt();\n\t\t\ta=new int[n][m];\n\t\t\tb=new int[m];\n\t\t\tc=new int[n];\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int l=0;l<m;l++){\n\t\t\t\t\ta[i][l]=sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tb[i]=sc.nextInt();\n\t\t\t}sc.close();\n\t\t\t//////////////////////////////////////////////////////////\n\t\t //ここまで入力部\n\t\t //////////////////////////////////////////////////////////\n\t\t //↓より計算部\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int l=0;l<m;l++){\n\t\t\t\t\tc[i]+=b[l]*a[i][l];\n\t\t\t\t\t}System.out.println(c[i]);\n\t\t\t\t}\n\t\t\t\n\t\t\t}//catch(FileNotFoundException ee){}\n\t\tcatch(ArrayIndexOutOfBoundsException e){System.out.println(\"配列エラーです\");}\n\t\t\n\t\t}\n\t}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\t\t\t\n\t\tint[][] a;\n\t\tint[] b;\n\t\tint []c;\n\t\ttry{Scanner sc =new Scanner(System.in);\n\t\t\tint n=sc.nextInt();\n\t\t\tint m=sc.nextInt();\n\t\t\ta=new int[n][m];\n\t\t\tb=new int[m];\n\t\t\tc=new int[n];\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int l=0;l<m;l++){\n\t\t\t\t\ta[i][l]=sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tb[i]=sc.nextInt();\n\t\t\t}sc.close();\n\t\t\t//////////////////////////////////////////////////////////\n\t\t //ここまで入力部\n\t\t //////////////////////////////////////////////////////////\n\t\t //↓より計算部\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int l=0;l<m;l++){\n\t\t\t\t\tc[i]+=b[l]*a[i][l];\n\t\t\t\t\t}System.out.println(c[i]);\n\t\t\t\t}\n\t\t\t\n\t\t\t}//catch(FileNotFoundException ee){}\n\t\tcatch(ArrayIndexOutOfBoundsException e){System.out.println(\"配列エラーです\");}\n\t\t\n\t\t}\n\t}",
"Main",
"public static void main(String[] args) {\n\t\t//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\t\t\t\n\t\tint[][] a;\n\t\tint[] b;\n\t\tint []c;\n\t\ttry{Scanner sc =new Scanner(System.in);\n\t\t\tint n=sc.nextInt();\n\t\t\tint m=sc.nextInt();\n\t\t\ta=new int[n][m];\n\t\t\tb=new int[m];\n\t\t\tc=new int[n];\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int l=0;l<m;l++){\n\t\t\t\t\ta[i][l]=sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tb[i]=sc.nextInt();\n\t\t\t}sc.close();\n\t\t\t//////////////////////////////////////////////////////////\n\t\t //ここまで入力部\n\t\t //////////////////////////////////////////////////////////\n\t\t //↓より計算部\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int l=0;l<m;l++){\n\t\t\t\t\tc[i]+=b[l]*a[i][l];\n\t\t\t\t\t}System.out.println(c[i]);\n\t\t\t\t}\n\t\t\t\n\t\t\t}//catch(FileNotFoundException ee){}\n\t\tcatch(ArrayIndexOutOfBoundsException e){System.out.println(\"配列エラーです\");}\n\t\t\n\t\t}",
"main",
"{\n\t\t//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\t\t\t\n\t\tint[][] a;\n\t\tint[] b;\n\t\tint []c;\n\t\ttry{Scanner sc =new Scanner(System.in);\n\t\t\tint n=sc.nextInt();\n\t\t\tint m=sc.nextInt();\n\t\t\ta=new int[n][m];\n\t\t\tb=new int[m];\n\t\t\tc=new int[n];\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int l=0;l<m;l++){\n\t\t\t\t\ta[i][l]=sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tb[i]=sc.nextInt();\n\t\t\t}sc.close();\n\t\t\t//////////////////////////////////////////////////////////\n\t\t //ここまで入力部\n\t\t //////////////////////////////////////////////////////////\n\t\t //↓より計算部\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int l=0;l<m;l++){\n\t\t\t\t\tc[i]+=b[l]*a[i][l];\n\t\t\t\t\t}System.out.println(c[i]);\n\t\t\t\t}\n\t\t\t\n\t\t\t}//catch(FileNotFoundException ee){}\n\t\tcatch(ArrayIndexOutOfBoundsException e){System.out.println(\"配列エラーです\");}\n\t\t\n\t\t}",
"int[][] a;",
"a",
"int[] b;",
"b",
"int []c;",
"c",
"try{Scanner sc =new Scanner(System.in);\n\t\t\tint n=sc.nextInt();\n\t\t\tint m=sc.nextInt();\n\t\t\ta=new int[n][m];\n\t\t\tb=new int[m];\n\t\t\tc=new int[n];\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int l=0;l<m;l++){\n\t\t\t\t\ta[i][l]=sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tb[i]=sc.nextInt();\n\t\t\t}sc.close();\n\t\t\t//////////////////////////////////////////////////////////\n\t\t //ここまで入力部\n\t\t //////////////////////////////////////////////////////////\n\t\t //↓より計算部\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int l=0;l<m;l++){\n\t\t\t\t\tc[i]+=b[l]*a[i][l];\n\t\t\t\t\t}System.out.println(c[i]);\n\t\t\t\t}\n\t\t\t\n\t\t\t}//catch(FileNotFoundException ee){}\n\t\tcatch(ArrayIndexOutOfBoundsException e){System.out.println(\"配列エラーです\");}",
"catch(ArrayIndexOutOfBoundsException e){System.out.println(\"配列エラーです\");}",
"ArrayIndexOutOfBoundsException e",
"{System.out.println(\"配列エラーです\");}",
"System.out.println(\"配列エラーです\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"配列エラーです\"",
"{Scanner sc =new Scanner(System.in);\n\t\t\tint n=sc.nextInt();\n\t\t\tint m=sc.nextInt();\n\t\t\ta=new int[n][m];\n\t\t\tb=new int[m];\n\t\t\tc=new int[n];\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int l=0;l<m;l++){\n\t\t\t\t\ta[i][l]=sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tb[i]=sc.nextInt();\n\t\t\t}sc.close();\n\t\t\t//////////////////////////////////////////////////////////\n\t\t //ここまで入力部\n\t\t //////////////////////////////////////////////////////////\n\t\t //↓より計算部\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int l=0;l<m;l++){\n\t\t\t\t\tc[i]+=b[l]*a[i][l];\n\t\t\t\t\t}System.out.println(c[i]);\n\t\t\t\t}\n\t\t\t\n\t\t\t}",
"Scanner sc =new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m=sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a=new int[n][m]",
"a",
"new int[n][m]",
"n",
"m",
"b=new int[m]",
"b",
"new int[m]",
"m",
"c=new int[n]",
"c",
"new int[n]",
"n",
"for(int i=0;i<n;i++){\n\t\t\t\tfor(int l=0;l<m;l++){\n\t\t\t\t\ta[i][l]=sc.nextInt();\n\t\t\t\t}\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(int l=0;l<m;l++){\n\t\t\t\t\ta[i][l]=sc.nextInt();\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int l=0;l<m;l++){\n\t\t\t\t\ta[i][l]=sc.nextInt();\n\t\t\t\t}\n\t\t\t}",
"for(int l=0;l<m;l++){\n\t\t\t\t\ta[i][l]=sc.nextInt();\n\t\t\t\t}",
"int l=0;",
"int l=0;",
"l",
"0",
"l<m",
"l",
"m",
"l++",
"l++",
"l",
"{\n\t\t\t\t\ta[i][l]=sc.nextInt();\n\t\t\t\t}",
"{\n\t\t\t\t\ta[i][l]=sc.nextInt();\n\t\t\t\t}",
"a[i][l]=sc.nextInt()",
"a[i][l]",
"a[i]",
"a",
"i",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i<m;i++){\n\t\t\t\tb[i]=sc.nextInt();\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\t\tb[i]=sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tb[i]=sc.nextInt();\n\t\t\t}",
"b[i]=sc.nextInt()",
"b[i]",
"b",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"for(int i=0;i<n;i++){\n\t\t\t\tfor(int l=0;l<m;l++){\n\t\t\t\t\tc[i]+=b[l]*a[i][l];\n\t\t\t\t\t}System.out.println(c[i]);\n\t\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(int l=0;l<m;l++){\n\t\t\t\t\tc[i]+=b[l]*a[i][l];\n\t\t\t\t\t}System.out.println(c[i]);\n\t\t\t\t}",
"{\n\t\t\t\tfor(int l=0;l<m;l++){\n\t\t\t\t\tc[i]+=b[l]*a[i][l];\n\t\t\t\t\t}System.out.println(c[i]);\n\t\t\t\t}",
"for(int l=0;l<m;l++){\n\t\t\t\t\tc[i]+=b[l]*a[i][l];\n\t\t\t\t\t}",
"int l=0;",
"int l=0;",
"l",
"0",
"l<m",
"l",
"m",
"l++",
"l++",
"l",
"{\n\t\t\t\t\tc[i]+=b[l]*a[i][l];\n\t\t\t\t\t}",
"{\n\t\t\t\t\tc[i]+=b[l]*a[i][l];\n\t\t\t\t\t}",
"c[i]+=b[l]*a[i][l]",
"c[i]",
"c",
"i",
"b[l]*a[i][l]",
"b[l]",
"b",
"l",
"a[i][l]",
"a[i]",
"a",
"i",
"l",
"System.out.println(c[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[i]",
"c",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\t\t\t\n\t\tint[][] a;\n\t\tint[] b;\n\t\tint []c;\n\t\ttry{Scanner sc =new Scanner(System.in);\n\t\t\tint n=sc.nextInt();\n\t\t\tint m=sc.nextInt();\n\t\t\ta=new int[n][m];\n\t\t\tb=new int[m];\n\t\t\tc=new int[n];\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int l=0;l<m;l++){\n\t\t\t\t\ta[i][l]=sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tb[i]=sc.nextInt();\n\t\t\t}sc.close();\n\t\t\t//////////////////////////////////////////////////////////\n\t\t //ここまで入力部\n\t\t //////////////////////////////////////////////////////////\n\t\t //↓より計算部\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int l=0;l<m;l++){\n\t\t\t\t\tc[i]+=b[l]*a[i][l];\n\t\t\t\t\t}System.out.println(c[i]);\n\t\t\t\t}\n\t\t\t\n\t\t\t}//catch(FileNotFoundException ee){}\n\t\tcatch(ArrayIndexOutOfBoundsException e){System.out.println(\"配列エラーです\");}\n\t\t\n\t\t}\n\t}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\t\t\t\n\t\tint[][] a;\n\t\tint[] b;\n\t\tint []c;\n\t\ttry{Scanner sc =new Scanner(System.in);\n\t\t\tint n=sc.nextInt();\n\t\t\tint m=sc.nextInt();\n\t\t\ta=new int[n][m];\n\t\t\tb=new int[m];\n\t\t\tc=new int[n];\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int l=0;l<m;l++){\n\t\t\t\t\ta[i][l]=sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tb[i]=sc.nextInt();\n\t\t\t}sc.close();\n\t\t\t//////////////////////////////////////////////////////////\n\t\t //ここまで入力部\n\t\t //////////////////////////////////////////////////////////\n\t\t //↓より計算部\n\t\t\t\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int l=0;l<m;l++){\n\t\t\t\t\tc[i]+=b[l]*a[i][l];\n\t\t\t\t\t}System.out.println(c[i]);\n\t\t\t\t}\n\t\t\t\n\t\t\t}//catch(FileNotFoundException ee){}\n\t\tcatch(ArrayIndexOutOfBoundsException e){System.out.println(\"配列エラーです\");}\n\t\t\n\t\t}\n\t}",
"Main"
] | //import java.io.FileNotFoundException;
//import java.io.FileReader;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int[][] a;
int[] b;
int []c;
try{Scanner sc =new Scanner(System.in);
int n=sc.nextInt();
int m=sc.nextInt();
a=new int[n][m];
b=new int[m];
c=new int[n];
for(int i=0;i<n;i++){
for(int l=0;l<m;l++){
a[i][l]=sc.nextInt();
}
}
for(int i=0;i<m;i++){
b[i]=sc.nextInt();
}sc.close();
//////////////////////////////////////////////////////////
//ここまで入力部
//////////////////////////////////////////////////////////
//↓より計算部
for(int i=0;i<n;i++){
for(int l=0;l<m;l++){
c[i]+=b[l]*a[i][l];
}System.out.println(c[i]);
}
}//catch(FileNotFoundException ee){}
catch(ArrayIndexOutOfBoundsException e){System.out.println("配列エラーです");}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
20,
2,
13,
17,
2,
13,
17,
41,
13,
20,
2,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
0,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
28,
29
],
[
28,
30
],
[
31,
32
],
[
31,
33
],
[
8,
34
],
[
34,
35
],
[
34,
36
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
40,
42
],
[
8,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
43,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
67,
73
],
[
73,
74
],
[
74,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
76,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
93,
94
],
[
8,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
95,
103
],
[
103,
104
],
[
104,
105
],
[
95,
106
],
[
107,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
113,
114
],
[
113,
115
],
[
108,
116
],
[
116,
117
],
[
117,
118
],
[
108,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
122,
128
],
[
128,
129
],
[
128,
130
],
[
107,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
107,
137
],
[
137,
138
],
[
137,
139
],
[
6,
140
],
[
140,
141
]
] | [
"import java.util.Scanner;\n\nclass Main{\n \n public static void main(String[] args){\n \n Scanner sc =new Scanner(System.in);\n \n int n=sc.nextInt();\n int m=sc.nextInt();\n int count=1;\n int a[][]=new int[n+1][m+1];\n int b[]=new int[m+1];\n int sum=0;\n \n for(int i=1;i<=n;i++)\n for(int j=1;j<=m;j++)\n a[i][j]=sc.nextInt();\n \n for(int i=1;i<=m;i++)\n b[i]=sc.nextInt();\n \n for(int i=1;i<=n;i++) {\n for(int j=1;j<=m;j++)\n sum+=a[i][j]*b[j];\n System.out.println(sum);\n sum=0;\n }\n }\n \n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n \n public static void main(String[] args){\n \n Scanner sc =new Scanner(System.in);\n \n int n=sc.nextInt();\n int m=sc.nextInt();\n int count=1;\n int a[][]=new int[n+1][m+1];\n int b[]=new int[m+1];\n int sum=0;\n \n for(int i=1;i<=n;i++)\n for(int j=1;j<=m;j++)\n a[i][j]=sc.nextInt();\n \n for(int i=1;i<=m;i++)\n b[i]=sc.nextInt();\n \n for(int i=1;i<=n;i++) {\n for(int j=1;j<=m;j++)\n sum+=a[i][j]*b[j];\n System.out.println(sum);\n sum=0;\n }\n }\n \n}",
"Main",
"public static void main(String[] args){\n \n Scanner sc =new Scanner(System.in);\n \n int n=sc.nextInt();\n int m=sc.nextInt();\n int count=1;\n int a[][]=new int[n+1][m+1];\n int b[]=new int[m+1];\n int sum=0;\n \n for(int i=1;i<=n;i++)\n for(int j=1;j<=m;j++)\n a[i][j]=sc.nextInt();\n \n for(int i=1;i<=m;i++)\n b[i]=sc.nextInt();\n \n for(int i=1;i<=n;i++) {\n for(int j=1;j<=m;j++)\n sum+=a[i][j]*b[j];\n System.out.println(sum);\n sum=0;\n }\n }",
"main",
"{\n \n Scanner sc =new Scanner(System.in);\n \n int n=sc.nextInt();\n int m=sc.nextInt();\n int count=1;\n int a[][]=new int[n+1][m+1];\n int b[]=new int[m+1];\n int sum=0;\n \n for(int i=1;i<=n;i++)\n for(int j=1;j<=m;j++)\n a[i][j]=sc.nextInt();\n \n for(int i=1;i<=m;i++)\n b[i]=sc.nextInt();\n \n for(int i=1;i<=n;i++) {\n for(int j=1;j<=m;j++)\n sum+=a[i][j]*b[j];\n System.out.println(sum);\n sum=0;\n }\n }",
"Scanner sc =new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m=sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int count=1;",
"count",
"1",
"int a[][]=new int[n+1][m+1];",
"a",
"new int[n+1][m+1]",
"n+1",
"n",
"1",
"m+1",
"m",
"1",
"int b[]=new int[m+1];",
"b",
"new int[m+1]",
"m+1",
"m",
"1",
"int sum=0;",
"sum",
"0",
"for(int i=1;i<=n;i++)\n for(int j=1;j<=m;j++)\n a[i][j]=sc.nextInt();",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"for(int j=1;j<=m;j++)\n a[i][j]=sc.nextInt();",
"for(int j=1;j<=m;j++)\n a[i][j]=sc.nextInt();",
"int j=1;",
"int j=1;",
"j",
"1",
"j<=m",
"j",
"m",
"j++",
"j++",
"j",
"a[i][j]=sc.nextInt();",
"a[i][j]=sc.nextInt()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=1;i<=m;i++)\n b[i]=sc.nextInt();",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=m",
"i",
"m",
"i++",
"i++",
"i",
"b[i]=sc.nextInt();",
"b[i]=sc.nextInt()",
"b[i]",
"b",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=1;i<=n;i++) {\n for(int j=1;j<=m;j++)\n sum+=a[i][j]*b[j];\n System.out.println(sum);\n sum=0;\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j=1;j<=m;j++)\n sum+=a[i][j]*b[j];\n System.out.println(sum);\n sum=0;\n }",
"{\n for(int j=1;j<=m;j++)\n sum+=a[i][j]*b[j];\n System.out.println(sum);\n sum=0;\n }",
"for(int j=1;j<=m;j++)\n sum+=a[i][j]*b[j];",
"int j=1;",
"int j=1;",
"j",
"1",
"j<=m",
"j",
"m",
"j++",
"j++",
"j",
"sum+=a[i][j]*b[j];",
"sum+=a[i][j]*b[j]",
"sum",
"a[i][j]*b[j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"sum=0",
"sum",
"0",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner sc =new Scanner(System.in);
int n=sc.nextInt();
int m=sc.nextInt();
int count=1;
int a[][]=new int[n+1][m+1];
int b[]=new int[m+1];
int sum=0;
for(int i=1;i<=n;i++)
for(int j=1;j<=m;j++)
a[i][j]=sc.nextInt();
for(int i=1;i<=m;i++)
b[i]=sc.nextInt();
for(int i=1;i<=n;i++) {
for(int j=1;j<=m;j++)
sum+=a[i][j]*b[j];
System.out.println(sum);
sum=0;
}
}
}
|
[
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,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
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,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
13,
13,
18,
18,
13,
13,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
8,
62
],
[
62,
63
],
[
62,
64
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
8,
86
],
[
86,
87
],
[
87,
88
],
[
8,
89
],
[
89,
90
],
[
89,
91
],
[
8,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
92,
100
],
[
100,
101
],
[
101,
102
],
[
92,
103
],
[
104,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
113,
114
],
[
113,
115
],
[
108,
116
],
[
116,
117
],
[
117,
118
],
[
108,
119
],
[
120,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
120,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
134,
136
],
[
104,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
6,
143
],
[
143,
144
],
[
0,
145
],
[
145,
146
],
[
145,
147
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t//Scanner????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\t//A????????????(n,m)\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\t//a?????????\n\t\tint[][] aAry = new int[n][m];\n\t\tfor(int i = 0; i < n; i++){\n\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\taAry[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\t//b?????????\n\t\tint[] bAry = new int[m];\n\t\t//?????????????´?\n\t\tfor(int i = 0; i < m; i++ ){\n\n\t\t\tbAry[i] = scan.nextInt();\n\t\t}\n\n\t\tscan.close();\n\n\t\t//?????????????????\\???????????°\n\t\tint intAnswer = 0;\n\n\t\tfor(int i =0; i < n; i++){\n\t\t\t//?????????????????\\???????????°\n\t\t\tint intResult = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\t//???????????????????????£??\\\n\t\t\t\tintAnswer = bAry[j] * aAry[i][j];\n\t\t\t\tintResult = intResult + intAnswer;\n\t\t\t}\n\t\t\tSystem.out.println(intResult);\n\t\t\t//intResult????????????\n\t\t\t//intResult = 0;\n\t\t}\n\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t//Scanner????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\t//A????????????(n,m)\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\t//a?????????\n\t\tint[][] aAry = new int[n][m];\n\t\tfor(int i = 0; i < n; i++){\n\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\taAry[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\t//b?????????\n\t\tint[] bAry = new int[m];\n\t\t//?????????????´?\n\t\tfor(int i = 0; i < m; i++ ){\n\n\t\t\tbAry[i] = scan.nextInt();\n\t\t}\n\n\t\tscan.close();\n\n\t\t//?????????????????\\???????????°\n\t\tint intAnswer = 0;\n\n\t\tfor(int i =0; i < n; i++){\n\t\t\t//?????????????????\\???????????°\n\t\t\tint intResult = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\t//???????????????????????£??\\\n\t\t\t\tintAnswer = bAry[j] * aAry[i][j];\n\t\t\t\tintResult = intResult + intAnswer;\n\t\t\t}\n\t\t\tSystem.out.println(intResult);\n\t\t\t//intResult????????????\n\t\t\t//intResult = 0;\n\t\t}\n\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t//Scanner????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\t//A????????????(n,m)\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\t//a?????????\n\t\tint[][] aAry = new int[n][m];\n\t\tfor(int i = 0; i < n; i++){\n\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\taAry[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\t//b?????????\n\t\tint[] bAry = new int[m];\n\t\t//?????????????´?\n\t\tfor(int i = 0; i < m; i++ ){\n\n\t\t\tbAry[i] = scan.nextInt();\n\t\t}\n\n\t\tscan.close();\n\n\t\t//?????????????????\\???????????°\n\t\tint intAnswer = 0;\n\n\t\tfor(int i =0; i < n; i++){\n\t\t\t//?????????????????\\???????????°\n\t\t\tint intResult = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\t//???????????????????????£??\\\n\t\t\t\tintAnswer = bAry[j] * aAry[i][j];\n\t\t\t\tintResult = intResult + intAnswer;\n\t\t\t}\n\t\t\tSystem.out.println(intResult);\n\t\t\t//intResult????????????\n\t\t\t//intResult = 0;\n\t\t}\n\n\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t//Scanner????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\t//A????????????(n,m)\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\t//a?????????\n\t\tint[][] aAry = new int[n][m];\n\t\tfor(int i = 0; i < n; i++){\n\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\taAry[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\t//b?????????\n\t\tint[] bAry = new int[m];\n\t\t//?????????????´?\n\t\tfor(int i = 0; i < m; i++ ){\n\n\t\t\tbAry[i] = scan.nextInt();\n\t\t}\n\n\t\tscan.close();\n\n\t\t//?????????????????\\???????????°\n\t\tint intAnswer = 0;\n\n\t\tfor(int i =0; i < n; i++){\n\t\t\t//?????????????????\\???????????°\n\t\t\tint intResult = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\t//???????????????????????£??\\\n\t\t\t\tintAnswer = bAry[j] * aAry[i][j];\n\t\t\t\tintResult = intResult + intAnswer;\n\t\t\t}\n\t\t\tSystem.out.println(intResult);\n\t\t\t//intResult????????????\n\t\t\t//intResult = 0;\n\t\t}\n\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[][] aAry = new int[n][m];",
"aAry",
"new int[n][m]",
"n",
"m",
"for(int i = 0; i < n; i++){\n\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\taAry[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\taAry[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"{\n\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\taAry[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0; j < m; j++){\n\t\t\t\taAry[i][j] = scan.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\taAry[i][j] = scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\taAry[i][j] = scan.nextInt();\n\t\t\t}",
"aAry[i][j] = scan.nextInt()",
"aAry[i][j]",
"aAry[i]",
"aAry",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[] bAry = new int[m];",
"bAry",
"new int[m]",
"m",
"for(int i = 0; i < m; i++ ){\n\n\t\t\tbAry[i] = scan.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\n\t\t\tbAry[i] = scan.nextInt();\n\t\t}",
"{\n\n\t\t\tbAry[i] = scan.nextInt();\n\t\t}",
"bAry[i] = scan.nextInt()",
"bAry[i]",
"bAry",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"scan.close()",
"scan.close",
"scan",
"int intAnswer = 0;",
"intAnswer",
"0",
"for(int i =0; i < n; i++){\n\t\t\t//?????????????????\\???????????°\n\t\t\tint intResult = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\t//???????????????????????£??\\\n\t\t\t\tintAnswer = bAry[j] * aAry[i][j];\n\t\t\t\tintResult = intResult + intAnswer;\n\t\t\t}\n\t\t\tSystem.out.println(intResult);\n\t\t\t//intResult????????????\n\t\t\t//intResult = 0;\n\t\t}",
"int i =0;",
"int i =0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t//?????????????????\\???????????°\n\t\t\tint intResult = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\t//???????????????????????£??\\\n\t\t\t\tintAnswer = bAry[j] * aAry[i][j];\n\t\t\t\tintResult = intResult + intAnswer;\n\t\t\t}\n\t\t\tSystem.out.println(intResult);\n\t\t\t//intResult????????????\n\t\t\t//intResult = 0;\n\t\t}",
"{\n\t\t\t//?????????????????\\???????????°\n\t\t\tint intResult = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\t//???????????????????????£??\\\n\t\t\t\tintAnswer = bAry[j] * aAry[i][j];\n\t\t\t\tintResult = intResult + intAnswer;\n\t\t\t}\n\t\t\tSystem.out.println(intResult);\n\t\t\t//intResult????????????\n\t\t\t//intResult = 0;\n\t\t}",
"int intResult = 0;",
"intResult",
"0",
"for(int j = 0; j < m; j++){\n\t\t\t\t//???????????????????????£??\\\n\t\t\t\tintAnswer = bAry[j] * aAry[i][j];\n\t\t\t\tintResult = intResult + intAnswer;\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\t//???????????????????????£??\\\n\t\t\t\tintAnswer = bAry[j] * aAry[i][j];\n\t\t\t\tintResult = intResult + intAnswer;\n\t\t\t}",
"{\n\t\t\t\t//???????????????????????£??\\\n\t\t\t\tintAnswer = bAry[j] * aAry[i][j];\n\t\t\t\tintResult = intResult + intAnswer;\n\t\t\t}",
"intAnswer = bAry[j] * aAry[i][j]",
"intAnswer",
"bAry[j] * aAry[i][j]",
"bAry[j]",
"bAry",
"j",
"aAry[i][j]",
"aAry[i]",
"aAry",
"i",
"j",
"intResult = intResult + intAnswer",
"intResult",
"intResult + intAnswer",
"intResult",
"intAnswer",
"System.out.println(intResult)",
"System.out.println",
"System.out",
"System",
"System.out",
"intResult",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t//Scanner????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\t//A????????????(n,m)\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\t//a?????????\n\t\tint[][] aAry = new int[n][m];\n\t\tfor(int i = 0; i < n; i++){\n\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\taAry[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\t//b?????????\n\t\tint[] bAry = new int[m];\n\t\t//?????????????´?\n\t\tfor(int i = 0; i < m; i++ ){\n\n\t\t\tbAry[i] = scan.nextInt();\n\t\t}\n\n\t\tscan.close();\n\n\t\t//?????????????????\\???????????°\n\t\tint intAnswer = 0;\n\n\t\tfor(int i =0; i < n; i++){\n\t\t\t//?????????????????\\???????????°\n\t\t\tint intResult = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\t//???????????????????????£??\\\n\t\t\t\tintAnswer = bAry[j] * aAry[i][j];\n\t\t\t\tintResult = intResult + intAnswer;\n\t\t\t}\n\t\t\tSystem.out.println(intResult);\n\t\t\t//intResult????????????\n\t\t\t//intResult = 0;\n\t\t}\n\n\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t//Scanner????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\t//A????????????(n,m)\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\t//a?????????\n\t\tint[][] aAry = new int[n][m];\n\t\tfor(int i = 0; i < n; i++){\n\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\taAry[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\t//b?????????\n\t\tint[] bAry = new int[m];\n\t\t//?????????????´?\n\t\tfor(int i = 0; i < m; i++ ){\n\n\t\t\tbAry[i] = scan.nextInt();\n\t\t}\n\n\t\tscan.close();\n\n\t\t//?????????????????\\???????????°\n\t\tint intAnswer = 0;\n\n\t\tfor(int i =0; i < n; i++){\n\t\t\t//?????????????????\\???????????°\n\t\t\tint intResult = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\t//???????????????????????£??\\\n\t\t\t\tintAnswer = bAry[j] * aAry[i][j];\n\t\t\t\tintResult = intResult + intAnswer;\n\t\t\t}\n\t\t\tSystem.out.println(intResult);\n\t\t\t//intResult????????????\n\t\t\t//intResult = 0;\n\t\t}\n\n\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
//Scanner????????????????????????
Scanner scan = new Scanner(System.in);
//A????????????(n,m)
int n = scan.nextInt();
int m = scan.nextInt();
//a?????????
int[][] aAry = new int[n][m];
for(int i = 0; i < n; i++){
for(int j = 0; j < m; j++){
aAry[i][j] = scan.nextInt();
}
}
//b?????????
int[] bAry = new int[m];
//?????????????´?
for(int i = 0; i < m; i++ ){
bAry[i] = scan.nextInt();
}
scan.close();
//?????????????????\???????????°
int intAnswer = 0;
for(int i =0; i < n; i++){
//?????????????????\???????????°
int intResult = 0;
for(int j = 0; j < m; j++){
//???????????????????????£??\
intAnswer = bAry[j] * aAry[i][j];
intResult = intResult + intAnswer;
}
System.out.println(intResult);
//intResult????????????
//intResult = 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,
13,
41,
13,
20,
13,
17,
41,
13,
20,
13,
17,
0,
13,
4,
13,
13,
0,
13,
4,
13,
13,
4,
13,
13,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
20,
18,
13,
13,
18,
18,
13,
17,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
17,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
29,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
17,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
17,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
18,
13,
13,
17,
23,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
200,
5
],
[
200,
6
],
[
6,
7
],
[
6,
8
],
[
200,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
11,
32
],
[
32,
33
],
[
32,
34
],
[
11,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
11,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
11,
47
],
[
47,
48
],
[
47,
49
],
[
47,
50
],
[
47,
51
],
[
11,
52
],
[
52,
53
],
[
53,
54
],
[
9,
55
],
[
55,
56
],
[
200,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
63,
64
],
[
63,
65
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
59,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
71,
81
],
[
81,
82
],
[
82,
83
],
[
71,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
86,
98
],
[
98,
99
],
[
99,
100
],
[
86,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
59,
112
],
[
112,
113
],
[
57,
114
],
[
114,
115
],
[
200,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
126,
128
],
[
119,
129
],
[
129,
130
],
[
130,
131
],
[
119,
132
],
[
133,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
134,
146
],
[
146,
147
],
[
147,
148
],
[
134,
149
],
[
150,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
151,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
157,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
163,
167
],
[
118,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
175,
177
],
[
168,
178
],
[
178,
179
],
[
179,
180
],
[
168,
181
],
[
182,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
183,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
188,
192
],
[
116,
193
],
[
193,
194
],
[
116,
195
],
[
195,
196
],
[
116,
197
],
[
197,
198
],
[
0,
199
],
[
199,
200
],
[
199,
201
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\t\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[][] b = new int[m][1];\n\t\tint[][] c = new int[n][1];\n\n\t\tA = inputMat(A);\n\t\tb = inputMat(b);\n\n\t\tvec_multi(A, b, c);\n\t\tsc.close();\n\n\n\t}\n\n\tprivate static int[][] inputMat(int[][] a) {\n\t\tint[][] mat = new int[a.length][a[0].length];\n\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tfor (int j = 0; j < a[0].length; j++) {\n\t\t\t\tmat[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\treturn mat;\n\t}\n\n\tprivate static void vec_multi(int[][] a, int[][] b, int[][] c) {\n\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\tfor (int j = 0; j < a[0].length; j++) {\n\t\t\t\tc[i][0] += a[i][j] * b[j][0];\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\tSystem.out.println(c[i][0]);\n\t\t}\n\n\t}\n\n\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\t\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[][] b = new int[m][1];\n\t\tint[][] c = new int[n][1];\n\n\t\tA = inputMat(A);\n\t\tb = inputMat(b);\n\n\t\tvec_multi(A, b, c);\n\t\tsc.close();\n\n\n\t}\n\n\tprivate static int[][] inputMat(int[][] a) {\n\t\tint[][] mat = new int[a.length][a[0].length];\n\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tfor (int j = 0; j < a[0].length; j++) {\n\t\t\t\tmat[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\treturn mat;\n\t}\n\n\tprivate static void vec_multi(int[][] a, int[][] b, int[][] c) {\n\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\tfor (int j = 0; j < a[0].length; j++) {\n\t\t\t\tc[i][0] += a[i][j] * b[j][0];\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\tSystem.out.println(c[i][0]);\n\t\t}\n\n\t}\n\n\n}",
"Main",
"static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) {\n\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[][] b = new int[m][1];\n\t\tint[][] c = new int[n][1];\n\n\t\tA = inputMat(A);\n\t\tb = inputMat(b);\n\n\t\tvec_multi(A, b, c);\n\t\tsc.close();\n\n\n\t}",
"main",
"{\n\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[][] b = new int[m][1];\n\t\tint[][] c = new int[n][1];\n\n\t\tA = inputMat(A);\n\t\tb = inputMat(b);\n\n\t\tvec_multi(A, b, c);\n\t\tsc.close();\n\n\n\t}",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] A = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int[][] b = new int[m][1];",
"b",
"new int[m][1]",
"m",
"1",
"int[][] c = new int[n][1];",
"c",
"new int[n][1]",
"n",
"1",
"A = inputMat(A)",
"A",
"inputMat(A)",
"inputMat",
"A",
"b = inputMat(b)",
"b",
"inputMat(b)",
"inputMat",
"b",
"vec_multi(A, b, c)",
"vec_multi",
"A",
"b",
"c",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"private static int[][] inputMat(int[][] a) {\n\t\tint[][] mat = new int[a.length][a[0].length];\n\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tfor (int j = 0; j < a[0].length; j++) {\n\t\t\t\tmat[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\treturn mat;\n\t}",
"inputMat",
"{\n\t\tint[][] mat = new int[a.length][a[0].length];\n\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tfor (int j = 0; j < a[0].length; j++) {\n\t\t\t\tmat[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\treturn mat;\n\t}",
"int[][] mat = new int[a.length][a[0].length];",
"mat",
"new int[a.length][a[0].length]",
"a.length",
"a",
"a.length",
"a[0].length",
"a[0]",
"a",
"0",
"a[0].length",
"for (int i = 0; i < a.length; i++) {\n\t\t\tfor (int j = 0; j < a[0].length; j++) {\n\t\t\t\tmat[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < a[0].length; j++) {\n\t\t\t\tmat[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < a[0].length; j++) {\n\t\t\t\tmat[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for (int j = 0; j < a[0].length; j++) {\n\t\t\t\tmat[i][j] = sc.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < a[0].length",
"j",
"a[0].length",
"a[0]",
"a",
"0",
"a[0].length",
"j++",
"j++",
"j",
"{\n\t\t\t\tmat[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tmat[i][j] = sc.nextInt();\n\t\t\t}",
"mat[i][j] = sc.nextInt()",
"mat[i][j]",
"mat[i]",
"mat",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"return mat;",
"mat",
"int[][] a",
"a",
"private static void vec_multi(int[][] a, int[][] b, int[][] c) {\n\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\tfor (int j = 0; j < a[0].length; j++) {\n\t\t\t\tc[i][0] += a[i][j] * b[j][0];\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\tSystem.out.println(c[i][0]);\n\t\t}\n\n\t}",
"vec_multi",
"{\n\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\tfor (int j = 0; j < a[0].length; j++) {\n\t\t\t\tc[i][0] += a[i][j] * b[j][0];\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\tSystem.out.println(c[i][0]);\n\t\t}\n\n\t}",
"for (int i = 0; i < c.length; i++) {\n\t\t\tfor (int j = 0; j < a[0].length; j++) {\n\t\t\t\tc[i][0] += a[i][j] * b[j][0];\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < c.length",
"i",
"c.length",
"c",
"c.length",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < a[0].length; j++) {\n\t\t\t\tc[i][0] += a[i][j] * b[j][0];\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < a[0].length; j++) {\n\t\t\t\tc[i][0] += a[i][j] * b[j][0];\n\t\t\t}\n\t\t}",
"for (int j = 0; j < a[0].length; j++) {\n\t\t\t\tc[i][0] += a[i][j] * b[j][0];\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < a[0].length",
"j",
"a[0].length",
"a[0]",
"a",
"0",
"a[0].length",
"j++",
"j++",
"j",
"{\n\t\t\t\tc[i][0] += a[i][j] * b[j][0];\n\t\t\t}",
"{\n\t\t\t\tc[i][0] += a[i][j] * b[j][0];\n\t\t\t}",
"c[i][0] += a[i][j] * b[j][0]",
"c[i][0]",
"c[i]",
"c",
"i",
"0",
"a[i][j] * b[j][0]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j][0]",
"b[j]",
"b",
"j",
"0",
"for (int i = 0; i < c.length; i++) {\n\t\t\tSystem.out.println(c[i][0]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < c.length",
"i",
"c.length",
"c",
"c.length",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(c[i][0]);\n\t\t}",
"{\n\t\t\tSystem.out.println(c[i][0]);\n\t\t}",
"System.out.println(c[i][0])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[i][0]",
"c[i]",
"c",
"i",
"0",
"int[][] a",
"a",
"int[][] b",
"b",
"int[][] c",
"c",
"public class Main {\n\n\t\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[][] b = new int[m][1];\n\t\tint[][] c = new int[n][1];\n\n\t\tA = inputMat(A);\n\t\tb = inputMat(b);\n\n\t\tvec_multi(A, b, c);\n\t\tsc.close();\n\n\n\t}\n\n\tprivate static int[][] inputMat(int[][] a) {\n\t\tint[][] mat = new int[a.length][a[0].length];\n\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tfor (int j = 0; j < a[0].length; j++) {\n\t\t\t\tmat[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\treturn mat;\n\t}\n\n\tprivate static void vec_multi(int[][] a, int[][] b, int[][] c) {\n\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\tfor (int j = 0; j < a[0].length; j++) {\n\t\t\t\tc[i][0] += a[i][j] * b[j][0];\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\tSystem.out.println(c[i][0]);\n\t\t}\n\n\t}\n\n\n}",
"public class Main {\n\n\t\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[][] b = new int[m][1];\n\t\tint[][] c = new int[n][1];\n\n\t\tA = inputMat(A);\n\t\tb = inputMat(b);\n\n\t\tvec_multi(A, b, c);\n\t\tsc.close();\n\n\n\t}\n\n\tprivate static int[][] inputMat(int[][] a) {\n\t\tint[][] mat = new int[a.length][a[0].length];\n\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tfor (int j = 0; j < a[0].length; j++) {\n\t\t\t\tmat[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\treturn mat;\n\t}\n\n\tprivate static void vec_multi(int[][] a, int[][] b, int[][] c) {\n\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\tfor (int j = 0; j < a[0].length; j++) {\n\t\t\t\tc[i][0] += a[i][j] * b[j][0];\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\tSystem.out.println(c[i][0]);\n\t\t}\n\n\t}\n\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int n = sc.nextInt();
int m = sc.nextInt();
int[][] A = new int[n][m];
int[][] b = new int[m][1];
int[][] c = new int[n][1];
A = inputMat(A);
b = inputMat(b);
vec_multi(A, b, c);
sc.close();
}
private static int[][] inputMat(int[][] a) {
int[][] mat = new int[a.length][a[0].length];
for (int i = 0; i < a.length; i++) {
for (int j = 0; j < a[0].length; j++) {
mat[i][j] = sc.nextInt();
}
}
return mat;
}
private static void vec_multi(int[][] a, int[][] b, int[][] c) {
for (int i = 0; i < c.length; i++) {
for (int j = 0; j < a[0].length; j++) {
c[i][0] += a[i][j] * b[j][0];
}
}
for (int i = 0; i < c.length; i++) {
System.out.println(c[i][0]);
}
}
}
|
[
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,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
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,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
155,
5
],
[
155,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
8,
86
],
[
86,
87
],
[
86,
88
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
90,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
103,
111
],
[
111,
112
],
[
112,
113
],
[
103,
114
],
[
115,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
120,
126
],
[
126,
127
],
[
126,
128
],
[
8,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
136,
138
],
[
129,
139
],
[
139,
140
],
[
140,
141
],
[
129,
142
],
[
143,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
144,
149
],
[
149,
150
],
[
149,
151
],
[
6,
152
],
[
152,
153
],
[
0,
154
],
[
154,
155
],
[
154,
156
]
] | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int m = scan.nextInt();\n int[][] a = new int[n][m];\n int[] b = new int[m];\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = scan.nextInt();\n }\n }\n\n for (int i = 0; i < m; i++) {\n b[i] = scan.nextInt();\n }\n\n int[] c = new int[n];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n c[i] += a[i][j] * b[j];\n }\n }\n\n for (int i = 0; i < c.length; i++) {\n System.out.println(c[i]);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int m = scan.nextInt();\n int[][] a = new int[n][m];\n int[] b = new int[m];\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = scan.nextInt();\n }\n }\n\n for (int i = 0; i < m; i++) {\n b[i] = scan.nextInt();\n }\n\n int[] c = new int[n];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n c[i] += a[i][j] * b[j];\n }\n }\n\n for (int i = 0; i < c.length; i++) {\n System.out.println(c[i]);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int m = scan.nextInt();\n int[][] a = new int[n][m];\n int[] b = new int[m];\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = scan.nextInt();\n }\n }\n\n for (int i = 0; i < m; i++) {\n b[i] = scan.nextInt();\n }\n\n int[] c = new int[n];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n c[i] += a[i][j] * b[j];\n }\n }\n\n for (int i = 0; i < c.length; i++) {\n System.out.println(c[i]);\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int m = scan.nextInt();\n int[][] a = new int[n][m];\n int[] b = new int[m];\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = scan.nextInt();\n }\n }\n\n for (int i = 0; i < m; i++) {\n b[i] = scan.nextInt();\n }\n\n int[] c = new int[n];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n c[i] += a[i][j] * b[j];\n }\n }\n\n for (int i = 0; i < c.length; i++) {\n System.out.println(c[i]);\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[][] a = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[] b = new int[m];",
"b",
"new int[m]",
"m",
"for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = scan.nextInt();\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < m; j++) {\n a[i][j] = scan.nextInt();\n }\n }",
"{\n for (int j = 0; j < m; j++) {\n a[i][j] = scan.nextInt();\n }\n }",
"for (int j = 0; j < m; j++) {\n a[i][j] = scan.nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n a[i][j] = scan.nextInt();\n }",
"{\n a[i][j] = scan.nextInt();\n }",
"a[i][j] = scan.nextInt()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int i = 0; i < m; i++) {\n b[i] = scan.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n b[i] = scan.nextInt();\n }",
"{\n b[i] = scan.nextInt();\n }",
"b[i] = scan.nextInt()",
"b[i]",
"b",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[] c = new int[n];",
"c",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n c[i] += a[i][j] * b[j];\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < m; j++) {\n c[i] += a[i][j] * b[j];\n }\n }",
"{\n for (int j = 0; j < m; j++) {\n c[i] += a[i][j] * b[j];\n }\n }",
"for (int j = 0; j < m; j++) {\n c[i] += a[i][j] * b[j];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n c[i] += a[i][j] * b[j];\n }",
"{\n c[i] += a[i][j] * b[j];\n }",
"c[i] += a[i][j] * b[j]",
"c[i]",
"c",
"i",
"a[i][j] * b[j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"for (int i = 0; i < c.length; i++) {\n System.out.println(c[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < c.length",
"i",
"c.length",
"c",
"c.length",
"i++",
"i++",
"i",
"{\n System.out.println(c[i]);\n }",
"{\n System.out.println(c[i]);\n }",
"System.out.println(c[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[i]",
"c",
"i",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int m = scan.nextInt();\n int[][] a = new int[n][m];\n int[] b = new int[m];\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = scan.nextInt();\n }\n }\n\n for (int i = 0; i < m; i++) {\n b[i] = scan.nextInt();\n }\n\n int[] c = new int[n];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n c[i] += a[i][j] * b[j];\n }\n }\n\n for (int i = 0; i < c.length; i++) {\n System.out.println(c[i]);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int m = scan.nextInt();\n int[][] a = new int[n][m];\n int[] b = new int[m];\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = scan.nextInt();\n }\n }\n\n for (int i = 0; i < m; i++) {\n b[i] = scan.nextInt();\n }\n\n int[] c = new int[n];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n c[i] += a[i][j] * b[j];\n }\n }\n\n for (int i = 0; i < c.length; i++) {\n System.out.println(c[i]);\n }\n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int m = scan.nextInt();
int[][] a = new int[n][m];
int[] b = new int[m];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
a[i][j] = scan.nextInt();
}
}
for (int i = 0; i < m; i++) {
b[i] = scan.nextInt();
}
int[] c = new int[n];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
c[i] += a[i][j] * b[j];
}
}
for (int i = 0; i < c.length; i++) {
System.out.println(c[i]);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
2,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
18,
13,
13,
4,
18,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
217,
11
],
[
217,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
15,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
28,
33
],
[
22,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
22,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
47,
49
],
[
22,
50
],
[
50,
51
],
[
50,
52
],
[
22,
55
],
[
55,
56
],
[
55,
57
],
[
22,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
59,
70
],
[
71,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
74,
79
],
[
71,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
80,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
93,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
102,
103
],
[
102,
104
],
[
22,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
105,
113
],
[
113,
114
],
[
114,
115
],
[
105,
116
],
[
117,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
125,
126
],
[
126,
127
],
[
22,
128
],
[
128,
129
],
[
128,
130
],
[
22,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
137,
138
],
[
137,
139
],
[
132,
140
],
[
140,
141
],
[
141,
142
],
[
132,
143
],
[
144,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
147,
149
],
[
144,
150
],
[
150,
151
],
[
150,
152
],
[
144,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
153,
158
],
[
158,
159
],
[
158,
160
],
[
153,
161
],
[
161,
162
],
[
162,
163
],
[
153,
164
],
[
165,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
174,
175
],
[
174,
176
],
[
144,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
22,
182
],
[
182,
183
],
[
182,
184
],
[
22,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
185,
190
],
[
190,
191
],
[
190,
192
],
[
185,
193
],
[
193,
194
],
[
194,
195
],
[
185,
196
],
[
197,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
198,
201
],
[
201,
202
],
[
201,
203
],
[
197,
204
],
[
204,
205
],
[
205,
206
],
[
204,
207
],
[
22,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
208,
213
],
[
12,
214
],
[
214,
215
],
[
0,
216
],
[
216,
217
],
[
216,
218
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) {\n try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {\n String[] input = in.readLine().split(\" \");\n int n = Integer.parseInt(input[0]);\n int m = Integer.parseInt(input[1]);\n int[][] A = new int[n][m];\n int[] b = new int[m];\n\n for (int i = 0; i < n; i++) {\n String[] aij = in.readLine().split(\" \");\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(aij[j]);\n }\n }\n\n for (int i = 0; i < m; i++) {\n b[i] = Integer.parseInt(in.readLine());\n }\n\n int[] c = new int[n];\n for (int i = 0; i < n; i++) {\n int[] a = A[i];\n int sum = 0;\n for (int j = 0; j < m; j++) {\n sum = sum + a[j] * b[j];\n }\n c[i] = sum;\n }\n\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < n; i++) {\n sb.append(c[i]);\n sb.append(\"\\n\");\n }\n System.out.print(sb);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n public static void main(String[] args) {\n try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {\n String[] input = in.readLine().split(\" \");\n int n = Integer.parseInt(input[0]);\n int m = Integer.parseInt(input[1]);\n int[][] A = new int[n][m];\n int[] b = new int[m];\n\n for (int i = 0; i < n; i++) {\n String[] aij = in.readLine().split(\" \");\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(aij[j]);\n }\n }\n\n for (int i = 0; i < m; i++) {\n b[i] = Integer.parseInt(in.readLine());\n }\n\n int[] c = new int[n];\n for (int i = 0; i < n; i++) {\n int[] a = A[i];\n int sum = 0;\n for (int j = 0; j < m; j++) {\n sum = sum + a[j] * b[j];\n }\n c[i] = sum;\n }\n\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < n; i++) {\n sb.append(c[i]);\n sb.append(\"\\n\");\n }\n System.out.print(sb);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {\n String[] input = in.readLine().split(\" \");\n int n = Integer.parseInt(input[0]);\n int m = Integer.parseInt(input[1]);\n int[][] A = new int[n][m];\n int[] b = new int[m];\n\n for (int i = 0; i < n; i++) {\n String[] aij = in.readLine().split(\" \");\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(aij[j]);\n }\n }\n\n for (int i = 0; i < m; i++) {\n b[i] = Integer.parseInt(in.readLine());\n }\n\n int[] c = new int[n];\n for (int i = 0; i < n; i++) {\n int[] a = A[i];\n int sum = 0;\n for (int j = 0; j < m; j++) {\n sum = sum + a[j] * b[j];\n }\n c[i] = sum;\n }\n\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < n; i++) {\n sb.append(c[i]);\n sb.append(\"\\n\");\n }\n System.out.print(sb);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"main",
"{\n try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {\n String[] input = in.readLine().split(\" \");\n int n = Integer.parseInt(input[0]);\n int m = Integer.parseInt(input[1]);\n int[][] A = new int[n][m];\n int[] b = new int[m];\n\n for (int i = 0; i < n; i++) {\n String[] aij = in.readLine().split(\" \");\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(aij[j]);\n }\n }\n\n for (int i = 0; i < m; i++) {\n b[i] = Integer.parseInt(in.readLine());\n }\n\n int[] c = new int[n];\n for (int i = 0; i < n; i++) {\n int[] a = A[i];\n int sum = 0;\n for (int j = 0; j < m; j++) {\n sum = sum + a[j] * b[j];\n }\n c[i] = sum;\n }\n\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < n; i++) {\n sb.append(c[i]);\n sb.append(\"\\n\");\n }\n System.out.print(sb);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {\n String[] input = in.readLine().split(\" \");\n int n = Integer.parseInt(input[0]);\n int m = Integer.parseInt(input[1]);\n int[][] A = new int[n][m];\n int[] b = new int[m];\n\n for (int i = 0; i < n; i++) {\n String[] aij = in.readLine().split(\" \");\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(aij[j]);\n }\n }\n\n for (int i = 0; i < m; i++) {\n b[i] = Integer.parseInt(in.readLine());\n }\n\n int[] c = new int[n];\n for (int i = 0; i < n; i++) {\n int[] a = A[i];\n int sum = 0;\n for (int j = 0; j < m; j++) {\n sum = sum + a[j] * b[j];\n }\n c[i] = sum;\n }\n\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < n; i++) {\n sb.append(c[i]);\n sb.append(\"\\n\");\n }\n System.out.print(sb);\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n String[] input = in.readLine().split(\" \");\n int n = Integer.parseInt(input[0]);\n int m = Integer.parseInt(input[1]);\n int[][] A = new int[n][m];\n int[] b = new int[m];\n\n for (int i = 0; i < n; i++) {\n String[] aij = in.readLine().split(\" \");\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(aij[j]);\n }\n }\n\n for (int i = 0; i < m; i++) {\n b[i] = Integer.parseInt(in.readLine());\n }\n\n int[] c = new int[n];\n for (int i = 0; i < n; i++) {\n int[] a = A[i];\n int sum = 0;\n for (int j = 0; j < m; j++) {\n sum = sum + a[j] * b[j];\n }\n c[i] = sum;\n }\n\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < n; i++) {\n sb.append(c[i]);\n sb.append(\"\\n\");\n }\n System.out.print(sb);\n }",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in))",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in))",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] input = in.readLine().split(\" \");",
"input",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"int n = Integer.parseInt(input[0]);",
"n",
"Integer.parseInt(input[0])",
"Integer.parseInt",
"Integer",
"input[0]",
"input",
"0",
"int m = Integer.parseInt(input[1]);",
"m",
"Integer.parseInt(input[1])",
"Integer.parseInt",
"Integer",
"input[1]",
"input",
"1",
"int[][] A = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int[] b = new int[m];",
"b",
"new int[m]",
"m",
"for (int i = 0; i < n; i++) {\n String[] aij = in.readLine().split(\" \");\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(aij[j]);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String[] aij = in.readLine().split(\" \");\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(aij[j]);\n }\n }",
"{\n String[] aij = in.readLine().split(\" \");\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(aij[j]);\n }\n }",
"String[] aij = in.readLine().split(\" \");",
"aij",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(aij[j]);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n A[i][j] = Integer.parseInt(aij[j]);\n }",
"{\n A[i][j] = Integer.parseInt(aij[j]);\n }",
"A[i][j] = Integer.parseInt(aij[j])",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"Integer.parseInt(aij[j])",
"Integer.parseInt",
"Integer",
"aij[j]",
"aij",
"j",
"for (int i = 0; i < m; i++) {\n b[i] = Integer.parseInt(in.readLine());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n b[i] = Integer.parseInt(in.readLine());\n }",
"{\n b[i] = Integer.parseInt(in.readLine());\n }",
"b[i] = Integer.parseInt(in.readLine())",
"b[i]",
"b",
"i",
"Integer.parseInt(in.readLine())",
"Integer.parseInt",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"int[] c = new int[n];",
"c",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n int[] a = A[i];\n int sum = 0;\n for (int j = 0; j < m; j++) {\n sum = sum + a[j] * b[j];\n }\n c[i] = sum;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int[] a = A[i];\n int sum = 0;\n for (int j = 0; j < m; j++) {\n sum = sum + a[j] * b[j];\n }\n c[i] = sum;\n }",
"{\n int[] a = A[i];\n int sum = 0;\n for (int j = 0; j < m; j++) {\n sum = sum + a[j] * b[j];\n }\n c[i] = sum;\n }",
"int[] a = A[i];",
"a",
"A[i]",
"A",
"i",
"int sum = 0;",
"sum",
"0",
"for (int j = 0; j < m; j++) {\n sum = sum + a[j] * b[j];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n sum = sum + a[j] * b[j];\n }",
"{\n sum = sum + a[j] * b[j];\n }",
"sum = sum + a[j] * b[j]",
"sum",
"sum + a[j] * b[j]",
"sum",
"a[j] * b[j]",
"a[j]",
"a",
"j",
"b[j]",
"b",
"j",
"c[i] = sum",
"c[i]",
"c",
"i",
"sum",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"for (int i = 0; i < n; i++) {\n sb.append(c[i]);\n sb.append(\"\\n\");\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n sb.append(c[i]);\n sb.append(\"\\n\");\n }",
"{\n sb.append(c[i]);\n sb.append(\"\\n\");\n }",
"sb.append(c[i])",
"sb.append",
"sb",
"c[i]",
"c",
"i",
"sb.append(\"\\n\")",
"sb.append",
"sb",
"\"\\n\"",
"System.out.print(sb)",
"System.out.print",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {\n String[] input = in.readLine().split(\" \");\n int n = Integer.parseInt(input[0]);\n int m = Integer.parseInt(input[1]);\n int[][] A = new int[n][m];\n int[] b = new int[m];\n\n for (int i = 0; i < n; i++) {\n String[] aij = in.readLine().split(\" \");\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(aij[j]);\n }\n }\n\n for (int i = 0; i < m; i++) {\n b[i] = Integer.parseInt(in.readLine());\n }\n\n int[] c = new int[n];\n for (int i = 0; i < n; i++) {\n int[] a = A[i];\n int sum = 0;\n for (int j = 0; j < m; j++) {\n sum = sum + a[j] * b[j];\n }\n c[i] = sum;\n }\n\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < n; i++) {\n sb.append(c[i]);\n sb.append(\"\\n\");\n }\n System.out.print(sb);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {\n String[] input = in.readLine().split(\" \");\n int n = Integer.parseInt(input[0]);\n int m = Integer.parseInt(input[1]);\n int[][] A = new int[n][m];\n int[] b = new int[m];\n\n for (int i = 0; i < n; i++) {\n String[] aij = in.readLine().split(\" \");\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(aij[j]);\n }\n }\n\n for (int i = 0; i < m; i++) {\n b[i] = Integer.parseInt(in.readLine());\n }\n\n int[] c = new int[n];\n for (int i = 0; i < n; i++) {\n int[] a = A[i];\n int sum = 0;\n for (int j = 0; j < m; j++) {\n sum = sum + a[j] * b[j];\n }\n c[i] = sum;\n }\n\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < n; i++) {\n sb.append(c[i]);\n sb.append(\"\\n\");\n }\n System.out.print(sb);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {
String[] input = in.readLine().split(" ");
int n = Integer.parseInt(input[0]);
int m = Integer.parseInt(input[1]);
int[][] A = new int[n][m];
int[] b = new int[m];
for (int i = 0; i < n; i++) {
String[] aij = in.readLine().split(" ");
for (int j = 0; j < m; j++) {
A[i][j] = Integer.parseInt(aij[j]);
}
}
for (int i = 0; i < m; i++) {
b[i] = Integer.parseInt(in.readLine());
}
int[] c = new int[n];
for (int i = 0; i < n; i++) {
int[] a = A[i];
int sum = 0;
for (int j = 0; j < m; j++) {
sum = sum + a[j] * b[j];
}
c[i] = sum;
}
StringBuilder sb = new StringBuilder();
for (int i = 0; i < n; i++) {
sb.append(c[i]);
sb.append("\n");
}
System.out.print(sb);
} catch (IOException e) {
e.printStackTrace();
}
}
}
|
[
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,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
8,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
86,
94
],
[
94,
95
],
[
95,
96
],
[
86,
97
],
[
98,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
110,
111
],
[
111,
112
],
[
102,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
117,
123
],
[
123,
124
],
[
123,
125
],
[
98,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
8,
132
],
[
132,
133
],
[
133,
134
],
[
6,
135
],
[
135,
136
],
[
0,
137
],
[
137,
138
],
[
137,
139
]
] | [
"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 n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tb[i] = scan.nextInt();\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint result = 0;\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tresult += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(result);\n\t\t}\n\n\t\tscan.close();\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tb[i] = scan.nextInt();\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint result = 0;\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tresult += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(result);\n\t\t}\n\n\t\tscan.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tb[i] = scan.nextInt();\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint result = 0;\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tresult += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(result);\n\t\t}\n\n\t\tscan.close();\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tb[i] = scan.nextInt();\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint result = 0;\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tresult += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(result);\n\t\t}\n\n\t\tscan.close();\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[][] a = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[] b = new int[m];",
"b",
"new int[m]",
"m",
"for(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = scan.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\ta[i][j] = scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\ta[i][j] = scan.nextInt();\n\t\t\t}",
"a[i][j] = scan.nextInt()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 0; i < m; i++) {\n\t\t\tb[i] = scan.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tb[i] = scan.nextInt();\n\t\t}",
"{\n\t\t\tb[i] = scan.nextInt();\n\t\t}",
"b[i] = scan.nextInt()",
"b[i]",
"b",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 0; i < n; i++) {\n\t\t\tint result = 0;\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tresult += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(result);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint result = 0;\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tresult += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(result);\n\t\t}",
"{\n\t\t\tint result = 0;\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tresult += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(result);\n\t\t}",
"int result = 0;",
"result",
"0",
"for(int j = 0; j < m; j++) {\n\t\t\t\tresult += a[i][j] * b[j];\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tresult += a[i][j] * b[j];\n\t\t\t}",
"{\n\t\t\t\tresult += a[i][j] * b[j];\n\t\t\t}",
"result += a[i][j] * b[j]",
"result",
"a[i][j] * b[j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tb[i] = scan.nextInt();\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint result = 0;\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tresult += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(result);\n\t\t}\n\n\t\tscan.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tb[i] = scan.nextInt();\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint result = 0;\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tresult += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(result);\n\t\t}\n\n\t\tscan.close();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int m = scan.nextInt();
int[][] a = new int[n][m];
int[] b = new int[m];
for(int i = 0; i < n; i++) {
for(int j = 0; j < m; j++) {
a[i][j] = scan.nextInt();
}
}
for(int i = 0; i < m; i++) {
b[i] = scan.nextInt();
}
for(int i = 0; i < n; i++) {
int result = 0;
for(int j = 0; j < m; j++) {
result += a[i][j] * b[j];
}
System.out.println(result);
}
scan.close();
}
}
|
[
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,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
12,
13,
30,
0,
13,
20,
0,
13,
20,
0,
13,
20,
23,
13,
12,
13,
30,
38,
5,
13,
30,
37,
20,
30,
14,
2,
4,
18,
13,
18,
13,
13,
30,
29,
18,
13,
13,
12,
13,
30,
38,
5,
13,
30,
37,
20,
30,
14,
2,
4,
18,
13,
18,
13,
13,
30,
37,
20,
29,
18,
13,
13,
12,
13,
30,
10,
6,
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
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
229,
20
],
[
229,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
23,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
23,
37
],
[
37,
38
],
[
37,
39
],
[
23,
42
],
[
42,
43
],
[
42,
44
],
[
23,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
59,
70
],
[
71,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
72,
78
],
[
78,
79
],
[
79,
80
],
[
23,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
86,
87
],
[
86,
88
],
[
81,
89
],
[
89,
90
],
[
90,
91
],
[
81,
92
],
[
93,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
99,
100
],
[
23,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
106,
107
],
[
106,
108
],
[
101,
109
],
[
109,
110
],
[
110,
111
],
[
101,
112
],
[
113,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
122,
123
],
[
122,
124
],
[
117,
125
],
[
125,
126
],
[
126,
127
],
[
117,
128
],
[
129,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
132,
138
],
[
138,
139
],
[
138,
140
],
[
113,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
141,
146
],
[
23,
147
],
[
147,
148
],
[
148,
149
],
[
21,
150
],
[
150,
151
],
[
229,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
152,
156
],
[
156,
157
],
[
152,
158
],
[
158,
159
],
[
152,
160
],
[
160,
161
],
[
160,
162
],
[
152,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
169,
170
],
[
169,
171
],
[
165,
172
],
[
172,
173
],
[
172,
174
],
[
163,
175
],
[
175,
176
],
[
152,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
180,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
188,
192
],
[
192,
193
],
[
192,
194
],
[
187,
195
],
[
179,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
152,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
203,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
211,
215
],
[
215,
216
],
[
215,
217
],
[
210,
218
],
[
218,
219
],
[
219,
220
],
[
202,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
152,
225
],
[
225,
226
],
[
225,
227
],
[
0,
228
],
[
228,
229
],
[
228,
230
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.StreamTokenizer;\nimport java.util.InputMismatchException;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < m; j++) {\n\t\t\tb[j] = sc.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint c = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tc += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t}\n\n\t\tsc.close();\n\t}\n\n\t@SuppressWarnings(\"unused\")\n\tprivate static class Scanner {\n\t\tInputStreamReader isr;\n\t\tBufferedReader br;\n\t\tStreamTokenizer st;\n\n\t\tprivate Scanner() {\n\t\t}\n\n\t\tScanner (InputStream in) {\n\t\t\tisr = new InputStreamReader(in);\n\t\t\tbr = new BufferedReader(isr);\n\t\t\tst = new StreamTokenizer(br);\n\t\t}\n\n\t\tString next() throws RuntimeException {\n\t\t\ttry {\n\t\t\t\tif (st.nextToken() != StreamTokenizer.TT_WORD) {\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IllegalStateException();\n\t\t\t}\n\n\t\t\treturn st.sval;\n\t\t}\n\n\t\tint nextInt() throws RuntimeException {\n\t\t\ttry {\n\t\t\t\tif (st.nextToken() != StreamTokenizer.TT_NUMBER) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IllegalStateException();\n\t\t\t}\n\n\t\t\treturn (int)st.nval;\n\t\t}\n\n\t\tvoid close() {\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.StreamTokenizer;",
"StreamTokenizer",
"java.io",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < m; j++) {\n\t\t\tb[j] = sc.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint c = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tc += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t}\n\n\t\tsc.close();\n\t}\n\n\t@SuppressWarnings(\"unused\")\n\tprivate static class Scanner {\n\t\tInputStreamReader isr;\n\t\tBufferedReader br;\n\t\tStreamTokenizer st;\n\n\t\tprivate Scanner() {\n\t\t}\n\n\t\tScanner (InputStream in) {\n\t\t\tisr = new InputStreamReader(in);\n\t\t\tbr = new BufferedReader(isr);\n\t\t\tst = new StreamTokenizer(br);\n\t\t}\n\n\t\tString next() throws RuntimeException {\n\t\t\ttry {\n\t\t\t\tif (st.nextToken() != StreamTokenizer.TT_WORD) {\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IllegalStateException();\n\t\t\t}\n\n\t\t\treturn st.sval;\n\t\t}\n\n\t\tint nextInt() throws RuntimeException {\n\t\t\ttry {\n\t\t\t\tif (st.nextToken() != StreamTokenizer.TT_NUMBER) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IllegalStateException();\n\t\t\t}\n\n\t\t\treturn (int)st.nval;\n\t\t}\n\n\t\tvoid close() {\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < m; j++) {\n\t\t\tb[j] = sc.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint c = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tc += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t}\n\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < m; j++) {\n\t\t\tb[j] = sc.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint c = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tc += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t}\n\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] a = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[] b = new int[m];",
"b",
"new int[m]",
"m",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for (int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}",
"a[i][j] = sc.nextInt()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int j = 0; j < m; j++) {\n\t\t\tb[j] = sc.nextInt();\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\tb[j] = sc.nextInt();\n\t\t}",
"{\n\t\t\tb[j] = sc.nextInt();\n\t\t}",
"b[j] = sc.nextInt()",
"b[j]",
"b",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < n; i++) {\n\t\t\tint c = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tc += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint c = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tc += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t}",
"{\n\t\t\tint c = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tc += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t}",
"int c = 0;",
"c",
"0",
"for (int j = 0; j < m; j++) {\n\t\t\t\tc += a[i][j] * b[j];\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tc += a[i][j] * b[j];\n\t\t\t}",
"{\n\t\t\t\tc += a[i][j] * b[j];\n\t\t\t}",
"c += a[i][j] * b[j]",
"c",
"a[i][j] * b[j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"System.out.println(c)",
"System.out.println",
"System.out",
"System",
"System.out",
"c",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"private static class Scanner {\n\t\tInputStreamReader isr;\n\t\tBufferedReader br;\n\t\tStreamTokenizer st;\n\n\t\tprivate Scanner() {\n\t\t}\n\n\t\tScanner (InputStream in) {\n\t\t\tisr = new InputStreamReader(in);\n\t\t\tbr = new BufferedReader(isr);\n\t\t\tst = new StreamTokenizer(br);\n\t\t}\n\n\t\tString next() throws RuntimeException {\n\t\t\ttry {\n\t\t\t\tif (st.nextToken() != StreamTokenizer.TT_WORD) {\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IllegalStateException();\n\t\t\t}\n\n\t\t\treturn st.sval;\n\t\t}\n\n\t\tint nextInt() throws RuntimeException {\n\t\t\ttry {\n\t\t\t\tif (st.nextToken() != StreamTokenizer.TT_NUMBER) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IllegalStateException();\n\t\t\t}\n\n\t\t\treturn (int)st.nval;\n\t\t}\n\n\t\tvoid close() {\n\t\t}\n\t}",
"Scanner",
"InputStreamReader isr;",
"isr",
"BufferedReader br;",
"br",
"StreamTokenizer st;",
"st",
"private Scanner() {\n\t\t}",
"Scanner",
"{\n\t\t}",
"Scanner (InputStream in) {\n\t\t\tisr = new InputStreamReader(in);\n\t\t\tbr = new BufferedReader(isr);\n\t\t\tst = new StreamTokenizer(br);\n\t\t}",
"Scanner",
"{\n\t\t\tisr = new InputStreamReader(in);\n\t\t\tbr = new BufferedReader(isr);\n\t\t\tst = new StreamTokenizer(br);\n\t\t}",
"isr = new InputStreamReader(in)",
"isr",
"new InputStreamReader(in)",
"br = new BufferedReader(isr)",
"br",
"new BufferedReader(isr)",
"st = new StreamTokenizer(br)",
"st",
"new StreamTokenizer(br)",
"InputStream in",
"in",
"String next() throws RuntimeException {\n\t\t\ttry {\n\t\t\t\tif (st.nextToken() != StreamTokenizer.TT_WORD) {\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IllegalStateException();\n\t\t\t}\n\n\t\t\treturn st.sval;\n\t\t}",
"next",
"{\n\t\t\ttry {\n\t\t\t\tif (st.nextToken() != StreamTokenizer.TT_WORD) {\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IllegalStateException();\n\t\t\t}\n\n\t\t\treturn st.sval;\n\t\t}",
"try {\n\t\t\t\tif (st.nextToken() != StreamTokenizer.TT_WORD) {\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IllegalStateException();\n\t\t\t}",
"catch (IOException e) {\n\t\t\t\tthrow new IllegalStateException();\n\t\t\t}",
"IOException e",
"{\n\t\t\t\tthrow new IllegalStateException();\n\t\t\t}",
"throw new IllegalStateException();",
"new IllegalStateException()",
"{\n\t\t\t\tif (st.nextToken() != StreamTokenizer.TT_WORD) {\n\t\t\t\t}\n\t\t\t}",
"if (st.nextToken() != StreamTokenizer.TT_WORD) {\n\t\t\t\t}",
"st.nextToken() != StreamTokenizer.TT_WORD",
"st.nextToken()",
"st.nextToken",
"st",
"StreamTokenizer.TT_WORD",
"StreamTokenizer",
"StreamTokenizer.TT_WORD",
"{\n\t\t\t\t}",
"return st.sval;",
"st.sval",
"st",
"st.sval",
"int nextInt() throws RuntimeException {\n\t\t\ttry {\n\t\t\t\tif (st.nextToken() != StreamTokenizer.TT_NUMBER) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IllegalStateException();\n\t\t\t}\n\n\t\t\treturn (int)st.nval;\n\t\t}",
"nextInt",
"{\n\t\t\ttry {\n\t\t\t\tif (st.nextToken() != StreamTokenizer.TT_NUMBER) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IllegalStateException();\n\t\t\t}\n\n\t\t\treturn (int)st.nval;\n\t\t}",
"try {\n\t\t\t\tif (st.nextToken() != StreamTokenizer.TT_NUMBER) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IllegalStateException();\n\t\t\t}",
"catch (IOException e) {\n\t\t\t\tthrow new IllegalStateException();\n\t\t\t}",
"IOException e",
"{\n\t\t\t\tthrow new IllegalStateException();\n\t\t\t}",
"throw new IllegalStateException();",
"new IllegalStateException()",
"{\n\t\t\t\tif (st.nextToken() != StreamTokenizer.TT_NUMBER) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t}",
"if (st.nextToken() != StreamTokenizer.TT_NUMBER) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"st.nextToken() != StreamTokenizer.TT_NUMBER",
"st.nextToken()",
"st.nextToken",
"st",
"StreamTokenizer.TT_NUMBER",
"StreamTokenizer",
"StreamTokenizer.TT_NUMBER",
"{\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"throw new InputMismatchException();",
"new InputMismatchException()",
"return (int)st.nval;",
"(int)st.nval",
"st",
"st.nval",
"void close() {\n\t\t}",
"close",
"{\n\t\t}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < m; j++) {\n\t\t\tb[j] = sc.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint c = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tc += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t}\n\n\t\tsc.close();\n\t}\n\n\t@SuppressWarnings(\"unused\")\n\tprivate static class Scanner {\n\t\tInputStreamReader isr;\n\t\tBufferedReader br;\n\t\tStreamTokenizer st;\n\n\t\tprivate Scanner() {\n\t\t}\n\n\t\tScanner (InputStream in) {\n\t\t\tisr = new InputStreamReader(in);\n\t\t\tbr = new BufferedReader(isr);\n\t\t\tst = new StreamTokenizer(br);\n\t\t}\n\n\t\tString next() throws RuntimeException {\n\t\t\ttry {\n\t\t\t\tif (st.nextToken() != StreamTokenizer.TT_WORD) {\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IllegalStateException();\n\t\t\t}\n\n\t\t\treturn st.sval;\n\t\t}\n\n\t\tint nextInt() throws RuntimeException {\n\t\t\ttry {\n\t\t\t\tif (st.nextToken() != StreamTokenizer.TT_NUMBER) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IllegalStateException();\n\t\t\t}\n\n\t\t\treturn (int)st.nval;\n\t\t}\n\n\t\tvoid close() {\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < m; j++) {\n\t\t\tb[j] = sc.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint c = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tc += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t}\n\n\t\tsc.close();\n\t}\n\n\t@SuppressWarnings(\"unused\")\n\tprivate static class Scanner {\n\t\tInputStreamReader isr;\n\t\tBufferedReader br;\n\t\tStreamTokenizer st;\n\n\t\tprivate Scanner() {\n\t\t}\n\n\t\tScanner (InputStream in) {\n\t\t\tisr = new InputStreamReader(in);\n\t\t\tbr = new BufferedReader(isr);\n\t\t\tst = new StreamTokenizer(br);\n\t\t}\n\n\t\tString next() throws RuntimeException {\n\t\t\ttry {\n\t\t\t\tif (st.nextToken() != StreamTokenizer.TT_WORD) {\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IllegalStateException();\n\t\t\t}\n\n\t\t\treturn st.sval;\n\t\t}\n\n\t\tint nextInt() throws RuntimeException {\n\t\t\ttry {\n\t\t\t\tif (st.nextToken() != StreamTokenizer.TT_NUMBER) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IllegalStateException();\n\t\t\t}\n\n\t\t\treturn (int)st.nval;\n\t\t}\n\n\t\tvoid close() {\n\t\t}\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.StreamTokenizer;
import java.util.InputMismatchException;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
int[][] a = new int[n][m];
int[] b = new int[m];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
a[i][j] = sc.nextInt();
}
}
for (int j = 0; j < m; j++) {
b[j] = sc.nextInt();
}
for (int i = 0; i < n; i++) {
int c = 0;
for (int j = 0; j < m; j++) {
c += a[i][j] * b[j];
}
System.out.println(c);
}
sc.close();
}
@SuppressWarnings("unused")
private static class Scanner {
InputStreamReader isr;
BufferedReader br;
StreamTokenizer st;
private Scanner() {
}
Scanner (InputStream in) {
isr = new InputStreamReader(in);
br = new BufferedReader(isr);
st = new StreamTokenizer(br);
}
String next() throws RuntimeException {
try {
if (st.nextToken() != StreamTokenizer.TT_WORD) {
}
} catch (IOException e) {
throw new IllegalStateException();
}
return st.sval;
}
int nextInt() throws RuntimeException {
try {
if (st.nextToken() != StreamTokenizer.TT_NUMBER) {
throw new InputMismatchException();
}
} catch (IOException e) {
throw new IllegalStateException();
}
return (int)st.nval;
}
void close() {
}
}
} |
[
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,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
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,
17,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
31,
41
],
[
41,
42
],
[
42,
43
],
[
31,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
46,
58
],
[
58,
59
],
[
59,
60
],
[
46,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
63,
69
],
[
69,
70
],
[
70,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
72,
82
],
[
82,
83
],
[
83,
84
],
[
72,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
91,
92
],
[
92,
93
],
[
8,
94
],
[
94,
95
],
[
94,
96
],
[
8,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
105,
107
],
[
98,
108
],
[
108,
109
],
[
109,
110
],
[
98,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
112,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
118,
130
],
[
130,
131
],
[
131,
132
],
[
118,
133
],
[
134,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
139,
145
],
[
145,
146
],
[
145,
147
],
[
8,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
155,
157
],
[
148,
158
],
[
158,
159
],
[
159,
160
],
[
148,
161
],
[
162,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
168,
169
],
[
168,
170
],
[
6,
171
],
[
171,
172
],
[
0,
173
],
[
173,
174
],
[
173,
175
]
] | [
"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 num1 = sc.nextInt();\n\t\tint num2 = sc.nextInt();\n\n\t\tint[][] gyoretu = new int[num1][num2];\n\t\tint[] retu = new int[num2];\n\n\t\tfor(int i = 0;i < gyoretu.length; i++ ) {\n\t\t\tfor(int j = 0;j < gyoretu[i].length;j++) {\n\t\t\t\tgyoretu[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i < retu.length ;i++) {\n\t\t\tretu[i] = sc.nextInt();\n\t\t}\n\t\tint[] ans = new int[num1];\n\t\tfor(int i = 0; i < gyoretu.length; i++ ) {\n\t\t\tans[i] = 0;\n\t\t\tfor(int j = 0;j < gyoretu[i].length;j++) {\n\n\t\t\t\tans[i] += gyoretu[i][j] * retu[j];\n\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0;i < ans.length;i++) {\n\t\t\tSystem.out.println(ans[i]);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num1 = sc.nextInt();\n\t\tint num2 = sc.nextInt();\n\n\t\tint[][] gyoretu = new int[num1][num2];\n\t\tint[] retu = new int[num2];\n\n\t\tfor(int i = 0;i < gyoretu.length; i++ ) {\n\t\t\tfor(int j = 0;j < gyoretu[i].length;j++) {\n\t\t\t\tgyoretu[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i < retu.length ;i++) {\n\t\t\tretu[i] = sc.nextInt();\n\t\t}\n\t\tint[] ans = new int[num1];\n\t\tfor(int i = 0; i < gyoretu.length; i++ ) {\n\t\t\tans[i] = 0;\n\t\t\tfor(int j = 0;j < gyoretu[i].length;j++) {\n\n\t\t\t\tans[i] += gyoretu[i][j] * retu[j];\n\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0;i < ans.length;i++) {\n\t\t\tSystem.out.println(ans[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num1 = sc.nextInt();\n\t\tint num2 = sc.nextInt();\n\n\t\tint[][] gyoretu = new int[num1][num2];\n\t\tint[] retu = new int[num2];\n\n\t\tfor(int i = 0;i < gyoretu.length; i++ ) {\n\t\t\tfor(int j = 0;j < gyoretu[i].length;j++) {\n\t\t\t\tgyoretu[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i < retu.length ;i++) {\n\t\t\tretu[i] = sc.nextInt();\n\t\t}\n\t\tint[] ans = new int[num1];\n\t\tfor(int i = 0; i < gyoretu.length; i++ ) {\n\t\t\tans[i] = 0;\n\t\t\tfor(int j = 0;j < gyoretu[i].length;j++) {\n\n\t\t\t\tans[i] += gyoretu[i][j] * retu[j];\n\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0;i < ans.length;i++) {\n\t\t\tSystem.out.println(ans[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num1 = sc.nextInt();\n\t\tint num2 = sc.nextInt();\n\n\t\tint[][] gyoretu = new int[num1][num2];\n\t\tint[] retu = new int[num2];\n\n\t\tfor(int i = 0;i < gyoretu.length; i++ ) {\n\t\t\tfor(int j = 0;j < gyoretu[i].length;j++) {\n\t\t\t\tgyoretu[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i < retu.length ;i++) {\n\t\t\tretu[i] = sc.nextInt();\n\t\t}\n\t\tint[] ans = new int[num1];\n\t\tfor(int i = 0; i < gyoretu.length; i++ ) {\n\t\t\tans[i] = 0;\n\t\t\tfor(int j = 0;j < gyoretu[i].length;j++) {\n\n\t\t\t\tans[i] += gyoretu[i][j] * retu[j];\n\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0;i < ans.length;i++) {\n\t\t\tSystem.out.println(ans[i]);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int num1 = sc.nextInt();",
"num1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int num2 = sc.nextInt();",
"num2",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] gyoretu = new int[num1][num2];",
"gyoretu",
"new int[num1][num2]",
"num1",
"num2",
"int[] retu = new int[num2];",
"retu",
"new int[num2]",
"num2",
"for(int i = 0;i < gyoretu.length; i++ ) {\n\t\t\tfor(int j = 0;j < gyoretu[i].length;j++) {\n\t\t\t\tgyoretu[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < gyoretu.length",
"i",
"gyoretu.length",
"gyoretu",
"gyoretu.length",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0;j < gyoretu[i].length;j++) {\n\t\t\t\tgyoretu[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0;j < gyoretu[i].length;j++) {\n\t\t\t\tgyoretu[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0;j < gyoretu[i].length;j++) {\n\t\t\t\tgyoretu[i][j] = sc.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < gyoretu[i].length",
"j",
"gyoretu[i].length",
"gyoretu[i]",
"gyoretu",
"i",
"gyoretu[i].length",
"j++",
"j++",
"j",
"{\n\t\t\t\tgyoretu[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tgyoretu[i][j] = sc.nextInt();\n\t\t\t}",
"gyoretu[i][j] = sc.nextInt()",
"gyoretu[i][j]",
"gyoretu[i]",
"gyoretu",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0;i < retu.length ;i++) {\n\t\t\tretu[i] = sc.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < retu.length",
"i",
"retu.length",
"retu",
"retu.length",
"i++",
"i++",
"i",
"{\n\t\t\tretu[i] = sc.nextInt();\n\t\t}",
"{\n\t\t\tretu[i] = sc.nextInt();\n\t\t}",
"retu[i] = sc.nextInt()",
"retu[i]",
"retu",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] ans = new int[num1];",
"ans",
"new int[num1]",
"num1",
"for(int i = 0; i < gyoretu.length; i++ ) {\n\t\t\tans[i] = 0;\n\t\t\tfor(int j = 0;j < gyoretu[i].length;j++) {\n\n\t\t\t\tans[i] += gyoretu[i][j] * retu[j];\n\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < gyoretu.length",
"i",
"gyoretu.length",
"gyoretu",
"gyoretu.length",
"i++",
"i++",
"i",
"{\n\t\t\tans[i] = 0;\n\t\t\tfor(int j = 0;j < gyoretu[i].length;j++) {\n\n\t\t\t\tans[i] += gyoretu[i][j] * retu[j];\n\n\t\t\t}\n\t\t}",
"{\n\t\t\tans[i] = 0;\n\t\t\tfor(int j = 0;j < gyoretu[i].length;j++) {\n\n\t\t\t\tans[i] += gyoretu[i][j] * retu[j];\n\n\t\t\t}\n\t\t}",
"ans[i] = 0",
"ans[i]",
"ans",
"i",
"0",
"for(int j = 0;j < gyoretu[i].length;j++) {\n\n\t\t\t\tans[i] += gyoretu[i][j] * retu[j];\n\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < gyoretu[i].length",
"j",
"gyoretu[i].length",
"gyoretu[i]",
"gyoretu",
"i",
"gyoretu[i].length",
"j++",
"j++",
"j",
"{\n\n\t\t\t\tans[i] += gyoretu[i][j] * retu[j];\n\n\t\t\t}",
"{\n\n\t\t\t\tans[i] += gyoretu[i][j] * retu[j];\n\n\t\t\t}",
"ans[i] += gyoretu[i][j] * retu[j]",
"ans[i]",
"ans",
"i",
"gyoretu[i][j] * retu[j]",
"gyoretu[i][j]",
"gyoretu[i]",
"gyoretu",
"i",
"j",
"retu[j]",
"retu",
"j",
"for(int i = 0;i < ans.length;i++) {\n\t\t\tSystem.out.println(ans[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < ans.length",
"i",
"ans.length",
"ans",
"ans.length",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(ans[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(ans[i]);\n\t\t}",
"System.out.println(ans[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"ans[i]",
"ans",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num1 = sc.nextInt();\n\t\tint num2 = sc.nextInt();\n\n\t\tint[][] gyoretu = new int[num1][num2];\n\t\tint[] retu = new int[num2];\n\n\t\tfor(int i = 0;i < gyoretu.length; i++ ) {\n\t\t\tfor(int j = 0;j < gyoretu[i].length;j++) {\n\t\t\t\tgyoretu[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i < retu.length ;i++) {\n\t\t\tretu[i] = sc.nextInt();\n\t\t}\n\t\tint[] ans = new int[num1];\n\t\tfor(int i = 0; i < gyoretu.length; i++ ) {\n\t\t\tans[i] = 0;\n\t\t\tfor(int j = 0;j < gyoretu[i].length;j++) {\n\n\t\t\t\tans[i] += gyoretu[i][j] * retu[j];\n\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0;i < ans.length;i++) {\n\t\t\tSystem.out.println(ans[i]);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num1 = sc.nextInt();\n\t\tint num2 = sc.nextInt();\n\n\t\tint[][] gyoretu = new int[num1][num2];\n\t\tint[] retu = new int[num2];\n\n\t\tfor(int i = 0;i < gyoretu.length; i++ ) {\n\t\t\tfor(int j = 0;j < gyoretu[i].length;j++) {\n\t\t\t\tgyoretu[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i < retu.length ;i++) {\n\t\t\tretu[i] = sc.nextInt();\n\t\t}\n\t\tint[] ans = new int[num1];\n\t\tfor(int i = 0; i < gyoretu.length; i++ ) {\n\t\t\tans[i] = 0;\n\t\t\tfor(int j = 0;j < gyoretu[i].length;j++) {\n\n\t\t\t\tans[i] += gyoretu[i][j] * retu[j];\n\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0;i < ans.length;i++) {\n\t\t\tSystem.out.println(ans[i]);\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int num1 = sc.nextInt();
int num2 = sc.nextInt();
int[][] gyoretu = new int[num1][num2];
int[] retu = new int[num2];
for(int i = 0;i < gyoretu.length; i++ ) {
for(int j = 0;j < gyoretu[i].length;j++) {
gyoretu[i][j] = sc.nextInt();
}
}
for(int i = 0;i < retu.length ;i++) {
retu[i] = sc.nextInt();
}
int[] ans = new int[num1];
for(int i = 0; i < gyoretu.length; i++ ) {
ans[i] = 0;
for(int j = 0;j < gyoretu[i].length;j++) {
ans[i] += gyoretu[i][j] * retu[j];
}
}
for(int i = 0;i < ans.length;i++) {
System.out.println(ans[i]);
}
}
} |
[
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,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
178,
11
],
[
178,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
18,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
28,
33
],
[
25,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
25,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
47,
49
],
[
25,
50
],
[
50,
51
],
[
50,
52
],
[
25,
55
],
[
55,
56
],
[
55,
57
],
[
25,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
59,
70
],
[
71,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
74,
79
],
[
71,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
80,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
93,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
102,
103
],
[
102,
104
],
[
25,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
105,
113
],
[
113,
114
],
[
114,
115
],
[
105,
116
],
[
117,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
125,
126
],
[
126,
127
],
[
25,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
133,
134
],
[
133,
135
],
[
128,
136
],
[
136,
137
],
[
137,
138
],
[
128,
139
],
[
140,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
144,
149
],
[
149,
150
],
[
149,
151
],
[
144,
152
],
[
152,
153
],
[
153,
154
],
[
144,
155
],
[
156,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
159,
165
],
[
165,
166
],
[
165,
167
],
[
140,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
168,
174
],
[
12,
175
],
[
175,
176
],
[
0,
177
],
[
177,
178
],
[
177,
179
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\npublic class Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String[] arr1 = br.readLine().split(\" \");\n int n = Integer.parseInt(arr1[0]), m = Integer.parseInt(arr1[1]);\n // int n = 3, m = 4;\n\n int[][] A = new int[n][m];\n int[] b = new int[m];\n // A\n // String[] hoge = {\"1 2 0 1\", \"0 3 0 1\",\"4 1 1 0\"};\n for(int i=0; i<n; i++) {\n String[] arr2 = br.readLine().split(\" \");\n // String[] arr2 = hoge[i].split(\" \");\n for(int j=0;j<m;j++){\n A[i][j] = Integer.parseInt(arr2[j]);\n }\n }\n // b\n // int[] fuga = {1, 2, 3, 0};\n for(int i=0; i<m; i++) {\n b[i] = Integer.parseInt(br.readLine());\n // b[i] = fuga[i];\n }\n \n for(int i=0; i<n; i++) {\n int tmp = 0;\n for(int j=0; j<m; j++){\n tmp += A[i][j]*b[j];\n }\n System.out.printf(\"%d\\n\", tmp);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"public class Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String[] arr1 = br.readLine().split(\" \");\n int n = Integer.parseInt(arr1[0]), m = Integer.parseInt(arr1[1]);\n // int n = 3, m = 4;\n\n int[][] A = new int[n][m];\n int[] b = new int[m];\n // A\n // String[] hoge = {\"1 2 0 1\", \"0 3 0 1\",\"4 1 1 0\"};\n for(int i=0; i<n; i++) {\n String[] arr2 = br.readLine().split(\" \");\n // String[] arr2 = hoge[i].split(\" \");\n for(int j=0;j<m;j++){\n A[i][j] = Integer.parseInt(arr2[j]);\n }\n }\n // b\n // int[] fuga = {1, 2, 3, 0};\n for(int i=0; i<m; i++) {\n b[i] = Integer.parseInt(br.readLine());\n // b[i] = fuga[i];\n }\n \n for(int i=0; i<n; i++) {\n int tmp = 0;\n for(int j=0; j<m; j++){\n tmp += A[i][j]*b[j];\n }\n System.out.printf(\"%d\\n\", tmp);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String[] arr1 = br.readLine().split(\" \");\n int n = Integer.parseInt(arr1[0]), m = Integer.parseInt(arr1[1]);\n // int n = 3, m = 4;\n\n int[][] A = new int[n][m];\n int[] b = new int[m];\n // A\n // String[] hoge = {\"1 2 0 1\", \"0 3 0 1\",\"4 1 1 0\"};\n for(int i=0; i<n; i++) {\n String[] arr2 = br.readLine().split(\" \");\n // String[] arr2 = hoge[i].split(\" \");\n for(int j=0;j<m;j++){\n A[i][j] = Integer.parseInt(arr2[j]);\n }\n }\n // b\n // int[] fuga = {1, 2, 3, 0};\n for(int i=0; i<m; i++) {\n b[i] = Integer.parseInt(br.readLine());\n // b[i] = fuga[i];\n }\n \n for(int i=0; i<n; i++) {\n int tmp = 0;\n for(int j=0; j<m; j++){\n tmp += A[i][j]*b[j];\n }\n System.out.printf(\"%d\\n\", tmp);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String[] arr1 = br.readLine().split(\" \");\n int n = Integer.parseInt(arr1[0]), m = Integer.parseInt(arr1[1]);\n // int n = 3, m = 4;\n\n int[][] A = new int[n][m];\n int[] b = new int[m];\n // A\n // String[] hoge = {\"1 2 0 1\", \"0 3 0 1\",\"4 1 1 0\"};\n for(int i=0; i<n; i++) {\n String[] arr2 = br.readLine().split(\" \");\n // String[] arr2 = hoge[i].split(\" \");\n for(int j=0;j<m;j++){\n A[i][j] = Integer.parseInt(arr2[j]);\n }\n }\n // b\n // int[] fuga = {1, 2, 3, 0};\n for(int i=0; i<m; i++) {\n b[i] = Integer.parseInt(br.readLine());\n // b[i] = fuga[i];\n }\n \n for(int i=0; i<n; i++) {\n int tmp = 0;\n for(int j=0; j<m; j++){\n tmp += A[i][j]*b[j];\n }\n System.out.printf(\"%d\\n\", tmp);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"try {\n String[] arr1 = br.readLine().split(\" \");\n int n = Integer.parseInt(arr1[0]), m = Integer.parseInt(arr1[1]);\n // int n = 3, m = 4;\n\n int[][] A = new int[n][m];\n int[] b = new int[m];\n // A\n // String[] hoge = {\"1 2 0 1\", \"0 3 0 1\",\"4 1 1 0\"};\n for(int i=0; i<n; i++) {\n String[] arr2 = br.readLine().split(\" \");\n // String[] arr2 = hoge[i].split(\" \");\n for(int j=0;j<m;j++){\n A[i][j] = Integer.parseInt(arr2[j]);\n }\n }\n // b\n // int[] fuga = {1, 2, 3, 0};\n for(int i=0; i<m; i++) {\n b[i] = Integer.parseInt(br.readLine());\n // b[i] = fuga[i];\n }\n \n for(int i=0; i<n; i++) {\n int tmp = 0;\n for(int j=0; j<m; j++){\n tmp += A[i][j]*b[j];\n }\n System.out.printf(\"%d\\n\", tmp);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n String[] arr1 = br.readLine().split(\" \");\n int n = Integer.parseInt(arr1[0]), m = Integer.parseInt(arr1[1]);\n // int n = 3, m = 4;\n\n int[][] A = new int[n][m];\n int[] b = new int[m];\n // A\n // String[] hoge = {\"1 2 0 1\", \"0 3 0 1\",\"4 1 1 0\"};\n for(int i=0; i<n; i++) {\n String[] arr2 = br.readLine().split(\" \");\n // String[] arr2 = hoge[i].split(\" \");\n for(int j=0;j<m;j++){\n A[i][j] = Integer.parseInt(arr2[j]);\n }\n }\n // b\n // int[] fuga = {1, 2, 3, 0};\n for(int i=0; i<m; i++) {\n b[i] = Integer.parseInt(br.readLine());\n // b[i] = fuga[i];\n }\n \n for(int i=0; i<n; i++) {\n int tmp = 0;\n for(int j=0; j<m; j++){\n tmp += A[i][j]*b[j];\n }\n System.out.printf(\"%d\\n\", tmp);\n }\n }",
"String[] arr1 = br.readLine().split(\" \");",
"arr1",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int n = Integer.parseInt(arr1[0])",
"n",
"Integer.parseInt(arr1[0])",
"Integer.parseInt",
"Integer",
"arr1[0]",
"arr1",
"0",
"m = Integer.parseInt(arr1[1]);",
"m",
"Integer.parseInt(arr1[1])",
"Integer.parseInt",
"Integer",
"arr1[1]",
"arr1",
"1",
"int[][] A = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int[] b = new int[m];",
"b",
"new int[m]",
"m",
"for(int i=0; i<n; i++) {\n String[] arr2 = br.readLine().split(\" \");\n // String[] arr2 = hoge[i].split(\" \");\n for(int j=0;j<m;j++){\n A[i][j] = Integer.parseInt(arr2[j]);\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String[] arr2 = br.readLine().split(\" \");\n // String[] arr2 = hoge[i].split(\" \");\n for(int j=0;j<m;j++){\n A[i][j] = Integer.parseInt(arr2[j]);\n }\n }",
"{\n String[] arr2 = br.readLine().split(\" \");\n // String[] arr2 = hoge[i].split(\" \");\n for(int j=0;j<m;j++){\n A[i][j] = Integer.parseInt(arr2[j]);\n }\n }",
"String[] arr2 = br.readLine().split(\" \");",
"arr2",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(int j=0;j<m;j++){\n A[i][j] = Integer.parseInt(arr2[j]);\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n A[i][j] = Integer.parseInt(arr2[j]);\n }",
"{\n A[i][j] = Integer.parseInt(arr2[j]);\n }",
"A[i][j] = Integer.parseInt(arr2[j])",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"Integer.parseInt(arr2[j])",
"Integer.parseInt",
"Integer",
"arr2[j]",
"arr2",
"j",
"for(int i=0; i<m; i++) {\n b[i] = Integer.parseInt(br.readLine());\n // b[i] = fuga[i];\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n b[i] = Integer.parseInt(br.readLine());\n // b[i] = fuga[i];\n }",
"{\n b[i] = Integer.parseInt(br.readLine());\n // b[i] = fuga[i];\n }",
"b[i] = Integer.parseInt(br.readLine())",
"b[i]",
"b",
"i",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int i=0; i<n; i++) {\n int tmp = 0;\n for(int j=0; j<m; j++){\n tmp += A[i][j]*b[j];\n }\n System.out.printf(\"%d\\n\", tmp);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int tmp = 0;\n for(int j=0; j<m; j++){\n tmp += A[i][j]*b[j];\n }\n System.out.printf(\"%d\\n\", tmp);\n }",
"{\n int tmp = 0;\n for(int j=0; j<m; j++){\n tmp += A[i][j]*b[j];\n }\n System.out.printf(\"%d\\n\", tmp);\n }",
"int tmp = 0;",
"tmp",
"0",
"for(int j=0; j<m; j++){\n tmp += A[i][j]*b[j];\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n tmp += A[i][j]*b[j];\n }",
"{\n tmp += A[i][j]*b[j];\n }",
"tmp += A[i][j]*b[j]",
"tmp",
"A[i][j]*b[j]",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"b[j]",
"b",
"j",
"System.out.printf(\"%d\\n\", tmp)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d\\n\"",
"tmp",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String[] arr1 = br.readLine().split(\" \");\n int n = Integer.parseInt(arr1[0]), m = Integer.parseInt(arr1[1]);\n // int n = 3, m = 4;\n\n int[][] A = new int[n][m];\n int[] b = new int[m];\n // A\n // String[] hoge = {\"1 2 0 1\", \"0 3 0 1\",\"4 1 1 0\"};\n for(int i=0; i<n; i++) {\n String[] arr2 = br.readLine().split(\" \");\n // String[] arr2 = hoge[i].split(\" \");\n for(int j=0;j<m;j++){\n A[i][j] = Integer.parseInt(arr2[j]);\n }\n }\n // b\n // int[] fuga = {1, 2, 3, 0};\n for(int i=0; i<m; i++) {\n b[i] = Integer.parseInt(br.readLine());\n // b[i] = fuga[i];\n }\n \n for(int i=0; i<n; i++) {\n int tmp = 0;\n for(int j=0; j<m; j++){\n tmp += A[i][j]*b[j];\n }\n System.out.printf(\"%d\\n\", tmp);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String[] arr1 = br.readLine().split(\" \");\n int n = Integer.parseInt(arr1[0]), m = Integer.parseInt(arr1[1]);\n // int n = 3, m = 4;\n\n int[][] A = new int[n][m];\n int[] b = new int[m];\n // A\n // String[] hoge = {\"1 2 0 1\", \"0 3 0 1\",\"4 1 1 0\"};\n for(int i=0; i<n; i++) {\n String[] arr2 = br.readLine().split(\" \");\n // String[] arr2 = hoge[i].split(\" \");\n for(int j=0;j<m;j++){\n A[i][j] = Integer.parseInt(arr2[j]);\n }\n }\n // b\n // int[] fuga = {1, 2, 3, 0};\n for(int i=0; i<m; i++) {\n b[i] = Integer.parseInt(br.readLine());\n // b[i] = fuga[i];\n }\n \n for(int i=0; i<n; i++) {\n int tmp = 0;\n for(int j=0; j<m; j++){\n tmp += A[i][j]*b[j];\n }\n System.out.printf(\"%d\\n\", tmp);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class Main {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
String[] arr1 = br.readLine().split(" ");
int n = Integer.parseInt(arr1[0]), m = Integer.parseInt(arr1[1]);
// int n = 3, m = 4;
int[][] A = new int[n][m];
int[] b = new int[m];
// A
// String[] hoge = {"1 2 0 1", "0 3 0 1","4 1 1 0"};
for(int i=0; i<n; i++) {
String[] arr2 = br.readLine().split(" ");
// String[] arr2 = hoge[i].split(" ");
for(int j=0;j<m;j++){
A[i][j] = Integer.parseInt(arr2[j]);
}
}
// b
// int[] fuga = {1, 2, 3, 0};
for(int i=0; i<m; i++) {
b[i] = Integer.parseInt(br.readLine());
// b[i] = fuga[i];
}
for(int i=0; i<n; i++) {
int tmp = 0;
for(int j=0; j<m; j++){
tmp += A[i][j]*b[j];
}
System.out.printf("%d\n", tmp);
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
13,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
0,
13,
4,
18,
13,
13,
4,
18,
13,
13,
0,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
40,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
4,
18,
18,
13,
13,
18,
13,
13,
0,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
252,
8
],
[
252,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
11,
33
],
[
33,
34
],
[
33,
35
],
[
11,
36
],
[
36,
37
],
[
11,
38
],
[
38,
39
],
[
38,
40
],
[
11,
41
],
[
41,
42
],
[
41,
43
],
[
11,
44
],
[
44,
45
],
[
44,
46
],
[
11,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
11,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
11,
57
],
[
57,
58
],
[
57,
59
],
[
11,
62
],
[
62,
63
],
[
62,
64
],
[
11,
66
],
[
66,
67
],
[
66,
68
],
[
11,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
83,
91
],
[
91,
92
],
[
92,
93
],
[
83,
94
],
[
95,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
99,
100
],
[
100,
101
],
[
82,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
102,
112
],
[
112,
113
],
[
113,
114
],
[
102,
115
],
[
116,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
116,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
125,
128
],
[
116,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
82,
133
],
[
133,
134
],
[
133,
135
],
[
11,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
141,
142
],
[
141,
143
],
[
136,
144
],
[
144,
145
],
[
145,
146
],
[
136,
147
],
[
148,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
149,
154
],
[
154,
155
],
[
154,
156
],
[
149,
157
],
[
157,
158
],
[
158,
159
],
[
149,
160
],
[
161,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
163,
167
],
[
162,
168
],
[
168,
169
],
[
169,
170
],
[
168,
171
],
[
171,
172
],
[
11,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
173,
178
],
[
178,
179
],
[
178,
180
],
[
173,
181
],
[
181,
182
],
[
182,
183
],
[
173,
184
],
[
185,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
185,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
195
],
[
11,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
196,
201
],
[
201,
202
],
[
201,
203
],
[
196,
204
],
[
204,
205
],
[
205,
206
],
[
196,
207
],
[
208,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
209,
214
],
[
214,
215
],
[
214,
216
],
[
209,
217
],
[
217,
218
],
[
218,
219
],
[
209,
220
],
[
221,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
225,
229
],
[
224,
230
],
[
230,
231
],
[
230,
232
],
[
208,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
233,
237
],
[
208,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
238,
243
],
[
243,
244
],
[
243,
245
],
[
208,
246
],
[
246,
247
],
[
246,
248
],
[
9,
249
],
[
249,
250
],
[
0,
251
],
[
251,
252
],
[
251,
253
]
] | [
"import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint n = 0, m = 0;\n\t\tint b = 0;\n\t\tint temp1 = 0;\n\t\tint temp2 = 0;\n\t\tint sum = 0;\n\t\tint count1 = 0;\n\t\tint count2 = 0;\n\t\tString str;\n\t\tArrayList<String> st = new ArrayList<String>(); // ??\\?????????????????????b,f,r,v\n\t\tArrayList<Integer> parse = new ArrayList<Integer>(); // int??????\n\t\t/**\n\t\t * ???????????\\???(n*m??????)\n\t\t */\n\t\tScanner scan = new Scanner(System.in);\n\t\tn = scan.nextInt(); // n,m????±????\n\t\tm = scan.nextInt();\n\t\tint matrix[][] = new int[n][m];\n\t\tint vector[] = new int[m];\n\t\tint anser[] = new int[n];\n\t\t// System.out.println(n+\" \"+m);\n\t\tfor (int a = 0; a < n; ++a) { // ??\\?????¶??°????????????\n\t\t\tfor (int t = 0; t < m; ++t) { // ??\\??????????????????????????????????????????????´?\n\t\t\t\tst.add(scan.next());\n\t\t\t}\n\t\t\tfor (int p = count1; p < st.size(); ++p) { // String???Int??????\n\t\t\t\tstr = st.get(p);\n\t\t\t\ttemp1 = Integer.parseInt(str);\n\t\t\t\tparse.add(temp1);\n\t\t\t\t//System.out.println(\"parse[\" + p + \"] = \" + parse.get(p));\n\t\t\t}\n\t\t\tcount1 += m;\n\t\t}\n\t\tfor (int k = 0; k < n; ++k) { // n*m??????????????????????????\\\n\t\t\tfor (int l = 0; l < m; ++l) {\n\t\t\t\tmatrix[k][l] = parse.get(count2++);\n\t\t\t\t//System.out.println(\"matrix[\" + k + \"][\" + l + \"] : \" + matrix[k][l]);\n\t\t\t}\n\t\t}\n\t\t/**\n\t\t * ???????????\\???(m*1????????????)\n\t\t */\n\t\tfor (int i = 0; i < m; ++i) {\n\t\t\tb = scan.nextInt();\n\t\t\tvector[i] = b;\n\t\t}\n\t\t/**\n\t\t * ?¨???? n*m???????????¨m*1????????????????????????n*1????§£????±?????????????\n\t\t */\n\t\t\tfor (int d = 0; d < n; ++d) {\n\t\t\t\tfor (int f = 0; f < m; ++f) {\n\t\t\t\t\tsum += matrix[d][f] * vector[f];\n\t\t\t\t}\n\t\t\t\tanser[d] = sum;\n\t\t\t\tSystem.out.println(anser[d]);\n\t\t\t\tsum = 0;\n\t\t}\n\n\t}\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint n = 0, m = 0;\n\t\tint b = 0;\n\t\tint temp1 = 0;\n\t\tint temp2 = 0;\n\t\tint sum = 0;\n\t\tint count1 = 0;\n\t\tint count2 = 0;\n\t\tString str;\n\t\tArrayList<String> st = new ArrayList<String>(); // ??\\?????????????????????b,f,r,v\n\t\tArrayList<Integer> parse = new ArrayList<Integer>(); // int??????\n\t\t/**\n\t\t * ???????????\\???(n*m??????)\n\t\t */\n\t\tScanner scan = new Scanner(System.in);\n\t\tn = scan.nextInt(); // n,m????±????\n\t\tm = scan.nextInt();\n\t\tint matrix[][] = new int[n][m];\n\t\tint vector[] = new int[m];\n\t\tint anser[] = new int[n];\n\t\t// System.out.println(n+\" \"+m);\n\t\tfor (int a = 0; a < n; ++a) { // ??\\?????¶??°????????????\n\t\t\tfor (int t = 0; t < m; ++t) { // ??\\??????????????????????????????????????????????´?\n\t\t\t\tst.add(scan.next());\n\t\t\t}\n\t\t\tfor (int p = count1; p < st.size(); ++p) { // String???Int??????\n\t\t\t\tstr = st.get(p);\n\t\t\t\ttemp1 = Integer.parseInt(str);\n\t\t\t\tparse.add(temp1);\n\t\t\t\t//System.out.println(\"parse[\" + p + \"] = \" + parse.get(p));\n\t\t\t}\n\t\t\tcount1 += m;\n\t\t}\n\t\tfor (int k = 0; k < n; ++k) { // n*m??????????????????????????\\\n\t\t\tfor (int l = 0; l < m; ++l) {\n\t\t\t\tmatrix[k][l] = parse.get(count2++);\n\t\t\t\t//System.out.println(\"matrix[\" + k + \"][\" + l + \"] : \" + matrix[k][l]);\n\t\t\t}\n\t\t}\n\t\t/**\n\t\t * ???????????\\???(m*1????????????)\n\t\t */\n\t\tfor (int i = 0; i < m; ++i) {\n\t\t\tb = scan.nextInt();\n\t\t\tvector[i] = b;\n\t\t}\n\t\t/**\n\t\t * ?¨???? n*m???????????¨m*1????????????????????????n*1????§£????±?????????????\n\t\t */\n\t\t\tfor (int d = 0; d < n; ++d) {\n\t\t\t\tfor (int f = 0; f < m; ++f) {\n\t\t\t\t\tsum += matrix[d][f] * vector[f];\n\t\t\t\t}\n\t\t\t\tanser[d] = sum;\n\t\t\t\tSystem.out.println(anser[d]);\n\t\t\t\tsum = 0;\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tint n = 0, m = 0;\n\t\tint b = 0;\n\t\tint temp1 = 0;\n\t\tint temp2 = 0;\n\t\tint sum = 0;\n\t\tint count1 = 0;\n\t\tint count2 = 0;\n\t\tString str;\n\t\tArrayList<String> st = new ArrayList<String>(); // ??\\?????????????????????b,f,r,v\n\t\tArrayList<Integer> parse = new ArrayList<Integer>(); // int??????\n\t\t/**\n\t\t * ???????????\\???(n*m??????)\n\t\t */\n\t\tScanner scan = new Scanner(System.in);\n\t\tn = scan.nextInt(); // n,m????±????\n\t\tm = scan.nextInt();\n\t\tint matrix[][] = new int[n][m];\n\t\tint vector[] = new int[m];\n\t\tint anser[] = new int[n];\n\t\t// System.out.println(n+\" \"+m);\n\t\tfor (int a = 0; a < n; ++a) { // ??\\?????¶??°????????????\n\t\t\tfor (int t = 0; t < m; ++t) { // ??\\??????????????????????????????????????????????´?\n\t\t\t\tst.add(scan.next());\n\t\t\t}\n\t\t\tfor (int p = count1; p < st.size(); ++p) { // String???Int??????\n\t\t\t\tstr = st.get(p);\n\t\t\t\ttemp1 = Integer.parseInt(str);\n\t\t\t\tparse.add(temp1);\n\t\t\t\t//System.out.println(\"parse[\" + p + \"] = \" + parse.get(p));\n\t\t\t}\n\t\t\tcount1 += m;\n\t\t}\n\t\tfor (int k = 0; k < n; ++k) { // n*m??????????????????????????\\\n\t\t\tfor (int l = 0; l < m; ++l) {\n\t\t\t\tmatrix[k][l] = parse.get(count2++);\n\t\t\t\t//System.out.println(\"matrix[\" + k + \"][\" + l + \"] : \" + matrix[k][l]);\n\t\t\t}\n\t\t}\n\t\t/**\n\t\t * ???????????\\???(m*1????????????)\n\t\t */\n\t\tfor (int i = 0; i < m; ++i) {\n\t\t\tb = scan.nextInt();\n\t\t\tvector[i] = b;\n\t\t}\n\t\t/**\n\t\t * ?¨???? n*m???????????¨m*1????????????????????????n*1????§£????±?????????????\n\t\t */\n\t\t\tfor (int d = 0; d < n; ++d) {\n\t\t\t\tfor (int f = 0; f < m; ++f) {\n\t\t\t\t\tsum += matrix[d][f] * vector[f];\n\t\t\t\t}\n\t\t\t\tanser[d] = sum;\n\t\t\t\tSystem.out.println(anser[d]);\n\t\t\t\tsum = 0;\n\t\t}\n\n\t}",
"main",
"{\n\t\tint n = 0, m = 0;\n\t\tint b = 0;\n\t\tint temp1 = 0;\n\t\tint temp2 = 0;\n\t\tint sum = 0;\n\t\tint count1 = 0;\n\t\tint count2 = 0;\n\t\tString str;\n\t\tArrayList<String> st = new ArrayList<String>(); // ??\\?????????????????????b,f,r,v\n\t\tArrayList<Integer> parse = new ArrayList<Integer>(); // int??????\n\t\t/**\n\t\t * ???????????\\???(n*m??????)\n\t\t */\n\t\tScanner scan = new Scanner(System.in);\n\t\tn = scan.nextInt(); // n,m????±????\n\t\tm = scan.nextInt();\n\t\tint matrix[][] = new int[n][m];\n\t\tint vector[] = new int[m];\n\t\tint anser[] = new int[n];\n\t\t// System.out.println(n+\" \"+m);\n\t\tfor (int a = 0; a < n; ++a) { // ??\\?????¶??°????????????\n\t\t\tfor (int t = 0; t < m; ++t) { // ??\\??????????????????????????????????????????????´?\n\t\t\t\tst.add(scan.next());\n\t\t\t}\n\t\t\tfor (int p = count1; p < st.size(); ++p) { // String???Int??????\n\t\t\t\tstr = st.get(p);\n\t\t\t\ttemp1 = Integer.parseInt(str);\n\t\t\t\tparse.add(temp1);\n\t\t\t\t//System.out.println(\"parse[\" + p + \"] = \" + parse.get(p));\n\t\t\t}\n\t\t\tcount1 += m;\n\t\t}\n\t\tfor (int k = 0; k < n; ++k) { // n*m??????????????????????????\\\n\t\t\tfor (int l = 0; l < m; ++l) {\n\t\t\t\tmatrix[k][l] = parse.get(count2++);\n\t\t\t\t//System.out.println(\"matrix[\" + k + \"][\" + l + \"] : \" + matrix[k][l]);\n\t\t\t}\n\t\t}\n\t\t/**\n\t\t * ???????????\\???(m*1????????????)\n\t\t */\n\t\tfor (int i = 0; i < m; ++i) {\n\t\t\tb = scan.nextInt();\n\t\t\tvector[i] = b;\n\t\t}\n\t\t/**\n\t\t * ?¨???? n*m???????????¨m*1????????????????????????n*1????§£????±?????????????\n\t\t */\n\t\t\tfor (int d = 0; d < n; ++d) {\n\t\t\t\tfor (int f = 0; f < m; ++f) {\n\t\t\t\t\tsum += matrix[d][f] * vector[f];\n\t\t\t\t}\n\t\t\t\tanser[d] = sum;\n\t\t\t\tSystem.out.println(anser[d]);\n\t\t\t\tsum = 0;\n\t\t}\n\n\t}",
"int n = 0",
"n",
"0",
"m = 0;",
"m",
"0",
"int b = 0;",
"b",
"0",
"int temp1 = 0;",
"temp1",
"0",
"int temp2 = 0;",
"temp2",
"0",
"int sum = 0;",
"sum",
"0",
"int count1 = 0;",
"count1",
"0",
"int count2 = 0;",
"count2",
"0",
"String str;",
"str",
"ArrayList<String> st = new ArrayList<String>();",
"st",
"new ArrayList<String>()",
"ArrayList<Integer> parse = new ArrayList<Integer>();",
"parse",
"new ArrayList<Integer>()",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"n = scan.nextInt()",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"m = scan.nextInt()",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int matrix[][] = new int[n][m];",
"matrix",
"new int[n][m]",
"n",
"m",
"int vector[] = new int[m];",
"vector",
"new int[m]",
"m",
"int anser[] = new int[n];",
"anser",
"new int[n]",
"n",
"for (int a = 0; a < n; ++a) { // ??\\?????¶??°????????????\n\t\t\tfor (int t = 0; t < m; ++t) { // ??\\??????????????????????????????????????????????´?\n\t\t\t\tst.add(scan.next());\n\t\t\t}\n\t\t\tfor (int p = count1; p < st.size(); ++p) { // String???Int??????\n\t\t\t\tstr = st.get(p);\n\t\t\t\ttemp1 = Integer.parseInt(str);\n\t\t\t\tparse.add(temp1);\n\t\t\t\t//System.out.println(\"parse[\" + p + \"] = \" + parse.get(p));\n\t\t\t}\n\t\t\tcount1 += m;\n\t\t}",
"int a = 0;",
"int a = 0;",
"a",
"0",
"a < n",
"a",
"n",
"++a",
"++a",
"a",
"{ // ??\\?????¶??°????????????\n\t\t\tfor (int t = 0; t < m; ++t) { // ??\\??????????????????????????????????????????????´?\n\t\t\t\tst.add(scan.next());\n\t\t\t}\n\t\t\tfor (int p = count1; p < st.size(); ++p) { // String???Int??????\n\t\t\t\tstr = st.get(p);\n\t\t\t\ttemp1 = Integer.parseInt(str);\n\t\t\t\tparse.add(temp1);\n\t\t\t\t//System.out.println(\"parse[\" + p + \"] = \" + parse.get(p));\n\t\t\t}\n\t\t\tcount1 += m;\n\t\t}",
"{ // ??\\?????¶??°????????????\n\t\t\tfor (int t = 0; t < m; ++t) { // ??\\??????????????????????????????????????????????´?\n\t\t\t\tst.add(scan.next());\n\t\t\t}\n\t\t\tfor (int p = count1; p < st.size(); ++p) { // String???Int??????\n\t\t\t\tstr = st.get(p);\n\t\t\t\ttemp1 = Integer.parseInt(str);\n\t\t\t\tparse.add(temp1);\n\t\t\t\t//System.out.println(\"parse[\" + p + \"] = \" + parse.get(p));\n\t\t\t}\n\t\t\tcount1 += m;\n\t\t}",
"for (int t = 0; t < m; ++t) { // ??\\??????????????????????????????????????????????´?\n\t\t\t\tst.add(scan.next());\n\t\t\t}",
"int t = 0;",
"int t = 0;",
"t",
"0",
"t < m",
"t",
"m",
"++t",
"++t",
"t",
"{ // ??\\??????????????????????????????????????????????´?\n\t\t\t\tst.add(scan.next());\n\t\t\t}",
"{ // ??\\??????????????????????????????????????????????´?\n\t\t\t\tst.add(scan.next());\n\t\t\t}",
"st.add(scan.next())",
"st.add",
"st",
"scan.next()",
"scan.next",
"scan",
"for (int p = count1; p < st.size(); ++p) { // String???Int??????\n\t\t\t\tstr = st.get(p);\n\t\t\t\ttemp1 = Integer.parseInt(str);\n\t\t\t\tparse.add(temp1);\n\t\t\t\t//System.out.println(\"parse[\" + p + \"] = \" + parse.get(p));\n\t\t\t}",
"int p = count1;",
"int p = count1;",
"p",
"count1",
"p < st.size()",
"p",
"st.size()",
"st.size",
"st",
"++p",
"++p",
"p",
"{ // String???Int??????\n\t\t\t\tstr = st.get(p);\n\t\t\t\ttemp1 = Integer.parseInt(str);\n\t\t\t\tparse.add(temp1);\n\t\t\t\t//System.out.println(\"parse[\" + p + \"] = \" + parse.get(p));\n\t\t\t}",
"{ // String???Int??????\n\t\t\t\tstr = st.get(p);\n\t\t\t\ttemp1 = Integer.parseInt(str);\n\t\t\t\tparse.add(temp1);\n\t\t\t\t//System.out.println(\"parse[\" + p + \"] = \" + parse.get(p));\n\t\t\t}",
"str = st.get(p)",
"str",
"st.get(p)",
"st.get",
"st",
"p",
"temp1 = Integer.parseInt(str)",
"temp1",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"parse.add(temp1)",
"parse.add",
"parse",
"temp1",
"count1 += m",
"count1",
"m",
"for (int k = 0; k < n; ++k) { // n*m??????????????????????????\\\n\t\t\tfor (int l = 0; l < m; ++l) {\n\t\t\t\tmatrix[k][l] = parse.get(count2++);\n\t\t\t\t//System.out.println(\"matrix[\" + k + \"][\" + l + \"] : \" + matrix[k][l]);\n\t\t\t}\n\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < n",
"k",
"n",
"++k",
"++k",
"k",
"{ // n*m??????????????????????????\\\n\t\t\tfor (int l = 0; l < m; ++l) {\n\t\t\t\tmatrix[k][l] = parse.get(count2++);\n\t\t\t\t//System.out.println(\"matrix[\" + k + \"][\" + l + \"] : \" + matrix[k][l]);\n\t\t\t}\n\t\t}",
"{ // n*m??????????????????????????\\\n\t\t\tfor (int l = 0; l < m; ++l) {\n\t\t\t\tmatrix[k][l] = parse.get(count2++);\n\t\t\t\t//System.out.println(\"matrix[\" + k + \"][\" + l + \"] : \" + matrix[k][l]);\n\t\t\t}\n\t\t}",
"for (int l = 0; l < m; ++l) {\n\t\t\t\tmatrix[k][l] = parse.get(count2++);\n\t\t\t\t//System.out.println(\"matrix[\" + k + \"][\" + l + \"] : \" + matrix[k][l]);\n\t\t\t}",
"int l = 0;",
"int l = 0;",
"l",
"0",
"l < m",
"l",
"m",
"++l",
"++l",
"l",
"{\n\t\t\t\tmatrix[k][l] = parse.get(count2++);\n\t\t\t\t//System.out.println(\"matrix[\" + k + \"][\" + l + \"] : \" + matrix[k][l]);\n\t\t\t}",
"{\n\t\t\t\tmatrix[k][l] = parse.get(count2++);\n\t\t\t\t//System.out.println(\"matrix[\" + k + \"][\" + l + \"] : \" + matrix[k][l]);\n\t\t\t}",
"matrix[k][l] = parse.get(count2++)",
"matrix[k][l]",
"matrix[k]",
"matrix",
"k",
"l",
"parse.get(count2++)",
"parse.get",
"parse",
"count2++",
"count2",
"for (int i = 0; i < m; ++i) {\n\t\t\tb = scan.nextInt();\n\t\t\tvector[i] = b;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"++i",
"++i",
"i",
"{\n\t\t\tb = scan.nextInt();\n\t\t\tvector[i] = b;\n\t\t}",
"{\n\t\t\tb = scan.nextInt();\n\t\t\tvector[i] = b;\n\t\t}",
"b = scan.nextInt()",
"b",
"scan.nextInt()",
"scan.nextInt",
"scan",
"vector[i] = b",
"vector[i]",
"vector",
"i",
"b",
"for (int d = 0; d < n; ++d) {\n\t\t\t\tfor (int f = 0; f < m; ++f) {\n\t\t\t\t\tsum += matrix[d][f] * vector[f];\n\t\t\t\t}\n\t\t\t\tanser[d] = sum;\n\t\t\t\tSystem.out.println(anser[d]);\n\t\t\t\tsum = 0;\n\t\t}",
"int d = 0;",
"int d = 0;",
"d",
"0",
"d < n",
"d",
"n",
"++d",
"++d",
"d",
"{\n\t\t\t\tfor (int f = 0; f < m; ++f) {\n\t\t\t\t\tsum += matrix[d][f] * vector[f];\n\t\t\t\t}\n\t\t\t\tanser[d] = sum;\n\t\t\t\tSystem.out.println(anser[d]);\n\t\t\t\tsum = 0;\n\t\t}",
"{\n\t\t\t\tfor (int f = 0; f < m; ++f) {\n\t\t\t\t\tsum += matrix[d][f] * vector[f];\n\t\t\t\t}\n\t\t\t\tanser[d] = sum;\n\t\t\t\tSystem.out.println(anser[d]);\n\t\t\t\tsum = 0;\n\t\t}",
"for (int f = 0; f < m; ++f) {\n\t\t\t\t\tsum += matrix[d][f] * vector[f];\n\t\t\t\t}",
"int f = 0;",
"int f = 0;",
"f",
"0",
"f < m",
"f",
"m",
"++f",
"++f",
"f",
"{\n\t\t\t\t\tsum += matrix[d][f] * vector[f];\n\t\t\t\t}",
"{\n\t\t\t\t\tsum += matrix[d][f] * vector[f];\n\t\t\t\t}",
"sum += matrix[d][f] * vector[f]",
"sum",
"matrix[d][f] * vector[f]",
"matrix[d][f]",
"matrix[d]",
"matrix",
"d",
"f",
"vector[f]",
"vector",
"f",
"anser[d] = sum",
"anser[d]",
"anser",
"d",
"sum",
"System.out.println(anser[d])",
"System.out.println",
"System.out",
"System",
"System.out",
"anser[d]",
"anser",
"d",
"sum = 0",
"sum",
"0",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint n = 0, m = 0;\n\t\tint b = 0;\n\t\tint temp1 = 0;\n\t\tint temp2 = 0;\n\t\tint sum = 0;\n\t\tint count1 = 0;\n\t\tint count2 = 0;\n\t\tString str;\n\t\tArrayList<String> st = new ArrayList<String>(); // ??\\?????????????????????b,f,r,v\n\t\tArrayList<Integer> parse = new ArrayList<Integer>(); // int??????\n\t\t/**\n\t\t * ???????????\\???(n*m??????)\n\t\t */\n\t\tScanner scan = new Scanner(System.in);\n\t\tn = scan.nextInt(); // n,m????±????\n\t\tm = scan.nextInt();\n\t\tint matrix[][] = new int[n][m];\n\t\tint vector[] = new int[m];\n\t\tint anser[] = new int[n];\n\t\t// System.out.println(n+\" \"+m);\n\t\tfor (int a = 0; a < n; ++a) { // ??\\?????¶??°????????????\n\t\t\tfor (int t = 0; t < m; ++t) { // ??\\??????????????????????????????????????????????´?\n\t\t\t\tst.add(scan.next());\n\t\t\t}\n\t\t\tfor (int p = count1; p < st.size(); ++p) { // String???Int??????\n\t\t\t\tstr = st.get(p);\n\t\t\t\ttemp1 = Integer.parseInt(str);\n\t\t\t\tparse.add(temp1);\n\t\t\t\t//System.out.println(\"parse[\" + p + \"] = \" + parse.get(p));\n\t\t\t}\n\t\t\tcount1 += m;\n\t\t}\n\t\tfor (int k = 0; k < n; ++k) { // n*m??????????????????????????\\\n\t\t\tfor (int l = 0; l < m; ++l) {\n\t\t\t\tmatrix[k][l] = parse.get(count2++);\n\t\t\t\t//System.out.println(\"matrix[\" + k + \"][\" + l + \"] : \" + matrix[k][l]);\n\t\t\t}\n\t\t}\n\t\t/**\n\t\t * ???????????\\???(m*1????????????)\n\t\t */\n\t\tfor (int i = 0; i < m; ++i) {\n\t\t\tb = scan.nextInt();\n\t\t\tvector[i] = b;\n\t\t}\n\t\t/**\n\t\t * ?¨???? n*m???????????¨m*1????????????????????????n*1????§£????±?????????????\n\t\t */\n\t\t\tfor (int d = 0; d < n; ++d) {\n\t\t\t\tfor (int f = 0; f < m; ++f) {\n\t\t\t\t\tsum += matrix[d][f] * vector[f];\n\t\t\t\t}\n\t\t\t\tanser[d] = sum;\n\t\t\t\tSystem.out.println(anser[d]);\n\t\t\t\tsum = 0;\n\t\t}\n\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint n = 0, m = 0;\n\t\tint b = 0;\n\t\tint temp1 = 0;\n\t\tint temp2 = 0;\n\t\tint sum = 0;\n\t\tint count1 = 0;\n\t\tint count2 = 0;\n\t\tString str;\n\t\tArrayList<String> st = new ArrayList<String>(); // ??\\?????????????????????b,f,r,v\n\t\tArrayList<Integer> parse = new ArrayList<Integer>(); // int??????\n\t\t/**\n\t\t * ???????????\\???(n*m??????)\n\t\t */\n\t\tScanner scan = new Scanner(System.in);\n\t\tn = scan.nextInt(); // n,m????±????\n\t\tm = scan.nextInt();\n\t\tint matrix[][] = new int[n][m];\n\t\tint vector[] = new int[m];\n\t\tint anser[] = new int[n];\n\t\t// System.out.println(n+\" \"+m);\n\t\tfor (int a = 0; a < n; ++a) { // ??\\?????¶??°????????????\n\t\t\tfor (int t = 0; t < m; ++t) { // ??\\??????????????????????????????????????????????´?\n\t\t\t\tst.add(scan.next());\n\t\t\t}\n\t\t\tfor (int p = count1; p < st.size(); ++p) { // String???Int??????\n\t\t\t\tstr = st.get(p);\n\t\t\t\ttemp1 = Integer.parseInt(str);\n\t\t\t\tparse.add(temp1);\n\t\t\t\t//System.out.println(\"parse[\" + p + \"] = \" + parse.get(p));\n\t\t\t}\n\t\t\tcount1 += m;\n\t\t}\n\t\tfor (int k = 0; k < n; ++k) { // n*m??????????????????????????\\\n\t\t\tfor (int l = 0; l < m; ++l) {\n\t\t\t\tmatrix[k][l] = parse.get(count2++);\n\t\t\t\t//System.out.println(\"matrix[\" + k + \"][\" + l + \"] : \" + matrix[k][l]);\n\t\t\t}\n\t\t}\n\t\t/**\n\t\t * ???????????\\???(m*1????????????)\n\t\t */\n\t\tfor (int i = 0; i < m; ++i) {\n\t\t\tb = scan.nextInt();\n\t\t\tvector[i] = b;\n\t\t}\n\t\t/**\n\t\t * ?¨???? n*m???????????¨m*1????????????????????????n*1????§£????±?????????????\n\t\t */\n\t\t\tfor (int d = 0; d < n; ++d) {\n\t\t\t\tfor (int f = 0; f < m; ++f) {\n\t\t\t\t\tsum += matrix[d][f] * vector[f];\n\t\t\t\t}\n\t\t\t\tanser[d] = sum;\n\t\t\t\tSystem.out.println(anser[d]);\n\t\t\t\tsum = 0;\n\t\t}\n\n\t}\n}",
"Main"
] | import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int n = 0, m = 0;
int b = 0;
int temp1 = 0;
int temp2 = 0;
int sum = 0;
int count1 = 0;
int count2 = 0;
String str;
ArrayList<String> st = new ArrayList<String>(); // ??\?????????????????????b,f,r,v
ArrayList<Integer> parse = new ArrayList<Integer>(); // int??????
/**
* ???????????\???(n*m??????)
*/
Scanner scan = new Scanner(System.in);
n = scan.nextInt(); // n,m????±????
m = scan.nextInt();
int matrix[][] = new int[n][m];
int vector[] = new int[m];
int anser[] = new int[n];
// System.out.println(n+" "+m);
for (int a = 0; a < n; ++a) { // ??\?????¶??°????????????
for (int t = 0; t < m; ++t) { // ??\??????????????????????????????????????????????´?
st.add(scan.next());
}
for (int p = count1; p < st.size(); ++p) { // String???Int??????
str = st.get(p);
temp1 = Integer.parseInt(str);
parse.add(temp1);
//System.out.println("parse[" + p + "] = " + parse.get(p));
}
count1 += m;
}
for (int k = 0; k < n; ++k) { // n*m??????????????????????????\
for (int l = 0; l < m; ++l) {
matrix[k][l] = parse.get(count2++);
//System.out.println("matrix[" + k + "][" + l + "] : " + matrix[k][l]);
}
}
/**
* ???????????\???(m*1????????????)
*/
for (int i = 0; i < m; ++i) {
b = scan.nextInt();
vector[i] = b;
}
/**
* ?¨???? n*m???????????¨m*1????????????????????????n*1????§£????±?????????????
*/
for (int d = 0; d < n; ++d) {
for (int f = 0; f < m; ++f) {
sum += matrix[d][f] * vector[f];
}
anser[d] = sum;
System.out.println(anser[d]);
sum = 0;
}
}
} |
[
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,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
18,
13,
13,
0,
18,
18,
13,
13,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
0,
18,
13,
13,
4,
18,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
31,
33
],
[
11,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
11,
42
],
[
42,
43
],
[
42,
44
],
[
11,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
59,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
59,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
71,
82
],
[
83,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
89,
90
],
[
89,
91
],
[
83,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
92,
98
],
[
11,
99
],
[
99,
100
],
[
99,
101
],
[
11,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
103,
111
],
[
111,
112
],
[
112,
113
],
[
103,
114
],
[
115,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
115,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
115,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
134,
135
],
[
134,
136
],
[
11,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
142,
143
],
[
142,
144
],
[
137,
145
],
[
145,
146
],
[
146,
147
],
[
137,
148
],
[
149,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
153,
154
],
[
153,
155
],
[
149,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
156,
161
],
[
161,
162
],
[
161,
163
],
[
156,
164
],
[
164,
165
],
[
165,
166
],
[
156,
167
],
[
168,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
171,
177
],
[
177,
178
],
[
177,
179
],
[
168,
180
],
[
180,
181
],
[
180,
182
],
[
149,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
183,
188
],
[
11,
189
],
[
189,
190
],
[
190,
191
],
[
9,
192
],
[
192,
193
],
[
0,
194
],
[
194,
195
],
[
194,
196
]
] | [
"import java.util.*;\nimport java.io.*;\n\npublic class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n \n String[] temp = str.split(\"\\\\s\");\n \n int r = Integer.parseInt(temp[0]);\n int c = Integer.parseInt(temp[1]);\n int[][] inp = new int[r][c];\n \n \n\n for(int i=0;i<r;i++){\n str = br.readLine();\n String[] line = str.split(\"\\\\s\");\n for(int j=0; j<c; j++){\n int x = Integer.parseInt(line[j]);\n inp[i][j]= x;\n }\n }\n\n \n int[] ve = new int[c];\n for(int k=0; k<c ; k++){\n str = br.readLine();\n String[] strs = str.split(\"\\\\s\");\n ve[k] = Integer.parseInt(strs[0]);\n //System.out.println(ve[k]);\n }\n \n for(int i=0;i<r;i++){\n int ans =0;\n int atemp = 0;\n for(int j =0;j<c;j++){\n atemp = inp[i][j] * ve[j];\n ans += atemp; \n }\n System.out.println(ans);\n }\n br.close();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n \n String[] temp = str.split(\"\\\\s\");\n \n int r = Integer.parseInt(temp[0]);\n int c = Integer.parseInt(temp[1]);\n int[][] inp = new int[r][c];\n \n \n\n for(int i=0;i<r;i++){\n str = br.readLine();\n String[] line = str.split(\"\\\\s\");\n for(int j=0; j<c; j++){\n int x = Integer.parseInt(line[j]);\n inp[i][j]= x;\n }\n }\n\n \n int[] ve = new int[c];\n for(int k=0; k<c ; k++){\n str = br.readLine();\n String[] strs = str.split(\"\\\\s\");\n ve[k] = Integer.parseInt(strs[0]);\n //System.out.println(ve[k]);\n }\n \n for(int i=0;i<r;i++){\n int ans =0;\n int atemp = 0;\n for(int j =0;j<c;j++){\n atemp = inp[i][j] * ve[j];\n ans += atemp; \n }\n System.out.println(ans);\n }\n br.close();\n }\n}",
"Main",
"public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n \n String[] temp = str.split(\"\\\\s\");\n \n int r = Integer.parseInt(temp[0]);\n int c = Integer.parseInt(temp[1]);\n int[][] inp = new int[r][c];\n \n \n\n for(int i=0;i<r;i++){\n str = br.readLine();\n String[] line = str.split(\"\\\\s\");\n for(int j=0; j<c; j++){\n int x = Integer.parseInt(line[j]);\n inp[i][j]= x;\n }\n }\n\n \n int[] ve = new int[c];\n for(int k=0; k<c ; k++){\n str = br.readLine();\n String[] strs = str.split(\"\\\\s\");\n ve[k] = Integer.parseInt(strs[0]);\n //System.out.println(ve[k]);\n }\n \n for(int i=0;i<r;i++){\n int ans =0;\n int atemp = 0;\n for(int j =0;j<c;j++){\n atemp = inp[i][j] * ve[j];\n ans += atemp; \n }\n System.out.println(ans);\n }\n br.close();\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n \n String[] temp = str.split(\"\\\\s\");\n \n int r = Integer.parseInt(temp[0]);\n int c = Integer.parseInt(temp[1]);\n int[][] inp = new int[r][c];\n \n \n\n for(int i=0;i<r;i++){\n str = br.readLine();\n String[] line = str.split(\"\\\\s\");\n for(int j=0; j<c; j++){\n int x = Integer.parseInt(line[j]);\n inp[i][j]= x;\n }\n }\n\n \n int[] ve = new int[c];\n for(int k=0; k<c ; k++){\n str = br.readLine();\n String[] strs = str.split(\"\\\\s\");\n ve[k] = Integer.parseInt(strs[0]);\n //System.out.println(ve[k]);\n }\n \n for(int i=0;i<r;i++){\n int ans =0;\n int atemp = 0;\n for(int j =0;j<c;j++){\n atemp = inp[i][j] * ve[j];\n ans += atemp; \n }\n System.out.println(ans);\n }\n br.close();\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"String[] temp = str.split(\"\\\\s\");",
"temp",
"str.split(\"\\\\s\")",
"str.split",
"str",
"\"\\\\s\"",
"int r = Integer.parseInt(temp[0]);",
"r",
"Integer.parseInt(temp[0])",
"Integer.parseInt",
"Integer",
"temp[0]",
"temp",
"0",
"int c = Integer.parseInt(temp[1]);",
"c",
"Integer.parseInt(temp[1])",
"Integer.parseInt",
"Integer",
"temp[1]",
"temp",
"1",
"int[][] inp = new int[r][c];",
"inp",
"new int[r][c]",
"r",
"c",
"for(int i=0;i<r;i++){\n str = br.readLine();\n String[] line = str.split(\"\\\\s\");\n for(int j=0; j<c; j++){\n int x = Integer.parseInt(line[j]);\n inp[i][j]= x;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<r",
"i",
"r",
"i++",
"i++",
"i",
"{\n str = br.readLine();\n String[] line = str.split(\"\\\\s\");\n for(int j=0; j<c; j++){\n int x = Integer.parseInt(line[j]);\n inp[i][j]= x;\n }\n }",
"{\n str = br.readLine();\n String[] line = str.split(\"\\\\s\");\n for(int j=0; j<c; j++){\n int x = Integer.parseInt(line[j]);\n inp[i][j]= x;\n }\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"String[] line = str.split(\"\\\\s\");",
"line",
"str.split(\"\\\\s\")",
"str.split",
"str",
"\"\\\\s\"",
"for(int j=0; j<c; j++){\n int x = Integer.parseInt(line[j]);\n inp[i][j]= x;\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<c",
"j",
"c",
"j++",
"j++",
"j",
"{\n int x = Integer.parseInt(line[j]);\n inp[i][j]= x;\n }",
"{\n int x = Integer.parseInt(line[j]);\n inp[i][j]= x;\n }",
"int x = Integer.parseInt(line[j]);",
"x",
"Integer.parseInt(line[j])",
"Integer.parseInt",
"Integer",
"line[j]",
"line",
"j",
"inp[i][j]= x",
"inp[i][j]",
"inp[i]",
"inp",
"i",
"j",
"x",
"int[] ve = new int[c];",
"ve",
"new int[c]",
"c",
"for(int k=0; k<c ; k++){\n str = br.readLine();\n String[] strs = str.split(\"\\\\s\");\n ve[k] = Integer.parseInt(strs[0]);\n //System.out.println(ve[k]);\n }",
"int k=0;",
"int k=0;",
"k",
"0",
"k<c",
"k",
"c",
"k++",
"k++",
"k",
"{\n str = br.readLine();\n String[] strs = str.split(\"\\\\s\");\n ve[k] = Integer.parseInt(strs[0]);\n //System.out.println(ve[k]);\n }",
"{\n str = br.readLine();\n String[] strs = str.split(\"\\\\s\");\n ve[k] = Integer.parseInt(strs[0]);\n //System.out.println(ve[k]);\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"String[] strs = str.split(\"\\\\s\");",
"strs",
"str.split(\"\\\\s\")",
"str.split",
"str",
"\"\\\\s\"",
"ve[k] = Integer.parseInt(strs[0])",
"ve[k]",
"ve",
"k",
"Integer.parseInt(strs[0])",
"Integer.parseInt",
"Integer",
"strs[0]",
"strs",
"0",
"for(int i=0;i<r;i++){\n int ans =0;\n int atemp = 0;\n for(int j =0;j<c;j++){\n atemp = inp[i][j] * ve[j];\n ans += atemp; \n }\n System.out.println(ans);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<r",
"i",
"r",
"i++",
"i++",
"i",
"{\n int ans =0;\n int atemp = 0;\n for(int j =0;j<c;j++){\n atemp = inp[i][j] * ve[j];\n ans += atemp; \n }\n System.out.println(ans);\n }",
"{\n int ans =0;\n int atemp = 0;\n for(int j =0;j<c;j++){\n atemp = inp[i][j] * ve[j];\n ans += atemp; \n }\n System.out.println(ans);\n }",
"int ans =0;",
"ans",
"0",
"int atemp = 0;",
"atemp",
"0",
"for(int j =0;j<c;j++){\n atemp = inp[i][j] * ve[j];\n ans += atemp; \n }",
"int j =0;",
"int j =0;",
"j",
"0",
"j<c",
"j",
"c",
"j++",
"j++",
"j",
"{\n atemp = inp[i][j] * ve[j];\n ans += atemp; \n }",
"{\n atemp = inp[i][j] * ve[j];\n ans += atemp; \n }",
"atemp = inp[i][j] * ve[j]",
"atemp",
"inp[i][j] * ve[j]",
"inp[i][j]",
"inp[i]",
"inp",
"i",
"j",
"ve[j]",
"ve",
"j",
"ans += atemp",
"ans",
"atemp",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"br.close()",
"br.close",
"br",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n \n String[] temp = str.split(\"\\\\s\");\n \n int r = Integer.parseInt(temp[0]);\n int c = Integer.parseInt(temp[1]);\n int[][] inp = new int[r][c];\n \n \n\n for(int i=0;i<r;i++){\n str = br.readLine();\n String[] line = str.split(\"\\\\s\");\n for(int j=0; j<c; j++){\n int x = Integer.parseInt(line[j]);\n inp[i][j]= x;\n }\n }\n\n \n int[] ve = new int[c];\n for(int k=0; k<c ; k++){\n str = br.readLine();\n String[] strs = str.split(\"\\\\s\");\n ve[k] = Integer.parseInt(strs[0]);\n //System.out.println(ve[k]);\n }\n \n for(int i=0;i<r;i++){\n int ans =0;\n int atemp = 0;\n for(int j =0;j<c;j++){\n atemp = inp[i][j] * ve[j];\n ans += atemp; \n }\n System.out.println(ans);\n }\n br.close();\n }\n}",
"public class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n \n String[] temp = str.split(\"\\\\s\");\n \n int r = Integer.parseInt(temp[0]);\n int c = Integer.parseInt(temp[1]);\n int[][] inp = new int[r][c];\n \n \n\n for(int i=0;i<r;i++){\n str = br.readLine();\n String[] line = str.split(\"\\\\s\");\n for(int j=0; j<c; j++){\n int x = Integer.parseInt(line[j]);\n inp[i][j]= x;\n }\n }\n\n \n int[] ve = new int[c];\n for(int k=0; k<c ; k++){\n str = br.readLine();\n String[] strs = str.split(\"\\\\s\");\n ve[k] = Integer.parseInt(strs[0]);\n //System.out.println(ve[k]);\n }\n \n for(int i=0;i<r;i++){\n int ans =0;\n int atemp = 0;\n for(int j =0;j<c;j++){\n atemp = inp[i][j] * ve[j];\n ans += atemp; \n }\n System.out.println(ans);\n }\n br.close();\n }\n}",
"Main"
] | import java.util.*;
import java.io.*;
public class Main{
public static void main(String[] args)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
String[] temp = str.split("\\s");
int r = Integer.parseInt(temp[0]);
int c = Integer.parseInt(temp[1]);
int[][] inp = new int[r][c];
for(int i=0;i<r;i++){
str = br.readLine();
String[] line = str.split("\\s");
for(int j=0; j<c; j++){
int x = Integer.parseInt(line[j]);
inp[i][j]= x;
}
}
int[] ve = new int[c];
for(int k=0; k<c ; k++){
str = br.readLine();
String[] strs = str.split("\\s");
ve[k] = Integer.parseInt(strs[0]);
//System.out.println(ve[k]);
}
for(int i=0;i<r;i++){
int ans =0;
int atemp = 0;
for(int j =0;j<c;j++){
atemp = inp[i][j] * ve[j];
ans += atemp;
}
System.out.println(ans);
}
br.close();
}
} |
[
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,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
13,
13,
2,
18,
18,
13,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
221,
8
],
[
221,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
31,
33
],
[
11,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
11,
42
],
[
42,
43
],
[
42,
44
],
[
11,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
62,
63
],
[
11,
64
],
[
64,
65
],
[
64,
66
],
[
11,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
84,
85
],
[
11,
86
],
[
86,
87
],
[
86,
88
],
[
11,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
91,
99
],
[
99,
100
],
[
100,
101
],
[
91,
102
],
[
103,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
103,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
103,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
123,
125
],
[
116,
126
],
[
126,
127
],
[
127,
128
],
[
116,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
131,
137
],
[
137,
138
],
[
138,
139
],
[
137,
140
],
[
140,
141
],
[
140,
142
],
[
11,
143
],
[
143,
144
],
[
143,
145
],
[
11,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
147,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
154,
156
],
[
147,
157
],
[
157,
158
],
[
158,
159
],
[
147,
160
],
[
161,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
162,
174
],
[
174,
175
],
[
175,
176
],
[
162,
177
],
[
178,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
183,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
188,
192
],
[
187,
193
],
[
193,
194
],
[
194,
195
],
[
193,
196
],
[
11,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
197,
202
],
[
202,
203
],
[
202,
204
],
[
197,
205
],
[
205,
206
],
[
206,
207
],
[
197,
208
],
[
209,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
210,
215
],
[
215,
216
],
[
215,
217
],
[
9,
218
],
[
218,
219
],
[
0,
220
],
[
220,
221
],
[
220,
222
]
] | [
"import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws java.lang.Exception\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\t//n??¨m???????????\\?????????int????????°???????´???????\n\t\tString s = scan.nextLine();\n\t\tString[] ary = s.split(\" \");\n\t\tint n = Integer.parseInt(ary[0]);\n\t\tint m = Integer.parseInt(ary[1]);\n\t\t\n\t\t//n???????????±???????´???????\n\t\tArrayList<String> array = new ArrayList<String>();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tarray.add(scan.nextLine());\n\t\t}\n\t\t\n\t\tArrayList<Integer> data = new ArrayList<Integer>();\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tdata.add(scan.nextInt());\n\t\t}\n\t\t\n\t\t//int??????????????????2?¬?????????????????´???????\n\t\tint [][] intArray = new int[n][m];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString str = array.get(i);\n\t\t\tString [] strAry = str.split(\" \");\n\t\t\tfor(int j = 0; j < strAry.length; j++) {\n\t\t\t\tintArray[i][j] = Integer.parseInt(strAry[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tint[] sum = new int[n];\n\t\tfor(int i = 0; i < intArray.length; i++) {\n\t\t\tfor(int j = 0; j < intArray[i].length; j++) {\n\t\t\t\tsum[i] = sum[i] + (intArray[i][j] * data.get(j));\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(sum[i]);\n\t\t}\n\t}\n\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) throws java.lang.Exception\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\t//n??¨m???????????\\?????????int????????°???????´???????\n\t\tString s = scan.nextLine();\n\t\tString[] ary = s.split(\" \");\n\t\tint n = Integer.parseInt(ary[0]);\n\t\tint m = Integer.parseInt(ary[1]);\n\t\t\n\t\t//n???????????±???????´???????\n\t\tArrayList<String> array = new ArrayList<String>();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tarray.add(scan.nextLine());\n\t\t}\n\t\t\n\t\tArrayList<Integer> data = new ArrayList<Integer>();\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tdata.add(scan.nextInt());\n\t\t}\n\t\t\n\t\t//int??????????????????2?¬?????????????????´???????\n\t\tint [][] intArray = new int[n][m];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString str = array.get(i);\n\t\t\tString [] strAry = str.split(\" \");\n\t\t\tfor(int j = 0; j < strAry.length; j++) {\n\t\t\t\tintArray[i][j] = Integer.parseInt(strAry[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tint[] sum = new int[n];\n\t\tfor(int i = 0; i < intArray.length; i++) {\n\t\t\tfor(int j = 0; j < intArray[i].length; j++) {\n\t\t\t\tsum[i] = sum[i] + (intArray[i][j] * data.get(j));\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(sum[i]);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws java.lang.Exception\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\t//n??¨m???????????\\?????????int????????°???????´???????\n\t\tString s = scan.nextLine();\n\t\tString[] ary = s.split(\" \");\n\t\tint n = Integer.parseInt(ary[0]);\n\t\tint m = Integer.parseInt(ary[1]);\n\t\t\n\t\t//n???????????±???????´???????\n\t\tArrayList<String> array = new ArrayList<String>();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tarray.add(scan.nextLine());\n\t\t}\n\t\t\n\t\tArrayList<Integer> data = new ArrayList<Integer>();\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tdata.add(scan.nextInt());\n\t\t}\n\t\t\n\t\t//int??????????????????2?¬?????????????????´???????\n\t\tint [][] intArray = new int[n][m];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString str = array.get(i);\n\t\t\tString [] strAry = str.split(\" \");\n\t\t\tfor(int j = 0; j < strAry.length; j++) {\n\t\t\t\tintArray[i][j] = Integer.parseInt(strAry[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tint[] sum = new int[n];\n\t\tfor(int i = 0; i < intArray.length; i++) {\n\t\t\tfor(int j = 0; j < intArray[i].length; j++) {\n\t\t\t\tsum[i] = sum[i] + (intArray[i][j] * data.get(j));\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(sum[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\t//n??¨m???????????\\?????????int????????°???????´???????\n\t\tString s = scan.nextLine();\n\t\tString[] ary = s.split(\" \");\n\t\tint n = Integer.parseInt(ary[0]);\n\t\tint m = Integer.parseInt(ary[1]);\n\t\t\n\t\t//n???????????±???????´???????\n\t\tArrayList<String> array = new ArrayList<String>();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tarray.add(scan.nextLine());\n\t\t}\n\t\t\n\t\tArrayList<Integer> data = new ArrayList<Integer>();\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tdata.add(scan.nextInt());\n\t\t}\n\t\t\n\t\t//int??????????????????2?¬?????????????????´???????\n\t\tint [][] intArray = new int[n][m];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString str = array.get(i);\n\t\t\tString [] strAry = str.split(\" \");\n\t\t\tfor(int j = 0; j < strAry.length; j++) {\n\t\t\t\tintArray[i][j] = Integer.parseInt(strAry[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tint[] sum = new int[n];\n\t\tfor(int i = 0; i < intArray.length; i++) {\n\t\t\tfor(int j = 0; j < intArray[i].length; j++) {\n\t\t\t\tsum[i] = sum[i] + (intArray[i][j] * data.get(j));\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(sum[i]);\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String s = scan.nextLine();",
"s",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String[] ary = s.split(\" \");",
"ary",
"s.split(\" \")",
"s.split",
"s",
"\" \"",
"int n = Integer.parseInt(ary[0]);",
"n",
"Integer.parseInt(ary[0])",
"Integer.parseInt",
"Integer",
"ary[0]",
"ary",
"0",
"int m = Integer.parseInt(ary[1]);",
"m",
"Integer.parseInt(ary[1])",
"Integer.parseInt",
"Integer",
"ary[1]",
"ary",
"1",
"ArrayList<String> array = new ArrayList<String>();",
"array",
"new ArrayList<String>()",
"for(int i = 0; i < n; i++) {\n\t\t\tarray.add(scan.nextLine());\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tarray.add(scan.nextLine());\n\t\t}",
"{\n\t\t\tarray.add(scan.nextLine());\n\t\t}",
"array.add(scan.nextLine())",
"array.add",
"array",
"scan.nextLine()",
"scan.nextLine",
"scan",
"ArrayList<Integer> data = new ArrayList<Integer>();",
"data",
"new ArrayList<Integer>()",
"for(int i = 0; i < m; i++) {\n\t\t\tdata.add(scan.nextInt());\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tdata.add(scan.nextInt());\n\t\t}",
"{\n\t\t\tdata.add(scan.nextInt());\n\t\t}",
"data.add(scan.nextInt())",
"data.add",
"data",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int [][] intArray = new int[n][m];",
"intArray",
"new int[n][m]",
"n",
"m",
"for(int i = 0; i < n; i++) {\n\t\t\tString str = array.get(i);\n\t\t\tString [] strAry = str.split(\" \");\n\t\t\tfor(int j = 0; j < strAry.length; j++) {\n\t\t\t\tintArray[i][j] = Integer.parseInt(strAry[j]);\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString str = array.get(i);\n\t\t\tString [] strAry = str.split(\" \");\n\t\t\tfor(int j = 0; j < strAry.length; j++) {\n\t\t\t\tintArray[i][j] = Integer.parseInt(strAry[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tString str = array.get(i);\n\t\t\tString [] strAry = str.split(\" \");\n\t\t\tfor(int j = 0; j < strAry.length; j++) {\n\t\t\t\tintArray[i][j] = Integer.parseInt(strAry[j]);\n\t\t\t}\n\t\t}",
"String str = array.get(i);",
"str",
"array.get(i)",
"array.get",
"array",
"i",
"String [] strAry = str.split(\" \");",
"strAry",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"for(int j = 0; j < strAry.length; j++) {\n\t\t\t\tintArray[i][j] = Integer.parseInt(strAry[j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < strAry.length",
"j",
"strAry.length",
"strAry",
"strAry.length",
"j++",
"j++",
"j",
"{\n\t\t\t\tintArray[i][j] = Integer.parseInt(strAry[j]);\n\t\t\t}",
"{\n\t\t\t\tintArray[i][j] = Integer.parseInt(strAry[j]);\n\t\t\t}",
"intArray[i][j] = Integer.parseInt(strAry[j])",
"intArray[i][j]",
"intArray[i]",
"intArray",
"i",
"j",
"Integer.parseInt(strAry[j])",
"Integer.parseInt",
"Integer",
"strAry[j]",
"strAry",
"j",
"int[] sum = new int[n];",
"sum",
"new int[n]",
"n",
"for(int i = 0; i < intArray.length; i++) {\n\t\t\tfor(int j = 0; j < intArray[i].length; j++) {\n\t\t\t\tsum[i] = sum[i] + (intArray[i][j] * data.get(j));\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < intArray.length",
"i",
"intArray.length",
"intArray",
"intArray.length",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < intArray[i].length; j++) {\n\t\t\t\tsum[i] = sum[i] + (intArray[i][j] * data.get(j));\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < intArray[i].length; j++) {\n\t\t\t\tsum[i] = sum[i] + (intArray[i][j] * data.get(j));\n\t\t\t}\n\t\t}",
"for(int j = 0; j < intArray[i].length; j++) {\n\t\t\t\tsum[i] = sum[i] + (intArray[i][j] * data.get(j));\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < intArray[i].length",
"j",
"intArray[i].length",
"intArray[i]",
"intArray",
"i",
"intArray[i].length",
"j++",
"j++",
"j",
"{\n\t\t\t\tsum[i] = sum[i] + (intArray[i][j] * data.get(j));\n\t\t\t}",
"{\n\t\t\t\tsum[i] = sum[i] + (intArray[i][j] * data.get(j));\n\t\t\t}",
"sum[i] = sum[i] + (intArray[i][j] * data.get(j))",
"sum[i]",
"sum",
"i",
"sum[i] + (intArray[i][j] * data.get(j))",
"sum[i]",
"sum",
"i",
"(intArray[i][j] * data.get(j))",
"intArray[i][j]",
"intArray[i]",
"intArray",
"i",
"j",
"data.get(j)",
"data.get",
"data",
"j",
"for(int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(sum[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(sum[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(sum[i]);\n\t\t}",
"System.out.println(sum[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"sum[i]",
"sum",
"i",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws java.lang.Exception\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\t//n??¨m???????????\\?????????int????????°???????´???????\n\t\tString s = scan.nextLine();\n\t\tString[] ary = s.split(\" \");\n\t\tint n = Integer.parseInt(ary[0]);\n\t\tint m = Integer.parseInt(ary[1]);\n\t\t\n\t\t//n???????????±???????´???????\n\t\tArrayList<String> array = new ArrayList<String>();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tarray.add(scan.nextLine());\n\t\t}\n\t\t\n\t\tArrayList<Integer> data = new ArrayList<Integer>();\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tdata.add(scan.nextInt());\n\t\t}\n\t\t\n\t\t//int??????????????????2?¬?????????????????´???????\n\t\tint [][] intArray = new int[n][m];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString str = array.get(i);\n\t\t\tString [] strAry = str.split(\" \");\n\t\t\tfor(int j = 0; j < strAry.length; j++) {\n\t\t\t\tintArray[i][j] = Integer.parseInt(strAry[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tint[] sum = new int[n];\n\t\tfor(int i = 0; i < intArray.length; i++) {\n\t\t\tfor(int j = 0; j < intArray[i].length; j++) {\n\t\t\t\tsum[i] = sum[i] + (intArray[i][j] * data.get(j));\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(sum[i]);\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws java.lang.Exception\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\t//n??¨m???????????\\?????????int????????°???????´???????\n\t\tString s = scan.nextLine();\n\t\tString[] ary = s.split(\" \");\n\t\tint n = Integer.parseInt(ary[0]);\n\t\tint m = Integer.parseInt(ary[1]);\n\t\t\n\t\t//n???????????±???????´???????\n\t\tArrayList<String> array = new ArrayList<String>();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tarray.add(scan.nextLine());\n\t\t}\n\t\t\n\t\tArrayList<Integer> data = new ArrayList<Integer>();\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tdata.add(scan.nextInt());\n\t\t}\n\t\t\n\t\t//int??????????????????2?¬?????????????????´???????\n\t\tint [][] intArray = new int[n][m];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString str = array.get(i);\n\t\t\tString [] strAry = str.split(\" \");\n\t\t\tfor(int j = 0; j < strAry.length; j++) {\n\t\t\t\tintArray[i][j] = Integer.parseInt(strAry[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tint[] sum = new int[n];\n\t\tfor(int i = 0; i < intArray.length; i++) {\n\t\t\tfor(int j = 0; j < intArray[i].length; j++) {\n\t\t\t\tsum[i] = sum[i] + (intArray[i][j] * data.get(j));\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(sum[i]);\n\t\t}\n\t}\n\n}",
"Main"
] | import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws java.lang.Exception
{
Scanner scan = new Scanner(System.in);
//n??¨m???????????\?????????int????????°???????´???????
String s = scan.nextLine();
String[] ary = s.split(" ");
int n = Integer.parseInt(ary[0]);
int m = Integer.parseInt(ary[1]);
//n???????????±???????´???????
ArrayList<String> array = new ArrayList<String>();
for(int i = 0; i < n; i++) {
array.add(scan.nextLine());
}
ArrayList<Integer> data = new ArrayList<Integer>();
for(int i = 0; i < m; i++) {
data.add(scan.nextInt());
}
//int??????????????????2?¬?????????????????´???????
int [][] intArray = new int[n][m];
for(int i = 0; i < n; i++) {
String str = array.get(i);
String [] strAry = str.split(" ");
for(int j = 0; j < strAry.length; j++) {
intArray[i][j] = Integer.parseInt(strAry[j]);
}
}
int[] sum = new int[n];
for(int i = 0; i < intArray.length; i++) {
for(int j = 0; j < intArray[i].length; j++) {
sum[i] = sum[i] + (intArray[i][j] * data.get(j));
}
}
for(int i = 0; i < n; i++) {
System.out.println(sum[i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
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,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
14,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
64,
69
],
[
61,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
83,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
92,
94
],
[
8,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
95,
103
],
[
103,
104
],
[
104,
105
],
[
95,
106
],
[
107,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
112,
113
],
[
113,
114
],
[
8,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
120,
121
],
[
120,
122
],
[
115,
123
],
[
123,
124
],
[
124,
125
],
[
115,
126
],
[
127,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
136,
137
],
[
136,
138
],
[
131,
139
],
[
139,
140
],
[
140,
141
],
[
131,
142
],
[
143,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
148,
154
],
[
154,
155
],
[
154,
156
],
[
127,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
8,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
167,
168
],
[
167,
169
],
[
162,
170
],
[
170,
171
],
[
171,
172
],
[
162,
173
],
[
174,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
175,
180
],
[
180,
181
],
[
180,
182
],
[
6,
183
],
[
183,
184
]
] | [
"import java.util.*;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] line =sc.nextLine().split(\" \");\n\t\tint n = Integer.parseInt(line[0]);\n\t\tint m = Integer.parseInt(line[1]);\n\t\t\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tint[] c = new int[n];\n\t//a\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString[] input=sc.nextLine().split(\" \");\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\ta[i][j]=Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}\t\n\t//b\t\n\t\tfor(int i=0;i<m;i++){\n\t\t\tb[i]=sc.nextInt();\n\t\t}\n\t//c\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint sum=0;\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\tsum=sum+a[i][j]*b[j];\n\t\t\t}\n\t\t\tc[i]=sum;\n\t\t}\n\t//output\n\t\tfor(int i=0;i<n;i++){\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n\tpublic static void main(String[] args){\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] line =sc.nextLine().split(\" \");\n\t\tint n = Integer.parseInt(line[0]);\n\t\tint m = Integer.parseInt(line[1]);\n\t\t\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tint[] c = new int[n];\n\t//a\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString[] input=sc.nextLine().split(\" \");\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\ta[i][j]=Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}\t\n\t//b\t\n\t\tfor(int i=0;i<m;i++){\n\t\t\tb[i]=sc.nextInt();\n\t\t}\n\t//c\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint sum=0;\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\tsum=sum+a[i][j]*b[j];\n\t\t\t}\n\t\t\tc[i]=sum;\n\t\t}\n\t//output\n\t\tfor(int i=0;i<n;i++){\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] line =sc.nextLine().split(\" \");\n\t\tint n = Integer.parseInt(line[0]);\n\t\tint m = Integer.parseInt(line[1]);\n\t\t\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tint[] c = new int[n];\n\t//a\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString[] input=sc.nextLine().split(\" \");\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\ta[i][j]=Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}\t\n\t//b\t\n\t\tfor(int i=0;i<m;i++){\n\t\t\tb[i]=sc.nextInt();\n\t\t}\n\t//c\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint sum=0;\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\tsum=sum+a[i][j]*b[j];\n\t\t\t}\n\t\t\tc[i]=sum;\n\t\t}\n\t//output\n\t\tfor(int i=0;i<n;i++){\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t}",
"main",
"{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] line =sc.nextLine().split(\" \");\n\t\tint n = Integer.parseInt(line[0]);\n\t\tint m = Integer.parseInt(line[1]);\n\t\t\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tint[] c = new int[n];\n\t//a\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString[] input=sc.nextLine().split(\" \");\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\ta[i][j]=Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}\t\n\t//b\t\n\t\tfor(int i=0;i<m;i++){\n\t\t\tb[i]=sc.nextInt();\n\t\t}\n\t//c\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint sum=0;\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\tsum=sum+a[i][j]*b[j];\n\t\t\t}\n\t\t\tc[i]=sum;\n\t\t}\n\t//output\n\t\tfor(int i=0;i<n;i++){\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String[] line =sc.nextLine().split(\" \");",
"line",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"int n = Integer.parseInt(line[0]);",
"n",
"Integer.parseInt(line[0])",
"Integer.parseInt",
"Integer",
"line[0]",
"line",
"0",
"int m = Integer.parseInt(line[1]);",
"m",
"Integer.parseInt(line[1])",
"Integer.parseInt",
"Integer",
"line[1]",
"line",
"1",
"int[][] a = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[] b = new int[m];",
"b",
"new int[m]",
"m",
"int[] c = new int[n];",
"c",
"new int[n]",
"n",
"for(int i=0;i<n;i++){\n\t\t\tString[] input=sc.nextLine().split(\" \");\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\ta[i][j]=Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString[] input=sc.nextLine().split(\" \");\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\ta[i][j]=Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] input=sc.nextLine().split(\" \");\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\ta[i][j]=Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}",
"String[] input=sc.nextLine().split(\" \");",
"input",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"for(int j=0;j<m;j++){\n\t\t\t\ta[i][j]=Integer.parseInt(input[j]);\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\ta[i][j]=Integer.parseInt(input[j]);\n\t\t\t}",
"{\n\t\t\t\ta[i][j]=Integer.parseInt(input[j]);\n\t\t\t}",
"a[i][j]=Integer.parseInt(input[j])",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"Integer.parseInt(input[j])",
"Integer.parseInt",
"Integer",
"input[j]",
"input",
"j",
"for(int i=0;i<m;i++){\n\t\t\tb[i]=sc.nextInt();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tb[i]=sc.nextInt();\n\t\t}",
"{\n\t\t\tb[i]=sc.nextInt();\n\t\t}",
"b[i]=sc.nextInt()",
"b[i]",
"b",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i<n;i++){\n\t\t\tint sum=0;\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\tsum=sum+a[i][j]*b[j];\n\t\t\t}\n\t\t\tc[i]=sum;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint sum=0;\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\tsum=sum+a[i][j]*b[j];\n\t\t\t}\n\t\t\tc[i]=sum;\n\t\t}",
"{\n\t\t\tint sum=0;\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\tsum=sum+a[i][j]*b[j];\n\t\t\t}\n\t\t\tc[i]=sum;\n\t\t}",
"int sum=0;",
"sum",
"0",
"for(int j=0;j<m;j++){\n\t\t\t\tsum=sum+a[i][j]*b[j];\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tsum=sum+a[i][j]*b[j];\n\t\t\t}",
"{\n\t\t\t\tsum=sum+a[i][j]*b[j];\n\t\t\t}",
"sum=sum+a[i][j]*b[j]",
"sum",
"sum+a[i][j]*b[j]",
"sum",
"a[i][j]*b[j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"c[i]=sum",
"c[i]",
"c",
"i",
"sum",
"for(int i=0;i<n;i++){\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"System.out.println(c[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[i]",
"c",
"i",
"String[] args",
"args"
] | import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String[] line =sc.nextLine().split(" ");
int n = Integer.parseInt(line[0]);
int m = Integer.parseInt(line[1]);
int[][] a = new int[n][m];
int[] b = new int[m];
int[] c = new int[n];
//a
for(int i=0;i<n;i++){
String[] input=sc.nextLine().split(" ");
for(int j=0;j<m;j++){
a[i][j]=Integer.parseInt(input[j]);
}
}
//b
for(int i=0;i<m;i++){
b[i]=sc.nextInt();
}
//c
for(int i=0;i<n;i++){
int sum=0;
for(int j=0;j<m;j++){
sum=sum+a[i][j]*b[j];
}
c[i]=sum;
}
//output
for(int i=0;i<n;i++){
System.out.println(c[i]);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
0,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
13,
13,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
192,
11
],
[
192,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
14,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
38,
39
],
[
38,
40
],
[
14,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
46,
48
],
[
14,
49
],
[
49,
50
],
[
49,
51
],
[
14,
54
],
[
54,
55
],
[
54,
56
],
[
14,
58
],
[
58,
59
],
[
58,
60
],
[
14,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
62,
70
],
[
70,
71
],
[
71,
72
],
[
62,
73
],
[
74,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
74,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
74,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
86,
94
],
[
94,
95
],
[
95,
96
],
[
86,
97
],
[
98,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
99,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
108,
109
],
[
108,
110
],
[
14,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
111,
119
],
[
119,
120
],
[
120,
121
],
[
111,
122
],
[
123,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
123,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
14,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
142,
143
],
[
142,
144
],
[
137,
145
],
[
145,
146
],
[
146,
147
],
[
137,
148
],
[
149,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
149,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
155,
160
],
[
160,
161
],
[
160,
162
],
[
155,
163
],
[
163,
164
],
[
164,
165
],
[
155,
166
],
[
167,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
176,
180
],
[
149,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
181,
186
],
[
186,
187
],
[
186,
188
],
[
12,
189
],
[
189,
190
],
[
0,
191
],
[
191,
192
],
[
191,
193
]
] | [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main (String[] args ) throws IOException{\n BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));\n \n String line = reader.readLine();\n String[] columns = new String[1000];\n columns = line.split(\" \");\n int n = Integer.parseInt(columns[0]); // 3\n int m = Integer.parseInt(columns[1]); // 4\n int[][] matrix = new int[n][m];\n int[] vector = new int[m]; // 4\n int [] sum =new int[n]; // 3\n \n for (int y = 0; y < n; y++) {\n line = reader.readLine();\n columns = line.split(\" \");\n for ( int x = 0 ; x < m; x++ ) {\n matrix[y][x] = Integer.parseInt(columns[x]);\n }\n }\n for (int x = 0; x < m; x++) {\n line = reader.readLine();\n vector[x] = Integer.parseInt(line);\n }\n for (int y = 0; y < n ; y++) {\n sum[y] = 0;\n for (int x = 0; x < m ; x++ ) {\n sum[y] += (vector[x] * matrix[y][x]);\n }\n System.out.println(sum[y]);\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n public static void main (String[] args ) throws IOException{\n BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));\n \n String line = reader.readLine();\n String[] columns = new String[1000];\n columns = line.split(\" \");\n int n = Integer.parseInt(columns[0]); // 3\n int m = Integer.parseInt(columns[1]); // 4\n int[][] matrix = new int[n][m];\n int[] vector = new int[m]; // 4\n int [] sum =new int[n]; // 3\n \n for (int y = 0; y < n; y++) {\n line = reader.readLine();\n columns = line.split(\" \");\n for ( int x = 0 ; x < m; x++ ) {\n matrix[y][x] = Integer.parseInt(columns[x]);\n }\n }\n for (int x = 0; x < m; x++) {\n line = reader.readLine();\n vector[x] = Integer.parseInt(line);\n }\n for (int y = 0; y < n ; y++) {\n sum[y] = 0;\n for (int x = 0; x < m ; x++ ) {\n sum[y] += (vector[x] * matrix[y][x]);\n }\n System.out.println(sum[y]);\n }\n }\n}",
"Main",
"public static void main (String[] args ) throws IOException{\n BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));\n \n String line = reader.readLine();\n String[] columns = new String[1000];\n columns = line.split(\" \");\n int n = Integer.parseInt(columns[0]); // 3\n int m = Integer.parseInt(columns[1]); // 4\n int[][] matrix = new int[n][m];\n int[] vector = new int[m]; // 4\n int [] sum =new int[n]; // 3\n \n for (int y = 0; y < n; y++) {\n line = reader.readLine();\n columns = line.split(\" \");\n for ( int x = 0 ; x < m; x++ ) {\n matrix[y][x] = Integer.parseInt(columns[x]);\n }\n }\n for (int x = 0; x < m; x++) {\n line = reader.readLine();\n vector[x] = Integer.parseInt(line);\n }\n for (int y = 0; y < n ; y++) {\n sum[y] = 0;\n for (int x = 0; x < m ; x++ ) {\n sum[y] += (vector[x] * matrix[y][x]);\n }\n System.out.println(sum[y]);\n }\n }",
"main",
"{\n BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));\n \n String line = reader.readLine();\n String[] columns = new String[1000];\n columns = line.split(\" \");\n int n = Integer.parseInt(columns[0]); // 3\n int m = Integer.parseInt(columns[1]); // 4\n int[][] matrix = new int[n][m];\n int[] vector = new int[m]; // 4\n int [] sum =new int[n]; // 3\n \n for (int y = 0; y < n; y++) {\n line = reader.readLine();\n columns = line.split(\" \");\n for ( int x = 0 ; x < m; x++ ) {\n matrix[y][x] = Integer.parseInt(columns[x]);\n }\n }\n for (int x = 0; x < m; x++) {\n line = reader.readLine();\n vector[x] = Integer.parseInt(line);\n }\n for (int y = 0; y < n ; y++) {\n sum[y] = 0;\n for (int x = 0; x < m ; x++ ) {\n sum[y] += (vector[x] * matrix[y][x]);\n }\n System.out.println(sum[y]);\n }\n }",
"BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));",
"reader",
"new BufferedReader (new InputStreamReader(System.in))",
"String line = reader.readLine();",
"line",
"reader.readLine()",
"reader.readLine",
"reader",
"String[] columns = new String[1000];",
"columns",
"new String[1000]",
"1000",
"columns = line.split(\" \")",
"columns",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"int n = Integer.parseInt(columns[0]);",
"n",
"Integer.parseInt(columns[0])",
"Integer.parseInt",
"Integer",
"columns[0]",
"columns",
"0",
"int m = Integer.parseInt(columns[1]);",
"m",
"Integer.parseInt(columns[1])",
"Integer.parseInt",
"Integer",
"columns[1]",
"columns",
"1",
"int[][] matrix = new int[n][m];",
"matrix",
"new int[n][m]",
"n",
"m",
"int[] vector = new int[m];",
"vector",
"new int[m]",
"m",
"int [] sum =new int[n];",
"sum",
"new int[n]",
"n",
"for (int y = 0; y < n; y++) {\n line = reader.readLine();\n columns = line.split(\" \");\n for ( int x = 0 ; x < m; x++ ) {\n matrix[y][x] = Integer.parseInt(columns[x]);\n }\n }",
"int y = 0;",
"int y = 0;",
"y",
"0",
"y < n",
"y",
"n",
"y++",
"y++",
"y",
"{\n line = reader.readLine();\n columns = line.split(\" \");\n for ( int x = 0 ; x < m; x++ ) {\n matrix[y][x] = Integer.parseInt(columns[x]);\n }\n }",
"{\n line = reader.readLine();\n columns = line.split(\" \");\n for ( int x = 0 ; x < m; x++ ) {\n matrix[y][x] = Integer.parseInt(columns[x]);\n }\n }",
"line = reader.readLine()",
"line",
"reader.readLine()",
"reader.readLine",
"reader",
"columns = line.split(\" \")",
"columns",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"for ( int x = 0 ; x < m; x++ ) {\n matrix[y][x] = Integer.parseInt(columns[x]);\n }",
"int x = 0 ;",
"int x = 0 ;",
"x",
"0",
"x < m",
"x",
"m",
"x++",
"x++",
"x",
"{\n matrix[y][x] = Integer.parseInt(columns[x]);\n }",
"{\n matrix[y][x] = Integer.parseInt(columns[x]);\n }",
"matrix[y][x] = Integer.parseInt(columns[x])",
"matrix[y][x]",
"matrix[y]",
"matrix",
"y",
"x",
"Integer.parseInt(columns[x])",
"Integer.parseInt",
"Integer",
"columns[x]",
"columns",
"x",
"for (int x = 0; x < m; x++) {\n line = reader.readLine();\n vector[x] = Integer.parseInt(line);\n }",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < m",
"x",
"m",
"x++",
"x++",
"x",
"{\n line = reader.readLine();\n vector[x] = Integer.parseInt(line);\n }",
"{\n line = reader.readLine();\n vector[x] = Integer.parseInt(line);\n }",
"line = reader.readLine()",
"line",
"reader.readLine()",
"reader.readLine",
"reader",
"vector[x] = Integer.parseInt(line)",
"vector[x]",
"vector",
"x",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"for (int y = 0; y < n ; y++) {\n sum[y] = 0;\n for (int x = 0; x < m ; x++ ) {\n sum[y] += (vector[x] * matrix[y][x]);\n }\n System.out.println(sum[y]);\n }",
"int y = 0;",
"int y = 0;",
"y",
"0",
"y < n",
"y",
"n",
"y++",
"y++",
"y",
"{\n sum[y] = 0;\n for (int x = 0; x < m ; x++ ) {\n sum[y] += (vector[x] * matrix[y][x]);\n }\n System.out.println(sum[y]);\n }",
"{\n sum[y] = 0;\n for (int x = 0; x < m ; x++ ) {\n sum[y] += (vector[x] * matrix[y][x]);\n }\n System.out.println(sum[y]);\n }",
"sum[y] = 0",
"sum[y]",
"sum",
"y",
"0",
"for (int x = 0; x < m ; x++ ) {\n sum[y] += (vector[x] * matrix[y][x]);\n }",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < m",
"x",
"m",
"x++",
"x++",
"x",
"{\n sum[y] += (vector[x] * matrix[y][x]);\n }",
"{\n sum[y] += (vector[x] * matrix[y][x]);\n }",
"sum[y] += (vector[x] * matrix[y][x])",
"sum[y]",
"sum",
"y",
"(vector[x] * matrix[y][x])",
"vector[x]",
"vector",
"x",
"matrix[y][x]",
"matrix[y]",
"matrix",
"y",
"x",
"System.out.println(sum[y])",
"System.out.println",
"System.out",
"System",
"System.out",
"sum[y]",
"sum",
"y",
"String[] args",
"args",
"public class Main {\n public static void main (String[] args ) throws IOException{\n BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));\n \n String line = reader.readLine();\n String[] columns = new String[1000];\n columns = line.split(\" \");\n int n = Integer.parseInt(columns[0]); // 3\n int m = Integer.parseInt(columns[1]); // 4\n int[][] matrix = new int[n][m];\n int[] vector = new int[m]; // 4\n int [] sum =new int[n]; // 3\n \n for (int y = 0; y < n; y++) {\n line = reader.readLine();\n columns = line.split(\" \");\n for ( int x = 0 ; x < m; x++ ) {\n matrix[y][x] = Integer.parseInt(columns[x]);\n }\n }\n for (int x = 0; x < m; x++) {\n line = reader.readLine();\n vector[x] = Integer.parseInt(line);\n }\n for (int y = 0; y < n ; y++) {\n sum[y] = 0;\n for (int x = 0; x < m ; x++ ) {\n sum[y] += (vector[x] * matrix[y][x]);\n }\n System.out.println(sum[y]);\n }\n }\n}",
"public class Main {\n public static void main (String[] args ) throws IOException{\n BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));\n \n String line = reader.readLine();\n String[] columns = new String[1000];\n columns = line.split(\" \");\n int n = Integer.parseInt(columns[0]); // 3\n int m = Integer.parseInt(columns[1]); // 4\n int[][] matrix = new int[n][m];\n int[] vector = new int[m]; // 4\n int [] sum =new int[n]; // 3\n \n for (int y = 0; y < n; y++) {\n line = reader.readLine();\n columns = line.split(\" \");\n for ( int x = 0 ; x < m; x++ ) {\n matrix[y][x] = Integer.parseInt(columns[x]);\n }\n }\n for (int x = 0; x < m; x++) {\n line = reader.readLine();\n vector[x] = Integer.parseInt(line);\n }\n for (int y = 0; y < n ; y++) {\n sum[y] = 0;\n for (int x = 0; x < m ; x++ ) {\n sum[y] += (vector[x] * matrix[y][x]);\n }\n System.out.println(sum[y]);\n }\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main (String[] args ) throws IOException{
BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));
String line = reader.readLine();
String[] columns = new String[1000];
columns = line.split(" ");
int n = Integer.parseInt(columns[0]); // 3
int m = Integer.parseInt(columns[1]); // 4
int[][] matrix = new int[n][m];
int[] vector = new int[m]; // 4
int [] sum =new int[n]; // 3
for (int y = 0; y < n; y++) {
line = reader.readLine();
columns = line.split(" ");
for ( int x = 0 ; x < m; x++ ) {
matrix[y][x] = Integer.parseInt(columns[x]);
}
}
for (int x = 0; x < m; x++) {
line = reader.readLine();
vector[x] = Integer.parseInt(line);
}
for (int y = 0; y < n ; y++) {
sum[y] = 0;
for (int x = 0; x < m ; x++ ) {
sum[y] += (vector[x] * matrix[y][x]);
}
System.out.println(sum[y]);
}
}
} |
[
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,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
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,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
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
],
[
13,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
8,
66
],
[
66,
67
],
[
66,
68
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
8,
90
],
[
90,
91
],
[
90,
92
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
94,
102
],
[
102,
103
],
[
103,
104
],
[
94,
105
],
[
106,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
107,
115
],
[
115,
116
],
[
116,
117
],
[
107,
118
],
[
119,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
124,
130
],
[
130,
131
],
[
130,
132
],
[
8,
133
],
[
133,
134
],
[
133,
135
],
[
133,
136
],
[
137,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
6,
144
],
[
144,
145
]
] | [
"import java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint n,m;\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tn = stdIn.nextInt();\n\t\tm = stdIn.nextInt();\n\n\t\tint[][] matrixA = new int[n][m];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tint[] vectorB = new int[m];\n\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tvectorB[i] = stdIn.nextInt();\n\t\t}\n\n\t\tint[] vectorC = new int[n];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tvectorC[i] += (matrixA[i][j] * vectorB[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor(int i : vectorC) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint n,m;\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tn = stdIn.nextInt();\n\t\tm = stdIn.nextInt();\n\n\t\tint[][] matrixA = new int[n][m];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tint[] vectorB = new int[m];\n\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tvectorB[i] = stdIn.nextInt();\n\t\t}\n\n\t\tint[] vectorC = new int[n];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tvectorC[i] += (matrixA[i][j] * vectorB[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor(int i : vectorC) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tint n,m;\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tn = stdIn.nextInt();\n\t\tm = stdIn.nextInt();\n\n\t\tint[][] matrixA = new int[n][m];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tint[] vectorB = new int[m];\n\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tvectorB[i] = stdIn.nextInt();\n\t\t}\n\n\t\tint[] vectorC = new int[n];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tvectorC[i] += (matrixA[i][j] * vectorB[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor(int i : vectorC) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t}",
"main",
"{\n\n\t\tint n,m;\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tn = stdIn.nextInt();\n\t\tm = stdIn.nextInt();\n\n\t\tint[][] matrixA = new int[n][m];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tint[] vectorB = new int[m];\n\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tvectorB[i] = stdIn.nextInt();\n\t\t}\n\n\t\tint[] vectorC = new int[n];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tvectorC[i] += (matrixA[i][j] * vectorB[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor(int i : vectorC) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t}",
"int n",
"n",
"m;",
"m",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"n = stdIn.nextInt()",
"n",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"m = stdIn.nextInt()",
"m",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int[][] matrixA = new int[n][m];",
"matrixA",
"new int[n][m]",
"n",
"m",
"for(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = stdIn.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tmatrixA[i][j] = stdIn.nextInt();\n\t\t\t}",
"{\n\t\t\t\tmatrixA[i][j] = stdIn.nextInt();\n\t\t\t}",
"matrixA[i][j] = stdIn.nextInt()",
"matrixA[i][j]",
"matrixA[i]",
"matrixA",
"i",
"j",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int[] vectorB = new int[m];",
"vectorB",
"new int[m]",
"m",
"for(int i = 0; i < m; i++) {\n\t\t\tvectorB[i] = stdIn.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tvectorB[i] = stdIn.nextInt();\n\t\t}",
"{\n\t\t\tvectorB[i] = stdIn.nextInt();\n\t\t}",
"vectorB[i] = stdIn.nextInt()",
"vectorB[i]",
"vectorB",
"i",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int[] vectorC = new int[n];",
"vectorC",
"new int[n]",
"n",
"for(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tvectorC[i] += (matrixA[i][j] * vectorB[j]);\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tvectorC[i] += (matrixA[i][j] * vectorB[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tvectorC[i] += (matrixA[i][j] * vectorB[j]);\n\t\t\t}\n\t\t}",
"for(int j = 0; j < m; j++) {\n\t\t\t\tvectorC[i] += (matrixA[i][j] * vectorB[j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tvectorC[i] += (matrixA[i][j] * vectorB[j]);\n\t\t\t}",
"{\n\t\t\t\tvectorC[i] += (matrixA[i][j] * vectorB[j]);\n\t\t\t}",
"vectorC[i] += (matrixA[i][j] * vectorB[j])",
"vectorC[i]",
"vectorC",
"i",
"(matrixA[i][j] * vectorB[j])",
"matrixA[i][j]",
"matrixA[i]",
"matrixA",
"i",
"j",
"vectorB[j]",
"vectorB",
"j",
"for(int i : vectorC) {\n\t\t\tSystem.out.println(i);\n\t\t}",
"int i",
"vectorC",
"{\n\t\t\tSystem.out.println(i);\n\t\t}",
"{\n\t\t\tSystem.out.println(i);\n\t\t}",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"String[] args",
"args"
] | import java.util.Scanner;
class Main {
public static void main(String[] args) {
int n,m;
Scanner stdIn = new Scanner(System.in);
n = stdIn.nextInt();
m = stdIn.nextInt();
int[][] matrixA = new int[n][m];
for(int i = 0; i < n; i++) {
for(int j = 0; j < m; j++) {
matrixA[i][j] = stdIn.nextInt();
}
}
int[] vectorB = new int[m];
for(int i = 0; i < m; i++) {
vectorB[i] = stdIn.nextInt();
}
int[] vectorC = new int[n];
for(int i = 0; i < n; i++) {
for(int j = 0; j < m; j++) {
vectorC[i] += (matrixA[i][j] * vectorB[j]);
}
}
for(int i : vectorC) {
System.out.println(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,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
18,
13,
13,
13,
13,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
60,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
66,
72
],
[
47,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
8,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
78,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
90,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
8,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
106,
107
],
[
106,
108
],
[
101,
109
],
[
109,
110
],
[
110,
111
],
[
101,
112
],
[
113,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
119,
120
],
[
119,
121
],
[
114,
122
],
[
122,
123
],
[
123,
124
],
[
114,
125
],
[
126,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
135,
141
],
[
141,
142
],
[
141,
143
],
[
113,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
144,
149
],
[
149,
150
],
[
149,
151
],
[
6,
152
],
[
152,
153
]
] | [
"import java.util.Scanner;\n\nclass Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n int A[][] = new int[n][m];\n int b[] = new int[m];\n int c[] = new int[n];\n\n for(int x = 0; x < n; x++){\n for(int y = 0; y < m; y++){\n int v = sc.nextInt();\n A[x][y] = v;\n }\n c[x] = 0;\n }\n for(int x = 0; x < m; x++){\n int v = sc.nextInt();\n b[x] = v;\n }\n\n for(int x = 0; x < n; x++){\n for(int y = 0; y < m; y++){\n c[x] = c[x]+(A[x][y]*b[y]);\n }\n System.out.println(c[x]);\n }\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n int A[][] = new int[n][m];\n int b[] = new int[m];\n int c[] = new int[n];\n\n for(int x = 0; x < n; x++){\n for(int y = 0; y < m; y++){\n int v = sc.nextInt();\n A[x][y] = v;\n }\n c[x] = 0;\n }\n for(int x = 0; x < m; x++){\n int v = sc.nextInt();\n b[x] = v;\n }\n\n for(int x = 0; x < n; x++){\n for(int y = 0; y < m; y++){\n c[x] = c[x]+(A[x][y]*b[y]);\n }\n System.out.println(c[x]);\n }\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n int A[][] = new int[n][m];\n int b[] = new int[m];\n int c[] = new int[n];\n\n for(int x = 0; x < n; x++){\n for(int y = 0; y < m; y++){\n int v = sc.nextInt();\n A[x][y] = v;\n }\n c[x] = 0;\n }\n for(int x = 0; x < m; x++){\n int v = sc.nextInt();\n b[x] = v;\n }\n\n for(int x = 0; x < n; x++){\n for(int y = 0; y < m; y++){\n c[x] = c[x]+(A[x][y]*b[y]);\n }\n System.out.println(c[x]);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n int A[][] = new int[n][m];\n int b[] = new int[m];\n int c[] = new int[n];\n\n for(int x = 0; x < n; x++){\n for(int y = 0; y < m; y++){\n int v = sc.nextInt();\n A[x][y] = v;\n }\n c[x] = 0;\n }\n for(int x = 0; x < m; x++){\n int v = sc.nextInt();\n b[x] = v;\n }\n\n for(int x = 0; x < n; x++){\n for(int y = 0; y < m; y++){\n c[x] = c[x]+(A[x][y]*b[y]);\n }\n System.out.println(c[x]);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A[][] = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int b[] = new int[m];",
"b",
"new int[m]",
"m",
"int c[] = new int[n];",
"c",
"new int[n]",
"n",
"for(int x = 0; x < n; x++){\n for(int y = 0; y < m; y++){\n int v = sc.nextInt();\n A[x][y] = v;\n }\n c[x] = 0;\n }",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < n",
"x",
"n",
"x++",
"x++",
"x",
"{\n for(int y = 0; y < m; y++){\n int v = sc.nextInt();\n A[x][y] = v;\n }\n c[x] = 0;\n }",
"{\n for(int y = 0; y < m; y++){\n int v = sc.nextInt();\n A[x][y] = v;\n }\n c[x] = 0;\n }",
"for(int y = 0; y < m; y++){\n int v = sc.nextInt();\n A[x][y] = v;\n }",
"int y = 0;",
"int y = 0;",
"y",
"0",
"y < m",
"y",
"m",
"y++",
"y++",
"y",
"{\n int v = sc.nextInt();\n A[x][y] = v;\n }",
"{\n int v = sc.nextInt();\n A[x][y] = v;\n }",
"int v = sc.nextInt();",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"A[x][y] = v",
"A[x][y]",
"A[x]",
"A",
"x",
"y",
"v",
"c[x] = 0",
"c[x]",
"c",
"x",
"0",
"for(int x = 0; x < m; x++){\n int v = sc.nextInt();\n b[x] = v;\n }",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < m",
"x",
"m",
"x++",
"x++",
"x",
"{\n int v = sc.nextInt();\n b[x] = v;\n }",
"{\n int v = sc.nextInt();\n b[x] = v;\n }",
"int v = sc.nextInt();",
"v",
"sc.nextInt()",
"sc.nextInt",
"sc",
"b[x] = v",
"b[x]",
"b",
"x",
"v",
"for(int x = 0; x < n; x++){\n for(int y = 0; y < m; y++){\n c[x] = c[x]+(A[x][y]*b[y]);\n }\n System.out.println(c[x]);\n }",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < n",
"x",
"n",
"x++",
"x++",
"x",
"{\n for(int y = 0; y < m; y++){\n c[x] = c[x]+(A[x][y]*b[y]);\n }\n System.out.println(c[x]);\n }",
"{\n for(int y = 0; y < m; y++){\n c[x] = c[x]+(A[x][y]*b[y]);\n }\n System.out.println(c[x]);\n }",
"for(int y = 0; y < m; y++){\n c[x] = c[x]+(A[x][y]*b[y]);\n }",
"int y = 0;",
"int y = 0;",
"y",
"0",
"y < m",
"y",
"m",
"y++",
"y++",
"y",
"{\n c[x] = c[x]+(A[x][y]*b[y]);\n }",
"{\n c[x] = c[x]+(A[x][y]*b[y]);\n }",
"c[x] = c[x]+(A[x][y]*b[y])",
"c[x]",
"c",
"x",
"c[x]+(A[x][y]*b[y])",
"c[x]",
"c",
"x",
"(A[x][y]*b[y])",
"A[x][y]",
"A[x]",
"A",
"x",
"y",
"b[y]",
"b",
"y",
"System.out.println(c[x])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[x]",
"c",
"x",
"String args[]",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
int A[][] = new int[n][m];
int b[] = new int[m];
int c[] = new int[n];
for(int x = 0; x < n; x++){
for(int y = 0; y < m; y++){
int v = sc.nextInt();
A[x][y] = v;
}
c[x] = 0;
}
for(int x = 0; x < m; x++){
int v = sc.nextInt();
b[x] = v;
}
for(int x = 0; x < n; x++){
for(int y = 0; y < m; y++){
c[x] = c[x]+(A[x][y]*b[y]);
}
System.out.println(c[x]);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
13,
13,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
10,
24
],
[
24,
25
],
[
24,
26
],
[
10,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
10,
64
],
[
64,
65
],
[
64,
66
],
[
10,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
86,
87
],
[
10,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
88,
96
],
[
96,
97
],
[
97,
98
],
[
88,
99
],
[
100,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
109,
110
],
[
109,
111
],
[
104,
112
],
[
112,
113
],
[
113,
114
],
[
104,
115
],
[
116,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
100,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
6,
134
],
[
134,
135
]
] | [
"import java.util.*;\n\nclass Main {\n public static void main(String args[]) {\n try (Scanner sc = new Scanner(System.in)) {\n int n = sc.nextInt(), m = sc.nextInt();\n int[][] a = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = sc.nextInt();\n }\n }\n int[] x = new int[m];\n for (int i = 0; i < m; i++) {\n x[i] = sc.nextInt();\n }\n for (int i = 0; i < n; i++) {\n int ans = 0;\n for (int j = 0; j < m; j++) {\n ans += x[j] * a[i][j];\n }\n System.out.println(ans);\n }\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String args[]) {\n try (Scanner sc = new Scanner(System.in)) {\n int n = sc.nextInt(), m = sc.nextInt();\n int[][] a = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = sc.nextInt();\n }\n }\n int[] x = new int[m];\n for (int i = 0; i < m; i++) {\n x[i] = sc.nextInt();\n }\n for (int i = 0; i < n; i++) {\n int ans = 0;\n for (int j = 0; j < m; j++) {\n ans += x[j] * a[i][j];\n }\n System.out.println(ans);\n }\n }\n }\n}",
"Main",
"public static void main(String args[]) {\n try (Scanner sc = new Scanner(System.in)) {\n int n = sc.nextInt(), m = sc.nextInt();\n int[][] a = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = sc.nextInt();\n }\n }\n int[] x = new int[m];\n for (int i = 0; i < m; i++) {\n x[i] = sc.nextInt();\n }\n for (int i = 0; i < n; i++) {\n int ans = 0;\n for (int j = 0; j < m; j++) {\n ans += x[j] * a[i][j];\n }\n System.out.println(ans);\n }\n }\n }",
"main",
"{\n try (Scanner sc = new Scanner(System.in)) {\n int n = sc.nextInt(), m = sc.nextInt();\n int[][] a = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = sc.nextInt();\n }\n }\n int[] x = new int[m];\n for (int i = 0; i < m; i++) {\n x[i] = sc.nextInt();\n }\n for (int i = 0; i < n; i++) {\n int ans = 0;\n for (int j = 0; j < m; j++) {\n ans += x[j] * a[i][j];\n }\n System.out.println(ans);\n }\n }\n }",
"try (Scanner sc = new Scanner(System.in)) {\n int n = sc.nextInt(), m = sc.nextInt();\n int[][] a = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = sc.nextInt();\n }\n }\n int[] x = new int[m];\n for (int i = 0; i < m; i++) {\n x[i] = sc.nextInt();\n }\n for (int i = 0; i < n; i++) {\n int ans = 0;\n for (int j = 0; j < m; j++) {\n ans += x[j] * a[i][j];\n }\n System.out.println(ans);\n }\n }",
"{\n int n = sc.nextInt(), m = sc.nextInt();\n int[][] a = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = sc.nextInt();\n }\n }\n int[] x = new int[m];\n for (int i = 0; i < m; i++) {\n x[i] = sc.nextInt();\n }\n for (int i = 0; i < n; i++) {\n int ans = 0;\n for (int j = 0; j < m; j++) {\n ans += x[j] * a[i][j];\n }\n System.out.println(ans);\n }\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"int n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] a = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = sc.nextInt();\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < m; j++) {\n a[i][j] = sc.nextInt();\n }\n }",
"{\n for (int j = 0; j < m; j++) {\n a[i][j] = sc.nextInt();\n }\n }",
"for (int j = 0; j < m; j++) {\n a[i][j] = sc.nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n a[i][j] = sc.nextInt();\n }",
"{\n a[i][j] = sc.nextInt();\n }",
"a[i][j] = sc.nextInt()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] x = new int[m];",
"x",
"new int[m]",
"m",
"for (int i = 0; i < m; i++) {\n x[i] = sc.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n x[i] = sc.nextInt();\n }",
"{\n x[i] = sc.nextInt();\n }",
"x[i] = sc.nextInt()",
"x[i]",
"x",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < n; i++) {\n int ans = 0;\n for (int j = 0; j < m; j++) {\n ans += x[j] * a[i][j];\n }\n System.out.println(ans);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int ans = 0;\n for (int j = 0; j < m; j++) {\n ans += x[j] * a[i][j];\n }\n System.out.println(ans);\n }",
"{\n int ans = 0;\n for (int j = 0; j < m; j++) {\n ans += x[j] * a[i][j];\n }\n System.out.println(ans);\n }",
"int ans = 0;",
"ans",
"0",
"for (int j = 0; j < m; j++) {\n ans += x[j] * a[i][j];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n ans += x[j] * a[i][j];\n }",
"{\n ans += x[j] * a[i][j];\n }",
"ans += x[j] * a[i][j]",
"ans",
"x[j] * a[i][j]",
"x[j]",
"x",
"j",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String args[]",
"args"
] | import java.util.*;
class Main {
public static void main(String args[]) {
try (Scanner sc = new Scanner(System.in)) {
int n = sc.nextInt(), m = sc.nextInt();
int[][] a = new int[n][m];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
a[i][j] = sc.nextInt();
}
}
int[] x = new int[m];
for (int i = 0; i < m; i++) {
x[i] = sc.nextInt();
}
for (int i = 0; i < n; i++) {
int ans = 0;
for (int j = 0; j < m; j++) {
ans += x[j] * a[i][j];
}
System.out.println(ans);
}
}
}
} |
[
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,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
20,
13,
13,
41,
13,
0,
13,
20,
13,
41,
13,
0,
13,
20,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
0,
13,
4,
18,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
8,
34
],
[
34,
35
],
[
8,
36
],
[
36,
37
],
[
8,
38
],
[
38,
39
],
[
38,
40
],
[
8,
43
],
[
43,
44
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
8,
49
],
[
49,
50
],
[
8,
51
],
[
51,
52
],
[
51,
53
],
[
8,
55
],
[
55,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
57,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
83,
89
],
[
89,
90
],
[
90,
91
],
[
8,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
92,
100
],
[
100,
101
],
[
101,
102
],
[
92,
103
],
[
104,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
109,
110
],
[
110,
111
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
112,
120
],
[
120,
121
],
[
121,
122
],
[
112,
123
],
[
124,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
125,
136
],
[
137,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
142,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
146,
152
],
[
152,
153
],
[
152,
154
],
[
124,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
157,
160
],
[
160,
161
],
[
160,
162
],
[
124,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
6,
169
],
[
169,
170
]
] | [
"import java.util.Scanner;\n/**\n * @author kawakami\n *\n */\nclass Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tint n=as.nextInt();\n\t\tint m=as.nextInt();\n\t\tint i,j,k;\n\t\tint b,f,r,v;\n\t\t\n\t\tint mat[][];\n\t\tmat = new int[n][m];\n\t\tint vec[];\n\t\tvec = new int[m];\n\t\tint mul[];\n\t\tmul = new int[n];\n\t\tString str;\n\t\t\n\t\tfor(i=0;i<n;i++){\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\t\n\t\t\t\tmat[i][j]=as.nextInt();\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<m;i++){\n\t\t\t\n\t\t\tvec[i]=as.nextInt();\n\t\t\t\n\t\t}\n\t\t\n\t\tfor(i=0;i<n;i++){\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\tmul[i]=mul[i]+(mat[i][j]*vec[j]);\n\t\t\t}\n\t\t str=String.valueOf(mul[i]);\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\t\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tint n=as.nextInt();\n\t\tint m=as.nextInt();\n\t\tint i,j,k;\n\t\tint b,f,r,v;\n\t\t\n\t\tint mat[][];\n\t\tmat = new int[n][m];\n\t\tint vec[];\n\t\tvec = new int[m];\n\t\tint mul[];\n\t\tmul = new int[n];\n\t\tString str;\n\t\t\n\t\tfor(i=0;i<n;i++){\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\t\n\t\t\t\tmat[i][j]=as.nextInt();\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<m;i++){\n\t\t\t\n\t\t\tvec[i]=as.nextInt();\n\t\t\t\n\t\t}\n\t\t\n\t\tfor(i=0;i<n;i++){\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\tmul[i]=mul[i]+(mat[i][j]*vec[j]);\n\t\t\t}\n\t\t str=String.valueOf(mul[i]);\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\t\n\n\t}\n\n}",
"Main",
"/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tint n=as.nextInt();\n\t\tint m=as.nextInt();\n\t\tint i,j,k;\n\t\tint b,f,r,v;\n\t\t\n\t\tint mat[][];\n\t\tmat = new int[n][m];\n\t\tint vec[];\n\t\tvec = new int[m];\n\t\tint mul[];\n\t\tmul = new int[n];\n\t\tString str;\n\t\t\n\t\tfor(i=0;i<n;i++){\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\t\n\t\t\t\tmat[i][j]=as.nextInt();\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<m;i++){\n\t\t\t\n\t\t\tvec[i]=as.nextInt();\n\t\t\t\n\t\t}\n\t\t\n\t\tfor(i=0;i<n;i++){\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\tmul[i]=mul[i]+(mat[i][j]*vec[j]);\n\t\t\t}\n\t\t str=String.valueOf(mul[i]);\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\t\n\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tint n=as.nextInt();\n\t\tint m=as.nextInt();\n\t\tint i,j,k;\n\t\tint b,f,r,v;\n\t\t\n\t\tint mat[][];\n\t\tmat = new int[n][m];\n\t\tint vec[];\n\t\tvec = new int[m];\n\t\tint mul[];\n\t\tmul = new int[n];\n\t\tString str;\n\t\t\n\t\tfor(i=0;i<n;i++){\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\t\n\t\t\t\tmat[i][j]=as.nextInt();\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<m;i++){\n\t\t\t\n\t\t\tvec[i]=as.nextInt();\n\t\t\t\n\t\t}\n\t\t\n\t\tfor(i=0;i<n;i++){\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\tmul[i]=mul[i]+(mat[i][j]*vec[j]);\n\t\t\t}\n\t\t str=String.valueOf(mul[i]);\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\t\n\n\t}",
"Scanner as = new Scanner(System.in);",
"as",
"new Scanner(System.in)",
"int n=as.nextInt();",
"n",
"as.nextInt()",
"as.nextInt",
"as",
"int m=as.nextInt();",
"m",
"as.nextInt()",
"as.nextInt",
"as",
"int i",
"i",
"j",
"j",
"k;",
"k",
"int b",
"b",
"f",
"f",
"r",
"r",
"v;",
"v",
"int mat[][];",
"mat",
"mat = new int[n][m]",
"mat",
"new int[n][m]",
"n",
"m",
"int vec[];",
"vec",
"vec = new int[m]",
"vec",
"new int[m]",
"m",
"int mul[];",
"mul",
"mul = new int[n]",
"mul",
"new int[n]",
"n",
"String str;",
"str",
"for(i=0;i<n;i++){\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\t\n\t\t\t\tmat[i][j]=as.nextInt();\n\t\t\t\t\n\t\t\t}\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\t\n\t\t\t\tmat[i][j]=as.nextInt();\n\t\t\t\t\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\t\n\t\t\t\tmat[i][j]=as.nextInt();\n\t\t\t\t\n\t\t\t}\n\t\t}",
"for(j=0;j<m;j++){\n\t\t\t\t\n\t\t\t\tmat[i][j]=as.nextInt();\n\t\t\t\t\n\t\t\t}",
"j=0;",
"j=0",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\t\n\t\t\t\tmat[i][j]=as.nextInt();\n\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\t\n\t\t\t\tmat[i][j]=as.nextInt();\n\t\t\t\t\n\t\t\t}",
"mat[i][j]=as.nextInt()",
"mat[i][j]",
"mat[i]",
"mat",
"i",
"j",
"as.nextInt()",
"as.nextInt",
"as",
"for(i=0;i<m;i++){\n\t\t\t\n\t\t\tvec[i]=as.nextInt();\n\t\t\t\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\t\n\t\t\tvec[i]=as.nextInt();\n\t\t\t\n\t\t}",
"{\n\t\t\t\n\t\t\tvec[i]=as.nextInt();\n\t\t\t\n\t\t}",
"vec[i]=as.nextInt()",
"vec[i]",
"vec",
"i",
"as.nextInt()",
"as.nextInt",
"as",
"for(i=0;i<n;i++){\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\tmul[i]=mul[i]+(mat[i][j]*vec[j]);\n\t\t\t}\n\t\t str=String.valueOf(mul[i]);\n\t\t\tSystem.out.println(str);\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\tmul[i]=mul[i]+(mat[i][j]*vec[j]);\n\t\t\t}\n\t\t str=String.valueOf(mul[i]);\n\t\t\tSystem.out.println(str);\n\t\t}",
"{\n\t\t\tfor(j=0;j<m;j++){\n\t\t\t\tmul[i]=mul[i]+(mat[i][j]*vec[j]);\n\t\t\t}\n\t\t str=String.valueOf(mul[i]);\n\t\t\tSystem.out.println(str);\n\t\t}",
"for(j=0;j<m;j++){\n\t\t\t\tmul[i]=mul[i]+(mat[i][j]*vec[j]);\n\t\t\t}",
"j=0;",
"j=0",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tmul[i]=mul[i]+(mat[i][j]*vec[j]);\n\t\t\t}",
"{\n\t\t\t\tmul[i]=mul[i]+(mat[i][j]*vec[j]);\n\t\t\t}",
"mul[i]=mul[i]+(mat[i][j]*vec[j])",
"mul[i]",
"mul",
"i",
"mul[i]+(mat[i][j]*vec[j])",
"mul[i]",
"mul",
"i",
"(mat[i][j]*vec[j])",
"mat[i][j]",
"mat[i]",
"mat",
"i",
"j",
"vec[j]",
"vec",
"j",
"str=String.valueOf(mul[i])",
"str",
"String.valueOf(mul[i])",
"String.valueOf",
"String",
"mul[i]",
"mul",
"i",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"String[] args",
"args"
] | import java.util.Scanner;
/**
* @author kawakami
*
*/
class Main {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner as = new Scanner(System.in);
int n=as.nextInt();
int m=as.nextInt();
int i,j,k;
int b,f,r,v;
int mat[][];
mat = new int[n][m];
int vec[];
vec = new int[m];
int mul[];
mul = new int[n];
String str;
for(i=0;i<n;i++){
for(j=0;j<m;j++){
mat[i][j]=as.nextInt();
}
}
for(i=0;i<m;i++){
vec[i]=as.nextInt();
}
for(i=0;i<n;i++){
for(j=0;j<m;j++){
mul[i]=mul[i]+(mat[i][j]*vec[j]);
}
str=String.valueOf(mul[i]);
System.out.println(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,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
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,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
8,
62
],
[
62,
63
],
[
62,
64
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
8,
86
],
[
86,
87
],
[
87,
88
],
[
8,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
97,
98
],
[
98,
99
],
[
89,
100
],
[
101,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
105,
113
],
[
113,
114
],
[
114,
115
],
[
105,
116
],
[
117,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
120,
126
],
[
126,
127
],
[
126,
128
],
[
101,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
6,
135
],
[
135,
136
],
[
0,
137
],
[
137,
138
],
[
137,
139
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n int m = s.nextInt();\n int[][] mat = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n mat[i][j] = s.nextInt();\n }\n }\n int[] vec = new int[m];\n for (int i = 0; i < m; i++) {\n vec[i] = s.nextInt();\n }\n s.close();\n for (int i = 0; i < n; i++) {\n int sum = 0;\n for (int j = 0; j < m; j++) {\n sum += mat[i][j] * vec[j];\n }\n System.out.println(sum);\n }\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n int m = s.nextInt();\n int[][] mat = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n mat[i][j] = s.nextInt();\n }\n }\n int[] vec = new int[m];\n for (int i = 0; i < m; i++) {\n vec[i] = s.nextInt();\n }\n s.close();\n for (int i = 0; i < n; i++) {\n int sum = 0;\n for (int j = 0; j < m; j++) {\n sum += mat[i][j] * vec[j];\n }\n System.out.println(sum);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n int m = s.nextInt();\n int[][] mat = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n mat[i][j] = s.nextInt();\n }\n }\n int[] vec = new int[m];\n for (int i = 0; i < m; i++) {\n vec[i] = s.nextInt();\n }\n s.close();\n for (int i = 0; i < n; i++) {\n int sum = 0;\n for (int j = 0; j < m; j++) {\n sum += mat[i][j] * vec[j];\n }\n System.out.println(sum);\n }\n }",
"main",
"{\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n int m = s.nextInt();\n int[][] mat = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n mat[i][j] = s.nextInt();\n }\n }\n int[] vec = new int[m];\n for (int i = 0; i < m; i++) {\n vec[i] = s.nextInt();\n }\n s.close();\n for (int i = 0; i < n; i++) {\n int sum = 0;\n for (int j = 0; j < m; j++) {\n sum += mat[i][j] * vec[j];\n }\n System.out.println(sum);\n }\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int n = s.nextInt();",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"int m = s.nextInt();",
"m",
"s.nextInt()",
"s.nextInt",
"s",
"int[][] mat = new int[n][m];",
"mat",
"new int[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n mat[i][j] = s.nextInt();\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < m; j++) {\n mat[i][j] = s.nextInt();\n }\n }",
"{\n for (int j = 0; j < m; j++) {\n mat[i][j] = s.nextInt();\n }\n }",
"for (int j = 0; j < m; j++) {\n mat[i][j] = s.nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n mat[i][j] = s.nextInt();\n }",
"{\n mat[i][j] = s.nextInt();\n }",
"mat[i][j] = s.nextInt()",
"mat[i][j]",
"mat[i]",
"mat",
"i",
"j",
"s.nextInt()",
"s.nextInt",
"s",
"int[] vec = new int[m];",
"vec",
"new int[m]",
"m",
"for (int i = 0; i < m; i++) {\n vec[i] = s.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n vec[i] = s.nextInt();\n }",
"{\n vec[i] = s.nextInt();\n }",
"vec[i] = s.nextInt()",
"vec[i]",
"vec",
"i",
"s.nextInt()",
"s.nextInt",
"s",
"s.close()",
"s.close",
"s",
"for (int i = 0; i < n; i++) {\n int sum = 0;\n for (int j = 0; j < m; j++) {\n sum += mat[i][j] * vec[j];\n }\n System.out.println(sum);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int sum = 0;\n for (int j = 0; j < m; j++) {\n sum += mat[i][j] * vec[j];\n }\n System.out.println(sum);\n }",
"{\n int sum = 0;\n for (int j = 0; j < m; j++) {\n sum += mat[i][j] * vec[j];\n }\n System.out.println(sum);\n }",
"int sum = 0;",
"sum",
"0",
"for (int j = 0; j < m; j++) {\n sum += mat[i][j] * vec[j];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n sum += mat[i][j] * vec[j];\n }",
"{\n sum += mat[i][j] * vec[j];\n }",
"sum += mat[i][j] * vec[j]",
"sum",
"mat[i][j] * vec[j]",
"mat[i][j]",
"mat[i]",
"mat",
"i",
"j",
"vec[j]",
"vec",
"j",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n int m = s.nextInt();\n int[][] mat = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n mat[i][j] = s.nextInt();\n }\n }\n int[] vec = new int[m];\n for (int i = 0; i < m; i++) {\n vec[i] = s.nextInt();\n }\n s.close();\n for (int i = 0; i < n; i++) {\n int sum = 0;\n for (int j = 0; j < m; j++) {\n sum += mat[i][j] * vec[j];\n }\n System.out.println(sum);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n int m = s.nextInt();\n int[][] mat = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n mat[i][j] = s.nextInt();\n }\n }\n int[] vec = new int[m];\n for (int i = 0; i < m; i++) {\n vec[i] = s.nextInt();\n }\n s.close();\n for (int i = 0; i < n; i++) {\n int sum = 0;\n for (int j = 0; j < m; j++) {\n sum += mat[i][j] * vec[j];\n }\n System.out.println(sum);\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int n = s.nextInt();
int m = s.nextInt();
int[][] mat = new int[n][m];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
mat[i][j] = s.nextInt();
}
}
int[] vec = new int[m];
for (int i = 0; i < m; i++) {
vec[i] = s.nextInt();
}
s.close();
for (int i = 0; i < n; i++) {
int sum = 0;
for (int j = 0; j < m; j++) {
sum += mat[i][j] * vec[j];
}
System.out.println(sum);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
38,
30,
41,
13,
20,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
14,
13,
30,
41,
13,
4,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
20,
13,
13,
0,
13,
20,
13,
0,
13,
17,
30,
14,
2,
13,
13,
30,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
40,
13,
30,
0,
18,
13,
2,
13,
13,
4,
18,
13,
13,
40,
13,
14,
2,
13,
2,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
13,
13,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
3,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
192,
8
],
[
192,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
16,
22
],
[
22,
23
],
[
22,
24
],
[
16,
25
],
[
25,
26
],
[
25,
27
],
[
16,
28
],
[
28,
29
],
[
28,
30
],
[
16,
31
],
[
31,
32
],
[
31,
33
],
[
16,
34
],
[
34,
35
],
[
34,
36
],
[
16,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
48,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
60,
61
],
[
60,
62
],
[
48,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
68,
69
],
[
68,
70
],
[
48,
71
],
[
71,
72
],
[
71,
73
],
[
48,
76
],
[
76,
77
],
[
76,
78
],
[
48,
80
],
[
80,
81
],
[
80,
82
],
[
46,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
88,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
95,
103
],
[
103,
104
],
[
104,
105
],
[
95,
106
],
[
107,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
108,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
117,
118
],
[
117,
119
],
[
88,
120
],
[
120,
121
],
[
84,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
126,
128
],
[
123,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
122,
133
],
[
133,
134
],
[
122,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
138,
140
],
[
135,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
142,
147
],
[
147,
148
],
[
147,
149
],
[
142,
150
],
[
150,
151
],
[
151,
152
],
[
142,
153
],
[
154,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
158,
163
],
[
163,
164
],
[
163,
165
],
[
158,
166
],
[
166,
167
],
[
167,
168
],
[
158,
169
],
[
170,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
173,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
154,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
182,
187
],
[
141,
188
],
[
9,
189
],
[
189,
190
],
[
0,
191
],
[
191,
192
],
[
191,
193
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n boolean first=true;\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int i=0,n=0,m=0;\n int[][] card=null;\n int[] mat=null;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tString[] str=line.split(\" \");\n \t\tn=Integer.parseInt(str[0]);\n \t\tm=Integer.parseInt(str[1]);\n \t\tcard=new int[n][m];\n \t\tmat=new int[m];\n \t\tfirst=false;\n \t}else{\n \t\tif(i<n){\n \t\tString[] str=line.split(\" \");\n \t\tfor(int j=0;j<m;j++){\n \t\t\tcard[i][j]=Integer.parseInt(str[j]);\n \t\t}\n \t\ti++;\n \t\t}else{\n \t\t\tmat[i-n]=Integer.parseInt(line);\n \t\t\ti++;\n\t \t\tif(i==n+m){\n\t \t\t\tfor(int j=0;j<n;j++){\n\t \t\t\t\tint sum=0;\n\t \t\t\t\tfor(int l=0;l<m;l++){\n\t \t\t\t\t\tsum+=(mat[l]*card[j][l]);\n\t \t\t\t\t}\n\t \t\t\t\tSystem.out.println(sum);\n\t \t\t\t}\n\t \t\t\tbreak;\n\t \t\t}\n \t\t}\n \t}\n }\n }\n }\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n boolean first=true;\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int i=0,n=0,m=0;\n int[][] card=null;\n int[] mat=null;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tString[] str=line.split(\" \");\n \t\tn=Integer.parseInt(str[0]);\n \t\tm=Integer.parseInt(str[1]);\n \t\tcard=new int[n][m];\n \t\tmat=new int[m];\n \t\tfirst=false;\n \t}else{\n \t\tif(i<n){\n \t\tString[] str=line.split(\" \");\n \t\tfor(int j=0;j<m;j++){\n \t\t\tcard[i][j]=Integer.parseInt(str[j]);\n \t\t}\n \t\ti++;\n \t\t}else{\n \t\t\tmat[i-n]=Integer.parseInt(line);\n \t\t\ti++;\n\t \t\tif(i==n+m){\n\t \t\t\tfor(int j=0;j<n;j++){\n\t \t\t\t\tint sum=0;\n\t \t\t\t\tfor(int l=0;l<m;l++){\n\t \t\t\t\t\tsum+=(mat[l]*card[j][l]);\n\t \t\t\t\t}\n\t \t\t\t\tSystem.out.println(sum);\n\t \t\t\t}\n\t \t\t\tbreak;\n\t \t\t}\n \t\t}\n \t}\n }\n }\n }\n\n}",
"Main",
"public static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n boolean first=true;\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int i=0,n=0,m=0;\n int[][] card=null;\n int[] mat=null;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tString[] str=line.split(\" \");\n \t\tn=Integer.parseInt(str[0]);\n \t\tm=Integer.parseInt(str[1]);\n \t\tcard=new int[n][m];\n \t\tmat=new int[m];\n \t\tfirst=false;\n \t}else{\n \t\tif(i<n){\n \t\tString[] str=line.split(\" \");\n \t\tfor(int j=0;j<m;j++){\n \t\t\tcard[i][j]=Integer.parseInt(str[j]);\n \t\t}\n \t\ti++;\n \t\t}else{\n \t\t\tmat[i-n]=Integer.parseInt(line);\n \t\t\ti++;\n\t \t\tif(i==n+m){\n\t \t\t\tfor(int j=0;j<n;j++){\n\t \t\t\t\tint sum=0;\n\t \t\t\t\tfor(int l=0;l<m;l++){\n\t \t\t\t\t\tsum+=(mat[l]*card[j][l]);\n\t \t\t\t\t}\n\t \t\t\t\tSystem.out.println(sum);\n\t \t\t\t}\n\t \t\t\tbreak;\n\t \t\t}\n \t\t}\n \t}\n }\n }\n }",
"main",
"{\n // TODO ?????????????????????????????????????????????\n \n boolean first=true;\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int i=0,n=0,m=0;\n int[][] card=null;\n int[] mat=null;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tString[] str=line.split(\" \");\n \t\tn=Integer.parseInt(str[0]);\n \t\tm=Integer.parseInt(str[1]);\n \t\tcard=new int[n][m];\n \t\tmat=new int[m];\n \t\tfirst=false;\n \t}else{\n \t\tif(i<n){\n \t\tString[] str=line.split(\" \");\n \t\tfor(int j=0;j<m;j++){\n \t\t\tcard[i][j]=Integer.parseInt(str[j]);\n \t\t}\n \t\ti++;\n \t\t}else{\n \t\t\tmat[i-n]=Integer.parseInt(line);\n \t\t\ti++;\n\t \t\tif(i==n+m){\n\t \t\t\tfor(int j=0;j<n;j++){\n\t \t\t\t\tint sum=0;\n\t \t\t\t\tfor(int l=0;l<m;l++){\n\t \t\t\t\t\tsum+=(mat[l]*card[j][l]);\n\t \t\t\t\t}\n\t \t\t\t\tSystem.out.println(sum);\n\t \t\t\t}\n\t \t\t\tbreak;\n\t \t\t}\n \t\t}\n \t}\n }\n }\n }",
"boolean first=true;",
"first",
"true",
"try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int i=0,n=0,m=0;\n int[][] card=null;\n int[] mat=null;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tString[] str=line.split(\" \");\n \t\tn=Integer.parseInt(str[0]);\n \t\tm=Integer.parseInt(str[1]);\n \t\tcard=new int[n][m];\n \t\tmat=new int[m];\n \t\tfirst=false;\n \t}else{\n \t\tif(i<n){\n \t\tString[] str=line.split(\" \");\n \t\tfor(int j=0;j<m;j++){\n \t\t\tcard[i][j]=Integer.parseInt(str[j]);\n \t\t}\n \t\ti++;\n \t\t}else{\n \t\t\tmat[i-n]=Integer.parseInt(line);\n \t\t\ti++;\n\t \t\tif(i==n+m){\n\t \t\t\tfor(int j=0;j<n;j++){\n\t \t\t\t\tint sum=0;\n\t \t\t\t\tfor(int l=0;l<m;l++){\n\t \t\t\t\t\tsum+=(mat[l]*card[j][l]);\n\t \t\t\t\t}\n\t \t\t\t\tSystem.out.println(sum);\n\t \t\t\t}\n\t \t\t\tbreak;\n\t \t\t}\n \t\t}\n \t}\n }\n }",
"{\n String line;\n int i=0,n=0,m=0;\n int[][] card=null;\n int[] mat=null;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tString[] str=line.split(\" \");\n \t\tn=Integer.parseInt(str[0]);\n \t\tm=Integer.parseInt(str[1]);\n \t\tcard=new int[n][m];\n \t\tmat=new int[m];\n \t\tfirst=false;\n \t}else{\n \t\tif(i<n){\n \t\tString[] str=line.split(\" \");\n \t\tfor(int j=0;j<m;j++){\n \t\t\tcard[i][j]=Integer.parseInt(str[j]);\n \t\t}\n \t\ti++;\n \t\t}else{\n \t\t\tmat[i-n]=Integer.parseInt(line);\n \t\t\ti++;\n\t \t\tif(i==n+m){\n\t \t\t\tfor(int j=0;j<n;j++){\n\t \t\t\t\tint sum=0;\n\t \t\t\t\tfor(int l=0;l<m;l++){\n\t \t\t\t\t\tsum+=(mat[l]*card[j][l]);\n\t \t\t\t\t}\n\t \t\t\t\tSystem.out.println(sum);\n\t \t\t\t}\n\t \t\t\tbreak;\n\t \t\t}\n \t\t}\n \t}\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in))",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in))",
"new BufferedReader(new InputStreamReader(System.in))",
"String line;",
"line",
"int i=0",
"i",
"0",
"n=0",
"n",
"0",
"m=0;",
"m",
"0",
"int[][] card=null;",
"card",
"null",
"int[] mat=null;",
"mat",
"null",
"while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tString[] str=line.split(\" \");\n \t\tn=Integer.parseInt(str[0]);\n \t\tm=Integer.parseInt(str[1]);\n \t\tcard=new int[n][m];\n \t\tmat=new int[m];\n \t\tfirst=false;\n \t}else{\n \t\tif(i<n){\n \t\tString[] str=line.split(\" \");\n \t\tfor(int j=0;j<m;j++){\n \t\t\tcard[i][j]=Integer.parseInt(str[j]);\n \t\t}\n \t\ti++;\n \t\t}else{\n \t\t\tmat[i-n]=Integer.parseInt(line);\n \t\t\ti++;\n\t \t\tif(i==n+m){\n\t \t\t\tfor(int j=0;j<n;j++){\n\t \t\t\t\tint sum=0;\n\t \t\t\t\tfor(int l=0;l<m;l++){\n\t \t\t\t\t\tsum+=(mat[l]*card[j][l]);\n\t \t\t\t\t}\n\t \t\t\t\tSystem.out.println(sum);\n\t \t\t\t}\n\t \t\t\tbreak;\n\t \t\t}\n \t\t}\n \t}\n }",
"(line = br.readLine()) != null",
"(line = br.readLine())",
"line",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n \tif(first){\n \t\tString[] str=line.split(\" \");\n \t\tn=Integer.parseInt(str[0]);\n \t\tm=Integer.parseInt(str[1]);\n \t\tcard=new int[n][m];\n \t\tmat=new int[m];\n \t\tfirst=false;\n \t}else{\n \t\tif(i<n){\n \t\tString[] str=line.split(\" \");\n \t\tfor(int j=0;j<m;j++){\n \t\t\tcard[i][j]=Integer.parseInt(str[j]);\n \t\t}\n \t\ti++;\n \t\t}else{\n \t\t\tmat[i-n]=Integer.parseInt(line);\n \t\t\ti++;\n\t \t\tif(i==n+m){\n\t \t\t\tfor(int j=0;j<n;j++){\n\t \t\t\t\tint sum=0;\n\t \t\t\t\tfor(int l=0;l<m;l++){\n\t \t\t\t\t\tsum+=(mat[l]*card[j][l]);\n\t \t\t\t\t}\n\t \t\t\t\tSystem.out.println(sum);\n\t \t\t\t}\n\t \t\t\tbreak;\n\t \t\t}\n \t\t}\n \t}\n }",
"if(first){\n \t\tString[] str=line.split(\" \");\n \t\tn=Integer.parseInt(str[0]);\n \t\tm=Integer.parseInt(str[1]);\n \t\tcard=new int[n][m];\n \t\tmat=new int[m];\n \t\tfirst=false;\n \t}else{\n \t\tif(i<n){\n \t\tString[] str=line.split(\" \");\n \t\tfor(int j=0;j<m;j++){\n \t\t\tcard[i][j]=Integer.parseInt(str[j]);\n \t\t}\n \t\ti++;\n \t\t}else{\n \t\t\tmat[i-n]=Integer.parseInt(line);\n \t\t\ti++;\n\t \t\tif(i==n+m){\n\t \t\t\tfor(int j=0;j<n;j++){\n\t \t\t\t\tint sum=0;\n\t \t\t\t\tfor(int l=0;l<m;l++){\n\t \t\t\t\t\tsum+=(mat[l]*card[j][l]);\n\t \t\t\t\t}\n\t \t\t\t\tSystem.out.println(sum);\n\t \t\t\t}\n\t \t\t\tbreak;\n\t \t\t}\n \t\t}\n \t}",
"first",
"{\n \t\tString[] str=line.split(\" \");\n \t\tn=Integer.parseInt(str[0]);\n \t\tm=Integer.parseInt(str[1]);\n \t\tcard=new int[n][m];\n \t\tmat=new int[m];\n \t\tfirst=false;\n \t}",
"String[] str=line.split(\" \");",
"str",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"n=Integer.parseInt(str[0])",
"n",
"Integer.parseInt(str[0])",
"Integer.parseInt",
"Integer",
"str[0]",
"str",
"0",
"m=Integer.parseInt(str[1])",
"m",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"card=new int[n][m]",
"card",
"new int[n][m]",
"n",
"m",
"mat=new int[m]",
"mat",
"new int[m]",
"m",
"first=false",
"first",
"false",
"{\n \t\tif(i<n){\n \t\tString[] str=line.split(\" \");\n \t\tfor(int j=0;j<m;j++){\n \t\t\tcard[i][j]=Integer.parseInt(str[j]);\n \t\t}\n \t\ti++;\n \t\t}else{\n \t\t\tmat[i-n]=Integer.parseInt(line);\n \t\t\ti++;\n\t \t\tif(i==n+m){\n\t \t\t\tfor(int j=0;j<n;j++){\n\t \t\t\t\tint sum=0;\n\t \t\t\t\tfor(int l=0;l<m;l++){\n\t \t\t\t\t\tsum+=(mat[l]*card[j][l]);\n\t \t\t\t\t}\n\t \t\t\t\tSystem.out.println(sum);\n\t \t\t\t}\n\t \t\t\tbreak;\n\t \t\t}\n \t\t}\n \t}",
"if(i<n){\n \t\tString[] str=line.split(\" \");\n \t\tfor(int j=0;j<m;j++){\n \t\t\tcard[i][j]=Integer.parseInt(str[j]);\n \t\t}\n \t\ti++;\n \t\t}else{\n \t\t\tmat[i-n]=Integer.parseInt(line);\n \t\t\ti++;\n\t \t\tif(i==n+m){\n\t \t\t\tfor(int j=0;j<n;j++){\n\t \t\t\t\tint sum=0;\n\t \t\t\t\tfor(int l=0;l<m;l++){\n\t \t\t\t\t\tsum+=(mat[l]*card[j][l]);\n\t \t\t\t\t}\n\t \t\t\t\tSystem.out.println(sum);\n\t \t\t\t}\n\t \t\t\tbreak;\n\t \t\t}\n \t\t}",
"i<n",
"i",
"n",
"{\n \t\tString[] str=line.split(\" \");\n \t\tfor(int j=0;j<m;j++){\n \t\t\tcard[i][j]=Integer.parseInt(str[j]);\n \t\t}\n \t\ti++;\n \t\t}",
"String[] str=line.split(\" \");",
"str",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"for(int j=0;j<m;j++){\n \t\t\tcard[i][j]=Integer.parseInt(str[j]);\n \t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n \t\t\tcard[i][j]=Integer.parseInt(str[j]);\n \t\t}",
"{\n \t\t\tcard[i][j]=Integer.parseInt(str[j]);\n \t\t}",
"card[i][j]=Integer.parseInt(str[j])",
"card[i][j]",
"card[i]",
"card",
"i",
"j",
"Integer.parseInt(str[j])",
"Integer.parseInt",
"Integer",
"str[j]",
"str",
"j",
"i++",
"i",
"{\n \t\t\tmat[i-n]=Integer.parseInt(line);\n \t\t\ti++;\n\t \t\tif(i==n+m){\n\t \t\t\tfor(int j=0;j<n;j++){\n\t \t\t\t\tint sum=0;\n\t \t\t\t\tfor(int l=0;l<m;l++){\n\t \t\t\t\t\tsum+=(mat[l]*card[j][l]);\n\t \t\t\t\t}\n\t \t\t\t\tSystem.out.println(sum);\n\t \t\t\t}\n\t \t\t\tbreak;\n\t \t\t}\n \t\t}",
"mat[i-n]=Integer.parseInt(line)",
"mat[i-n]",
"mat",
"i-n",
"i",
"n",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"i++",
"i",
"if(i==n+m){\n\t \t\t\tfor(int j=0;j<n;j++){\n\t \t\t\t\tint sum=0;\n\t \t\t\t\tfor(int l=0;l<m;l++){\n\t \t\t\t\t\tsum+=(mat[l]*card[j][l]);\n\t \t\t\t\t}\n\t \t\t\t\tSystem.out.println(sum);\n\t \t\t\t}\n\t \t\t\tbreak;\n\t \t\t}",
"i==n+m",
"i",
"n+m",
"n",
"m",
"{\n\t \t\t\tfor(int j=0;j<n;j++){\n\t \t\t\t\tint sum=0;\n\t \t\t\t\tfor(int l=0;l<m;l++){\n\t \t\t\t\t\tsum+=(mat[l]*card[j][l]);\n\t \t\t\t\t}\n\t \t\t\t\tSystem.out.println(sum);\n\t \t\t\t}\n\t \t\t\tbreak;\n\t \t\t}",
"for(int j=0;j<n;j++){\n\t \t\t\t\tint sum=0;\n\t \t\t\t\tfor(int l=0;l<m;l++){\n\t \t\t\t\t\tsum+=(mat[l]*card[j][l]);\n\t \t\t\t\t}\n\t \t\t\t\tSystem.out.println(sum);\n\t \t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<n",
"j",
"n",
"j++",
"j++",
"j",
"{\n\t \t\t\t\tint sum=0;\n\t \t\t\t\tfor(int l=0;l<m;l++){\n\t \t\t\t\t\tsum+=(mat[l]*card[j][l]);\n\t \t\t\t\t}\n\t \t\t\t\tSystem.out.println(sum);\n\t \t\t\t}",
"{\n\t \t\t\t\tint sum=0;\n\t \t\t\t\tfor(int l=0;l<m;l++){\n\t \t\t\t\t\tsum+=(mat[l]*card[j][l]);\n\t \t\t\t\t}\n\t \t\t\t\tSystem.out.println(sum);\n\t \t\t\t}",
"int sum=0;",
"sum",
"0",
"for(int l=0;l<m;l++){\n\t \t\t\t\t\tsum+=(mat[l]*card[j][l]);\n\t \t\t\t\t}",
"int l=0;",
"int l=0;",
"l",
"0",
"l<m",
"l",
"m",
"l++",
"l++",
"l",
"{\n\t \t\t\t\t\tsum+=(mat[l]*card[j][l]);\n\t \t\t\t\t}",
"{\n\t \t\t\t\t\tsum+=(mat[l]*card[j][l]);\n\t \t\t\t\t}",
"sum+=(mat[l]*card[j][l])",
"sum",
"(mat[l]*card[j][l])",
"mat[l]",
"mat",
"l",
"card[j][l]",
"card[j]",
"card",
"j",
"l",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"break;",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n boolean first=true;\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int i=0,n=0,m=0;\n int[][] card=null;\n int[] mat=null;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tString[] str=line.split(\" \");\n \t\tn=Integer.parseInt(str[0]);\n \t\tm=Integer.parseInt(str[1]);\n \t\tcard=new int[n][m];\n \t\tmat=new int[m];\n \t\tfirst=false;\n \t}else{\n \t\tif(i<n){\n \t\tString[] str=line.split(\" \");\n \t\tfor(int j=0;j<m;j++){\n \t\t\tcard[i][j]=Integer.parseInt(str[j]);\n \t\t}\n \t\ti++;\n \t\t}else{\n \t\t\tmat[i-n]=Integer.parseInt(line);\n \t\t\ti++;\n\t \t\tif(i==n+m){\n\t \t\t\tfor(int j=0;j<n;j++){\n\t \t\t\t\tint sum=0;\n\t \t\t\t\tfor(int l=0;l<m;l++){\n\t \t\t\t\t\tsum+=(mat[l]*card[j][l]);\n\t \t\t\t\t}\n\t \t\t\t\tSystem.out.println(sum);\n\t \t\t\t}\n\t \t\t\tbreak;\n\t \t\t}\n \t\t}\n \t}\n }\n }\n }\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n boolean first=true;\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int i=0,n=0,m=0;\n int[][] card=null;\n int[] mat=null;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tString[] str=line.split(\" \");\n \t\tn=Integer.parseInt(str[0]);\n \t\tm=Integer.parseInt(str[1]);\n \t\tcard=new int[n][m];\n \t\tmat=new int[m];\n \t\tfirst=false;\n \t}else{\n \t\tif(i<n){\n \t\tString[] str=line.split(\" \");\n \t\tfor(int j=0;j<m;j++){\n \t\t\tcard[i][j]=Integer.parseInt(str[j]);\n \t\t}\n \t\ti++;\n \t\t}else{\n \t\t\tmat[i-n]=Integer.parseInt(line);\n \t\t\ti++;\n\t \t\tif(i==n+m){\n\t \t\t\tfor(int j=0;j<n;j++){\n\t \t\t\t\tint sum=0;\n\t \t\t\t\tfor(int l=0;l<m;l++){\n\t \t\t\t\t\tsum+=(mat[l]*card[j][l]);\n\t \t\t\t\t}\n\t \t\t\t\tSystem.out.println(sum);\n\t \t\t\t}\n\t \t\t\tbreak;\n\t \t\t}\n \t\t}\n \t}\n }\n }\n }\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
// TODO ?????????????????????????????????????????????
boolean first=true;
try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
String line;
int i=0,n=0,m=0;
int[][] card=null;
int[] mat=null;
while ((line = br.readLine()) != null) {
if(first){
String[] str=line.split(" ");
n=Integer.parseInt(str[0]);
m=Integer.parseInt(str[1]);
card=new int[n][m];
mat=new int[m];
first=false;
}else{
if(i<n){
String[] str=line.split(" ");
for(int j=0;j<m;j++){
card[i][j]=Integer.parseInt(str[j]);
}
i++;
}else{
mat[i-n]=Integer.parseInt(line);
i++;
if(i==n+m){
for(int j=0;j<n;j++){
int sum=0;
for(int l=0;l<m;l++){
sum+=(mat[l]*card[j][l]);
}
System.out.println(sum);
}
break;
}
}
}
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
20,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
29,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
20,
41,
13,
4,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
4,
8
],
[
8,
9
],
[
4,
10
],
[
10,
11
],
[
4,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
12,
25
],
[
25,
26
],
[
12,
27
],
[
27,
28
],
[
12,
29
],
[
29,
30
],
[
4,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
39,
41
],
[
34,
42
],
[
42,
43
],
[
43,
44
],
[
34,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
74,
75
],
[
74,
76
],
[
33,
77
],
[
77,
78
],
[
31,
79
],
[
79,
80
],
[
31,
81
],
[
81,
82
],
[
4,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
83,
88
],
[
88,
89
],
[
0,
90
],
[
209,
91
],
[
209,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
94,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
94,
108
],
[
108,
109
],
[
108,
110
],
[
94,
113
],
[
113,
114
],
[
113,
115
],
[
94,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
122,
123
],
[
122,
124
],
[
117,
125
],
[
125,
126
],
[
126,
127
],
[
117,
128
],
[
129,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
135,
136
],
[
135,
137
],
[
130,
138
],
[
138,
139
],
[
139,
140
],
[
130,
141
],
[
142,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
143,
149
],
[
149,
150
],
[
150,
151
],
[
94,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
152,
157
],
[
157,
158
],
[
157,
159
],
[
152,
160
],
[
160,
161
],
[
161,
162
],
[
152,
163
],
[
164,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
169,
170
],
[
170,
171
],
[
94,
172
],
[
172,
173
],
[
172,
174
],
[
94,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
178,
179
],
[
177,
180
],
[
177,
181
],
[
94,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
182,
187
],
[
187,
188
],
[
187,
189
],
[
182,
190
],
[
190,
191
],
[
191,
192
],
[
182,
193
],
[
194,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
195,
200
],
[
200,
201
],
[
200,
202
],
[
94,
203
],
[
203,
204
],
[
204,
205
],
[
92,
206
],
[
206,
207
],
[
0,
208
],
[
208,
209
],
[
208,
210
]
] | [
"import java.util.Scanner;\n\nclass Clc{\n\tprivate int[][] NM;\t//n*m?????????\n\tprivate int[] M1;\t//m???1?????????\t\n\tprivate int[] result;\n\t//---?????????????????????---//\n\tClc(int[][] nm,int[] m1, int N){\n\t\tNM\t= \tnm;\n\t\tM1\t=\tm1;\n\t\tresult = new int[N];\n\t}\n\t\n\tint[] getclc(int N,int M){\n\t\tfor(int x = 0; x < N ; x++){\n\t\t\tfor(int y = 0; y < M; y++){\n\t\t\t\tresult[x]=result[x]+NM[x][y]*M1[y];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}\n\tint[] get(int N){\n\t\treturn M1;\n\t}\n\t\n\t\n\t\n}\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint N = scanner.nextInt();\n\t\tint M = scanner.nextInt();\n\t\tint[][] NM = new int[N][M];\n\t\tint[] M1\t= new int[M];\n\t\t\n\t\tfor(int x = 0 ; x < N ;x++){\n\t\t\tfor(int y = 0; y < M ; y++){\n\t\t\t\tNM[x][y]=scanner.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < M ; i++){\n\t\t\tM1[i] = scanner.nextInt();\n\t\t}\n\t\t\n\t\tClc seki = new Clc(NM, M1, N); \n\t\tint[] result = seki.getclc(N,M);\n\t\t\n\t\tfor(int i = 0;i < N ; i++){\n\t\t\tSystem.out.println(result[i]);\n\t\t}\n\t\tscanner.close();\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Clc{\n\tprivate int[][] NM;\t//n*m?????????\n\tprivate int[] M1;\t//m???1?????????\t\n\tprivate int[] result;\n\t//---?????????????????????---//\n\tClc(int[][] nm,int[] m1, int N){\n\t\tNM\t= \tnm;\n\t\tM1\t=\tm1;\n\t\tresult = new int[N];\n\t}\n\t\n\tint[] getclc(int N,int M){\n\t\tfor(int x = 0; x < N ; x++){\n\t\t\tfor(int y = 0; y < M; y++){\n\t\t\t\tresult[x]=result[x]+NM[x][y]*M1[y];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}\n\tint[] get(int N){\n\t\treturn M1;\n\t}\n\t\n\t\n\t\n}",
"Clc",
"private int[][] NM;\t//n*m?????????",
"NM",
"private int[] M1;\t//m???1?????????\t",
"M1",
"private int[] result;",
"result",
"//---?????????????????????---//\n\tClc(int[][] nm,int[] m1, int N){\n\t\tNM\t= \tnm;\n\t\tM1\t=\tm1;\n\t\tresult = new int[N];\n\t}",
"Clc",
"{\n\t\tNM\t= \tnm;\n\t\tM1\t=\tm1;\n\t\tresult = new int[N];\n\t}",
"NM\t= \tnm",
"NM",
"nm",
"M1\t=\tm1",
"M1",
"m1",
"result = new int[N]",
"result",
"new int[N]",
"N",
"int[][] nm",
"nm",
"int[] m1",
"m1",
"int N",
"N",
"int[] getclc(int N,int M){\n\t\tfor(int x = 0; x < N ; x++){\n\t\t\tfor(int y = 0; y < M; y++){\n\t\t\t\tresult[x]=result[x]+NM[x][y]*M1[y];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"getclc",
"{\n\t\tfor(int x = 0; x < N ; x++){\n\t\t\tfor(int y = 0; y < M; y++){\n\t\t\t\tresult[x]=result[x]+NM[x][y]*M1[y];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"for(int x = 0; x < N ; x++){\n\t\t\tfor(int y = 0; y < M; y++){\n\t\t\t\tresult[x]=result[x]+NM[x][y]*M1[y];\n\t\t\t}\n\t\t}",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < N",
"x",
"N",
"x++",
"x++",
"x",
"{\n\t\t\tfor(int y = 0; y < M; y++){\n\t\t\t\tresult[x]=result[x]+NM[x][y]*M1[y];\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int y = 0; y < M; y++){\n\t\t\t\tresult[x]=result[x]+NM[x][y]*M1[y];\n\t\t\t}\n\t\t}",
"for(int y = 0; y < M; y++){\n\t\t\t\tresult[x]=result[x]+NM[x][y]*M1[y];\n\t\t\t}",
"int y = 0;",
"int y = 0;",
"y",
"0",
"y < M",
"y",
"M",
"y++",
"y++",
"y",
"{\n\t\t\t\tresult[x]=result[x]+NM[x][y]*M1[y];\n\t\t\t}",
"{\n\t\t\t\tresult[x]=result[x]+NM[x][y]*M1[y];\n\t\t\t}",
"result[x]=result[x]+NM[x][y]*M1[y]",
"result[x]",
"result",
"x",
"result[x]+NM[x][y]*M1[y]",
"result[x]",
"result",
"x",
"NM[x][y]*M1[y]",
"NM[x][y]",
"NM[x]",
"NM",
"x",
"y",
"M1[y]",
"M1",
"y",
"return result;",
"result",
"int N",
"N",
"int M",
"M",
"int[] get(int N){\n\t\treturn M1;\n\t}",
"get",
"{\n\t\treturn M1;\n\t}",
"return M1;",
"M1",
"int N",
"N",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint N = scanner.nextInt();\n\t\tint M = scanner.nextInt();\n\t\tint[][] NM = new int[N][M];\n\t\tint[] M1\t= new int[M];\n\t\t\n\t\tfor(int x = 0 ; x < N ;x++){\n\t\t\tfor(int y = 0; y < M ; y++){\n\t\t\t\tNM[x][y]=scanner.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < M ; i++){\n\t\t\tM1[i] = scanner.nextInt();\n\t\t}\n\t\t\n\t\tClc seki = new Clc(NM, M1, N); \n\t\tint[] result = seki.getclc(N,M);\n\t\t\n\t\tfor(int i = 0;i < N ; i++){\n\t\t\tSystem.out.println(result[i]);\n\t\t}\n\t\tscanner.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint N = scanner.nextInt();\n\t\tint M = scanner.nextInt();\n\t\tint[][] NM = new int[N][M];\n\t\tint[] M1\t= new int[M];\n\t\t\n\t\tfor(int x = 0 ; x < N ;x++){\n\t\t\tfor(int y = 0; y < M ; y++){\n\t\t\t\tNM[x][y]=scanner.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < M ; i++){\n\t\t\tM1[i] = scanner.nextInt();\n\t\t}\n\t\t\n\t\tClc seki = new Clc(NM, M1, N); \n\t\tint[] result = seki.getclc(N,M);\n\t\t\n\t\tfor(int i = 0;i < N ; i++){\n\t\t\tSystem.out.println(result[i]);\n\t\t}\n\t\tscanner.close();\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint N = scanner.nextInt();\n\t\tint M = scanner.nextInt();\n\t\tint[][] NM = new int[N][M];\n\t\tint[] M1\t= new int[M];\n\t\t\n\t\tfor(int x = 0 ; x < N ;x++){\n\t\t\tfor(int y = 0; y < M ; y++){\n\t\t\t\tNM[x][y]=scanner.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < M ; i++){\n\t\t\tM1[i] = scanner.nextInt();\n\t\t}\n\t\t\n\t\tClc seki = new Clc(NM, M1, N); \n\t\tint[] result = seki.getclc(N,M);\n\t\t\n\t\tfor(int i = 0;i < N ; i++){\n\t\t\tSystem.out.println(result[i]);\n\t\t}\n\t\tscanner.close();\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int N = scanner.nextInt();",
"N",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int M = scanner.nextInt();",
"M",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int[][] NM = new int[N][M];",
"NM",
"new int[N][M]",
"N",
"M",
"int[] M1\t= new int[M];",
"M1",
"new int[M]",
"M",
"for(int x = 0 ; x < N ;x++){\n\t\t\tfor(int y = 0; y < M ; y++){\n\t\t\t\tNM[x][y]=scanner.nextInt();\n\t\t\t}\n\t\t}",
"int x = 0 ;",
"int x = 0 ;",
"x",
"0",
"x < N",
"x",
"N",
"x++",
"x++",
"x",
"{\n\t\t\tfor(int y = 0; y < M ; y++){\n\t\t\t\tNM[x][y]=scanner.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int y = 0; y < M ; y++){\n\t\t\t\tNM[x][y]=scanner.nextInt();\n\t\t\t}\n\t\t}",
"for(int y = 0; y < M ; y++){\n\t\t\t\tNM[x][y]=scanner.nextInt();\n\t\t\t}",
"int y = 0;",
"int y = 0;",
"y",
"0",
"y < M",
"y",
"M",
"y++",
"y++",
"y",
"{\n\t\t\t\tNM[x][y]=scanner.nextInt();\n\t\t\t}",
"{\n\t\t\t\tNM[x][y]=scanner.nextInt();\n\t\t\t}",
"NM[x][y]=scanner.nextInt()",
"NM[x][y]",
"NM[x]",
"NM",
"x",
"y",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for(int i = 0; i < M ; i++){\n\t\t\tM1[i] = scanner.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < M",
"i",
"M",
"i++",
"i++",
"i",
"{\n\t\t\tM1[i] = scanner.nextInt();\n\t\t}",
"{\n\t\t\tM1[i] = scanner.nextInt();\n\t\t}",
"M1[i] = scanner.nextInt()",
"M1[i]",
"M1",
"i",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"Clc seki = new Clc(NM, M1, N);",
"seki",
"new Clc(NM, M1, N)",
"int[] result = seki.getclc(N,M);",
"result",
"seki.getclc(N,M)",
"seki.getclc",
"seki",
"N",
"M",
"for(int i = 0;i < N ; i++){\n\t\t\tSystem.out.println(result[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(result[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(result[i]);\n\t\t}",
"System.out.println(result[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"result[i]",
"result",
"i",
"scanner.close()",
"scanner.close",
"scanner",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint N = scanner.nextInt();\n\t\tint M = scanner.nextInt();\n\t\tint[][] NM = new int[N][M];\n\t\tint[] M1\t= new int[M];\n\t\t\n\t\tfor(int x = 0 ; x < N ;x++){\n\t\t\tfor(int y = 0; y < M ; y++){\n\t\t\t\tNM[x][y]=scanner.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < M ; i++){\n\t\t\tM1[i] = scanner.nextInt();\n\t\t}\n\t\t\n\t\tClc seki = new Clc(NM, M1, N); \n\t\tint[] result = seki.getclc(N,M);\n\t\t\n\t\tfor(int i = 0;i < N ; i++){\n\t\t\tSystem.out.println(result[i]);\n\t\t}\n\t\tscanner.close();\n\t}\n\n}",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint N = scanner.nextInt();\n\t\tint M = scanner.nextInt();\n\t\tint[][] NM = new int[N][M];\n\t\tint[] M1\t= new int[M];\n\t\t\n\t\tfor(int x = 0 ; x < N ;x++){\n\t\t\tfor(int y = 0; y < M ; y++){\n\t\t\t\tNM[x][y]=scanner.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < M ; i++){\n\t\t\tM1[i] = scanner.nextInt();\n\t\t}\n\t\t\n\t\tClc seki = new Clc(NM, M1, N); \n\t\tint[] result = seki.getclc(N,M);\n\t\t\n\t\tfor(int i = 0;i < N ; i++){\n\t\t\tSystem.out.println(result[i]);\n\t\t}\n\t\tscanner.close();\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
class Clc{
private int[][] NM; //n*m?????????
private int[] M1; //m???1?????????
private int[] result;
//---?????????????????????---//
Clc(int[][] nm,int[] m1, int N){
NM = nm;
M1 = m1;
result = new int[N];
}
int[] getclc(int N,int M){
for(int x = 0; x < N ; x++){
for(int y = 0; y < M; y++){
result[x]=result[x]+NM[x][y]*M1[y];
}
}
return result;
}
int[] get(int N){
return M1;
}
}
public class Main{
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
int M = scanner.nextInt();
int[][] NM = new int[N][M];
int[] M1 = new int[M];
for(int x = 0 ; x < N ;x++){
for(int y = 0; y < M ; y++){
NM[x][y]=scanner.nextInt();
}
}
for(int i = 0; i < M ; i++){
M1[i] = scanner.nextInt();
}
Clc seki = new Clc(NM, M1, N);
int[] result = seki.getclc(N,M);
for(int i = 0;i < N ; i++){
System.out.println(result[i]);
}
scanner.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
13,
13,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
172,
5
],
[
172,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
56,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
56,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
90,
91
],
[
90,
92
],
[
8,
93
],
[
93,
94
],
[
93,
95
],
[
8,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
97,
105
],
[
105,
106
],
[
106,
107
],
[
97,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
109,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
8,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
123,
128
],
[
128,
129
],
[
128,
130
],
[
123,
131
],
[
131,
132
],
[
132,
133
],
[
123,
134
],
[
135,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
144,
145
],
[
144,
146
],
[
139,
147
],
[
147,
148
],
[
148,
149
],
[
139,
150
],
[
151,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
135,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
6,
169
],
[
169,
170
],
[
0,
171
],
[
171,
172
],
[
171,
173
]
] | [
"import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String[] linesp = line.split(\" \");\n int n = Integer.parseInt(linesp[0]);\n int m = Integer.parseInt(linesp[1]);\n int[][] mat = new int[n][m];\n for(int i = 0; i < n; i++) {\n String line1 = sc.nextLine();\n String[] line1sp = line1.split(\" \");\n for(int j = 0; j < m; j++) {\n mat[i][j] = Integer.parseInt(line1sp[j]);\n }\n }\n int[] b = new int[m];\n for(int i = 0; i < m; i++) {\n String line2 = sc.nextLine();\n b[i] = Integer.parseInt(line2);\n }\n \n for(int i = 0; i < n; i++) {\n int ans = 0;\n for(int j = 0; j < m; j++) {\n ans += b[j] * mat[i][j];\n }\n System.out.println(ans);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String[] linesp = line.split(\" \");\n int n = Integer.parseInt(linesp[0]);\n int m = Integer.parseInt(linesp[1]);\n int[][] mat = new int[n][m];\n for(int i = 0; i < n; i++) {\n String line1 = sc.nextLine();\n String[] line1sp = line1.split(\" \");\n for(int j = 0; j < m; j++) {\n mat[i][j] = Integer.parseInt(line1sp[j]);\n }\n }\n int[] b = new int[m];\n for(int i = 0; i < m; i++) {\n String line2 = sc.nextLine();\n b[i] = Integer.parseInt(line2);\n }\n \n for(int i = 0; i < n; i++) {\n int ans = 0;\n for(int j = 0; j < m; j++) {\n ans += b[j] * mat[i][j];\n }\n System.out.println(ans);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String[] linesp = line.split(\" \");\n int n = Integer.parseInt(linesp[0]);\n int m = Integer.parseInt(linesp[1]);\n int[][] mat = new int[n][m];\n for(int i = 0; i < n; i++) {\n String line1 = sc.nextLine();\n String[] line1sp = line1.split(\" \");\n for(int j = 0; j < m; j++) {\n mat[i][j] = Integer.parseInt(line1sp[j]);\n }\n }\n int[] b = new int[m];\n for(int i = 0; i < m; i++) {\n String line2 = sc.nextLine();\n b[i] = Integer.parseInt(line2);\n }\n \n for(int i = 0; i < n; i++) {\n int ans = 0;\n for(int j = 0; j < m; j++) {\n ans += b[j] * mat[i][j];\n }\n System.out.println(ans);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String[] linesp = line.split(\" \");\n int n = Integer.parseInt(linesp[0]);\n int m = Integer.parseInt(linesp[1]);\n int[][] mat = new int[n][m];\n for(int i = 0; i < n; i++) {\n String line1 = sc.nextLine();\n String[] line1sp = line1.split(\" \");\n for(int j = 0; j < m; j++) {\n mat[i][j] = Integer.parseInt(line1sp[j]);\n }\n }\n int[] b = new int[m];\n for(int i = 0; i < m; i++) {\n String line2 = sc.nextLine();\n b[i] = Integer.parseInt(line2);\n }\n \n for(int i = 0; i < n; i++) {\n int ans = 0;\n for(int j = 0; j < m; j++) {\n ans += b[j] * mat[i][j];\n }\n System.out.println(ans);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line = sc.nextLine();",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] linesp = line.split(\" \");",
"linesp",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"int n = Integer.parseInt(linesp[0]);",
"n",
"Integer.parseInt(linesp[0])",
"Integer.parseInt",
"Integer",
"linesp[0]",
"linesp",
"0",
"int m = Integer.parseInt(linesp[1]);",
"m",
"Integer.parseInt(linesp[1])",
"Integer.parseInt",
"Integer",
"linesp[1]",
"linesp",
"1",
"int[][] mat = new int[n][m];",
"mat",
"new int[n][m]",
"n",
"m",
"for(int i = 0; i < n; i++) {\n String line1 = sc.nextLine();\n String[] line1sp = line1.split(\" \");\n for(int j = 0; j < m; j++) {\n mat[i][j] = Integer.parseInt(line1sp[j]);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String line1 = sc.nextLine();\n String[] line1sp = line1.split(\" \");\n for(int j = 0; j < m; j++) {\n mat[i][j] = Integer.parseInt(line1sp[j]);\n }\n }",
"{\n String line1 = sc.nextLine();\n String[] line1sp = line1.split(\" \");\n for(int j = 0; j < m; j++) {\n mat[i][j] = Integer.parseInt(line1sp[j]);\n }\n }",
"String line1 = sc.nextLine();",
"line1",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] line1sp = line1.split(\" \");",
"line1sp",
"line1.split(\" \")",
"line1.split",
"line1",
"\" \"",
"for(int j = 0; j < m; j++) {\n mat[i][j] = Integer.parseInt(line1sp[j]);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n mat[i][j] = Integer.parseInt(line1sp[j]);\n }",
"{\n mat[i][j] = Integer.parseInt(line1sp[j]);\n }",
"mat[i][j] = Integer.parseInt(line1sp[j])",
"mat[i][j]",
"mat[i]",
"mat",
"i",
"j",
"Integer.parseInt(line1sp[j])",
"Integer.parseInt",
"Integer",
"line1sp[j]",
"line1sp",
"j",
"int[] b = new int[m];",
"b",
"new int[m]",
"m",
"for(int i = 0; i < m; i++) {\n String line2 = sc.nextLine();\n b[i] = Integer.parseInt(line2);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n String line2 = sc.nextLine();\n b[i] = Integer.parseInt(line2);\n }",
"{\n String line2 = sc.nextLine();\n b[i] = Integer.parseInt(line2);\n }",
"String line2 = sc.nextLine();",
"line2",
"sc.nextLine()",
"sc.nextLine",
"sc",
"b[i] = Integer.parseInt(line2)",
"b[i]",
"b",
"i",
"Integer.parseInt(line2)",
"Integer.parseInt",
"Integer",
"line2",
"for(int i = 0; i < n; i++) {\n int ans = 0;\n for(int j = 0; j < m; j++) {\n ans += b[j] * mat[i][j];\n }\n System.out.println(ans);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int ans = 0;\n for(int j = 0; j < m; j++) {\n ans += b[j] * mat[i][j];\n }\n System.out.println(ans);\n }",
"{\n int ans = 0;\n for(int j = 0; j < m; j++) {\n ans += b[j] * mat[i][j];\n }\n System.out.println(ans);\n }",
"int ans = 0;",
"ans",
"0",
"for(int j = 0; j < m; j++) {\n ans += b[j] * mat[i][j];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n ans += b[j] * mat[i][j];\n }",
"{\n ans += b[j] * mat[i][j];\n }",
"ans += b[j] * mat[i][j]",
"ans",
"b[j] * mat[i][j]",
"b[j]",
"b",
"j",
"mat[i][j]",
"mat[i]",
"mat",
"i",
"j",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String[] linesp = line.split(\" \");\n int n = Integer.parseInt(linesp[0]);\n int m = Integer.parseInt(linesp[1]);\n int[][] mat = new int[n][m];\n for(int i = 0; i < n; i++) {\n String line1 = sc.nextLine();\n String[] line1sp = line1.split(\" \");\n for(int j = 0; j < m; j++) {\n mat[i][j] = Integer.parseInt(line1sp[j]);\n }\n }\n int[] b = new int[m];\n for(int i = 0; i < m; i++) {\n String line2 = sc.nextLine();\n b[i] = Integer.parseInt(line2);\n }\n \n for(int i = 0; i < n; i++) {\n int ans = 0;\n for(int j = 0; j < m; j++) {\n ans += b[j] * mat[i][j];\n }\n System.out.println(ans);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String[] linesp = line.split(\" \");\n int n = Integer.parseInt(linesp[0]);\n int m = Integer.parseInt(linesp[1]);\n int[][] mat = new int[n][m];\n for(int i = 0; i < n; i++) {\n String line1 = sc.nextLine();\n String[] line1sp = line1.split(\" \");\n for(int j = 0; j < m; j++) {\n mat[i][j] = Integer.parseInt(line1sp[j]);\n }\n }\n int[] b = new int[m];\n for(int i = 0; i < m; i++) {\n String line2 = sc.nextLine();\n b[i] = Integer.parseInt(line2);\n }\n \n for(int i = 0; i < n; i++) {\n int ans = 0;\n for(int j = 0; j < m; j++) {\n ans += b[j] * mat[i][j];\n }\n System.out.println(ans);\n }\n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
String[] linesp = line.split(" ");
int n = Integer.parseInt(linesp[0]);
int m = Integer.parseInt(linesp[1]);
int[][] mat = new int[n][m];
for(int i = 0; i < n; i++) {
String line1 = sc.nextLine();
String[] line1sp = line1.split(" ");
for(int j = 0; j < m; j++) {
mat[i][j] = Integer.parseInt(line1sp[j]);
}
}
int[] b = new int[m];
for(int i = 0; i < m; i++) {
String line2 = sc.nextLine();
b[i] = Integer.parseInt(line2);
}
for(int i = 0; i < n; i++) {
int ans = 0;
for(int j = 0; j < m; j++) {
ans += b[j] * mat[i][j];
}
System.out.println(ans);
}
}
}
|
[
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,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
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,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
8,
62
],
[
62,
63
],
[
62,
64
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
8,
86
],
[
86,
87
],
[
87,
88
],
[
8,
89
],
[
89,
90
],
[
89,
91
],
[
8,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
98,
100
],
[
93,
101
],
[
101,
102
],
[
102,
103
],
[
93,
104
],
[
105,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
105,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
111,
119
],
[
119,
120
],
[
120,
121
],
[
111,
122
],
[
123,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
128,
134
],
[
134,
135
],
[
134,
136
],
[
105,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
142,
143
],
[
142,
144
],
[
6,
145
],
[
145,
146
],
[
0,
147
],
[
147,
148
],
[
147,
149
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint m = scanner.nextInt();\n\t\tint[][] arr1 = new int[n][m];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tarr1[i][j] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[] arr2 = new int[m];\n\t\tfor(int i=0;i<m;i++) {\n\t\t\tarr2[i] = scanner.nextInt();\n\t\t}\n\t\tscanner.close();\n\t\tint[] arr3 = new int[n];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tarr3[i] = 0;\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tarr3[i] += arr1[i][j]*arr2[j]; \n\t\t\t}\n\t\t\tSystem.out.println(arr3[i]);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint m = scanner.nextInt();\n\t\tint[][] arr1 = new int[n][m];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tarr1[i][j] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[] arr2 = new int[m];\n\t\tfor(int i=0;i<m;i++) {\n\t\t\tarr2[i] = scanner.nextInt();\n\t\t}\n\t\tscanner.close();\n\t\tint[] arr3 = new int[n];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tarr3[i] = 0;\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tarr3[i] += arr1[i][j]*arr2[j]; \n\t\t\t}\n\t\t\tSystem.out.println(arr3[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint m = scanner.nextInt();\n\t\tint[][] arr1 = new int[n][m];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tarr1[i][j] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[] arr2 = new int[m];\n\t\tfor(int i=0;i<m;i++) {\n\t\t\tarr2[i] = scanner.nextInt();\n\t\t}\n\t\tscanner.close();\n\t\tint[] arr3 = new int[n];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tarr3[i] = 0;\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tarr3[i] += arr1[i][j]*arr2[j]; \n\t\t\t}\n\t\t\tSystem.out.println(arr3[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint m = scanner.nextInt();\n\t\tint[][] arr1 = new int[n][m];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tarr1[i][j] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[] arr2 = new int[m];\n\t\tfor(int i=0;i<m;i++) {\n\t\t\tarr2[i] = scanner.nextInt();\n\t\t}\n\t\tscanner.close();\n\t\tint[] arr3 = new int[n];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tarr3[i] = 0;\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tarr3[i] += arr1[i][j]*arr2[j]; \n\t\t\t}\n\t\t\tSystem.out.println(arr3[i]);\n\t\t}\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int m = scanner.nextInt();",
"m",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int[][] arr1 = new int[n][m];",
"arr1",
"new int[n][m]",
"n",
"m",
"for(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tarr1[i][j] = scanner.nextInt();\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tarr1[i][j] = scanner.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tarr1[i][j] = scanner.nextInt();\n\t\t\t}\n\t\t}",
"for(int j=0;j<m;j++) {\n\t\t\t\tarr1[i][j] = scanner.nextInt();\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tarr1[i][j] = scanner.nextInt();\n\t\t\t}",
"{\n\t\t\t\tarr1[i][j] = scanner.nextInt();\n\t\t\t}",
"arr1[i][j] = scanner.nextInt()",
"arr1[i][j]",
"arr1[i]",
"arr1",
"i",
"j",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int[] arr2 = new int[m];",
"arr2",
"new int[m]",
"m",
"for(int i=0;i<m;i++) {\n\t\t\tarr2[i] = scanner.nextInt();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tarr2[i] = scanner.nextInt();\n\t\t}",
"{\n\t\t\tarr2[i] = scanner.nextInt();\n\t\t}",
"arr2[i] = scanner.nextInt()",
"arr2[i]",
"arr2",
"i",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"scanner.close()",
"scanner.close",
"scanner",
"int[] arr3 = new int[n];",
"arr3",
"new int[n]",
"n",
"for(int i=0;i<n;i++) {\n\t\t\tarr3[i] = 0;\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tarr3[i] += arr1[i][j]*arr2[j]; \n\t\t\t}\n\t\t\tSystem.out.println(arr3[i]);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tarr3[i] = 0;\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tarr3[i] += arr1[i][j]*arr2[j]; \n\t\t\t}\n\t\t\tSystem.out.println(arr3[i]);\n\t\t}",
"{\n\t\t\tarr3[i] = 0;\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tarr3[i] += arr1[i][j]*arr2[j]; \n\t\t\t}\n\t\t\tSystem.out.println(arr3[i]);\n\t\t}",
"arr3[i] = 0",
"arr3[i]",
"arr3",
"i",
"0",
"for(int j=0;j<m;j++) {\n\t\t\t\tarr3[i] += arr1[i][j]*arr2[j]; \n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tarr3[i] += arr1[i][j]*arr2[j]; \n\t\t\t}",
"{\n\t\t\t\tarr3[i] += arr1[i][j]*arr2[j]; \n\t\t\t}",
"arr3[i] += arr1[i][j]*arr2[j]",
"arr3[i]",
"arr3",
"i",
"arr1[i][j]*arr2[j]",
"arr1[i][j]",
"arr1[i]",
"arr1",
"i",
"j",
"arr2[j]",
"arr2",
"j",
"System.out.println(arr3[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"arr3[i]",
"arr3",
"i",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint m = scanner.nextInt();\n\t\tint[][] arr1 = new int[n][m];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tarr1[i][j] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[] arr2 = new int[m];\n\t\tfor(int i=0;i<m;i++) {\n\t\t\tarr2[i] = scanner.nextInt();\n\t\t}\n\t\tscanner.close();\n\t\tint[] arr3 = new int[n];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tarr3[i] = 0;\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tarr3[i] += arr1[i][j]*arr2[j]; \n\t\t\t}\n\t\t\tSystem.out.println(arr3[i]);\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint m = scanner.nextInt();\n\t\tint[][] arr1 = new int[n][m];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tarr1[i][j] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[] arr2 = new int[m];\n\t\tfor(int i=0;i<m;i++) {\n\t\t\tarr2[i] = scanner.nextInt();\n\t\t}\n\t\tscanner.close();\n\t\tint[] arr3 = new int[n];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tarr3[i] = 0;\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tarr3[i] += arr1[i][j]*arr2[j]; \n\t\t\t}\n\t\t\tSystem.out.println(arr3[i]);\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int m = scanner.nextInt();
int[][] arr1 = new int[n][m];
for(int i=0;i<n;i++) {
for(int j=0;j<m;j++) {
arr1[i][j] = scanner.nextInt();
}
}
int[] arr2 = new int[m];
for(int i=0;i<m;i++) {
arr2[i] = scanner.nextInt();
}
scanner.close();
int[] arr3 = new int[n];
for(int i=0;i<n;i++) {
arr3[i] = 0;
for(int j=0;j<m;j++) {
arr3[i] += arr1[i][j]*arr2[j];
}
System.out.println(arr3[i]);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
13,
41,
13,
20,
13,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
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
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
20,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
31,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
14,
42
],
[
42,
43
],
[
42,
44
],
[
14,
45
],
[
45,
46
],
[
45,
47
],
[
14,
50
],
[
50,
51
],
[
50,
52
],
[
14,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
54,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
69,
74
],
[
66,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
75,
83
],
[
83,
84
],
[
84,
85
],
[
75,
86
],
[
87,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
88,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
97,
98
],
[
97,
99
],
[
14,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
100,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
120,
121
],
[
121,
122
],
[
14,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
123,
128
],
[
128,
129
],
[
128,
130
],
[
123,
131
],
[
131,
132
],
[
132,
133
],
[
123,
134
],
[
135,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
144,
145
],
[
144,
146
],
[
139,
147
],
[
147,
148
],
[
148,
149
],
[
139,
150
],
[
151,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
154,
160
],
[
160,
161
],
[
160,
162
],
[
135,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
12,
169
],
[
169,
170
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\nclass Main{\n\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] token = br.readLine().split(\" \");\n\t\tint a_col = Integer.parseInt(token[0]);\n\t\tint a_row = Integer.parseInt(token[1]);\n\t\tint b_col = a_row;\n\t\tint[][] a = new int[a_col][a_row];\n\t\tint[] b = new int[b_col];\n\n\t\tfor(int i = 0; i < a_col; i++){\n\n\t\t\ttoken = br.readLine().split(\" \");\n\n\t\t\tfor(int j = 0; j < a_row; j++){\n\t\t\t\ta[i][j] = Integer.parseInt(token[j]);\n\t\t\t}\n\n\t\t}\n\n\t\tfor(int i = 0; i < b_col; i++){\n\t\t\tb[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tfor(int i = 0; i < a_col; i++){\n\n\t\t\tint sum = 0;\n\n\t\t\tfor(int j = 0; j < a_row; j++){\n\t\t\t\tsum += a[i][j] * b[j];\n\t\t\t}\n\n\t\t\tSystem.out.println(sum);\n\n\t\t}\n\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"class Main{\n\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] token = br.readLine().split(\" \");\n\t\tint a_col = Integer.parseInt(token[0]);\n\t\tint a_row = Integer.parseInt(token[1]);\n\t\tint b_col = a_row;\n\t\tint[][] a = new int[a_col][a_row];\n\t\tint[] b = new int[b_col];\n\n\t\tfor(int i = 0; i < a_col; i++){\n\n\t\t\ttoken = br.readLine().split(\" \");\n\n\t\t\tfor(int j = 0; j < a_row; j++){\n\t\t\t\ta[i][j] = Integer.parseInt(token[j]);\n\t\t\t}\n\n\t\t}\n\n\t\tfor(int i = 0; i < b_col; i++){\n\t\t\tb[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tfor(int i = 0; i < a_col; i++){\n\n\t\t\tint sum = 0;\n\n\t\t\tfor(int j = 0; j < a_row; j++){\n\t\t\t\tsum += a[i][j] * b[j];\n\t\t\t}\n\n\t\t\tSystem.out.println(sum);\n\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] token = br.readLine().split(\" \");\n\t\tint a_col = Integer.parseInt(token[0]);\n\t\tint a_row = Integer.parseInt(token[1]);\n\t\tint b_col = a_row;\n\t\tint[][] a = new int[a_col][a_row];\n\t\tint[] b = new int[b_col];\n\n\t\tfor(int i = 0; i < a_col; i++){\n\n\t\t\ttoken = br.readLine().split(\" \");\n\n\t\t\tfor(int j = 0; j < a_row; j++){\n\t\t\t\ta[i][j] = Integer.parseInt(token[j]);\n\t\t\t}\n\n\t\t}\n\n\t\tfor(int i = 0; i < b_col; i++){\n\t\t\tb[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tfor(int i = 0; i < a_col; i++){\n\n\t\t\tint sum = 0;\n\n\t\t\tfor(int j = 0; j < a_row; j++){\n\t\t\t\tsum += a[i][j] * b[j];\n\t\t\t}\n\n\t\t\tSystem.out.println(sum);\n\n\t\t}\n\n\t}",
"main",
"{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] token = br.readLine().split(\" \");\n\t\tint a_col = Integer.parseInt(token[0]);\n\t\tint a_row = Integer.parseInt(token[1]);\n\t\tint b_col = a_row;\n\t\tint[][] a = new int[a_col][a_row];\n\t\tint[] b = new int[b_col];\n\n\t\tfor(int i = 0; i < a_col; i++){\n\n\t\t\ttoken = br.readLine().split(\" \");\n\n\t\t\tfor(int j = 0; j < a_row; j++){\n\t\t\t\ta[i][j] = Integer.parseInt(token[j]);\n\t\t\t}\n\n\t\t}\n\n\t\tfor(int i = 0; i < b_col; i++){\n\t\t\tb[i] = Integer.parseInt(br.readLine());\n\t\t}\n\n\t\tfor(int i = 0; i < a_col; i++){\n\n\t\t\tint sum = 0;\n\n\t\t\tfor(int j = 0; j < a_row; j++){\n\t\t\t\tsum += a[i][j] * b[j];\n\t\t\t}\n\n\t\t\tSystem.out.println(sum);\n\n\t\t}\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] token = br.readLine().split(\" \");",
"token",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int a_col = Integer.parseInt(token[0]);",
"a_col",
"Integer.parseInt(token[0])",
"Integer.parseInt",
"Integer",
"token[0]",
"token",
"0",
"int a_row = Integer.parseInt(token[1]);",
"a_row",
"Integer.parseInt(token[1])",
"Integer.parseInt",
"Integer",
"token[1]",
"token",
"1",
"int b_col = a_row;",
"b_col",
"a_row",
"int[][] a = new int[a_col][a_row];",
"a",
"new int[a_col][a_row]",
"a_col",
"a_row",
"int[] b = new int[b_col];",
"b",
"new int[b_col]",
"b_col",
"for(int i = 0; i < a_col; i++){\n\n\t\t\ttoken = br.readLine().split(\" \");\n\n\t\t\tfor(int j = 0; j < a_row; j++){\n\t\t\t\ta[i][j] = Integer.parseInt(token[j]);\n\t\t\t}\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a_col",
"i",
"a_col",
"i++",
"i++",
"i",
"{\n\n\t\t\ttoken = br.readLine().split(\" \");\n\n\t\t\tfor(int j = 0; j < a_row; j++){\n\t\t\t\ta[i][j] = Integer.parseInt(token[j]);\n\t\t\t}\n\n\t\t}",
"{\n\n\t\t\ttoken = br.readLine().split(\" \");\n\n\t\t\tfor(int j = 0; j < a_row; j++){\n\t\t\t\ta[i][j] = Integer.parseInt(token[j]);\n\t\t\t}\n\n\t\t}",
"token = br.readLine().split(\" \")",
"token",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(int j = 0; j < a_row; j++){\n\t\t\t\ta[i][j] = Integer.parseInt(token[j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < a_row",
"j",
"a_row",
"j++",
"j++",
"j",
"{\n\t\t\t\ta[i][j] = Integer.parseInt(token[j]);\n\t\t\t}",
"{\n\t\t\t\ta[i][j] = Integer.parseInt(token[j]);\n\t\t\t}",
"a[i][j] = Integer.parseInt(token[j])",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"Integer.parseInt(token[j])",
"Integer.parseInt",
"Integer",
"token[j]",
"token",
"j",
"for(int i = 0; i < b_col; i++){\n\t\t\tb[i] = Integer.parseInt(br.readLine());\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < b_col",
"i",
"b_col",
"i++",
"i++",
"i",
"{\n\t\t\tb[i] = Integer.parseInt(br.readLine());\n\t\t}",
"{\n\t\t\tb[i] = Integer.parseInt(br.readLine());\n\t\t}",
"b[i] = Integer.parseInt(br.readLine())",
"b[i]",
"b",
"i",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int i = 0; i < a_col; i++){\n\n\t\t\tint sum = 0;\n\n\t\t\tfor(int j = 0; j < a_row; j++){\n\t\t\t\tsum += a[i][j] * b[j];\n\t\t\t}\n\n\t\t\tSystem.out.println(sum);\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a_col",
"i",
"a_col",
"i++",
"i++",
"i",
"{\n\n\t\t\tint sum = 0;\n\n\t\t\tfor(int j = 0; j < a_row; j++){\n\t\t\t\tsum += a[i][j] * b[j];\n\t\t\t}\n\n\t\t\tSystem.out.println(sum);\n\n\t\t}",
"{\n\n\t\t\tint sum = 0;\n\n\t\t\tfor(int j = 0; j < a_row; j++){\n\t\t\t\tsum += a[i][j] * b[j];\n\t\t\t}\n\n\t\t\tSystem.out.println(sum);\n\n\t\t}",
"int sum = 0;",
"sum",
"0",
"for(int j = 0; j < a_row; j++){\n\t\t\t\tsum += a[i][j] * b[j];\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < a_row",
"j",
"a_row",
"j++",
"j++",
"j",
"{\n\t\t\t\tsum += a[i][j] * b[j];\n\t\t\t}",
"{\n\t\t\t\tsum += a[i][j] * b[j];\n\t\t\t}",
"sum += a[i][j] * b[j]",
"sum",
"a[i][j] * b[j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] token = br.readLine().split(" ");
int a_col = Integer.parseInt(token[0]);
int a_row = Integer.parseInt(token[1]);
int b_col = a_row;
int[][] a = new int[a_col][a_row];
int[] b = new int[b_col];
for(int i = 0; i < a_col; i++){
token = br.readLine().split(" ");
for(int j = 0; j < a_row; j++){
a[i][j] = Integer.parseInt(token[j]);
}
}
for(int i = 0; i < b_col; i++){
b[i] = Integer.parseInt(br.readLine());
}
for(int i = 0; i < a_col; i++){
int sum = 0;
for(int j = 0; j < a_row; j++){
sum += a[i][j] * b[j];
}
System.out.println(sum);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
41,
13,
0,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
41,
13,
41,
13,
0,
13,
20,
13,
0,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
196,
8
],
[
196,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
23,
28
],
[
11,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
34,
35
],
[
34,
36
],
[
11,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
42,
44
],
[
11,
45
],
[
45,
46
],
[
11,
47
],
[
47,
48
],
[
47,
49
],
[
11,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
52,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
67,
72
],
[
64,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
73,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
86,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
95,
96
],
[
95,
97
],
[
11,
98
],
[
98,
99
],
[
11,
100
],
[
100,
101
],
[
11,
102
],
[
102,
103
],
[
102,
104
],
[
11,
106
],
[
106,
107
],
[
106,
108
],
[
11,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
110,
118
],
[
118,
119
],
[
119,
120
],
[
110,
121
],
[
122,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
127,
128
],
[
128,
129
],
[
127,
130
],
[
130,
131
],
[
131,
132
],
[
11,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
138,
139
],
[
138,
140
],
[
133,
141
],
[
141,
142
],
[
142,
143
],
[
133,
144
],
[
145,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
146,
151
],
[
151,
152
],
[
151,
153
],
[
146,
154
],
[
154,
155
],
[
155,
156
],
[
146,
157
],
[
158,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
163,
169
],
[
169,
170
],
[
169,
171
],
[
11,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
172,
177
],
[
177,
178
],
[
177,
179
],
[
172,
180
],
[
180,
181
],
[
181,
182
],
[
172,
183
],
[
184,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
185,
190
],
[
190,
191
],
[
190,
192
],
[
9,
193
],
[
193,
194
],
[
0,
195
],
[
195,
196
],
[
195,
197
]
] | [
"import java.io.*;\nimport java.util.ArrayList;\n\npublic class Main{\n\n public static void main(String[] args) throws IOException {\n\n int n = 0;\n int m = 0;\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String[] line = br.readLine().split(\" \");\n n = Integer.parseInt(line[0]);\n m = Integer.parseInt(line[1]);\n\n int num_a[][];\n num_a = new int[n][m];\n\n for (int i = 0; i < n; i++) {\n\n String[] line1 = br.readLine().split(\" \");\n\n for (int x = 0; x < m; x++) {\n num_a[i][x] = Integer.parseInt(line1[x]);\n }\n\n }\n \n int num_b[];\n int num_c[];\n num_b = new int[m];\n num_c = new int[n];\n \n for(int i = 0; i < m; i++) {\n num_b[i] = Integer.parseInt(br.readLine());\n }\n \n \n for(int i = 0; i < n; i++) {\n \n for(int x = 0; x < m; x++) {\n num_c[i] += num_a[i][x] * num_b[x];\n }\n \n }\n \n for(int i = 0; i < n; i++) {\n System.out.println(num_c[i]);\n }\n }\n\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"public class Main{\n\n public static void main(String[] args) throws IOException {\n\n int n = 0;\n int m = 0;\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String[] line = br.readLine().split(\" \");\n n = Integer.parseInt(line[0]);\n m = Integer.parseInt(line[1]);\n\n int num_a[][];\n num_a = new int[n][m];\n\n for (int i = 0; i < n; i++) {\n\n String[] line1 = br.readLine().split(\" \");\n\n for (int x = 0; x < m; x++) {\n num_a[i][x] = Integer.parseInt(line1[x]);\n }\n\n }\n \n int num_b[];\n int num_c[];\n num_b = new int[m];\n num_c = new int[n];\n \n for(int i = 0; i < m; i++) {\n num_b[i] = Integer.parseInt(br.readLine());\n }\n \n \n for(int i = 0; i < n; i++) {\n \n for(int x = 0; x < m; x++) {\n num_c[i] += num_a[i][x] * num_b[x];\n }\n \n }\n \n for(int i = 0; i < n; i++) {\n System.out.println(num_c[i]);\n }\n }\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n int n = 0;\n int m = 0;\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String[] line = br.readLine().split(\" \");\n n = Integer.parseInt(line[0]);\n m = Integer.parseInt(line[1]);\n\n int num_a[][];\n num_a = new int[n][m];\n\n for (int i = 0; i < n; i++) {\n\n String[] line1 = br.readLine().split(\" \");\n\n for (int x = 0; x < m; x++) {\n num_a[i][x] = Integer.parseInt(line1[x]);\n }\n\n }\n \n int num_b[];\n int num_c[];\n num_b = new int[m];\n num_c = new int[n];\n \n for(int i = 0; i < m; i++) {\n num_b[i] = Integer.parseInt(br.readLine());\n }\n \n \n for(int i = 0; i < n; i++) {\n \n for(int x = 0; x < m; x++) {\n num_c[i] += num_a[i][x] * num_b[x];\n }\n \n }\n \n for(int i = 0; i < n; i++) {\n System.out.println(num_c[i]);\n }\n }",
"main",
"{\n\n int n = 0;\n int m = 0;\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String[] line = br.readLine().split(\" \");\n n = Integer.parseInt(line[0]);\n m = Integer.parseInt(line[1]);\n\n int num_a[][];\n num_a = new int[n][m];\n\n for (int i = 0; i < n; i++) {\n\n String[] line1 = br.readLine().split(\" \");\n\n for (int x = 0; x < m; x++) {\n num_a[i][x] = Integer.parseInt(line1[x]);\n }\n\n }\n \n int num_b[];\n int num_c[];\n num_b = new int[m];\n num_c = new int[n];\n \n for(int i = 0; i < m; i++) {\n num_b[i] = Integer.parseInt(br.readLine());\n }\n \n \n for(int i = 0; i < n; i++) {\n \n for(int x = 0; x < m; x++) {\n num_c[i] += num_a[i][x] * num_b[x];\n }\n \n }\n \n for(int i = 0; i < n; i++) {\n System.out.println(num_c[i]);\n }\n }",
"int n = 0;",
"n",
"0",
"int m = 0;",
"m",
"0",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] line = br.readLine().split(\" \");",
"line",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"n = Integer.parseInt(line[0])",
"n",
"Integer.parseInt(line[0])",
"Integer.parseInt",
"Integer",
"line[0]",
"line",
"0",
"m = Integer.parseInt(line[1])",
"m",
"Integer.parseInt(line[1])",
"Integer.parseInt",
"Integer",
"line[1]",
"line",
"1",
"int num_a[][];",
"num_a",
"num_a = new int[n][m]",
"num_a",
"new int[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++) {\n\n String[] line1 = br.readLine().split(\" \");\n\n for (int x = 0; x < m; x++) {\n num_a[i][x] = Integer.parseInt(line1[x]);\n }\n\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\n String[] line1 = br.readLine().split(\" \");\n\n for (int x = 0; x < m; x++) {\n num_a[i][x] = Integer.parseInt(line1[x]);\n }\n\n }",
"{\n\n String[] line1 = br.readLine().split(\" \");\n\n for (int x = 0; x < m; x++) {\n num_a[i][x] = Integer.parseInt(line1[x]);\n }\n\n }",
"String[] line1 = br.readLine().split(\" \");",
"line1",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for (int x = 0; x < m; x++) {\n num_a[i][x] = Integer.parseInt(line1[x]);\n }",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < m",
"x",
"m",
"x++",
"x++",
"x",
"{\n num_a[i][x] = Integer.parseInt(line1[x]);\n }",
"{\n num_a[i][x] = Integer.parseInt(line1[x]);\n }",
"num_a[i][x] = Integer.parseInt(line1[x])",
"num_a[i][x]",
"num_a[i]",
"num_a",
"i",
"x",
"Integer.parseInt(line1[x])",
"Integer.parseInt",
"Integer",
"line1[x]",
"line1",
"x",
"int num_b[];",
"num_b",
"int num_c[];",
"num_c",
"num_b = new int[m]",
"num_b",
"new int[m]",
"m",
"num_c = new int[n]",
"num_c",
"new int[n]",
"n",
"for(int i = 0; i < m; i++) {\n num_b[i] = Integer.parseInt(br.readLine());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n num_b[i] = Integer.parseInt(br.readLine());\n }",
"{\n num_b[i] = Integer.parseInt(br.readLine());\n }",
"num_b[i] = Integer.parseInt(br.readLine())",
"num_b[i]",
"num_b",
"i",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int i = 0; i < n; i++) {\n \n for(int x = 0; x < m; x++) {\n num_c[i] += num_a[i][x] * num_b[x];\n }\n \n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \n for(int x = 0; x < m; x++) {\n num_c[i] += num_a[i][x] * num_b[x];\n }\n \n }",
"{\n \n for(int x = 0; x < m; x++) {\n num_c[i] += num_a[i][x] * num_b[x];\n }\n \n }",
"for(int x = 0; x < m; x++) {\n num_c[i] += num_a[i][x] * num_b[x];\n }",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < m",
"x",
"m",
"x++",
"x++",
"x",
"{\n num_c[i] += num_a[i][x] * num_b[x];\n }",
"{\n num_c[i] += num_a[i][x] * num_b[x];\n }",
"num_c[i] += num_a[i][x] * num_b[x]",
"num_c[i]",
"num_c",
"i",
"num_a[i][x] * num_b[x]",
"num_a[i][x]",
"num_a[i]",
"num_a",
"i",
"x",
"num_b[x]",
"num_b",
"x",
"for(int i = 0; i < n; i++) {\n System.out.println(num_c[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n System.out.println(num_c[i]);\n }",
"{\n System.out.println(num_c[i]);\n }",
"System.out.println(num_c[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"num_c[i]",
"num_c",
"i",
"String[] args",
"args",
"public class Main{\n\n public static void main(String[] args) throws IOException {\n\n int n = 0;\n int m = 0;\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String[] line = br.readLine().split(\" \");\n n = Integer.parseInt(line[0]);\n m = Integer.parseInt(line[1]);\n\n int num_a[][];\n num_a = new int[n][m];\n\n for (int i = 0; i < n; i++) {\n\n String[] line1 = br.readLine().split(\" \");\n\n for (int x = 0; x < m; x++) {\n num_a[i][x] = Integer.parseInt(line1[x]);\n }\n\n }\n \n int num_b[];\n int num_c[];\n num_b = new int[m];\n num_c = new int[n];\n \n for(int i = 0; i < m; i++) {\n num_b[i] = Integer.parseInt(br.readLine());\n }\n \n \n for(int i = 0; i < n; i++) {\n \n for(int x = 0; x < m; x++) {\n num_c[i] += num_a[i][x] * num_b[x];\n }\n \n }\n \n for(int i = 0; i < n; i++) {\n System.out.println(num_c[i]);\n }\n }\n\n}",
"public class Main{\n\n public static void main(String[] args) throws IOException {\n\n int n = 0;\n int m = 0;\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String[] line = br.readLine().split(\" \");\n n = Integer.parseInt(line[0]);\n m = Integer.parseInt(line[1]);\n\n int num_a[][];\n num_a = new int[n][m];\n\n for (int i = 0; i < n; i++) {\n\n String[] line1 = br.readLine().split(\" \");\n\n for (int x = 0; x < m; x++) {\n num_a[i][x] = Integer.parseInt(line1[x]);\n }\n\n }\n \n int num_b[];\n int num_c[];\n num_b = new int[m];\n num_c = new int[n];\n \n for(int i = 0; i < m; i++) {\n num_b[i] = Integer.parseInt(br.readLine());\n }\n \n \n for(int i = 0; i < n; i++) {\n \n for(int x = 0; x < m; x++) {\n num_c[i] += num_a[i][x] * num_b[x];\n }\n \n }\n \n for(int i = 0; i < n; i++) {\n System.out.println(num_c[i]);\n }\n }\n\n}",
"Main"
] | import java.io.*;
import java.util.ArrayList;
public class Main{
public static void main(String[] args) throws IOException {
int n = 0;
int m = 0;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] line = br.readLine().split(" ");
n = Integer.parseInt(line[0]);
m = Integer.parseInt(line[1]);
int num_a[][];
num_a = new int[n][m];
for (int i = 0; i < n; i++) {
String[] line1 = br.readLine().split(" ");
for (int x = 0; x < m; x++) {
num_a[i][x] = Integer.parseInt(line1[x]);
}
}
int num_b[];
int num_c[];
num_b = new int[m];
num_c = new int[n];
for(int i = 0; i < m; i++) {
num_b[i] = Integer.parseInt(br.readLine());
}
for(int i = 0; i < n; i++) {
for(int x = 0; x < m; x++) {
num_c[i] += num_a[i][x] * num_b[x];
}
}
for(int i = 0; i < n; i++) {
System.out.println(num_c[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,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
8,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
86,
94
],
[
94,
95
],
[
95,
96
],
[
86,
97
],
[
98,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
110,
111
],
[
111,
112
],
[
102,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
119,
125
],
[
125,
126
],
[
125,
127
],
[
98,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
6,
134
],
[
134,
135
],
[
0,
136
],
[
136,
137
],
[
136,
138
]
] | [
"import java.util.Scanner;\npublic class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int m = scan.nextInt();\n int [] [] a = new int[n][m];\n int [] b = new int [m];\n for (int x = 0; x < n; x++){\n for (int y = 0; y < m; y++){\n a[x] [y] = scan.nextInt();\n }\n }\n for (int y = 0; y < m; y++){\n b[y] = scan.nextInt();\n }\n for(int x = 0; x < n; x++){\n int answer = 0;\n for(int y = 0; y < m; y++) {\n answer = answer + (a[x] [y] * b[y]);\n }\n System.out.println(answer);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int m = scan.nextInt();\n int [] [] a = new int[n][m];\n int [] b = new int [m];\n for (int x = 0; x < n; x++){\n for (int y = 0; y < m; y++){\n a[x] [y] = scan.nextInt();\n }\n }\n for (int y = 0; y < m; y++){\n b[y] = scan.nextInt();\n }\n for(int x = 0; x < n; x++){\n int answer = 0;\n for(int y = 0; y < m; y++) {\n answer = answer + (a[x] [y] * b[y]);\n }\n System.out.println(answer);\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int m = scan.nextInt();\n int [] [] a = new int[n][m];\n int [] b = new int [m];\n for (int x = 0; x < n; x++){\n for (int y = 0; y < m; y++){\n a[x] [y] = scan.nextInt();\n }\n }\n for (int y = 0; y < m; y++){\n b[y] = scan.nextInt();\n }\n for(int x = 0; x < n; x++){\n int answer = 0;\n for(int y = 0; y < m; y++) {\n answer = answer + (a[x] [y] * b[y]);\n }\n System.out.println(answer);\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int m = scan.nextInt();\n int [] [] a = new int[n][m];\n int [] b = new int [m];\n for (int x = 0; x < n; x++){\n for (int y = 0; y < m; y++){\n a[x] [y] = scan.nextInt();\n }\n }\n for (int y = 0; y < m; y++){\n b[y] = scan.nextInt();\n }\n for(int x = 0; x < n; x++){\n int answer = 0;\n for(int y = 0; y < m; y++) {\n answer = answer + (a[x] [y] * b[y]);\n }\n System.out.println(answer);\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int [] [] a = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int [] b = new int [m];",
"b",
"new int [m]",
"m",
"for (int x = 0; x < n; x++){\n for (int y = 0; y < m; y++){\n a[x] [y] = scan.nextInt();\n }\n }",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < n",
"x",
"n",
"x++",
"x++",
"x",
"{\n for (int y = 0; y < m; y++){\n a[x] [y] = scan.nextInt();\n }\n }",
"{\n for (int y = 0; y < m; y++){\n a[x] [y] = scan.nextInt();\n }\n }",
"for (int y = 0; y < m; y++){\n a[x] [y] = scan.nextInt();\n }",
"int y = 0;",
"int y = 0;",
"y",
"0",
"y < m",
"y",
"m",
"y++",
"y++",
"y",
"{\n a[x] [y] = scan.nextInt();\n }",
"{\n a[x] [y] = scan.nextInt();\n }",
"a[x] [y] = scan.nextInt()",
"a[x] [y]",
"a[x]",
"a",
"x",
"y",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int y = 0; y < m; y++){\n b[y] = scan.nextInt();\n }",
"int y = 0;",
"int y = 0;",
"y",
"0",
"y < m",
"y",
"m",
"y++",
"y++",
"y",
"{\n b[y] = scan.nextInt();\n }",
"{\n b[y] = scan.nextInt();\n }",
"b[y] = scan.nextInt()",
"b[y]",
"b",
"y",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int x = 0; x < n; x++){\n int answer = 0;\n for(int y = 0; y < m; y++) {\n answer = answer + (a[x] [y] * b[y]);\n }\n System.out.println(answer);\n }",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < n",
"x",
"n",
"x++",
"x++",
"x",
"{\n int answer = 0;\n for(int y = 0; y < m; y++) {\n answer = answer + (a[x] [y] * b[y]);\n }\n System.out.println(answer);\n }",
"{\n int answer = 0;\n for(int y = 0; y < m; y++) {\n answer = answer + (a[x] [y] * b[y]);\n }\n System.out.println(answer);\n }",
"int answer = 0;",
"answer",
"0",
"for(int y = 0; y < m; y++) {\n answer = answer + (a[x] [y] * b[y]);\n }",
"int y = 0;",
"int y = 0;",
"y",
"0",
"y < m",
"y",
"m",
"y++",
"y++",
"y",
"{\n answer = answer + (a[x] [y] * b[y]);\n }",
"{\n answer = answer + (a[x] [y] * b[y]);\n }",
"answer = answer + (a[x] [y] * b[y])",
"answer",
"answer + (a[x] [y] * b[y])",
"answer",
"(a[x] [y] * b[y])",
"a[x] [y]",
"a[x]",
"a",
"x",
"y",
"b[y]",
"b",
"y",
"System.out.println(answer)",
"System.out.println",
"System.out",
"System",
"System.out",
"answer",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int m = scan.nextInt();\n int [] [] a = new int[n][m];\n int [] b = new int [m];\n for (int x = 0; x < n; x++){\n for (int y = 0; y < m; y++){\n a[x] [y] = scan.nextInt();\n }\n }\n for (int y = 0; y < m; y++){\n b[y] = scan.nextInt();\n }\n for(int x = 0; x < n; x++){\n int answer = 0;\n for(int y = 0; y < m; y++) {\n answer = answer + (a[x] [y] * b[y]);\n }\n System.out.println(answer);\n }\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int m = scan.nextInt();\n int [] [] a = new int[n][m];\n int [] b = new int [m];\n for (int x = 0; x < n; x++){\n for (int y = 0; y < m; y++){\n a[x] [y] = scan.nextInt();\n }\n }\n for (int y = 0; y < m; y++){\n b[y] = scan.nextInt();\n }\n for(int x = 0; x < n; x++){\n int answer = 0;\n for(int y = 0; y < m; y++) {\n answer = answer + (a[x] [y] * b[y]);\n }\n System.out.println(answer);\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int m = scan.nextInt();
int [] [] a = new int[n][m];
int [] b = new int [m];
for (int x = 0; x < n; x++){
for (int y = 0; y < m; y++){
a[x] [y] = scan.nextInt();
}
}
for (int y = 0; y < m; y++){
b[y] = scan.nextInt();
}
for(int x = 0; x < n; x++){
int answer = 0;
for(int y = 0; y < m; y++) {
answer = answer + (a[x] [y] * b[y]);
}
System.out.println(answer);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
17,
41,
13,
17,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
2,
13,
17,
2,
13,
17,
30,
41,
13,
20,
13,
13,
41,
13,
20,
13,
41,
13,
20,
13,
41,
13,
20,
13,
41,
13,
20,
13,
14,
2,
13,
17,
30,
14,
2,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
31,
33
],
[
8,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
42,
44
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
48,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
70
],
[
70,
71
],
[
70,
72
],
[
64,
74
],
[
74,
75
],
[
74,
76
],
[
64,
78
],
[
78,
79
],
[
78,
80
],
[
64,
82
],
[
82,
83
],
[
82,
84
],
[
64,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
64,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
96,
104
],
[
104,
105
],
[
105,
106
],
[
96,
107
],
[
108,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
114,
115
],
[
114,
116
],
[
109,
117
],
[
117,
118
],
[
118,
119
],
[
109,
120
],
[
121,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
126,
132
],
[
132,
133
],
[
132,
134
],
[
95,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
140,
141
],
[
140,
142
],
[
135,
143
],
[
143,
144
],
[
144,
145
],
[
135,
146
],
[
147,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
153,
154
],
[
153,
155
],
[
6,
156
],
[
156,
157
],
[
0,
158
],
[
158,
159
],
[
158,
160
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString input1 = sc.nextLine();\n\t\tString input2 = \"\";\n\t\tString[] NM = input1.split(\" \");\n\n\t\tint n = Integer.parseInt(NM[0]);\n\t\tint m = Integer.parseInt(NM[1]);\n\t\tboolean judge = true;\n\t\tint value = 0; // 入力された行列Aと列Bの数値を一時的に保持するための変数\n\n\t\tif ((n >= 1 && n <= 100) && (m >= 1 && m <= 100)) {\n\n\t\t\tint[][] A = new int[n][m];\n\t\t\tint[] b = new int[m];\n\t\t\tint[] c = new int[n];\n\n\t\t\tString[] AString = new String[m];\n\t\t\tString[] BString = new String[m];\n\n\t\t\tout: for (int i = 0; i < n; i++) {\n\t\t\t\tinput2 = sc.nextLine();\n\t\t\t\tAString = input2.split(\" \");\n\t\t\t\tfor (int j = 0; j < AString.length; j++) {\n\t\t\t\t\tvalue = Integer.parseInt(AString[j]);\n\t\t\t\t\tif (value < 0 || value > 1000) {\n\t\t\t\t\t\tjudge = false;\n\t\t\t\t\t\tbreak out;\n\n\t\t\t\t\t}\n\t\t\t\t\tA[i][j] = value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (judge == true) {\n\n\t\t\t\tout: for (int i = 0; i < m; i++) {\n\t\t\t\t\tBString[i] = sc.nextLine();\n\t\t\t\t\tvalue = Integer.parseInt(BString[i]);\n\t\t\t\t\tif (value < 0 || value > 1000) {\n\t\t\t\t\t\tjudge = false;\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}\n\t\t\t\t\tb[i] = value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (judge == true) {\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\t\tc[i] += A[i][j] * b[j];\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tSystem.out.println(c[k]);\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t}\n\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString input1 = sc.nextLine();\n\t\tString input2 = \"\";\n\t\tString[] NM = input1.split(\" \");\n\n\t\tint n = Integer.parseInt(NM[0]);\n\t\tint m = Integer.parseInt(NM[1]);\n\t\tboolean judge = true;\n\t\tint value = 0; // 入力された行列Aと列Bの数値を一時的に保持するための変数\n\n\t\tif ((n >= 1 && n <= 100) && (m >= 1 && m <= 100)) {\n\n\t\t\tint[][] A = new int[n][m];\n\t\t\tint[] b = new int[m];\n\t\t\tint[] c = new int[n];\n\n\t\t\tString[] AString = new String[m];\n\t\t\tString[] BString = new String[m];\n\n\t\t\tout: for (int i = 0; i < n; i++) {\n\t\t\t\tinput2 = sc.nextLine();\n\t\t\t\tAString = input2.split(\" \");\n\t\t\t\tfor (int j = 0; j < AString.length; j++) {\n\t\t\t\t\tvalue = Integer.parseInt(AString[j]);\n\t\t\t\t\tif (value < 0 || value > 1000) {\n\t\t\t\t\t\tjudge = false;\n\t\t\t\t\t\tbreak out;\n\n\t\t\t\t\t}\n\t\t\t\t\tA[i][j] = value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (judge == true) {\n\n\t\t\t\tout: for (int i = 0; i < m; i++) {\n\t\t\t\t\tBString[i] = sc.nextLine();\n\t\t\t\t\tvalue = Integer.parseInt(BString[i]);\n\t\t\t\t\tif (value < 0 || value > 1000) {\n\t\t\t\t\t\tjudge = false;\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}\n\t\t\t\t\tb[i] = value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (judge == true) {\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\t\tc[i] += A[i][j] * b[j];\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tSystem.out.println(c[k]);\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString input1 = sc.nextLine();\n\t\tString input2 = \"\";\n\t\tString[] NM = input1.split(\" \");\n\n\t\tint n = Integer.parseInt(NM[0]);\n\t\tint m = Integer.parseInt(NM[1]);\n\t\tboolean judge = true;\n\t\tint value = 0; // 入力された行列Aと列Bの数値を一時的に保持するための変数\n\n\t\tif ((n >= 1 && n <= 100) && (m >= 1 && m <= 100)) {\n\n\t\t\tint[][] A = new int[n][m];\n\t\t\tint[] b = new int[m];\n\t\t\tint[] c = new int[n];\n\n\t\t\tString[] AString = new String[m];\n\t\t\tString[] BString = new String[m];\n\n\t\t\tout: for (int i = 0; i < n; i++) {\n\t\t\t\tinput2 = sc.nextLine();\n\t\t\t\tAString = input2.split(\" \");\n\t\t\t\tfor (int j = 0; j < AString.length; j++) {\n\t\t\t\t\tvalue = Integer.parseInt(AString[j]);\n\t\t\t\t\tif (value < 0 || value > 1000) {\n\t\t\t\t\t\tjudge = false;\n\t\t\t\t\t\tbreak out;\n\n\t\t\t\t\t}\n\t\t\t\t\tA[i][j] = value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (judge == true) {\n\n\t\t\t\tout: for (int i = 0; i < m; i++) {\n\t\t\t\t\tBString[i] = sc.nextLine();\n\t\t\t\t\tvalue = Integer.parseInt(BString[i]);\n\t\t\t\t\tif (value < 0 || value > 1000) {\n\t\t\t\t\t\tjudge = false;\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}\n\t\t\t\t\tb[i] = value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (judge == true) {\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\t\tc[i] += A[i][j] * b[j];\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tSystem.out.println(c[k]);\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString input1 = sc.nextLine();\n\t\tString input2 = \"\";\n\t\tString[] NM = input1.split(\" \");\n\n\t\tint n = Integer.parseInt(NM[0]);\n\t\tint m = Integer.parseInt(NM[1]);\n\t\tboolean judge = true;\n\t\tint value = 0; // 入力された行列Aと列Bの数値を一時的に保持するための変数\n\n\t\tif ((n >= 1 && n <= 100) && (m >= 1 && m <= 100)) {\n\n\t\t\tint[][] A = new int[n][m];\n\t\t\tint[] b = new int[m];\n\t\t\tint[] c = new int[n];\n\n\t\t\tString[] AString = new String[m];\n\t\t\tString[] BString = new String[m];\n\n\t\t\tout: for (int i = 0; i < n; i++) {\n\t\t\t\tinput2 = sc.nextLine();\n\t\t\t\tAString = input2.split(\" \");\n\t\t\t\tfor (int j = 0; j < AString.length; j++) {\n\t\t\t\t\tvalue = Integer.parseInt(AString[j]);\n\t\t\t\t\tif (value < 0 || value > 1000) {\n\t\t\t\t\t\tjudge = false;\n\t\t\t\t\t\tbreak out;\n\n\t\t\t\t\t}\n\t\t\t\t\tA[i][j] = value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (judge == true) {\n\n\t\t\t\tout: for (int i = 0; i < m; i++) {\n\t\t\t\t\tBString[i] = sc.nextLine();\n\t\t\t\t\tvalue = Integer.parseInt(BString[i]);\n\t\t\t\t\tif (value < 0 || value > 1000) {\n\t\t\t\t\t\tjudge = false;\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}\n\t\t\t\t\tb[i] = value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (judge == true) {\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\t\tc[i] += A[i][j] * b[j];\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tSystem.out.println(c[k]);\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String input1 = sc.nextLine();",
"input1",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String input2 = \"\";",
"input2",
"\"\"",
"String[] NM = input1.split(\" \");",
"NM",
"input1.split(\" \")",
"input1.split",
"input1",
"\" \"",
"int n = Integer.parseInt(NM[0]);",
"n",
"Integer.parseInt(NM[0])",
"Integer.parseInt",
"Integer",
"NM[0]",
"NM",
"0",
"int m = Integer.parseInt(NM[1]);",
"m",
"Integer.parseInt(NM[1])",
"Integer.parseInt",
"Integer",
"NM[1]",
"NM",
"1",
"boolean judge = true;",
"judge",
"true",
"int value = 0;",
"value",
"0",
"if ((n >= 1 && n <= 100) && (m >= 1 && m <= 100)) {\n\n\t\t\tint[][] A = new int[n][m];\n\t\t\tint[] b = new int[m];\n\t\t\tint[] c = new int[n];\n\n\t\t\tString[] AString = new String[m];\n\t\t\tString[] BString = new String[m];\n\n\t\t\tout: for (int i = 0; i < n; i++) {\n\t\t\t\tinput2 = sc.nextLine();\n\t\t\t\tAString = input2.split(\" \");\n\t\t\t\tfor (int j = 0; j < AString.length; j++) {\n\t\t\t\t\tvalue = Integer.parseInt(AString[j]);\n\t\t\t\t\tif (value < 0 || value > 1000) {\n\t\t\t\t\t\tjudge = false;\n\t\t\t\t\t\tbreak out;\n\n\t\t\t\t\t}\n\t\t\t\t\tA[i][j] = value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (judge == true) {\n\n\t\t\t\tout: for (int i = 0; i < m; i++) {\n\t\t\t\t\tBString[i] = sc.nextLine();\n\t\t\t\t\tvalue = Integer.parseInt(BString[i]);\n\t\t\t\t\tif (value < 0 || value > 1000) {\n\t\t\t\t\t\tjudge = false;\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}\n\t\t\t\t\tb[i] = value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (judge == true) {\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\t\tc[i] += A[i][j] * b[j];\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tSystem.out.println(c[k]);\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"(n >= 1 && n <= 100) && (m >= 1 && m <= 100)",
"(n >= 1 && n <= 100)",
"n >= 1",
"n",
"1",
"n <= 100",
"n",
"100",
"(m >= 1 && m <= 100)",
"m >= 1",
"m",
"1",
"m <= 100",
"m",
"100",
"{\n\n\t\t\tint[][] A = new int[n][m];\n\t\t\tint[] b = new int[m];\n\t\t\tint[] c = new int[n];\n\n\t\t\tString[] AString = new String[m];\n\t\t\tString[] BString = new String[m];\n\n\t\t\tout: for (int i = 0; i < n; i++) {\n\t\t\t\tinput2 = sc.nextLine();\n\t\t\t\tAString = input2.split(\" \");\n\t\t\t\tfor (int j = 0; j < AString.length; j++) {\n\t\t\t\t\tvalue = Integer.parseInt(AString[j]);\n\t\t\t\t\tif (value < 0 || value > 1000) {\n\t\t\t\t\t\tjudge = false;\n\t\t\t\t\t\tbreak out;\n\n\t\t\t\t\t}\n\t\t\t\t\tA[i][j] = value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (judge == true) {\n\n\t\t\t\tout: for (int i = 0; i < m; i++) {\n\t\t\t\t\tBString[i] = sc.nextLine();\n\t\t\t\t\tvalue = Integer.parseInt(BString[i]);\n\t\t\t\t\tif (value < 0 || value > 1000) {\n\t\t\t\t\t\tjudge = false;\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}\n\t\t\t\t\tb[i] = value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (judge == true) {\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\t\tc[i] += A[i][j] * b[j];\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tSystem.out.println(c[k]);\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"int[][] A = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int[] b = new int[m];",
"b",
"new int[m]",
"m",
"int[] c = new int[n];",
"c",
"new int[n]",
"n",
"String[] AString = new String[m];",
"AString",
"new String[m]",
"m",
"String[] BString = new String[m];",
"BString",
"new String[m]",
"m",
"if (judge == true) {\n\n\t\t\t\tout: for (int i = 0; i < m; i++) {\n\t\t\t\t\tBString[i] = sc.nextLine();\n\t\t\t\t\tvalue = Integer.parseInt(BString[i]);\n\t\t\t\t\tif (value < 0 || value > 1000) {\n\t\t\t\t\t\tjudge = false;\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}\n\t\t\t\t\tb[i] = value;\n\t\t\t\t}\n\t\t\t}",
"judge == true",
"judge",
"true",
"{\n\n\t\t\t\tout: for (int i = 0; i < m; i++) {\n\t\t\t\t\tBString[i] = sc.nextLine();\n\t\t\t\t\tvalue = Integer.parseInt(BString[i]);\n\t\t\t\t\tif (value < 0 || value > 1000) {\n\t\t\t\t\t\tjudge = false;\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}\n\t\t\t\t\tb[i] = value;\n\t\t\t\t}\n\t\t\t}",
"if (judge == true) {\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\t\tc[i] += A[i][j] * b[j];\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tSystem.out.println(c[k]);\n\n\t\t\t\t}\n\n\t\t\t}",
"judge == true",
"judge",
"true",
"{\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\t\tc[i] += A[i][j] * b[j];\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tSystem.out.println(c[k]);\n\n\t\t\t\t}\n\n\t\t\t}",
"for (int i = 0; i < n; i++) {\n\t\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\t\tc[i] += A[i][j] * b[j];\n\n\t\t\t\t\t}\n\n\t\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\t\tc[i] += A[i][j] * b[j];\n\n\t\t\t\t\t}\n\n\t\t\t\t}",
"{\n\t\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\t\tc[i] += A[i][j] * b[j];\n\n\t\t\t\t\t}\n\n\t\t\t\t}",
"for (int j = 0; j < m; j++) {\n\t\t\t\t\t\tc[i] += A[i][j] * b[j];\n\n\t\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\t\t\tc[i] += A[i][j] * b[j];\n\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tc[i] += A[i][j] * b[j];\n\n\t\t\t\t\t}",
"c[i] += A[i][j] * b[j]",
"c[i]",
"c",
"i",
"A[i][j] * b[j]",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"b[j]",
"b",
"j",
"for (int k = 0; k < n; k++) {\n\t\t\t\t\tSystem.out.println(c[k]);\n\n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < n",
"k",
"n",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tSystem.out.println(c[k]);\n\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.println(c[k]);\n\n\t\t\t\t}",
"System.out.println(c[k])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[k]",
"c",
"k",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString input1 = sc.nextLine();\n\t\tString input2 = \"\";\n\t\tString[] NM = input1.split(\" \");\n\n\t\tint n = Integer.parseInt(NM[0]);\n\t\tint m = Integer.parseInt(NM[1]);\n\t\tboolean judge = true;\n\t\tint value = 0; // 入力された行列Aと列Bの数値を一時的に保持するための変数\n\n\t\tif ((n >= 1 && n <= 100) && (m >= 1 && m <= 100)) {\n\n\t\t\tint[][] A = new int[n][m];\n\t\t\tint[] b = new int[m];\n\t\t\tint[] c = new int[n];\n\n\t\t\tString[] AString = new String[m];\n\t\t\tString[] BString = new String[m];\n\n\t\t\tout: for (int i = 0; i < n; i++) {\n\t\t\t\tinput2 = sc.nextLine();\n\t\t\t\tAString = input2.split(\" \");\n\t\t\t\tfor (int j = 0; j < AString.length; j++) {\n\t\t\t\t\tvalue = Integer.parseInt(AString[j]);\n\t\t\t\t\tif (value < 0 || value > 1000) {\n\t\t\t\t\t\tjudge = false;\n\t\t\t\t\t\tbreak out;\n\n\t\t\t\t\t}\n\t\t\t\t\tA[i][j] = value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (judge == true) {\n\n\t\t\t\tout: for (int i = 0; i < m; i++) {\n\t\t\t\t\tBString[i] = sc.nextLine();\n\t\t\t\t\tvalue = Integer.parseInt(BString[i]);\n\t\t\t\t\tif (value < 0 || value > 1000) {\n\t\t\t\t\t\tjudge = false;\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}\n\t\t\t\t\tb[i] = value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (judge == true) {\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\t\tc[i] += A[i][j] * b[j];\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tSystem.out.println(c[k]);\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t}\n\n}",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString input1 = sc.nextLine();\n\t\tString input2 = \"\";\n\t\tString[] NM = input1.split(\" \");\n\n\t\tint n = Integer.parseInt(NM[0]);\n\t\tint m = Integer.parseInt(NM[1]);\n\t\tboolean judge = true;\n\t\tint value = 0; // 入力された行列Aと列Bの数値を一時的に保持するための変数\n\n\t\tif ((n >= 1 && n <= 100) && (m >= 1 && m <= 100)) {\n\n\t\t\tint[][] A = new int[n][m];\n\t\t\tint[] b = new int[m];\n\t\t\tint[] c = new int[n];\n\n\t\t\tString[] AString = new String[m];\n\t\t\tString[] BString = new String[m];\n\n\t\t\tout: for (int i = 0; i < n; i++) {\n\t\t\t\tinput2 = sc.nextLine();\n\t\t\t\tAString = input2.split(\" \");\n\t\t\t\tfor (int j = 0; j < AString.length; j++) {\n\t\t\t\t\tvalue = Integer.parseInt(AString[j]);\n\t\t\t\t\tif (value < 0 || value > 1000) {\n\t\t\t\t\t\tjudge = false;\n\t\t\t\t\t\tbreak out;\n\n\t\t\t\t\t}\n\t\t\t\t\tA[i][j] = value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (judge == true) {\n\n\t\t\t\tout: for (int i = 0; i < m; i++) {\n\t\t\t\t\tBString[i] = sc.nextLine();\n\t\t\t\t\tvalue = Integer.parseInt(BString[i]);\n\t\t\t\t\tif (value < 0 || value > 1000) {\n\t\t\t\t\t\tjudge = false;\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}\n\t\t\t\t\tb[i] = value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (judge == true) {\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\t\tc[i] += A[i][j] * b[j];\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tSystem.out.println(c[k]);\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
String input1 = sc.nextLine();
String input2 = "";
String[] NM = input1.split(" ");
int n = Integer.parseInt(NM[0]);
int m = Integer.parseInt(NM[1]);
boolean judge = true;
int value = 0; // 入力された行列Aと列Bの数値を一時的に保持するための変数
if ((n >= 1 && n <= 100) && (m >= 1 && m <= 100)) {
int[][] A = new int[n][m];
int[] b = new int[m];
int[] c = new int[n];
String[] AString = new String[m];
String[] BString = new String[m];
out: for (int i = 0; i < n; i++) {
input2 = sc.nextLine();
AString = input2.split(" ");
for (int j = 0; j < AString.length; j++) {
value = Integer.parseInt(AString[j]);
if (value < 0 || value > 1000) {
judge = false;
break out;
}
A[i][j] = value;
}
}
if (judge == true) {
out: for (int i = 0; i < m; i++) {
BString[i] = sc.nextLine();
value = Integer.parseInt(BString[i]);
if (value < 0 || value > 1000) {
judge = false;
break out;
}
b[i] = value;
}
}
if (judge == true) {
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
c[i] += A[i][j] * b[j];
}
}
for (int k = 0; k < n; k++) {
System.out.println(c[k]);
}
}
}
}
}
|
[
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,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
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
],
[
161,
14
],
[
161,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
17,
34
],
[
34,
35
],
[
34,
36
],
[
17,
39
],
[
39,
40
],
[
39,
41
],
[
17,
43
],
[
43,
44
],
[
43,
45
],
[
17,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
60,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
72,
78
],
[
78,
79
],
[
79,
80
],
[
17,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
86,
87
],
[
86,
88
],
[
81,
89
],
[
89,
90
],
[
90,
91
],
[
81,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
98,
99
],
[
17,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
100,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
113,
121
],
[
121,
122
],
[
122,
123
],
[
113,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
129,
135
],
[
135,
136
],
[
135,
137
],
[
17,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
143,
144
],
[
143,
145
],
[
138,
146
],
[
146,
147
],
[
147,
148
],
[
138,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
150,
155
],
[
155,
156
],
[
155,
157
],
[
15,
158
],
[
158,
159
],
[
0,
160
],
[
160,
161
],
[
160,
162
]
] | [
"import java.util.*;\nimport java.io.*;\nimport java.lang.*;\nimport java.math.*;\npublic class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=stdIn.nextInt();\n\t\tint m=stdIn.nextInt();\n\t\tint a[][]=new int[n][m];\n\t\tint b[]=new int[m];\n\t\tint c[]=new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\ta[i][j]=stdIn.nextInt();\n\t\t}\n\t\tfor(int i=0;i<m;i++)\n\t\t\tb[i]=stdIn.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\tc[i]+=a[i][j]*b[j];\n\t\t}\n\t\tfor(int i=0;i<n;i++)\n\t\t\tSystem.out.println(c[i]);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=stdIn.nextInt();\n\t\tint m=stdIn.nextInt();\n\t\tint a[][]=new int[n][m];\n\t\tint b[]=new int[m];\n\t\tint c[]=new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\ta[i][j]=stdIn.nextInt();\n\t\t}\n\t\tfor(int i=0;i<m;i++)\n\t\t\tb[i]=stdIn.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\tc[i]+=a[i][j]*b[j];\n\t\t}\n\t\tfor(int i=0;i<n;i++)\n\t\t\tSystem.out.println(c[i]);\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=stdIn.nextInt();\n\t\tint m=stdIn.nextInt();\n\t\tint a[][]=new int[n][m];\n\t\tint b[]=new int[m];\n\t\tint c[]=new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\ta[i][j]=stdIn.nextInt();\n\t\t}\n\t\tfor(int i=0;i<m;i++)\n\t\t\tb[i]=stdIn.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\tc[i]+=a[i][j]*b[j];\n\t\t}\n\t\tfor(int i=0;i<n;i++)\n\t\t\tSystem.out.println(c[i]);\n\t}",
"main",
"{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=stdIn.nextInt();\n\t\tint m=stdIn.nextInt();\n\t\tint a[][]=new int[n][m];\n\t\tint b[]=new int[m];\n\t\tint c[]=new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\ta[i][j]=stdIn.nextInt();\n\t\t}\n\t\tfor(int i=0;i<m;i++)\n\t\t\tb[i]=stdIn.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\tc[i]+=a[i][j]*b[j];\n\t\t}\n\t\tfor(int i=0;i<n;i++)\n\t\t\tSystem.out.println(c[i]);\n\t}",
"Scanner stdIn=new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n=stdIn.nextInt();",
"n",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int m=stdIn.nextInt();",
"m",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int a[][]=new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int b[]=new int[m];",
"b",
"new int[m]",
"m",
"int c[]=new int[n];",
"c",
"new int[n]",
"n",
"for(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\ta[i][j]=stdIn.nextInt();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\ta[i][j]=stdIn.nextInt();\n\t\t}",
"{\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\ta[i][j]=stdIn.nextInt();\n\t\t}",
"for(int j=0;j<m;j++)\n\t\t\t\ta[i][j]=stdIn.nextInt();",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"a[i][j]=stdIn.nextInt();",
"a[i][j]=stdIn.nextInt()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"for(int i=0;i<m;i++)\n\t\t\tb[i]=stdIn.nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"b[i]=stdIn.nextInt();",
"b[i]=stdIn.nextInt()",
"b[i]",
"b",
"i",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"for(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\tc[i]+=a[i][j]*b[j];\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\tc[i]+=a[i][j]*b[j];\n\t\t}",
"{\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\tc[i]+=a[i][j]*b[j];\n\t\t}",
"for(int j=0;j<m;j++)\n\t\t\t\tc[i]+=a[i][j]*b[j];",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"c[i]+=a[i][j]*b[j];",
"c[i]+=a[i][j]*b[j]",
"c[i]",
"c",
"i",
"a[i][j]*b[j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"for(int i=0;i<n;i++)\n\t\t\tSystem.out.println(c[i]);",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"System.out.println(c[i]);",
"System.out.println(c[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[i]",
"c",
"i",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=stdIn.nextInt();\n\t\tint m=stdIn.nextInt();\n\t\tint a[][]=new int[n][m];\n\t\tint b[]=new int[m];\n\t\tint c[]=new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\ta[i][j]=stdIn.nextInt();\n\t\t}\n\t\tfor(int i=0;i<m;i++)\n\t\t\tb[i]=stdIn.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\tc[i]+=a[i][j]*b[j];\n\t\t}\n\t\tfor(int i=0;i<n;i++)\n\t\t\tSystem.out.println(c[i]);\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=stdIn.nextInt();\n\t\tint m=stdIn.nextInt();\n\t\tint a[][]=new int[n][m];\n\t\tint b[]=new int[m];\n\t\tint c[]=new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\ta[i][j]=stdIn.nextInt();\n\t\t}\n\t\tfor(int i=0;i<m;i++)\n\t\t\tb[i]=stdIn.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\tc[i]+=a[i][j]*b[j];\n\t\t}\n\t\tfor(int i=0;i<n;i++)\n\t\t\tSystem.out.println(c[i]);\n\t}\n}",
"Main"
] | import java.util.*;
import java.io.*;
import java.lang.*;
import java.math.*;
public class Main{
public static void main(String[] args) throws IOException{
Scanner stdIn=new Scanner(System.in);
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int n=stdIn.nextInt();
int m=stdIn.nextInt();
int a[][]=new int[n][m];
int b[]=new int[m];
int c[]=new int[n];
for(int i=0;i<n;i++){
for(int j=0;j<m;j++)
a[i][j]=stdIn.nextInt();
}
for(int i=0;i<m;i++)
b[i]=stdIn.nextInt();
for(int i=0;i<n;i++){
for(int j=0;j<m;j++)
c[i]+=a[i][j]*b[j];
}
for(int i=0;i<n;i++)
System.out.println(c[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,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
153,
5
],
[
153,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
90,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
103,
111
],
[
111,
112
],
[
112,
113
],
[
103,
114
],
[
115,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
120,
126
],
[
126,
127
],
[
126,
128
],
[
8,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
129,
137
],
[
137,
138
],
[
138,
139
],
[
129,
140
],
[
141,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
142,
147
],
[
147,
148
],
[
147,
149
],
[
6,
150
],
[
150,
151
],
[
0,
152
],
[
152,
153
],
[
152,
154
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\n\t\tint lineA[][] = new int[n][m];\n\t\tint lineB[] = new int[m];\n\t\tint c[] = new int[n];\n\n\t\t// a???????????????????¨????\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tlineA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t// b????´??????????????¨????\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tlineB[i] = sc.nextInt();\n\t\t}\n\n\t\t// ????¨?\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tc[i] += lineA[i][j] * lineB[j];\n\t\t\t}\n\t\t}\n\n\t\t// ??????\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\n\t\tint lineA[][] = new int[n][m];\n\t\tint lineB[] = new int[m];\n\t\tint c[] = new int[n];\n\n\t\t// a???????????????????¨????\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tlineA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t// b????´??????????????¨????\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tlineB[i] = sc.nextInt();\n\t\t}\n\n\t\t// ????¨?\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tc[i] += lineA[i][j] * lineB[j];\n\t\t\t}\n\t\t}\n\n\t\t// ??????\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\n\t\tint lineA[][] = new int[n][m];\n\t\tint lineB[] = new int[m];\n\t\tint c[] = new int[n];\n\n\t\t// a???????????????????¨????\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tlineA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t// b????´??????????????¨????\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tlineB[i] = sc.nextInt();\n\t\t}\n\n\t\t// ????¨?\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tc[i] += lineA[i][j] * lineB[j];\n\t\t\t}\n\t\t}\n\n\t\t// ??????\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\n\t\tint lineA[][] = new int[n][m];\n\t\tint lineB[] = new int[m];\n\t\tint c[] = new int[n];\n\n\t\t// a???????????????????¨????\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tlineA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t// b????´??????????????¨????\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tlineB[i] = sc.nextInt();\n\t\t}\n\n\t\t// ????¨?\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tc[i] += lineA[i][j] * lineB[j];\n\t\t\t}\n\t\t}\n\n\t\t// ??????\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int lineA[][] = new int[n][m];",
"lineA",
"new int[n][m]",
"n",
"m",
"int lineB[] = new int[m];",
"lineB",
"new int[m]",
"m",
"int c[] = new int[n];",
"c",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tlineA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tlineA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tlineA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for (int j = 0; j < m; j++) {\n\t\t\t\tlineA[i][j] = sc.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tlineA[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tlineA[i][j] = sc.nextInt();\n\t\t\t}",
"lineA[i][j] = sc.nextInt()",
"lineA[i][j]",
"lineA[i]",
"lineA",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < m; i++) {\n\t\t\tlineB[i] = sc.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tlineB[i] = sc.nextInt();\n\t\t}",
"{\n\t\t\tlineB[i] = sc.nextInt();\n\t\t}",
"lineB[i] = sc.nextInt()",
"lineB[i]",
"lineB",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tc[i] += lineA[i][j] * lineB[j];\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tc[i] += lineA[i][j] * lineB[j];\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tc[i] += lineA[i][j] * lineB[j];\n\t\t\t}\n\t\t}",
"for (int j = 0; j < m; j++) {\n\t\t\t\tc[i] += lineA[i][j] * lineB[j];\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tc[i] += lineA[i][j] * lineB[j];\n\t\t\t}",
"{\n\t\t\t\tc[i] += lineA[i][j] * lineB[j];\n\t\t\t}",
"c[i] += lineA[i][j] * lineB[j]",
"c[i]",
"c",
"i",
"lineA[i][j] * lineB[j]",
"lineA[i][j]",
"lineA[i]",
"lineA",
"i",
"j",
"lineB[j]",
"lineB",
"j",
"for (int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"System.out.println(c[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[i]",
"c",
"i",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\n\t\tint lineA[][] = new int[n][m];\n\t\tint lineB[] = new int[m];\n\t\tint c[] = new int[n];\n\n\t\t// a???????????????????¨????\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tlineA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t// b????´??????????????¨????\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tlineB[i] = sc.nextInt();\n\t\t}\n\n\t\t// ????¨?\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tc[i] += lineA[i][j] * lineB[j];\n\t\t\t}\n\t\t}\n\n\t\t// ??????\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\n\t\tint lineA[][] = new int[n][m];\n\t\tint lineB[] = new int[m];\n\t\tint c[] = new int[n];\n\n\t\t// a???????????????????¨????\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tlineA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t// b????´??????????????¨????\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tlineB[i] = sc.nextInt();\n\t\t}\n\n\t\t// ????¨?\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tc[i] += lineA[i][j] * lineB[j];\n\t\t\t}\n\t\t}\n\n\t\t// ??????\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
int lineA[][] = new int[n][m];
int lineB[] = new int[m];
int c[] = new int[n];
// a???????????????????¨????
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
lineA[i][j] = sc.nextInt();
}
}
// b????´??????????????¨????
for (int i = 0; i < m; i++) {
lineB[i] = sc.nextInt();
}
// ????¨?
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
c[i] += lineA[i][j] * lineB[j];
}
}
// ??????
for (int i = 0; i < n; i++) {
System.out.println(c[i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
17,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
0,
13,
17,
4,
18,
13,
23,
13
] | [
[
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
],
[
13,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
34
],
[
34,
35
],
[
34,
36
],
[
8,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
51,
62
],
[
63,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
64,
70
],
[
70,
71
],
[
71,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
73,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
91,
92
],
[
8,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
98,
100
],
[
93,
101
],
[
101,
102
],
[
102,
103
],
[
93,
104
],
[
105,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
106,
114
],
[
114,
115
],
[
115,
116
],
[
106,
117
],
[
118,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
121,
127
],
[
127,
128
],
[
127,
129
],
[
105,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
105,
136
],
[
136,
137
],
[
136,
138
],
[
8,
139
],
[
139,
140
],
[
140,
141
],
[
6,
142
],
[
142,
143
]
] | [
"import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n int n,m;\n int result = 0;\n \n\t\tScanner scanner = new Scanner(System.in);\n\t\tn = scanner.nextInt();\n\t\tm = scanner.nextInt();\n\t\tint A[][] = new int[n][m];\n\t\tint b[] = new int[m];\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\tA[i][j] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tb[i] = scanner.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\tresult += A[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(result);\n\t\t\tresult = 0;\n\t\t}\n \tscanner.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n int n,m;\n int result = 0;\n \n\t\tScanner scanner = new Scanner(System.in);\n\t\tn = scanner.nextInt();\n\t\tm = scanner.nextInt();\n\t\tint A[][] = new int[n][m];\n\t\tint b[] = new int[m];\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\tA[i][j] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tb[i] = scanner.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\tresult += A[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(result);\n\t\t\tresult = 0;\n\t\t}\n \tscanner.close();\n }\n}",
"Main",
"public static void main(String[] args){\n int n,m;\n int result = 0;\n \n\t\tScanner scanner = new Scanner(System.in);\n\t\tn = scanner.nextInt();\n\t\tm = scanner.nextInt();\n\t\tint A[][] = new int[n][m];\n\t\tint b[] = new int[m];\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\tA[i][j] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tb[i] = scanner.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\tresult += A[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(result);\n\t\t\tresult = 0;\n\t\t}\n \tscanner.close();\n }",
"main",
"{\n int n,m;\n int result = 0;\n \n\t\tScanner scanner = new Scanner(System.in);\n\t\tn = scanner.nextInt();\n\t\tm = scanner.nextInt();\n\t\tint A[][] = new int[n][m];\n\t\tint b[] = new int[m];\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\tA[i][j] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tb[i] = scanner.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\tresult += A[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(result);\n\t\t\tresult = 0;\n\t\t}\n \tscanner.close();\n }",
"int n",
"n",
"m;",
"m",
"int result = 0;",
"result",
"0",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"n = scanner.nextInt()",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"m = scanner.nextInt()",
"m",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int A[][] = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int b[] = new int[m];",
"b",
"new int[m]",
"m",
"for(int i = 0;i < n;i++){\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\tA[i][j] = scanner.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\tA[i][j] = scanner.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\tA[i][j] = scanner.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0;j < m;j++){\n\t\t\t\tA[i][j] = scanner.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tA[i][j] = scanner.nextInt();\n\t\t\t}",
"{\n\t\t\t\tA[i][j] = scanner.nextInt();\n\t\t\t}",
"A[i][j] = scanner.nextInt()",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for(int i = 0;i < m;i++){\n\t\t\tb[i] = scanner.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tb[i] = scanner.nextInt();\n\t\t}",
"{\n\t\t\tb[i] = scanner.nextInt();\n\t\t}",
"b[i] = scanner.nextInt()",
"b[i]",
"b",
"i",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for(int i = 0;i < n;i++){\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\tresult += A[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(result);\n\t\t\tresult = 0;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\tresult += A[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(result);\n\t\t\tresult = 0;\n\t\t}",
"{\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\tresult += A[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(result);\n\t\t\tresult = 0;\n\t\t}",
"for(int j = 0;j < m;j++){\n\t\t\t\tresult += A[i][j]*b[j];\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tresult += A[i][j]*b[j];\n\t\t\t}",
"{\n\t\t\t\tresult += A[i][j]*b[j];\n\t\t\t}",
"result += A[i][j]*b[j]",
"result",
"A[i][j]*b[j]",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"b[j]",
"b",
"j",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"result = 0",
"result",
"0",
"scanner.close()",
"scanner.close",
"scanner",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String[] args){
int n,m;
int result = 0;
Scanner scanner = new Scanner(System.in);
n = scanner.nextInt();
m = scanner.nextInt();
int A[][] = new int[n][m];
int b[] = new int[m];
for(int i = 0;i < n;i++){
for(int j = 0;j < m;j++){
A[i][j] = scanner.nextInt();
}
}
for(int i = 0;i < m;i++){
b[i] = scanner.nextInt();
}
for(int i = 0;i < n;i++){
for(int j = 0;j < m;j++){
result += A[i][j]*b[j];
}
System.out.println(result);
result = 0;
}
scanner.close();
}
} |
[
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,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
18,
18,
13,
13,
13,
41,
13,
18,
13,
13,
0,
18,
13,
13,
2,
13,
13,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
149,
5
],
[
149,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
90,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
103,
111
],
[
111,
112
],
[
112,
113
],
[
103,
114
],
[
115,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
115,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
125,
127
],
[
115,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
132,
134
],
[
102,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
140,
141
],
[
140,
142
],
[
8,
143
],
[
143,
144
],
[
144,
145
],
[
6,
146
],
[
146,
147
],
[
0,
148
],
[
148,
149
],
[
148,
150
]
] | [
"import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in) ;\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tint[] c = new int[n];\n\t//a[n][m] ?????????????????\\????????????????????????\n\t\tfor(int i = 0 ; i < n ; i++) {\n\t\t\tfor(int j = 0; j < m ; j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t//b[m] ?????????????????\\?????????\n\t\tfor(int j = 0 ; j < m ; j++) {\n\t\t\tb[j] = sc.nextInt();\n\t\t}\n\t\n\t//????????????????????????????????????\n\t\tfor(int i = 0 ; i < n ; i++) {\n\t\t\tfor(int j = 0; j < m ; j++) {\n\t\t\t\tint A = a[i][j] ; //A???A????????¨????????????\n\t\t\t\tint B = b[j] ; //??????b????????¨????????????\n\t\t\t\tc[i] += A*B; //??????c??????????¨???????????????§???\n\t\t\t}\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t\t\n\t\tsc.close();\n\n\t}\n\t\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in) ;\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tint[] c = new int[n];\n\t//a[n][m] ?????????????????\\????????????????????????\n\t\tfor(int i = 0 ; i < n ; i++) {\n\t\t\tfor(int j = 0; j < m ; j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t//b[m] ?????????????????\\?????????\n\t\tfor(int j = 0 ; j < m ; j++) {\n\t\t\tb[j] = sc.nextInt();\n\t\t}\n\t\n\t//????????????????????????????????????\n\t\tfor(int i = 0 ; i < n ; i++) {\n\t\t\tfor(int j = 0; j < m ; j++) {\n\t\t\t\tint A = a[i][j] ; //A???A????????¨????????????\n\t\t\t\tint B = b[j] ; //??????b????????¨????????????\n\t\t\t\tc[i] += A*B; //??????c??????????¨???????????????§???\n\t\t\t}\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t\t\n\t\tsc.close();\n\n\t}\n\t\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in) ;\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tint[] c = new int[n];\n\t//a[n][m] ?????????????????\\????????????????????????\n\t\tfor(int i = 0 ; i < n ; i++) {\n\t\t\tfor(int j = 0; j < m ; j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t//b[m] ?????????????????\\?????????\n\t\tfor(int j = 0 ; j < m ; j++) {\n\t\t\tb[j] = sc.nextInt();\n\t\t}\n\t\n\t//????????????????????????????????????\n\t\tfor(int i = 0 ; i < n ; i++) {\n\t\t\tfor(int j = 0; j < m ; j++) {\n\t\t\t\tint A = a[i][j] ; //A???A????????¨????????????\n\t\t\t\tint B = b[j] ; //??????b????????¨????????????\n\t\t\t\tc[i] += A*B; //??????c??????????¨???????????????§???\n\t\t\t}\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t\t\n\t\tsc.close();\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in) ;\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tint[] c = new int[n];\n\t//a[n][m] ?????????????????\\????????????????????????\n\t\tfor(int i = 0 ; i < n ; i++) {\n\t\t\tfor(int j = 0; j < m ; j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t//b[m] ?????????????????\\?????????\n\t\tfor(int j = 0 ; j < m ; j++) {\n\t\t\tb[j] = sc.nextInt();\n\t\t}\n\t\n\t//????????????????????????????????????\n\t\tfor(int i = 0 ; i < n ; i++) {\n\t\t\tfor(int j = 0; j < m ; j++) {\n\t\t\t\tint A = a[i][j] ; //A???A????????¨????????????\n\t\t\t\tint B = b[j] ; //??????b????????¨????????????\n\t\t\t\tc[i] += A*B; //??????c??????????¨???????????????§???\n\t\t\t}\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t\t\n\t\tsc.close();\n\n\t}",
"Scanner sc = new Scanner(System.in) ;",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] a = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[] b = new int[m];",
"b",
"new int[m]",
"m",
"int[] c = new int[n];",
"c",
"new int[n]",
"n",
"for(int i = 0 ; i < n ; i++) {\n\t\t\tfor(int j = 0; j < m ; j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < m ; j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < m ; j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0; j < m ; j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}",
"a[i][j] = sc.nextInt()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j = 0 ; j < m ; j++) {\n\t\t\tb[j] = sc.nextInt();\n\t\t}",
"int j = 0 ;",
"int j = 0 ;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\tb[j] = sc.nextInt();\n\t\t}",
"{\n\t\t\tb[j] = sc.nextInt();\n\t\t}",
"b[j] = sc.nextInt()",
"b[j]",
"b",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0 ; i < n ; i++) {\n\t\t\tfor(int j = 0; j < m ; j++) {\n\t\t\t\tint A = a[i][j] ; //A???A????????¨????????????\n\t\t\t\tint B = b[j] ; //??????b????????¨????????????\n\t\t\t\tc[i] += A*B; //??????c??????????¨???????????????§???\n\t\t\t}\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < m ; j++) {\n\t\t\t\tint A = a[i][j] ; //A???A????????¨????????????\n\t\t\t\tint B = b[j] ; //??????b????????¨????????????\n\t\t\t\tc[i] += A*B; //??????c??????????¨???????????????§???\n\t\t\t}\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < m ; j++) {\n\t\t\t\tint A = a[i][j] ; //A???A????????¨????????????\n\t\t\t\tint B = b[j] ; //??????b????????¨????????????\n\t\t\t\tc[i] += A*B; //??????c??????????¨???????????????§???\n\t\t\t}\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"for(int j = 0; j < m ; j++) {\n\t\t\t\tint A = a[i][j] ; //A???A????????¨????????????\n\t\t\t\tint B = b[j] ; //??????b????????¨????????????\n\t\t\t\tc[i] += A*B; //??????c??????????¨???????????????§???\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tint A = a[i][j] ; //A???A????????¨????????????\n\t\t\t\tint B = b[j] ; //??????b????????¨????????????\n\t\t\t\tc[i] += A*B; //??????c??????????¨???????????????§???\n\t\t\t}",
"{\n\t\t\t\tint A = a[i][j] ; //A???A????????¨????????????\n\t\t\t\tint B = b[j] ; //??????b????????¨????????????\n\t\t\t\tc[i] += A*B; //??????c??????????¨???????????????§???\n\t\t\t}",
"int A = a[i][j] ;",
"A",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"int B = b[j] ;",
"B",
"b[j]",
"b",
"j",
"c[i] += A*B",
"c[i]",
"c",
"i",
"A*B",
"A",
"B",
"System.out.println(c[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[i]",
"c",
"i",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in) ;\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tint[] c = new int[n];\n\t//a[n][m] ?????????????????\\????????????????????????\n\t\tfor(int i = 0 ; i < n ; i++) {\n\t\t\tfor(int j = 0; j < m ; j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t//b[m] ?????????????????\\?????????\n\t\tfor(int j = 0 ; j < m ; j++) {\n\t\t\tb[j] = sc.nextInt();\n\t\t}\n\t\n\t//????????????????????????????????????\n\t\tfor(int i = 0 ; i < n ; i++) {\n\t\t\tfor(int j = 0; j < m ; j++) {\n\t\t\t\tint A = a[i][j] ; //A???A????????¨????????????\n\t\t\t\tint B = b[j] ; //??????b????????¨????????????\n\t\t\t\tc[i] += A*B; //??????c??????????¨???????????????§???\n\t\t\t}\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t\t\n\t\tsc.close();\n\n\t}\n\t\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in) ;\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\n\t\tint[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tint[] c = new int[n];\n\t//a[n][m] ?????????????????\\????????????????????????\n\t\tfor(int i = 0 ; i < n ; i++) {\n\t\t\tfor(int j = 0; j < m ; j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t//b[m] ?????????????????\\?????????\n\t\tfor(int j = 0 ; j < m ; j++) {\n\t\t\tb[j] = sc.nextInt();\n\t\t}\n\t\n\t//????????????????????????????????????\n\t\tfor(int i = 0 ; i < n ; i++) {\n\t\t\tfor(int j = 0; j < m ; j++) {\n\t\t\t\tint A = a[i][j] ; //A???A????????¨????????????\n\t\t\t\tint B = b[j] ; //??????b????????¨????????????\n\t\t\t\tc[i] += A*B; //??????c??????????¨???????????????§???\n\t\t\t}\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t\t\n\t\tsc.close();\n\n\t}\n\t\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in) ;
int n = sc.nextInt();
int m = sc.nextInt();
int[][] a = new int[n][m];
int[] b = new int[m];
int[] c = new int[n];
//a[n][m] ?????????????????\????????????????????????
for(int i = 0 ; i < n ; i++) {
for(int j = 0; j < m ; j++) {
a[i][j] = sc.nextInt();
}
}
//b[m] ?????????????????\?????????
for(int j = 0 ; j < m ; j++) {
b[j] = sc.nextInt();
}
//????????????????????????????????????
for(int i = 0 ; i < n ; i++) {
for(int j = 0; j < m ; j++) {
int A = a[i][j] ; //A???A????????¨????????????
int B = b[j] ; //??????b????????¨????????????
c[i] += A*B; //??????c??????????¨???????????????§???
}
System.out.println(c[i]);
}
sc.close();
}
} |
[
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,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
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,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
28,
13,
13,
30,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
145,
5
],
[
145,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
8,
86
],
[
86,
87
],
[
86,
88
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
90,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
103,
111
],
[
111,
112
],
[
112,
113
],
[
103,
114
],
[
115,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
120,
126
],
[
126,
127
],
[
126,
128
],
[
8,
129
],
[
129,
130
],
[
129,
131
],
[
129,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
8,
139
],
[
139,
140
],
[
140,
141
],
[
6,
142
],
[
142,
143
],
[
0,
144
],
[
144,
145
],
[
144,
146
]
] | [
"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 = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int k =0; k < m; k++) {\n\t\t\tb[k] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint[] c = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tc[i] += A[i][j] * b[j];\n\t\t\t}\n\t\t}\n\t\tfor (int ans : c)System.out.println(ans);\n\t\tsc.close();\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int k =0; k < m; k++) {\n\t\t\tb[k] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint[] c = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tc[i] += A[i][j] * b[j];\n\t\t\t}\n\t\t}\n\t\tfor (int ans : c)System.out.println(ans);\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int k =0; k < m; k++) {\n\t\t\tb[k] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint[] c = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tc[i] += A[i][j] * b[j];\n\t\t\t}\n\t\t}\n\t\tfor (int ans : c)System.out.println(ans);\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int k =0; k < m; k++) {\n\t\t\tb[k] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint[] c = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tc[i] += A[i][j] * b[j];\n\t\t\t}\n\t\t}\n\t\tfor (int ans : c)System.out.println(ans);\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] A = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int[] b = new int[m];",
"b",
"new int[m]",
"m",
"for(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}",
"A[i][j] = sc.nextInt()",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int k =0; k < m; k++) {\n\t\t\tb[k] = sc.nextInt();\n\t\t}",
"int k =0;",
"int k =0;",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"{\n\t\t\tb[k] = sc.nextInt();\n\t\t}",
"{\n\t\t\tb[k] = sc.nextInt();\n\t\t}",
"b[k] = sc.nextInt()",
"b[k]",
"b",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] c = new int[n];",
"c",
"new int[n]",
"n",
"for(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tc[i] += A[i][j] * b[j];\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tc[i] += A[i][j] * b[j];\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tc[i] += A[i][j] * b[j];\n\t\t\t}\n\t\t}",
"for(int j = 0; j < m; j++) {\n\t\t\t\tc[i] += A[i][j] * b[j];\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tc[i] += A[i][j] * b[j];\n\t\t\t}",
"{\n\t\t\t\tc[i] += A[i][j] * b[j];\n\t\t\t}",
"c[i] += A[i][j] * b[j]",
"c[i]",
"c",
"i",
"A[i][j] * b[j]",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"b[j]",
"b",
"j",
"for (int ans : c)System.out.println(ans);",
"int ans",
"c",
"System.out.println(ans);",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int k =0; k < m; k++) {\n\t\t\tb[k] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint[] c = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tc[i] += A[i][j] * b[j];\n\t\t\t}\n\t\t}\n\t\tfor (int ans : c)System.out.println(ans);\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int k =0; k < m; k++) {\n\t\t\tb[k] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint[] c = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tc[i] += A[i][j] * b[j];\n\t\t\t}\n\t\t}\n\t\tfor (int ans : c)System.out.println(ans);\n\t\tsc.close();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
int[][] A = new int[n][m];
int[] b = new int[m];
for(int i = 0; i < n; i++) {
for(int j = 0; j < m; j++) {
A[i][j] = sc.nextInt();
}
}
for(int k =0; k < m; k++) {
b[k] = sc.nextInt();
}
int[] c = new int[n];
for(int i = 0; i < n; i++) {
for(int j = 0; j < m; j++) {
c[i] += A[i][j] * b[j];
}
}
for (int ans : c)System.out.println(ans);
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
18,
18,
13,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
13,
2,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
159,
5
],
[
159,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
54,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
66,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
72,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
79,
87
],
[
87,
88
],
[
88,
89
],
[
79,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
91,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
8,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
110,
111
],
[
111,
112
],
[
102,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
118,
126
],
[
126,
127
],
[
127,
128
],
[
118,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
134,
140
],
[
140,
141
],
[
140,
142
],
[
114,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
114,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
153,
154
],
[
153,
155
],
[
6,
156
],
[
156,
157
],
[
0,
158
],
[
158,
159
],
[
158,
160
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tint n,m;\n\t\tint cal;\n\t\tScanner scan = new Scanner(System.in);\n\t\tn=scan.nextInt();\n\t\tm=scan.nextInt();\n\t\tint[][] yousoA =new int[n][m];\n\t\tint[] yousob =new int[m];\n\t\tint[] yousoc =new int[n];\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\tcal=scan.nextInt();\n\t\t\tyousoA[i][j]=cal;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tcal=scan.nextInt();\n\t\t\tyousob[i]=cal;\n\t\t}\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tcal=0;\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\tcal=cal+yousoA[i][j]*yousob[j];\n\t\t\tyousoc[i]=cal;\n\t\t\tSystem.out.println(yousoc[i]);\n\t\t}\n\t\t\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tint n,m;\n\t\tint cal;\n\t\tScanner scan = new Scanner(System.in);\n\t\tn=scan.nextInt();\n\t\tm=scan.nextInt();\n\t\tint[][] yousoA =new int[n][m];\n\t\tint[] yousob =new int[m];\n\t\tint[] yousoc =new int[n];\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\tcal=scan.nextInt();\n\t\t\tyousoA[i][j]=cal;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tcal=scan.nextInt();\n\t\t\tyousob[i]=cal;\n\t\t}\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tcal=0;\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\tcal=cal+yousoA[i][j]*yousob[j];\n\t\t\tyousoc[i]=cal;\n\t\t\tSystem.out.println(yousoc[i]);\n\t\t}\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tint n,m;\n\t\tint cal;\n\t\tScanner scan = new Scanner(System.in);\n\t\tn=scan.nextInt();\n\t\tm=scan.nextInt();\n\t\tint[][] yousoA =new int[n][m];\n\t\tint[] yousob =new int[m];\n\t\tint[] yousoc =new int[n];\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\tcal=scan.nextInt();\n\t\t\tyousoA[i][j]=cal;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tcal=scan.nextInt();\n\t\t\tyousob[i]=cal;\n\t\t}\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tcal=0;\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\tcal=cal+yousoA[i][j]*yousob[j];\n\t\t\tyousoc[i]=cal;\n\t\t\tSystem.out.println(yousoc[i]);\n\t\t}\n\t\t\n\t}",
"main",
"{\n\t\tint n,m;\n\t\tint cal;\n\t\tScanner scan = new Scanner(System.in);\n\t\tn=scan.nextInt();\n\t\tm=scan.nextInt();\n\t\tint[][] yousoA =new int[n][m];\n\t\tint[] yousob =new int[m];\n\t\tint[] yousoc =new int[n];\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\tcal=scan.nextInt();\n\t\t\tyousoA[i][j]=cal;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tcal=scan.nextInt();\n\t\t\tyousob[i]=cal;\n\t\t}\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tcal=0;\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\tcal=cal+yousoA[i][j]*yousob[j];\n\t\t\tyousoc[i]=cal;\n\t\t\tSystem.out.println(yousoc[i]);\n\t\t}\n\t\t\n\t}",
"int n",
"n",
"m;",
"m",
"int cal;",
"cal",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"n=scan.nextInt()",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"m=scan.nextInt()",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[][] yousoA =new int[n][m];",
"yousoA",
"new int[n][m]",
"n",
"m",
"int[] yousob =new int[m];",
"yousob",
"new int[m]",
"m",
"int[] yousoc =new int[n];",
"yousoc",
"new int[n]",
"n",
"for(int i=0;i<n;i++)\n\t\t{\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\tcal=scan.nextInt();\n\t\t\tyousoA[i][j]=cal;\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\tcal=scan.nextInt();\n\t\t\tyousoA[i][j]=cal;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\tcal=scan.nextInt();\n\t\t\tyousoA[i][j]=cal;\n\t\t\t}\n\t\t}",
"for(int j=0;j<m;j++) {\n\t\t\tcal=scan.nextInt();\n\t\t\tyousoA[i][j]=cal;\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\tcal=scan.nextInt();\n\t\t\tyousoA[i][j]=cal;\n\t\t\t}",
"{\n\t\t\tcal=scan.nextInt();\n\t\t\tyousoA[i][j]=cal;\n\t\t\t}",
"cal=scan.nextInt()",
"cal",
"scan.nextInt()",
"scan.nextInt",
"scan",
"yousoA[i][j]=cal",
"yousoA[i][j]",
"yousoA[i]",
"yousoA",
"i",
"j",
"cal",
"for(int i=0;i<m;i++)\n\t\t{\n\t\t\tcal=scan.nextInt();\n\t\t\tyousob[i]=cal;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tcal=scan.nextInt();\n\t\t\tyousob[i]=cal;\n\t\t}",
"{\n\t\t\tcal=scan.nextInt();\n\t\t\tyousob[i]=cal;\n\t\t}",
"cal=scan.nextInt()",
"cal",
"scan.nextInt()",
"scan.nextInt",
"scan",
"yousob[i]=cal",
"yousob[i]",
"yousob",
"i",
"cal",
"for(int i=0;i<n;i++)\n\t\t{\n\t\t\tcal=0;\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\tcal=cal+yousoA[i][j]*yousob[j];\n\t\t\tyousoc[i]=cal;\n\t\t\tSystem.out.println(yousoc[i]);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tcal=0;\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\tcal=cal+yousoA[i][j]*yousob[j];\n\t\t\tyousoc[i]=cal;\n\t\t\tSystem.out.println(yousoc[i]);\n\t\t}",
"{\n\t\t\tcal=0;\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\tcal=cal+yousoA[i][j]*yousob[j];\n\t\t\tyousoc[i]=cal;\n\t\t\tSystem.out.println(yousoc[i]);\n\t\t}",
"cal=0",
"cal",
"0",
"for(int j=0;j<m;j++)\n\t\t\t\tcal=cal+yousoA[i][j]*yousob[j];",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"cal=cal+yousoA[i][j]*yousob[j];",
"cal=cal+yousoA[i][j]*yousob[j]",
"cal",
"cal+yousoA[i][j]*yousob[j]",
"cal",
"yousoA[i][j]*yousob[j]",
"yousoA[i][j]",
"yousoA[i]",
"yousoA",
"i",
"j",
"yousob[j]",
"yousob",
"j",
"yousoc[i]=cal",
"yousoc[i]",
"yousoc",
"i",
"cal",
"System.out.println(yousoc[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"yousoc[i]",
"yousoc",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tint n,m;\n\t\tint cal;\n\t\tScanner scan = new Scanner(System.in);\n\t\tn=scan.nextInt();\n\t\tm=scan.nextInt();\n\t\tint[][] yousoA =new int[n][m];\n\t\tint[] yousob =new int[m];\n\t\tint[] yousoc =new int[n];\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\tcal=scan.nextInt();\n\t\t\tyousoA[i][j]=cal;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tcal=scan.nextInt();\n\t\t\tyousob[i]=cal;\n\t\t}\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tcal=0;\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\tcal=cal+yousoA[i][j]*yousob[j];\n\t\t\tyousoc[i]=cal;\n\t\t\tSystem.out.println(yousoc[i]);\n\t\t}\n\t\t\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tint n,m;\n\t\tint cal;\n\t\tScanner scan = new Scanner(System.in);\n\t\tn=scan.nextInt();\n\t\tm=scan.nextInt();\n\t\tint[][] yousoA =new int[n][m];\n\t\tint[] yousob =new int[m];\n\t\tint[] yousoc =new int[n];\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\tcal=scan.nextInt();\n\t\t\tyousoA[i][j]=cal;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tcal=scan.nextInt();\n\t\t\tyousob[i]=cal;\n\t\t}\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tcal=0;\n\t\t\tfor(int j=0;j<m;j++)\n\t\t\t\tcal=cal+yousoA[i][j]*yousob[j];\n\t\t\tyousoc[i]=cal;\n\t\t\tSystem.out.println(yousoc[i]);\n\t\t}\n\t\t\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int n,m;
int cal;
Scanner scan = new Scanner(System.in);
n=scan.nextInt();
m=scan.nextInt();
int[][] yousoA =new int[n][m];
int[] yousob =new int[m];
int[] yousoc =new int[n];
for(int i=0;i<n;i++)
{
for(int j=0;j<m;j++) {
cal=scan.nextInt();
yousoA[i][j]=cal;
}
}
for(int i=0;i<m;i++)
{
cal=scan.nextInt();
yousob[i]=cal;
}
for(int i=0;i<n;i++)
{
cal=0;
for(int j=0;j<m;j++)
cal=cal+yousoA[i][j]*yousob[j];
yousoc[i]=cal;
System.out.println(yousoc[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,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
78,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
84,
92
],
[
92,
93
],
[
93,
94
],
[
84,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
101,
107
],
[
8,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
113,
114
],
[
113,
115
],
[
108,
116
],
[
116,
117
],
[
117,
118
],
[
108,
119
],
[
120,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
126,
127
],
[
126,
128
],
[
6,
129
],
[
129,
130
]
] | [
"import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt(), m = scanner.nextInt();\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int i2 = 0; i2 < m; i2++) {\n\t\t\t\tmatrix[i][i2] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tint number = scanner.nextInt();\n\n\t\t\tfor (int i2 = 0; i2 < n; i2++) {\n\t\t\t\tvector[i2] += matrix[i2][i] * number;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(vector[i]);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt(), m = scanner.nextInt();\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int i2 = 0; i2 < m; i2++) {\n\t\t\t\tmatrix[i][i2] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tint number = scanner.nextInt();\n\n\t\t\tfor (int i2 = 0; i2 < n; i2++) {\n\t\t\t\tvector[i2] += matrix[i2][i] * number;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(vector[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt(), m = scanner.nextInt();\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int i2 = 0; i2 < m; i2++) {\n\t\t\t\tmatrix[i][i2] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tint number = scanner.nextInt();\n\n\t\t\tfor (int i2 = 0; i2 < n; i2++) {\n\t\t\t\tvector[i2] += matrix[i2][i] * number;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(vector[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt(), m = scanner.nextInt();\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int i2 = 0; i2 < m; i2++) {\n\t\t\t\tmatrix[i][i2] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tint number = scanner.nextInt();\n\n\t\t\tfor (int i2 = 0; i2 < n; i2++) {\n\t\t\t\tvector[i2] += matrix[i2][i] * number;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(vector[i]);\n\t\t}\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = scanner.nextInt()",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"m = scanner.nextInt();",
"m",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int[][] matrix = new int[n][m];",
"matrix",
"new int[n][m]",
"n",
"m",
"int[] vector = new int[n];",
"vector",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int i2 = 0; i2 < m; i2++) {\n\t\t\t\tmatrix[i][i2] = scanner.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int i2 = 0; i2 < m; i2++) {\n\t\t\t\tmatrix[i][i2] = scanner.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int i2 = 0; i2 < m; i2++) {\n\t\t\t\tmatrix[i][i2] = scanner.nextInt();\n\t\t\t}\n\t\t}",
"for (int i2 = 0; i2 < m; i2++) {\n\t\t\t\tmatrix[i][i2] = scanner.nextInt();\n\t\t\t}",
"int i2 = 0;",
"int i2 = 0;",
"i2",
"0",
"i2 < m",
"i2",
"m",
"i2++",
"i2++",
"i2",
"{\n\t\t\t\tmatrix[i][i2] = scanner.nextInt();\n\t\t\t}",
"{\n\t\t\t\tmatrix[i][i2] = scanner.nextInt();\n\t\t\t}",
"matrix[i][i2] = scanner.nextInt()",
"matrix[i][i2]",
"matrix[i]",
"matrix",
"i",
"i2",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for (int i = 0; i < m; i++) {\n\t\t\tint number = scanner.nextInt();\n\n\t\t\tfor (int i2 = 0; i2 < n; i2++) {\n\t\t\t\tvector[i2] += matrix[i2][i] * number;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tint number = scanner.nextInt();\n\n\t\t\tfor (int i2 = 0; i2 < n; i2++) {\n\t\t\t\tvector[i2] += matrix[i2][i] * number;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint number = scanner.nextInt();\n\n\t\t\tfor (int i2 = 0; i2 < n; i2++) {\n\t\t\t\tvector[i2] += matrix[i2][i] * number;\n\t\t\t}\n\t\t}",
"int number = scanner.nextInt();",
"number",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for (int i2 = 0; i2 < n; i2++) {\n\t\t\t\tvector[i2] += matrix[i2][i] * number;\n\t\t\t}",
"int i2 = 0;",
"int i2 = 0;",
"i2",
"0",
"i2 < n",
"i2",
"n",
"i2++",
"i2++",
"i2",
"{\n\t\t\t\tvector[i2] += matrix[i2][i] * number;\n\t\t\t}",
"{\n\t\t\t\tvector[i2] += matrix[i2][i] * number;\n\t\t\t}",
"vector[i2] += matrix[i2][i] * number",
"vector[i2]",
"vector",
"i2",
"matrix[i2][i] * number",
"matrix[i2][i]",
"matrix[i2]",
"matrix",
"i2",
"i",
"number",
"for (int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(vector[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(vector[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(vector[i]);\n\t\t}",
"System.out.println(vector[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"vector[i]",
"vector",
"i",
"String[] args",
"args"
] | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt(), m = scanner.nextInt();
int[][] matrix = new int[n][m];
int[] vector = new int[n];
for (int i = 0; i < n; i++) {
for (int i2 = 0; i2 < m; i2++) {
matrix[i][i2] = scanner.nextInt();
}
}
for (int i = 0; i < m; i++) {
int number = scanner.nextInt();
for (int i2 = 0; i2 < n; i2++) {
vector[i2] += matrix[i2][i] * number;
}
}
for (int i = 0; i < n; i++) {
System.out.println(vector[i]);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
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,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
172,
11
],
[
172,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
20,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
31,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
14,
42
],
[
42,
43
],
[
42,
44
],
[
14,
47
],
[
47,
48
],
[
47,
49
],
[
14,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
50,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
65,
70
],
[
62,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
71,
82
],
[
83,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
84,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
93,
95
],
[
14,
96
],
[
96,
97
],
[
96,
98
],
[
14,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
100,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
120,
121
],
[
121,
122
],
[
14,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
123,
128
],
[
128,
129
],
[
128,
130
],
[
123,
131
],
[
131,
132
],
[
132,
133
],
[
123,
134
],
[
135,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
144,
145
],
[
144,
146
],
[
139,
147
],
[
147,
148
],
[
148,
149
],
[
139,
150
],
[
151,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
154,
160
],
[
160,
161
],
[
160,
162
],
[
135,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
12,
169
],
[
169,
170
],
[
0,
171
],
[
171,
172
],
[
171,
173
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n \n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n String[] inputRowAndCol = (input.readLine()).split(\"\\\\s\");\n int x = Integer.parseInt(inputRowAndCol[0]);\n int y = Integer.parseInt(inputRowAndCol[1]);\n\n \n int[][] a = new int[x][y];\n String[] b = null; \n \n for (int i = 0; i < x; i++) {\n \n b = (input.readLine()).split(\"\\\\s\");\n \n for (int j = 0; j < y; j++) {\n \n a[i][j] = Integer.parseInt(b[j]);\n }\n }\n \n int[] vectorB = new int[y];\n for (int k = 0; k < y; k++) {\n vectorB[k] = Integer.parseInt(input.readLine());\n }\n\n for (int l = 0; l < x; l++) {\n int result = 0; \n \n for (int m = 0; m < y; m++) {\n \n result += (a[l][m] * vectorB[m]);\n }\n \n System.out.println(result);\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n \n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n String[] inputRowAndCol = (input.readLine()).split(\"\\\\s\");\n int x = Integer.parseInt(inputRowAndCol[0]);\n int y = Integer.parseInt(inputRowAndCol[1]);\n\n \n int[][] a = new int[x][y];\n String[] b = null; \n \n for (int i = 0; i < x; i++) {\n \n b = (input.readLine()).split(\"\\\\s\");\n \n for (int j = 0; j < y; j++) {\n \n a[i][j] = Integer.parseInt(b[j]);\n }\n }\n \n int[] vectorB = new int[y];\n for (int k = 0; k < y; k++) {\n vectorB[k] = Integer.parseInt(input.readLine());\n }\n\n for (int l = 0; l < x; l++) {\n int result = 0; \n \n for (int m = 0; m < y; m++) {\n \n result += (a[l][m] * vectorB[m]);\n }\n \n System.out.println(result);\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n \n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n String[] inputRowAndCol = (input.readLine()).split(\"\\\\s\");\n int x = Integer.parseInt(inputRowAndCol[0]);\n int y = Integer.parseInt(inputRowAndCol[1]);\n\n \n int[][] a = new int[x][y];\n String[] b = null; \n \n for (int i = 0; i < x; i++) {\n \n b = (input.readLine()).split(\"\\\\s\");\n \n for (int j = 0; j < y; j++) {\n \n a[i][j] = Integer.parseInt(b[j]);\n }\n }\n \n int[] vectorB = new int[y];\n for (int k = 0; k < y; k++) {\n vectorB[k] = Integer.parseInt(input.readLine());\n }\n\n for (int l = 0; l < x; l++) {\n int result = 0; \n \n for (int m = 0; m < y; m++) {\n \n result += (a[l][m] * vectorB[m]);\n }\n \n System.out.println(result);\n }\n }",
"main",
"{\n \n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n String[] inputRowAndCol = (input.readLine()).split(\"\\\\s\");\n int x = Integer.parseInt(inputRowAndCol[0]);\n int y = Integer.parseInt(inputRowAndCol[1]);\n\n \n int[][] a = new int[x][y];\n String[] b = null; \n \n for (int i = 0; i < x; i++) {\n \n b = (input.readLine()).split(\"\\\\s\");\n \n for (int j = 0; j < y; j++) {\n \n a[i][j] = Integer.parseInt(b[j]);\n }\n }\n \n int[] vectorB = new int[y];\n for (int k = 0; k < y; k++) {\n vectorB[k] = Integer.parseInt(input.readLine());\n }\n\n for (int l = 0; l < x; l++) {\n int result = 0; \n \n for (int m = 0; m < y; m++) {\n \n result += (a[l][m] * vectorB[m]);\n }\n \n System.out.println(result);\n }\n }",
"BufferedReader input = new BufferedReader(new InputStreamReader(System.in));",
"input",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] inputRowAndCol = (input.readLine()).split(\"\\\\s\");",
"inputRowAndCol",
"(input.readLine()).split(\"\\\\s\")",
"(input.readLine()).split",
"(input.readLine())",
"input.readLine",
"input",
"\"\\\\s\"",
"int x = Integer.parseInt(inputRowAndCol[0]);",
"x",
"Integer.parseInt(inputRowAndCol[0])",
"Integer.parseInt",
"Integer",
"inputRowAndCol[0]",
"inputRowAndCol",
"0",
"int y = Integer.parseInt(inputRowAndCol[1]);",
"y",
"Integer.parseInt(inputRowAndCol[1])",
"Integer.parseInt",
"Integer",
"inputRowAndCol[1]",
"inputRowAndCol",
"1",
"int[][] a = new int[x][y];",
"a",
"new int[x][y]",
"x",
"y",
"String[] b = null;",
"b",
"null",
"for (int i = 0; i < x; i++) {\n \n b = (input.readLine()).split(\"\\\\s\");\n \n for (int j = 0; j < y; j++) {\n \n a[i][j] = Integer.parseInt(b[j]);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < x",
"i",
"x",
"i++",
"i++",
"i",
"{\n \n b = (input.readLine()).split(\"\\\\s\");\n \n for (int j = 0; j < y; j++) {\n \n a[i][j] = Integer.parseInt(b[j]);\n }\n }",
"{\n \n b = (input.readLine()).split(\"\\\\s\");\n \n for (int j = 0; j < y; j++) {\n \n a[i][j] = Integer.parseInt(b[j]);\n }\n }",
"b = (input.readLine()).split(\"\\\\s\")",
"b",
"(input.readLine()).split(\"\\\\s\")",
"(input.readLine()).split",
"(input.readLine())",
"input.readLine",
"input",
"\"\\\\s\"",
"for (int j = 0; j < y; j++) {\n \n a[i][j] = Integer.parseInt(b[j]);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < y",
"j",
"y",
"j++",
"j++",
"j",
"{\n \n a[i][j] = Integer.parseInt(b[j]);\n }",
"{\n \n a[i][j] = Integer.parseInt(b[j]);\n }",
"a[i][j] = Integer.parseInt(b[j])",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"Integer.parseInt(b[j])",
"Integer.parseInt",
"Integer",
"b[j]",
"b",
"j",
"int[] vectorB = new int[y];",
"vectorB",
"new int[y]",
"y",
"for (int k = 0; k < y; k++) {\n vectorB[k] = Integer.parseInt(input.readLine());\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < y",
"k",
"y",
"k++",
"k++",
"k",
"{\n vectorB[k] = Integer.parseInt(input.readLine());\n }",
"{\n vectorB[k] = Integer.parseInt(input.readLine());\n }",
"vectorB[k] = Integer.parseInt(input.readLine())",
"vectorB[k]",
"vectorB",
"k",
"Integer.parseInt(input.readLine())",
"Integer.parseInt",
"Integer",
"input.readLine()",
"input.readLine",
"input",
"for (int l = 0; l < x; l++) {\n int result = 0; \n \n for (int m = 0; m < y; m++) {\n \n result += (a[l][m] * vectorB[m]);\n }\n \n System.out.println(result);\n }",
"int l = 0;",
"int l = 0;",
"l",
"0",
"l < x",
"l",
"x",
"l++",
"l++",
"l",
"{\n int result = 0; \n \n for (int m = 0; m < y; m++) {\n \n result += (a[l][m] * vectorB[m]);\n }\n \n System.out.println(result);\n }",
"{\n int result = 0; \n \n for (int m = 0; m < y; m++) {\n \n result += (a[l][m] * vectorB[m]);\n }\n \n System.out.println(result);\n }",
"int result = 0;",
"result",
"0",
"for (int m = 0; m < y; m++) {\n \n result += (a[l][m] * vectorB[m]);\n }",
"int m = 0;",
"int m = 0;",
"m",
"0",
"m < y",
"m",
"y",
"m++",
"m++",
"m",
"{\n \n result += (a[l][m] * vectorB[m]);\n }",
"{\n \n result += (a[l][m] * vectorB[m]);\n }",
"result += (a[l][m] * vectorB[m])",
"result",
"(a[l][m] * vectorB[m])",
"a[l][m]",
"a[l]",
"a",
"l",
"m",
"vectorB[m]",
"vectorB",
"m",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n \n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n String[] inputRowAndCol = (input.readLine()).split(\"\\\\s\");\n int x = Integer.parseInt(inputRowAndCol[0]);\n int y = Integer.parseInt(inputRowAndCol[1]);\n\n \n int[][] a = new int[x][y];\n String[] b = null; \n \n for (int i = 0; i < x; i++) {\n \n b = (input.readLine()).split(\"\\\\s\");\n \n for (int j = 0; j < y; j++) {\n \n a[i][j] = Integer.parseInt(b[j]);\n }\n }\n \n int[] vectorB = new int[y];\n for (int k = 0; k < y; k++) {\n vectorB[k] = Integer.parseInt(input.readLine());\n }\n\n for (int l = 0; l < x; l++) {\n int result = 0; \n \n for (int m = 0; m < y; m++) {\n \n result += (a[l][m] * vectorB[m]);\n }\n \n System.out.println(result);\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n \n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n String[] inputRowAndCol = (input.readLine()).split(\"\\\\s\");\n int x = Integer.parseInt(inputRowAndCol[0]);\n int y = Integer.parseInt(inputRowAndCol[1]);\n\n \n int[][] a = new int[x][y];\n String[] b = null; \n \n for (int i = 0; i < x; i++) {\n \n b = (input.readLine()).split(\"\\\\s\");\n \n for (int j = 0; j < y; j++) {\n \n a[i][j] = Integer.parseInt(b[j]);\n }\n }\n \n int[] vectorB = new int[y];\n for (int k = 0; k < y; k++) {\n vectorB[k] = Integer.parseInt(input.readLine());\n }\n\n for (int l = 0; l < x; l++) {\n int result = 0; \n \n for (int m = 0; m < y; m++) {\n \n result += (a[l][m] * vectorB[m]);\n }\n \n System.out.println(result);\n }\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
String[] inputRowAndCol = (input.readLine()).split("\\s");
int x = Integer.parseInt(inputRowAndCol[0]);
int y = Integer.parseInt(inputRowAndCol[1]);
int[][] a = new int[x][y];
String[] b = null;
for (int i = 0; i < x; i++) {
b = (input.readLine()).split("\\s");
for (int j = 0; j < y; j++) {
a[i][j] = Integer.parseInt(b[j]);
}
}
int[] vectorB = new int[y];
for (int k = 0; k < y; k++) {
vectorB[k] = Integer.parseInt(input.readLine());
}
for (int l = 0; l < x; l++) {
int result = 0;
for (int m = 0; m < y; m++) {
result += (a[l][m] * vectorB[m]);
}
System.out.println(result);
}
}
}
|
[
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,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
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
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
50,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
63,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
73,
74
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
75,
83
],
[
83,
84
],
[
84,
85
],
[
75,
86
],
[
87,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
95,
96
],
[
96,
97
],
[
8,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
103,
104
],
[
103,
105
],
[
98,
106
],
[
106,
107
],
[
107,
108
],
[
98,
109
],
[
110,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
119,
120
],
[
119,
121
],
[
114,
122
],
[
122,
123
],
[
123,
124
],
[
114,
125
],
[
126,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
129,
135
],
[
135,
136
],
[
135,
137
],
[
110,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
6,
144
],
[
144,
145
],
[
0,
146
],
[
146,
147
],
[
146,
148
]
] | [
"import java.util.*;\npublic class Main{\n\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n\n //入力\n int n = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n \n int[][] a = new int[n][m];\n int[] b = new int[m];\n \n for(int i=0; i<n; i++){\n for(int j=0; j<m; j++){\n a[i][j] = Integer.parseInt(sc.next());\n }\n }\n for(int i=0; i<m; i++){\n b[i] = Integer.parseInt(sc.next());\n }\n \n //出力\n for(int i=0; i<n; i++){\n int sum = 0;\n for(int j=0; j<m; j++){\n sum += a[i][j] * b[j];\n }\n System.out.println(sum);\n }\n }\n}\n",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n\n //入力\n int n = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n \n int[][] a = new int[n][m];\n int[] b = new int[m];\n \n for(int i=0; i<n; i++){\n for(int j=0; j<m; j++){\n a[i][j] = Integer.parseInt(sc.next());\n }\n }\n for(int i=0; i<m; i++){\n b[i] = Integer.parseInt(sc.next());\n }\n \n //出力\n for(int i=0; i<n; i++){\n int sum = 0;\n for(int j=0; j<m; j++){\n sum += a[i][j] * b[j];\n }\n System.out.println(sum);\n }\n }\n}",
"Main",
"public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n\n //入力\n int n = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n \n int[][] a = new int[n][m];\n int[] b = new int[m];\n \n for(int i=0; i<n; i++){\n for(int j=0; j<m; j++){\n a[i][j] = Integer.parseInt(sc.next());\n }\n }\n for(int i=0; i<m; i++){\n b[i] = Integer.parseInt(sc.next());\n }\n \n //出力\n for(int i=0; i<n; i++){\n int sum = 0;\n for(int j=0; j<m; j++){\n sum += a[i][j] * b[j];\n }\n System.out.println(sum);\n }\n }",
"main",
"{\n\n Scanner sc = new Scanner(System.in);\n\n //入力\n int n = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n \n int[][] a = new int[n][m];\n int[] b = new int[m];\n \n for(int i=0; i<n; i++){\n for(int j=0; j<m; j++){\n a[i][j] = Integer.parseInt(sc.next());\n }\n }\n for(int i=0; i<m; i++){\n b[i] = Integer.parseInt(sc.next());\n }\n \n //出力\n for(int i=0; i<n; i++){\n int sum = 0;\n for(int j=0; j<m; j++){\n sum += a[i][j] * b[j];\n }\n System.out.println(sum);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.next());",
"n",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int m = Integer.parseInt(sc.next());",
"m",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int[][] a = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[] b = new int[m];",
"b",
"new int[m]",
"m",
"for(int i=0; i<n; i++){\n for(int j=0; j<m; j++){\n a[i][j] = Integer.parseInt(sc.next());\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j=0; j<m; j++){\n a[i][j] = Integer.parseInt(sc.next());\n }\n }",
"{\n for(int j=0; j<m; j++){\n a[i][j] = Integer.parseInt(sc.next());\n }\n }",
"for(int j=0; j<m; j++){\n a[i][j] = Integer.parseInt(sc.next());\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n a[i][j] = Integer.parseInt(sc.next());\n }",
"{\n a[i][j] = Integer.parseInt(sc.next());\n }",
"a[i][j] = Integer.parseInt(sc.next())",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"for(int i=0; i<m; i++){\n b[i] = Integer.parseInt(sc.next());\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n b[i] = Integer.parseInt(sc.next());\n }",
"{\n b[i] = Integer.parseInt(sc.next());\n }",
"b[i] = Integer.parseInt(sc.next())",
"b[i]",
"b",
"i",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"for(int i=0; i<n; i++){\n int sum = 0;\n for(int j=0; j<m; j++){\n sum += a[i][j] * b[j];\n }\n System.out.println(sum);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int sum = 0;\n for(int j=0; j<m; j++){\n sum += a[i][j] * b[j];\n }\n System.out.println(sum);\n }",
"{\n int sum = 0;\n for(int j=0; j<m; j++){\n sum += a[i][j] * b[j];\n }\n System.out.println(sum);\n }",
"int sum = 0;",
"sum",
"0",
"for(int j=0; j<m; j++){\n sum += a[i][j] * b[j];\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n sum += a[i][j] * b[j];\n }",
"{\n sum += a[i][j] * b[j];\n }",
"sum += a[i][j] * b[j]",
"sum",
"a[i][j] * b[j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main{\n\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n\n //入力\n int n = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n \n int[][] a = new int[n][m];\n int[] b = new int[m];\n \n for(int i=0; i<n; i++){\n for(int j=0; j<m; j++){\n a[i][j] = Integer.parseInt(sc.next());\n }\n }\n for(int i=0; i<m; i++){\n b[i] = Integer.parseInt(sc.next());\n }\n \n //出力\n for(int i=0; i<n; i++){\n int sum = 0;\n for(int j=0; j<m; j++){\n sum += a[i][j] * b[j];\n }\n System.out.println(sum);\n }\n }\n}",
"public class Main{\n\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n\n //入力\n int n = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n \n int[][] a = new int[n][m];\n int[] b = new int[m];\n \n for(int i=0; i<n; i++){\n for(int j=0; j<m; j++){\n a[i][j] = Integer.parseInt(sc.next());\n }\n }\n for(int i=0; i<m; i++){\n b[i] = Integer.parseInt(sc.next());\n }\n \n //出力\n for(int i=0; i<n; i++){\n int sum = 0;\n for(int j=0; j<m; j++){\n sum += a[i][j] * b[j];\n }\n System.out.println(sum);\n }\n }\n}",
"Main"
] | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
//入力
int n = Integer.parseInt(sc.next());
int m = Integer.parseInt(sc.next());
int[][] a = new int[n][m];
int[] b = new int[m];
for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
a[i][j] = Integer.parseInt(sc.next());
}
}
for(int i=0; i<m; i++){
b[i] = Integer.parseInt(sc.next());
}
//出力
for(int i=0; i<n; i++){
int sum = 0;
for(int j=0; j<m; j++){
sum += a[i][j] * b[j];
}
System.out.println(sum);
}
}
}
|
[
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,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
144,
5
],
[
144,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
8,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
86,
94
],
[
94,
95
],
[
95,
96
],
[
86,
97
],
[
98,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
110,
111
],
[
111,
112
],
[
102,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
117,
123
],
[
123,
124
],
[
123,
125
],
[
98,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
144,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
139,
140
],
[
132,
141
],
[
141,
142
],
[
0,
143
],
[
143,
144
],
[
143,
145
]
] | [
"import java.util.Scanner;\npublic class Main {\n\tvoid execute(){\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint m = s.nextInt();\n\t\tint a[][] = new int[n][m];\n\t\tint b[] = new int[m];\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\ta[i][j] = s.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tb[i] = s.nextInt();\n\t\t}\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tint ans = 0;\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\tans+=a[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n\tpublic static void main(String args[]){\n\t\tMain m = new Main();\n\t\tm.execute();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tvoid execute(){\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint m = s.nextInt();\n\t\tint a[][] = new int[n][m];\n\t\tint b[] = new int[m];\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\ta[i][j] = s.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tb[i] = s.nextInt();\n\t\t}\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tint ans = 0;\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\tans+=a[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n\tpublic static void main(String args[]){\n\t\tMain m = new Main();\n\t\tm.execute();\n\t}\n}",
"Main",
"void execute(){\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint m = s.nextInt();\n\t\tint a[][] = new int[n][m];\n\t\tint b[] = new int[m];\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\ta[i][j] = s.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tb[i] = s.nextInt();\n\t\t}\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tint ans = 0;\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\tans+=a[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}",
"execute",
"{\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint m = s.nextInt();\n\t\tint a[][] = new int[n][m];\n\t\tint b[] = new int[m];\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\ta[i][j] = s.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tb[i] = s.nextInt();\n\t\t}\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tint ans = 0;\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\tans+=a[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int n = s.nextInt();",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"int m = s.nextInt();",
"m",
"s.nextInt()",
"s.nextInt",
"s",
"int a[][] = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int b[] = new int[m];",
"b",
"new int[m]",
"m",
"for(int i = 0;i < n;i++){\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\ta[i][j] = s.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\ta[i][j] = s.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\ta[i][j] = s.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0;j < m;j++){\n\t\t\t\ta[i][j] = s.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\ta[i][j] = s.nextInt();\n\t\t\t}",
"{\n\t\t\t\ta[i][j] = s.nextInt();\n\t\t\t}",
"a[i][j] = s.nextInt()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"s.nextInt()",
"s.nextInt",
"s",
"for(int i = 0;i < m;i++){\n\t\t\tb[i] = s.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tb[i] = s.nextInt();\n\t\t}",
"{\n\t\t\tb[i] = s.nextInt();\n\t\t}",
"b[i] = s.nextInt()",
"b[i]",
"b",
"i",
"s.nextInt()",
"s.nextInt",
"s",
"for(int i = 0;i < n;i++){\n\t\t\tint ans = 0;\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\tans+=a[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint ans = 0;\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\tans+=a[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}",
"{\n\t\t\tint ans = 0;\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\tans+=a[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}",
"int ans = 0;",
"ans",
"0",
"for(int j = 0;j < m;j++){\n\t\t\t\tans+=a[i][j]*b[j];\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tans+=a[i][j]*b[j];\n\t\t\t}",
"{\n\t\t\t\tans+=a[i][j]*b[j];\n\t\t\t}",
"ans+=a[i][j]*b[j]",
"ans",
"a[i][j]*b[j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"public static void main(String args[]){\n\t\tMain m = new Main();\n\t\tm.execute();\n\t}",
"main",
"{\n\t\tMain m = new Main();\n\t\tm.execute();\n\t}",
"Main m = new Main();",
"m",
"new Main()",
"m.execute()",
"m.execute",
"m",
"String args[]",
"args",
"public class Main {\n\tvoid execute(){\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint m = s.nextInt();\n\t\tint a[][] = new int[n][m];\n\t\tint b[] = new int[m];\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\ta[i][j] = s.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tb[i] = s.nextInt();\n\t\t}\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tint ans = 0;\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\tans+=a[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n\tpublic static void main(String args[]){\n\t\tMain m = new Main();\n\t\tm.execute();\n\t}\n}",
"public class Main {\n\tvoid execute(){\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint m = s.nextInt();\n\t\tint a[][] = new int[n][m];\n\t\tint b[] = new int[m];\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\ta[i][j] = s.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tb[i] = s.nextInt();\n\t\t}\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tint ans = 0;\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\tans+=a[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n\tpublic static void main(String args[]){\n\t\tMain m = new Main();\n\t\tm.execute();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
void execute(){
Scanner s = new Scanner(System.in);
int n = s.nextInt();
int m = s.nextInt();
int a[][] = new int[n][m];
int b[] = new int[m];
for(int i = 0;i < n;i++){
for(int j = 0;j < m;j++){
a[i][j] = s.nextInt();
}
}
for(int i = 0;i < m;i++){
b[i] = s.nextInt();
}
for(int i = 0;i < n;i++){
int ans = 0;
for(int j = 0;j < m;j++){
ans+=a[i][j]*b[j];
}
System.out.println(ans);
}
}
public static void main(String args[]){
Main m = new Main();
m.execute();
}
} |
[
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,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
156,
5
],
[
156,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
90,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
103,
111
],
[
111,
112
],
[
112,
113
],
[
103,
114
],
[
115,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
120,
126
],
[
126,
127
],
[
126,
128
],
[
8,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
129,
137
],
[
137,
138
],
[
138,
139
],
[
129,
140
],
[
141,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
142,
147
],
[
147,
148
],
[
147,
149
],
[
8,
150
],
[
150,
151
],
[
151,
152
],
[
6,
153
],
[
153,
154
],
[
0,
155
],
[
155,
156
],
[
155,
157
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n\n\n public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();//n??????????????????\n\t\tint m = scan.nextInt();//m?????????????¨????\n\t\t\n\t\tint retu[][] = new int[n][m];//??????\n\t\tint beku_b[] = new int[m];//???????????????B\n\t\tint beku_c[] = new int[n];//???????????????C\n\t\t\n\t\t//?????????????????????????´?\n\t\tfor (int cnt_n = 0; cnt_n < n; cnt_n++){\n\t\t\tfor (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\t\tretu[cnt_n][cnt_m] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t//???????????????B???????????????????´?\n\t\tfor (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\tbeku_b[cnt_m] = scan.nextInt();\n\t\t}\n\t\t\n\t\t//???????????????C????¨??????¨????´?\n\t\tfor (int cnt_n = 0; cnt_n < n; cnt_n++){\n\t\t\tfor (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\t\tbeku_c[cnt_n] += retu[cnt_n][cnt_m] * beku_b[cnt_m];\n\t\t\t}\n\t\t}\n\n\t\t//????????????\n\t\tfor (int cnt_c = 0; cnt_c < n; cnt_c++){\n\t\t\t\t\tSystem.out.println(beku_c[cnt_c]);\n\t\t\t}\n\t\tscan.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n\n public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();//n??????????????????\n\t\tint m = scan.nextInt();//m?????????????¨????\n\t\t\n\t\tint retu[][] = new int[n][m];//??????\n\t\tint beku_b[] = new int[m];//???????????????B\n\t\tint beku_c[] = new int[n];//???????????????C\n\t\t\n\t\t//?????????????????????????´?\n\t\tfor (int cnt_n = 0; cnt_n < n; cnt_n++){\n\t\t\tfor (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\t\tretu[cnt_n][cnt_m] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t//???????????????B???????????????????´?\n\t\tfor (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\tbeku_b[cnt_m] = scan.nextInt();\n\t\t}\n\t\t\n\t\t//???????????????C????¨??????¨????´?\n\t\tfor (int cnt_n = 0; cnt_n < n; cnt_n++){\n\t\t\tfor (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\t\tbeku_c[cnt_n] += retu[cnt_n][cnt_m] * beku_b[cnt_m];\n\t\t\t}\n\t\t}\n\n\t\t//????????????\n\t\tfor (int cnt_c = 0; cnt_c < n; cnt_c++){\n\t\t\t\t\tSystem.out.println(beku_c[cnt_c]);\n\t\t\t}\n\t\tscan.close();\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();//n??????????????????\n\t\tint m = scan.nextInt();//m?????????????¨????\n\t\t\n\t\tint retu[][] = new int[n][m];//??????\n\t\tint beku_b[] = new int[m];//???????????????B\n\t\tint beku_c[] = new int[n];//???????????????C\n\t\t\n\t\t//?????????????????????????´?\n\t\tfor (int cnt_n = 0; cnt_n < n; cnt_n++){\n\t\t\tfor (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\t\tretu[cnt_n][cnt_m] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t//???????????????B???????????????????´?\n\t\tfor (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\tbeku_b[cnt_m] = scan.nextInt();\n\t\t}\n\t\t\n\t\t//???????????????C????¨??????¨????´?\n\t\tfor (int cnt_n = 0; cnt_n < n; cnt_n++){\n\t\t\tfor (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\t\tbeku_c[cnt_n] += retu[cnt_n][cnt_m] * beku_b[cnt_m];\n\t\t\t}\n\t\t}\n\n\t\t//????????????\n\t\tfor (int cnt_c = 0; cnt_c < n; cnt_c++){\n\t\t\t\t\tSystem.out.println(beku_c[cnt_c]);\n\t\t\t}\n\t\tscan.close();\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();//n??????????????????\n\t\tint m = scan.nextInt();//m?????????????¨????\n\t\t\n\t\tint retu[][] = new int[n][m];//??????\n\t\tint beku_b[] = new int[m];//???????????????B\n\t\tint beku_c[] = new int[n];//???????????????C\n\t\t\n\t\t//?????????????????????????´?\n\t\tfor (int cnt_n = 0; cnt_n < n; cnt_n++){\n\t\t\tfor (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\t\tretu[cnt_n][cnt_m] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t//???????????????B???????????????????´?\n\t\tfor (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\tbeku_b[cnt_m] = scan.nextInt();\n\t\t}\n\t\t\n\t\t//???????????????C????¨??????¨????´?\n\t\tfor (int cnt_n = 0; cnt_n < n; cnt_n++){\n\t\t\tfor (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\t\tbeku_c[cnt_n] += retu[cnt_n][cnt_m] * beku_b[cnt_m];\n\t\t\t}\n\t\t}\n\n\t\t//????????????\n\t\tfor (int cnt_c = 0; cnt_c < n; cnt_c++){\n\t\t\t\t\tSystem.out.println(beku_c[cnt_c]);\n\t\t\t}\n\t\tscan.close();\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int retu[][] = new int[n][m];",
"retu",
"new int[n][m]",
"n",
"m",
"int beku_b[] = new int[m];",
"beku_b",
"new int[m]",
"m",
"int beku_c[] = new int[n];",
"beku_c",
"new int[n]",
"n",
"for (int cnt_n = 0; cnt_n < n; cnt_n++){\n\t\t\tfor (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\t\tretu[cnt_n][cnt_m] = scan.nextInt();\n\t\t\t}\n\t\t}",
"int cnt_n = 0;",
"int cnt_n = 0;",
"cnt_n",
"0",
"cnt_n < n",
"cnt_n",
"n",
"cnt_n++",
"cnt_n++",
"cnt_n",
"{\n\t\t\tfor (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\t\tretu[cnt_n][cnt_m] = scan.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\t\tretu[cnt_n][cnt_m] = scan.nextInt();\n\t\t\t}\n\t\t}",
"for (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\t\tretu[cnt_n][cnt_m] = scan.nextInt();\n\t\t\t}",
"int cnt_m = 0;",
"int cnt_m = 0;",
"cnt_m",
"0",
"cnt_m < m",
"cnt_m",
"m",
"cnt_m++",
"cnt_m++",
"cnt_m",
"{\n\t\t\t\tretu[cnt_n][cnt_m] = scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\tretu[cnt_n][cnt_m] = scan.nextInt();\n\t\t\t}",
"retu[cnt_n][cnt_m] = scan.nextInt()",
"retu[cnt_n][cnt_m]",
"retu[cnt_n]",
"retu",
"cnt_n",
"cnt_m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\tbeku_b[cnt_m] = scan.nextInt();\n\t\t}",
"int cnt_m = 0;",
"int cnt_m = 0;",
"cnt_m",
"0",
"cnt_m < m",
"cnt_m",
"m",
"cnt_m++",
"cnt_m++",
"cnt_m",
"{\n\t\t\tbeku_b[cnt_m] = scan.nextInt();\n\t\t}",
"{\n\t\t\tbeku_b[cnt_m] = scan.nextInt();\n\t\t}",
"beku_b[cnt_m] = scan.nextInt()",
"beku_b[cnt_m]",
"beku_b",
"cnt_m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int cnt_n = 0; cnt_n < n; cnt_n++){\n\t\t\tfor (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\t\tbeku_c[cnt_n] += retu[cnt_n][cnt_m] * beku_b[cnt_m];\n\t\t\t}\n\t\t}",
"int cnt_n = 0;",
"int cnt_n = 0;",
"cnt_n",
"0",
"cnt_n < n",
"cnt_n",
"n",
"cnt_n++",
"cnt_n++",
"cnt_n",
"{\n\t\t\tfor (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\t\tbeku_c[cnt_n] += retu[cnt_n][cnt_m] * beku_b[cnt_m];\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\t\tbeku_c[cnt_n] += retu[cnt_n][cnt_m] * beku_b[cnt_m];\n\t\t\t}\n\t\t}",
"for (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\t\tbeku_c[cnt_n] += retu[cnt_n][cnt_m] * beku_b[cnt_m];\n\t\t\t}",
"int cnt_m = 0;",
"int cnt_m = 0;",
"cnt_m",
"0",
"cnt_m < m",
"cnt_m",
"m",
"cnt_m++",
"cnt_m++",
"cnt_m",
"{\n\t\t\t\tbeku_c[cnt_n] += retu[cnt_n][cnt_m] * beku_b[cnt_m];\n\t\t\t}",
"{\n\t\t\t\tbeku_c[cnt_n] += retu[cnt_n][cnt_m] * beku_b[cnt_m];\n\t\t\t}",
"beku_c[cnt_n] += retu[cnt_n][cnt_m] * beku_b[cnt_m]",
"beku_c[cnt_n]",
"beku_c",
"cnt_n",
"retu[cnt_n][cnt_m] * beku_b[cnt_m]",
"retu[cnt_n][cnt_m]",
"retu[cnt_n]",
"retu",
"cnt_n",
"cnt_m",
"beku_b[cnt_m]",
"beku_b",
"cnt_m",
"for (int cnt_c = 0; cnt_c < n; cnt_c++){\n\t\t\t\t\tSystem.out.println(beku_c[cnt_c]);\n\t\t\t}",
"int cnt_c = 0;",
"int cnt_c = 0;",
"cnt_c",
"0",
"cnt_c < n",
"cnt_c",
"n",
"cnt_c++",
"cnt_c++",
"cnt_c",
"{\n\t\t\t\t\tSystem.out.println(beku_c[cnt_c]);\n\t\t\t}",
"{\n\t\t\t\t\tSystem.out.println(beku_c[cnt_c]);\n\t\t\t}",
"System.out.println(beku_c[cnt_c])",
"System.out.println",
"System.out",
"System",
"System.out",
"beku_c[cnt_c]",
"beku_c",
"cnt_c",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main{\n\n\n public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();//n??????????????????\n\t\tint m = scan.nextInt();//m?????????????¨????\n\t\t\n\t\tint retu[][] = new int[n][m];//??????\n\t\tint beku_b[] = new int[m];//???????????????B\n\t\tint beku_c[] = new int[n];//???????????????C\n\t\t\n\t\t//?????????????????????????´?\n\t\tfor (int cnt_n = 0; cnt_n < n; cnt_n++){\n\t\t\tfor (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\t\tretu[cnt_n][cnt_m] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t//???????????????B???????????????????´?\n\t\tfor (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\tbeku_b[cnt_m] = scan.nextInt();\n\t\t}\n\t\t\n\t\t//???????????????C????¨??????¨????´?\n\t\tfor (int cnt_n = 0; cnt_n < n; cnt_n++){\n\t\t\tfor (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\t\tbeku_c[cnt_n] += retu[cnt_n][cnt_m] * beku_b[cnt_m];\n\t\t\t}\n\t\t}\n\n\t\t//????????????\n\t\tfor (int cnt_c = 0; cnt_c < n; cnt_c++){\n\t\t\t\t\tSystem.out.println(beku_c[cnt_c]);\n\t\t\t}\n\t\tscan.close();\n\t}\n}",
"public class Main{\n\n\n public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();//n??????????????????\n\t\tint m = scan.nextInt();//m?????????????¨????\n\t\t\n\t\tint retu[][] = new int[n][m];//??????\n\t\tint beku_b[] = new int[m];//???????????????B\n\t\tint beku_c[] = new int[n];//???????????????C\n\t\t\n\t\t//?????????????????????????´?\n\t\tfor (int cnt_n = 0; cnt_n < n; cnt_n++){\n\t\t\tfor (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\t\tretu[cnt_n][cnt_m] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t//???????????????B???????????????????´?\n\t\tfor (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\tbeku_b[cnt_m] = scan.nextInt();\n\t\t}\n\t\t\n\t\t//???????????????C????¨??????¨????´?\n\t\tfor (int cnt_n = 0; cnt_n < n; cnt_n++){\n\t\t\tfor (int cnt_m = 0; cnt_m < m; cnt_m++) {\n\t\t\t\tbeku_c[cnt_n] += retu[cnt_n][cnt_m] * beku_b[cnt_m];\n\t\t\t}\n\t\t}\n\n\t\t//????????????\n\t\tfor (int cnt_c = 0; cnt_c < n; cnt_c++){\n\t\t\t\t\tSystem.out.println(beku_c[cnt_c]);\n\t\t\t}\n\t\tscan.close();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();//n??????????????????
int m = scan.nextInt();//m?????????????¨????
int retu[][] = new int[n][m];//??????
int beku_b[] = new int[m];//???????????????B
int beku_c[] = new int[n];//???????????????C
//?????????????????????????´?
for (int cnt_n = 0; cnt_n < n; cnt_n++){
for (int cnt_m = 0; cnt_m < m; cnt_m++) {
retu[cnt_n][cnt_m] = scan.nextInt();
}
}
//???????????????B???????????????????´?
for (int cnt_m = 0; cnt_m < m; cnt_m++) {
beku_b[cnt_m] = scan.nextInt();
}
//???????????????C????¨??????¨????´?
for (int cnt_n = 0; cnt_n < n; cnt_n++){
for (int cnt_m = 0; cnt_m < m; cnt_m++) {
beku_c[cnt_n] += retu[cnt_n][cnt_m] * beku_b[cnt_m];
}
}
//????????????
for (int cnt_c = 0; cnt_c < n; cnt_c++){
System.out.println(beku_c[cnt_c]);
}
scan.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
18,
13,
13,
0,
18,
18,
13,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
0,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
9,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
13,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
19,
24
],
[
13,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
30,
31
],
[
30,
32
],
[
13,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
38,
39
],
[
38,
40
],
[
13,
41
],
[
41,
42
],
[
41,
43
],
[
13,
46
],
[
46,
47
],
[
46,
48
],
[
13,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
50,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
65,
70
],
[
62,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
71,
82
],
[
83,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
89,
90
],
[
89,
91
],
[
83,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
92,
98
],
[
13,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
99,
110
],
[
111,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
117,
118
],
[
118,
119
],
[
111,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
13,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
125,
136
],
[
137,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
141,
146
],
[
146,
147
],
[
146,
148
],
[
141,
149
],
[
149,
150
],
[
150,
151
],
[
141,
152
],
[
153,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
156,
162
],
[
162,
163
],
[
162,
164
],
[
137,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
165,
170
],
[
6,
171
],
[
171,
172
]
] | [
"import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args){\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tint a1 = Integer.parseInt(line[0]);\n\t\t\tint a2 = Integer.parseInt(line[1]);\n\t\t\tint[][] n = new int [a1][a2];\n\t\t\tint[] b = new int[a2];\n\n\t\t\t\n\t\t\tfor(int i = 0;i < a1;i++){\n\t\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\t\tfor(int j = 0;j < a2;j++){\n\t\t\t\t\tint f = Integer.parseInt(str[j]);\n\t\t\t\t\tn[i][j] += f;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0;i < a2;i++){\n\t\t\t\tint f = Integer.parseInt(br.readLine());\n\t\t\t\tb[i] += f;\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0;i < a1;i++){\n\t\t\t\tint matrix = 0;\n\t\t\t\tfor(int j = 0;j < a2;j++){\n\t\t\t\tmatrix += n[i][j]*b[j];\n\t\t\t\t}\n\t\t\tSystem.out.println(matrix);\t\n\t\t\t}\n\t\t} catch(Exception e){\n\t\t}\n\t}\n}\n\t\t\t\t \n\t\t\t",
"import java.io.*;",
"io.*",
"java",
"class Main {\n\tpublic static void main(String[] args){\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tint a1 = Integer.parseInt(line[0]);\n\t\t\tint a2 = Integer.parseInt(line[1]);\n\t\t\tint[][] n = new int [a1][a2];\n\t\t\tint[] b = new int[a2];\n\n\t\t\t\n\t\t\tfor(int i = 0;i < a1;i++){\n\t\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\t\tfor(int j = 0;j < a2;j++){\n\t\t\t\t\tint f = Integer.parseInt(str[j]);\n\t\t\t\t\tn[i][j] += f;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0;i < a2;i++){\n\t\t\t\tint f = Integer.parseInt(br.readLine());\n\t\t\t\tb[i] += f;\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0;i < a1;i++){\n\t\t\t\tint matrix = 0;\n\t\t\t\tfor(int j = 0;j < a2;j++){\n\t\t\t\tmatrix += n[i][j]*b[j];\n\t\t\t\t}\n\t\t\tSystem.out.println(matrix);\t\n\t\t\t}\n\t\t} catch(Exception e){\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tint a1 = Integer.parseInt(line[0]);\n\t\t\tint a2 = Integer.parseInt(line[1]);\n\t\t\tint[][] n = new int [a1][a2];\n\t\t\tint[] b = new int[a2];\n\n\t\t\t\n\t\t\tfor(int i = 0;i < a1;i++){\n\t\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\t\tfor(int j = 0;j < a2;j++){\n\t\t\t\t\tint f = Integer.parseInt(str[j]);\n\t\t\t\t\tn[i][j] += f;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0;i < a2;i++){\n\t\t\t\tint f = Integer.parseInt(br.readLine());\n\t\t\t\tb[i] += f;\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0;i < a1;i++){\n\t\t\t\tint matrix = 0;\n\t\t\t\tfor(int j = 0;j < a2;j++){\n\t\t\t\tmatrix += n[i][j]*b[j];\n\t\t\t\t}\n\t\t\tSystem.out.println(matrix);\t\n\t\t\t}\n\t\t} catch(Exception e){\n\t\t}\n\t}",
"main",
"{\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tint a1 = Integer.parseInt(line[0]);\n\t\t\tint a2 = Integer.parseInt(line[1]);\n\t\t\tint[][] n = new int [a1][a2];\n\t\t\tint[] b = new int[a2];\n\n\t\t\t\n\t\t\tfor(int i = 0;i < a1;i++){\n\t\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\t\tfor(int j = 0;j < a2;j++){\n\t\t\t\t\tint f = Integer.parseInt(str[j]);\n\t\t\t\t\tn[i][j] += f;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0;i < a2;i++){\n\t\t\t\tint f = Integer.parseInt(br.readLine());\n\t\t\t\tb[i] += f;\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0;i < a1;i++){\n\t\t\t\tint matrix = 0;\n\t\t\t\tfor(int j = 0;j < a2;j++){\n\t\t\t\tmatrix += n[i][j]*b[j];\n\t\t\t\t}\n\t\t\tSystem.out.println(matrix);\t\n\t\t\t}\n\t\t} catch(Exception e){\n\t\t}\n\t}",
"try{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tint a1 = Integer.parseInt(line[0]);\n\t\t\tint a2 = Integer.parseInt(line[1]);\n\t\t\tint[][] n = new int [a1][a2];\n\t\t\tint[] b = new int[a2];\n\n\t\t\t\n\t\t\tfor(int i = 0;i < a1;i++){\n\t\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\t\tfor(int j = 0;j < a2;j++){\n\t\t\t\t\tint f = Integer.parseInt(str[j]);\n\t\t\t\t\tn[i][j] += f;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0;i < a2;i++){\n\t\t\t\tint f = Integer.parseInt(br.readLine());\n\t\t\t\tb[i] += f;\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0;i < a1;i++){\n\t\t\t\tint matrix = 0;\n\t\t\t\tfor(int j = 0;j < a2;j++){\n\t\t\t\tmatrix += n[i][j]*b[j];\n\t\t\t\t}\n\t\t\tSystem.out.println(matrix);\t\n\t\t\t}\n\t\t} catch(Exception e){\n\t\t}",
"catch(Exception e){\n\t\t}",
"Exception e",
"{\n\t\t}",
"{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tint a1 = Integer.parseInt(line[0]);\n\t\t\tint a2 = Integer.parseInt(line[1]);\n\t\t\tint[][] n = new int [a1][a2];\n\t\t\tint[] b = new int[a2];\n\n\t\t\t\n\t\t\tfor(int i = 0;i < a1;i++){\n\t\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\t\tfor(int j = 0;j < a2;j++){\n\t\t\t\t\tint f = Integer.parseInt(str[j]);\n\t\t\t\t\tn[i][j] += f;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0;i < a2;i++){\n\t\t\t\tint f = Integer.parseInt(br.readLine());\n\t\t\t\tb[i] += f;\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0;i < a1;i++){\n\t\t\t\tint matrix = 0;\n\t\t\t\tfor(int j = 0;j < a2;j++){\n\t\t\t\tmatrix += n[i][j]*b[j];\n\t\t\t\t}\n\t\t\tSystem.out.println(matrix);\t\n\t\t\t}\n\t\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] line = br.readLine().split(\" \");",
"line",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int a1 = Integer.parseInt(line[0]);",
"a1",
"Integer.parseInt(line[0])",
"Integer.parseInt",
"Integer",
"line[0]",
"line",
"0",
"int a2 = Integer.parseInt(line[1]);",
"a2",
"Integer.parseInt(line[1])",
"Integer.parseInt",
"Integer",
"line[1]",
"line",
"1",
"int[][] n = new int [a1][a2];",
"n",
"new int [a1][a2]",
"a1",
"a2",
"int[] b = new int[a2];",
"b",
"new int[a2]",
"a2",
"for(int i = 0;i < a1;i++){\n\t\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\t\tfor(int j = 0;j < a2;j++){\n\t\t\t\t\tint f = Integer.parseInt(str[j]);\n\t\t\t\t\tn[i][j] += f;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a1",
"i",
"a1",
"i++",
"i++",
"i",
"{\n\t\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\t\tfor(int j = 0;j < a2;j++){\n\t\t\t\t\tint f = Integer.parseInt(str[j]);\n\t\t\t\t\tn[i][j] += f;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\t\tfor(int j = 0;j < a2;j++){\n\t\t\t\t\tint f = Integer.parseInt(str[j]);\n\t\t\t\t\tn[i][j] += f;\n\t\t\t\t}\n\t\t\t}",
"String[] str = br.readLine().split(\" \");",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(int j = 0;j < a2;j++){\n\t\t\t\t\tint f = Integer.parseInt(str[j]);\n\t\t\t\t\tn[i][j] += f;\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < a2",
"j",
"a2",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tint f = Integer.parseInt(str[j]);\n\t\t\t\t\tn[i][j] += f;\n\t\t\t\t}",
"{\n\t\t\t\t\tint f = Integer.parseInt(str[j]);\n\t\t\t\t\tn[i][j] += f;\n\t\t\t\t}",
"int f = Integer.parseInt(str[j]);",
"f",
"Integer.parseInt(str[j])",
"Integer.parseInt",
"Integer",
"str[j]",
"str",
"j",
"n[i][j] += f",
"n[i][j]",
"n[i]",
"n",
"i",
"j",
"f",
"for(int i = 0;i < a2;i++){\n\t\t\t\tint f = Integer.parseInt(br.readLine());\n\t\t\t\tb[i] += f;\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a2",
"i",
"a2",
"i++",
"i++",
"i",
"{\n\t\t\t\tint f = Integer.parseInt(br.readLine());\n\t\t\t\tb[i] += f;\n\t\t\t}",
"{\n\t\t\t\tint f = Integer.parseInt(br.readLine());\n\t\t\t\tb[i] += f;\n\t\t\t}",
"int f = Integer.parseInt(br.readLine());",
"f",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"b[i] += f",
"b[i]",
"b",
"i",
"f",
"for(int i = 0;i < a1;i++){\n\t\t\t\tint matrix = 0;\n\t\t\t\tfor(int j = 0;j < a2;j++){\n\t\t\t\tmatrix += n[i][j]*b[j];\n\t\t\t\t}\n\t\t\tSystem.out.println(matrix);\t\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a1",
"i",
"a1",
"i++",
"i++",
"i",
"{\n\t\t\t\tint matrix = 0;\n\t\t\t\tfor(int j = 0;j < a2;j++){\n\t\t\t\tmatrix += n[i][j]*b[j];\n\t\t\t\t}\n\t\t\tSystem.out.println(matrix);\t\n\t\t\t}",
"{\n\t\t\t\tint matrix = 0;\n\t\t\t\tfor(int j = 0;j < a2;j++){\n\t\t\t\tmatrix += n[i][j]*b[j];\n\t\t\t\t}\n\t\t\tSystem.out.println(matrix);\t\n\t\t\t}",
"int matrix = 0;",
"matrix",
"0",
"for(int j = 0;j < a2;j++){\n\t\t\t\tmatrix += n[i][j]*b[j];\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < a2",
"j",
"a2",
"j++",
"j++",
"j",
"{\n\t\t\t\tmatrix += n[i][j]*b[j];\n\t\t\t\t}",
"{\n\t\t\t\tmatrix += n[i][j]*b[j];\n\t\t\t\t}",
"matrix += n[i][j]*b[j]",
"matrix",
"n[i][j]*b[j]",
"n[i][j]",
"n[i]",
"n",
"i",
"j",
"b[j]",
"b",
"j",
"System.out.println(matrix)",
"System.out.println",
"System.out",
"System",
"System.out",
"matrix",
"String[] args",
"args"
] | import java.io.*;
class Main {
public static void main(String[] args){
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] line = br.readLine().split(" ");
int a1 = Integer.parseInt(line[0]);
int a2 = Integer.parseInt(line[1]);
int[][] n = new int [a1][a2];
int[] b = new int[a2];
for(int i = 0;i < a1;i++){
String[] str = br.readLine().split(" ");
for(int j = 0;j < a2;j++){
int f = Integer.parseInt(str[j]);
n[i][j] += f;
}
}
for(int i = 0;i < a2;i++){
int f = Integer.parseInt(br.readLine());
b[i] += f;
}
for(int i = 0;i < a1;i++){
int matrix = 0;
for(int j = 0;j < a2;j++){
matrix += n[i][j]*b[j];
}
System.out.println(matrix);
}
} catch(Exception e){
}
}
}
|
[
7,
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,
41,
13,
4,
18,
13,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
4,
13,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
13,
30,
0,
13,
20,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
14,
4,
13,
30,
29,
4,
18,
13,
30,
4,
13,
29,
4,
18,
13,
12,
13,
30,
14,
4,
13,
30,
29,
4,
18,
13,
4,
18,
13,
30,
4,
13,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
14,
4,
13,
30,
29,
4,
18,
13,
4,
18,
13,
30,
4,
13,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
14,
4,
13,
30,
29,
4,
18,
13,
4,
18,
13,
30,
4,
13,
29,
4,
18,
13,
4,
18,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
272,
8
],
[
272,
9
],
[
9,
10
],
[
9,
11
],
[
272,
12
],
[
12,
13
],
[
12,
14
],
[
272,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
17,
31
],
[
31,
32
],
[
31,
33
],
[
17,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
62,
68
],
[
68,
69
],
[
69,
70
],
[
17,
71
],
[
71,
72
],
[
71,
73
],
[
17,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
75,
83
],
[
83,
84
],
[
84,
85
],
[
75,
86
],
[
87,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
93,
94
],
[
17,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
95,
103
],
[
103,
104
],
[
104,
105
],
[
95,
106
],
[
107,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
111,
119
],
[
119,
120
],
[
120,
121
],
[
111,
122
],
[
123,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
126,
132
],
[
132,
133
],
[
132,
134
],
[
107,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
15,
141
],
[
141,
142
],
[
0,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
143,
147
],
[
147,
148
],
[
143,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
155,
156
],
[
149,
157
],
[
157,
158
],
[
143,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
163,
167
],
[
167,
168
],
[
168,
169
],
[
162,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
143,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
143,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
184,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
184,
192
],
[
192,
193
],
[
193,
194
],
[
192,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
143,
199
],
[
199,
200
],
[
199,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
202,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
207,
210
],
[
210,
211
],
[
211,
212
],
[
202,
213
],
[
213,
214
],
[
214,
215
],
[
213,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
217,
220
],
[
220,
221
],
[
221,
222
],
[
143,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
226,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
231,
234
],
[
234,
235
],
[
235,
236
],
[
226,
237
],
[
237,
238
],
[
238,
239
],
[
237,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
241,
244
],
[
244,
245
],
[
245,
246
],
[
143,
247
],
[
247,
248
],
[
247,
249
],
[
249,
250
],
[
250,
251
],
[
251,
252
],
[
250,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
255,
258
],
[
258,
259
],
[
259,
260
],
[
250,
261
],
[
261,
262
],
[
262,
263
],
[
261,
264
],
[
264,
265
],
[
265,
266
],
[
266,
267
],
[
265,
268
],
[
268,
269
],
[
269,
270
],
[
0,
271
],
[
271,
272
],
[
271,
273
]
] | [
"import java.util.*;\nimport java.io.*;\n\npublic class Main{\n\tfinal static int MOD = 1000000007;\n\tfinal static int INF = 1000000000;\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tNScanner sc = new NScanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tfor(int i = 0; i < n; ++i){\n\t\t\tfor(int j = 0; j < m; ++j){\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[] b = new int[m];\n\t\tfor(int i = 0; i < m; ++i){\n\t\t\tb[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < n; ++i){\n\t\t\tint ans = 0;\n\t\t\tfor(int j = 0; j < m; ++j){\n\t\t\t\tans += A[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n\n}\n\nclass NScanner{\n\n\tprivate BufferedReader br;\n\tprivate StringTokenizer tok;\n\n\tpublic NScanner(InputStream is) throws IOException{\n\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\tgetLine();\n\t}\n\n\tprivate void getLine() throws IOException{\n\t\twhile(tok == null || !hasNext()){\n\t\t\ttok = new StringTokenizer(br.readLine());\n\t\t}\n\t}\n\n\tprivate boolean hasNext(){\n\t\treturn tok.hasMoreTokens();\n\t}\n\n\tpublic String next() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn tok.nextToken();\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn tok.nextToken();\n\t\t}\n\t}\n\n\tpublic int nextInt() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}\n\t}\n\n\tpublic long nextLong() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}\n\t}\n\n\tpublic double nextDouble() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n\tfinal static int MOD = 1000000007;\n\tfinal static int INF = 1000000000;\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tNScanner sc = new NScanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tfor(int i = 0; i < n; ++i){\n\t\t\tfor(int j = 0; j < m; ++j){\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[] b = new int[m];\n\t\tfor(int i = 0; i < m; ++i){\n\t\t\tb[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < n; ++i){\n\t\t\tint ans = 0;\n\t\t\tfor(int j = 0; j < m; ++j){\n\t\t\t\tans += A[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n\n}",
"Main",
"final static int MOD = 1000000007;",
"MOD",
"1000000007",
"final static int INF = 1000000000;",
"INF",
"1000000000",
"public static void main(String[] args) throws IOException{\n\t\tNScanner sc = new NScanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tfor(int i = 0; i < n; ++i){\n\t\t\tfor(int j = 0; j < m; ++j){\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[] b = new int[m];\n\t\tfor(int i = 0; i < m; ++i){\n\t\t\tb[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < n; ++i){\n\t\t\tint ans = 0;\n\t\t\tfor(int j = 0; j < m; ++j){\n\t\t\t\tans += A[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}",
"main",
"{\n\t\tNScanner sc = new NScanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tfor(int i = 0; i < n; ++i){\n\t\t\tfor(int j = 0; j < m; ++j){\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[] b = new int[m];\n\t\tfor(int i = 0; i < m; ++i){\n\t\t\tb[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < n; ++i){\n\t\t\tint ans = 0;\n\t\t\tfor(int j = 0; j < m; ++j){\n\t\t\t\tans += A[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}",
"NScanner sc = new NScanner(System.in);",
"sc",
"new NScanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] A = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"for(int i = 0; i < n; ++i){\n\t\t\tfor(int j = 0; j < m; ++j){\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"++i",
"++i",
"i",
"{\n\t\t\tfor(int j = 0; j < m; ++j){\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < m; ++j){\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0; j < m; ++j){\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"++j",
"++j",
"j",
"{\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}",
"A[i][j] = sc.nextInt()",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] b = new int[m];",
"b",
"new int[m]",
"m",
"for(int i = 0; i < m; ++i){\n\t\t\tb[i] = sc.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"++i",
"++i",
"i",
"{\n\t\t\tb[i] = sc.nextInt();\n\t\t}",
"{\n\t\t\tb[i] = sc.nextInt();\n\t\t}",
"b[i] = sc.nextInt()",
"b[i]",
"b",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < n; ++i){\n\t\t\tint ans = 0;\n\t\t\tfor(int j = 0; j < m; ++j){\n\t\t\t\tans += A[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"++i",
"++i",
"i",
"{\n\t\t\tint ans = 0;\n\t\t\tfor(int j = 0; j < m; ++j){\n\t\t\t\tans += A[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}",
"{\n\t\t\tint ans = 0;\n\t\t\tfor(int j = 0; j < m; ++j){\n\t\t\t\tans += A[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}",
"int ans = 0;",
"ans",
"0",
"for(int j = 0; j < m; ++j){\n\t\t\t\tans += A[i][j] * b[j];\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"++j",
"++j",
"j",
"{\n\t\t\t\tans += A[i][j] * b[j];\n\t\t\t}",
"{\n\t\t\t\tans += A[i][j] * b[j];\n\t\t\t}",
"ans += A[i][j] * b[j]",
"ans",
"A[i][j] * b[j]",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"b[j]",
"b",
"j",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"class NScanner{\n\n\tprivate BufferedReader br;\n\tprivate StringTokenizer tok;\n\n\tpublic NScanner(InputStream is) throws IOException{\n\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\tgetLine();\n\t}\n\n\tprivate void getLine() throws IOException{\n\t\twhile(tok == null || !hasNext()){\n\t\t\ttok = new StringTokenizer(br.readLine());\n\t\t}\n\t}\n\n\tprivate boolean hasNext(){\n\t\treturn tok.hasMoreTokens();\n\t}\n\n\tpublic String next() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn tok.nextToken();\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn tok.nextToken();\n\t\t}\n\t}\n\n\tpublic int nextInt() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}\n\t}\n\n\tpublic long nextLong() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}\n\t}\n\n\tpublic double nextDouble() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}\n\t}\n}",
"NScanner",
"private BufferedReader br;",
"br",
"private StringTokenizer tok;",
"tok",
"public NScanner(InputStream is) throws IOException{\n\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\tgetLine();\n\t}",
"NScanner",
"{\n\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\tgetLine();\n\t}",
"br = new BufferedReader(new InputStreamReader(is))",
"br",
"new BufferedReader(new InputStreamReader(is))",
"getLine()",
"getLine",
"InputStream is",
"is",
"private void getLine() throws IOException{\n\t\twhile(tok == null || !hasNext()){\n\t\t\ttok = new StringTokenizer(br.readLine());\n\t\t}\n\t}",
"getLine",
"{\n\t\twhile(tok == null || !hasNext()){\n\t\t\ttok = new StringTokenizer(br.readLine());\n\t\t}\n\t}",
"while(tok == null || !hasNext()){\n\t\t\ttok = new StringTokenizer(br.readLine());\n\t\t}",
"tok == null || !hasNext()",
"tok == null",
"tok",
"null",
"!hasNext()",
"hasNext()",
"hasNext",
"{\n\t\t\ttok = new StringTokenizer(br.readLine());\n\t\t}",
"tok = new StringTokenizer(br.readLine())",
"tok",
"new StringTokenizer(br.readLine())",
"private boolean hasNext(){\n\t\treturn tok.hasMoreTokens();\n\t}",
"hasNext",
"{\n\t\treturn tok.hasMoreTokens();\n\t}",
"return tok.hasMoreTokens();",
"tok.hasMoreTokens()",
"tok.hasMoreTokens",
"tok",
"public String next() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn tok.nextToken();\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn tok.nextToken();\n\t\t}\n\t}",
"next",
"{\n\t\tif(hasNext()){\n\t\t\treturn tok.nextToken();\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn tok.nextToken();\n\t\t}\n\t}",
"if(hasNext()){\n\t\t\treturn tok.nextToken();\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn tok.nextToken();\n\t\t}",
"hasNext()",
"hasNext",
"{\n\t\t\treturn tok.nextToken();\n\t\t}",
"return tok.nextToken();",
"tok.nextToken()",
"tok.nextToken",
"tok",
"{\n\t\t\tgetLine();\n\t\t\treturn tok.nextToken();\n\t\t}",
"getLine()",
"getLine",
"return tok.nextToken();",
"tok.nextToken()",
"tok.nextToken",
"tok",
"public int nextInt() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}\n\t}",
"nextInt",
"{\n\t\tif(hasNext()){\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}\n\t}",
"if(hasNext()){\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}",
"hasNext()",
"hasNext",
"{\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}",
"return Integer.parseInt(tok.nextToken());",
"Integer.parseInt(tok.nextToken())",
"Integer.parseInt",
"Integer",
"tok.nextToken()",
"tok.nextToken",
"tok",
"{\n\t\t\tgetLine();\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}",
"getLine()",
"getLine",
"return Integer.parseInt(tok.nextToken());",
"Integer.parseInt(tok.nextToken())",
"Integer.parseInt",
"Integer",
"tok.nextToken()",
"tok.nextToken",
"tok",
"public long nextLong() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}\n\t}",
"nextLong",
"{\n\t\tif(hasNext()){\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}\n\t}",
"if(hasNext()){\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}",
"hasNext()",
"hasNext",
"{\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}",
"return Long.parseLong(tok.nextToken());",
"Long.parseLong(tok.nextToken())",
"Long.parseLong",
"Long",
"tok.nextToken()",
"tok.nextToken",
"tok",
"{\n\t\t\tgetLine();\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}",
"getLine()",
"getLine",
"return Long.parseLong(tok.nextToken());",
"Long.parseLong(tok.nextToken())",
"Long.parseLong",
"Long",
"tok.nextToken()",
"tok.nextToken",
"tok",
"public double nextDouble() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}\n\t}",
"nextDouble",
"{\n\t\tif(hasNext()){\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}\n\t}",
"if(hasNext()){\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}",
"hasNext()",
"hasNext",
"{\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}",
"return Double.parseDouble(tok.nextToken());",
"Double.parseDouble(tok.nextToken())",
"Double.parseDouble",
"Double",
"tok.nextToken()",
"tok.nextToken",
"tok",
"{\n\t\t\tgetLine();\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}",
"getLine()",
"getLine",
"return Double.parseDouble(tok.nextToken());",
"Double.parseDouble(tok.nextToken())",
"Double.parseDouble",
"Double",
"tok.nextToken()",
"tok.nextToken",
"tok",
"public class Main{\n\tfinal static int MOD = 1000000007;\n\tfinal static int INF = 1000000000;\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tNScanner sc = new NScanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tfor(int i = 0; i < n; ++i){\n\t\t\tfor(int j = 0; j < m; ++j){\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[] b = new int[m];\n\t\tfor(int i = 0; i < m; ++i){\n\t\t\tb[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < n; ++i){\n\t\t\tint ans = 0;\n\t\t\tfor(int j = 0; j < m; ++j){\n\t\t\t\tans += A[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n\n}",
"public class Main{\n\tfinal static int MOD = 1000000007;\n\tfinal static int INF = 1000000000;\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tNScanner sc = new NScanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tfor(int i = 0; i < n; ++i){\n\t\t\tfor(int j = 0; j < m; ++j){\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[] b = new int[m];\n\t\tfor(int i = 0; i < m; ++i){\n\t\t\tb[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < n; ++i){\n\t\t\tint ans = 0;\n\t\t\tfor(int j = 0; j < m; ++j){\n\t\t\t\tans += A[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n\n}",
"Main"
] | import java.util.*;
import java.io.*;
public class Main{
final static int MOD = 1000000007;
final static int INF = 1000000000;
public static void main(String[] args) throws IOException{
NScanner sc = new NScanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
int[][] A = new int[n][m];
for(int i = 0; i < n; ++i){
for(int j = 0; j < m; ++j){
A[i][j] = sc.nextInt();
}
}
int[] b = new int[m];
for(int i = 0; i < m; ++i){
b[i] = sc.nextInt();
}
for(int i = 0; i < n; ++i){
int ans = 0;
for(int j = 0; j < m; ++j){
ans += A[i][j] * b[j];
}
System.out.println(ans);
}
}
}
class NScanner{
private BufferedReader br;
private StringTokenizer tok;
public NScanner(InputStream is) throws IOException{
br = new BufferedReader(new InputStreamReader(is));
getLine();
}
private void getLine() throws IOException{
while(tok == null || !hasNext()){
tok = new StringTokenizer(br.readLine());
}
}
private boolean hasNext(){
return tok.hasMoreTokens();
}
public String next() throws IOException{
if(hasNext()){
return tok.nextToken();
}else{
getLine();
return tok.nextToken();
}
}
public int nextInt() throws IOException{
if(hasNext()){
return Integer.parseInt(tok.nextToken());
}else{
getLine();
return Integer.parseInt(tok.nextToken());
}
}
public long nextLong() throws IOException{
if(hasNext()){
return Long.parseLong(tok.nextToken());
}else{
getLine();
return Long.parseLong(tok.nextToken());
}
}
public double nextDouble() throws IOException{
if(hasNext()){
return Double.parseDouble(tok.nextToken());
}else{
getLine();
return Double.parseDouble(tok.nextToken());
}
}
}
|
[
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,
13,
41,
13,
20,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
59,
65
],
[
65,
66
],
[
66,
67
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
86,
87
],
[
8,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
88,
96
],
[
96,
97
],
[
97,
98
],
[
88,
99
],
[
100,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
109,
110
],
[
109,
111
],
[
104,
112
],
[
112,
113
],
[
113,
114
],
[
104,
115
],
[
116,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
119,
125
],
[
125,
126
],
[
125,
127
],
[
100,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
6,
134
],
[
134,
135
],
[
0,
136
],
[
136,
137
],
[
136,
138
]
] | [
"// Volume11-1127\nimport java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n int n=scan.nextInt();\n int m=scan.nextInt();\n int[][] matrixa=new int[n][m];\n int[] matrixb=new int[m];\n int outPint;\n \n for(int i=0; i<n; i++){\n for(int j=0; j<m; j++){\n matrixa[i][j]=scan.nextInt();\n }\n }\n for(int j=0; j<m; j++){\n matrixb[j]=scan.nextInt();\n }\n for(int i=0; i<n; i++){\n outPint=0;\n for(int j=0; j<m; j++){\n outPint+=matrixa[i][j]*matrixb[j];\n }\n System.out.println(outPint);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n int n=scan.nextInt();\n int m=scan.nextInt();\n int[][] matrixa=new int[n][m];\n int[] matrixb=new int[m];\n int outPint;\n \n for(int i=0; i<n; i++){\n for(int j=0; j<m; j++){\n matrixa[i][j]=scan.nextInt();\n }\n }\n for(int j=0; j<m; j++){\n matrixb[j]=scan.nextInt();\n }\n for(int i=0; i<n; i++){\n outPint=0;\n for(int j=0; j<m; j++){\n outPint+=matrixa[i][j]*matrixb[j];\n }\n System.out.println(outPint);\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n int n=scan.nextInt();\n int m=scan.nextInt();\n int[][] matrixa=new int[n][m];\n int[] matrixb=new int[m];\n int outPint;\n \n for(int i=0; i<n; i++){\n for(int j=0; j<m; j++){\n matrixa[i][j]=scan.nextInt();\n }\n }\n for(int j=0; j<m; j++){\n matrixb[j]=scan.nextInt();\n }\n for(int i=0; i<n; i++){\n outPint=0;\n for(int j=0; j<m; j++){\n outPint+=matrixa[i][j]*matrixb[j];\n }\n System.out.println(outPint);\n }\n }",
"main",
"{\n Scanner scan=new Scanner(System.in);\n int n=scan.nextInt();\n int m=scan.nextInt();\n int[][] matrixa=new int[n][m];\n int[] matrixb=new int[m];\n int outPint;\n \n for(int i=0; i<n; i++){\n for(int j=0; j<m; j++){\n matrixa[i][j]=scan.nextInt();\n }\n }\n for(int j=0; j<m; j++){\n matrixb[j]=scan.nextInt();\n }\n for(int i=0; i<n; i++){\n outPint=0;\n for(int j=0; j<m; j++){\n outPint+=matrixa[i][j]*matrixb[j];\n }\n System.out.println(outPint);\n }\n }",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n=scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int m=scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[][] matrixa=new int[n][m];",
"matrixa",
"new int[n][m]",
"n",
"m",
"int[] matrixb=new int[m];",
"matrixb",
"new int[m]",
"m",
"int outPint;",
"outPint",
"for(int i=0; i<n; i++){\n for(int j=0; j<m; j++){\n matrixa[i][j]=scan.nextInt();\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j=0; j<m; j++){\n matrixa[i][j]=scan.nextInt();\n }\n }",
"{\n for(int j=0; j<m; j++){\n matrixa[i][j]=scan.nextInt();\n }\n }",
"for(int j=0; j<m; j++){\n matrixa[i][j]=scan.nextInt();\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n matrixa[i][j]=scan.nextInt();\n }",
"{\n matrixa[i][j]=scan.nextInt();\n }",
"matrixa[i][j]=scan.nextInt()",
"matrixa[i][j]",
"matrixa[i]",
"matrixa",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int j=0; j<m; j++){\n matrixb[j]=scan.nextInt();\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n matrixb[j]=scan.nextInt();\n }",
"{\n matrixb[j]=scan.nextInt();\n }",
"matrixb[j]=scan.nextInt()",
"matrixb[j]",
"matrixb",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i=0; i<n; i++){\n outPint=0;\n for(int j=0; j<m; j++){\n outPint+=matrixa[i][j]*matrixb[j];\n }\n System.out.println(outPint);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n outPint=0;\n for(int j=0; j<m; j++){\n outPint+=matrixa[i][j]*matrixb[j];\n }\n System.out.println(outPint);\n }",
"{\n outPint=0;\n for(int j=0; j<m; j++){\n outPint+=matrixa[i][j]*matrixb[j];\n }\n System.out.println(outPint);\n }",
"outPint=0",
"outPint",
"0",
"for(int j=0; j<m; j++){\n outPint+=matrixa[i][j]*matrixb[j];\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n outPint+=matrixa[i][j]*matrixb[j];\n }",
"{\n outPint+=matrixa[i][j]*matrixb[j];\n }",
"outPint+=matrixa[i][j]*matrixb[j]",
"outPint",
"matrixa[i][j]*matrixb[j]",
"matrixa[i][j]",
"matrixa[i]",
"matrixa",
"i",
"j",
"matrixb[j]",
"matrixb",
"j",
"System.out.println(outPint)",
"System.out.println",
"System.out",
"System",
"System.out",
"outPint",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n int n=scan.nextInt();\n int m=scan.nextInt();\n int[][] matrixa=new int[n][m];\n int[] matrixb=new int[m];\n int outPint;\n \n for(int i=0; i<n; i++){\n for(int j=0; j<m; j++){\n matrixa[i][j]=scan.nextInt();\n }\n }\n for(int j=0; j<m; j++){\n matrixb[j]=scan.nextInt();\n }\n for(int i=0; i<n; i++){\n outPint=0;\n for(int j=0; j<m; j++){\n outPint+=matrixa[i][j]*matrixb[j];\n }\n System.out.println(outPint);\n }\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n int n=scan.nextInt();\n int m=scan.nextInt();\n int[][] matrixa=new int[n][m];\n int[] matrixb=new int[m];\n int outPint;\n \n for(int i=0; i<n; i++){\n for(int j=0; j<m; j++){\n matrixa[i][j]=scan.nextInt();\n }\n }\n for(int j=0; j<m; j++){\n matrixb[j]=scan.nextInt();\n }\n for(int i=0; i<n; i++){\n outPint=0;\n for(int j=0; j<m; j++){\n outPint+=matrixa[i][j]*matrixb[j];\n }\n System.out.println(outPint);\n }\n }\n}",
"Main"
] | // Volume11-1127
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int n=scan.nextInt();
int m=scan.nextInt();
int[][] matrixa=new int[n][m];
int[] matrixb=new int[m];
int outPint;
for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
matrixa[i][j]=scan.nextInt();
}
}
for(int j=0; j<m; j++){
matrixb[j]=scan.nextInt();
}
for(int i=0; i<n; i++){
outPint=0;
for(int j=0; j<m; j++){
outPint+=matrixa[i][j]*matrixb[j];
}
System.out.println(outPint);
}
}
}
|
[
7,
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,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
13,
13,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
29,
13,
23,
13,
23,
13,
23,
13,
23,
13
] | [
[
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
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
32,
33
],
[
11,
34
],
[
34,
35
],
[
34,
36
],
[
11,
39
],
[
39,
40
],
[
39,
41
],
[
11,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
43,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
59,
70
],
[
71,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
72,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
82,
83
],
[
11,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
84,
92
],
[
92,
93
],
[
93,
94
],
[
84,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
105,
106
],
[
11,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
109,
111
],
[
109,
112
],
[
109,
113
],
[
109,
114
],
[
11,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
120,
121
],
[
120,
122
],
[
115,
123
],
[
123,
124
],
[
124,
125
],
[
115,
126
],
[
127,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
133,
134
],
[
133,
135
],
[
9,
136
],
[
136,
137
],
[
7,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
145
],
[
145,
146
],
[
146,
147
],
[
145,
148
],
[
145,
149
],
[
140,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
150,
155
],
[
155,
156
],
[
155,
157
],
[
150,
158
],
[
158,
159
],
[
159,
160
],
[
150,
161
],
[
162,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
168,
169
],
[
168,
170
],
[
163,
171
],
[
171,
172
],
[
172,
173
],
[
163,
174
],
[
175,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
176,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
180,
186
],
[
186,
187
],
[
186,
188
],
[
140,
189
],
[
189,
190
],
[
138,
191
],
[
191,
192
],
[
138,
193
],
[
193,
194
],
[
138,
195
],
[
195,
196
],
[
138,
197
],
[
197,
198
]
] | [
"import java.io.*;\nimport java.util.*;\n\nclass Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(br.readLine());\n int n = Integer.parseInt(st.nextToken());\n int m = Integer.parseInt(st.nextToken());\n int[][] matrix1 = new int[n][m];\n int[] matrix2 = new int[m];\n for (int i = 0; i < n; i++) {\n st = new StringTokenizer(br.readLine());\n for (int j = 0; j < m; j++) {\n matrix1[i][j] = Integer.parseInt(st.nextToken());\n }\n }\n for (int i = 0; i < m; i++) {\n matrix2[i] = Integer.parseInt(br.readLine());\n }\n int[] sum = dot(matrix1, matrix2, n, m);\n for (int i = 0; i < n; i++) {\n System.out.println(sum[i]);\n }\n }\n\n static int[] dot(int[][] matrix1, int[] matrix2, int n, int m) {\n int[] sum = new int[n];\n Arrays.fill(sum, 0);\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n sum[i] += (matrix1[i][j] * matrix2[j]);\n }\n }\n return sum;\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(br.readLine());\n int n = Integer.parseInt(st.nextToken());\n int m = Integer.parseInt(st.nextToken());\n int[][] matrix1 = new int[n][m];\n int[] matrix2 = new int[m];\n for (int i = 0; i < n; i++) {\n st = new StringTokenizer(br.readLine());\n for (int j = 0; j < m; j++) {\n matrix1[i][j] = Integer.parseInt(st.nextToken());\n }\n }\n for (int i = 0; i < m; i++) {\n matrix2[i] = Integer.parseInt(br.readLine());\n }\n int[] sum = dot(matrix1, matrix2, n, m);\n for (int i = 0; i < n; i++) {\n System.out.println(sum[i]);\n }\n }\n\n static int[] dot(int[][] matrix1, int[] matrix2, int n, int m) {\n int[] sum = new int[n];\n Arrays.fill(sum, 0);\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n sum[i] += (matrix1[i][j] * matrix2[j]);\n }\n }\n return sum;\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(br.readLine());\n int n = Integer.parseInt(st.nextToken());\n int m = Integer.parseInt(st.nextToken());\n int[][] matrix1 = new int[n][m];\n int[] matrix2 = new int[m];\n for (int i = 0; i < n; i++) {\n st = new StringTokenizer(br.readLine());\n for (int j = 0; j < m; j++) {\n matrix1[i][j] = Integer.parseInt(st.nextToken());\n }\n }\n for (int i = 0; i < m; i++) {\n matrix2[i] = Integer.parseInt(br.readLine());\n }\n int[] sum = dot(matrix1, matrix2, n, m);\n for (int i = 0; i < n; i++) {\n System.out.println(sum[i]);\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(br.readLine());\n int n = Integer.parseInt(st.nextToken());\n int m = Integer.parseInt(st.nextToken());\n int[][] matrix1 = new int[n][m];\n int[] matrix2 = new int[m];\n for (int i = 0; i < n; i++) {\n st = new StringTokenizer(br.readLine());\n for (int j = 0; j < m; j++) {\n matrix1[i][j] = Integer.parseInt(st.nextToken());\n }\n }\n for (int i = 0; i < m; i++) {\n matrix2[i] = Integer.parseInt(br.readLine());\n }\n int[] sum = dot(matrix1, matrix2, n, m);\n for (int i = 0; i < n; i++) {\n System.out.println(sum[i]);\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st = new StringTokenizer(br.readLine());",
"st",
"new StringTokenizer(br.readLine())",
"int n = Integer.parseInt(st.nextToken());",
"n",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"int m = Integer.parseInt(st.nextToken());",
"m",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"int[][] matrix1 = new int[n][m];",
"matrix1",
"new int[n][m]",
"n",
"m",
"int[] matrix2 = new int[m];",
"matrix2",
"new int[m]",
"m",
"for (int i = 0; i < n; i++) {\n st = new StringTokenizer(br.readLine());\n for (int j = 0; j < m; j++) {\n matrix1[i][j] = Integer.parseInt(st.nextToken());\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n st = new StringTokenizer(br.readLine());\n for (int j = 0; j < m; j++) {\n matrix1[i][j] = Integer.parseInt(st.nextToken());\n }\n }",
"{\n st = new StringTokenizer(br.readLine());\n for (int j = 0; j < m; j++) {\n matrix1[i][j] = Integer.parseInt(st.nextToken());\n }\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"for (int j = 0; j < m; j++) {\n matrix1[i][j] = Integer.parseInt(st.nextToken());\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n matrix1[i][j] = Integer.parseInt(st.nextToken());\n }",
"{\n matrix1[i][j] = Integer.parseInt(st.nextToken());\n }",
"matrix1[i][j] = Integer.parseInt(st.nextToken())",
"matrix1[i][j]",
"matrix1[i]",
"matrix1",
"i",
"j",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"for (int i = 0; i < m; i++) {\n matrix2[i] = Integer.parseInt(br.readLine());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n matrix2[i] = Integer.parseInt(br.readLine());\n }",
"{\n matrix2[i] = Integer.parseInt(br.readLine());\n }",
"matrix2[i] = Integer.parseInt(br.readLine())",
"matrix2[i]",
"matrix2",
"i",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int[] sum = dot(matrix1, matrix2, n, m);",
"sum",
"dot(matrix1, matrix2, n, m)",
"dot",
"matrix1",
"matrix2",
"n",
"m",
"for (int i = 0; i < n; i++) {\n System.out.println(sum[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n System.out.println(sum[i]);\n }",
"{\n System.out.println(sum[i]);\n }",
"System.out.println(sum[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"sum[i]",
"sum",
"i",
"String[] args",
"args",
"static int[] dot(int[][] matrix1, int[] matrix2, int n, int m) {\n int[] sum = new int[n];\n Arrays.fill(sum, 0);\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n sum[i] += (matrix1[i][j] * matrix2[j]);\n }\n }\n return sum;\n }",
"dot",
"{\n int[] sum = new int[n];\n Arrays.fill(sum, 0);\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n sum[i] += (matrix1[i][j] * matrix2[j]);\n }\n }\n return sum;\n }",
"int[] sum = new int[n];",
"sum",
"new int[n]",
"n",
"Arrays.fill(sum, 0)",
"Arrays.fill",
"Arrays",
"sum",
"0",
"for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n sum[i] += (matrix1[i][j] * matrix2[j]);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < m; j++) {\n sum[i] += (matrix1[i][j] * matrix2[j]);\n }\n }",
"{\n for (int j = 0; j < m; j++) {\n sum[i] += (matrix1[i][j] * matrix2[j]);\n }\n }",
"for (int j = 0; j < m; j++) {\n sum[i] += (matrix1[i][j] * matrix2[j]);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n sum[i] += (matrix1[i][j] * matrix2[j]);\n }",
"{\n sum[i] += (matrix1[i][j] * matrix2[j]);\n }",
"sum[i] += (matrix1[i][j] * matrix2[j])",
"sum[i]",
"sum",
"i",
"(matrix1[i][j] * matrix2[j])",
"matrix1[i][j]",
"matrix1[i]",
"matrix1",
"i",
"j",
"matrix2[j]",
"matrix2",
"j",
"return sum;",
"sum",
"int[][] matrix1",
"matrix1",
"int[] matrix2",
"matrix2",
"int n",
"n",
"int m",
"m"
] | import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(br.readLine());
int n = Integer.parseInt(st.nextToken());
int m = Integer.parseInt(st.nextToken());
int[][] matrix1 = new int[n][m];
int[] matrix2 = new int[m];
for (int i = 0; i < n; i++) {
st = new StringTokenizer(br.readLine());
for (int j = 0; j < m; j++) {
matrix1[i][j] = Integer.parseInt(st.nextToken());
}
}
for (int i = 0; i < m; i++) {
matrix2[i] = Integer.parseInt(br.readLine());
}
int[] sum = dot(matrix1, matrix2, n, m);
for (int i = 0; i < n; i++) {
System.out.println(sum[i]);
}
}
static int[] dot(int[][] matrix1, int[] matrix2, int n, int m) {
int[] sum = new int[n];
Arrays.fill(sum, 0);
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
sum[i] += (matrix1[i][j] * matrix2[j]);
}
}
return sum;
}
} |
[
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,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
8,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
86,
94
],
[
94,
95
],
[
95,
96
],
[
86,
97
],
[
98,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
110,
111
],
[
111,
112
],
[
102,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
119,
125
],
[
125,
126
],
[
125,
127
],
[
98,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
6,
134
],
[
134,
135
],
[
0,
136
],
[
136,
137
],
[
136,
138
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint m = scan.nextInt();\n\t\tint n = scan.nextInt();\n\n\t\tint[][] a = new int[m][n];\n\t\tint [] b = new int[n];\n\t\t\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\ta[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\n\t\tfor(int k = 0; k < n; k++){\n\t\t\tb[k] = scan.nextInt();\n\t\t}\n\t\t\n\t\tfor(int s = 0; s < m; s++){\n\t\t\tint total = 0;\n\t\t\tfor(int t = 0; t < n; t++){\n\t\t\t\ttotal = total + a[s][t] * b[t];\n\t\t\t}\n\t\t\tSystem.out.println(total);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint m = scan.nextInt();\n\t\tint n = scan.nextInt();\n\n\t\tint[][] a = new int[m][n];\n\t\tint [] b = new int[n];\n\t\t\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\ta[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\n\t\tfor(int k = 0; k < n; k++){\n\t\t\tb[k] = scan.nextInt();\n\t\t}\n\t\t\n\t\tfor(int s = 0; s < m; s++){\n\t\t\tint total = 0;\n\t\t\tfor(int t = 0; t < n; t++){\n\t\t\t\ttotal = total + a[s][t] * b[t];\n\t\t\t}\n\t\t\tSystem.out.println(total);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint m = scan.nextInt();\n\t\tint n = scan.nextInt();\n\n\t\tint[][] a = new int[m][n];\n\t\tint [] b = new int[n];\n\t\t\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\ta[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\n\t\tfor(int k = 0; k < n; k++){\n\t\t\tb[k] = scan.nextInt();\n\t\t}\n\t\t\n\t\tfor(int s = 0; s < m; s++){\n\t\t\tint total = 0;\n\t\t\tfor(int t = 0; t < n; t++){\n\t\t\t\ttotal = total + a[s][t] * b[t];\n\t\t\t}\n\t\t\tSystem.out.println(total);\n\t\t}\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint m = scan.nextInt();\n\t\tint n = scan.nextInt();\n\n\t\tint[][] a = new int[m][n];\n\t\tint [] b = new int[n];\n\t\t\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\ta[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\n\t\tfor(int k = 0; k < n; k++){\n\t\t\tb[k] = scan.nextInt();\n\t\t}\n\t\t\n\t\tfor(int s = 0; s < m; s++){\n\t\t\tint total = 0;\n\t\t\tfor(int t = 0; t < n; t++){\n\t\t\t\ttotal = total + a[s][t] * b[t];\n\t\t\t}\n\t\t\tSystem.out.println(total);\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[][] a = new int[m][n];",
"a",
"new int[m][n]",
"m",
"n",
"int [] b = new int[n];",
"b",
"new int[n]",
"n",
"for(int i = 0; i < m; i++){\n\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\ta[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\ta[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\ta[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0; j < n; j++){\n\t\t\t\ta[i][j] = scan.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < n",
"j",
"n",
"j++",
"j++",
"j",
"{\n\t\t\t\ta[i][j] = scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\ta[i][j] = scan.nextInt();\n\t\t\t}",
"a[i][j] = scan.nextInt()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int k = 0; k < n; k++){\n\t\t\tb[k] = scan.nextInt();\n\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < n",
"k",
"n",
"k++",
"k++",
"k",
"{\n\t\t\tb[k] = scan.nextInt();\n\t\t}",
"{\n\t\t\tb[k] = scan.nextInt();\n\t\t}",
"b[k] = scan.nextInt()",
"b[k]",
"b",
"k",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int s = 0; s < m; s++){\n\t\t\tint total = 0;\n\t\t\tfor(int t = 0; t < n; t++){\n\t\t\t\ttotal = total + a[s][t] * b[t];\n\t\t\t}\n\t\t\tSystem.out.println(total);\n\t\t}",
"int s = 0;",
"int s = 0;",
"s",
"0",
"s < m",
"s",
"m",
"s++",
"s++",
"s",
"{\n\t\t\tint total = 0;\n\t\t\tfor(int t = 0; t < n; t++){\n\t\t\t\ttotal = total + a[s][t] * b[t];\n\t\t\t}\n\t\t\tSystem.out.println(total);\n\t\t}",
"{\n\t\t\tint total = 0;\n\t\t\tfor(int t = 0; t < n; t++){\n\t\t\t\ttotal = total + a[s][t] * b[t];\n\t\t\t}\n\t\t\tSystem.out.println(total);\n\t\t}",
"int total = 0;",
"total",
"0",
"for(int t = 0; t < n; t++){\n\t\t\t\ttotal = total + a[s][t] * b[t];\n\t\t\t}",
"int t = 0;",
"int t = 0;",
"t",
"0",
"t < n",
"t",
"n",
"t++",
"t++",
"t",
"{\n\t\t\t\ttotal = total + a[s][t] * b[t];\n\t\t\t}",
"{\n\t\t\t\ttotal = total + a[s][t] * b[t];\n\t\t\t}",
"total = total + a[s][t] * b[t]",
"total",
"total + a[s][t] * b[t]",
"total",
"a[s][t] * b[t]",
"a[s][t]",
"a[s]",
"a",
"s",
"t",
"b[t]",
"b",
"t",
"System.out.println(total)",
"System.out.println",
"System.out",
"System",
"System.out",
"total",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint m = scan.nextInt();\n\t\tint n = scan.nextInt();\n\n\t\tint[][] a = new int[m][n];\n\t\tint [] b = new int[n];\n\t\t\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\ta[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\n\t\tfor(int k = 0; k < n; k++){\n\t\t\tb[k] = scan.nextInt();\n\t\t}\n\t\t\n\t\tfor(int s = 0; s < m; s++){\n\t\t\tint total = 0;\n\t\t\tfor(int t = 0; t < n; t++){\n\t\t\t\ttotal = total + a[s][t] * b[t];\n\t\t\t}\n\t\t\tSystem.out.println(total);\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint m = scan.nextInt();\n\t\tint n = scan.nextInt();\n\n\t\tint[][] a = new int[m][n];\n\t\tint [] b = new int[n];\n\t\t\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\ta[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\n\t\tfor(int k = 0; k < n; k++){\n\t\t\tb[k] = scan.nextInt();\n\t\t}\n\t\t\n\t\tfor(int s = 0; s < m; s++){\n\t\t\tint total = 0;\n\t\t\tfor(int t = 0; t < n; t++){\n\t\t\t\ttotal = total + a[s][t] * b[t];\n\t\t\t}\n\t\t\tSystem.out.println(total);\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner scan = new Scanner(System.in);
int m = scan.nextInt();
int n = scan.nextInt();
int[][] a = new int[m][n];
int [] b = new int[n];
for(int i = 0; i < m; i++){
for(int j = 0; j < n; j++){
a[i][j] = scan.nextInt();
}
}
for(int k = 0; k < n; k++){
b[k] = scan.nextInt();
}
for(int s = 0; s < m; s++){
int total = 0;
for(int t = 0; t < n; t++){
total = total + a[s][t] * b[t];
}
System.out.println(total);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
18,
13,
17,
18,
13,
17,
41,
13,
20,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
17,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
144,
5
],
[
144,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
18,
19
],
[
18,
20
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
30,
40
],
[
40,
41
],
[
41,
42
],
[
30,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
45,
55
],
[
55,
56
],
[
56,
57
],
[
45,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
60,
66
],
[
66,
67
],
[
67,
68
],
[
8,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
69,
79
],
[
79,
80
],
[
80,
81
],
[
69,
82
],
[
83,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
89,
90
],
[
8,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
98,
100
],
[
91,
101
],
[
101,
102
],
[
102,
103
],
[
91,
104
],
[
105,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
116,
118
],
[
109,
119
],
[
119,
120
],
[
120,
121
],
[
109,
122
],
[
123,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
126,
132
],
[
132,
133
],
[
132,
134
],
[
105,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
6,
141
],
[
141,
142
],
[
0,
143
],
[
143,
144
],
[
143,
145
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] nm = new int[]{sc.nextInt(), sc.nextInt()};\n int[][] a = new int[nm[0]][nm[1]];\n int[] b = new int[nm[1]];\n for (int i = 0; i < nm[0]; i++) {\n for (int j = 0; j < nm[1]; j++) {\n a[i][j] = sc.nextInt();\n }\n }\n for (int i = 0; i < nm[1]; i++) {\n b[i] = sc.nextInt();\n }\n\n for (int i = 0; i < nm[0]; i++) {\n int sum = 0;\n for (int j = 0; j < nm[1]; j++) {\n sum += a[i][j] * b[j];\n }\n System.out.println(sum);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] nm = new int[]{sc.nextInt(), sc.nextInt()};\n int[][] a = new int[nm[0]][nm[1]];\n int[] b = new int[nm[1]];\n for (int i = 0; i < nm[0]; i++) {\n for (int j = 0; j < nm[1]; j++) {\n a[i][j] = sc.nextInt();\n }\n }\n for (int i = 0; i < nm[1]; i++) {\n b[i] = sc.nextInt();\n }\n\n for (int i = 0; i < nm[0]; i++) {\n int sum = 0;\n for (int j = 0; j < nm[1]; j++) {\n sum += a[i][j] * b[j];\n }\n System.out.println(sum);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] nm = new int[]{sc.nextInt(), sc.nextInt()};\n int[][] a = new int[nm[0]][nm[1]];\n int[] b = new int[nm[1]];\n for (int i = 0; i < nm[0]; i++) {\n for (int j = 0; j < nm[1]; j++) {\n a[i][j] = sc.nextInt();\n }\n }\n for (int i = 0; i < nm[1]; i++) {\n b[i] = sc.nextInt();\n }\n\n for (int i = 0; i < nm[0]; i++) {\n int sum = 0;\n for (int j = 0; j < nm[1]; j++) {\n sum += a[i][j] * b[j];\n }\n System.out.println(sum);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int[] nm = new int[]{sc.nextInt(), sc.nextInt()};\n int[][] a = new int[nm[0]][nm[1]];\n int[] b = new int[nm[1]];\n for (int i = 0; i < nm[0]; i++) {\n for (int j = 0; j < nm[1]; j++) {\n a[i][j] = sc.nextInt();\n }\n }\n for (int i = 0; i < nm[1]; i++) {\n b[i] = sc.nextInt();\n }\n\n for (int i = 0; i < nm[0]; i++) {\n int sum = 0;\n for (int j = 0; j < nm[1]; j++) {\n sum += a[i][j] * b[j];\n }\n System.out.println(sum);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] nm = new int[]{sc.nextInt(), sc.nextInt()};",
"nm",
"new int[]{sc.nextInt(), sc.nextInt()}",
"int[][] a = new int[nm[0]][nm[1]];",
"a",
"new int[nm[0]][nm[1]]",
"nm[0]",
"nm",
"0",
"nm[1]",
"nm",
"1",
"int[] b = new int[nm[1]];",
"b",
"new int[nm[1]]",
"nm[1]",
"nm",
"1",
"for (int i = 0; i < nm[0]; i++) {\n for (int j = 0; j < nm[1]; j++) {\n a[i][j] = sc.nextInt();\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < nm[0]",
"i",
"nm[0]",
"nm",
"0",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < nm[1]; j++) {\n a[i][j] = sc.nextInt();\n }\n }",
"{\n for (int j = 0; j < nm[1]; j++) {\n a[i][j] = sc.nextInt();\n }\n }",
"for (int j = 0; j < nm[1]; j++) {\n a[i][j] = sc.nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < nm[1]",
"j",
"nm[1]",
"nm",
"1",
"j++",
"j++",
"j",
"{\n a[i][j] = sc.nextInt();\n }",
"{\n a[i][j] = sc.nextInt();\n }",
"a[i][j] = sc.nextInt()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < nm[1]; i++) {\n b[i] = sc.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < nm[1]",
"i",
"nm[1]",
"nm",
"1",
"i++",
"i++",
"i",
"{\n b[i] = sc.nextInt();\n }",
"{\n b[i] = sc.nextInt();\n }",
"b[i] = sc.nextInt()",
"b[i]",
"b",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < nm[0]; i++) {\n int sum = 0;\n for (int j = 0; j < nm[1]; j++) {\n sum += a[i][j] * b[j];\n }\n System.out.println(sum);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < nm[0]",
"i",
"nm[0]",
"nm",
"0",
"i++",
"i++",
"i",
"{\n int sum = 0;\n for (int j = 0; j < nm[1]; j++) {\n sum += a[i][j] * b[j];\n }\n System.out.println(sum);\n }",
"{\n int sum = 0;\n for (int j = 0; j < nm[1]; j++) {\n sum += a[i][j] * b[j];\n }\n System.out.println(sum);\n }",
"int sum = 0;",
"sum",
"0",
"for (int j = 0; j < nm[1]; j++) {\n sum += a[i][j] * b[j];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < nm[1]",
"j",
"nm[1]",
"nm",
"1",
"j++",
"j++",
"j",
"{\n sum += a[i][j] * b[j];\n }",
"{\n sum += a[i][j] * b[j];\n }",
"sum += a[i][j] * b[j]",
"sum",
"a[i][j] * b[j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] nm = new int[]{sc.nextInt(), sc.nextInt()};\n int[][] a = new int[nm[0]][nm[1]];\n int[] b = new int[nm[1]];\n for (int i = 0; i < nm[0]; i++) {\n for (int j = 0; j < nm[1]; j++) {\n a[i][j] = sc.nextInt();\n }\n }\n for (int i = 0; i < nm[1]; i++) {\n b[i] = sc.nextInt();\n }\n\n for (int i = 0; i < nm[0]; i++) {\n int sum = 0;\n for (int j = 0; j < nm[1]; j++) {\n sum += a[i][j] * b[j];\n }\n System.out.println(sum);\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] nm = new int[]{sc.nextInt(), sc.nextInt()};\n int[][] a = new int[nm[0]][nm[1]];\n int[] b = new int[nm[1]];\n for (int i = 0; i < nm[0]; i++) {\n for (int j = 0; j < nm[1]; j++) {\n a[i][j] = sc.nextInt();\n }\n }\n for (int i = 0; i < nm[1]; i++) {\n b[i] = sc.nextInt();\n }\n\n for (int i = 0; i < nm[0]; i++) {\n int sum = 0;\n for (int j = 0; j < nm[1]; j++) {\n sum += a[i][j] * b[j];\n }\n System.out.println(sum);\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] nm = new int[]{sc.nextInt(), sc.nextInt()};
int[][] a = new int[nm[0]][nm[1]];
int[] b = new int[nm[1]];
for (int i = 0; i < nm[0]; i++) {
for (int j = 0; j < nm[1]; j++) {
a[i][j] = sc.nextInt();
}
}
for (int i = 0; i < nm[1]; i++) {
b[i] = sc.nextInt();
}
for (int i = 0; i < nm[0]; i++) {
int sum = 0;
for (int j = 0; j < nm[1]; j++) {
sum += a[i][j] * b[j];
}
System.out.println(sum);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
20,
17,
17,
0,
13,
20,
17,
0,
13,
20,
17,
0,
13,
20,
17,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
18,
13,
13,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
186,
5
],
[
186,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
8,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
80,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
86,
92
],
[
8,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
98,
100
],
[
93,
101
],
[
101,
102
],
[
102,
103
],
[
93,
104
],
[
105,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
105,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
8,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
121,
122
],
[
121,
123
],
[
116,
124
],
[
124,
125
],
[
125,
126
],
[
116,
127
],
[
128,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
129,
137
],
[
137,
138
],
[
138,
139
],
[
129,
140
],
[
141,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
142,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
146,
152
],
[
152,
153
],
[
152,
154
],
[
141,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
159,
160
],
[
159,
161
],
[
8,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
167,
168
],
[
167,
169
],
[
162,
170
],
[
170,
171
],
[
171,
172
],
[
162,
173
],
[
174,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
175,
180
],
[
180,
181
],
[
180,
182
],
[
6,
183
],
[
183,
184
],
[
0,
185
],
[
185,
186
],
[
185,
187
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\t@SuppressWarnings(\"null\")\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint k, p;\n\t\tint n , m;\n\t\tint a[][];\n\t\tint b[];\n\t\tint c[];\n\t\tint g[];\n\n\t\ta = new int[100][100];\n\t\tb = new int[100];\n\t\tc = new int[100];\n\t\tg = new int[100];\n\t\tn = scan.nextInt();\n\t\tm = scan.nextInt();\n\t\n\t\n\t\tfor (k = 0; k < n; k++) {\n\t\t\tfor(p = 0; p < m; p++){\n\t\t\t\tint d = scan.nextInt();\n\t\t\t\ta[k][p] = d;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\n\t\t}\n\t\t\tfor(p = 0; p < m; p++){\n\t\t\t\tint e = scan.nextInt();\n\t\t\t\tb[p] = e;\n\t\t\t\t\n\t\t\t}\n\t\t\tfor (k = 0; k < n; k++) {\n\t\t\t\tfor(p = 0; p < m; p++){\n\t\t\t\t\tc[k] = a[k][p] * b[p];\n\t\t\t\t\tg[k] += c[k];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t\tfor (k = 0; k < n; k++) {\n\t\t\t\tSystem.out.println(g[k]);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t}\n\t\t\t\n\t\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\t@SuppressWarnings(\"null\")\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint k, p;\n\t\tint n , m;\n\t\tint a[][];\n\t\tint b[];\n\t\tint c[];\n\t\tint g[];\n\n\t\ta = new int[100][100];\n\t\tb = new int[100];\n\t\tc = new int[100];\n\t\tg = new int[100];\n\t\tn = scan.nextInt();\n\t\tm = scan.nextInt();\n\t\n\t\n\t\tfor (k = 0; k < n; k++) {\n\t\t\tfor(p = 0; p < m; p++){\n\t\t\t\tint d = scan.nextInt();\n\t\t\t\ta[k][p] = d;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\n\t\t}\n\t\t\tfor(p = 0; p < m; p++){\n\t\t\t\tint e = scan.nextInt();\n\t\t\t\tb[p] = e;\n\t\t\t\t\n\t\t\t}\n\t\t\tfor (k = 0; k < n; k++) {\n\t\t\t\tfor(p = 0; p < m; p++){\n\t\t\t\t\tc[k] = a[k][p] * b[p];\n\t\t\t\t\tg[k] += c[k];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t\tfor (k = 0; k < n; k++) {\n\t\t\t\tSystem.out.println(g[k]);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t}\n\t\t\t\n\t\n}",
"Main",
"@SuppressWarnings(\"null\")\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint k, p;\n\t\tint n , m;\n\t\tint a[][];\n\t\tint b[];\n\t\tint c[];\n\t\tint g[];\n\n\t\ta = new int[100][100];\n\t\tb = new int[100];\n\t\tc = new int[100];\n\t\tg = new int[100];\n\t\tn = scan.nextInt();\n\t\tm = scan.nextInt();\n\t\n\t\n\t\tfor (k = 0; k < n; k++) {\n\t\t\tfor(p = 0; p < m; p++){\n\t\t\t\tint d = scan.nextInt();\n\t\t\t\ta[k][p] = d;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\n\t\t}\n\t\t\tfor(p = 0; p < m; p++){\n\t\t\t\tint e = scan.nextInt();\n\t\t\t\tb[p] = e;\n\t\t\t\t\n\t\t\t}\n\t\t\tfor (k = 0; k < n; k++) {\n\t\t\t\tfor(p = 0; p < m; p++){\n\t\t\t\t\tc[k] = a[k][p] * b[p];\n\t\t\t\t\tg[k] += c[k];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t\tfor (k = 0; k < n; k++) {\n\t\t\t\tSystem.out.println(g[k]);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint k, p;\n\t\tint n , m;\n\t\tint a[][];\n\t\tint b[];\n\t\tint c[];\n\t\tint g[];\n\n\t\ta = new int[100][100];\n\t\tb = new int[100];\n\t\tc = new int[100];\n\t\tg = new int[100];\n\t\tn = scan.nextInt();\n\t\tm = scan.nextInt();\n\t\n\t\n\t\tfor (k = 0; k < n; k++) {\n\t\t\tfor(p = 0; p < m; p++){\n\t\t\t\tint d = scan.nextInt();\n\t\t\t\ta[k][p] = d;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\n\t\t}\n\t\t\tfor(p = 0; p < m; p++){\n\t\t\t\tint e = scan.nextInt();\n\t\t\t\tb[p] = e;\n\t\t\t\t\n\t\t\t}\n\t\t\tfor (k = 0; k < n; k++) {\n\t\t\t\tfor(p = 0; p < m; p++){\n\t\t\t\t\tc[k] = a[k][p] * b[p];\n\t\t\t\t\tg[k] += c[k];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t\tfor (k = 0; k < n; k++) {\n\t\t\t\tSystem.out.println(g[k]);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int k",
"k",
"p;",
"p",
"int n",
"n",
"m;",
"m",
"int a[][];",
"a",
"int b[];",
"b",
"int c[];",
"c",
"int g[];",
"g",
"a = new int[100][100]",
"a",
"new int[100][100]",
"100",
"100",
"b = new int[100]",
"b",
"new int[100]",
"100",
"c = new int[100]",
"c",
"new int[100]",
"100",
"g = new int[100]",
"g",
"new int[100]",
"100",
"n = scan.nextInt()",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"m = scan.nextInt()",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (k = 0; k < n; k++) {\n\t\t\tfor(p = 0; p < m; p++){\n\t\t\t\tint d = scan.nextInt();\n\t\t\t\ta[k][p] = d;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\n\t\t}",
"k = 0;",
"k = 0",
"k",
"0",
"k < n",
"k",
"n",
"k++",
"k++",
"k",
"{\n\t\t\tfor(p = 0; p < m; p++){\n\t\t\t\tint d = scan.nextInt();\n\t\t\t\ta[k][p] = d;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\n\t\t}",
"{\n\t\t\tfor(p = 0; p < m; p++){\n\t\t\t\tint d = scan.nextInt();\n\t\t\t\ta[k][p] = d;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\n\t\t}",
"for(p = 0; p < m; p++){\n\t\t\t\tint d = scan.nextInt();\n\t\t\t\ta[k][p] = d;\n\t\t\t\t\n\t\t\t}",
"p = 0;",
"p = 0",
"p",
"0",
"p < m",
"p",
"m",
"p++",
"p++",
"p",
"{\n\t\t\t\tint d = scan.nextInt();\n\t\t\t\ta[k][p] = d;\n\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\tint d = scan.nextInt();\n\t\t\t\ta[k][p] = d;\n\t\t\t\t\n\t\t\t}",
"int d = scan.nextInt();",
"d",
"scan.nextInt()",
"scan.nextInt",
"scan",
"a[k][p] = d",
"a[k][p]",
"a[k]",
"a",
"k",
"p",
"d",
"for(p = 0; p < m; p++){\n\t\t\t\tint e = scan.nextInt();\n\t\t\t\tb[p] = e;\n\t\t\t\t\n\t\t\t}",
"p = 0;",
"p = 0",
"p",
"0",
"p < m",
"p",
"m",
"p++",
"p++",
"p",
"{\n\t\t\t\tint e = scan.nextInt();\n\t\t\t\tb[p] = e;\n\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\tint e = scan.nextInt();\n\t\t\t\tb[p] = e;\n\t\t\t\t\n\t\t\t}",
"int e = scan.nextInt();",
"e",
"scan.nextInt()",
"scan.nextInt",
"scan",
"b[p] = e",
"b[p]",
"b",
"p",
"e",
"for (k = 0; k < n; k++) {\n\t\t\t\tfor(p = 0; p < m; p++){\n\t\t\t\t\tc[k] = a[k][p] * b[p];\n\t\t\t\t\tg[k] += c[k];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t}",
"k = 0;",
"k = 0",
"k",
"0",
"k < n",
"k",
"n",
"k++",
"k++",
"k",
"{\n\t\t\t\tfor(p = 0; p < m; p++){\n\t\t\t\t\tc[k] = a[k][p] * b[p];\n\t\t\t\t\tg[k] += c[k];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t}",
"{\n\t\t\t\tfor(p = 0; p < m; p++){\n\t\t\t\t\tc[k] = a[k][p] * b[p];\n\t\t\t\t\tg[k] += c[k];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t}",
"for(p = 0; p < m; p++){\n\t\t\t\t\tc[k] = a[k][p] * b[p];\n\t\t\t\t\tg[k] += c[k];\n\t\t\t\t}",
"p = 0;",
"p = 0",
"p",
"0",
"p < m",
"p",
"m",
"p++",
"p++",
"p",
"{\n\t\t\t\t\tc[k] = a[k][p] * b[p];\n\t\t\t\t\tg[k] += c[k];\n\t\t\t\t}",
"{\n\t\t\t\t\tc[k] = a[k][p] * b[p];\n\t\t\t\t\tg[k] += c[k];\n\t\t\t\t}",
"c[k] = a[k][p] * b[p]",
"c[k]",
"c",
"k",
"a[k][p] * b[p]",
"a[k][p]",
"a[k]",
"a",
"k",
"p",
"b[p]",
"b",
"p",
"g[k] += c[k]",
"g[k]",
"g",
"k",
"c[k]",
"c",
"k",
"for (k = 0; k < n; k++) {\n\t\t\t\tSystem.out.println(g[k]);\n\t\t\t\t\n\t\t\t}",
"k = 0;",
"k = 0",
"k",
"0",
"k < n",
"k",
"n",
"k++",
"k++",
"k",
"{\n\t\t\t\tSystem.out.println(g[k]);\n\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\tSystem.out.println(g[k]);\n\t\t\t\t\n\t\t\t}",
"System.out.println(g[k])",
"System.out.println",
"System.out",
"System",
"System.out",
"g[k]",
"g",
"k",
"String[] args",
"args",
"public class Main {\n\n\t@SuppressWarnings(\"null\")\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint k, p;\n\t\tint n , m;\n\t\tint a[][];\n\t\tint b[];\n\t\tint c[];\n\t\tint g[];\n\n\t\ta = new int[100][100];\n\t\tb = new int[100];\n\t\tc = new int[100];\n\t\tg = new int[100];\n\t\tn = scan.nextInt();\n\t\tm = scan.nextInt();\n\t\n\t\n\t\tfor (k = 0; k < n; k++) {\n\t\t\tfor(p = 0; p < m; p++){\n\t\t\t\tint d = scan.nextInt();\n\t\t\t\ta[k][p] = d;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\n\t\t}\n\t\t\tfor(p = 0; p < m; p++){\n\t\t\t\tint e = scan.nextInt();\n\t\t\t\tb[p] = e;\n\t\t\t\t\n\t\t\t}\n\t\t\tfor (k = 0; k < n; k++) {\n\t\t\t\tfor(p = 0; p < m; p++){\n\t\t\t\t\tc[k] = a[k][p] * b[p];\n\t\t\t\t\tg[k] += c[k];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t\tfor (k = 0; k < n; k++) {\n\t\t\t\tSystem.out.println(g[k]);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t}\n\t\t\t\n\t\n}",
"public class Main {\n\n\t@SuppressWarnings(\"null\")\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint k, p;\n\t\tint n , m;\n\t\tint a[][];\n\t\tint b[];\n\t\tint c[];\n\t\tint g[];\n\n\t\ta = new int[100][100];\n\t\tb = new int[100];\n\t\tc = new int[100];\n\t\tg = new int[100];\n\t\tn = scan.nextInt();\n\t\tm = scan.nextInt();\n\t\n\t\n\t\tfor (k = 0; k < n; k++) {\n\t\t\tfor(p = 0; p < m; p++){\n\t\t\t\tint d = scan.nextInt();\n\t\t\t\ta[k][p] = d;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\n\t\t}\n\t\t\tfor(p = 0; p < m; p++){\n\t\t\t\tint e = scan.nextInt();\n\t\t\t\tb[p] = e;\n\t\t\t\t\n\t\t\t}\n\t\t\tfor (k = 0; k < n; k++) {\n\t\t\t\tfor(p = 0; p < m; p++){\n\t\t\t\t\tc[k] = a[k][p] * b[p];\n\t\t\t\t\tg[k] += c[k];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t\tfor (k = 0; k < n; k++) {\n\t\t\t\tSystem.out.println(g[k]);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t}\n\t\t\t\n\t\n}",
"Main"
] | import java.util.Scanner;
public class Main {
@SuppressWarnings("null")
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int k, p;
int n , m;
int a[][];
int b[];
int c[];
int g[];
a = new int[100][100];
b = new int[100];
c = new int[100];
g = new int[100];
n = scan.nextInt();
m = scan.nextInt();
for (k = 0; k < n; k++) {
for(p = 0; p < m; p++){
int d = scan.nextInt();
a[k][p] = d;
}
}
for(p = 0; p < m; p++){
int e = scan.nextInt();
b[p] = e;
}
for (k = 0; k < n; k++) {
for(p = 0; p < m; p++){
c[k] = a[k][p] * b[p];
g[k] += c[k];
}
}
for (k = 0; k < n; k++) {
System.out.println(g[k]);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
17,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
17,
13,
4,
18,
18,
13,
13,
13,
23,
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
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
14,
24
],
[
24,
25
],
[
24,
26
],
[
14,
27
],
[
27,
28
],
[
27,
29
],
[
14,
30
],
[
30,
31
],
[
30,
32
],
[
14,
33
],
[
33,
34
],
[
33,
35
],
[
14,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
14,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
14,
46
],
[
46,
47
],
[
46,
48
],
[
14,
51
],
[
51,
52
],
[
51,
53
],
[
14,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
56,
64
],
[
64,
65
],
[
65,
66
],
[
56,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
69,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
82,
88
],
[
88,
89
],
[
89,
90
],
[
14,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
91,
99
],
[
99,
100
],
[
100,
101
],
[
91,
102
],
[
103,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
104,
110
],
[
110,
111
],
[
111,
112
],
[
14,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
113,
121
],
[
121,
122
],
[
122,
123
],
[
113,
124
],
[
125,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
129,
137
],
[
137,
138
],
[
138,
139
],
[
129,
140
],
[
141,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
144,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
125,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
155,
160
],
[
12,
161
],
[
161,
162
]
] | [
"import java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.Scanner;\nclass Main{\n\tpublic static void main(String[] args)throws NumberFormatException, IOException{\n\t\t//System.out.print(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<String> suite = new ArrayList<String>();\n\t\tArrayList<String> hikaku = new ArrayList<String>();\n\t\tArrayList<Integer> lb = new ArrayList<Integer>();\n\t\tArrayList<Integer> lf = new ArrayList<Integer>();\n\t\tArrayList<Integer> lr = new ArrayList<Integer>();\n\t\tArrayList<Integer> lv = new ArrayList<Integer>();\n\t\tint n =scan.nextInt();\n\t\tint m =scan.nextInt();\n\t\tint a[][] = new int[100][100];\n\t\tint b[][] = new int[100][100];\n\t\tfor(int i =0; i<n; i++){\n\t\t\tfor(int ii=0;ii<m;ii++){\n\t\t\t\ta[i][ii] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<m;i++){\n\t\t\tb[0][i] = scan.nextInt(); \n\t\t}\n\t\t\n\t\tfor (int i=0; i<n; i++){\n\t\t\tint keisan = 0;\n\t\t\tfor(int ii=0; ii<m; ii++){\n\t\t\t\tkeisan += a[i][ii] * b[0][ii];\n\t\t\t}\n\t\t\tSystem.out.println(keisan);\n\t\t}\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n\tpublic static void main(String[] args)throws NumberFormatException, IOException{\n\t\t//System.out.print(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<String> suite = new ArrayList<String>();\n\t\tArrayList<String> hikaku = new ArrayList<String>();\n\t\tArrayList<Integer> lb = new ArrayList<Integer>();\n\t\tArrayList<Integer> lf = new ArrayList<Integer>();\n\t\tArrayList<Integer> lr = new ArrayList<Integer>();\n\t\tArrayList<Integer> lv = new ArrayList<Integer>();\n\t\tint n =scan.nextInt();\n\t\tint m =scan.nextInt();\n\t\tint a[][] = new int[100][100];\n\t\tint b[][] = new int[100][100];\n\t\tfor(int i =0; i<n; i++){\n\t\t\tfor(int ii=0;ii<m;ii++){\n\t\t\t\ta[i][ii] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<m;i++){\n\t\t\tb[0][i] = scan.nextInt(); \n\t\t}\n\t\t\n\t\tfor (int i=0; i<n; i++){\n\t\t\tint keisan = 0;\n\t\t\tfor(int ii=0; ii<m; ii++){\n\t\t\t\tkeisan += a[i][ii] * b[0][ii];\n\t\t\t}\n\t\t\tSystem.out.println(keisan);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args)throws NumberFormatException, IOException{\n\t\t//System.out.print(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<String> suite = new ArrayList<String>();\n\t\tArrayList<String> hikaku = new ArrayList<String>();\n\t\tArrayList<Integer> lb = new ArrayList<Integer>();\n\t\tArrayList<Integer> lf = new ArrayList<Integer>();\n\t\tArrayList<Integer> lr = new ArrayList<Integer>();\n\t\tArrayList<Integer> lv = new ArrayList<Integer>();\n\t\tint n =scan.nextInt();\n\t\tint m =scan.nextInt();\n\t\tint a[][] = new int[100][100];\n\t\tint b[][] = new int[100][100];\n\t\tfor(int i =0; i<n; i++){\n\t\t\tfor(int ii=0;ii<m;ii++){\n\t\t\t\ta[i][ii] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<m;i++){\n\t\t\tb[0][i] = scan.nextInt(); \n\t\t}\n\t\t\n\t\tfor (int i=0; i<n; i++){\n\t\t\tint keisan = 0;\n\t\t\tfor(int ii=0; ii<m; ii++){\n\t\t\t\tkeisan += a[i][ii] * b[0][ii];\n\t\t\t}\n\t\t\tSystem.out.println(keisan);\n\t\t}\n\t}",
"main",
"{\n\t\t//System.out.print(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<String> suite = new ArrayList<String>();\n\t\tArrayList<String> hikaku = new ArrayList<String>();\n\t\tArrayList<Integer> lb = new ArrayList<Integer>();\n\t\tArrayList<Integer> lf = new ArrayList<Integer>();\n\t\tArrayList<Integer> lr = new ArrayList<Integer>();\n\t\tArrayList<Integer> lv = new ArrayList<Integer>();\n\t\tint n =scan.nextInt();\n\t\tint m =scan.nextInt();\n\t\tint a[][] = new int[100][100];\n\t\tint b[][] = new int[100][100];\n\t\tfor(int i =0; i<n; i++){\n\t\t\tfor(int ii=0;ii<m;ii++){\n\t\t\t\ta[i][ii] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<m;i++){\n\t\t\tb[0][i] = scan.nextInt(); \n\t\t}\n\t\t\n\t\tfor (int i=0; i<n; i++){\n\t\t\tint keisan = 0;\n\t\t\tfor(int ii=0; ii<m; ii++){\n\t\t\t\tkeisan += a[i][ii] * b[0][ii];\n\t\t\t}\n\t\t\tSystem.out.println(keisan);\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"ArrayList<String> suite = new ArrayList<String>();",
"suite",
"new ArrayList<String>()",
"ArrayList<String> hikaku = new ArrayList<String>();",
"hikaku",
"new ArrayList<String>()",
"ArrayList<Integer> lb = new ArrayList<Integer>();",
"lb",
"new ArrayList<Integer>()",
"ArrayList<Integer> lf = new ArrayList<Integer>();",
"lf",
"new ArrayList<Integer>()",
"ArrayList<Integer> lr = new ArrayList<Integer>();",
"lr",
"new ArrayList<Integer>()",
"ArrayList<Integer> lv = new ArrayList<Integer>();",
"lv",
"new ArrayList<Integer>()",
"int n =scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int m =scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int a[][] = new int[100][100];",
"a",
"new int[100][100]",
"100",
"100",
"int b[][] = new int[100][100];",
"b",
"new int[100][100]",
"100",
"100",
"for(int i =0; i<n; i++){\n\t\t\tfor(int ii=0;ii<m;ii++){\n\t\t\t\ta[i][ii] = scan.nextInt();\n\t\t\t}\n\t\t}",
"int i =0;",
"int i =0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int ii=0;ii<m;ii++){\n\t\t\t\ta[i][ii] = scan.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int ii=0;ii<m;ii++){\n\t\t\t\ta[i][ii] = scan.nextInt();\n\t\t\t}\n\t\t}",
"for(int ii=0;ii<m;ii++){\n\t\t\t\ta[i][ii] = scan.nextInt();\n\t\t\t}",
"int ii=0;",
"int ii=0;",
"ii",
"0",
"ii<m",
"ii",
"m",
"ii++",
"ii++",
"ii",
"{\n\t\t\t\ta[i][ii] = scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\ta[i][ii] = scan.nextInt();\n\t\t\t}",
"a[i][ii] = scan.nextInt()",
"a[i][ii]",
"a[i]",
"a",
"i",
"ii",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i=0;i<m;i++){\n\t\t\tb[0][i] = scan.nextInt(); \n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tb[0][i] = scan.nextInt(); \n\t\t}",
"{\n\t\t\tb[0][i] = scan.nextInt(); \n\t\t}",
"b[0][i] = scan.nextInt()",
"b[0][i]",
"b[0]",
"b",
"0",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int i=0; i<n; i++){\n\t\t\tint keisan = 0;\n\t\t\tfor(int ii=0; ii<m; ii++){\n\t\t\t\tkeisan += a[i][ii] * b[0][ii];\n\t\t\t}\n\t\t\tSystem.out.println(keisan);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint keisan = 0;\n\t\t\tfor(int ii=0; ii<m; ii++){\n\t\t\t\tkeisan += a[i][ii] * b[0][ii];\n\t\t\t}\n\t\t\tSystem.out.println(keisan);\n\t\t}",
"{\n\t\t\tint keisan = 0;\n\t\t\tfor(int ii=0; ii<m; ii++){\n\t\t\t\tkeisan += a[i][ii] * b[0][ii];\n\t\t\t}\n\t\t\tSystem.out.println(keisan);\n\t\t}",
"int keisan = 0;",
"keisan",
"0",
"for(int ii=0; ii<m; ii++){\n\t\t\t\tkeisan += a[i][ii] * b[0][ii];\n\t\t\t}",
"int ii=0;",
"int ii=0;",
"ii",
"0",
"ii<m",
"ii",
"m",
"ii++",
"ii++",
"ii",
"{\n\t\t\t\tkeisan += a[i][ii] * b[0][ii];\n\t\t\t}",
"{\n\t\t\t\tkeisan += a[i][ii] * b[0][ii];\n\t\t\t}",
"keisan += a[i][ii] * b[0][ii]",
"keisan",
"a[i][ii] * b[0][ii]",
"a[i][ii]",
"a[i]",
"a",
"i",
"ii",
"b[0][ii]",
"b[0]",
"b",
"0",
"ii",
"System.out.println(keisan)",
"System.out.println",
"System.out",
"System",
"System.out",
"keisan",
"String[] args",
"args"
] | import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;
class Main{
public static void main(String[] args)throws NumberFormatException, IOException{
//System.out.print(" ");
Scanner scan = new Scanner(System.in);
ArrayList<String> suite = new ArrayList<String>();
ArrayList<String> hikaku = new ArrayList<String>();
ArrayList<Integer> lb = new ArrayList<Integer>();
ArrayList<Integer> lf = new ArrayList<Integer>();
ArrayList<Integer> lr = new ArrayList<Integer>();
ArrayList<Integer> lv = new ArrayList<Integer>();
int n =scan.nextInt();
int m =scan.nextInt();
int a[][] = new int[100][100];
int b[][] = new int[100][100];
for(int i =0; i<n; i++){
for(int ii=0;ii<m;ii++){
a[i][ii] = scan.nextInt();
}
}
for(int i=0;i<m;i++){
b[0][i] = scan.nextInt();
}
for (int i=0; i<n; i++){
int keisan = 0;
for(int ii=0; ii<m; ii++){
keisan += a[i][ii] * b[0][ii];
}
System.out.println(keisan);
}
}
} |
[
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,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
8,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
86,
94
],
[
94,
95
],
[
95,
96
],
[
86,
97
],
[
98,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
110,
111
],
[
111,
112
],
[
102,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
117,
123
],
[
123,
124
],
[
123,
125
],
[
98,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
6,
132
],
[
132,
133
],
[
0,
134
],
[
134,
135
],
[
134,
136
]
] | [
"\nimport 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 m = sc.nextInt();\n\t\tint n = sc.nextInt();\n\t\tint[][] mat = new int[m][n];\n\t\tint[] vec = new int[n];\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tmat[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tvec[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tint c = 0;\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tc += mat[i][k] * vec[k];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t}\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint m = sc.nextInt();\n\t\tint n = sc.nextInt();\n\t\tint[][] mat = new int[m][n];\n\t\tint[] vec = new int[n];\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tmat[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tvec[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tint c = 0;\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tc += mat[i][k] * vec[k];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint m = sc.nextInt();\n\t\tint n = sc.nextInt();\n\t\tint[][] mat = new int[m][n];\n\t\tint[] vec = new int[n];\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tmat[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tvec[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tint c = 0;\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tc += mat[i][k] * vec[k];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint m = sc.nextInt();\n\t\tint n = sc.nextInt();\n\t\tint[][] mat = new int[m][n];\n\t\tint[] vec = new int[n];\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tmat[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tvec[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tint c = 0;\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tc += mat[i][k] * vec[k];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] mat = new int[m][n];",
"mat",
"new int[m][n]",
"m",
"n",
"int[] vec = new int[n];",
"vec",
"new int[n]",
"n",
"for(int i = 0; i < m; i++){\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tmat[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tmat[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tmat[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int k = 0; k < n; k++){\n\t\t\t\tmat[i][k] = sc.nextInt();\n\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < n",
"k",
"n",
"k++",
"k++",
"k",
"{\n\t\t\t\tmat[i][k] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tmat[i][k] = sc.nextInt();\n\t\t\t}",
"mat[i][k] = sc.nextInt()",
"mat[i][k]",
"mat[i]",
"mat",
"i",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < n; i++){\n\t\t\tvec[i] = sc.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tvec[i] = sc.nextInt();\n\t\t}",
"{\n\t\t\tvec[i] = sc.nextInt();\n\t\t}",
"vec[i] = sc.nextInt()",
"vec[i]",
"vec",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < m; i++){\n\t\t\tint c = 0;\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tc += mat[i][k] * vec[k];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tint c = 0;\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tc += mat[i][k] * vec[k];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t}",
"{\n\t\t\tint c = 0;\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tc += mat[i][k] * vec[k];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t}",
"int c = 0;",
"c",
"0",
"for(int k = 0; k < n; k++){\n\t\t\t\tc += mat[i][k] * vec[k];\n\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < n",
"k",
"n",
"k++",
"k++",
"k",
"{\n\t\t\t\tc += mat[i][k] * vec[k];\n\t\t\t}",
"{\n\t\t\t\tc += mat[i][k] * vec[k];\n\t\t\t}",
"c += mat[i][k] * vec[k]",
"c",
"mat[i][k] * vec[k]",
"mat[i][k]",
"mat[i]",
"mat",
"i",
"k",
"vec[k]",
"vec",
"k",
"System.out.println(c)",
"System.out.println",
"System.out",
"System",
"System.out",
"c",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint m = sc.nextInt();\n\t\tint n = sc.nextInt();\n\t\tint[][] mat = new int[m][n];\n\t\tint[] vec = new int[n];\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tmat[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tvec[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tint c = 0;\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tc += mat[i][k] * vec[k];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint m = sc.nextInt();\n\t\tint n = sc.nextInt();\n\t\tint[][] mat = new int[m][n];\n\t\tint[] vec = new int[n];\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tmat[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tvec[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tint c = 0;\n\t\t\tfor(int k = 0; k < n; k++){\n\t\t\t\tc += mat[i][k] * vec[k];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int m = sc.nextInt();
int n = sc.nextInt();
int[][] mat = new int[m][n];
int[] vec = new int[n];
for(int i = 0; i < m; i++){
for(int k = 0; k < n; k++){
mat[i][k] = sc.nextInt();
}
}
for(int i = 0; i < n; i++){
vec[i] = sc.nextInt();
}
for(int i = 0; i < m; i++){
int c = 0;
for(int k = 0; k < n; k++){
c += mat[i][k] * vec[k];
}
System.out.println(c);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
13,
41,
13,
20,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
14,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
64,
69
],
[
61,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
83,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
92,
94
],
[
8,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
95,
103
],
[
103,
104
],
[
104,
105
],
[
95,
106
],
[
107,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
115,
116
],
[
116,
117
],
[
8,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
118,
126
],
[
126,
127
],
[
127,
128
],
[
118,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
136,
137
],
[
136,
138
],
[
131,
139
],
[
139,
140
],
[
140,
141
],
[
131,
142
],
[
143,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
148,
154
],
[
154,
155
],
[
154,
156
],
[
8,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
157,
162
],
[
162,
163
],
[
162,
164
],
[
157,
165
],
[
165,
166
],
[
166,
167
],
[
157,
168
],
[
169,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
170,
175
],
[
175,
176
],
[
175,
177
],
[
6,
178
],
[
178,
179
]
] | [
"import java.io.*;\n\nclass Main{\n\tpublic static void main(String args[]) throws IOException{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] str = buf.readLine().split(\" \");\n\t\tint n = Integer.parseInt(str[0]);\n\t\tint m = Integer.parseInt(str[1]);\n\t\tint[][] A = new int[n][m];\n\t\tint[] B = new int[m];\n\t\tint[] C = new int[n];\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<m; i++){\n\t\t\tB[i] = Integer.parseInt(buf.readLine());\n\t\t}\n\t\tfor(int i=0; i<n; i++){\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tC[i] += A[i][j]*B[j];\n\t\t\t\t//System.out.print(A[i][j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<n; i++){\n\t\t\tSystem.out.println(C[i]);\n\t\t}\n\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"class Main{\n\tpublic static void main(String args[]) throws IOException{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] str = buf.readLine().split(\" \");\n\t\tint n = Integer.parseInt(str[0]);\n\t\tint m = Integer.parseInt(str[1]);\n\t\tint[][] A = new int[n][m];\n\t\tint[] B = new int[m];\n\t\tint[] C = new int[n];\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<m; i++){\n\t\t\tB[i] = Integer.parseInt(buf.readLine());\n\t\t}\n\t\tfor(int i=0; i<n; i++){\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tC[i] += A[i][j]*B[j];\n\t\t\t\t//System.out.print(A[i][j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<n; i++){\n\t\t\tSystem.out.println(C[i]);\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String args[]) throws IOException{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] str = buf.readLine().split(\" \");\n\t\tint n = Integer.parseInt(str[0]);\n\t\tint m = Integer.parseInt(str[1]);\n\t\tint[][] A = new int[n][m];\n\t\tint[] B = new int[m];\n\t\tint[] C = new int[n];\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<m; i++){\n\t\t\tB[i] = Integer.parseInt(buf.readLine());\n\t\t}\n\t\tfor(int i=0; i<n; i++){\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tC[i] += A[i][j]*B[j];\n\t\t\t\t//System.out.print(A[i][j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<n; i++){\n\t\t\tSystem.out.println(C[i]);\n\t\t}\n\n\t}",
"main",
"{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] str = buf.readLine().split(\" \");\n\t\tint n = Integer.parseInt(str[0]);\n\t\tint m = Integer.parseInt(str[1]);\n\t\tint[][] A = new int[n][m];\n\t\tint[] B = new int[m];\n\t\tint[] C = new int[n];\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<m; i++){\n\t\t\tB[i] = Integer.parseInt(buf.readLine());\n\t\t}\n\t\tfor(int i=0; i<n; i++){\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tC[i] += A[i][j]*B[j];\n\t\t\t\t//System.out.print(A[i][j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<n; i++){\n\t\t\tSystem.out.println(C[i]);\n\t\t}\n\n\t}",
"BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));",
"buf",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] str = buf.readLine().split(\" \");",
"str",
"buf.readLine().split(\" \")",
"buf.readLine().split",
"buf.readLine()",
"buf.readLine",
"buf",
"\" \"",
"int n = Integer.parseInt(str[0]);",
"n",
"Integer.parseInt(str[0])",
"Integer.parseInt",
"Integer",
"str[0]",
"str",
"0",
"int m = Integer.parseInt(str[1]);",
"m",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"int[][] A = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int[] B = new int[m];",
"B",
"new int[m]",
"m",
"int[] C = new int[n];",
"C",
"new int[n]",
"n",
"for(int i=0; i<n; i++){\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}",
"str = buf.readLine().split(\" \")",
"str",
"buf.readLine().split(\" \")",
"buf.readLine().split",
"buf.readLine()",
"buf.readLine",
"buf",
"\" \"",
"for(int j=0; j<m; j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}",
"{\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}",
"A[i][j] = Integer.parseInt(str[j])",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"Integer.parseInt(str[j])",
"Integer.parseInt",
"Integer",
"str[j]",
"str",
"j",
"for(int i=0; i<m; i++){\n\t\t\tB[i] = Integer.parseInt(buf.readLine());\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tB[i] = Integer.parseInt(buf.readLine());\n\t\t}",
"{\n\t\t\tB[i] = Integer.parseInt(buf.readLine());\n\t\t}",
"B[i] = Integer.parseInt(buf.readLine())",
"B[i]",
"B",
"i",
"Integer.parseInt(buf.readLine())",
"Integer.parseInt",
"Integer",
"buf.readLine()",
"buf.readLine",
"buf",
"for(int i=0; i<n; i++){\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tC[i] += A[i][j]*B[j];\n\t\t\t\t//System.out.print(A[i][j]);\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tC[i] += A[i][j]*B[j];\n\t\t\t\t//System.out.print(A[i][j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tC[i] += A[i][j]*B[j];\n\t\t\t\t//System.out.print(A[i][j]);\n\t\t\t}\n\t\t}",
"for(int j=0; j<m; j++){\n\t\t\t\tC[i] += A[i][j]*B[j];\n\t\t\t\t//System.out.print(A[i][j]);\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tC[i] += A[i][j]*B[j];\n\t\t\t\t//System.out.print(A[i][j]);\n\t\t\t}",
"{\n\t\t\t\tC[i] += A[i][j]*B[j];\n\t\t\t\t//System.out.print(A[i][j]);\n\t\t\t}",
"C[i] += A[i][j]*B[j]",
"C[i]",
"C",
"i",
"A[i][j]*B[j]",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"B[j]",
"B",
"j",
"for(int i=0; i<n; i++){\n\t\t\tSystem.out.println(C[i]);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(C[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(C[i]);\n\t\t}",
"System.out.println(C[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"C[i]",
"C",
"i",
"String args[]",
"args"
] | import java.io.*;
class Main{
public static void main(String args[]) throws IOException{
BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
String[] str = buf.readLine().split(" ");
int n = Integer.parseInt(str[0]);
int m = Integer.parseInt(str[1]);
int[][] A = new int[n][m];
int[] B = new int[m];
int[] C = new int[n];
for(int i=0; i<n; i++){
str = buf.readLine().split(" ");
for(int j=0; j<m; j++){
A[i][j] = Integer.parseInt(str[j]);
}
}
for(int i=0; i<m; i++){
B[i] = Integer.parseInt(buf.readLine());
}
for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
C[i] += A[i][j]*B[j];
//System.out.print(A[i][j]);
}
}
for(int i=0; i<n; i++){
System.out.println(C[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,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
18,
13,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
60,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
66,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
73,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
85,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
8,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
96,
104
],
[
104,
105
],
[
105,
106
],
[
96,
107
],
[
108,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
114,
115
],
[
114,
116
],
[
109,
117
],
[
117,
118
],
[
118,
119
],
[
109,
120
],
[
121,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
126,
132
],
[
132,
133
],
[
132,
134
],
[
108,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
140,
141
],
[
140,
142
],
[
6,
143
],
[
143,
144
],
[
0,
145
],
[
145,
146
],
[
145,
147
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint m=sc.nextInt();\n\t\tint A[][]=new int[n][m];\n\t\tint b[]=new int[m];\n\t\tint c[]=new int[n];\n\n\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tint ai=sc.nextInt();\n\t\t\t\tA[i][j]=ai;\n\t\t\t}\n\t\t}\n\t\tfor(int k=0;k<m;k++) {\n\t\t\tint bm=sc.nextInt();\n\t\t\tb[k]=bm;\n\t\t}\n\t\tfor(int l=0;l<n;l++) {\n\t\t\tfor(int p=0;p<m;p++) {\n\t\t\t\tc[l]+=A[l][p]*b[p];\n\t\t\t}\n\t\t\tSystem.out.println(c[l]);\n\t\t}\n\n\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint m=sc.nextInt();\n\t\tint A[][]=new int[n][m];\n\t\tint b[]=new int[m];\n\t\tint c[]=new int[n];\n\n\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tint ai=sc.nextInt();\n\t\t\t\tA[i][j]=ai;\n\t\t\t}\n\t\t}\n\t\tfor(int k=0;k<m;k++) {\n\t\t\tint bm=sc.nextInt();\n\t\t\tb[k]=bm;\n\t\t}\n\t\tfor(int l=0;l<n;l++) {\n\t\t\tfor(int p=0;p<m;p++) {\n\t\t\t\tc[l]+=A[l][p]*b[p];\n\t\t\t}\n\t\t\tSystem.out.println(c[l]);\n\t\t}\n\n\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint m=sc.nextInt();\n\t\tint A[][]=new int[n][m];\n\t\tint b[]=new int[m];\n\t\tint c[]=new int[n];\n\n\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tint ai=sc.nextInt();\n\t\t\t\tA[i][j]=ai;\n\t\t\t}\n\t\t}\n\t\tfor(int k=0;k<m;k++) {\n\t\t\tint bm=sc.nextInt();\n\t\t\tb[k]=bm;\n\t\t}\n\t\tfor(int l=0;l<n;l++) {\n\t\t\tfor(int p=0;p<m;p++) {\n\t\t\t\tc[l]+=A[l][p]*b[p];\n\t\t\t}\n\t\t\tSystem.out.println(c[l]);\n\t\t}\n\n\n\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint m=sc.nextInt();\n\t\tint A[][]=new int[n][m];\n\t\tint b[]=new int[m];\n\t\tint c[]=new int[n];\n\n\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tint ai=sc.nextInt();\n\t\t\t\tA[i][j]=ai;\n\t\t\t}\n\t\t}\n\t\tfor(int k=0;k<m;k++) {\n\t\t\tint bm=sc.nextInt();\n\t\t\tb[k]=bm;\n\t\t}\n\t\tfor(int l=0;l<n;l++) {\n\t\t\tfor(int p=0;p<m;p++) {\n\t\t\t\tc[l]+=A[l][p]*b[p];\n\t\t\t}\n\t\t\tSystem.out.println(c[l]);\n\t\t}\n\n\n\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m=sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A[][]=new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int b[]=new int[m];",
"b",
"new int[m]",
"m",
"int c[]=new int[n];",
"c",
"new int[n]",
"n",
"for(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tint ai=sc.nextInt();\n\t\t\t\tA[i][j]=ai;\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tint ai=sc.nextInt();\n\t\t\t\tA[i][j]=ai;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tint ai=sc.nextInt();\n\t\t\t\tA[i][j]=ai;\n\t\t\t}\n\t\t}",
"for(int j=0;j<m;j++) {\n\t\t\t\tint ai=sc.nextInt();\n\t\t\t\tA[i][j]=ai;\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tint ai=sc.nextInt();\n\t\t\t\tA[i][j]=ai;\n\t\t\t}",
"{\n\t\t\t\tint ai=sc.nextInt();\n\t\t\t\tA[i][j]=ai;\n\t\t\t}",
"int ai=sc.nextInt();",
"ai",
"sc.nextInt()",
"sc.nextInt",
"sc",
"A[i][j]=ai",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"ai",
"for(int k=0;k<m;k++) {\n\t\t\tint bm=sc.nextInt();\n\t\t\tb[k]=bm;\n\t\t}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<m",
"k",
"m",
"k++",
"k++",
"k",
"{\n\t\t\tint bm=sc.nextInt();\n\t\t\tb[k]=bm;\n\t\t}",
"{\n\t\t\tint bm=sc.nextInt();\n\t\t\tb[k]=bm;\n\t\t}",
"int bm=sc.nextInt();",
"bm",
"sc.nextInt()",
"sc.nextInt",
"sc",
"b[k]=bm",
"b[k]",
"b",
"k",
"bm",
"for(int l=0;l<n;l++) {\n\t\t\tfor(int p=0;p<m;p++) {\n\t\t\t\tc[l]+=A[l][p]*b[p];\n\t\t\t}\n\t\t\tSystem.out.println(c[l]);\n\t\t}",
"int l=0;",
"int l=0;",
"l",
"0",
"l<n",
"l",
"n",
"l++",
"l++",
"l",
"{\n\t\t\tfor(int p=0;p<m;p++) {\n\t\t\t\tc[l]+=A[l][p]*b[p];\n\t\t\t}\n\t\t\tSystem.out.println(c[l]);\n\t\t}",
"{\n\t\t\tfor(int p=0;p<m;p++) {\n\t\t\t\tc[l]+=A[l][p]*b[p];\n\t\t\t}\n\t\t\tSystem.out.println(c[l]);\n\t\t}",
"for(int p=0;p<m;p++) {\n\t\t\t\tc[l]+=A[l][p]*b[p];\n\t\t\t}",
"int p=0;",
"int p=0;",
"p",
"0",
"p<m",
"p",
"m",
"p++",
"p++",
"p",
"{\n\t\t\t\tc[l]+=A[l][p]*b[p];\n\t\t\t}",
"{\n\t\t\t\tc[l]+=A[l][p]*b[p];\n\t\t\t}",
"c[l]+=A[l][p]*b[p]",
"c[l]",
"c",
"l",
"A[l][p]*b[p]",
"A[l][p]",
"A[l]",
"A",
"l",
"p",
"b[p]",
"b",
"p",
"System.out.println(c[l])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[l]",
"c",
"l",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint m=sc.nextInt();\n\t\tint A[][]=new int[n][m];\n\t\tint b[]=new int[m];\n\t\tint c[]=new int[n];\n\n\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tint ai=sc.nextInt();\n\t\t\t\tA[i][j]=ai;\n\t\t\t}\n\t\t}\n\t\tfor(int k=0;k<m;k++) {\n\t\t\tint bm=sc.nextInt();\n\t\t\tb[k]=bm;\n\t\t}\n\t\tfor(int l=0;l<n;l++) {\n\t\t\tfor(int p=0;p<m;p++) {\n\t\t\t\tc[l]+=A[l][p]*b[p];\n\t\t\t}\n\t\t\tSystem.out.println(c[l]);\n\t\t}\n\n\n\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint m=sc.nextInt();\n\t\tint A[][]=new int[n][m];\n\t\tint b[]=new int[m];\n\t\tint c[]=new int[n];\n\n\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tint ai=sc.nextInt();\n\t\t\t\tA[i][j]=ai;\n\t\t\t}\n\t\t}\n\t\tfor(int k=0;k<m;k++) {\n\t\t\tint bm=sc.nextInt();\n\t\t\tb[k]=bm;\n\t\t}\n\t\tfor(int l=0;l<n;l++) {\n\t\t\tfor(int p=0;p<m;p++) {\n\t\t\t\tc[l]+=A[l][p]*b[p];\n\t\t\t}\n\t\t\tSystem.out.println(c[l]);\n\t\t}\n\n\n\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int m=sc.nextInt();
int A[][]=new int[n][m];
int b[]=new int[m];
int c[]=new int[n];
for(int i=0;i<n;i++) {
for(int j=0;j<m;j++) {
int ai=sc.nextInt();
A[i][j]=ai;
}
}
for(int k=0;k<m;k++) {
int bm=sc.nextInt();
b[k]=bm;
}
for(int l=0;l<n;l++) {
for(int p=0;p<m;p++) {
c[l]+=A[l][p]*b[p];
}
System.out.println(c[l]);
}
}
}
|
[
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,
13,
41,
13,
20,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
17,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
17,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
175,
5
],
[
175,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
51,
62
],
[
63,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
64,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
74,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
76,
87
],
[
88,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
89,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
99,
100
],
[
8,
101
],
[
101,
102
],
[
101,
103
],
[
8,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
106,
114
],
[
114,
115
],
[
115,
116
],
[
106,
117
],
[
118,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
119,
127
],
[
127,
128
],
[
128,
129
],
[
119,
130
],
[
131,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
132,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
138,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
8,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
149,
154
],
[
154,
155
],
[
154,
156
],
[
149,
157
],
[
157,
158
],
[
158,
159
],
[
149,
160
],
[
161,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
6,
172
],
[
172,
173
],
[
0,
174
],
[
174,
175
],
[
174,
176
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n\n int[][] A = new int[n][m];\n int[][] B = new int[m][1];\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n for (int i = 0; i < m; i++) {\n B[i][0] = Integer.parseInt(sc.next());\n }\n\n int[][] C = new int[n][1];\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n C[i][0] += A[i][j] * B[j][0];\n }\n }\n\n for (int i = 0; i < n; i++) {\n System.out.println(C[i][0]);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n\n int[][] A = new int[n][m];\n int[][] B = new int[m][1];\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n for (int i = 0; i < m; i++) {\n B[i][0] = Integer.parseInt(sc.next());\n }\n\n int[][] C = new int[n][1];\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n C[i][0] += A[i][j] * B[j][0];\n }\n }\n\n for (int i = 0; i < n; i++) {\n System.out.println(C[i][0]);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n\n int[][] A = new int[n][m];\n int[][] B = new int[m][1];\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n for (int i = 0; i < m; i++) {\n B[i][0] = Integer.parseInt(sc.next());\n }\n\n int[][] C = new int[n][1];\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n C[i][0] += A[i][j] * B[j][0];\n }\n }\n\n for (int i = 0; i < n; i++) {\n System.out.println(C[i][0]);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n\n int[][] A = new int[n][m];\n int[][] B = new int[m][1];\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n for (int i = 0; i < m; i++) {\n B[i][0] = Integer.parseInt(sc.next());\n }\n\n int[][] C = new int[n][1];\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n C[i][0] += A[i][j] * B[j][0];\n }\n }\n\n for (int i = 0; i < n; i++) {\n System.out.println(C[i][0]);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.next());",
"n",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int m = Integer.parseInt(sc.next());",
"m",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int[][] A = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int[][] B = new int[m][1];",
"B",
"new int[m][1]",
"m",
"1",
"for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(sc.next());\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(sc.next());\n }\n }",
"{\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(sc.next());\n }\n }",
"for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(sc.next());\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n A[i][j] = Integer.parseInt(sc.next());\n }",
"{\n A[i][j] = Integer.parseInt(sc.next());\n }",
"A[i][j] = Integer.parseInt(sc.next())",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"for (int i = 0; i < m; i++) {\n B[i][0] = Integer.parseInt(sc.next());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n B[i][0] = Integer.parseInt(sc.next());\n }",
"{\n B[i][0] = Integer.parseInt(sc.next());\n }",
"B[i][0] = Integer.parseInt(sc.next())",
"B[i][0]",
"B[i]",
"B",
"i",
"0",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int[][] C = new int[n][1];",
"C",
"new int[n][1]",
"n",
"1",
"for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n C[i][0] += A[i][j] * B[j][0];\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < m; j++) {\n C[i][0] += A[i][j] * B[j][0];\n }\n }",
"{\n for (int j = 0; j < m; j++) {\n C[i][0] += A[i][j] * B[j][0];\n }\n }",
"for (int j = 0; j < m; j++) {\n C[i][0] += A[i][j] * B[j][0];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n C[i][0] += A[i][j] * B[j][0];\n }",
"{\n C[i][0] += A[i][j] * B[j][0];\n }",
"C[i][0] += A[i][j] * B[j][0]",
"C[i][0]",
"C[i]",
"C",
"i",
"0",
"A[i][j] * B[j][0]",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"B[j][0]",
"B[j]",
"B",
"j",
"0",
"for (int i = 0; i < n; i++) {\n System.out.println(C[i][0]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n System.out.println(C[i][0]);\n }",
"{\n System.out.println(C[i][0]);\n }",
"System.out.println(C[i][0])",
"System.out.println",
"System.out",
"System",
"System.out",
"C[i][0]",
"C[i]",
"C",
"i",
"0",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n\n int[][] A = new int[n][m];\n int[][] B = new int[m][1];\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n for (int i = 0; i < m; i++) {\n B[i][0] = Integer.parseInt(sc.next());\n }\n\n int[][] C = new int[n][1];\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n C[i][0] += A[i][j] * B[j][0];\n }\n }\n\n for (int i = 0; i < n; i++) {\n System.out.println(C[i][0]);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n\n int[][] A = new int[n][m];\n int[][] B = new int[m][1];\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n for (int i = 0; i < m; i++) {\n B[i][0] = Integer.parseInt(sc.next());\n }\n\n int[][] C = new int[n][1];\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n C[i][0] += A[i][j] * B[j][0];\n }\n }\n\n for (int i = 0; i < n; i++) {\n System.out.println(C[i][0]);\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.next());
int m = Integer.parseInt(sc.next());
int[][] A = new int[n][m];
int[][] B = new int[m][1];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
A[i][j] = Integer.parseInt(sc.next());
}
}
for (int i = 0; i < m; i++) {
B[i][0] = Integer.parseInt(sc.next());
}
int[][] C = new int[n][1];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
C[i][0] += A[i][j] * B[j][0];
}
}
for (int i = 0; i < n; i++) {
System.out.println(C[i][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,
2,
13,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
13,
2,
2,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
130,
5
],
[
130,
6
],
[
6,
7
],
[
6,
8
],
[
130,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
11,
32
],
[
32,
33
],
[
32,
34
],
[
11,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
36,
46
],
[
46,
47
],
[
47,
48
],
[
36,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
11,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
58,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
76,
77
],
[
11,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
78,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
91,
99
],
[
99,
100
],
[
100,
101
],
[
91,
102
],
[
103,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
108,
116
],
[
116,
117
],
[
116,
118
],
[
90,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
9,
127
],
[
127,
128
],
[
0,
129
],
[
129,
130
],
[
129,
131
]
] | [
"import java.util.*;\n\npublic class Main {\n private static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n int n = sc.nextInt();\n int m = sc.nextInt();\n int[] a = new int[n*m];\n int[] b = new int[m];\n int[] ret = new int[n];\n for (int i = 0;i < n*m;i++) {\n a[i] = sc.nextInt();\n }\n for (int i = 0;i < m;i++) {\n b[i] = sc.nextInt();\n }\n for (int i = 0;i < n;i++) {\n for (int j = 0;j < m;j++) {\n ret[i] += a[i * m + j] * b[j];\n }\n System.out.println(ret[i]);\n }\n \n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n private static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n int n = sc.nextInt();\n int m = sc.nextInt();\n int[] a = new int[n*m];\n int[] b = new int[m];\n int[] ret = new int[n];\n for (int i = 0;i < n*m;i++) {\n a[i] = sc.nextInt();\n }\n for (int i = 0;i < m;i++) {\n b[i] = sc.nextInt();\n }\n for (int i = 0;i < n;i++) {\n for (int j = 0;j < m;j++) {\n ret[i] += a[i * m + j] * b[j];\n }\n System.out.println(ret[i]);\n }\n \n }\n}",
"Main",
"private static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) throws Exception {\n int n = sc.nextInt();\n int m = sc.nextInt();\n int[] a = new int[n*m];\n int[] b = new int[m];\n int[] ret = new int[n];\n for (int i = 0;i < n*m;i++) {\n a[i] = sc.nextInt();\n }\n for (int i = 0;i < m;i++) {\n b[i] = sc.nextInt();\n }\n for (int i = 0;i < n;i++) {\n for (int j = 0;j < m;j++) {\n ret[i] += a[i * m + j] * b[j];\n }\n System.out.println(ret[i]);\n }\n \n }",
"main",
"{\n int n = sc.nextInt();\n int m = sc.nextInt();\n int[] a = new int[n*m];\n int[] b = new int[m];\n int[] ret = new int[n];\n for (int i = 0;i < n*m;i++) {\n a[i] = sc.nextInt();\n }\n for (int i = 0;i < m;i++) {\n b[i] = sc.nextInt();\n }\n for (int i = 0;i < n;i++) {\n for (int j = 0;j < m;j++) {\n ret[i] += a[i * m + j] * b[j];\n }\n System.out.println(ret[i]);\n }\n \n }",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] a = new int[n*m];",
"a",
"new int[n*m]",
"n*m",
"n",
"m",
"int[] b = new int[m];",
"b",
"new int[m]",
"m",
"int[] ret = new int[n];",
"ret",
"new int[n]",
"n",
"for (int i = 0;i < n*m;i++) {\n a[i] = sc.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n*m",
"i",
"n*m",
"n",
"m",
"i++",
"i++",
"i",
"{\n a[i] = sc.nextInt();\n }",
"{\n a[i] = sc.nextInt();\n }",
"a[i] = sc.nextInt()",
"a[i]",
"a",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0;i < m;i++) {\n b[i] = sc.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n b[i] = sc.nextInt();\n }",
"{\n b[i] = sc.nextInt();\n }",
"b[i] = sc.nextInt()",
"b[i]",
"b",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0;i < n;i++) {\n for (int j = 0;j < m;j++) {\n ret[i] += a[i * m + j] * b[j];\n }\n System.out.println(ret[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j = 0;j < m;j++) {\n ret[i] += a[i * m + j] * b[j];\n }\n System.out.println(ret[i]);\n }",
"{\n for (int j = 0;j < m;j++) {\n ret[i] += a[i * m + j] * b[j];\n }\n System.out.println(ret[i]);\n }",
"for (int j = 0;j < m;j++) {\n ret[i] += a[i * m + j] * b[j];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n ret[i] += a[i * m + j] * b[j];\n }",
"{\n ret[i] += a[i * m + j] * b[j];\n }",
"ret[i] += a[i * m + j] * b[j]",
"ret[i]",
"ret",
"i",
"a[i * m + j] * b[j]",
"a[i * m + j]",
"a",
"i * m + j",
"i * m",
"i",
"m",
"j",
"b[j]",
"b",
"j",
"System.out.println(ret[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"ret[i]",
"ret",
"i",
"String[] args",
"args",
"public class Main {\n private static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n int n = sc.nextInt();\n int m = sc.nextInt();\n int[] a = new int[n*m];\n int[] b = new int[m];\n int[] ret = new int[n];\n for (int i = 0;i < n*m;i++) {\n a[i] = sc.nextInt();\n }\n for (int i = 0;i < m;i++) {\n b[i] = sc.nextInt();\n }\n for (int i = 0;i < n;i++) {\n for (int j = 0;j < m;j++) {\n ret[i] += a[i * m + j] * b[j];\n }\n System.out.println(ret[i]);\n }\n \n }\n}",
"public class Main {\n private static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n int n = sc.nextInt();\n int m = sc.nextInt();\n int[] a = new int[n*m];\n int[] b = new int[m];\n int[] ret = new int[n];\n for (int i = 0;i < n*m;i++) {\n a[i] = sc.nextInt();\n }\n for (int i = 0;i < m;i++) {\n b[i] = sc.nextInt();\n }\n for (int i = 0;i < n;i++) {\n for (int j = 0;j < m;j++) {\n ret[i] += a[i * m + j] * b[j];\n }\n System.out.println(ret[i]);\n }\n \n }\n}",
"Main"
] | import java.util.*;
public class Main {
private static Scanner sc = new Scanner(System.in);
public static void main(String[] args) throws Exception {
int n = sc.nextInt();
int m = sc.nextInt();
int[] a = new int[n*m];
int[] b = new int[m];
int[] ret = new int[n];
for (int i = 0;i < n*m;i++) {
a[i] = sc.nextInt();
}
for (int i = 0;i < m;i++) {
b[i] = sc.nextInt();
}
for (int i = 0;i < n;i++) {
for (int j = 0;j < m;j++) {
ret[i] += a[i * m + j] * b[j];
}
System.out.println(ret[i]);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
0,
13,
4,
18,
4,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
20,
13,
13,
0,
13,
20,
13,
0,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
185,
11
],
[
185,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
14,
19
],
[
19,
20
],
[
14,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
14,
25
],
[
25,
26
],
[
14,
27
],
[
27,
28
],
[
27,
29
],
[
14,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
32,
37
],
[
14,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
43,
45
],
[
14,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
51,
53
],
[
14,
54
],
[
54,
55
],
[
54,
56
],
[
14,
59
],
[
59,
60
],
[
59,
61
],
[
14,
63
],
[
63,
64
],
[
63,
65
],
[
14,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
82,
87
],
[
79,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
88,
96
],
[
96,
97
],
[
97,
98
],
[
88,
99
],
[
100,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
101,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
110,
111
],
[
110,
112
],
[
14,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
113,
121
],
[
121,
122
],
[
122,
123
],
[
113,
124
],
[
125,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
128,
131
],
[
131,
132
],
[
132,
133
],
[
125,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
139,
140
],
[
139,
141
],
[
134,
142
],
[
142,
143
],
[
143,
144
],
[
134,
145
],
[
146,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
151,
157
],
[
14,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
158,
163
],
[
163,
164
],
[
163,
165
],
[
158,
166
],
[
166,
167
],
[
167,
168
],
[
158,
169
],
[
170,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
171,
176
],
[
176,
177
],
[
176,
178
],
[
14,
179
],
[
179,
180
],
[
180,
181
],
[
12,
182
],
[
182,
183
],
[
0,
184
],
[
184,
185
],
[
184,
186
]
] | [
"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\tint n,m;\n\t\tint[] b,c;\n\t\tint[][] A;\n\t\tString[] str;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tstr = br.readLine().split(\" \");\n\t\tn = Integer.parseInt(str[0]);\n\t\tm = Integer.parseInt(str[1]);\n\t\tA = new int[n][m];\n\t\tb = new int[m];\n\t\tc = new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<m;i++){\n\t\t\tint num = Integer.parseInt(br.readLine());\n\t\t\tfor(int j=0;j<n;j++){\n\t\t\t\tc[j] += A[j][i] * num;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<n;i++){\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t\tbr.close();\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tint n,m;\n\t\tint[] b,c;\n\t\tint[][] A;\n\t\tString[] str;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tstr = br.readLine().split(\" \");\n\t\tn = Integer.parseInt(str[0]);\n\t\tm = Integer.parseInt(str[1]);\n\t\tA = new int[n][m];\n\t\tb = new int[m];\n\t\tc = new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<m;i++){\n\t\t\tint num = Integer.parseInt(br.readLine());\n\t\t\tfor(int j=0;j<n;j++){\n\t\t\t\tc[j] += A[j][i] * num;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<n;i++){\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t\tbr.close();\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\t\tint n,m;\n\t\tint[] b,c;\n\t\tint[][] A;\n\t\tString[] str;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tstr = br.readLine().split(\" \");\n\t\tn = Integer.parseInt(str[0]);\n\t\tm = Integer.parseInt(str[1]);\n\t\tA = new int[n][m];\n\t\tb = new int[m];\n\t\tc = new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<m;i++){\n\t\t\tint num = Integer.parseInt(br.readLine());\n\t\t\tfor(int j=0;j<n;j++){\n\t\t\t\tc[j] += A[j][i] * num;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<n;i++){\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t\tbr.close();\n\t}",
"main",
"{\n\t\tint n,m;\n\t\tint[] b,c;\n\t\tint[][] A;\n\t\tString[] str;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tstr = br.readLine().split(\" \");\n\t\tn = Integer.parseInt(str[0]);\n\t\tm = Integer.parseInt(str[1]);\n\t\tA = new int[n][m];\n\t\tb = new int[m];\n\t\tc = new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<m;i++){\n\t\t\tint num = Integer.parseInt(br.readLine());\n\t\t\tfor(int j=0;j<n;j++){\n\t\t\t\tc[j] += A[j][i] * num;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<n;i++){\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t\tbr.close();\n\t}",
"int n",
"n",
"m;",
"m",
"int[] b",
"b",
"c;",
"c",
"int[][] A;",
"A",
"String[] str;",
"str",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"str = br.readLine().split(\" \")",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"n = Integer.parseInt(str[0])",
"n",
"Integer.parseInt(str[0])",
"Integer.parseInt",
"Integer",
"str[0]",
"str",
"0",
"m = Integer.parseInt(str[1])",
"m",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"A = new int[n][m]",
"A",
"new int[n][m]",
"n",
"m",
"b = new int[m]",
"b",
"new int[m]",
"m",
"c = new int[n]",
"c",
"new int[n]",
"n",
"for(int i=0;i<n;i++){\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}",
"str = br.readLine().split(\" \")",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(int j=0;j<m;j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}",
"{\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}",
"A[i][j] = Integer.parseInt(str[j])",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"Integer.parseInt(str[j])",
"Integer.parseInt",
"Integer",
"str[j]",
"str",
"j",
"for(int i=0;i<m;i++){\n\t\t\tint num = Integer.parseInt(br.readLine());\n\t\t\tfor(int j=0;j<n;j++){\n\t\t\t\tc[j] += A[j][i] * num;\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tint num = Integer.parseInt(br.readLine());\n\t\t\tfor(int j=0;j<n;j++){\n\t\t\t\tc[j] += A[j][i] * num;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint num = Integer.parseInt(br.readLine());\n\t\t\tfor(int j=0;j<n;j++){\n\t\t\t\tc[j] += A[j][i] * num;\n\t\t\t}\n\t\t}",
"int num = Integer.parseInt(br.readLine());",
"num",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int j=0;j<n;j++){\n\t\t\t\tc[j] += A[j][i] * num;\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<n",
"j",
"n",
"j++",
"j++",
"j",
"{\n\t\t\t\tc[j] += A[j][i] * num;\n\t\t\t}",
"{\n\t\t\t\tc[j] += A[j][i] * num;\n\t\t\t}",
"c[j] += A[j][i] * num",
"c[j]",
"c",
"j",
"A[j][i] * num",
"A[j][i]",
"A[j]",
"A",
"j",
"i",
"num",
"for(int i=0;i<n;i++){\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"System.out.println(c[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[i]",
"c",
"i",
"br.close()",
"br.close",
"br",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tint n,m;\n\t\tint[] b,c;\n\t\tint[][] A;\n\t\tString[] str;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tstr = br.readLine().split(\" \");\n\t\tn = Integer.parseInt(str[0]);\n\t\tm = Integer.parseInt(str[1]);\n\t\tA = new int[n][m];\n\t\tb = new int[m];\n\t\tc = new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<m;i++){\n\t\t\tint num = Integer.parseInt(br.readLine());\n\t\t\tfor(int j=0;j<n;j++){\n\t\t\t\tc[j] += A[j][i] * num;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<n;i++){\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t\tbr.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tint n,m;\n\t\tint[] b,c;\n\t\tint[][] A;\n\t\tString[] str;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tstr = br.readLine().split(\" \");\n\t\tn = Integer.parseInt(str[0]);\n\t\tm = Integer.parseInt(str[1]);\n\t\tA = new int[n][m];\n\t\tb = new int[m];\n\t\tc = new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<m;i++){\n\t\t\tint num = Integer.parseInt(br.readLine());\n\t\t\tfor(int j=0;j<n;j++){\n\t\t\t\tc[j] += A[j][i] * num;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<n;i++){\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t\tbr.close();\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException{
int n,m;
int[] b,c;
int[][] A;
String[] str;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
str = br.readLine().split(" ");
n = Integer.parseInt(str[0]);
m = Integer.parseInt(str[1]);
A = new int[n][m];
b = new int[m];
c = new int[n];
for(int i=0;i<n;i++){
str = br.readLine().split(" ");
for(int j=0;j<m;j++){
A[i][j] = Integer.parseInt(str[j]);
}
}
for(int i=0;i<m;i++){
int num = Integer.parseInt(br.readLine());
for(int j=0;j<n;j++){
c[j] += A[j][i] * num;
}
}
for(int i=0;i<n;i++){
System.out.println(c[i]);
}
br.close();
}
} |
[
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,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
90,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
102,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
113,
114
],
[
113,
115
],
[
108,
116
],
[
116,
117
],
[
117,
118
],
[
108,
119
],
[
120,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
125,
131
],
[
131,
132
],
[
131,
133
],
[
102,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
139,
140
],
[
139,
141
],
[
8,
142
],
[
142,
143
],
[
143,
144
],
[
6,
145
],
[
145,
146
],
[
0,
147
],
[
147,
148
],
[
147,
149
]
] | [
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt(),m=sc.nextInt();\n int[][] a = new int[n][m]; //メモリの動的確保\n int[] b = new int[m];\n int[] r = new int[n];\n for(int i=0;i < n;i++){\n for(int j=0;j < m;j++){\n a[i][j] = sc.nextInt();\n }\n }\n for(int j = 0;j < m;j++){\n b[j] = sc.nextInt();\n }\n for(int i = 0;i < n;i++){\n r[i] = 0;\n for(int j = 0;j < m;j++){\n r[i] += a[i][j]*b[j];\n }\n System.out.println(r[i]);\n }\n sc.close();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt(),m=sc.nextInt();\n int[][] a = new int[n][m]; //メモリの動的確保\n int[] b = new int[m];\n int[] r = new int[n];\n for(int i=0;i < n;i++){\n for(int j=0;j < m;j++){\n a[i][j] = sc.nextInt();\n }\n }\n for(int j = 0;j < m;j++){\n b[j] = sc.nextInt();\n }\n for(int i = 0;i < n;i++){\n r[i] = 0;\n for(int j = 0;j < m;j++){\n r[i] += a[i][j]*b[j];\n }\n System.out.println(r[i]);\n }\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt(),m=sc.nextInt();\n int[][] a = new int[n][m]; //メモリの動的確保\n int[] b = new int[m];\n int[] r = new int[n];\n for(int i=0;i < n;i++){\n for(int j=0;j < m;j++){\n a[i][j] = sc.nextInt();\n }\n }\n for(int j = 0;j < m;j++){\n b[j] = sc.nextInt();\n }\n for(int i = 0;i < n;i++){\n r[i] = 0;\n for(int j = 0;j < m;j++){\n r[i] += a[i][j]*b[j];\n }\n System.out.println(r[i]);\n }\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt(),m=sc.nextInt();\n int[][] a = new int[n][m]; //メモリの動的確保\n int[] b = new int[m];\n int[] r = new int[n];\n for(int i=0;i < n;i++){\n for(int j=0;j < m;j++){\n a[i][j] = sc.nextInt();\n }\n }\n for(int j = 0;j < m;j++){\n b[j] = sc.nextInt();\n }\n for(int i = 0;i < n;i++){\n r[i] = 0;\n for(int j = 0;j < m;j++){\n r[i] += a[i][j]*b[j];\n }\n System.out.println(r[i]);\n }\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"m=sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] a = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[] b = new int[m];",
"b",
"new int[m]",
"m",
"int[] r = new int[n];",
"r",
"new int[n]",
"n",
"for(int i=0;i < n;i++){\n for(int j=0;j < m;j++){\n a[i][j] = sc.nextInt();\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j=0;j < m;j++){\n a[i][j] = sc.nextInt();\n }\n }",
"{\n for(int j=0;j < m;j++){\n a[i][j] = sc.nextInt();\n }\n }",
"for(int j=0;j < m;j++){\n a[i][j] = sc.nextInt();\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n a[i][j] = sc.nextInt();\n }",
"{\n a[i][j] = sc.nextInt();\n }",
"a[i][j] = sc.nextInt()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j = 0;j < m;j++){\n b[j] = sc.nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n b[j] = sc.nextInt();\n }",
"{\n b[j] = sc.nextInt();\n }",
"b[j] = sc.nextInt()",
"b[j]",
"b",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0;i < n;i++){\n r[i] = 0;\n for(int j = 0;j < m;j++){\n r[i] += a[i][j]*b[j];\n }\n System.out.println(r[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n r[i] = 0;\n for(int j = 0;j < m;j++){\n r[i] += a[i][j]*b[j];\n }\n System.out.println(r[i]);\n }",
"{\n r[i] = 0;\n for(int j = 0;j < m;j++){\n r[i] += a[i][j]*b[j];\n }\n System.out.println(r[i]);\n }",
"r[i] = 0",
"r[i]",
"r",
"i",
"0",
"for(int j = 0;j < m;j++){\n r[i] += a[i][j]*b[j];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n r[i] += a[i][j]*b[j];\n }",
"{\n r[i] += a[i][j]*b[j];\n }",
"r[i] += a[i][j]*b[j]",
"r[i]",
"r",
"i",
"a[i][j]*b[j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"System.out.println(r[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"r[i]",
"r",
"i",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt(),m=sc.nextInt();\n int[][] a = new int[n][m]; //メモリの動的確保\n int[] b = new int[m];\n int[] r = new int[n];\n for(int i=0;i < n;i++){\n for(int j=0;j < m;j++){\n a[i][j] = sc.nextInt();\n }\n }\n for(int j = 0;j < m;j++){\n b[j] = sc.nextInt();\n }\n for(int i = 0;i < n;i++){\n r[i] = 0;\n for(int j = 0;j < m;j++){\n r[i] += a[i][j]*b[j];\n }\n System.out.println(r[i]);\n }\n sc.close();\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt(),m=sc.nextInt();\n int[][] a = new int[n][m]; //メモリの動的確保\n int[] b = new int[m];\n int[] r = new int[n];\n for(int i=0;i < n;i++){\n for(int j=0;j < m;j++){\n a[i][j] = sc.nextInt();\n }\n }\n for(int j = 0;j < m;j++){\n b[j] = sc.nextInt();\n }\n for(int i = 0;i < n;i++){\n r[i] = 0;\n for(int j = 0;j < m;j++){\n r[i] += a[i][j]*b[j];\n }\n System.out.println(r[i]);\n }\n sc.close();\n }\n}",
"Main"
] | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n=sc.nextInt(),m=sc.nextInt();
int[][] a = new int[n][m]; //メモリの動的確保
int[] b = new int[m];
int[] r = new int[n];
for(int i=0;i < n;i++){
for(int j=0;j < m;j++){
a[i][j] = sc.nextInt();
}
}
for(int j = 0;j < m;j++){
b[j] = sc.nextInt();
}
for(int i = 0;i < n;i++){
r[i] = 0;
for(int j = 0;j < m;j++){
r[i] += a[i][j]*b[j];
}
System.out.println(r[i]);
}
sc.close();
}
}
|
[
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,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
140,
8
],
[
140,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
11,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
39,
41
],
[
34,
42
],
[
42,
43
],
[
43,
44
],
[
34,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
60,
66
],
[
66,
67
],
[
67,
68
],
[
11,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
69,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
11,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
97,
98
],
[
98,
99
],
[
89,
100
],
[
101,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
105,
113
],
[
113,
114
],
[
114,
115
],
[
105,
116
],
[
117,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
122,
128
],
[
128,
129
],
[
128,
130
],
[
101,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
9,
137
],
[
137,
138
],
[
0,
139
],
[
139,
140
],
[
139,
141
]
] | [
"import java.util.*;\nimport java.io.*;\n\npublic class 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\n int[][] A = new int[n][m];\n int[] B = new int[m];\n\n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n A[i][j] = scanner.nextInt();\n }\n }\n\n for(int i=0;i<m;i++){\n B[i] = scanner.nextInt();\n }\n\n\n for(int i=0;i<n;i++){\n int sum = 0;\n for(int j=0;j<m;j++){\n sum = sum + (A[i][j]*B[j]);\n }\n System.out.println(sum);\n }\n }\n}\n",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class 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\n int[][] A = new int[n][m];\n int[] B = new int[m];\n\n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n A[i][j] = scanner.nextInt();\n }\n }\n\n for(int i=0;i<m;i++){\n B[i] = scanner.nextInt();\n }\n\n\n for(int i=0;i<n;i++){\n int sum = 0;\n for(int j=0;j<m;j++){\n sum = sum + (A[i][j]*B[j]);\n }\n System.out.println(sum);\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int m = scanner.nextInt();\n\n int[][] A = new int[n][m];\n int[] B = new int[m];\n\n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n A[i][j] = scanner.nextInt();\n }\n }\n\n for(int i=0;i<m;i++){\n B[i] = scanner.nextInt();\n }\n\n\n for(int i=0;i<n;i++){\n int sum = 0;\n for(int j=0;j<m;j++){\n sum = sum + (A[i][j]*B[j]);\n }\n System.out.println(sum);\n }\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int m = scanner.nextInt();\n\n int[][] A = new int[n][m];\n int[] B = new int[m];\n\n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n A[i][j] = scanner.nextInt();\n }\n }\n\n for(int i=0;i<m;i++){\n B[i] = scanner.nextInt();\n }\n\n\n for(int i=0;i<n;i++){\n int sum = 0;\n for(int j=0;j<m;j++){\n sum = sum + (A[i][j]*B[j]);\n }\n System.out.println(sum);\n }\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int m = scanner.nextInt();",
"m",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int[][] A = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int[] B = new int[m];",
"B",
"new int[m]",
"m",
"for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n A[i][j] = scanner.nextInt();\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j=0;j<m;j++){\n A[i][j] = scanner.nextInt();\n }\n }",
"{\n for(int j=0;j<m;j++){\n A[i][j] = scanner.nextInt();\n }\n }",
"for(int j=0;j<m;j++){\n A[i][j] = scanner.nextInt();\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n A[i][j] = scanner.nextInt();\n }",
"{\n A[i][j] = scanner.nextInt();\n }",
"A[i][j] = scanner.nextInt()",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for(int i=0;i<m;i++){\n B[i] = scanner.nextInt();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n B[i] = scanner.nextInt();\n }",
"{\n B[i] = scanner.nextInt();\n }",
"B[i] = scanner.nextInt()",
"B[i]",
"B",
"i",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for(int i=0;i<n;i++){\n int sum = 0;\n for(int j=0;j<m;j++){\n sum = sum + (A[i][j]*B[j]);\n }\n System.out.println(sum);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int sum = 0;\n for(int j=0;j<m;j++){\n sum = sum + (A[i][j]*B[j]);\n }\n System.out.println(sum);\n }",
"{\n int sum = 0;\n for(int j=0;j<m;j++){\n sum = sum + (A[i][j]*B[j]);\n }\n System.out.println(sum);\n }",
"int sum = 0;",
"sum",
"0",
"for(int j=0;j<m;j++){\n sum = sum + (A[i][j]*B[j]);\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n sum = sum + (A[i][j]*B[j]);\n }",
"{\n sum = sum + (A[i][j]*B[j]);\n }",
"sum = sum + (A[i][j]*B[j])",
"sum",
"sum + (A[i][j]*B[j])",
"sum",
"(A[i][j]*B[j])",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"B[j]",
"B",
"j",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class 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\n int[][] A = new int[n][m];\n int[] B = new int[m];\n\n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n A[i][j] = scanner.nextInt();\n }\n }\n\n for(int i=0;i<m;i++){\n B[i] = scanner.nextInt();\n }\n\n\n for(int i=0;i<n;i++){\n int sum = 0;\n for(int j=0;j<m;j++){\n sum = sum + (A[i][j]*B[j]);\n }\n System.out.println(sum);\n }\n }\n}",
"public class 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\n int[][] A = new int[n][m];\n int[] B = new int[m];\n\n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n A[i][j] = scanner.nextInt();\n }\n }\n\n for(int i=0;i<m;i++){\n B[i] = scanner.nextInt();\n }\n\n\n for(int i=0;i<n;i++){\n int sum = 0;\n for(int j=0;j<m;j++){\n sum = sum + (A[i][j]*B[j]);\n }\n System.out.println(sum);\n }\n }\n}",
"Main"
] | import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int m = scanner.nextInt();
int[][] A = new int[n][m];
int[] B = new int[m];
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
A[i][j] = scanner.nextInt();
}
}
for(int i=0;i<m;i++){
B[i] = scanner.nextInt();
}
for(int i=0;i<n;i++){
int sum = 0;
for(int j=0;j<m;j++){
sum = sum + (A[i][j]*B[j]);
}
System.out.println(sum);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
30,
3,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
8,
2,
13,
17,
17,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
129,
5
],
[
129,
6
],
[
6,
7
],
[
6,
8
],
[
129,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
17,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
17,
33
],
[
33,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
39,
41
],
[
35,
42
],
[
42,
43
],
[
42,
44
],
[
33,
45
],
[
45,
46
],
[
33,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
47,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
62,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
62,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
75,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
75,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
88,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
88,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
101,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
113,
118
],
[
101,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
9,
126
],
[
126,
127
],
[
0,
128
],
[
128,
129
],
[
128,
130
]
] | [
"import java.util.*;\n\npublic class Main {\n public static final int MAX = 100;\n\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n while(true) {\n int m = scn.nextInt(), f = scn.nextInt(), r = scn.nextInt();\n if(m < 0 && f < 0 && r < 0) {\n break;\n } else if(m < 0 || f < 0) {\n System.out.println(\"F\");\n } else if(m + f > 79) {\n System.out.println(\"A\");\n } else if(m + f > 64) {\n System.out.println(\"B\");\n } else if(m + f > 49) {\n System.out.println(\"C\");\n } else if(m + f > 29) {\n System.out.println(r > 49 ? \"C\" : \"D\");\n } else {\n System.out.println(\"F\");\n }\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static final int MAX = 100;\n\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n while(true) {\n int m = scn.nextInt(), f = scn.nextInt(), r = scn.nextInt();\n if(m < 0 && f < 0 && r < 0) {\n break;\n } else if(m < 0 || f < 0) {\n System.out.println(\"F\");\n } else if(m + f > 79) {\n System.out.println(\"A\");\n } else if(m + f > 64) {\n System.out.println(\"B\");\n } else if(m + f > 49) {\n System.out.println(\"C\");\n } else if(m + f > 29) {\n System.out.println(r > 49 ? \"C\" : \"D\");\n } else {\n System.out.println(\"F\");\n }\n }\n }\n}",
"Main",
"public static final int MAX = 100;",
"MAX",
"100",
"public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n while(true) {\n int m = scn.nextInt(), f = scn.nextInt(), r = scn.nextInt();\n if(m < 0 && f < 0 && r < 0) {\n break;\n } else if(m < 0 || f < 0) {\n System.out.println(\"F\");\n } else if(m + f > 79) {\n System.out.println(\"A\");\n } else if(m + f > 64) {\n System.out.println(\"B\");\n } else if(m + f > 49) {\n System.out.println(\"C\");\n } else if(m + f > 29) {\n System.out.println(r > 49 ? \"C\" : \"D\");\n } else {\n System.out.println(\"F\");\n }\n }\n }",
"main",
"{\n Scanner scn = new Scanner(System.in);\n while(true) {\n int m = scn.nextInt(), f = scn.nextInt(), r = scn.nextInt();\n if(m < 0 && f < 0 && r < 0) {\n break;\n } else if(m < 0 || f < 0) {\n System.out.println(\"F\");\n } else if(m + f > 79) {\n System.out.println(\"A\");\n } else if(m + f > 64) {\n System.out.println(\"B\");\n } else if(m + f > 49) {\n System.out.println(\"C\");\n } else if(m + f > 29) {\n System.out.println(r > 49 ? \"C\" : \"D\");\n } else {\n System.out.println(\"F\");\n }\n }\n }",
"Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"while(true) {\n int m = scn.nextInt(), f = scn.nextInt(), r = scn.nextInt();\n if(m < 0 && f < 0 && r < 0) {\n break;\n } else if(m < 0 || f < 0) {\n System.out.println(\"F\");\n } else if(m + f > 79) {\n System.out.println(\"A\");\n } else if(m + f > 64) {\n System.out.println(\"B\");\n } else if(m + f > 49) {\n System.out.println(\"C\");\n } else if(m + f > 29) {\n System.out.println(r > 49 ? \"C\" : \"D\");\n } else {\n System.out.println(\"F\");\n }\n }",
"true",
"{\n int m = scn.nextInt(), f = scn.nextInt(), r = scn.nextInt();\n if(m < 0 && f < 0 && r < 0) {\n break;\n } else if(m < 0 || f < 0) {\n System.out.println(\"F\");\n } else if(m + f > 79) {\n System.out.println(\"A\");\n } else if(m + f > 64) {\n System.out.println(\"B\");\n } else if(m + f > 49) {\n System.out.println(\"C\");\n } else if(m + f > 29) {\n System.out.println(r > 49 ? \"C\" : \"D\");\n } else {\n System.out.println(\"F\");\n }\n }",
"int m = scn.nextInt()",
"m",
"scn.nextInt()",
"scn.nextInt",
"scn",
"f = scn.nextInt()",
"f",
"scn.nextInt()",
"scn.nextInt",
"scn",
"r = scn.nextInt();",
"r",
"scn.nextInt()",
"scn.nextInt",
"scn",
"if(m < 0 && f < 0 && r < 0) {\n break;\n } else if(m < 0 || f < 0) {\n System.out.println(\"F\");\n } else if(m + f > 79) {\n System.out.println(\"A\");\n } else if(m + f > 64) {\n System.out.println(\"B\");\n } else if(m + f > 49) {\n System.out.println(\"C\");\n } else if(m + f > 29) {\n System.out.println(r > 49 ? \"C\" : \"D\");\n } else {\n System.out.println(\"F\");\n }",
"m < 0 && f < 0 && r < 0",
"m < 0 && f < 0 && r < 0",
"m < 0",
"m",
"0",
"f < 0",
"f",
"0",
"r < 0",
"r",
"0",
"{\n break;\n }",
"break;",
"if(m < 0 || f < 0) {\n System.out.println(\"F\");\n } else if(m + f > 79) {\n System.out.println(\"A\");\n } else if(m + f > 64) {\n System.out.println(\"B\");\n } else if(m + f > 49) {\n System.out.println(\"C\");\n } else if(m + f > 29) {\n System.out.println(r > 49 ? \"C\" : \"D\");\n } else {\n System.out.println(\"F\");\n }",
"m < 0 || f < 0",
"m < 0",
"m",
"0",
"f < 0",
"f",
"0",
"{\n System.out.println(\"F\");\n }",
"System.out.println(\"F\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"F\"",
"if(m + f > 79) {\n System.out.println(\"A\");\n } else if(m + f > 64) {\n System.out.println(\"B\");\n } else if(m + f > 49) {\n System.out.println(\"C\");\n } else if(m + f > 29) {\n System.out.println(r > 49 ? \"C\" : \"D\");\n } else {\n System.out.println(\"F\");\n }",
"m + f > 79",
"m + f",
"m",
"f",
"79",
"{\n System.out.println(\"A\");\n }",
"System.out.println(\"A\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"A\"",
"if(m + f > 64) {\n System.out.println(\"B\");\n } else if(m + f > 49) {\n System.out.println(\"C\");\n } else if(m + f > 29) {\n System.out.println(r > 49 ? \"C\" : \"D\");\n } else {\n System.out.println(\"F\");\n }",
"m + f > 64",
"m + f",
"m",
"f",
"64",
"{\n System.out.println(\"B\");\n }",
"System.out.println(\"B\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"B\"",
"if(m + f > 49) {\n System.out.println(\"C\");\n } else if(m + f > 29) {\n System.out.println(r > 49 ? \"C\" : \"D\");\n } else {\n System.out.println(\"F\");\n }",
"m + f > 49",
"m + f",
"m",
"f",
"49",
"{\n System.out.println(\"C\");\n }",
"System.out.println(\"C\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C\"",
"if(m + f > 29) {\n System.out.println(r > 49 ? \"C\" : \"D\");\n } else {\n System.out.println(\"F\");\n }",
"m + f > 29",
"m + f",
"m",
"f",
"29",
"{\n System.out.println(r > 49 ? \"C\" : \"D\");\n }",
"System.out.println(r > 49 ? \"C\" : \"D\")",
"System.out.println",
"System.out",
"System",
"System.out",
"r > 49 ? \"C\" : \"D\"",
"r > 49",
"r",
"49",
"\"C\"",
"\"D\"",
"{\n System.out.println(\"F\");\n }",
"System.out.println(\"F\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"F\"",
"String[] args",
"args",
"public class Main {\n public static final int MAX = 100;\n\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n while(true) {\n int m = scn.nextInt(), f = scn.nextInt(), r = scn.nextInt();\n if(m < 0 && f < 0 && r < 0) {\n break;\n } else if(m < 0 || f < 0) {\n System.out.println(\"F\");\n } else if(m + f > 79) {\n System.out.println(\"A\");\n } else if(m + f > 64) {\n System.out.println(\"B\");\n } else if(m + f > 49) {\n System.out.println(\"C\");\n } else if(m + f > 29) {\n System.out.println(r > 49 ? \"C\" : \"D\");\n } else {\n System.out.println(\"F\");\n }\n }\n }\n}",
"public class Main {\n public static final int MAX = 100;\n\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n while(true) {\n int m = scn.nextInt(), f = scn.nextInt(), r = scn.nextInt();\n if(m < 0 && f < 0 && r < 0) {\n break;\n } else if(m < 0 || f < 0) {\n System.out.println(\"F\");\n } else if(m + f > 79) {\n System.out.println(\"A\");\n } else if(m + f > 64) {\n System.out.println(\"B\");\n } else if(m + f > 49) {\n System.out.println(\"C\");\n } else if(m + f > 29) {\n System.out.println(r > 49 ? \"C\" : \"D\");\n } else {\n System.out.println(\"F\");\n }\n }\n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static final int MAX = 100;
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
while(true) {
int m = scn.nextInt(), f = scn.nextInt(), r = scn.nextInt();
if(m < 0 && f < 0 && r < 0) {
break;
} else if(m < 0 || f < 0) {
System.out.println("F");
} else if(m + f > 79) {
System.out.println("A");
} else if(m + f > 64) {
System.out.println("B");
} else if(m + f > 49) {
System.out.println("C");
} else if(m + f > 29) {
System.out.println(r > 49 ? "C" : "D");
} else {
System.out.println("F");
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
14,
2,
2,
2,
13,
40,
17,
2,
13,
40,
17,
2,
13,
40,
17,
30,
3,
30,
14,
2,
2,
13,
40,
17,
2,
13,
40,
17,
30,
0,
13,
17,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
14,
2,
2,
13,
13,
17,
30,
14,
2,
13,
17,
30,
0,
13,
17,
30,
0,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
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
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
29,
30
],
[
14,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
37,
38
],
[
14,
39
],
[
39,
40
],
[
39,
41
],
[
14,
42
],
[
42,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
44,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
42,
57
],
[
57,
58
],
[
42,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
60,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
60,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
74,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
74,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
84,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
84,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
94,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
94,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
104,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
111,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
104,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
14,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
6,
133
],
[
133,
134
],
[
0,
135
],
[
135,
136
],
[
135,
137
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint m = Integer.parseInt(std.next());\n\t\t\tint f = Integer.parseInt(std.next());\n\t\t\tint r = Integer.parseInt(std.next());\n\t\t\tString grade = \"\";\n\t\t\tif(m==-1 && f==-1 && r==-1){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tif(m==-1 || f==-1){\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}else if(m+f>=80){\n\t\t\t\t\tgrade = \"A\";\n\t\t\t\t}else if(m+f>=65){\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}else if(m+f>=50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}else if(m+f>=30){\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(grade);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint m = Integer.parseInt(std.next());\n\t\t\tint f = Integer.parseInt(std.next());\n\t\t\tint r = Integer.parseInt(std.next());\n\t\t\tString grade = \"\";\n\t\t\tif(m==-1 && f==-1 && r==-1){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tif(m==-1 || f==-1){\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}else if(m+f>=80){\n\t\t\t\t\tgrade = \"A\";\n\t\t\t\t}else if(m+f>=65){\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}else if(m+f>=50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}else if(m+f>=30){\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(grade);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint m = Integer.parseInt(std.next());\n\t\t\tint f = Integer.parseInt(std.next());\n\t\t\tint r = Integer.parseInt(std.next());\n\t\t\tString grade = \"\";\n\t\t\tif(m==-1 && f==-1 && r==-1){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tif(m==-1 || f==-1){\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}else if(m+f>=80){\n\t\t\t\t\tgrade = \"A\";\n\t\t\t\t}else if(m+f>=65){\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}else if(m+f>=50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}else if(m+f>=30){\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(grade);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner std = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint m = Integer.parseInt(std.next());\n\t\t\tint f = Integer.parseInt(std.next());\n\t\t\tint r = Integer.parseInt(std.next());\n\t\t\tString grade = \"\";\n\t\t\tif(m==-1 && f==-1 && r==-1){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tif(m==-1 || f==-1){\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}else if(m+f>=80){\n\t\t\t\t\tgrade = \"A\";\n\t\t\t\t}else if(m+f>=65){\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}else if(m+f>=50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}else if(m+f>=30){\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(grade);\n\t\t}\n\t}",
"Scanner std = new Scanner(System.in);",
"std",
"new Scanner(System.in)",
"while(true){\n\t\t\tint m = Integer.parseInt(std.next());\n\t\t\tint f = Integer.parseInt(std.next());\n\t\t\tint r = Integer.parseInt(std.next());\n\t\t\tString grade = \"\";\n\t\t\tif(m==-1 && f==-1 && r==-1){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tif(m==-1 || f==-1){\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}else if(m+f>=80){\n\t\t\t\t\tgrade = \"A\";\n\t\t\t\t}else if(m+f>=65){\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}else if(m+f>=50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}else if(m+f>=30){\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(grade);\n\t\t}",
"true",
"{\n\t\t\tint m = Integer.parseInt(std.next());\n\t\t\tint f = Integer.parseInt(std.next());\n\t\t\tint r = Integer.parseInt(std.next());\n\t\t\tString grade = \"\";\n\t\t\tif(m==-1 && f==-1 && r==-1){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tif(m==-1 || f==-1){\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}else if(m+f>=80){\n\t\t\t\t\tgrade = \"A\";\n\t\t\t\t}else if(m+f>=65){\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}else if(m+f>=50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}else if(m+f>=30){\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(grade);\n\t\t}",
"int m = Integer.parseInt(std.next());",
"m",
"Integer.parseInt(std.next())",
"Integer.parseInt",
"Integer",
"std.next()",
"std.next",
"std",
"int f = Integer.parseInt(std.next());",
"f",
"Integer.parseInt(std.next())",
"Integer.parseInt",
"Integer",
"std.next()",
"std.next",
"std",
"int r = Integer.parseInt(std.next());",
"r",
"Integer.parseInt(std.next())",
"Integer.parseInt",
"Integer",
"std.next()",
"std.next",
"std",
"String grade = \"\";",
"grade",
"\"\"",
"if(m==-1 && f==-1 && r==-1){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tif(m==-1 || f==-1){\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}else if(m+f>=80){\n\t\t\t\t\tgrade = \"A\";\n\t\t\t\t}else if(m+f>=65){\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}else if(m+f>=50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}else if(m+f>=30){\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}\n\t\t\t}",
"m==-1 && f==-1 && r==-1",
"m==-1 && f==-1 && r==-1",
"m==-1",
"m",
"-1",
"1",
"f==-1",
"f",
"-1",
"1",
"r==-1",
"r",
"-1",
"1",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"{\n\t\t\t\tif(m==-1 || f==-1){\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}else if(m+f>=80){\n\t\t\t\t\tgrade = \"A\";\n\t\t\t\t}else if(m+f>=65){\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}else if(m+f>=50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}else if(m+f>=30){\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}\n\t\t\t}",
"if(m==-1 || f==-1){\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}else if(m+f>=80){\n\t\t\t\t\tgrade = \"A\";\n\t\t\t\t}else if(m+f>=65){\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}else if(m+f>=50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}else if(m+f>=30){\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}",
"m==-1 || f==-1",
"m==-1",
"m",
"-1",
"1",
"f==-1",
"f",
"-1",
"1",
"{\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}",
"grade = \"F\"",
"grade",
"\"F\"",
"if(m+f>=80){\n\t\t\t\t\tgrade = \"A\";\n\t\t\t\t}else if(m+f>=65){\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}else if(m+f>=50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}else if(m+f>=30){\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}",
"m+f>=80",
"m+f",
"m",
"f",
"80",
"{\n\t\t\t\t\tgrade = \"A\";\n\t\t\t\t}",
"grade = \"A\"",
"grade",
"\"A\"",
"if(m+f>=65){\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}else if(m+f>=50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}else if(m+f>=30){\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}",
"m+f>=65",
"m+f",
"m",
"f",
"65",
"{\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}",
"grade = \"B\"",
"grade",
"\"B\"",
"if(m+f>=50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}else if(m+f>=30){\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}",
"m+f>=50",
"m+f",
"m",
"f",
"50",
"{\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}",
"grade = \"C\"",
"grade",
"\"C\"",
"if(m+f>=30){\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}",
"m+f>=30",
"m+f",
"m",
"f",
"30",
"{\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}",
"if(r>=50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\t}",
"r>=50",
"r",
"50",
"{\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}",
"grade = \"C\"",
"grade",
"\"C\"",
"{\n\t\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\t}",
"grade = \"D\"",
"grade",
"\"D\"",
"{\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}",
"grade = \"F\"",
"grade",
"\"F\"",
"System.out.println(grade)",
"System.out.println",
"System.out",
"System",
"System.out",
"grade",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint m = Integer.parseInt(std.next());\n\t\t\tint f = Integer.parseInt(std.next());\n\t\t\tint r = Integer.parseInt(std.next());\n\t\t\tString grade = \"\";\n\t\t\tif(m==-1 && f==-1 && r==-1){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tif(m==-1 || f==-1){\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}else if(m+f>=80){\n\t\t\t\t\tgrade = \"A\";\n\t\t\t\t}else if(m+f>=65){\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}else if(m+f>=50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}else if(m+f>=30){\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(grade);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint m = Integer.parseInt(std.next());\n\t\t\tint f = Integer.parseInt(std.next());\n\t\t\tint r = Integer.parseInt(std.next());\n\t\t\tString grade = \"\";\n\t\t\tif(m==-1 && f==-1 && r==-1){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tif(m==-1 || f==-1){\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}else if(m+f>=80){\n\t\t\t\t\tgrade = \"A\";\n\t\t\t\t}else if(m+f>=65){\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}else if(m+f>=50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}else if(m+f>=30){\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(grade);\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner std = new Scanner(System.in);
while(true){
int m = Integer.parseInt(std.next());
int f = Integer.parseInt(std.next());
int r = Integer.parseInt(std.next());
String grade = "";
if(m==-1 && f==-1 && r==-1){
break;
}else{
if(m==-1 || f==-1){
grade = "F";
}else if(m+f>=80){
grade = "A";
}else if(m+f>=65){
grade = "B";
}else if(m+f>=50){
grade = "C";
}else if(m+f>=30){
if(r>=50){
grade = "C";
}else{
grade = "D";
}
}else {
grade = "F";
}
}
System.out.println(grade);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
40,
17,
2,
13,
40,
17,
2,
13,
40,
17,
3,
14,
2,
2,
13,
40,
17,
2,
13,
40,
17,
30,
4,
18,
4,
18,
13,
17,
17,
30,
14,
2,
2,
13,
13,
17,
4,
18,
4,
18,
13,
17,
17,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
4,
18,
4,
18,
13,
17,
17,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
4,
18,
4,
18,
13,
17,
17,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
30,
14,
2,
13,
17,
30,
4,
18,
4,
18,
13,
17,
17,
30,
4,
18,
4,
18,
13,
17,
17,
14,
2,
2,
13,
13,
17,
4,
18,
4,
18,
13,
17,
17,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
177,
5
],
[
177,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
17,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
17,
33
],
[
33,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
35,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
33,
48
],
[
17,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
49,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
60,
66
],
[
49,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
74,
80
],
[
67,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
82,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
81,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
93,
99
],
[
67,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
101,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
100,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
112,
118
],
[
67,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
120,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
119,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
139,
142
],
[
137,
143
],
[
132,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
147,
150
],
[
145,
151
],
[
67,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
152,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
160,
163
],
[
158,
164
],
[
8,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
165,
170
],
[
8,
171
],
[
171,
172
],
[
172,
173
],
[
6,
174
],
[
174,
175
],
[
0,
176
],
[
176,
177
],
[
176,
178
]
] | [
"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\tStringBuilder output = new StringBuilder();\n\t\twhile(true) {\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\t\n\t\t\tif (m == -1 && f == -1 && r == -1) break;\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\toutput.append(\"F\").append('\\n');\n\t\t\t} else {\n\t\t\t\tif (m + f >= 80)\n\t\t\t\t\toutput.append(\"A\").append('\\n');\n\t\t\t\tif (m + f >= 65 && m + f < 80)\n\t\t\t\t\toutput.append(\"B\").append('\\n');\n\t\t\t\tif (m + f >= 50 && m + f < 65)\n\t\t\t\t\toutput.append(\"C\").append('\\n');\n\t\t\t\tif (m + f >= 30 && m + f < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.append(\"C\").append('\\n');\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.append(\"D\").append('\\n');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (m + f < 30)\n\t\t\t\t\toutput.append(\"F\").append('\\n');\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.print(output);\n\t\tscan.close();\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder output = new StringBuilder();\n\t\twhile(true) {\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\t\n\t\t\tif (m == -1 && f == -1 && r == -1) break;\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\toutput.append(\"F\").append('\\n');\n\t\t\t} else {\n\t\t\t\tif (m + f >= 80)\n\t\t\t\t\toutput.append(\"A\").append('\\n');\n\t\t\t\tif (m + f >= 65 && m + f < 80)\n\t\t\t\t\toutput.append(\"B\").append('\\n');\n\t\t\t\tif (m + f >= 50 && m + f < 65)\n\t\t\t\t\toutput.append(\"C\").append('\\n');\n\t\t\t\tif (m + f >= 30 && m + f < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.append(\"C\").append('\\n');\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.append(\"D\").append('\\n');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (m + f < 30)\n\t\t\t\t\toutput.append(\"F\").append('\\n');\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.print(output);\n\t\tscan.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder output = new StringBuilder();\n\t\twhile(true) {\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\t\n\t\t\tif (m == -1 && f == -1 && r == -1) break;\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\toutput.append(\"F\").append('\\n');\n\t\t\t} else {\n\t\t\t\tif (m + f >= 80)\n\t\t\t\t\toutput.append(\"A\").append('\\n');\n\t\t\t\tif (m + f >= 65 && m + f < 80)\n\t\t\t\t\toutput.append(\"B\").append('\\n');\n\t\t\t\tif (m + f >= 50 && m + f < 65)\n\t\t\t\t\toutput.append(\"C\").append('\\n');\n\t\t\t\tif (m + f >= 30 && m + f < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.append(\"C\").append('\\n');\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.append(\"D\").append('\\n');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (m + f < 30)\n\t\t\t\t\toutput.append(\"F\").append('\\n');\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.print(output);\n\t\tscan.close();\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder output = new StringBuilder();\n\t\twhile(true) {\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\t\n\t\t\tif (m == -1 && f == -1 && r == -1) break;\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\toutput.append(\"F\").append('\\n');\n\t\t\t} else {\n\t\t\t\tif (m + f >= 80)\n\t\t\t\t\toutput.append(\"A\").append('\\n');\n\t\t\t\tif (m + f >= 65 && m + f < 80)\n\t\t\t\t\toutput.append(\"B\").append('\\n');\n\t\t\t\tif (m + f >= 50 && m + f < 65)\n\t\t\t\t\toutput.append(\"C\").append('\\n');\n\t\t\t\tif (m + f >= 30 && m + f < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.append(\"C\").append('\\n');\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.append(\"D\").append('\\n');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (m + f < 30)\n\t\t\t\t\toutput.append(\"F\").append('\\n');\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.print(output);\n\t\tscan.close();\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"StringBuilder output = new StringBuilder();",
"output",
"new StringBuilder()",
"while(true) {\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\t\n\t\t\tif (m == -1 && f == -1 && r == -1) break;\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\toutput.append(\"F\").append('\\n');\n\t\t\t} else {\n\t\t\t\tif (m + f >= 80)\n\t\t\t\t\toutput.append(\"A\").append('\\n');\n\t\t\t\tif (m + f >= 65 && m + f < 80)\n\t\t\t\t\toutput.append(\"B\").append('\\n');\n\t\t\t\tif (m + f >= 50 && m + f < 65)\n\t\t\t\t\toutput.append(\"C\").append('\\n');\n\t\t\t\tif (m + f >= 30 && m + f < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.append(\"C\").append('\\n');\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.append(\"D\").append('\\n');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (m + f < 30)\n\t\t\t\t\toutput.append(\"F\").append('\\n');\n\t\t\t}\n\t\t\t\n\t\t}",
"true",
"{\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\t\n\t\t\tif (m == -1 && f == -1 && r == -1) break;\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\toutput.append(\"F\").append('\\n');\n\t\t\t} else {\n\t\t\t\tif (m + f >= 80)\n\t\t\t\t\toutput.append(\"A\").append('\\n');\n\t\t\t\tif (m + f >= 65 && m + f < 80)\n\t\t\t\t\toutput.append(\"B\").append('\\n');\n\t\t\t\tif (m + f >= 50 && m + f < 65)\n\t\t\t\t\toutput.append(\"C\").append('\\n');\n\t\t\t\tif (m + f >= 30 && m + f < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.append(\"C\").append('\\n');\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.append(\"D\").append('\\n');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (m + f < 30)\n\t\t\t\t\toutput.append(\"F\").append('\\n');\n\t\t\t}\n\t\t\t\n\t\t}",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int f = scan.nextInt();",
"f",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int r = scan.nextInt();",
"r",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if (m == -1 && f == -1 && r == -1) break;",
"m == -1 && f == -1 && r == -1",
"m == -1 && f == -1 && r == -1",
"m == -1",
"m",
"-1",
"1",
"f == -1",
"f",
"-1",
"1",
"r == -1",
"r",
"-1",
"1",
"break;",
"if (m == -1 || f == -1) {\n\t\t\t\toutput.append(\"F\").append('\\n');\n\t\t\t} else {\n\t\t\t\tif (m + f >= 80)\n\t\t\t\t\toutput.append(\"A\").append('\\n');\n\t\t\t\tif (m + f >= 65 && m + f < 80)\n\t\t\t\t\toutput.append(\"B\").append('\\n');\n\t\t\t\tif (m + f >= 50 && m + f < 65)\n\t\t\t\t\toutput.append(\"C\").append('\\n');\n\t\t\t\tif (m + f >= 30 && m + f < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.append(\"C\").append('\\n');\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.append(\"D\").append('\\n');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (m + f < 30)\n\t\t\t\t\toutput.append(\"F\").append('\\n');\n\t\t\t}",
"m == -1 || f == -1",
"m == -1",
"m",
"-1",
"1",
"f == -1",
"f",
"-1",
"1",
"{\n\t\t\t\toutput.append(\"F\").append('\\n');\n\t\t\t}",
"output.append(\"F\").append('\\n')",
"output.append(\"F\").append",
"output.append(\"F\")",
"output.append",
"output",
"\"F\"",
"'\\n'",
"{\n\t\t\t\tif (m + f >= 80)\n\t\t\t\t\toutput.append(\"A\").append('\\n');\n\t\t\t\tif (m + f >= 65 && m + f < 80)\n\t\t\t\t\toutput.append(\"B\").append('\\n');\n\t\t\t\tif (m + f >= 50 && m + f < 65)\n\t\t\t\t\toutput.append(\"C\").append('\\n');\n\t\t\t\tif (m + f >= 30 && m + f < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.append(\"C\").append('\\n');\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.append(\"D\").append('\\n');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (m + f < 30)\n\t\t\t\t\toutput.append(\"F\").append('\\n');\n\t\t\t}",
"if (m + f >= 80)\n\t\t\t\t\toutput.append(\"A\").append('\\n');",
"m + f >= 80",
"m + f",
"m",
"f",
"80",
"output.append(\"A\").append('\\n')",
"output.append(\"A\").append",
"output.append(\"A\")",
"output.append",
"output",
"\"A\"",
"'\\n'",
"if (m + f >= 65 && m + f < 80)\n\t\t\t\t\toutput.append(\"B\").append('\\n');",
"m + f >= 65 && m + f < 80",
"m + f >= 65",
"m + f",
"m",
"f",
"65",
"m + f < 80",
"m + f",
"m",
"f",
"80",
"output.append(\"B\").append('\\n')",
"output.append(\"B\").append",
"output.append(\"B\")",
"output.append",
"output",
"\"B\"",
"'\\n'",
"if (m + f >= 50 && m + f < 65)\n\t\t\t\t\toutput.append(\"C\").append('\\n');",
"m + f >= 50 && m + f < 65",
"m + f >= 50",
"m + f",
"m",
"f",
"50",
"m + f < 65",
"m + f",
"m",
"f",
"65",
"output.append(\"C\").append('\\n')",
"output.append(\"C\").append",
"output.append(\"C\")",
"output.append",
"output",
"\"C\"",
"'\\n'",
"if (m + f >= 30 && m + f < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.append(\"C\").append('\\n');\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.append(\"D\").append('\\n');\n\t\t\t\t\t}\n\t\t\t\t}",
"m + f >= 30 && m + f < 50",
"m + f >= 30",
"m + f",
"m",
"f",
"30",
"m + f < 50",
"m + f",
"m",
"f",
"50",
"{\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.append(\"C\").append('\\n');\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.append(\"D\").append('\\n');\n\t\t\t\t\t}\n\t\t\t\t}",
"if (r >= 50) {\n\t\t\t\t\t\toutput.append(\"C\").append('\\n');\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.append(\"D\").append('\\n');\n\t\t\t\t\t}",
"r >= 50",
"r",
"50",
"{\n\t\t\t\t\t\toutput.append(\"C\").append('\\n');\n\t\t\t\t\t}",
"output.append(\"C\").append('\\n')",
"output.append(\"C\").append",
"output.append(\"C\")",
"output.append",
"output",
"\"C\"",
"'\\n'",
"{\n\t\t\t\t\t\toutput.append(\"D\").append('\\n');\n\t\t\t\t\t}",
"output.append(\"D\").append('\\n')",
"output.append(\"D\").append",
"output.append(\"D\")",
"output.append",
"output",
"\"D\"",
"'\\n'",
"if (m + f < 30)\n\t\t\t\t\toutput.append(\"F\").append('\\n');",
"m + f < 30",
"m + f",
"m",
"f",
"30",
"output.append(\"F\").append('\\n')",
"output.append(\"F\").append",
"output.append(\"F\")",
"output.append",
"output",
"\"F\"",
"'\\n'",
"System.out.print(output)",
"System.out.print",
"System.out",
"System",
"System.out",
"output",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder output = new StringBuilder();\n\t\twhile(true) {\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\t\n\t\t\tif (m == -1 && f == -1 && r == -1) break;\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\toutput.append(\"F\").append('\\n');\n\t\t\t} else {\n\t\t\t\tif (m + f >= 80)\n\t\t\t\t\toutput.append(\"A\").append('\\n');\n\t\t\t\tif (m + f >= 65 && m + f < 80)\n\t\t\t\t\toutput.append(\"B\").append('\\n');\n\t\t\t\tif (m + f >= 50 && m + f < 65)\n\t\t\t\t\toutput.append(\"C\").append('\\n');\n\t\t\t\tif (m + f >= 30 && m + f < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.append(\"C\").append('\\n');\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.append(\"D\").append('\\n');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (m + f < 30)\n\t\t\t\t\toutput.append(\"F\").append('\\n');\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.print(output);\n\t\tscan.close();\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder output = new StringBuilder();\n\t\twhile(true) {\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\t\n\t\t\tif (m == -1 && f == -1 && r == -1) break;\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\toutput.append(\"F\").append('\\n');\n\t\t\t} else {\n\t\t\t\tif (m + f >= 80)\n\t\t\t\t\toutput.append(\"A\").append('\\n');\n\t\t\t\tif (m + f >= 65 && m + f < 80)\n\t\t\t\t\toutput.append(\"B\").append('\\n');\n\t\t\t\tif (m + f >= 50 && m + f < 65)\n\t\t\t\t\toutput.append(\"C\").append('\\n');\n\t\t\t\tif (m + f >= 30 && m + f < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.append(\"C\").append('\\n');\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.append(\"D\").append('\\n');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (m + f < 30)\n\t\t\t\t\toutput.append(\"F\").append('\\n');\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.print(output);\n\t\tscan.close();\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
StringBuilder output = new StringBuilder();
while(true) {
int m = scan.nextInt();
int f = scan.nextInt();
int r = scan.nextInt();
if (m == -1 && f == -1 && r == -1) break;
if (m == -1 || f == -1) {
output.append("F").append('\n');
} else {
if (m + f >= 80)
output.append("A").append('\n');
if (m + f >= 65 && m + f < 80)
output.append("B").append('\n');
if (m + f >= 50 && m + f < 65)
output.append("C").append('\n');
if (m + f >= 30 && m + f < 50) {
if (r >= 50) {
output.append("C").append('\n');
} else {
output.append("D").append('\n');
}
}
if (m + f < 30)
output.append("F").append('\n');
}
}
System.out.print(output);
scan.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
14,
2,
2,
2,
13,
40,
17,
2,
13,
40,
17,
2,
13,
40,
17,
30,
3,
14,
2,
2,
13,
40,
17,
2,
13,
40,
17,
30,
0,
13,
17,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
14,
2,
2,
2,
13,
13,
17,
2,
2,
2,
13,
13,
17,
2,
13,
17,
30,
0,
13,
17,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
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
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
14,
30
],
[
30,
31
],
[
30,
32
],
[
14,
33
],
[
33,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
35,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
33,
48
],
[
48,
49
],
[
33,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
50,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
50,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
65,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
65,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
75,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
75,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
86,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
92,
98
],
[
98,
99
],
[
98,
100
],
[
85,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
85,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
105,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
105,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
14,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
6,
125
],
[
125,
126
],
[
0,
127
],
[
127,
128
],
[
127,
129
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tint tyukan = sc.nextInt();\n\t\t\tint kimatu = sc.nextInt();\n\t\t\tint saisi = sc.nextInt();\n\t\t\tString result = \"\";\n\t\t\tif(tyukan == -1 && kimatu == -1 && saisi == -1) {\n\t\t\t\tbreak;\n\t\t\t} else if (tyukan == -1 || kimatu == -1){\n\t\t\t\tresult = \"F\";\n\t\t\t} else {\n\t\t\t\tif(tyukan + kimatu >= 80) {\n\t\t\t\t\tresult = \"A\";\n\t\t\t\t} else if(tyukan + kimatu >= 65) {\n\t\t\t\t\tresult = \"B\";\n\t\t\t\t} else if((tyukan + kimatu >= 50) || (tyukan + kimatu >= 30 && saisi >= 50)) {\n\t\t\t\t\tresult = \"C\";\n\t\t\t\t} else if(tyukan + kimatu >= 30) {\n\t\t\t\t\tresult = \"D\";\n\t\t\t\t} else {\n\t\t\t\t\tresult = \"F\";\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.println(result);\n\t\t}\n\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tint tyukan = sc.nextInt();\n\t\t\tint kimatu = sc.nextInt();\n\t\t\tint saisi = sc.nextInt();\n\t\t\tString result = \"\";\n\t\t\tif(tyukan == -1 && kimatu == -1 && saisi == -1) {\n\t\t\t\tbreak;\n\t\t\t} else if (tyukan == -1 || kimatu == -1){\n\t\t\t\tresult = \"F\";\n\t\t\t} else {\n\t\t\t\tif(tyukan + kimatu >= 80) {\n\t\t\t\t\tresult = \"A\";\n\t\t\t\t} else if(tyukan + kimatu >= 65) {\n\t\t\t\t\tresult = \"B\";\n\t\t\t\t} else if((tyukan + kimatu >= 50) || (tyukan + kimatu >= 30 && saisi >= 50)) {\n\t\t\t\t\tresult = \"C\";\n\t\t\t\t} else if(tyukan + kimatu >= 30) {\n\t\t\t\t\tresult = \"D\";\n\t\t\t\t} else {\n\t\t\t\t\tresult = \"F\";\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.println(result);\n\t\t}\n\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tint tyukan = sc.nextInt();\n\t\t\tint kimatu = sc.nextInt();\n\t\t\tint saisi = sc.nextInt();\n\t\t\tString result = \"\";\n\t\t\tif(tyukan == -1 && kimatu == -1 && saisi == -1) {\n\t\t\t\tbreak;\n\t\t\t} else if (tyukan == -1 || kimatu == -1){\n\t\t\t\tresult = \"F\";\n\t\t\t} else {\n\t\t\t\tif(tyukan + kimatu >= 80) {\n\t\t\t\t\tresult = \"A\";\n\t\t\t\t} else if(tyukan + kimatu >= 65) {\n\t\t\t\t\tresult = \"B\";\n\t\t\t\t} else if((tyukan + kimatu >= 50) || (tyukan + kimatu >= 30 && saisi >= 50)) {\n\t\t\t\t\tresult = \"C\";\n\t\t\t\t} else if(tyukan + kimatu >= 30) {\n\t\t\t\t\tresult = \"D\";\n\t\t\t\t} else {\n\t\t\t\t\tresult = \"F\";\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.println(result);\n\t\t}\n\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tint tyukan = sc.nextInt();\n\t\t\tint kimatu = sc.nextInt();\n\t\t\tint saisi = sc.nextInt();\n\t\t\tString result = \"\";\n\t\t\tif(tyukan == -1 && kimatu == -1 && saisi == -1) {\n\t\t\t\tbreak;\n\t\t\t} else if (tyukan == -1 || kimatu == -1){\n\t\t\t\tresult = \"F\";\n\t\t\t} else {\n\t\t\t\tif(tyukan + kimatu >= 80) {\n\t\t\t\t\tresult = \"A\";\n\t\t\t\t} else if(tyukan + kimatu >= 65) {\n\t\t\t\t\tresult = \"B\";\n\t\t\t\t} else if((tyukan + kimatu >= 50) || (tyukan + kimatu >= 30 && saisi >= 50)) {\n\t\t\t\t\tresult = \"C\";\n\t\t\t\t} else if(tyukan + kimatu >= 30) {\n\t\t\t\t\tresult = \"D\";\n\t\t\t\t} else {\n\t\t\t\t\tresult = \"F\";\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.println(result);\n\t\t}\n\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while(true) {\n\t\t\tint tyukan = sc.nextInt();\n\t\t\tint kimatu = sc.nextInt();\n\t\t\tint saisi = sc.nextInt();\n\t\t\tString result = \"\";\n\t\t\tif(tyukan == -1 && kimatu == -1 && saisi == -1) {\n\t\t\t\tbreak;\n\t\t\t} else if (tyukan == -1 || kimatu == -1){\n\t\t\t\tresult = \"F\";\n\t\t\t} else {\n\t\t\t\tif(tyukan + kimatu >= 80) {\n\t\t\t\t\tresult = \"A\";\n\t\t\t\t} else if(tyukan + kimatu >= 65) {\n\t\t\t\t\tresult = \"B\";\n\t\t\t\t} else if((tyukan + kimatu >= 50) || (tyukan + kimatu >= 30 && saisi >= 50)) {\n\t\t\t\t\tresult = \"C\";\n\t\t\t\t} else if(tyukan + kimatu >= 30) {\n\t\t\t\t\tresult = \"D\";\n\t\t\t\t} else {\n\t\t\t\t\tresult = \"F\";\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.println(result);\n\t\t}",
"true",
"{\n\t\t\tint tyukan = sc.nextInt();\n\t\t\tint kimatu = sc.nextInt();\n\t\t\tint saisi = sc.nextInt();\n\t\t\tString result = \"\";\n\t\t\tif(tyukan == -1 && kimatu == -1 && saisi == -1) {\n\t\t\t\tbreak;\n\t\t\t} else if (tyukan == -1 || kimatu == -1){\n\t\t\t\tresult = \"F\";\n\t\t\t} else {\n\t\t\t\tif(tyukan + kimatu >= 80) {\n\t\t\t\t\tresult = \"A\";\n\t\t\t\t} else if(tyukan + kimatu >= 65) {\n\t\t\t\t\tresult = \"B\";\n\t\t\t\t} else if((tyukan + kimatu >= 50) || (tyukan + kimatu >= 30 && saisi >= 50)) {\n\t\t\t\t\tresult = \"C\";\n\t\t\t\t} else if(tyukan + kimatu >= 30) {\n\t\t\t\t\tresult = \"D\";\n\t\t\t\t} else {\n\t\t\t\t\tresult = \"F\";\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.println(result);\n\t\t}",
"int tyukan = sc.nextInt();",
"tyukan",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int kimatu = sc.nextInt();",
"kimatu",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int saisi = sc.nextInt();",
"saisi",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String result = \"\";",
"result",
"\"\"",
"if(tyukan == -1 && kimatu == -1 && saisi == -1) {\n\t\t\t\tbreak;\n\t\t\t} else if (tyukan == -1 || kimatu == -1){\n\t\t\t\tresult = \"F\";\n\t\t\t} else {\n\t\t\t\tif(tyukan + kimatu >= 80) {\n\t\t\t\t\tresult = \"A\";\n\t\t\t\t} else if(tyukan + kimatu >= 65) {\n\t\t\t\t\tresult = \"B\";\n\t\t\t\t} else if((tyukan + kimatu >= 50) || (tyukan + kimatu >= 30 && saisi >= 50)) {\n\t\t\t\t\tresult = \"C\";\n\t\t\t\t} else if(tyukan + kimatu >= 30) {\n\t\t\t\t\tresult = \"D\";\n\t\t\t\t} else {\n\t\t\t\t\tresult = \"F\";\n\t\t\t\t}\n\n\t\t\t}",
"tyukan == -1 && kimatu == -1 && saisi == -1",
"tyukan == -1 && kimatu == -1 && saisi == -1",
"tyukan == -1",
"tyukan",
"-1",
"1",
"kimatu == -1",
"kimatu",
"-1",
"1",
"saisi == -1",
"saisi",
"-1",
"1",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"if (tyukan == -1 || kimatu == -1){\n\t\t\t\tresult = \"F\";\n\t\t\t} else {\n\t\t\t\tif(tyukan + kimatu >= 80) {\n\t\t\t\t\tresult = \"A\";\n\t\t\t\t} else if(tyukan + kimatu >= 65) {\n\t\t\t\t\tresult = \"B\";\n\t\t\t\t} else if((tyukan + kimatu >= 50) || (tyukan + kimatu >= 30 && saisi >= 50)) {\n\t\t\t\t\tresult = \"C\";\n\t\t\t\t} else if(tyukan + kimatu >= 30) {\n\t\t\t\t\tresult = \"D\";\n\t\t\t\t} else {\n\t\t\t\t\tresult = \"F\";\n\t\t\t\t}\n\n\t\t\t}",
"tyukan == -1 || kimatu == -1",
"tyukan == -1",
"tyukan",
"-1",
"1",
"kimatu == -1",
"kimatu",
"-1",
"1",
"{\n\t\t\t\tresult = \"F\";\n\t\t\t}",
"result = \"F\"",
"result",
"\"F\"",
"{\n\t\t\t\tif(tyukan + kimatu >= 80) {\n\t\t\t\t\tresult = \"A\";\n\t\t\t\t} else if(tyukan + kimatu >= 65) {\n\t\t\t\t\tresult = \"B\";\n\t\t\t\t} else if((tyukan + kimatu >= 50) || (tyukan + kimatu >= 30 && saisi >= 50)) {\n\t\t\t\t\tresult = \"C\";\n\t\t\t\t} else if(tyukan + kimatu >= 30) {\n\t\t\t\t\tresult = \"D\";\n\t\t\t\t} else {\n\t\t\t\t\tresult = \"F\";\n\t\t\t\t}\n\n\t\t\t}",
"if(tyukan + kimatu >= 80) {\n\t\t\t\t\tresult = \"A\";\n\t\t\t\t} else if(tyukan + kimatu >= 65) {\n\t\t\t\t\tresult = \"B\";\n\t\t\t\t} else if((tyukan + kimatu >= 50) || (tyukan + kimatu >= 30 && saisi >= 50)) {\n\t\t\t\t\tresult = \"C\";\n\t\t\t\t} else if(tyukan + kimatu >= 30) {\n\t\t\t\t\tresult = \"D\";\n\t\t\t\t} else {\n\t\t\t\t\tresult = \"F\";\n\t\t\t\t}",
"tyukan + kimatu >= 80",
"tyukan + kimatu",
"tyukan",
"kimatu",
"80",
"{\n\t\t\t\t\tresult = \"A\";\n\t\t\t\t}",
"result = \"A\"",
"result",
"\"A\"",
"if(tyukan + kimatu >= 65) {\n\t\t\t\t\tresult = \"B\";\n\t\t\t\t} else if((tyukan + kimatu >= 50) || (tyukan + kimatu >= 30 && saisi >= 50)) {\n\t\t\t\t\tresult = \"C\";\n\t\t\t\t} else if(tyukan + kimatu >= 30) {\n\t\t\t\t\tresult = \"D\";\n\t\t\t\t} else {\n\t\t\t\t\tresult = \"F\";\n\t\t\t\t}",
"tyukan + kimatu >= 65",
"tyukan + kimatu",
"tyukan",
"kimatu",
"65",
"{\n\t\t\t\t\tresult = \"B\";\n\t\t\t\t}",
"result = \"B\"",
"result",
"\"B\"",
"if((tyukan + kimatu >= 50) || (tyukan + kimatu >= 30 && saisi >= 50)) {\n\t\t\t\t\tresult = \"C\";\n\t\t\t\t} else if(tyukan + kimatu >= 30) {\n\t\t\t\t\tresult = \"D\";\n\t\t\t\t} else {\n\t\t\t\t\tresult = \"F\";\n\t\t\t\t}",
"(tyukan + kimatu >= 50) || (tyukan + kimatu >= 30 && saisi >= 50)",
"(tyukan + kimatu >= 50)",
"tyukan + kimatu",
"tyukan",
"kimatu",
"50",
"(tyukan + kimatu >= 30 && saisi >= 50)",
"tyukan + kimatu >= 30",
"tyukan + kimatu",
"tyukan",
"kimatu",
"30",
"saisi >= 50",
"saisi",
"50",
"{\n\t\t\t\t\tresult = \"C\";\n\t\t\t\t}",
"result = \"C\"",
"result",
"\"C\"",
"if(tyukan + kimatu >= 30) {\n\t\t\t\t\tresult = \"D\";\n\t\t\t\t} else {\n\t\t\t\t\tresult = \"F\";\n\t\t\t\t}",
"tyukan + kimatu >= 30",
"tyukan + kimatu",
"tyukan",
"kimatu",
"30",
"{\n\t\t\t\t\tresult = \"D\";\n\t\t\t\t}",
"result = \"D\"",
"result",
"\"D\"",
"{\n\t\t\t\t\tresult = \"F\";\n\t\t\t\t}",
"result = \"F\"",
"result",
"\"F\"",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tint tyukan = sc.nextInt();\n\t\t\tint kimatu = sc.nextInt();\n\t\t\tint saisi = sc.nextInt();\n\t\t\tString result = \"\";\n\t\t\tif(tyukan == -1 && kimatu == -1 && saisi == -1) {\n\t\t\t\tbreak;\n\t\t\t} else if (tyukan == -1 || kimatu == -1){\n\t\t\t\tresult = \"F\";\n\t\t\t} else {\n\t\t\t\tif(tyukan + kimatu >= 80) {\n\t\t\t\t\tresult = \"A\";\n\t\t\t\t} else if(tyukan + kimatu >= 65) {\n\t\t\t\t\tresult = \"B\";\n\t\t\t\t} else if((tyukan + kimatu >= 50) || (tyukan + kimatu >= 30 && saisi >= 50)) {\n\t\t\t\t\tresult = \"C\";\n\t\t\t\t} else if(tyukan + kimatu >= 30) {\n\t\t\t\t\tresult = \"D\";\n\t\t\t\t} else {\n\t\t\t\t\tresult = \"F\";\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.println(result);\n\t\t}\n\n\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tint tyukan = sc.nextInt();\n\t\t\tint kimatu = sc.nextInt();\n\t\t\tint saisi = sc.nextInt();\n\t\t\tString result = \"\";\n\t\t\tif(tyukan == -1 && kimatu == -1 && saisi == -1) {\n\t\t\t\tbreak;\n\t\t\t} else if (tyukan == -1 || kimatu == -1){\n\t\t\t\tresult = \"F\";\n\t\t\t} else {\n\t\t\t\tif(tyukan + kimatu >= 80) {\n\t\t\t\t\tresult = \"A\";\n\t\t\t\t} else if(tyukan + kimatu >= 65) {\n\t\t\t\t\tresult = \"B\";\n\t\t\t\t} else if((tyukan + kimatu >= 50) || (tyukan + kimatu >= 30 && saisi >= 50)) {\n\t\t\t\t\tresult = \"C\";\n\t\t\t\t} else if(tyukan + kimatu >= 30) {\n\t\t\t\t\tresult = \"D\";\n\t\t\t\t} else {\n\t\t\t\t\tresult = \"F\";\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.println(result);\n\t\t}\n\n\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(true) {
int tyukan = sc.nextInt();
int kimatu = sc.nextInt();
int saisi = sc.nextInt();
String result = "";
if(tyukan == -1 && kimatu == -1 && saisi == -1) {
break;
} else if (tyukan == -1 || kimatu == -1){
result = "F";
} else {
if(tyukan + kimatu >= 80) {
result = "A";
} else if(tyukan + kimatu >= 65) {
result = "B";
} else if((tyukan + kimatu >= 50) || (tyukan + kimatu >= 30 && saisi >= 50)) {
result = "C";
} else if(tyukan + kimatu >= 30) {
result = "D";
} else {
result = "F";
}
}
System.out.println(result);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
40,
17,
2,
13,
40,
17,
2,
13,
40,
17,
30,
3,
14,
2,
2,
13,
40,
17,
2,
13,
40,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
13,
17,
30,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
144,
5
],
[
144,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
14,
30
],
[
30,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
32,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
30,
45
],
[
45,
46
],
[
14,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
47,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
47,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
64,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
64,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
77,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
77,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
90,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
90,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
110,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
103,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
14,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
6,
141
],
[
141,
142
],
[
0,
143
],
[
143,
144
],
[
143,
145
]
] | [
"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\twhile (true) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if (m + f >= 80) {\n\t\t\t\tSystem.out.printf(\"A\");\n\t\t\t} else if (m + f >= 65) {\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t} else if (m + f >= 50) {\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t} else if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if (m + f >= 80) {\n\t\t\t\tSystem.out.printf(\"A\");\n\t\t\t} else if (m + f >= 65) {\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t} else if (m + f >= 50) {\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t} else if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if (m + f >= 80) {\n\t\t\t\tSystem.out.printf(\"A\");\n\t\t\t} else if (m + f >= 65) {\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t} else if (m + f >= 50) {\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t} else if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if (m + f >= 80) {\n\t\t\t\tSystem.out.printf(\"A\");\n\t\t\t} else if (m + f >= 65) {\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t} else if (m + f >= 50) {\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t} else if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while (true) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if (m + f >= 80) {\n\t\t\t\tSystem.out.printf(\"A\");\n\t\t\t} else if (m + f >= 65) {\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t} else if (m + f >= 50) {\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t} else if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\n\t\t}",
"true",
"{\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if (m + f >= 80) {\n\t\t\t\tSystem.out.printf(\"A\");\n\t\t\t} else if (m + f >= 65) {\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t} else if (m + f >= 50) {\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t} else if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\n\t\t}",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int f = sc.nextInt();",
"f",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int r = sc.nextInt();",
"r",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}",
"m == -1 && f == -1 && r == -1",
"m == -1 && f == -1 && r == -1",
"m == -1",
"m",
"-1",
"1",
"f == -1",
"f",
"-1",
"1",
"r == -1",
"r",
"-1",
"1",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"if (m == -1 || f == -1) {\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if (m + f >= 80) {\n\t\t\t\tSystem.out.printf(\"A\");\n\t\t\t} else if (m + f >= 65) {\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t} else if (m + f >= 50) {\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t} else if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t}",
"m == -1 || f == -1",
"m == -1",
"m",
"-1",
"1",
"f == -1",
"f",
"-1",
"1",
"{\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t}",
"System.out.printf(\"F\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"F\"",
"if (m + f >= 80) {\n\t\t\t\tSystem.out.printf(\"A\");\n\t\t\t} else if (m + f >= 65) {\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t} else if (m + f >= 50) {\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t} else if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t}",
"m + f >= 80",
"m + f",
"m",
"f",
"80",
"{\n\t\t\t\tSystem.out.printf(\"A\");\n\t\t\t}",
"System.out.printf(\"A\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"A\"",
"if (m + f >= 65) {\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t} else if (m + f >= 50) {\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t} else if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t}",
"m + f >= 65",
"m + f",
"m",
"f",
"65",
"{\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t}",
"System.out.printf(\"B\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"B\"",
"if (m + f >= 50) {\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t} else if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t}",
"m + f >= 50",
"m + f",
"m",
"f",
"50",
"{\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t}",
"System.out.printf(\"C\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"C\"",
"if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t}",
"m + f >= 30",
"m + f",
"m",
"f",
"30",
"{\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t}",
"if (r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}",
"r >= 50",
"r",
"50",
"{\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t}",
"System.out.printf(\"C\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"C\"",
"{\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}",
"System.out.printf(\"D\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"D\"",
"{\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t}",
"System.out.printf(\"F\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"F\"",
"System.out.printf(\"\\n\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"\\n\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if (m + f >= 80) {\n\t\t\t\tSystem.out.printf(\"A\");\n\t\t\t} else if (m + f >= 65) {\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t} else if (m + f >= 50) {\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t} else if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if (m + f >= 80) {\n\t\t\t\tSystem.out.printf(\"A\");\n\t\t\t} else if (m + f >= 65) {\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t} else if (m + f >= 50) {\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t} else if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (true) {
int m = sc.nextInt();
int f = sc.nextInt();
int r = sc.nextInt();
if (m == -1 && f == -1 && r == -1) {
break;
}
if (m == -1 || f == -1) {
System.out.printf("F");
} else if (m + f >= 80) {
System.out.printf("A");
} else if (m + f >= 65) {
System.out.printf("B");
} else if (m + f >= 50) {
System.out.printf("C");
} else if (m + f >= 30) {
if (r >= 50) {
System.out.printf("C");
} else {
System.out.printf("D");
}
} else {
System.out.printf("F");
}
System.out.printf("\n");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
20,
17,
17,
41,
13,
17,
42,
17,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
2,
2,
13,
40,
17,
2,
13,
40,
17,
2,
13,
40,
17,
30,
3,
30,
0,
18,
18,
13,
13,
17,
13,
0,
18,
18,
13,
13,
17,
13,
0,
18,
18,
13,
13,
17,
13,
40,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
18,
18,
13,
13,
17,
40,
17,
2,
18,
18,
13,
13,
17,
40,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
18,
18,
13,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
235,
5
],
[
235,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
28,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
28,
44
],
[
44,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
46,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
44,
59
],
[
59,
60
],
[
44,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
62,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
69,
75
],
[
61,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
76,
82
],
[
61,
83
],
[
83,
84
],
[
8,
85
],
[
85,
86
],
[
86,
87
],
[
8,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
88,
96
],
[
96,
97
],
[
97,
98
],
[
88,
99
],
[
100,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
102,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
111,
117
],
[
117,
118
],
[
101,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
101,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
128,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
127,
139
],
[
126,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
141,
146
],
[
126,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
149,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
148,
160
],
[
147,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
147,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
170,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
176,
180
],
[
169,
181
],
[
168,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
183,
188
],
[
168,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
195
],
[
190,
196
],
[
189,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
198,
203
],
[
189,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
207,
211
],
[
206,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
212,
216
],
[
205,
217
],
[
204,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
219,
224
],
[
204,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
226,
231
],
[
6,
232
],
[
232,
233
],
[
0,
234
],
[
234,
235
],
[
234,
236
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint m,f,r;\n\t\tint x[][] = new int[51][3];\n\t\tint i = 0;\n\t\twhile(true){\n\t\t\tm = stdIn.nextInt();\n\t\t\tf = stdIn.nextInt();\n\t\t\tr = stdIn.nextInt();\n\t\t\tif ((m==-1)&&(f==-1)&&(r==-1)) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tx[i][0] = m;\n\t\t\t\tx[i][1] = f;\n\t\t\t\tx[i][2] = r;\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\tstdIn.close();\n\t\tfor(int j=0;j<i; j++) {\n\t\t\t//中間試験、期末試験のいずれかを欠席した場合成績は F。\n\t\t\tif(x[j][0]==-1 ||x[j][1]==-1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t//中間試験と期末試験の合計点数が 80 以上ならば成績は A 。\n\t\t\t} else if((x[j][0] + x[j][1]) >=80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t//中間試験と期末試験の合計点数が 65 以上 80 未満ならば成績は B。\n\t\t\t} else if((x[j][0] + x[j][1]) >=65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t//中間試験と期末試験の合計点数が 50 以上 65 未満ならば成績は C。\n\t\t\t} else if((x[j][0] + x[j][1]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t//中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。\n\t\t\t} else if((x[j][2]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if((x[j][0] + x[j][1]) >=30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t//中間試験と期末試験の合計点数が 30 未満ならば成績は F。\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint m,f,r;\n\t\tint x[][] = new int[51][3];\n\t\tint i = 0;\n\t\twhile(true){\n\t\t\tm = stdIn.nextInt();\n\t\t\tf = stdIn.nextInt();\n\t\t\tr = stdIn.nextInt();\n\t\t\tif ((m==-1)&&(f==-1)&&(r==-1)) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tx[i][0] = m;\n\t\t\t\tx[i][1] = f;\n\t\t\t\tx[i][2] = r;\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\tstdIn.close();\n\t\tfor(int j=0;j<i; j++) {\n\t\t\t//中間試験、期末試験のいずれかを欠席した場合成績は F。\n\t\t\tif(x[j][0]==-1 ||x[j][1]==-1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t//中間試験と期末試験の合計点数が 80 以上ならば成績は A 。\n\t\t\t} else if((x[j][0] + x[j][1]) >=80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t//中間試験と期末試験の合計点数が 65 以上 80 未満ならば成績は B。\n\t\t\t} else if((x[j][0] + x[j][1]) >=65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t//中間試験と期末試験の合計点数が 50 以上 65 未満ならば成績は C。\n\t\t\t} else if((x[j][0] + x[j][1]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t//中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。\n\t\t\t} else if((x[j][2]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if((x[j][0] + x[j][1]) >=30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t//中間試験と期末試験の合計点数が 30 未満ならば成績は F。\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint m,f,r;\n\t\tint x[][] = new int[51][3];\n\t\tint i = 0;\n\t\twhile(true){\n\t\t\tm = stdIn.nextInt();\n\t\t\tf = stdIn.nextInt();\n\t\t\tr = stdIn.nextInt();\n\t\t\tif ((m==-1)&&(f==-1)&&(r==-1)) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tx[i][0] = m;\n\t\t\t\tx[i][1] = f;\n\t\t\t\tx[i][2] = r;\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\tstdIn.close();\n\t\tfor(int j=0;j<i; j++) {\n\t\t\t//中間試験、期末試験のいずれかを欠席した場合成績は F。\n\t\t\tif(x[j][0]==-1 ||x[j][1]==-1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t//中間試験と期末試験の合計点数が 80 以上ならば成績は A 。\n\t\t\t} else if((x[j][0] + x[j][1]) >=80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t//中間試験と期末試験の合計点数が 65 以上 80 未満ならば成績は B。\n\t\t\t} else if((x[j][0] + x[j][1]) >=65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t//中間試験と期末試験の合計点数が 50 以上 65 未満ならば成績は C。\n\t\t\t} else if((x[j][0] + x[j][1]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t//中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。\n\t\t\t} else if((x[j][2]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if((x[j][0] + x[j][1]) >=30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t//中間試験と期末試験の合計点数が 30 未満ならば成績は F。\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint m,f,r;\n\t\tint x[][] = new int[51][3];\n\t\tint i = 0;\n\t\twhile(true){\n\t\t\tm = stdIn.nextInt();\n\t\t\tf = stdIn.nextInt();\n\t\t\tr = stdIn.nextInt();\n\t\t\tif ((m==-1)&&(f==-1)&&(r==-1)) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tx[i][0] = m;\n\t\t\t\tx[i][1] = f;\n\t\t\t\tx[i][2] = r;\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\tstdIn.close();\n\t\tfor(int j=0;j<i; j++) {\n\t\t\t//中間試験、期末試験のいずれかを欠席した場合成績は F。\n\t\t\tif(x[j][0]==-1 ||x[j][1]==-1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t//中間試験と期末試験の合計点数が 80 以上ならば成績は A 。\n\t\t\t} else if((x[j][0] + x[j][1]) >=80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t//中間試験と期末試験の合計点数が 65 以上 80 未満ならば成績は B。\n\t\t\t} else if((x[j][0] + x[j][1]) >=65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t//中間試験と期末試験の合計点数が 50 以上 65 未満ならば成績は C。\n\t\t\t} else if((x[j][0] + x[j][1]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t//中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。\n\t\t\t} else if((x[j][2]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if((x[j][0] + x[j][1]) >=30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t//中間試験と期末試験の合計点数が 30 未満ならば成績は F。\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int m",
"m",
"f",
"f",
"r;",
"r",
"int x[][] = new int[51][3];",
"x",
"new int[51][3]",
"51",
"3",
"int i = 0;",
"i",
"0",
"while(true){\n\t\t\tm = stdIn.nextInt();\n\t\t\tf = stdIn.nextInt();\n\t\t\tr = stdIn.nextInt();\n\t\t\tif ((m==-1)&&(f==-1)&&(r==-1)) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tx[i][0] = m;\n\t\t\t\tx[i][1] = f;\n\t\t\t\tx[i][2] = r;\n\t\t\t\ti++;\n\t\t\t}\n\t\t}",
"true",
"{\n\t\t\tm = stdIn.nextInt();\n\t\t\tf = stdIn.nextInt();\n\t\t\tr = stdIn.nextInt();\n\t\t\tif ((m==-1)&&(f==-1)&&(r==-1)) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tx[i][0] = m;\n\t\t\t\tx[i][1] = f;\n\t\t\t\tx[i][2] = r;\n\t\t\t\ti++;\n\t\t\t}\n\t\t}",
"m = stdIn.nextInt()",
"m",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"f = stdIn.nextInt()",
"f",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"r = stdIn.nextInt()",
"r",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"if ((m==-1)&&(f==-1)&&(r==-1)) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tx[i][0] = m;\n\t\t\t\tx[i][1] = f;\n\t\t\t\tx[i][2] = r;\n\t\t\t\ti++;\n\t\t\t}",
"(m==-1)&&(f==-1)&&(r==-1)",
"(m==-1)&&(f==-1)&&(r==-1)",
"(m==-1)",
"m",
"-1",
"1",
"(f==-1)",
"f",
"-1",
"1",
"(r==-1)",
"r",
"-1",
"1",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"{\n\t\t\t\tx[i][0] = m;\n\t\t\t\tx[i][1] = f;\n\t\t\t\tx[i][2] = r;\n\t\t\t\ti++;\n\t\t\t}",
"x[i][0] = m",
"x[i][0]",
"x[i]",
"x",
"i",
"0",
"m",
"x[i][1] = f",
"x[i][1]",
"x[i]",
"x",
"i",
"1",
"f",
"x[i][2] = r",
"x[i][2]",
"x[i]",
"x",
"i",
"2",
"r",
"i++",
"i",
"stdIn.close()",
"stdIn.close",
"stdIn",
"for(int j=0;j<i; j++) {\n\t\t\t//中間試験、期末試験のいずれかを欠席した場合成績は F。\n\t\t\tif(x[j][0]==-1 ||x[j][1]==-1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t//中間試験と期末試験の合計点数が 80 以上ならば成績は A 。\n\t\t\t} else if((x[j][0] + x[j][1]) >=80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t//中間試験と期末試験の合計点数が 65 以上 80 未満ならば成績は B。\n\t\t\t} else if((x[j][0] + x[j][1]) >=65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t//中間試験と期末試験の合計点数が 50 以上 65 未満ならば成績は C。\n\t\t\t} else if((x[j][0] + x[j][1]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t//中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。\n\t\t\t} else if((x[j][2]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if((x[j][0] + x[j][1]) >=30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t//中間試験と期末試験の合計点数が 30 未満ならば成績は F。\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<i",
"j",
"i",
"j++",
"j++",
"j",
"{\n\t\t\t//中間試験、期末試験のいずれかを欠席した場合成績は F。\n\t\t\tif(x[j][0]==-1 ||x[j][1]==-1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t//中間試験と期末試験の合計点数が 80 以上ならば成績は A 。\n\t\t\t} else if((x[j][0] + x[j][1]) >=80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t//中間試験と期末試験の合計点数が 65 以上 80 未満ならば成績は B。\n\t\t\t} else if((x[j][0] + x[j][1]) >=65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t//中間試験と期末試験の合計点数が 50 以上 65 未満ならば成績は C。\n\t\t\t} else if((x[j][0] + x[j][1]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t//中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。\n\t\t\t} else if((x[j][2]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if((x[j][0] + x[j][1]) >=30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t//中間試験と期末試験の合計点数が 30 未満ならば成績は F。\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}",
"{\n\t\t\t//中間試験、期末試験のいずれかを欠席した場合成績は F。\n\t\t\tif(x[j][0]==-1 ||x[j][1]==-1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t//中間試験と期末試験の合計点数が 80 以上ならば成績は A 。\n\t\t\t} else if((x[j][0] + x[j][1]) >=80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t//中間試験と期末試験の合計点数が 65 以上 80 未満ならば成績は B。\n\t\t\t} else if((x[j][0] + x[j][1]) >=65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t//中間試験と期末試験の合計点数が 50 以上 65 未満ならば成績は C。\n\t\t\t} else if((x[j][0] + x[j][1]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t//中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。\n\t\t\t} else if((x[j][2]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if((x[j][0] + x[j][1]) >=30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t//中間試験と期末試験の合計点数が 30 未満ならば成績は F。\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}",
"if(x[j][0]==-1 ||x[j][1]==-1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t//中間試験と期末試験の合計点数が 80 以上ならば成績は A 。\n\t\t\t} else if((x[j][0] + x[j][1]) >=80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t//中間試験と期末試験の合計点数が 65 以上 80 未満ならば成績は B。\n\t\t\t} else if((x[j][0] + x[j][1]) >=65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t//中間試験と期末試験の合計点数が 50 以上 65 未満ならば成績は C。\n\t\t\t} else if((x[j][0] + x[j][1]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t//中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。\n\t\t\t} else if((x[j][2]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if((x[j][0] + x[j][1]) >=30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t//中間試験と期末試験の合計点数が 30 未満ならば成績は F。\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}",
"x[j][0]==-1 ||x[j][1]==-1",
"x[j][0]==-1",
"x[j][0]",
"x[j]",
"x",
"j",
"0",
"-1",
"1",
"x[j][1]==-1",
"x[j][1]",
"x[j]",
"x",
"j",
"1",
"-1",
"1",
"{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t//中間試験と期末試験の合計点数が 80 以上ならば成績は A 。\n\t\t\t}",
"System.out.println(\"F\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"F\"",
"if((x[j][0] + x[j][1]) >=80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t//中間試験と期末試験の合計点数が 65 以上 80 未満ならば成績は B。\n\t\t\t} else if((x[j][0] + x[j][1]) >=65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t//中間試験と期末試験の合計点数が 50 以上 65 未満ならば成績は C。\n\t\t\t} else if((x[j][0] + x[j][1]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t//中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。\n\t\t\t} else if((x[j][2]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if((x[j][0] + x[j][1]) >=30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t//中間試験と期末試験の合計点数が 30 未満ならば成績は F。\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}",
"(x[j][0] + x[j][1]) >=80",
"(x[j][0] + x[j][1])",
"x[j][0]",
"x[j]",
"x",
"j",
"0",
"x[j][1]",
"x[j]",
"x",
"j",
"1",
"80",
"{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t//中間試験と期末試験の合計点数が 65 以上 80 未満ならば成績は B。\n\t\t\t}",
"System.out.println(\"A\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"A\"",
"if((x[j][0] + x[j][1]) >=65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t//中間試験と期末試験の合計点数が 50 以上 65 未満ならば成績は C。\n\t\t\t} else if((x[j][0] + x[j][1]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t//中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。\n\t\t\t} else if((x[j][2]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if((x[j][0] + x[j][1]) >=30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t//中間試験と期末試験の合計点数が 30 未満ならば成績は F。\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}",
"(x[j][0] + x[j][1]) >=65",
"(x[j][0] + x[j][1])",
"x[j][0]",
"x[j]",
"x",
"j",
"0",
"x[j][1]",
"x[j]",
"x",
"j",
"1",
"65",
"{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t//中間試験と期末試験の合計点数が 50 以上 65 未満ならば成績は C。\n\t\t\t}",
"System.out.println(\"B\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"B\"",
"if((x[j][0] + x[j][1]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t//中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。\n\t\t\t} else if((x[j][2]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if((x[j][0] + x[j][1]) >=30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t//中間試験と期末試験の合計点数が 30 未満ならば成績は F。\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}",
"(x[j][0] + x[j][1]) >=50",
"(x[j][0] + x[j][1])",
"x[j][0]",
"x[j]",
"x",
"j",
"0",
"x[j][1]",
"x[j]",
"x",
"j",
"1",
"50",
"{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t//中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。\n\t\t\t}",
"System.out.println(\"C\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C\"",
"if((x[j][2]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if((x[j][0] + x[j][1]) >=30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t//中間試験と期末試験の合計点数が 30 未満ならば成績は F。\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}",
"(x[j][2]) >=50",
"(x[j][2])",
"x[j]",
"x",
"j",
"2",
"50",
"{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}",
"System.out.println(\"C\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C\"",
"if((x[j][0] + x[j][1]) >=30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t//中間試験と期末試験の合計点数が 30 未満ならば成績は F。\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}",
"(x[j][0] + x[j][1]) >=30",
"(x[j][0] + x[j][1])",
"x[j][0]",
"x[j]",
"x",
"j",
"0",
"x[j][1]",
"x[j]",
"x",
"j",
"1",
"30",
"{\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}",
"System.out.println(\"D\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D\"",
"{\n\t\t\t//中間試験と期末試験の合計点数が 30 未満ならば成績は F。\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}",
"System.out.println(\"F\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"F\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint m,f,r;\n\t\tint x[][] = new int[51][3];\n\t\tint i = 0;\n\t\twhile(true){\n\t\t\tm = stdIn.nextInt();\n\t\t\tf = stdIn.nextInt();\n\t\t\tr = stdIn.nextInt();\n\t\t\tif ((m==-1)&&(f==-1)&&(r==-1)) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tx[i][0] = m;\n\t\t\t\tx[i][1] = f;\n\t\t\t\tx[i][2] = r;\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\tstdIn.close();\n\t\tfor(int j=0;j<i; j++) {\n\t\t\t//中間試験、期末試験のいずれかを欠席した場合成績は F。\n\t\t\tif(x[j][0]==-1 ||x[j][1]==-1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t//中間試験と期末試験の合計点数が 80 以上ならば成績は A 。\n\t\t\t} else if((x[j][0] + x[j][1]) >=80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t//中間試験と期末試験の合計点数が 65 以上 80 未満ならば成績は B。\n\t\t\t} else if((x[j][0] + x[j][1]) >=65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t//中間試験と期末試験の合計点数が 50 以上 65 未満ならば成績は C。\n\t\t\t} else if((x[j][0] + x[j][1]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t//中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。\n\t\t\t} else if((x[j][2]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if((x[j][0] + x[j][1]) >=30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t//中間試験と期末試験の合計点数が 30 未満ならば成績は F。\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint m,f,r;\n\t\tint x[][] = new int[51][3];\n\t\tint i = 0;\n\t\twhile(true){\n\t\t\tm = stdIn.nextInt();\n\t\t\tf = stdIn.nextInt();\n\t\t\tr = stdIn.nextInt();\n\t\t\tif ((m==-1)&&(f==-1)&&(r==-1)) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tx[i][0] = m;\n\t\t\t\tx[i][1] = f;\n\t\t\t\tx[i][2] = r;\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\tstdIn.close();\n\t\tfor(int j=0;j<i; j++) {\n\t\t\t//中間試験、期末試験のいずれかを欠席した場合成績は F。\n\t\t\tif(x[j][0]==-1 ||x[j][1]==-1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t//中間試験と期末試験の合計点数が 80 以上ならば成績は A 。\n\t\t\t} else if((x[j][0] + x[j][1]) >=80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t//中間試験と期末試験の合計点数が 65 以上 80 未満ならば成績は B。\n\t\t\t} else if((x[j][0] + x[j][1]) >=65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t//中間試験と期末試験の合計点数が 50 以上 65 未満ならば成績は C。\n\t\t\t} else if((x[j][0] + x[j][1]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t//中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。\n\t\t\t} else if((x[j][2]) >=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if((x[j][0] + x[j][1]) >=30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t//中間試験と期末試験の合計点数が 30 未満ならば成績は F。\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int m,f,r;
int x[][] = new int[51][3];
int i = 0;
while(true){
m = stdIn.nextInt();
f = stdIn.nextInt();
r = stdIn.nextInt();
if ((m==-1)&&(f==-1)&&(r==-1)) {
break;
} else {
x[i][0] = m;
x[i][1] = f;
x[i][2] = r;
i++;
}
}
stdIn.close();
for(int j=0;j<i; j++) {
//中間試験、期末試験のいずれかを欠席した場合成績は F。
if(x[j][0]==-1 ||x[j][1]==-1) {
System.out.println("F");
//中間試験と期末試験の合計点数が 80 以上ならば成績は A 。
} else if((x[j][0] + x[j][1]) >=80) {
System.out.println("A");
//中間試験と期末試験の合計点数が 65 以上 80 未満ならば成績は B。
} else if((x[j][0] + x[j][1]) >=65) {
System.out.println("B");
//中間試験と期末試験の合計点数が 50 以上 65 未満ならば成績は C。
} else if((x[j][0] + x[j][1]) >=50) {
System.out.println("C");
//中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。
} else if((x[j][2]) >=50) {
System.out.println("C");
} else if((x[j][0] + x[j][1]) >=30) {
System.out.println("D");
} else {
//中間試験と期末試験の合計点数が 30 未満ならば成績は F。
System.out.println("F");
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
14,
2,
2,
2,
13,
40,
17,
2,
13,
40,
17,
2,
13,
40,
17,
30,
3,
14,
2,
2,
13,
40,
17,
2,
13,
40,
17,
30,
4,
18,
13,
17,
30,
41,
13,
17,
41,
13,
2,
13,
13,
14,
2,
13,
17,
30,
4,
18,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
14,
2,
13,
17,
30,
4,
18,
13,
17,
30,
4,
18,
13,
17,
14,
2,
13,
17,
30,
4,
18,
13,
17,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
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
],
[
186,
14
],
[
186,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
28,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
28,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
45,
47
],
[
28,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
53,
55
],
[
28,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
61,
63
],
[
28,
64
],
[
64,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
66,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
64,
79
],
[
79,
80
],
[
28,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
81,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
81,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
96,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
105,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
119,
120
],
[
119,
121
],
[
114,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
114,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
132,
134
],
[
127,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
127,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
145,
146
],
[
145,
147
],
[
140,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
154,
157
],
[
149,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
159,
162
],
[
140,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
163,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
168,
171
],
[
17,
172
],
[
172,
173
],
[
172,
174
],
[
172,
175
],
[
176,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
15,
183
],
[
183,
184
],
[
0,
185
],
[
185,
186
],
[
185,
187
]
] | [
"import java.io.BufferedInputStream;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner stdin = new Scanner(new BufferedInputStream(System.in));\n\t\tList<String> output = new ArrayList<String>();\n\n\t\twhile (stdin.hasNext()) {\n\t\t\tString input = stdin.nextLine();\n\t\t\tString[] inputs = input.split(\" \");\n\t\t\tint m = Integer.parseInt(inputs[0]);\n\t\t\tint f = Integer.parseInt(inputs[1]);\n\t\t\tint r = Integer.parseInt(inputs[2]);\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} \n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\toutput.add(\"F\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\t\n\t\t\t\tString grade = \"\";\n\t\t\t\tint total = m + f;\n\t\t\t\tif (total >= 80) {\n\t\t\t\t\toutput.add( \"A\");\n\t\t\t\t} else if (total >= 65 && total < 80) {\n\t\t\t\t\toutput.add(\"B\");\n\t\t\t\t} else if (total >= 50 && total < 65) {\n\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t} else if (total >= 30 && total < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (total < 30) {\n\t\t\t\t\toutput.add(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (String out : output) {\n\t\t\tSystem.out.println(out);\n\t\t}\n\t}\n}",
"import java.io.BufferedInputStream;",
"BufferedInputStream",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner stdin = new Scanner(new BufferedInputStream(System.in));\n\t\tList<String> output = new ArrayList<String>();\n\n\t\twhile (stdin.hasNext()) {\n\t\t\tString input = stdin.nextLine();\n\t\t\tString[] inputs = input.split(\" \");\n\t\t\tint m = Integer.parseInt(inputs[0]);\n\t\t\tint f = Integer.parseInt(inputs[1]);\n\t\t\tint r = Integer.parseInt(inputs[2]);\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} \n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\toutput.add(\"F\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\t\n\t\t\t\tString grade = \"\";\n\t\t\t\tint total = m + f;\n\t\t\t\tif (total >= 80) {\n\t\t\t\t\toutput.add( \"A\");\n\t\t\t\t} else if (total >= 65 && total < 80) {\n\t\t\t\t\toutput.add(\"B\");\n\t\t\t\t} else if (total >= 50 && total < 65) {\n\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t} else if (total >= 30 && total < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (total < 30) {\n\t\t\t\t\toutput.add(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (String out : output) {\n\t\t\tSystem.out.println(out);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner stdin = new Scanner(new BufferedInputStream(System.in));\n\t\tList<String> output = new ArrayList<String>();\n\n\t\twhile (stdin.hasNext()) {\n\t\t\tString input = stdin.nextLine();\n\t\t\tString[] inputs = input.split(\" \");\n\t\t\tint m = Integer.parseInt(inputs[0]);\n\t\t\tint f = Integer.parseInt(inputs[1]);\n\t\t\tint r = Integer.parseInt(inputs[2]);\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} \n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\toutput.add(\"F\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\t\n\t\t\t\tString grade = \"\";\n\t\t\t\tint total = m + f;\n\t\t\t\tif (total >= 80) {\n\t\t\t\t\toutput.add( \"A\");\n\t\t\t\t} else if (total >= 65 && total < 80) {\n\t\t\t\t\toutput.add(\"B\");\n\t\t\t\t} else if (total >= 50 && total < 65) {\n\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t} else if (total >= 30 && total < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (total < 30) {\n\t\t\t\t\toutput.add(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (String out : output) {\n\t\t\tSystem.out.println(out);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner stdin = new Scanner(new BufferedInputStream(System.in));\n\t\tList<String> output = new ArrayList<String>();\n\n\t\twhile (stdin.hasNext()) {\n\t\t\tString input = stdin.nextLine();\n\t\t\tString[] inputs = input.split(\" \");\n\t\t\tint m = Integer.parseInt(inputs[0]);\n\t\t\tint f = Integer.parseInt(inputs[1]);\n\t\t\tint r = Integer.parseInt(inputs[2]);\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} \n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\toutput.add(\"F\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\t\n\t\t\t\tString grade = \"\";\n\t\t\t\tint total = m + f;\n\t\t\t\tif (total >= 80) {\n\t\t\t\t\toutput.add( \"A\");\n\t\t\t\t} else if (total >= 65 && total < 80) {\n\t\t\t\t\toutput.add(\"B\");\n\t\t\t\t} else if (total >= 50 && total < 65) {\n\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t} else if (total >= 30 && total < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (total < 30) {\n\t\t\t\t\toutput.add(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (String out : output) {\n\t\t\tSystem.out.println(out);\n\t\t}\n\t}",
"Scanner stdin = new Scanner(new BufferedInputStream(System.in));",
"stdin",
"new Scanner(new BufferedInputStream(System.in))",
"List<String> output = new ArrayList<String>();",
"output",
"new ArrayList<String>()",
"while (stdin.hasNext()) {\n\t\t\tString input = stdin.nextLine();\n\t\t\tString[] inputs = input.split(\" \");\n\t\t\tint m = Integer.parseInt(inputs[0]);\n\t\t\tint f = Integer.parseInt(inputs[1]);\n\t\t\tint r = Integer.parseInt(inputs[2]);\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} \n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\toutput.add(\"F\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\t\n\t\t\t\tString grade = \"\";\n\t\t\t\tint total = m + f;\n\t\t\t\tif (total >= 80) {\n\t\t\t\t\toutput.add( \"A\");\n\t\t\t\t} else if (total >= 65 && total < 80) {\n\t\t\t\t\toutput.add(\"B\");\n\t\t\t\t} else if (total >= 50 && total < 65) {\n\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t} else if (total >= 30 && total < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (total < 30) {\n\t\t\t\t\toutput.add(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"stdin.hasNext()",
"stdin.hasNext",
"stdin",
"{\n\t\t\tString input = stdin.nextLine();\n\t\t\tString[] inputs = input.split(\" \");\n\t\t\tint m = Integer.parseInt(inputs[0]);\n\t\t\tint f = Integer.parseInt(inputs[1]);\n\t\t\tint r = Integer.parseInt(inputs[2]);\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} \n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\toutput.add(\"F\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\t\n\t\t\t\tString grade = \"\";\n\t\t\t\tint total = m + f;\n\t\t\t\tif (total >= 80) {\n\t\t\t\t\toutput.add( \"A\");\n\t\t\t\t} else if (total >= 65 && total < 80) {\n\t\t\t\t\toutput.add(\"B\");\n\t\t\t\t} else if (total >= 50 && total < 65) {\n\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t} else if (total >= 30 && total < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (total < 30) {\n\t\t\t\t\toutput.add(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"String input = stdin.nextLine();",
"input",
"stdin.nextLine()",
"stdin.nextLine",
"stdin",
"String[] inputs = input.split(\" \");",
"inputs",
"input.split(\" \")",
"input.split",
"input",
"\" \"",
"int m = Integer.parseInt(inputs[0]);",
"m",
"Integer.parseInt(inputs[0])",
"Integer.parseInt",
"Integer",
"inputs[0]",
"inputs",
"0",
"int f = Integer.parseInt(inputs[1]);",
"f",
"Integer.parseInt(inputs[1])",
"Integer.parseInt",
"Integer",
"inputs[1]",
"inputs",
"1",
"int r = Integer.parseInt(inputs[2]);",
"r",
"Integer.parseInt(inputs[2])",
"Integer.parseInt",
"Integer",
"inputs[2]",
"inputs",
"2",
"if (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}",
"m == -1 && f == -1 && r == -1",
"m == -1 && f == -1 && r == -1",
"m == -1",
"m",
"-1",
"1",
"f == -1",
"f",
"-1",
"1",
"r == -1",
"r",
"-1",
"1",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"if (m == -1 || f == -1) {\n\t\t\t\toutput.add(\"F\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\t\n\t\t\t\tString grade = \"\";\n\t\t\t\tint total = m + f;\n\t\t\t\tif (total >= 80) {\n\t\t\t\t\toutput.add( \"A\");\n\t\t\t\t} else if (total >= 65 && total < 80) {\n\t\t\t\t\toutput.add(\"B\");\n\t\t\t\t} else if (total >= 50 && total < 65) {\n\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t} else if (total >= 30 && total < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (total < 30) {\n\t\t\t\t\toutput.add(\"F\");\n\t\t\t\t}\n\t\t\t}",
"m == -1 || f == -1",
"m == -1",
"m",
"-1",
"1",
"f == -1",
"f",
"-1",
"1",
"{\n\t\t\t\toutput.add(\"F\");\n\t\t\t}",
"output.add(\"F\")",
"output.add",
"output",
"\"F\"",
"{\n\t\t\t\t\n\t\t\t\tString grade = \"\";\n\t\t\t\tint total = m + f;\n\t\t\t\tif (total >= 80) {\n\t\t\t\t\toutput.add( \"A\");\n\t\t\t\t} else if (total >= 65 && total < 80) {\n\t\t\t\t\toutput.add(\"B\");\n\t\t\t\t} else if (total >= 50 && total < 65) {\n\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t} else if (total >= 30 && total < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (total < 30) {\n\t\t\t\t\toutput.add(\"F\");\n\t\t\t\t}\n\t\t\t}",
"String grade = \"\";",
"grade",
"\"\"",
"int total = m + f;",
"total",
"m + f",
"m",
"f",
"if (total >= 80) {\n\t\t\t\t\toutput.add( \"A\");\n\t\t\t\t} else if (total >= 65 && total < 80) {\n\t\t\t\t\toutput.add(\"B\");\n\t\t\t\t} else if (total >= 50 && total < 65) {\n\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t} else if (total >= 30 && total < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (total < 30) {\n\t\t\t\t\toutput.add(\"F\");\n\t\t\t\t}",
"total >= 80",
"total",
"80",
"{\n\t\t\t\t\toutput.add( \"A\");\n\t\t\t\t}",
"output.add( \"A\")",
"output.add",
"output",
"\"A\"",
"if (total >= 65 && total < 80) {\n\t\t\t\t\toutput.add(\"B\");\n\t\t\t\t} else if (total >= 50 && total < 65) {\n\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t} else if (total >= 30 && total < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (total < 30) {\n\t\t\t\t\toutput.add(\"F\");\n\t\t\t\t}",
"total >= 65 && total < 80",
"total >= 65",
"total",
"65",
"total < 80",
"total",
"80",
"{\n\t\t\t\t\toutput.add(\"B\");\n\t\t\t\t}",
"output.add(\"B\")",
"output.add",
"output",
"\"B\"",
"if (total >= 50 && total < 65) {\n\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t} else if (total >= 30 && total < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (total < 30) {\n\t\t\t\t\toutput.add(\"F\");\n\t\t\t\t}",
"total >= 50 && total < 65",
"total >= 50",
"total",
"50",
"total < 65",
"total",
"65",
"{\n\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t}",
"output.add(\"C\")",
"output.add",
"output",
"\"C\"",
"if (total >= 30 && total < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (total < 30) {\n\t\t\t\t\toutput.add(\"F\");\n\t\t\t\t}",
"total >= 30 && total < 50",
"total >= 30",
"total",
"30",
"total < 50",
"total",
"50",
"{\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}",
"if (r >= 50) {\n\t\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.add(\"D\");\n\t\t\t\t\t}",
"r >= 50",
"r",
"50",
"{\n\t\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t\t}",
"output.add(\"C\")",
"output.add",
"output",
"\"C\"",
"{\n\t\t\t\t\t\toutput.add(\"D\");\n\t\t\t\t\t}",
"output.add(\"D\")",
"output.add",
"output",
"\"D\"",
"if (total < 30) {\n\t\t\t\t\toutput.add(\"F\");\n\t\t\t\t}",
"total < 30",
"total",
"30",
"{\n\t\t\t\t\toutput.add(\"F\");\n\t\t\t\t}",
"output.add(\"F\")",
"output.add",
"output",
"\"F\"",
"for (String out : output) {\n\t\t\tSystem.out.println(out);\n\t\t}",
"String out",
"output",
"{\n\t\t\tSystem.out.println(out);\n\t\t}",
"{\n\t\t\tSystem.out.println(out);\n\t\t}",
"System.out.println(out)",
"System.out.println",
"System.out",
"System",
"System.out",
"out",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner stdin = new Scanner(new BufferedInputStream(System.in));\n\t\tList<String> output = new ArrayList<String>();\n\n\t\twhile (stdin.hasNext()) {\n\t\t\tString input = stdin.nextLine();\n\t\t\tString[] inputs = input.split(\" \");\n\t\t\tint m = Integer.parseInt(inputs[0]);\n\t\t\tint f = Integer.parseInt(inputs[1]);\n\t\t\tint r = Integer.parseInt(inputs[2]);\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} \n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\toutput.add(\"F\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\t\n\t\t\t\tString grade = \"\";\n\t\t\t\tint total = m + f;\n\t\t\t\tif (total >= 80) {\n\t\t\t\t\toutput.add( \"A\");\n\t\t\t\t} else if (total >= 65 && total < 80) {\n\t\t\t\t\toutput.add(\"B\");\n\t\t\t\t} else if (total >= 50 && total < 65) {\n\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t} else if (total >= 30 && total < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (total < 30) {\n\t\t\t\t\toutput.add(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (String out : output) {\n\t\t\tSystem.out.println(out);\n\t\t}\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner stdin = new Scanner(new BufferedInputStream(System.in));\n\t\tList<String> output = new ArrayList<String>();\n\n\t\twhile (stdin.hasNext()) {\n\t\t\tString input = stdin.nextLine();\n\t\t\tString[] inputs = input.split(\" \");\n\t\t\tint m = Integer.parseInt(inputs[0]);\n\t\t\tint f = Integer.parseInt(inputs[1]);\n\t\t\tint r = Integer.parseInt(inputs[2]);\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} \n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\toutput.add(\"F\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\t\n\t\t\t\tString grade = \"\";\n\t\t\t\tint total = m + f;\n\t\t\t\tif (total >= 80) {\n\t\t\t\t\toutput.add( \"A\");\n\t\t\t\t} else if (total >= 65 && total < 80) {\n\t\t\t\t\toutput.add(\"B\");\n\t\t\t\t} else if (total >= 50 && total < 65) {\n\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t} else if (total >= 30 && total < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\toutput.add(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\toutput.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (total < 30) {\n\t\t\t\t\toutput.add(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (String out : output) {\n\t\t\tSystem.out.println(out);\n\t\t}\n\t}\n}",
"Main"
] | import java.io.BufferedInputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner stdin = new Scanner(new BufferedInputStream(System.in));
List<String> output = new ArrayList<String>();
while (stdin.hasNext()) {
String input = stdin.nextLine();
String[] inputs = input.split(" ");
int m = Integer.parseInt(inputs[0]);
int f = Integer.parseInt(inputs[1]);
int r = Integer.parseInt(inputs[2]);
if (m == -1 && f == -1 && r == -1) {
break;
}
if (m == -1 || f == -1) {
output.add("F");
}
else {
String grade = "";
int total = m + f;
if (total >= 80) {
output.add( "A");
} else if (total >= 65 && total < 80) {
output.add("B");
} else if (total >= 50 && total < 65) {
output.add("C");
} else if (total >= 30 && total < 50) {
if (r >= 50) {
output.add("C");
} else {
output.add("D");
}
} else if (total < 30) {
output.add("F");
}
}
}
for (String out : output) {
System.out.println(out);
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
40,
2,
2,
2,
13,
40,
17,
2,
13,
40,
17,
2,
13,
40,
17,
30,
41,
13,
2,
13,
13,
14,
2,
2,
13,
40,
17,
2,
13,
40,
17,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
142,
5
],
[
142,
6
],
[
6,
7
],
[
6,
8
],
[
142,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
12,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
16,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
16,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
16,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
34,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
32,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
54,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
54,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
70,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
80,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
99,
100
],
[
99,
101
],
[
94,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
94,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
113,
114
],
[
113,
115
],
[
108,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
117,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
108,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
9,
139
],
[
139,
140
],
[
0,
141
],
[
141,
142
],
[
141,
143
]
] | [
"import java.util.*;\npublic class Main {\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args) {\n \n while(kbd.hasNext()){\n int m = kbd.nextInt();\n int f = kbd.nextInt();\n int r = kbd.nextInt();\n \n if(!(m==-1 && f==-1 && r==-1)){\n int p = m+f;\n if(m==-1 || f==-1) System.out.println(\"F\");\n else if(p>=80) System.out.println(\"A\");\n else if(p>=65 && p<80) System.out.println(\"B\");\n else if(p>=50 && p<65) System.out.println(\"C\");\n else if(p>=30 && p<50) {\n if(r>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args) {\n \n while(kbd.hasNext()){\n int m = kbd.nextInt();\n int f = kbd.nextInt();\n int r = kbd.nextInt();\n \n if(!(m==-1 && f==-1 && r==-1)){\n int p = m+f;\n if(m==-1 || f==-1) System.out.println(\"F\");\n else if(p>=80) System.out.println(\"A\");\n else if(p>=65 && p<80) System.out.println(\"B\");\n else if(p>=50 && p<65) System.out.println(\"C\");\n else if(p>=30 && p<50) {\n if(r>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }\n }\n }\n}",
"Main",
"static Scanner kbd = new Scanner(System.in);",
"kbd",
"new Scanner(System.in)",
"public static void main(String[] args) {\n \n while(kbd.hasNext()){\n int m = kbd.nextInt();\n int f = kbd.nextInt();\n int r = kbd.nextInt();\n \n if(!(m==-1 && f==-1 && r==-1)){\n int p = m+f;\n if(m==-1 || f==-1) System.out.println(\"F\");\n else if(p>=80) System.out.println(\"A\");\n else if(p>=65 && p<80) System.out.println(\"B\");\n else if(p>=50 && p<65) System.out.println(\"C\");\n else if(p>=30 && p<50) {\n if(r>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }\n }\n }",
"main",
"{\n \n while(kbd.hasNext()){\n int m = kbd.nextInt();\n int f = kbd.nextInt();\n int r = kbd.nextInt();\n \n if(!(m==-1 && f==-1 && r==-1)){\n int p = m+f;\n if(m==-1 || f==-1) System.out.println(\"F\");\n else if(p>=80) System.out.println(\"A\");\n else if(p>=65 && p<80) System.out.println(\"B\");\n else if(p>=50 && p<65) System.out.println(\"C\");\n else if(p>=30 && p<50) {\n if(r>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }\n }\n }",
"while(kbd.hasNext()){\n int m = kbd.nextInt();\n int f = kbd.nextInt();\n int r = kbd.nextInt();\n \n if(!(m==-1 && f==-1 && r==-1)){\n int p = m+f;\n if(m==-1 || f==-1) System.out.println(\"F\");\n else if(p>=80) System.out.println(\"A\");\n else if(p>=65 && p<80) System.out.println(\"B\");\n else if(p>=50 && p<65) System.out.println(\"C\");\n else if(p>=30 && p<50) {\n if(r>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }\n }",
"kbd.hasNext()",
"kbd.hasNext",
"kbd",
"{\n int m = kbd.nextInt();\n int f = kbd.nextInt();\n int r = kbd.nextInt();\n \n if(!(m==-1 && f==-1 && r==-1)){\n int p = m+f;\n if(m==-1 || f==-1) System.out.println(\"F\");\n else if(p>=80) System.out.println(\"A\");\n else if(p>=65 && p<80) System.out.println(\"B\");\n else if(p>=50 && p<65) System.out.println(\"C\");\n else if(p>=30 && p<50) {\n if(r>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }\n }",
"int m = kbd.nextInt();",
"m",
"kbd.nextInt()",
"kbd.nextInt",
"kbd",
"int f = kbd.nextInt();",
"f",
"kbd.nextInt()",
"kbd.nextInt",
"kbd",
"int r = kbd.nextInt();",
"r",
"kbd.nextInt()",
"kbd.nextInt",
"kbd",
"if(!(m==-1 && f==-1 && r==-1)){\n int p = m+f;\n if(m==-1 || f==-1) System.out.println(\"F\");\n else if(p>=80) System.out.println(\"A\");\n else if(p>=65 && p<80) System.out.println(\"B\");\n else if(p>=50 && p<65) System.out.println(\"C\");\n else if(p>=30 && p<50) {\n if(r>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }",
"!(m==-1 && f==-1 && r==-1)",
"(m==-1 && f==-1 && r==-1)",
"m==-1 && f==-1 && r==-1",
"m==-1",
"m",
"-1",
"1",
"f==-1",
"f",
"-1",
"1",
"r==-1",
"r",
"-1",
"1",
"{\n int p = m+f;\n if(m==-1 || f==-1) System.out.println(\"F\");\n else if(p>=80) System.out.println(\"A\");\n else if(p>=65 && p<80) System.out.println(\"B\");\n else if(p>=50 && p<65) System.out.println(\"C\");\n else if(p>=30 && p<50) {\n if(r>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }",
"int p = m+f;",
"p",
"m+f",
"m",
"f",
"if(m==-1 || f==-1) System.out.println(\"F\");\n else if(p>=80) System.out.println(\"A\");\n else if(p>=65 && p<80) System.out.println(\"B\");\n else if(p>=50 && p<65) System.out.println(\"C\");\n else if(p>=30 && p<50) {\n if(r>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");",
"m==-1 || f==-1",
"m==-1",
"m",
"-1",
"1",
"f==-1",
"f",
"-1",
"1",
"System.out.println(\"F\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"F\"",
"if(p>=80) System.out.println(\"A\");\n else if(p>=65 && p<80) System.out.println(\"B\");\n else if(p>=50 && p<65) System.out.println(\"C\");\n else if(p>=30 && p<50) {\n if(r>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");",
"p>=80",
"p",
"80",
"System.out.println(\"A\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"A\"",
"if(p>=65 && p<80) System.out.println(\"B\");\n else if(p>=50 && p<65) System.out.println(\"C\");\n else if(p>=30 && p<50) {\n if(r>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");",
"p>=65 && p<80",
"p>=65",
"p",
"65",
"p<80",
"p",
"80",
"System.out.println(\"B\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"B\"",
"if(p>=50 && p<65) System.out.println(\"C\");\n else if(p>=30 && p<50) {\n if(r>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");",
"p>=50 && p<65",
"p>=50",
"p",
"50",
"p<65",
"p",
"65",
"System.out.println(\"C\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C\"",
"if(p>=30 && p<50) {\n if(r>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");",
"p>=30 && p<50",
"p>=30",
"p",
"30",
"p<50",
"p",
"50",
"{\n if(r>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }",
"if(r>=50) System.out.println(\"C\");\n else System.out.println(\"D\");",
"r>=50",
"r",
"50",
"System.out.println(\"C\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C\"",
"System.out.println(\"D\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D\"",
"System.out.println(\"F\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"F\"",
"String[] args",
"args",
"public class Main {\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args) {\n \n while(kbd.hasNext()){\n int m = kbd.nextInt();\n int f = kbd.nextInt();\n int r = kbd.nextInt();\n \n if(!(m==-1 && f==-1 && r==-1)){\n int p = m+f;\n if(m==-1 || f==-1) System.out.println(\"F\");\n else if(p>=80) System.out.println(\"A\");\n else if(p>=65 && p<80) System.out.println(\"B\");\n else if(p>=50 && p<65) System.out.println(\"C\");\n else if(p>=30 && p<50) {\n if(r>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }\n }\n }\n}",
"public class Main {\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args) {\n \n while(kbd.hasNext()){\n int m = kbd.nextInt();\n int f = kbd.nextInt();\n int r = kbd.nextInt();\n \n if(!(m==-1 && f==-1 && r==-1)){\n int p = m+f;\n if(m==-1 || f==-1) System.out.println(\"F\");\n else if(p>=80) System.out.println(\"A\");\n else if(p>=65 && p<80) System.out.println(\"B\");\n else if(p>=50 && p<65) System.out.println(\"C\");\n else if(p>=30 && p<50) {\n if(r>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }\n }\n }\n}",
"Main"
] | import java.util.*;
public class Main {
static Scanner kbd = new Scanner(System.in);
public static void main(String[] args) {
while(kbd.hasNext()){
int m = kbd.nextInt();
int f = kbd.nextInt();
int r = kbd.nextInt();
if(!(m==-1 && f==-1 && r==-1)){
int p = m+f;
if(m==-1 || f==-1) System.out.println("F");
else if(p>=80) System.out.println("A");
else if(p>=65 && p<80) System.out.println("B");
else if(p>=50 && p<65) System.out.println("C");
else if(p>=30 && p<50) {
if(r>=50) System.out.println("C");
else System.out.println("D");
}
else System.out.println("F");
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
40,
17,
2,
13,
40,
17,
2,
13,
40,
17,
3,
30,
41,
13,
2,
13,
13,
14,
2,
2,
13,
40,
17,
2,
13,
40,
17,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
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
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
12,
17
],
[
17,
18
],
[
17,
19
],
[
12,
20
],
[
20,
21
],
[
21,
22
],
[
12,
23
],
[
24,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
24,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
24,
40
],
[
40,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
42,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
40,
55
],
[
40,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
62,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
62,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
78,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
88,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
98,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
113,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
123,
128
],
[
108,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
6,
135
],
[
135,
136
],
[
0,
137
],
[
137,
138
],
[
137,
139
]
] | [
"import java.util.Scanner;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n for (int i = 0; i < 50; i++) {\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n if (m == -1 && f == -1 && r == -1) break;\n else {\n int sum = m + f;\n if (m == -1 || f == -1) System.out.println(\"F\");\n else if (sum >= 80) System.out.println(\"A\");\n else if (sum >= 65) System.out.println(\"B\");\n else if (sum >= 50) System.out.println(\"C\");\n else if (sum >= 30) {\n if (r >= 50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }\n }\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n for (int i = 0; i < 50; i++) {\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n if (m == -1 && f == -1 && r == -1) break;\n else {\n int sum = m + f;\n if (m == -1 || f == -1) System.out.println(\"F\");\n else if (sum >= 80) System.out.println(\"A\");\n else if (sum >= 65) System.out.println(\"B\");\n else if (sum >= 50) System.out.println(\"C\");\n else if (sum >= 30) {\n if (r >= 50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n for (int i = 0; i < 50; i++) {\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n if (m == -1 && f == -1 && r == -1) break;\n else {\n int sum = m + f;\n if (m == -1 || f == -1) System.out.println(\"F\");\n else if (sum >= 80) System.out.println(\"A\");\n else if (sum >= 65) System.out.println(\"B\");\n else if (sum >= 50) System.out.println(\"C\");\n else if (sum >= 30) {\n if (r >= 50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }\n }\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n for (int i = 0; i < 50; i++) {\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n if (m == -1 && f == -1 && r == -1) break;\n else {\n int sum = m + f;\n if (m == -1 || f == -1) System.out.println(\"F\");\n else if (sum >= 80) System.out.println(\"A\");\n else if (sum >= 65) System.out.println(\"B\");\n else if (sum >= 50) System.out.println(\"C\");\n else if (sum >= 30) {\n if (r >= 50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }\n }\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"for (int i = 0; i < 50; i++) {\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n if (m == -1 && f == -1 && r == -1) break;\n else {\n int sum = m + f;\n if (m == -1 || f == -1) System.out.println(\"F\");\n else if (sum >= 80) System.out.println(\"A\");\n else if (sum >= 65) System.out.println(\"B\");\n else if (sum >= 50) System.out.println(\"C\");\n else if (sum >= 30) {\n if (r >= 50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 50",
"i",
"50",
"i++",
"i++",
"i",
"{\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n if (m == -1 && f == -1 && r == -1) break;\n else {\n int sum = m + f;\n if (m == -1 || f == -1) System.out.println(\"F\");\n else if (sum >= 80) System.out.println(\"A\");\n else if (sum >= 65) System.out.println(\"B\");\n else if (sum >= 50) System.out.println(\"C\");\n else if (sum >= 30) {\n if (r >= 50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }\n }",
"{\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n if (m == -1 && f == -1 && r == -1) break;\n else {\n int sum = m + f;\n if (m == -1 || f == -1) System.out.println(\"F\");\n else if (sum >= 80) System.out.println(\"A\");\n else if (sum >= 65) System.out.println(\"B\");\n else if (sum >= 50) System.out.println(\"C\");\n else if (sum >= 30) {\n if (r >= 50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }\n }",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int f = sc.nextInt();",
"f",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int r = sc.nextInt();",
"r",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (m == -1 && f == -1 && r == -1) break;\n else {\n int sum = m + f;\n if (m == -1 || f == -1) System.out.println(\"F\");\n else if (sum >= 80) System.out.println(\"A\");\n else if (sum >= 65) System.out.println(\"B\");\n else if (sum >= 50) System.out.println(\"C\");\n else if (sum >= 30) {\n if (r >= 50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }",
"m == -1 && f == -1 && r == -1",
"m == -1 && f == -1 && r == -1",
"m == -1",
"m",
"-1",
"1",
"f == -1",
"f",
"-1",
"1",
"r == -1",
"r",
"-1",
"1",
"break;",
"{\n int sum = m + f;\n if (m == -1 || f == -1) System.out.println(\"F\");\n else if (sum >= 80) System.out.println(\"A\");\n else if (sum >= 65) System.out.println(\"B\");\n else if (sum >= 50) System.out.println(\"C\");\n else if (sum >= 30) {\n if (r >= 50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }",
"int sum = m + f;",
"sum",
"m + f",
"m",
"f",
"if (m == -1 || f == -1) System.out.println(\"F\");\n else if (sum >= 80) System.out.println(\"A\");\n else if (sum >= 65) System.out.println(\"B\");\n else if (sum >= 50) System.out.println(\"C\");\n else if (sum >= 30) {\n if (r >= 50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");",
"m == -1 || f == -1",
"m == -1",
"m",
"-1",
"1",
"f == -1",
"f",
"-1",
"1",
"System.out.println(\"F\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"F\"",
"if (sum >= 80) System.out.println(\"A\");\n else if (sum >= 65) System.out.println(\"B\");\n else if (sum >= 50) System.out.println(\"C\");\n else if (sum >= 30) {\n if (r >= 50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");",
"sum >= 80",
"sum",
"80",
"System.out.println(\"A\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"A\"",
"if (sum >= 65) System.out.println(\"B\");\n else if (sum >= 50) System.out.println(\"C\");\n else if (sum >= 30) {\n if (r >= 50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");",
"sum >= 65",
"sum",
"65",
"System.out.println(\"B\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"B\"",
"if (sum >= 50) System.out.println(\"C\");\n else if (sum >= 30) {\n if (r >= 50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");",
"sum >= 50",
"sum",
"50",
"System.out.println(\"C\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C\"",
"if (sum >= 30) {\n if (r >= 50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");",
"sum >= 30",
"sum",
"30",
"{\n if (r >= 50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }",
"if (r >= 50) System.out.println(\"C\");\n else System.out.println(\"D\");",
"r >= 50",
"r",
"50",
"System.out.println(\"C\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C\"",
"System.out.println(\"D\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D\"",
"System.out.println(\"F\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"F\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n for (int i = 0; i < 50; i++) {\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n if (m == -1 && f == -1 && r == -1) break;\n else {\n int sum = m + f;\n if (m == -1 || f == -1) System.out.println(\"F\");\n else if (sum >= 80) System.out.println(\"A\");\n else if (sum >= 65) System.out.println(\"B\");\n else if (sum >= 50) System.out.println(\"C\");\n else if (sum >= 30) {\n if (r >= 50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n for (int i = 0; i < 50; i++) {\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n if (m == -1 && f == -1 && r == -1) break;\n else {\n int sum = m + f;\n if (m == -1 || f == -1) System.out.println(\"F\");\n else if (sum >= 80) System.out.println(\"A\");\n else if (sum >= 65) System.out.println(\"B\");\n else if (sum >= 50) System.out.println(\"C\");\n else if (sum >= 30) {\n if (r >= 50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }\n }\n\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
for (int i = 0; i < 50; i++) {
int m = sc.nextInt();
int f = sc.nextInt();
int r = sc.nextInt();
if (m == -1 && f == -1 && r == -1) break;
else {
int sum = m + f;
if (m == -1 || f == -1) System.out.println("F");
else if (sum >= 80) System.out.println("A");
else if (sum >= 65) System.out.println("B");
else if (sum >= 50) System.out.println("C");
else if (sum >= 30) {
if (r >= 50) System.out.println("C");
else System.out.println("D");
}
else System.out.println("F");
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
41,
13,
17,
42,
17,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
2,
2,
13,
40,
17,
2,
13,
40,
17,
2,
13,
40,
17,
30,
3,
0,
13,
2,
13,
13,
14,
2,
2,
2,
13,
40,
17,
2,
13,
40,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
158,
5
],
[
158,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
28,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
28,
44
],
[
44,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
46,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
44,
59
],
[
59,
60
],
[
28,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
28,
66
],
[
66,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
68,
77
],
[
77,
78
],
[
77,
79
],
[
66,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
66,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
87,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
103,
104
],
[
103,
105
],
[
98,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
98,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
118,
119
],
[
118,
120
],
[
113,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
113,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
133,
134
],
[
133,
135
],
[
128,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
142,
147
],
[
137,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
149,
154
],
[
6,
155
],
[
155,
156
],
[
0,
157
],
[
157,
158
],
[
157,
159
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int m=0,f=0,r=0,sum;\n String s=\"F\";\n while(true) {\n \tm=scan.nextInt();\n \tf=scan.nextInt();\n \tr=scan.nextInt();\n \tif(m==-1 && f==-1 && r==-1) {\n \t\tbreak;\n \t}\n \tsum=m+f;\n \tif(m==-1 || f==-1 || sum<30) {\n \t\tSystem.out.println(\"F\");\n \t}\n \telse if(sum>=80) {\n \t\tSystem.out.println(\"A\");\n \t}\n \telse if(sum<80 && sum>=65) {\n \t\tSystem.out.println(\"B\");\n \t}\n \telse if(sum<65 && sum>=50) {\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum<50 && sum>=30) {\n \t\tif(r>=50) {\n \t\t\tSystem.out.println(\"C\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}\n }\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int m=0,f=0,r=0,sum;\n String s=\"F\";\n while(true) {\n \tm=scan.nextInt();\n \tf=scan.nextInt();\n \tr=scan.nextInt();\n \tif(m==-1 && f==-1 && r==-1) {\n \t\tbreak;\n \t}\n \tsum=m+f;\n \tif(m==-1 || f==-1 || sum<30) {\n \t\tSystem.out.println(\"F\");\n \t}\n \telse if(sum>=80) {\n \t\tSystem.out.println(\"A\");\n \t}\n \telse if(sum<80 && sum>=65) {\n \t\tSystem.out.println(\"B\");\n \t}\n \telse if(sum<65 && sum>=50) {\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum<50 && sum>=30) {\n \t\tif(r>=50) {\n \t\t\tSystem.out.println(\"C\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int m=0,f=0,r=0,sum;\n String s=\"F\";\n while(true) {\n \tm=scan.nextInt();\n \tf=scan.nextInt();\n \tr=scan.nextInt();\n \tif(m==-1 && f==-1 && r==-1) {\n \t\tbreak;\n \t}\n \tsum=m+f;\n \tif(m==-1 || f==-1 || sum<30) {\n \t\tSystem.out.println(\"F\");\n \t}\n \telse if(sum>=80) {\n \t\tSystem.out.println(\"A\");\n \t}\n \telse if(sum<80 && sum>=65) {\n \t\tSystem.out.println(\"B\");\n \t}\n \telse if(sum<65 && sum>=50) {\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum<50 && sum>=30) {\n \t\tif(r>=50) {\n \t\t\tSystem.out.println(\"C\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}\n }\n }",
"main",
"{\n Scanner scan=new Scanner(System.in);\n int m=0,f=0,r=0,sum;\n String s=\"F\";\n while(true) {\n \tm=scan.nextInt();\n \tf=scan.nextInt();\n \tr=scan.nextInt();\n \tif(m==-1 && f==-1 && r==-1) {\n \t\tbreak;\n \t}\n \tsum=m+f;\n \tif(m==-1 || f==-1 || sum<30) {\n \t\tSystem.out.println(\"F\");\n \t}\n \telse if(sum>=80) {\n \t\tSystem.out.println(\"A\");\n \t}\n \telse if(sum<80 && sum>=65) {\n \t\tSystem.out.println(\"B\");\n \t}\n \telse if(sum<65 && sum>=50) {\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum<50 && sum>=30) {\n \t\tif(r>=50) {\n \t\t\tSystem.out.println(\"C\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}\n }\n }",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int m=0",
"m",
"0",
"f=0",
"f",
"0",
"r=0",
"r",
"0",
"sum;",
"sum",
"String s=\"F\";",
"s",
"\"F\"",
"while(true) {\n \tm=scan.nextInt();\n \tf=scan.nextInt();\n \tr=scan.nextInt();\n \tif(m==-1 && f==-1 && r==-1) {\n \t\tbreak;\n \t}\n \tsum=m+f;\n \tif(m==-1 || f==-1 || sum<30) {\n \t\tSystem.out.println(\"F\");\n \t}\n \telse if(sum>=80) {\n \t\tSystem.out.println(\"A\");\n \t}\n \telse if(sum<80 && sum>=65) {\n \t\tSystem.out.println(\"B\");\n \t}\n \telse if(sum<65 && sum>=50) {\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum<50 && sum>=30) {\n \t\tif(r>=50) {\n \t\t\tSystem.out.println(\"C\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}\n }",
"true",
"{\n \tm=scan.nextInt();\n \tf=scan.nextInt();\n \tr=scan.nextInt();\n \tif(m==-1 && f==-1 && r==-1) {\n \t\tbreak;\n \t}\n \tsum=m+f;\n \tif(m==-1 || f==-1 || sum<30) {\n \t\tSystem.out.println(\"F\");\n \t}\n \telse if(sum>=80) {\n \t\tSystem.out.println(\"A\");\n \t}\n \telse if(sum<80 && sum>=65) {\n \t\tSystem.out.println(\"B\");\n \t}\n \telse if(sum<65 && sum>=50) {\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum<50 && sum>=30) {\n \t\tif(r>=50) {\n \t\t\tSystem.out.println(\"C\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}\n }",
"m=scan.nextInt()",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"f=scan.nextInt()",
"f",
"scan.nextInt()",
"scan.nextInt",
"scan",
"r=scan.nextInt()",
"r",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(m==-1 && f==-1 && r==-1) {\n \t\tbreak;\n \t}",
"m==-1 && f==-1 && r==-1",
"m==-1 && f==-1 && r==-1",
"m==-1",
"m",
"-1",
"1",
"f==-1",
"f",
"-1",
"1",
"r==-1",
"r",
"-1",
"1",
"{\n \t\tbreak;\n \t}",
"break;",
"sum=m+f",
"sum",
"m+f",
"m",
"f",
"if(m==-1 || f==-1 || sum<30) {\n \t\tSystem.out.println(\"F\");\n \t}\n \telse if(sum>=80) {\n \t\tSystem.out.println(\"A\");\n \t}\n \telse if(sum<80 && sum>=65) {\n \t\tSystem.out.println(\"B\");\n \t}\n \telse if(sum<65 && sum>=50) {\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum<50 && sum>=30) {\n \t\tif(r>=50) {\n \t\t\tSystem.out.println(\"C\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}",
"m==-1 || f==-1 || sum<30",
"m==-1 || f==-1 || sum<30",
"m==-1",
"m",
"-1",
"1",
"f==-1",
"f",
"-1",
"1",
"sum<30",
"sum",
"30",
"{\n \t\tSystem.out.println(\"F\");\n \t}",
"System.out.println(\"F\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"F\"",
"if(sum>=80) {\n \t\tSystem.out.println(\"A\");\n \t}\n \telse if(sum<80 && sum>=65) {\n \t\tSystem.out.println(\"B\");\n \t}\n \telse if(sum<65 && sum>=50) {\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum<50 && sum>=30) {\n \t\tif(r>=50) {\n \t\t\tSystem.out.println(\"C\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}",
"sum>=80",
"sum",
"80",
"{\n \t\tSystem.out.println(\"A\");\n \t}",
"System.out.println(\"A\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"A\"",
"if(sum<80 && sum>=65) {\n \t\tSystem.out.println(\"B\");\n \t}\n \telse if(sum<65 && sum>=50) {\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum<50 && sum>=30) {\n \t\tif(r>=50) {\n \t\t\tSystem.out.println(\"C\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}",
"sum<80 && sum>=65",
"sum<80",
"sum",
"80",
"sum>=65",
"sum",
"65",
"{\n \t\tSystem.out.println(\"B\");\n \t}",
"System.out.println(\"B\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"B\"",
"if(sum<65 && sum>=50) {\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum<50 && sum>=30) {\n \t\tif(r>=50) {\n \t\t\tSystem.out.println(\"C\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}",
"sum<65 && sum>=50",
"sum<65",
"sum",
"65",
"sum>=50",
"sum",
"50",
"{\n \t\tSystem.out.println(\"C\");\n \t}",
"System.out.println(\"C\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C\"",
"if(sum<50 && sum>=30) {\n \t\tif(r>=50) {\n \t\t\tSystem.out.println(\"C\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}",
"sum<50 && sum>=30",
"sum<50",
"sum",
"50",
"sum>=30",
"sum",
"30",
"{\n \t\tif(r>=50) {\n \t\t\tSystem.out.println(\"C\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}",
"if(r>=50) {\n \t\t\tSystem.out.println(\"C\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.println(\"D\");\n \t\t}",
"r>=50",
"r",
"50",
"{\n \t\t\tSystem.out.println(\"C\");\n \t\t}",
"System.out.println(\"C\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C\"",
"{\n \t\t\tSystem.out.println(\"D\");\n \t\t}",
"System.out.println(\"D\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int m=0,f=0,r=0,sum;\n String s=\"F\";\n while(true) {\n \tm=scan.nextInt();\n \tf=scan.nextInt();\n \tr=scan.nextInt();\n \tif(m==-1 && f==-1 && r==-1) {\n \t\tbreak;\n \t}\n \tsum=m+f;\n \tif(m==-1 || f==-1 || sum<30) {\n \t\tSystem.out.println(\"F\");\n \t}\n \telse if(sum>=80) {\n \t\tSystem.out.println(\"A\");\n \t}\n \telse if(sum<80 && sum>=65) {\n \t\tSystem.out.println(\"B\");\n \t}\n \telse if(sum<65 && sum>=50) {\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum<50 && sum>=30) {\n \t\tif(r>=50) {\n \t\t\tSystem.out.println(\"C\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int m=0,f=0,r=0,sum;\n String s=\"F\";\n while(true) {\n \tm=scan.nextInt();\n \tf=scan.nextInt();\n \tr=scan.nextInt();\n \tif(m==-1 && f==-1 && r==-1) {\n \t\tbreak;\n \t}\n \tsum=m+f;\n \tif(m==-1 || f==-1 || sum<30) {\n \t\tSystem.out.println(\"F\");\n \t}\n \telse if(sum>=80) {\n \t\tSystem.out.println(\"A\");\n \t}\n \telse if(sum<80 && sum>=65) {\n \t\tSystem.out.println(\"B\");\n \t}\n \telse if(sum<65 && sum>=50) {\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum<50 && sum>=30) {\n \t\tif(r>=50) {\n \t\t\tSystem.out.println(\"C\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan=new Scanner(System.in);
int m=0,f=0,r=0,sum;
String s="F";
while(true) {
m=scan.nextInt();
f=scan.nextInt();
r=scan.nextInt();
if(m==-1 && f==-1 && r==-1) {
break;
}
sum=m+f;
if(m==-1 || f==-1 || sum<30) {
System.out.println("F");
}
else if(sum>=80) {
System.out.println("A");
}
else if(sum<80 && sum>=65) {
System.out.println("B");
}
else if(sum<65 && sum>=50) {
System.out.println("C");
}
else if(sum<50 && sum>=30) {
if(r>=50) {
System.out.println("C");
}
else{
System.out.println("D");
}
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
17,
30,
0,
13,
4,
18,
4,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
2,
13,
13,
14,
2,
2,
2,
13,
40,
17,
2,
13,
40,
17,
2,
13,
40,
17,
30,
3,
14,
2,
2,
2,
13,
40,
17,
2,
13,
40,
17,
2,
13,
17,
30,
0,
13,
17,
14,
2,
2,
17,
13,
2,
13,
17,
30,
14,
2,
13,
17,
30,
0,
13,
17,
30,
0,
13,
17,
14,
2,
2,
17,
13,
2,
13,
17,
30,
0,
13,
17,
14,
2,
2,
17,
13,
2,
13,
17,
30,
0,
13,
17,
30,
0,
13,
17,
4,
18,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
38,
43
],
[
35,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
49,
51
],
[
35,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
57,
59
],
[
35,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
65,
67
],
[
35,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
35,
73
],
[
73,
74
],
[
75,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
75,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
73,
88
],
[
88,
89
],
[
73,
90
],
[
90,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
92,
101
],
[
101,
102
],
[
101,
103
],
[
90,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
90,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
113,
114
],
[
113,
115
],
[
108,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
117,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
108,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
134,
136
],
[
129,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
129,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
142,
146
],
[
146,
147
],
[
146,
148
],
[
141,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
141,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
35,
157
],
[
157,
158
],
[
158,
159
],
[
157,
160
],
[
160,
161
],
[
160,
162
],
[
8,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
6,
169
],
[
169,
170
]
] | [
"import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb=new StringBuilder();\n String[] a=null;\n int m=0;\n int f=0;\n int r=0;\n\t\tint k=0;\n\t\tString g=null;\n while(true){\n \ta=br.readLine().split(\" \");\n m=Integer.parseInt(a[0]);\n f=Integer.parseInt(a[1]);\n r=Integer.parseInt(a[2]);\n k=m+f;\n if(m==-1&&f==-1&&r==-1){\n \tbreak;\n }else if(m==-1||f==-1||k<30){\n \t\tg=\"F\";\n \t}else if(30<=k&&k<50){\n \t\tif(r>=50){\n \t\t\tg=\"C\";\n \t\t}else{\n \t\t\tg=\"D\";\n \t\t}\n \t}else if(50<=k&&k<65){\n \t\tg=\"C\";\n \t}else if(65<=k&&k<80){\n \t\tg=\"B\";\n \t}else{\n \t\tg=\"A\";\n \t}\n sb.append(g+\"\\n\");\n }\n System.out.print(sb);\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb=new StringBuilder();\n String[] a=null;\n int m=0;\n int f=0;\n int r=0;\n\t\tint k=0;\n\t\tString g=null;\n while(true){\n \ta=br.readLine().split(\" \");\n m=Integer.parseInt(a[0]);\n f=Integer.parseInt(a[1]);\n r=Integer.parseInt(a[2]);\n k=m+f;\n if(m==-1&&f==-1&&r==-1){\n \tbreak;\n }else if(m==-1||f==-1||k<30){\n \t\tg=\"F\";\n \t}else if(30<=k&&k<50){\n \t\tif(r>=50){\n \t\t\tg=\"C\";\n \t\t}else{\n \t\t\tg=\"D\";\n \t\t}\n \t}else if(50<=k&&k<65){\n \t\tg=\"C\";\n \t}else if(65<=k&&k<80){\n \t\tg=\"B\";\n \t}else{\n \t\tg=\"A\";\n \t}\n sb.append(g+\"\\n\");\n }\n System.out.print(sb);\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb=new StringBuilder();\n String[] a=null;\n int m=0;\n int f=0;\n int r=0;\n\t\tint k=0;\n\t\tString g=null;\n while(true){\n \ta=br.readLine().split(\" \");\n m=Integer.parseInt(a[0]);\n f=Integer.parseInt(a[1]);\n r=Integer.parseInt(a[2]);\n k=m+f;\n if(m==-1&&f==-1&&r==-1){\n \tbreak;\n }else if(m==-1||f==-1||k<30){\n \t\tg=\"F\";\n \t}else if(30<=k&&k<50){\n \t\tif(r>=50){\n \t\t\tg=\"C\";\n \t\t}else{\n \t\t\tg=\"D\";\n \t\t}\n \t}else if(50<=k&&k<65){\n \t\tg=\"C\";\n \t}else if(65<=k&&k<80){\n \t\tg=\"B\";\n \t}else{\n \t\tg=\"A\";\n \t}\n sb.append(g+\"\\n\");\n }\n System.out.print(sb);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb=new StringBuilder();\n String[] a=null;\n int m=0;\n int f=0;\n int r=0;\n\t\tint k=0;\n\t\tString g=null;\n while(true){\n \ta=br.readLine().split(\" \");\n m=Integer.parseInt(a[0]);\n f=Integer.parseInt(a[1]);\n r=Integer.parseInt(a[2]);\n k=m+f;\n if(m==-1&&f==-1&&r==-1){\n \tbreak;\n }else if(m==-1||f==-1||k<30){\n \t\tg=\"F\";\n \t}else if(30<=k&&k<50){\n \t\tif(r>=50){\n \t\t\tg=\"C\";\n \t\t}else{\n \t\t\tg=\"D\";\n \t\t}\n \t}else if(50<=k&&k<65){\n \t\tg=\"C\";\n \t}else if(65<=k&&k<80){\n \t\tg=\"B\";\n \t}else{\n \t\tg=\"A\";\n \t}\n sb.append(g+\"\\n\");\n }\n System.out.print(sb);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder sb=new StringBuilder();",
"sb",
"new StringBuilder()",
"String[] a=null;",
"a",
"null",
"int m=0;",
"m",
"0",
"int f=0;",
"f",
"0",
"int r=0;",
"r",
"0",
"int k=0;",
"k",
"0",
"String g=null;",
"g",
"null",
"while(true){\n \ta=br.readLine().split(\" \");\n m=Integer.parseInt(a[0]);\n f=Integer.parseInt(a[1]);\n r=Integer.parseInt(a[2]);\n k=m+f;\n if(m==-1&&f==-1&&r==-1){\n \tbreak;\n }else if(m==-1||f==-1||k<30){\n \t\tg=\"F\";\n \t}else if(30<=k&&k<50){\n \t\tif(r>=50){\n \t\t\tg=\"C\";\n \t\t}else{\n \t\t\tg=\"D\";\n \t\t}\n \t}else if(50<=k&&k<65){\n \t\tg=\"C\";\n \t}else if(65<=k&&k<80){\n \t\tg=\"B\";\n \t}else{\n \t\tg=\"A\";\n \t}\n sb.append(g+\"\\n\");\n }",
"true",
"{\n \ta=br.readLine().split(\" \");\n m=Integer.parseInt(a[0]);\n f=Integer.parseInt(a[1]);\n r=Integer.parseInt(a[2]);\n k=m+f;\n if(m==-1&&f==-1&&r==-1){\n \tbreak;\n }else if(m==-1||f==-1||k<30){\n \t\tg=\"F\";\n \t}else if(30<=k&&k<50){\n \t\tif(r>=50){\n \t\t\tg=\"C\";\n \t\t}else{\n \t\t\tg=\"D\";\n \t\t}\n \t}else if(50<=k&&k<65){\n \t\tg=\"C\";\n \t}else if(65<=k&&k<80){\n \t\tg=\"B\";\n \t}else{\n \t\tg=\"A\";\n \t}\n sb.append(g+\"\\n\");\n }",
"a=br.readLine().split(\" \")",
"a",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"m=Integer.parseInt(a[0])",
"m",
"Integer.parseInt(a[0])",
"Integer.parseInt",
"Integer",
"a[0]",
"a",
"0",
"f=Integer.parseInt(a[1])",
"f",
"Integer.parseInt(a[1])",
"Integer.parseInt",
"Integer",
"a[1]",
"a",
"1",
"r=Integer.parseInt(a[2])",
"r",
"Integer.parseInt(a[2])",
"Integer.parseInt",
"Integer",
"a[2]",
"a",
"2",
"k=m+f",
"k",
"m+f",
"m",
"f",
"if(m==-1&&f==-1&&r==-1){\n \tbreak;\n }else if(m==-1||f==-1||k<30){\n \t\tg=\"F\";\n \t}else if(30<=k&&k<50){\n \t\tif(r>=50){\n \t\t\tg=\"C\";\n \t\t}else{\n \t\t\tg=\"D\";\n \t\t}\n \t}else if(50<=k&&k<65){\n \t\tg=\"C\";\n \t}else if(65<=k&&k<80){\n \t\tg=\"B\";\n \t}else{\n \t\tg=\"A\";\n \t}",
"m==-1&&f==-1&&r==-1",
"m==-1&&f==-1&&r==-1",
"m==-1",
"m",
"-1",
"1",
"f==-1",
"f",
"-1",
"1",
"r==-1",
"r",
"-1",
"1",
"{\n \tbreak;\n }",
"break;",
"if(m==-1||f==-1||k<30){\n \t\tg=\"F\";\n \t}else if(30<=k&&k<50){\n \t\tif(r>=50){\n \t\t\tg=\"C\";\n \t\t}else{\n \t\t\tg=\"D\";\n \t\t}\n \t}else if(50<=k&&k<65){\n \t\tg=\"C\";\n \t}else if(65<=k&&k<80){\n \t\tg=\"B\";\n \t}else{\n \t\tg=\"A\";\n \t}",
"m==-1||f==-1||k<30",
"m==-1||f==-1||k<30",
"m==-1",
"m",
"-1",
"1",
"f==-1",
"f",
"-1",
"1",
"k<30",
"k",
"30",
"{\n \t\tg=\"F\";\n \t}",
"g=\"F\"",
"g",
"\"F\"",
"if(30<=k&&k<50){\n \t\tif(r>=50){\n \t\t\tg=\"C\";\n \t\t}else{\n \t\t\tg=\"D\";\n \t\t}\n \t}else if(50<=k&&k<65){\n \t\tg=\"C\";\n \t}else if(65<=k&&k<80){\n \t\tg=\"B\";\n \t}else{\n \t\tg=\"A\";\n \t}",
"30<=k&&k<50",
"30<=k",
"30",
"k",
"k<50",
"k",
"50",
"{\n \t\tif(r>=50){\n \t\t\tg=\"C\";\n \t\t}else{\n \t\t\tg=\"D\";\n \t\t}\n \t}",
"if(r>=50){\n \t\t\tg=\"C\";\n \t\t}else{\n \t\t\tg=\"D\";\n \t\t}",
"r>=50",
"r",
"50",
"{\n \t\t\tg=\"C\";\n \t\t}",
"g=\"C\"",
"g",
"\"C\"",
"{\n \t\t\tg=\"D\";\n \t\t}",
"g=\"D\"",
"g",
"\"D\"",
"if(50<=k&&k<65){\n \t\tg=\"C\";\n \t}else if(65<=k&&k<80){\n \t\tg=\"B\";\n \t}else{\n \t\tg=\"A\";\n \t}",
"50<=k&&k<65",
"50<=k",
"50",
"k",
"k<65",
"k",
"65",
"{\n \t\tg=\"C\";\n \t}",
"g=\"C\"",
"g",
"\"C\"",
"if(65<=k&&k<80){\n \t\tg=\"B\";\n \t}else{\n \t\tg=\"A\";\n \t}",
"65<=k&&k<80",
"65<=k",
"65",
"k",
"k<80",
"k",
"80",
"{\n \t\tg=\"B\";\n \t}",
"g=\"B\"",
"g",
"\"B\"",
"{\n \t\tg=\"A\";\n \t}",
"g=\"A\"",
"g",
"\"A\"",
"sb.append(g+\"\\n\")",
"sb.append",
"sb",
"g+\"\\n\"",
"g",
"\"\\n\"",
"System.out.print(sb)",
"System.out.print",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args"
] | import java.io.*;
class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb=new StringBuilder();
String[] a=null;
int m=0;
int f=0;
int r=0;
int k=0;
String g=null;
while(true){
a=br.readLine().split(" ");
m=Integer.parseInt(a[0]);
f=Integer.parseInt(a[1]);
r=Integer.parseInt(a[2]);
k=m+f;
if(m==-1&&f==-1&&r==-1){
break;
}else if(m==-1||f==-1||k<30){
g="F";
}else if(30<=k&&k<50){
if(r>=50){
g="C";
}else{
g="D";
}
}else if(50<=k&&k<65){
g="C";
}else if(65<=k&&k<80){
g="B";
}else{
g="A";
}
sb.append(g+"\n");
}
System.out.print(sb);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
20,
17,
41,
13,
20,
42,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
14,
2,
2,
13,
40,
17,
2,
13,
40,
17,
30,
0,
13,
2,
13,
13,
14,
2,
2,
2,
13,
40,
17,
2,
13,
40,
17,
2,
13,
40,
17,
30,
0,
13,
17,
4,
18,
13,
14,
2,
2,
2,
13,
40,
17,
2,
13,
40,
17,
2,
13,
17,
30,
4,
18,
13,
17,
14,
2,
17,
13,
30,
4,
18,
13,
17,
14,
2,
17,
13,
30,
4,
18,
13,
17,
14,
2,
17,
13,
30,
4,
18,
13,
17,
14,
2,
2,
17,
13,
2,
17,
13,
30,
4,
18,
13,
17,
30,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
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
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
27,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
27,
43
],
[
43,
44
],
[
43,
45
],
[
27,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
46,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
27,
62
],
[
62,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
64,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
62,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
82,
83
],
[
62,
84
],
[
84,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
86,
95
],
[
95,
96
],
[
95,
97
],
[
84,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
84,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
103,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
112,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
121,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
135,
136
],
[
135,
137
],
[
130,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
139,
142
],
[
130,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
144,
147
],
[
11,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
148,
158
],
[
158,
159
],
[
159,
160
],
[
148,
161
],
[
162,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
168,
169
],
[
169,
170
],
[
168,
171
],
[
9,
172
],
[
172,
173
],
[
0,
174
],
[
174,
175
],
[
174,
176
]
] | [
"import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tboolean isContinue = true;\n\n\t\t//?????°???????´?????????????\n\t\tint[] score = new int[3];\n\t\t//????????????????´????????????¬????????§????????????\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\twhile(isContinue){\n\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\n\n\t\t\tint intScore = 0;\n\t\t\t//????????????????????´??????intScore????¨????\n\t\t\tif(m != -1 && f != -1){\n\t\t\t\tintScore = m + f;\n\t\t\t}\n\n\t\t\t//while????????????????????¶\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\tisContinue = false;\n\t\t\t\tscan.close();\n\n\t\t\t//????????????????????????????????????list???????´?\n\t\t\t}else if(m == -1 || f == -1 || intScore < 30 ){\n\n\t\t\t\tlist.add(\"F\");\n\t\t\t}else if(80 <= intScore){\n\n\t\t\t\tlist.add(\"A\");\n\t\t\t}else if(65 <= intScore){\n\n\t\t\t\tlist.add(\"B\");\n\t\t\t}else if(50 <= intScore){\n\n\t\t\t\tlist.add(\"C\");\n\t\t\t}else if(30 <= intScore && 50 <= r){\n\n\t\t\t\tlist.add(\"C\");\n\n\t\t\t}else{\n\n\t\t\t\tlist.add(\"D\");\n\t\t\t}\n\t\t\t//System.out.println(\"list.size():\" + list.size());\n\t\t}\n\n\t\tfor(int i = 0; i < list.size(); i++){\n\n\t\t\tSystem.out.println(list.get(i));\n\t\t}\n\n\t}\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tboolean isContinue = true;\n\n\t\t//?????°???????´?????????????\n\t\tint[] score = new int[3];\n\t\t//????????????????´????????????¬????????§????????????\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\twhile(isContinue){\n\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\n\n\t\t\tint intScore = 0;\n\t\t\t//????????????????????´??????intScore????¨????\n\t\t\tif(m != -1 && f != -1){\n\t\t\t\tintScore = m + f;\n\t\t\t}\n\n\t\t\t//while????????????????????¶\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\tisContinue = false;\n\t\t\t\tscan.close();\n\n\t\t\t//????????????????????????????????????list???????´?\n\t\t\t}else if(m == -1 || f == -1 || intScore < 30 ){\n\n\t\t\t\tlist.add(\"F\");\n\t\t\t}else if(80 <= intScore){\n\n\t\t\t\tlist.add(\"A\");\n\t\t\t}else if(65 <= intScore){\n\n\t\t\t\tlist.add(\"B\");\n\t\t\t}else if(50 <= intScore){\n\n\t\t\t\tlist.add(\"C\");\n\t\t\t}else if(30 <= intScore && 50 <= r){\n\n\t\t\t\tlist.add(\"C\");\n\n\t\t\t}else{\n\n\t\t\t\tlist.add(\"D\");\n\t\t\t}\n\t\t\t//System.out.println(\"list.size():\" + list.size());\n\t\t}\n\n\t\tfor(int i = 0; i < list.size(); i++){\n\n\t\t\tSystem.out.println(list.get(i));\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tboolean isContinue = true;\n\n\t\t//?????°???????´?????????????\n\t\tint[] score = new int[3];\n\t\t//????????????????´????????????¬????????§????????????\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\twhile(isContinue){\n\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\n\n\t\t\tint intScore = 0;\n\t\t\t//????????????????????´??????intScore????¨????\n\t\t\tif(m != -1 && f != -1){\n\t\t\t\tintScore = m + f;\n\t\t\t}\n\n\t\t\t//while????????????????????¶\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\tisContinue = false;\n\t\t\t\tscan.close();\n\n\t\t\t//????????????????????????????????????list???????´?\n\t\t\t}else if(m == -1 || f == -1 || intScore < 30 ){\n\n\t\t\t\tlist.add(\"F\");\n\t\t\t}else if(80 <= intScore){\n\n\t\t\t\tlist.add(\"A\");\n\t\t\t}else if(65 <= intScore){\n\n\t\t\t\tlist.add(\"B\");\n\t\t\t}else if(50 <= intScore){\n\n\t\t\t\tlist.add(\"C\");\n\t\t\t}else if(30 <= intScore && 50 <= r){\n\n\t\t\t\tlist.add(\"C\");\n\n\t\t\t}else{\n\n\t\t\t\tlist.add(\"D\");\n\t\t\t}\n\t\t\t//System.out.println(\"list.size():\" + list.size());\n\t\t}\n\n\t\tfor(int i = 0; i < list.size(); i++){\n\n\t\t\tSystem.out.println(list.get(i));\n\t\t}\n\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tboolean isContinue = true;\n\n\t\t//?????°???????´?????????????\n\t\tint[] score = new int[3];\n\t\t//????????????????´????????????¬????????§????????????\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\twhile(isContinue){\n\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\n\n\t\t\tint intScore = 0;\n\t\t\t//????????????????????´??????intScore????¨????\n\t\t\tif(m != -1 && f != -1){\n\t\t\t\tintScore = m + f;\n\t\t\t}\n\n\t\t\t//while????????????????????¶\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\tisContinue = false;\n\t\t\t\tscan.close();\n\n\t\t\t//????????????????????????????????????list???????´?\n\t\t\t}else if(m == -1 || f == -1 || intScore < 30 ){\n\n\t\t\t\tlist.add(\"F\");\n\t\t\t}else if(80 <= intScore){\n\n\t\t\t\tlist.add(\"A\");\n\t\t\t}else if(65 <= intScore){\n\n\t\t\t\tlist.add(\"B\");\n\t\t\t}else if(50 <= intScore){\n\n\t\t\t\tlist.add(\"C\");\n\t\t\t}else if(30 <= intScore && 50 <= r){\n\n\t\t\t\tlist.add(\"C\");\n\n\t\t\t}else{\n\n\t\t\t\tlist.add(\"D\");\n\t\t\t}\n\t\t\t//System.out.println(\"list.size():\" + list.size());\n\t\t}\n\n\t\tfor(int i = 0; i < list.size(); i++){\n\n\t\t\tSystem.out.println(list.get(i));\n\t\t}\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"boolean isContinue = true;",
"isContinue",
"true",
"int[] score = new int[3];",
"score",
"new int[3]",
"3",
"ArrayList<String> list = new ArrayList<String>();",
"list",
"new ArrayList<String>()",
"while(isContinue){\n\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\n\n\t\t\tint intScore = 0;\n\t\t\t//????????????????????´??????intScore????¨????\n\t\t\tif(m != -1 && f != -1){\n\t\t\t\tintScore = m + f;\n\t\t\t}\n\n\t\t\t//while????????????????????¶\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\tisContinue = false;\n\t\t\t\tscan.close();\n\n\t\t\t//????????????????????????????????????list???????´?\n\t\t\t}else if(m == -1 || f == -1 || intScore < 30 ){\n\n\t\t\t\tlist.add(\"F\");\n\t\t\t}else if(80 <= intScore){\n\n\t\t\t\tlist.add(\"A\");\n\t\t\t}else if(65 <= intScore){\n\n\t\t\t\tlist.add(\"B\");\n\t\t\t}else if(50 <= intScore){\n\n\t\t\t\tlist.add(\"C\");\n\t\t\t}else if(30 <= intScore && 50 <= r){\n\n\t\t\t\tlist.add(\"C\");\n\n\t\t\t}else{\n\n\t\t\t\tlist.add(\"D\");\n\t\t\t}\n\t\t\t//System.out.println(\"list.size():\" + list.size());\n\t\t}",
"isContinue",
"{\n\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\n\n\t\t\tint intScore = 0;\n\t\t\t//????????????????????´??????intScore????¨????\n\t\t\tif(m != -1 && f != -1){\n\t\t\t\tintScore = m + f;\n\t\t\t}\n\n\t\t\t//while????????????????????¶\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\tisContinue = false;\n\t\t\t\tscan.close();\n\n\t\t\t//????????????????????????????????????list???????´?\n\t\t\t}else if(m == -1 || f == -1 || intScore < 30 ){\n\n\t\t\t\tlist.add(\"F\");\n\t\t\t}else if(80 <= intScore){\n\n\t\t\t\tlist.add(\"A\");\n\t\t\t}else if(65 <= intScore){\n\n\t\t\t\tlist.add(\"B\");\n\t\t\t}else if(50 <= intScore){\n\n\t\t\t\tlist.add(\"C\");\n\t\t\t}else if(30 <= intScore && 50 <= r){\n\n\t\t\t\tlist.add(\"C\");\n\n\t\t\t}else{\n\n\t\t\t\tlist.add(\"D\");\n\t\t\t}\n\t\t\t//System.out.println(\"list.size():\" + list.size());\n\t\t}",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int f = scan.nextInt();",
"f",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int r = scan.nextInt();",
"r",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int intScore = 0;",
"intScore",
"0",
"if(m != -1 && f != -1){\n\t\t\t\tintScore = m + f;\n\t\t\t}",
"m != -1 && f != -1",
"m != -1",
"m",
"-1",
"1",
"f != -1",
"f",
"-1",
"1",
"{\n\t\t\t\tintScore = m + f;\n\t\t\t}",
"intScore = m + f",
"intScore",
"m + f",
"m",
"f",
"if(m == -1 && f == -1 && r == -1){\n\t\t\t\tisContinue = false;\n\t\t\t\tscan.close();\n\n\t\t\t//????????????????????????????????????list???????´?\n\t\t\t}else if(m == -1 || f == -1 || intScore < 30 ){\n\n\t\t\t\tlist.add(\"F\");\n\t\t\t}else if(80 <= intScore){\n\n\t\t\t\tlist.add(\"A\");\n\t\t\t}else if(65 <= intScore){\n\n\t\t\t\tlist.add(\"B\");\n\t\t\t}else if(50 <= intScore){\n\n\t\t\t\tlist.add(\"C\");\n\t\t\t}else if(30 <= intScore && 50 <= r){\n\n\t\t\t\tlist.add(\"C\");\n\n\t\t\t}else{\n\n\t\t\t\tlist.add(\"D\");\n\t\t\t}",
"m == -1 && f == -1 && r == -1",
"m == -1 && f == -1 && r == -1",
"m == -1",
"m",
"-1",
"1",
"f == -1",
"f",
"-1",
"1",
"r == -1",
"r",
"-1",
"1",
"{\n\t\t\t\tisContinue = false;\n\t\t\t\tscan.close();\n\n\t\t\t//????????????????????????????????????list???????´?\n\t\t\t}",
"isContinue = false",
"isContinue",
"false",
"scan.close()",
"scan.close",
"scan",
"if(m == -1 || f == -1 || intScore < 30 ){\n\n\t\t\t\tlist.add(\"F\");\n\t\t\t}else if(80 <= intScore){\n\n\t\t\t\tlist.add(\"A\");\n\t\t\t}else if(65 <= intScore){\n\n\t\t\t\tlist.add(\"B\");\n\t\t\t}else if(50 <= intScore){\n\n\t\t\t\tlist.add(\"C\");\n\t\t\t}else if(30 <= intScore && 50 <= r){\n\n\t\t\t\tlist.add(\"C\");\n\n\t\t\t}else{\n\n\t\t\t\tlist.add(\"D\");\n\t\t\t}",
"m == -1 || f == -1 || intScore < 30",
"m == -1 || f == -1 || intScore < 30",
"m == -1",
"m",
"-1",
"1",
"f == -1",
"f",
"-1",
"1",
"intScore < 30",
"intScore",
"30",
"{\n\n\t\t\t\tlist.add(\"F\");\n\t\t\t}",
"list.add(\"F\")",
"list.add",
"list",
"\"F\"",
"if(80 <= intScore){\n\n\t\t\t\tlist.add(\"A\");\n\t\t\t}else if(65 <= intScore){\n\n\t\t\t\tlist.add(\"B\");\n\t\t\t}else if(50 <= intScore){\n\n\t\t\t\tlist.add(\"C\");\n\t\t\t}else if(30 <= intScore && 50 <= r){\n\n\t\t\t\tlist.add(\"C\");\n\n\t\t\t}else{\n\n\t\t\t\tlist.add(\"D\");\n\t\t\t}",
"80 <= intScore",
"80",
"intScore",
"{\n\n\t\t\t\tlist.add(\"A\");\n\t\t\t}",
"list.add(\"A\")",
"list.add",
"list",
"\"A\"",
"if(65 <= intScore){\n\n\t\t\t\tlist.add(\"B\");\n\t\t\t}else if(50 <= intScore){\n\n\t\t\t\tlist.add(\"C\");\n\t\t\t}else if(30 <= intScore && 50 <= r){\n\n\t\t\t\tlist.add(\"C\");\n\n\t\t\t}else{\n\n\t\t\t\tlist.add(\"D\");\n\t\t\t}",
"65 <= intScore",
"65",
"intScore",
"{\n\n\t\t\t\tlist.add(\"B\");\n\t\t\t}",
"list.add(\"B\")",
"list.add",
"list",
"\"B\"",
"if(50 <= intScore){\n\n\t\t\t\tlist.add(\"C\");\n\t\t\t}else if(30 <= intScore && 50 <= r){\n\n\t\t\t\tlist.add(\"C\");\n\n\t\t\t}else{\n\n\t\t\t\tlist.add(\"D\");\n\t\t\t}",
"50 <= intScore",
"50",
"intScore",
"{\n\n\t\t\t\tlist.add(\"C\");\n\t\t\t}",
"list.add(\"C\")",
"list.add",
"list",
"\"C\"",
"if(30 <= intScore && 50 <= r){\n\n\t\t\t\tlist.add(\"C\");\n\n\t\t\t}else{\n\n\t\t\t\tlist.add(\"D\");\n\t\t\t}",
"30 <= intScore && 50 <= r",
"30 <= intScore",
"30",
"intScore",
"50 <= r",
"50",
"r",
"{\n\n\t\t\t\tlist.add(\"C\");\n\n\t\t\t}",
"list.add(\"C\")",
"list.add",
"list",
"\"C\"",
"{\n\n\t\t\t\tlist.add(\"D\");\n\t\t\t}",
"list.add(\"D\")",
"list.add",
"list",
"\"D\"",
"for(int i = 0; i < list.size(); i++){\n\n\t\t\tSystem.out.println(list.get(i));\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < list.size()",
"i",
"list.size()",
"list.size",
"list",
"i++",
"i++",
"i",
"{\n\n\t\t\tSystem.out.println(list.get(i));\n\t\t}",
"{\n\n\t\t\tSystem.out.println(list.get(i));\n\t\t}",
"System.out.println(list.get(i))",
"System.out.println",
"System.out",
"System",
"System.out",
"list.get(i)",
"list.get",
"list",
"i",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tboolean isContinue = true;\n\n\t\t//?????°???????´?????????????\n\t\tint[] score = new int[3];\n\t\t//????????????????´????????????¬????????§????????????\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\twhile(isContinue){\n\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\n\n\t\t\tint intScore = 0;\n\t\t\t//????????????????????´??????intScore????¨????\n\t\t\tif(m != -1 && f != -1){\n\t\t\t\tintScore = m + f;\n\t\t\t}\n\n\t\t\t//while????????????????????¶\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\tisContinue = false;\n\t\t\t\tscan.close();\n\n\t\t\t//????????????????????????????????????list???????´?\n\t\t\t}else if(m == -1 || f == -1 || intScore < 30 ){\n\n\t\t\t\tlist.add(\"F\");\n\t\t\t}else if(80 <= intScore){\n\n\t\t\t\tlist.add(\"A\");\n\t\t\t}else if(65 <= intScore){\n\n\t\t\t\tlist.add(\"B\");\n\t\t\t}else if(50 <= intScore){\n\n\t\t\t\tlist.add(\"C\");\n\t\t\t}else if(30 <= intScore && 50 <= r){\n\n\t\t\t\tlist.add(\"C\");\n\n\t\t\t}else{\n\n\t\t\t\tlist.add(\"D\");\n\t\t\t}\n\t\t\t//System.out.println(\"list.size():\" + list.size());\n\t\t}\n\n\t\tfor(int i = 0; i < list.size(); i++){\n\n\t\t\tSystem.out.println(list.get(i));\n\t\t}\n\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tboolean isContinue = true;\n\n\t\t//?????°???????´?????????????\n\t\tint[] score = new int[3];\n\t\t//????????????????´????????????¬????????§????????????\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\twhile(isContinue){\n\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\n\n\t\t\tint intScore = 0;\n\t\t\t//????????????????????´??????intScore????¨????\n\t\t\tif(m != -1 && f != -1){\n\t\t\t\tintScore = m + f;\n\t\t\t}\n\n\t\t\t//while????????????????????¶\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\tisContinue = false;\n\t\t\t\tscan.close();\n\n\t\t\t//????????????????????????????????????list???????´?\n\t\t\t}else if(m == -1 || f == -1 || intScore < 30 ){\n\n\t\t\t\tlist.add(\"F\");\n\t\t\t}else if(80 <= intScore){\n\n\t\t\t\tlist.add(\"A\");\n\t\t\t}else if(65 <= intScore){\n\n\t\t\t\tlist.add(\"B\");\n\t\t\t}else if(50 <= intScore){\n\n\t\t\t\tlist.add(\"C\");\n\t\t\t}else if(30 <= intScore && 50 <= r){\n\n\t\t\t\tlist.add(\"C\");\n\n\t\t\t}else{\n\n\t\t\t\tlist.add(\"D\");\n\t\t\t}\n\t\t\t//System.out.println(\"list.size():\" + list.size());\n\t\t}\n\n\t\tfor(int i = 0; i < list.size(); i++){\n\n\t\t\tSystem.out.println(list.get(i));\n\t\t}\n\n\t}\n}",
"Main"
] | import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner scan = new Scanner(System.in);
boolean isContinue = true;
//?????°???????´?????????????
int[] score = new int[3];
//????????????????´????????????¬????????§????????????
ArrayList<String> list = new ArrayList<String>();
while(isContinue){
int m = scan.nextInt();
int f = scan.nextInt();
int r = scan.nextInt();
int intScore = 0;
//????????????????????´??????intScore????¨????
if(m != -1 && f != -1){
intScore = m + f;
}
//while????????????????????¶
if(m == -1 && f == -1 && r == -1){
isContinue = false;
scan.close();
//????????????????????????????????????list???????´?
}else if(m == -1 || f == -1 || intScore < 30 ){
list.add("F");
}else if(80 <= intScore){
list.add("A");
}else if(65 <= intScore){
list.add("B");
}else if(50 <= intScore){
list.add("C");
}else if(30 <= intScore && 50 <= r){
list.add("C");
}else{
list.add("D");
}
//System.out.println("list.size():" + list.size());
}
for(int i = 0; i < list.size(); i++){
System.out.println(list.get(i));
}
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.