node_ids
listlengths 4
1.4k
| edge_index
listlengths 1
2.22k
| text
listlengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
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,
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,
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
],
[
175,
17
],
[
175,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
26,
31
],
[
20,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
37,
39
],
[
20,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
45,
47
],
[
20,
48
],
[
48,
49
],
[
48,
50
],
[
20,
53
],
[
53,
54
],
[
53,
55
],
[
20,
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
],
[
20,
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
],
[
120,
123
],
[
123,
124
],
[
124,
125
],
[
20,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
126,
134
],
[
134,
135
],
[
135,
136
],
[
126,
137
],
[
138,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
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
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
157,
163
],
[
163,
164
],
[
163,
165
],
[
138,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
166,
171
],
[
18,
172
],
[
172,
173
],
[
0,
174
],
[
174,
175
],
[
174,
176
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.HashMap;\n\n\npublic class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(tmpArray[0]);\n\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[m];\n\n\t\t//String[] tmpArray = br.readLine().split(\" \");\n\t\t//int[] input = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tint b = Integer.parseInt(tmpArray[0])-1;\n//\t\t\tint f = Integer.parseInt(tmpArray[1])-1;\n//\t\t\tint r = Integer.parseInt(tmpArray[2])-1;\n//\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tmatrix[i][j] = Integer.parseInt(tmpArray[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tvector[i] = Integer.parseInt(br.readLine());\n\t\t}\n\t\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\t//System.out.printf(\"%d %d\\n\", matrix[i][j] , vector[j]);\n\t\t\t\tsum += matrix[i][j]*vector[j];\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t\t\t\n//\t\tSystem.out.print(input[0]);\n//\t\tfor(int i = 1 ; i < n; i++){\n//\t\t\tSystem.out.print(\" \"+ input[i]);\n//\t\t}\n//\t\tSystem.out.println();\n////\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n//\t\twhile(true){\n//\t\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\t\tint a = Integer.parseInt(tmpArray[0]);\n//\t\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\t\tif(a == 0 && b == 0){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int i = 0; i < a; i++){\n//\t\t\t\tfor(int j = 0; j < b; j++){\n//\t\t\t\t\tif((i + j)%2 == 1){\n//\t\t\t\t\t\tSystem.out.print(\".\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tSystem.out.print(\"#\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}*/\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",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.HashMap;",
"HashMap",
"java.util",
"public class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(tmpArray[0]);\n\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[m];\n\n\t\t//String[] tmpArray = br.readLine().split(\" \");\n\t\t//int[] input = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tint b = Integer.parseInt(tmpArray[0])-1;\n//\t\t\tint f = Integer.parseInt(tmpArray[1])-1;\n//\t\t\tint r = Integer.parseInt(tmpArray[2])-1;\n//\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tmatrix[i][j] = Integer.parseInt(tmpArray[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tvector[i] = Integer.parseInt(br.readLine());\n\t\t}\n\t\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\t//System.out.printf(\"%d %d\\n\", matrix[i][j] , vector[j]);\n\t\t\t\tsum += matrix[i][j]*vector[j];\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t\t\t\n//\t\tSystem.out.print(input[0]);\n//\t\tfor(int i = 1 ; i < n; i++){\n//\t\t\tSystem.out.print(\" \"+ input[i]);\n//\t\t}\n//\t\tSystem.out.println();\n////\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n//\t\twhile(true){\n//\t\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\t\tint a = Integer.parseInt(tmpArray[0]);\n//\t\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\t\tif(a == 0 && b == 0){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int i = 0; i < a; i++){\n//\t\t\t\tfor(int j = 0; j < b; j++){\n//\t\t\t\t\tif((i + j)%2 == 1){\n//\t\t\t\t\t\tSystem.out.print(\".\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tSystem.out.print(\"#\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}*/\n\t}\n\n}",
"Main",
"/**\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(tmpArray[0]);\n\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[m];\n\n\t\t//String[] tmpArray = br.readLine().split(\" \");\n\t\t//int[] input = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tint b = Integer.parseInt(tmpArray[0])-1;\n//\t\t\tint f = Integer.parseInt(tmpArray[1])-1;\n//\t\t\tint r = Integer.parseInt(tmpArray[2])-1;\n//\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tmatrix[i][j] = Integer.parseInt(tmpArray[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tvector[i] = Integer.parseInt(br.readLine());\n\t\t}\n\t\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\t//System.out.printf(\"%d %d\\n\", matrix[i][j] , vector[j]);\n\t\t\t\tsum += matrix[i][j]*vector[j];\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t\t\t\n//\t\tSystem.out.print(input[0]);\n//\t\tfor(int i = 1 ; i < n; i++){\n//\t\t\tSystem.out.print(\" \"+ input[i]);\n//\t\t}\n//\t\tSystem.out.println();\n////\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n//\t\twhile(true){\n//\t\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\t\tint a = Integer.parseInt(tmpArray[0]);\n//\t\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\t\tif(a == 0 && b == 0){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int i = 0; i < a; i++){\n//\t\t\t\tfor(int j = 0; j < b; j++){\n//\t\t\t\t\tif((i + j)%2 == 1){\n//\t\t\t\t\t\tSystem.out.print(\".\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tSystem.out.print(\"#\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}*/\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(tmpArray[0]);\n\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[m];\n\n\t\t//String[] tmpArray = br.readLine().split(\" \");\n\t\t//int[] input = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tint b = Integer.parseInt(tmpArray[0])-1;\n//\t\t\tint f = Integer.parseInt(tmpArray[1])-1;\n//\t\t\tint r = Integer.parseInt(tmpArray[2])-1;\n//\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tmatrix[i][j] = Integer.parseInt(tmpArray[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tvector[i] = Integer.parseInt(br.readLine());\n\t\t}\n\t\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\t//System.out.printf(\"%d %d\\n\", matrix[i][j] , vector[j]);\n\t\t\t\tsum += matrix[i][j]*vector[j];\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t\t\t\n//\t\tSystem.out.print(input[0]);\n//\t\tfor(int i = 1 ; i < n; i++){\n//\t\t\tSystem.out.print(\" \"+ input[i]);\n//\t\t}\n//\t\tSystem.out.println();\n////\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n//\t\twhile(true){\n//\t\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\t\tint a = Integer.parseInt(tmpArray[0]);\n//\t\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\t\tif(a == 0 && b == 0){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int i = 0; i < a; i++){\n//\t\t\t\tfor(int j = 0; j < b; j++){\n//\t\t\t\t\tif((i + j)%2 == 1){\n//\t\t\t\t\t\tSystem.out.print(\".\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tSystem.out.print(\"#\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}*/\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] tmpArray = br.readLine().split(\" \");",
"tmpArray",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int n = Integer.parseInt(tmpArray[0]);",
"n",
"Integer.parseInt(tmpArray[0])",
"Integer.parseInt",
"Integer",
"tmpArray[0]",
"tmpArray",
"0",
"int m = Integer.parseInt(tmpArray[1]);",
"m",
"Integer.parseInt(tmpArray[1])",
"Integer.parseInt",
"Integer",
"tmpArray[1]",
"tmpArray",
"1",
"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\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tint b = Integer.parseInt(tmpArray[0])-1;\n//\t\t\tint f = Integer.parseInt(tmpArray[1])-1;\n//\t\t\tint r = Integer.parseInt(tmpArray[2])-1;\n//\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tmatrix[i][j] = Integer.parseInt(tmpArray[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\ttmpArray = br.readLine().split(\" \");\n//\t\t\tint b = Integer.parseInt(tmpArray[0])-1;\n//\t\t\tint f = Integer.parseInt(tmpArray[1])-1;\n//\t\t\tint r = Integer.parseInt(tmpArray[2])-1;\n//\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tmatrix[i][j] = Integer.parseInt(tmpArray[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tint b = Integer.parseInt(tmpArray[0])-1;\n//\t\t\tint f = Integer.parseInt(tmpArray[1])-1;\n//\t\t\tint r = Integer.parseInt(tmpArray[2])-1;\n//\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tmatrix[i][j] = Integer.parseInt(tmpArray[j]);\n\t\t\t}\n\t\t}",
"tmpArray = br.readLine().split(\" \")",
"tmpArray",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(int j = 0; j < m; j++){\n\t\t\t\tmatrix[i][j] = Integer.parseInt(tmpArray[j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tmatrix[i][j] = Integer.parseInt(tmpArray[j]);\n\t\t\t}",
"{\n\t\t\t\tmatrix[i][j] = Integer.parseInt(tmpArray[j]);\n\t\t\t}",
"matrix[i][j] = Integer.parseInt(tmpArray[j])",
"matrix[i][j]",
"matrix[i]",
"matrix",
"i",
"j",
"Integer.parseInt(tmpArray[j])",
"Integer.parseInt",
"Integer",
"tmpArray[j]",
"tmpArray",
"j",
"for(int i = 0; i < m; i++){\n\t\t\tvector[i] = Integer.parseInt(br.readLine());\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tvector[i] = Integer.parseInt(br.readLine());\n\t\t}",
"{\n\t\t\tvector[i] = Integer.parseInt(br.readLine());\n\t\t}",
"vector[i] = Integer.parseInt(br.readLine())",
"vector[i]",
"vector",
"i",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"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\t//System.out.printf(\"%d %d\\n\", matrix[i][j] , vector[j]);\n\t\t\t\tsum += matrix[i][j]*vector[j];\n\t\t\t}\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\tint sum = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\t//System.out.printf(\"%d %d\\n\", matrix[i][j] , vector[j]);\n\t\t\t\tsum += matrix[i][j]*vector[j];\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sum);\n\t\t}",
"{\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\t//System.out.printf(\"%d %d\\n\", matrix[i][j] , vector[j]);\n\t\t\t\tsum += matrix[i][j]*vector[j];\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sum);\n\t\t}",
"int sum = 0;",
"sum",
"0",
"for(int j = 0; j < m; j++){\n\t\t\t\t//System.out.printf(\"%d %d\\n\", matrix[i][j] , vector[j]);\n\t\t\t\tsum += matrix[i][j]*vector[j];\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\t//System.out.printf(\"%d %d\\n\", matrix[i][j] , vector[j]);\n\t\t\t\tsum += matrix[i][j]*vector[j];\n\t\t\t}",
"{\n\t\t\t\t//System.out.printf(\"%d %d\\n\", matrix[i][j] , vector[j]);\n\t\t\t\tsum += matrix[i][j]*vector[j];\n\t\t\t}",
"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\n\t/**\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(tmpArray[0]);\n\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[m];\n\n\t\t//String[] tmpArray = br.readLine().split(\" \");\n\t\t//int[] input = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tint b = Integer.parseInt(tmpArray[0])-1;\n//\t\t\tint f = Integer.parseInt(tmpArray[1])-1;\n//\t\t\tint r = Integer.parseInt(tmpArray[2])-1;\n//\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tmatrix[i][j] = Integer.parseInt(tmpArray[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tvector[i] = Integer.parseInt(br.readLine());\n\t\t}\n\t\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\t//System.out.printf(\"%d %d\\n\", matrix[i][j] , vector[j]);\n\t\t\t\tsum += matrix[i][j]*vector[j];\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t\t\t\n//\t\tSystem.out.print(input[0]);\n//\t\tfor(int i = 1 ; i < n; i++){\n//\t\t\tSystem.out.print(\" \"+ input[i]);\n//\t\t}\n//\t\tSystem.out.println();\n////\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n//\t\twhile(true){\n//\t\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\t\tint a = Integer.parseInt(tmpArray[0]);\n//\t\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\t\tif(a == 0 && b == 0){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int i = 0; i < a; i++){\n//\t\t\t\tfor(int j = 0; j < b; j++){\n//\t\t\t\t\tif((i + j)%2 == 1){\n//\t\t\t\t\t\tSystem.out.print(\".\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tSystem.out.print(\"#\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}*/\n\t}\n\n}",
"public class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(tmpArray[0]);\n\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[m];\n\n\t\t//String[] tmpArray = br.readLine().split(\" \");\n\t\t//int[] input = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tint b = Integer.parseInt(tmpArray[0])-1;\n//\t\t\tint f = Integer.parseInt(tmpArray[1])-1;\n//\t\t\tint r = Integer.parseInt(tmpArray[2])-1;\n//\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tmatrix[i][j] = Integer.parseInt(tmpArray[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tvector[i] = Integer.parseInt(br.readLine());\n\t\t}\n\t\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\t//System.out.printf(\"%d %d\\n\", matrix[i][j] , vector[j]);\n\t\t\t\tsum += matrix[i][j]*vector[j];\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t\t\t\n//\t\tSystem.out.print(input[0]);\n//\t\tfor(int i = 1 ; i < n; i++){\n//\t\t\tSystem.out.print(\" \"+ input[i]);\n//\t\t}\n//\t\tSystem.out.println();\n////\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n//\t\twhile(true){\n//\t\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\t\tint a = Integer.parseInt(tmpArray[0]);\n//\t\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\t\tif(a == 0 && b == 0){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int i = 0; i < a; i++){\n//\t\t\t\tfor(int j = 0; j < b; j++){\n//\t\t\t\t\tif((i + j)%2 == 1){\n//\t\t\t\t\t\tSystem.out.print(\".\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tSystem.out.print(\"#\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}*/\n\t}\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.HashMap;
public class Main {
/**
* @param args
* @throws IOException
* @throws NumberFormatException
*/
public static void main(String[] args) throws NumberFormatException, IOException {
// TODO Auto-generated method stub
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] tmpArray = br.readLine().split(" ");
int n = Integer.parseInt(tmpArray[0]);
int m = Integer.parseInt(tmpArray[1]);
// int c = Integer.parseInt(tmpArray[2]);
// int y = Integer.parseInt(tmpArray[3]);
// int r = Integer.parseInt(tmpArray[4]);
int[][] matrix = new int[n][m];
int[] vector = new int[m];
//String[] tmpArray = br.readLine().split(" ");
//int[] input = new int[n];
for(int i = 0; i < n; i++){
tmpArray = br.readLine().split(" ");
// int b = Integer.parseInt(tmpArray[0])-1;
// int f = Integer.parseInt(tmpArray[1])-1;
// int r = Integer.parseInt(tmpArray[2])-1;
// int v = Integer.parseInt(tmpArray[3]);
for(int j = 0; j < m; j++){
matrix[i][j] = Integer.parseInt(tmpArray[j]);
}
}
for(int i = 0; i < m; i++){
vector[i] = Integer.parseInt(br.readLine());
}
for(int i = 0; i < n ; i++){
int sum = 0;
for(int j = 0; j < m; j++){
//System.out.printf("%d %d\n", matrix[i][j] , vector[j]);
sum += matrix[i][j]*vector[j];
}
System.out.println(sum);
}
// System.out.print(input[0]);
// for(int i = 1 ; i < n; i++){
// System.out.print(" "+ input[i]);
// }
// System.out.println();
////
// Arrays.sort(input);
// System.out.printf("%d %d %d\n", input[0], input[input.length - 1], sum);
//
// while(true){
// String[] tmpArray = br.readLine().split(" ");
// int a = Integer.parseInt(tmpArray[0]);
// int b = Integer.parseInt(tmpArray[1]);
// if(a == 0 && b == 0){
// break;
// }
//
// for(int i = 0; i < a; i++){
// for(int j = 0; j < b; j++){
// if((i + j)%2 == 1){
// System.out.print(".");
// }
// else{
// System.out.print("#");
// }
// }
// System.out.println();
// }
// System.out.println();
// }
// int[] array = new int[3];
// array[0] = a; array[1] = b; array[2] = c;
//
// Arrays.sort(array);
// System.out.printf("%d %d %d\n", array[0], array[1], array[2]);
/*
if(a < b && b < c){
System.out.println("Yes");
}
else{
System.out.println("No");
}*/
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
13,
13,
13,
41,
13,
4,
13,
13,
41,
13,
4,
13,
13,
13,
4,
13,
13,
23,
13,
12,
13,
30,
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,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
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,
12,
13,
30,
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
],
[
211,
5
],
[
211,
6
],
[
6,
7
],
[
6,
8
],
[
211,
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
],
[
24,
25
],
[
24,
26
],
[
24,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
30,
32
],
[
11,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
35,
38
],
[
11,
39
],
[
39,
40
],
[
39,
41
],
[
9,
42
],
[
42,
43
],
[
211,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
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
],
[
46,
87
],
[
87,
88
],
[
44,
89
],
[
89,
90
],
[
44,
91
],
[
91,
92
],
[
211,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
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
],
[
95,
120
],
[
120,
121
],
[
93,
122
],
[
122,
123
],
[
211,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
130,
131
],
[
130,
132
],
[
126,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
140,
142
],
[
133,
143
],
[
143,
144
],
[
144,
145
],
[
133,
146
],
[
147,
147
],
[
147,
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
],
[
164,
166
],
[
163,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
167,
173
],
[
173,
174
],
[
173,
175
],
[
126,
176
],
[
176,
177
],
[
124,
178
],
[
178,
179
],
[
124,
180
],
[
180,
181
],
[
211,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
185,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
192,
194
],
[
185,
195
],
[
195,
196
],
[
196,
197
],
[
185,
198
],
[
199,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
200,
205
],
[
205,
206
],
[
205,
207
],
[
182,
208
],
[
208,
209
],
[
0,
210
],
[
210,
211
],
[
210,
212
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\n\t\t// ๅ
ฅๅ\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\n\t\t// A่กๅใฎๅ
ฅๅ\n\t\tlong[][] A = CreateVectorA(n, m);\n\n\t\t// B่กๅใฎๅ
ฅๅ\n\t\tlong[] b = CreateVectorB(m);\n\n\t\t// ่จ็ฎ\n\t\tlong[] C = IntegrationVector(A, b);\n\n\t\t//ๅบๅ\n\t\tprint(C);\n\n\t}\n\n\t//Aใใฏใใซใ็ๆ\n\tstatic long[][] CreateVectorA(int n, int m) {\n\t\tlong[][] vector = new long[n][m];\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tfor (int k = 0; k < m; k++) {\n\n\t\t\t\tvector[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\treturn vector;\n\t}\n\n\t//bใใฏใใซใ็ๆ\n\tstatic long[] CreateVectorB(int m) {\n\t\tlong[] vector = new long[m];\n\t\tfor (int j = 0; j < m; j++) {\n\n\t\t\tvector[j] = sc.nextInt();\n\t\t}\n\t\treturn vector;\n\t}\n\n\t//Aใใฏใใซใจbใใฏใใซใฎ็ฉใ่จ็ฎ\n\tstatic long[] IntegrationVector(long[][] A, long[] b) {\n\t\tlong C[]=new long[A.length];\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tfor (int j = 0; j < b.length; j++) {\n\n\t\t\t\tC[i] += A[i][j] * b[j];\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn C;\n\t}\n\n\t//่กจ็คบๅฆ็\n\tstatic void print(long[] C) {\n\t\tfor (int i = 0; i < C.length; i++) {\n\t\t\t//ๅบๅ\n\t\t\tSystem.out.println(C[i]);\n\t\t}\n\t}\n\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\n\t\t// ๅ
ฅๅ\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\n\t\t// A่กๅใฎๅ
ฅๅ\n\t\tlong[][] A = CreateVectorA(n, m);\n\n\t\t// B่กๅใฎๅ
ฅๅ\n\t\tlong[] b = CreateVectorB(m);\n\n\t\t// ่จ็ฎ\n\t\tlong[] C = IntegrationVector(A, b);\n\n\t\t//ๅบๅ\n\t\tprint(C);\n\n\t}\n\n\t//Aใใฏใใซใ็ๆ\n\tstatic long[][] CreateVectorA(int n, int m) {\n\t\tlong[][] vector = new long[n][m];\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tfor (int k = 0; k < m; k++) {\n\n\t\t\t\tvector[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\treturn vector;\n\t}\n\n\t//bใใฏใใซใ็ๆ\n\tstatic long[] CreateVectorB(int m) {\n\t\tlong[] vector = new long[m];\n\t\tfor (int j = 0; j < m; j++) {\n\n\t\t\tvector[j] = sc.nextInt();\n\t\t}\n\t\treturn vector;\n\t}\n\n\t//Aใใฏใใซใจbใใฏใใซใฎ็ฉใ่จ็ฎ\n\tstatic long[] IntegrationVector(long[][] A, long[] b) {\n\t\tlong C[]=new long[A.length];\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tfor (int j = 0; j < b.length; j++) {\n\n\t\t\t\tC[i] += A[i][j] * b[j];\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn C;\n\t}\n\n\t//่กจ็คบๅฆ็\n\tstatic void print(long[] C) {\n\t\tfor (int i = 0; i < C.length; i++) {\n\t\t\t//ๅบๅ\n\t\t\tSystem.out.println(C[i]);\n\t\t}\n\t}\n\n}",
"Main",
"static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) {\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\n\t\t// ๅ
ฅๅ\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\n\t\t// A่กๅใฎๅ
ฅๅ\n\t\tlong[][] A = CreateVectorA(n, m);\n\n\t\t// B่กๅใฎๅ
ฅๅ\n\t\tlong[] b = CreateVectorB(m);\n\n\t\t// ่จ็ฎ\n\t\tlong[] C = IntegrationVector(A, b);\n\n\t\t//ๅบๅ\n\t\tprint(C);\n\n\t}",
"main",
"{\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\n\t\t// ๅ
ฅๅ\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\n\t\t// A่กๅใฎๅ
ฅๅ\n\t\tlong[][] A = CreateVectorA(n, m);\n\n\t\t// B่กๅใฎๅ
ฅๅ\n\t\tlong[] b = CreateVectorB(m);\n\n\t\t// ่จ็ฎ\n\t\tlong[] C = IntegrationVector(A, b);\n\n\t\t//ๅบๅ\n\t\tprint(C);\n\n\t}",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long[][] A = CreateVectorA(n, m);",
"A",
"CreateVectorA(n, m)",
"CreateVectorA",
"n",
"m",
"long[] b = CreateVectorB(m);",
"b",
"CreateVectorB(m)",
"CreateVectorB",
"m",
"long[] C = IntegrationVector(A, b);",
"C",
"IntegrationVector(A, b)",
"IntegrationVector",
"A",
"b",
"print(C)",
"print",
"C",
"String[] args",
"args",
"//Aใใฏใใซใ็ๆ\n\tstatic long[][] CreateVectorA(int n, int m) {\n\t\tlong[][] vector = new long[n][m];\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tfor (int k = 0; k < m; k++) {\n\n\t\t\t\tvector[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\treturn vector;\n\t}",
"CreateVectorA",
"{\n\t\tlong[][] vector = new long[n][m];\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tfor (int k = 0; k < m; k++) {\n\n\t\t\t\tvector[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\treturn vector;\n\t}",
"long[][] vector = new long[n][m];",
"vector",
"new long[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++) {\n\n\t\t\tfor (int k = 0; k < m; k++) {\n\n\t\t\t\tvector[i][k] = 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\n\t\t\tfor (int k = 0; k < m; k++) {\n\n\t\t\t\tvector[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\n\t\t\tfor (int k = 0; k < m; k++) {\n\n\t\t\t\tvector[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for (int k = 0; k < m; k++) {\n\n\t\t\t\tvector[i][k] = sc.nextInt();\n\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"{\n\n\t\t\t\tvector[i][k] = sc.nextInt();\n\t\t\t}",
"{\n\n\t\t\t\tvector[i][k] = sc.nextInt();\n\t\t\t}",
"vector[i][k] = sc.nextInt()",
"vector[i][k]",
"vector[i]",
"vector",
"i",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"return vector;",
"vector",
"int n",
"n",
"int m",
"m",
"//bใใฏใใซใ็ๆ\n\tstatic long[] CreateVectorB(int m) {\n\t\tlong[] vector = new long[m];\n\t\tfor (int j = 0; j < m; j++) {\n\n\t\t\tvector[j] = sc.nextInt();\n\t\t}\n\t\treturn vector;\n\t}",
"CreateVectorB",
"{\n\t\tlong[] vector = new long[m];\n\t\tfor (int j = 0; j < m; j++) {\n\n\t\t\tvector[j] = sc.nextInt();\n\t\t}\n\t\treturn vector;\n\t}",
"long[] vector = new long[m];",
"vector",
"new long[m]",
"m",
"for (int j = 0; j < m; j++) {\n\n\t\t\tvector[j] = sc.nextInt();\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\n\t\t\tvector[j] = sc.nextInt();\n\t\t}",
"{\n\n\t\t\tvector[j] = sc.nextInt();\n\t\t}",
"vector[j] = sc.nextInt()",
"vector[j]",
"vector",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"return vector;",
"vector",
"int m",
"m",
"//Aใใฏใใซใจbใใฏใใซใฎ็ฉใ่จ็ฎ\n\tstatic long[] IntegrationVector(long[][] A, long[] b) {\n\t\tlong C[]=new long[A.length];\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tfor (int j = 0; j < b.length; j++) {\n\n\t\t\t\tC[i] += A[i][j] * b[j];\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn C;\n\t}",
"IntegrationVector",
"{\n\t\tlong C[]=new long[A.length];\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tfor (int j = 0; j < b.length; j++) {\n\n\t\t\t\tC[i] += A[i][j] * b[j];\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn C;\n\t}",
"long C[]=new long[A.length];",
"C",
"new long[A.length]",
"A.length",
"A",
"A.length",
"for (int i = 0; i < A.length; i++) {\n\t\t\tfor (int j = 0; j < b.length; j++) {\n\n\t\t\t\tC[i] += A[i][j] * b[j];\n\t\t\t}\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 < b.length; j++) {\n\n\t\t\t\tC[i] += A[i][j] * b[j];\n\t\t\t}\n\t\t\t\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < b.length; j++) {\n\n\t\t\t\tC[i] += A[i][j] * b[j];\n\t\t\t}\n\t\t\t\n\t\t}",
"for (int j = 0; j < b.length; j++) {\n\n\t\t\t\tC[i] += A[i][j] * b[j];\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < b.length",
"j",
"b.length",
"b",
"b.length",
"j++",
"j++",
"j",
"{\n\n\t\t\t\tC[i] += A[i][j] * b[j];\n\t\t\t}",
"{\n\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",
"return C;",
"C",
"long[][] A",
"A",
"long[] b",
"b",
"//่กจ็คบๅฆ็\n\tstatic void print(long[] C) {\n\t\tfor (int i = 0; i < C.length; i++) {\n\t\t\t//ๅบๅ\n\t\t\tSystem.out.println(C[i]);\n\t\t}\n\t}",
"print",
"{\n\t\tfor (int i = 0; i < C.length; i++) {\n\t\t\t//ๅบๅ\n\t\t\tSystem.out.println(C[i]);\n\t\t}\n\t}",
"for (int i = 0; i < C.length; i++) {\n\t\t\t//ๅบๅ\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\t//ๅบๅ\n\t\t\tSystem.out.println(C[i]);\n\t\t}",
"{\n\t\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",
"long[] C",
"C",
"public class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\n\t\t// ๅ
ฅๅ\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\n\t\t// A่กๅใฎๅ
ฅๅ\n\t\tlong[][] A = CreateVectorA(n, m);\n\n\t\t// B่กๅใฎๅ
ฅๅ\n\t\tlong[] b = CreateVectorB(m);\n\n\t\t// ่จ็ฎ\n\t\tlong[] C = IntegrationVector(A, b);\n\n\t\t//ๅบๅ\n\t\tprint(C);\n\n\t}\n\n\t//Aใใฏใใซใ็ๆ\n\tstatic long[][] CreateVectorA(int n, int m) {\n\t\tlong[][] vector = new long[n][m];\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tfor (int k = 0; k < m; k++) {\n\n\t\t\t\tvector[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\treturn vector;\n\t}\n\n\t//bใใฏใใซใ็ๆ\n\tstatic long[] CreateVectorB(int m) {\n\t\tlong[] vector = new long[m];\n\t\tfor (int j = 0; j < m; j++) {\n\n\t\t\tvector[j] = sc.nextInt();\n\t\t}\n\t\treturn vector;\n\t}\n\n\t//Aใใฏใใซใจbใใฏใใซใฎ็ฉใ่จ็ฎ\n\tstatic long[] IntegrationVector(long[][] A, long[] b) {\n\t\tlong C[]=new long[A.length];\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tfor (int j = 0; j < b.length; j++) {\n\n\t\t\t\tC[i] += A[i][j] * b[j];\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn C;\n\t}\n\n\t//่กจ็คบๅฆ็\n\tstatic void print(long[] C) {\n\t\tfor (int i = 0; i < C.length; i++) {\n\t\t\t//ๅบๅ\n\t\t\tSystem.out.println(C[i]);\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\n\t\t// ๅ
ฅๅ\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\n\t\t// A่กๅใฎๅ
ฅๅ\n\t\tlong[][] A = CreateVectorA(n, m);\n\n\t\t// B่กๅใฎๅ
ฅๅ\n\t\tlong[] b = CreateVectorB(m);\n\n\t\t// ่จ็ฎ\n\t\tlong[] C = IntegrationVector(A, b);\n\n\t\t//ๅบๅ\n\t\tprint(C);\n\n\t}\n\n\t//Aใใฏใใซใ็ๆ\n\tstatic long[][] CreateVectorA(int n, int m) {\n\t\tlong[][] vector = new long[n][m];\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tfor (int k = 0; k < m; k++) {\n\n\t\t\t\tvector[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\treturn vector;\n\t}\n\n\t//bใใฏใใซใ็ๆ\n\tstatic long[] CreateVectorB(int m) {\n\t\tlong[] vector = new long[m];\n\t\tfor (int j = 0; j < m; j++) {\n\n\t\t\tvector[j] = sc.nextInt();\n\t\t}\n\t\treturn vector;\n\t}\n\n\t//Aใใฏใใซใจbใใฏใใซใฎ็ฉใ่จ็ฎ\n\tstatic long[] IntegrationVector(long[][] A, long[] b) {\n\t\tlong C[]=new long[A.length];\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tfor (int j = 0; j < b.length; j++) {\n\n\t\t\t\tC[i] += A[i][j] * b[j];\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn C;\n\t}\n\n\t//่กจ็คบๅฆ็\n\tstatic void print(long[] C) {\n\t\tfor (int i = 0; i < C.length; i++) {\n\t\t\t//ๅบๅ\n\t\t\tSystem.out.println(C[i]);\n\t\t}\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ
// ๅ
ฅๅ
int n = sc.nextInt();
int m = sc.nextInt();
// A่กๅใฎๅ
ฅๅ
long[][] A = CreateVectorA(n, m);
// B่กๅใฎๅ
ฅๅ
long[] b = CreateVectorB(m);
// ่จ็ฎ
long[] C = IntegrationVector(A, b);
//ๅบๅ
print(C);
}
//Aใใฏใใซใ็ๆ
static long[][] CreateVectorA(int n, int m) {
long[][] vector = new long[n][m];
for (int i = 0; i < n; i++) {
for (int k = 0; k < m; k++) {
vector[i][k] = sc.nextInt();
}
}
return vector;
}
//bใใฏใใซใ็ๆ
static long[] CreateVectorB(int m) {
long[] vector = new long[m];
for (int j = 0; j < m; j++) {
vector[j] = sc.nextInt();
}
return vector;
}
//Aใใฏใใซใจbใใฏใใซใฎ็ฉใ่จ็ฎ
static long[] IntegrationVector(long[][] A, long[] b) {
long C[]=new long[A.length];
for (int i = 0; i < A.length; i++) {
for (int j = 0; j < b.length; j++) {
C[i] += A[i][j] * b[j];
}
}
return C;
}
//่กจ็คบๅฆ็
static void print(long[] C) {
for (int i = 0; i < C.length; 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,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
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,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
18,
13,
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,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
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
],
[
191,
5
],
[
191,
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,
43
],
[
43,
44
],
[
43,
45
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
8,
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
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
8,
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
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
89,
90
],
[
83,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
98,
100
],
[
8,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
108,
110
],
[
101,
111
],
[
111,
112
],
[
112,
113
],
[
101,
114
],
[
115,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
115,
124
],
[
124,
125
],
[
124,
126
],
[
127,
128
],
[
127,
129
],
[
115,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
137,
139
],
[
130,
140
],
[
140,
141
],
[
141,
142
],
[
130,
143
],
[
144,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
149,
150
],
[
150,
151
],
[
149,
152
],
[
152,
153
],
[
152,
154
],
[
115,
155
],
[
155,
156
],
[
155,
157
],
[
115,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
158,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
165,
167
],
[
158,
168
],
[
168,
169
],
[
169,
170
],
[
158,
171
],
[
172,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
179,
180
],
[
179,
181
],
[
115,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
182,
187
],
[
6,
188
],
[
188,
189
],
[
0,
190
],
[
190,
191
],
[
190,
192
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tString[] k = line.split(\" \");\n\t\tint v = Integer.parseInt(k[0]);// n\n\t\tint v2 = Integer.parseInt(k[1]);// m\n\n\t\tString[] n = new String[v];\n\t\tString[] m0 = new String[v2];\n\t\tint[] m = new int[v2];\n\t\tfor (int i = 0; i < v; i++) {\n\t\t\tn[i] = sc.nextLine();// String??????n?????\\??????????????ยจ???\n\t\t}\n\t\tfor (int i = 0; i < v2; i++) {\n\t\t\tm0[i] = sc.nextLine();\n\t\t\tm[i] = Integer.parseInt(m0[i]);// int?????????????????????m?????\\???\n\t\t}\n\t\tfor (int i = 0; i < n.length; i++) {\n\t\t\tString[] gyou = n[i].split(\" \");// ????????ยจ???n?????ยฐ??????\n\t\t\tint[] gyouv = new int[m.length];\n\t\t\tfor (int j = 0; j < gyou.length; j++) {\n\t\t\t\tgyouv[j] = Integer.parseInt(gyou[j]);// 1????????ยฐ????????????\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < gyouv.length; j++) {\n\t\t\t\tsum += gyouv[j] * m[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tString[] k = line.split(\" \");\n\t\tint v = Integer.parseInt(k[0]);// n\n\t\tint v2 = Integer.parseInt(k[1]);// m\n\n\t\tString[] n = new String[v];\n\t\tString[] m0 = new String[v2];\n\t\tint[] m = new int[v2];\n\t\tfor (int i = 0; i < v; i++) {\n\t\t\tn[i] = sc.nextLine();// String??????n?????\\??????????????ยจ???\n\t\t}\n\t\tfor (int i = 0; i < v2; i++) {\n\t\t\tm0[i] = sc.nextLine();\n\t\t\tm[i] = Integer.parseInt(m0[i]);// int?????????????????????m?????\\???\n\t\t}\n\t\tfor (int i = 0; i < n.length; i++) {\n\t\t\tString[] gyou = n[i].split(\" \");// ????????ยจ???n?????ยฐ??????\n\t\t\tint[] gyouv = new int[m.length];\n\t\t\tfor (int j = 0; j < gyou.length; j++) {\n\t\t\t\tgyouv[j] = Integer.parseInt(gyou[j]);// 1????????ยฐ????????????\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < gyouv.length; j++) {\n\t\t\t\tsum += gyouv[j] * m[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tString[] k = line.split(\" \");\n\t\tint v = Integer.parseInt(k[0]);// n\n\t\tint v2 = Integer.parseInt(k[1]);// m\n\n\t\tString[] n = new String[v];\n\t\tString[] m0 = new String[v2];\n\t\tint[] m = new int[v2];\n\t\tfor (int i = 0; i < v; i++) {\n\t\t\tn[i] = sc.nextLine();// String??????n?????\\??????????????ยจ???\n\t\t}\n\t\tfor (int i = 0; i < v2; i++) {\n\t\t\tm0[i] = sc.nextLine();\n\t\t\tm[i] = Integer.parseInt(m0[i]);// int?????????????????????m?????\\???\n\t\t}\n\t\tfor (int i = 0; i < n.length; i++) {\n\t\t\tString[] gyou = n[i].split(\" \");// ????????ยจ???n?????ยฐ??????\n\t\t\tint[] gyouv = new int[m.length];\n\t\t\tfor (int j = 0; j < gyou.length; j++) {\n\t\t\t\tgyouv[j] = Integer.parseInt(gyou[j]);// 1????????ยฐ????????????\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < gyouv.length; j++) {\n\t\t\t\tsum += gyouv[j] * m[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\n\t\t}\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tString[] k = line.split(\" \");\n\t\tint v = Integer.parseInt(k[0]);// n\n\t\tint v2 = Integer.parseInt(k[1]);// m\n\n\t\tString[] n = new String[v];\n\t\tString[] m0 = new String[v2];\n\t\tint[] m = new int[v2];\n\t\tfor (int i = 0; i < v; i++) {\n\t\t\tn[i] = sc.nextLine();// String??????n?????\\??????????????ยจ???\n\t\t}\n\t\tfor (int i = 0; i < v2; i++) {\n\t\t\tm0[i] = sc.nextLine();\n\t\t\tm[i] = Integer.parseInt(m0[i]);// int?????????????????????m?????\\???\n\t\t}\n\t\tfor (int i = 0; i < n.length; i++) {\n\t\t\tString[] gyou = n[i].split(\" \");// ????????ยจ???n?????ยฐ??????\n\t\t\tint[] gyouv = new int[m.length];\n\t\t\tfor (int j = 0; j < gyou.length; j++) {\n\t\t\t\tgyouv[j] = Integer.parseInt(gyou[j]);// 1????????ยฐ????????????\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < gyouv.length; j++) {\n\t\t\t\tsum += gyouv[j] * m[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line = sc.nextLine();",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] k = line.split(\" \");",
"k",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"int v = Integer.parseInt(k[0]);",
"v",
"Integer.parseInt(k[0])",
"Integer.parseInt",
"Integer",
"k[0]",
"k",
"0",
"int v2 = Integer.parseInt(k[1]);",
"v2",
"Integer.parseInt(k[1])",
"Integer.parseInt",
"Integer",
"k[1]",
"k",
"1",
"String[] n = new String[v];",
"n",
"new String[v]",
"v",
"String[] m0 = new String[v2];",
"m0",
"new String[v2]",
"v2",
"int[] m = new int[v2];",
"m",
"new int[v2]",
"v2",
"for (int i = 0; i < v; i++) {\n\t\t\tn[i] = sc.nextLine();// String??????n?????\\??????????????ยจ???\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < v",
"i",
"v",
"i++",
"i++",
"i",
"{\n\t\t\tn[i] = sc.nextLine();// String??????n?????\\??????????????ยจ???\n\t\t}",
"{\n\t\t\tn[i] = sc.nextLine();// String??????n?????\\??????????????ยจ???\n\t\t}",
"n[i] = sc.nextLine()",
"n[i]",
"n",
"i",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for (int i = 0; i < v2; i++) {\n\t\t\tm0[i] = sc.nextLine();\n\t\t\tm[i] = Integer.parseInt(m0[i]);// int?????????????????????m?????\\???\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < v2",
"i",
"v2",
"i++",
"i++",
"i",
"{\n\t\t\tm0[i] = sc.nextLine();\n\t\t\tm[i] = Integer.parseInt(m0[i]);// int?????????????????????m?????\\???\n\t\t}",
"{\n\t\t\tm0[i] = sc.nextLine();\n\t\t\tm[i] = Integer.parseInt(m0[i]);// int?????????????????????m?????\\???\n\t\t}",
"m0[i] = sc.nextLine()",
"m0[i]",
"m0",
"i",
"sc.nextLine()",
"sc.nextLine",
"sc",
"m[i] = Integer.parseInt(m0[i])",
"m[i]",
"m",
"i",
"Integer.parseInt(m0[i])",
"Integer.parseInt",
"Integer",
"m0[i]",
"m0",
"i",
"for (int i = 0; i < n.length; i++) {\n\t\t\tString[] gyou = n[i].split(\" \");// ????????ยจ???n?????ยฐ??????\n\t\t\tint[] gyouv = new int[m.length];\n\t\t\tfor (int j = 0; j < gyou.length; j++) {\n\t\t\t\tgyouv[j] = Integer.parseInt(gyou[j]);// 1????????ยฐ????????????\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < gyouv.length; j++) {\n\t\t\t\tsum += gyouv[j] * m[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n.length",
"i",
"n.length",
"n",
"n.length",
"i++",
"i++",
"i",
"{\n\t\t\tString[] gyou = n[i].split(\" \");// ????????ยจ???n?????ยฐ??????\n\t\t\tint[] gyouv = new int[m.length];\n\t\t\tfor (int j = 0; j < gyou.length; j++) {\n\t\t\t\tgyouv[j] = Integer.parseInt(gyou[j]);// 1????????ยฐ????????????\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < gyouv.length; j++) {\n\t\t\t\tsum += gyouv[j] * m[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\n\t\t}",
"{\n\t\t\tString[] gyou = n[i].split(\" \");// ????????ยจ???n?????ยฐ??????\n\t\t\tint[] gyouv = new int[m.length];\n\t\t\tfor (int j = 0; j < gyou.length; j++) {\n\t\t\t\tgyouv[j] = Integer.parseInt(gyou[j]);// 1????????ยฐ????????????\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < gyouv.length; j++) {\n\t\t\t\tsum += gyouv[j] * m[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\n\t\t}",
"String[] gyou = n[i].split(\" \");",
"gyou",
"n[i].split(\" \")",
"n[i].split",
"n[i]",
"n",
"i",
"\" \"",
"int[] gyouv = new int[m.length];",
"gyouv",
"new int[m.length]",
"m.length",
"m",
"m.length",
"for (int j = 0; j < gyou.length; j++) {\n\t\t\t\tgyouv[j] = Integer.parseInt(gyou[j]);// 1????????ยฐ????????????\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < gyou.length",
"j",
"gyou.length",
"gyou",
"gyou.length",
"j++",
"j++",
"j",
"{\n\t\t\t\tgyouv[j] = Integer.parseInt(gyou[j]);// 1????????ยฐ????????????\n\t\t\t}",
"{\n\t\t\t\tgyouv[j] = Integer.parseInt(gyou[j]);// 1????????ยฐ????????????\n\t\t\t}",
"gyouv[j] = Integer.parseInt(gyou[j])",
"gyouv[j]",
"gyouv",
"j",
"Integer.parseInt(gyou[j])",
"Integer.parseInt",
"Integer",
"gyou[j]",
"gyou",
"j",
"int sum = 0;",
"sum",
"0",
"for (int j = 0; j < gyouv.length; j++) {\n\t\t\t\tsum += gyouv[j] * m[j];\n\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < gyouv.length",
"j",
"gyouv.length",
"gyouv",
"gyouv.length",
"j++",
"j++",
"j",
"{\n\t\t\t\tsum += gyouv[j] * m[j];\n\n\t\t\t}",
"{\n\t\t\t\tsum += gyouv[j] * m[j];\n\n\t\t\t}",
"sum += gyouv[j] * m[j]",
"sum",
"gyouv[j] * m[j]",
"gyouv[j]",
"gyouv",
"j",
"m[j]",
"m",
"j",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] arges",
"arges",
"public class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tString[] k = line.split(\" \");\n\t\tint v = Integer.parseInt(k[0]);// n\n\t\tint v2 = Integer.parseInt(k[1]);// m\n\n\t\tString[] n = new String[v];\n\t\tString[] m0 = new String[v2];\n\t\tint[] m = new int[v2];\n\t\tfor (int i = 0; i < v; i++) {\n\t\t\tn[i] = sc.nextLine();// String??????n?????\\??????????????ยจ???\n\t\t}\n\t\tfor (int i = 0; i < v2; i++) {\n\t\t\tm0[i] = sc.nextLine();\n\t\t\tm[i] = Integer.parseInt(m0[i]);// int?????????????????????m?????\\???\n\t\t}\n\t\tfor (int i = 0; i < n.length; i++) {\n\t\t\tString[] gyou = n[i].split(\" \");// ????????ยจ???n?????ยฐ??????\n\t\t\tint[] gyouv = new int[m.length];\n\t\t\tfor (int j = 0; j < gyou.length; j++) {\n\t\t\t\tgyouv[j] = Integer.parseInt(gyou[j]);// 1????????ยฐ????????????\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < gyouv.length; j++) {\n\t\t\t\tsum += gyouv[j] * m[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\n\t\t}\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tString[] k = line.split(\" \");\n\t\tint v = Integer.parseInt(k[0]);// n\n\t\tint v2 = Integer.parseInt(k[1]);// m\n\n\t\tString[] n = new String[v];\n\t\tString[] m0 = new String[v2];\n\t\tint[] m = new int[v2];\n\t\tfor (int i = 0; i < v; i++) {\n\t\t\tn[i] = sc.nextLine();// String??????n?????\\??????????????ยจ???\n\t\t}\n\t\tfor (int i = 0; i < v2; i++) {\n\t\t\tm0[i] = sc.nextLine();\n\t\t\tm[i] = Integer.parseInt(m0[i]);// int?????????????????????m?????\\???\n\t\t}\n\t\tfor (int i = 0; i < n.length; i++) {\n\t\t\tString[] gyou = n[i].split(\" \");// ????????ยจ???n?????ยฐ??????\n\t\t\tint[] gyouv = new int[m.length];\n\t\t\tfor (int j = 0; j < gyou.length; j++) {\n\t\t\t\tgyouv[j] = Integer.parseInt(gyou[j]);// 1????????ยฐ????????????\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < gyouv.length; j++) {\n\t\t\t\tsum += gyouv[j] * m[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\n\t\t}\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] arges) {
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
String[] k = line.split(" ");
int v = Integer.parseInt(k[0]);// n
int v2 = Integer.parseInt(k[1]);// m
String[] n = new String[v];
String[] m0 = new String[v2];
int[] m = new int[v2];
for (int i = 0; i < v; i++) {
n[i] = sc.nextLine();// String??????n?????\??????????????ยจ???
}
for (int i = 0; i < v2; i++) {
m0[i] = sc.nextLine();
m[i] = Integer.parseInt(m0[i]);// int?????????????????????m?????\???
}
for (int i = 0; i < n.length; i++) {
String[] gyou = n[i].split(" ");// ????????ยจ???n?????ยฐ??????
int[] gyouv = new int[m.length];
for (int j = 0; j < gyou.length; j++) {
gyouv[j] = Integer.parseInt(gyou[j]);// 1????????ยฐ????????????
}
int sum = 0;
for (int j = 0; j < gyouv.length; j++) {
sum += gyouv[j] * m[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,
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,
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
],
[
165,
5
],
[
165,
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
],
[
127,
129
],
[
126,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
130,
136
],
[
136,
137
],
[
136,
138
],
[
8,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
146,
148
],
[
139,
149
],
[
149,
150
],
[
150,
151
],
[
139,
152
],
[
153,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
159,
160
],
[
159,
161
],
[
6,
162
],
[
162,
163
],
[
0,
164
],
[
164,
165
],
[
164,
166
]
] | [
"import java.util.Scanner;\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\t\tint[][] matrix_A = new int[n][m];\n\t\tint[] matrix_B = new int[m];\n\t\tint[] matrix_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\tint matrix_element = scan.nextInt();\n\t\t\t\tmatrix_A[i][j] = matrix_element;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<m;i++){\n\t\t\tint matrix_element2 = scan.nextInt();\n\t\t\tmatrix_B[i] = matrix_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\tmatrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j];\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i<matrix_C.length; i++){\n\t\t\tSystem.out.println(matrix_C[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 scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint[][] matrix_A = new int[n][m];\n\t\tint[] matrix_B = new int[m];\n\t\tint[] matrix_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\tint matrix_element = scan.nextInt();\n\t\t\t\tmatrix_A[i][j] = matrix_element;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<m;i++){\n\t\t\tint matrix_element2 = scan.nextInt();\n\t\t\tmatrix_B[i] = matrix_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\tmatrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j];\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i<matrix_C.length; i++){\n\t\t\tSystem.out.println(matrix_C[i]);\n\t\t} \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\t\tint[][] matrix_A = new int[n][m];\n\t\tint[] matrix_B = new int[m];\n\t\tint[] matrix_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\tint matrix_element = scan.nextInt();\n\t\t\t\tmatrix_A[i][j] = matrix_element;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<m;i++){\n\t\t\tint matrix_element2 = scan.nextInt();\n\t\t\tmatrix_B[i] = matrix_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\tmatrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j];\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i<matrix_C.length; i++){\n\t\t\tSystem.out.println(matrix_C[i]);\n\t\t} \n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint[][] matrix_A = new int[n][m];\n\t\tint[] matrix_B = new int[m];\n\t\tint[] matrix_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\tint matrix_element = scan.nextInt();\n\t\t\t\tmatrix_A[i][j] = matrix_element;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<m;i++){\n\t\t\tint matrix_element2 = scan.nextInt();\n\t\t\tmatrix_B[i] = matrix_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\tmatrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j];\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i<matrix_C.length; i++){\n\t\t\tSystem.out.println(matrix_C[i]);\n\t\t} \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[][] matrix_A = new int[n][m];",
"matrix_A",
"new int[n][m]",
"n",
"m",
"int[] matrix_B = new int[m];",
"matrix_B",
"new int[m]",
"m",
"int[] matrix_C = new int[n];",
"matrix_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 matrix_element = scan.nextInt();\n\t\t\t\tmatrix_A[i][j] = matrix_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 matrix_element = scan.nextInt();\n\t\t\t\tmatrix_A[i][j] = matrix_element;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0;j<m;j++){\n\t\t\t\tint matrix_element = scan.nextInt();\n\t\t\t\tmatrix_A[i][j] = matrix_element;\n\t\t\t}\n\t\t}",
"for(int j = 0;j<m;j++){\n\t\t\t\tint matrix_element = scan.nextInt();\n\t\t\t\tmatrix_A[i][j] = matrix_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 matrix_element = scan.nextInt();\n\t\t\t\tmatrix_A[i][j] = matrix_element;\n\t\t\t}",
"{\n\t\t\t\tint matrix_element = scan.nextInt();\n\t\t\t\tmatrix_A[i][j] = matrix_element;\n\t\t\t}",
"int matrix_element = scan.nextInt();",
"matrix_element",
"scan.nextInt()",
"scan.nextInt",
"scan",
"matrix_A[i][j] = matrix_element",
"matrix_A[i][j]",
"matrix_A[i]",
"matrix_A",
"i",
"j",
"matrix_element",
"for(int i=0;i<m;i++){\n\t\t\tint matrix_element2 = scan.nextInt();\n\t\t\tmatrix_B[i] = matrix_element2;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tint matrix_element2 = scan.nextInt();\n\t\t\tmatrix_B[i] = matrix_element2;\n\t\t}",
"{\n\t\t\tint matrix_element2 = scan.nextInt();\n\t\t\tmatrix_B[i] = matrix_element2;\n\t\t}",
"int matrix_element2 = scan.nextInt();",
"matrix_element2",
"scan.nextInt()",
"scan.nextInt",
"scan",
"matrix_B[i] = matrix_element2",
"matrix_B[i]",
"matrix_B",
"i",
"matrix_element2",
"for(int i = 0;i<n; i++){\n\t\t\tfor(int j = 0; j<m; j++){\n\t\t\t\tmatrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_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\tmatrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j];\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j<m; j++){\n\t\t\t\tmatrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j];\n\t\t\t}\n\t\t}",
"for(int j = 0; j<m; j++){\n\t\t\t\tmatrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_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\tmatrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j];\n\t\t\t}",
"{\n\t\t\t\tmatrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j];\n\t\t\t}",
"matrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j]",
"matrix_C[i]",
"matrix_C",
"i",
"matrix_C[i]+matrix_A[i][j] * matrix_B[j]",
"matrix_C[i]",
"matrix_C",
"i",
"matrix_A[i][j] * matrix_B[j]",
"matrix_A[i][j]",
"matrix_A[i]",
"matrix_A",
"i",
"j",
"matrix_B[j]",
"matrix_B",
"j",
"for(int i = 0; i<matrix_C.length; i++){\n\t\t\tSystem.out.println(matrix_C[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<matrix_C.length",
"i",
"matrix_C.length",
"matrix_C",
"matrix_C.length",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(matrix_C[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(matrix_C[i]);\n\t\t}",
"System.out.println(matrix_C[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"matrix_C[i]",
"matrix_C",
"i",
"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\t\tint[][] matrix_A = new int[n][m];\n\t\tint[] matrix_B = new int[m];\n\t\tint[] matrix_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\tint matrix_element = scan.nextInt();\n\t\t\t\tmatrix_A[i][j] = matrix_element;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<m;i++){\n\t\t\tint matrix_element2 = scan.nextInt();\n\t\t\tmatrix_B[i] = matrix_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\tmatrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j];\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i<matrix_C.length; i++){\n\t\t\tSystem.out.println(matrix_C[i]);\n\t\t} \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\t\tint[][] matrix_A = new int[n][m];\n\t\tint[] matrix_B = new int[m];\n\t\tint[] matrix_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\tint matrix_element = scan.nextInt();\n\t\t\t\tmatrix_A[i][j] = matrix_element;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<m;i++){\n\t\t\tint matrix_element2 = scan.nextInt();\n\t\t\tmatrix_B[i] = matrix_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\tmatrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j];\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i<matrix_C.length; i++){\n\t\t\tSystem.out.println(matrix_C[i]);\n\t\t} \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[][] matrix_A = new int[n][m];
int[] matrix_B = new int[m];
int[] matrix_C = new int[n];
for(int i = 0; i<n; i++){
for(int j = 0;j<m;j++){
int matrix_element = scan.nextInt();
matrix_A[i][j] = matrix_element;
}
}
for(int i=0;i<m;i++){
int matrix_element2 = scan.nextInt();
matrix_B[i] = matrix_element2;
}
for(int i = 0;i<n; i++){
for(int j = 0; j<m; j++){
matrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j];
}
}
for(int i = 0; i<matrix_C.length; i++){
System.out.println(matrix_C[i]);
}
}
} |
[
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,
4,
18,
13,
41,
13,
4,
18,
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,
17,
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,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
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,
20,
41,
13,
4,
18,
13,
4,
18,
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,
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
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
227,
14
],
[
227,
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
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
17,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
38,
39
],
[
17,
40
],
[
40,
41
],
[
40,
42
],
[
17,
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
],
[
17,
78
],
[
78,
79
],
[
78,
80
],
[
17,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
82,
90
],
[
90,
91
],
[
91,
92
],
[
82,
93
],
[
94,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
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
],
[
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
],
[
131,
134
],
[
134,
135
],
[
135,
136
],
[
128,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
137,
143
],
[
17,
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
],
[
156,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
162,
165
],
[
165,
166
],
[
166,
167
],
[
156,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
17,
173
],
[
173,
174
],
[
173,
175
],
[
17,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
176,
181
],
[
181,
182
],
[
181,
183
],
[
176,
184
],
[
184,
185
],
[
185,
186
],
[
176,
187
],
[
188,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
189,
194
],
[
194,
195
],
[
194,
196
],
[
189,
197
],
[
197,
198
],
[
198,
199
],
[
189,
200
],
[
201,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
207,
211
],
[
206,
212
],
[
212,
213
],
[
212,
214
],
[
188,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
215,
220
],
[
188,
221
],
[
221,
222
],
[
221,
223
],
[
15,
224
],
[
224,
225
],
[
0,
226
],
[
226,
227
],
[
226,
228
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(br.readLine());\n\t\tint an=Integer.parseInt(st.nextToken());\n\t\tint m=Integer.parseInt(st.nextToken());\n\n\t\t//้
ๅไฝๆ\n\t\t//่กๅA\n\t\tint[][] Aary=new int[an][m];\n\t\tfor(int y=0;y<an;y++) {\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tAary[y][x]=0;\n\t\t\t}\n\t\t}\n\t\t//ใใฏใใซb\n\t\tint[] Bary=new int[m];\n\t\tfor(int x=0;x<m;x++) {\n\t\t\tBary[x]=0;\n\t\t}\n\n\t\t//้
ๅใฎๆฐๅคๅ
ฅๅ\n\t\t//A\n\t\tfor(int y=0;y<an;y++) {\n\t\t\tStringTokenizer sa=new StringTokenizer(br.readLine());\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tint a=Integer.parseInt(sa.nextToken());\n\t\t\t\tAary[y][x]=a;\n\t\t\t}\n\t\t}\n\t\t//b\n\t\tfor(int x=0;x<m;x++) {\n\t\t\tStringTokenizer sb=new StringTokenizer(br.readLine());\n\t\t\tint b=Integer.parseInt(sb.nextToken());\n\t\t\tBary[x]=b;\n\t\t}\n\n\t\t//้
ๅใฎๅ ๅทฅ\n\t\tint c=0;\n\t\tfor(int y=0;y<an;y++) {\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tc=c+Aary[y][x]*Bary[x];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t\tc=0;\n\t\t}\n\n\t\t//้
ๅๅบๅใปใใใใฐ\n\t\t/*for(int y=0;y<an;y++) {\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tSystem.out.print(Aary[y][x]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}*/\n\t}\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.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(br.readLine());\n\t\tint an=Integer.parseInt(st.nextToken());\n\t\tint m=Integer.parseInt(st.nextToken());\n\n\t\t//้
ๅไฝๆ\n\t\t//่กๅA\n\t\tint[][] Aary=new int[an][m];\n\t\tfor(int y=0;y<an;y++) {\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tAary[y][x]=0;\n\t\t\t}\n\t\t}\n\t\t//ใใฏใใซb\n\t\tint[] Bary=new int[m];\n\t\tfor(int x=0;x<m;x++) {\n\t\t\tBary[x]=0;\n\t\t}\n\n\t\t//้
ๅใฎๆฐๅคๅ
ฅๅ\n\t\t//A\n\t\tfor(int y=0;y<an;y++) {\n\t\t\tStringTokenizer sa=new StringTokenizer(br.readLine());\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tint a=Integer.parseInt(sa.nextToken());\n\t\t\t\tAary[y][x]=a;\n\t\t\t}\n\t\t}\n\t\t//b\n\t\tfor(int x=0;x<m;x++) {\n\t\t\tStringTokenizer sb=new StringTokenizer(br.readLine());\n\t\t\tint b=Integer.parseInt(sb.nextToken());\n\t\t\tBary[x]=b;\n\t\t}\n\n\t\t//้
ๅใฎๅ ๅทฅ\n\t\tint c=0;\n\t\tfor(int y=0;y<an;y++) {\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tc=c+Aary[y][x]*Bary[x];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t\tc=0;\n\t\t}\n\n\t\t//้
ๅๅบๅใปใใใใฐ\n\t\t/*for(int y=0;y<an;y++) {\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tSystem.out.print(Aary[y][x]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}*/\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(br.readLine());\n\t\tint an=Integer.parseInt(st.nextToken());\n\t\tint m=Integer.parseInt(st.nextToken());\n\n\t\t//้
ๅไฝๆ\n\t\t//่กๅA\n\t\tint[][] Aary=new int[an][m];\n\t\tfor(int y=0;y<an;y++) {\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tAary[y][x]=0;\n\t\t\t}\n\t\t}\n\t\t//ใใฏใใซb\n\t\tint[] Bary=new int[m];\n\t\tfor(int x=0;x<m;x++) {\n\t\t\tBary[x]=0;\n\t\t}\n\n\t\t//้
ๅใฎๆฐๅคๅ
ฅๅ\n\t\t//A\n\t\tfor(int y=0;y<an;y++) {\n\t\t\tStringTokenizer sa=new StringTokenizer(br.readLine());\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tint a=Integer.parseInt(sa.nextToken());\n\t\t\t\tAary[y][x]=a;\n\t\t\t}\n\t\t}\n\t\t//b\n\t\tfor(int x=0;x<m;x++) {\n\t\t\tStringTokenizer sb=new StringTokenizer(br.readLine());\n\t\t\tint b=Integer.parseInt(sb.nextToken());\n\t\t\tBary[x]=b;\n\t\t}\n\n\t\t//้
ๅใฎๅ ๅทฅ\n\t\tint c=0;\n\t\tfor(int y=0;y<an;y++) {\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tc=c+Aary[y][x]*Bary[x];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t\tc=0;\n\t\t}\n\n\t\t//้
ๅๅบๅใปใใใใฐ\n\t\t/*for(int y=0;y<an;y++) {\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tSystem.out.print(Aary[y][x]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}*/\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(br.readLine());\n\t\tint an=Integer.parseInt(st.nextToken());\n\t\tint m=Integer.parseInt(st.nextToken());\n\n\t\t//้
ๅไฝๆ\n\t\t//่กๅA\n\t\tint[][] Aary=new int[an][m];\n\t\tfor(int y=0;y<an;y++) {\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tAary[y][x]=0;\n\t\t\t}\n\t\t}\n\t\t//ใใฏใใซb\n\t\tint[] Bary=new int[m];\n\t\tfor(int x=0;x<m;x++) {\n\t\t\tBary[x]=0;\n\t\t}\n\n\t\t//้
ๅใฎๆฐๅคๅ
ฅๅ\n\t\t//A\n\t\tfor(int y=0;y<an;y++) {\n\t\t\tStringTokenizer sa=new StringTokenizer(br.readLine());\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tint a=Integer.parseInt(sa.nextToken());\n\t\t\t\tAary[y][x]=a;\n\t\t\t}\n\t\t}\n\t\t//b\n\t\tfor(int x=0;x<m;x++) {\n\t\t\tStringTokenizer sb=new StringTokenizer(br.readLine());\n\t\t\tint b=Integer.parseInt(sb.nextToken());\n\t\t\tBary[x]=b;\n\t\t}\n\n\t\t//้
ๅใฎๅ ๅทฅ\n\t\tint c=0;\n\t\tfor(int y=0;y<an;y++) {\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tc=c+Aary[y][x]*Bary[x];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t\tc=0;\n\t\t}\n\n\t\t//้
ๅๅบๅใปใใใใฐ\n\t\t/*for(int y=0;y<an;y++) {\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tSystem.out.print(Aary[y][x]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}*/\n\t}",
"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 an=Integer.parseInt(st.nextToken());",
"an",
"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[][] Aary=new int[an][m];",
"Aary",
"new int[an][m]",
"an",
"m",
"for(int y=0;y<an;y++) {\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tAary[y][x]=0;\n\t\t\t}\n\t\t}",
"int y=0;",
"int y=0;",
"y",
"0",
"y<an",
"y",
"an",
"y++",
"y++",
"y",
"{\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tAary[y][x]=0;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tAary[y][x]=0;\n\t\t\t}\n\t\t}",
"for(int x=0;x<m;x++) {\n\t\t\t\tAary[y][x]=0;\n\t\t\t}",
"int x=0;",
"int x=0;",
"x",
"0",
"x<m",
"x",
"m",
"x++",
"x++",
"x",
"{\n\t\t\t\tAary[y][x]=0;\n\t\t\t}",
"{\n\t\t\t\tAary[y][x]=0;\n\t\t\t}",
"Aary[y][x]=0",
"Aary[y][x]",
"Aary[y]",
"Aary",
"y",
"x",
"0",
"int[] Bary=new int[m];",
"Bary",
"new int[m]",
"m",
"for(int x=0;x<m;x++) {\n\t\t\tBary[x]=0;\n\t\t}",
"int x=0;",
"int x=0;",
"x",
"0",
"x<m",
"x",
"m",
"x++",
"x++",
"x",
"{\n\t\t\tBary[x]=0;\n\t\t}",
"{\n\t\t\tBary[x]=0;\n\t\t}",
"Bary[x]=0",
"Bary[x]",
"Bary",
"x",
"0",
"for(int y=0;y<an;y++) {\n\t\t\tStringTokenizer sa=new StringTokenizer(br.readLine());\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tint a=Integer.parseInt(sa.nextToken());\n\t\t\t\tAary[y][x]=a;\n\t\t\t}\n\t\t}",
"int y=0;",
"int y=0;",
"y",
"0",
"y<an",
"y",
"an",
"y++",
"y++",
"y",
"{\n\t\t\tStringTokenizer sa=new StringTokenizer(br.readLine());\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tint a=Integer.parseInt(sa.nextToken());\n\t\t\t\tAary[y][x]=a;\n\t\t\t}\n\t\t}",
"{\n\t\t\tStringTokenizer sa=new StringTokenizer(br.readLine());\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tint a=Integer.parseInt(sa.nextToken());\n\t\t\t\tAary[y][x]=a;\n\t\t\t}\n\t\t}",
"StringTokenizer sa=new StringTokenizer(br.readLine());",
"sa",
"new StringTokenizer(br.readLine())",
"for(int x=0;x<m;x++) {\n\t\t\t\tint a=Integer.parseInt(sa.nextToken());\n\t\t\t\tAary[y][x]=a;\n\t\t\t}",
"int x=0;",
"int x=0;",
"x",
"0",
"x<m",
"x",
"m",
"x++",
"x++",
"x",
"{\n\t\t\t\tint a=Integer.parseInt(sa.nextToken());\n\t\t\t\tAary[y][x]=a;\n\t\t\t}",
"{\n\t\t\t\tint a=Integer.parseInt(sa.nextToken());\n\t\t\t\tAary[y][x]=a;\n\t\t\t}",
"int a=Integer.parseInt(sa.nextToken());",
"a",
"Integer.parseInt(sa.nextToken())",
"Integer.parseInt",
"Integer",
"sa.nextToken()",
"sa.nextToken",
"sa",
"Aary[y][x]=a",
"Aary[y][x]",
"Aary[y]",
"Aary",
"y",
"x",
"a",
"for(int x=0;x<m;x++) {\n\t\t\tStringTokenizer sb=new StringTokenizer(br.readLine());\n\t\t\tint b=Integer.parseInt(sb.nextToken());\n\t\t\tBary[x]=b;\n\t\t}",
"int x=0;",
"int x=0;",
"x",
"0",
"x<m",
"x",
"m",
"x++",
"x++",
"x",
"{\n\t\t\tStringTokenizer sb=new StringTokenizer(br.readLine());\n\t\t\tint b=Integer.parseInt(sb.nextToken());\n\t\t\tBary[x]=b;\n\t\t}",
"{\n\t\t\tStringTokenizer sb=new StringTokenizer(br.readLine());\n\t\t\tint b=Integer.parseInt(sb.nextToken());\n\t\t\tBary[x]=b;\n\t\t}",
"StringTokenizer sb=new StringTokenizer(br.readLine());",
"sb",
"new StringTokenizer(br.readLine())",
"int b=Integer.parseInt(sb.nextToken());",
"b",
"Integer.parseInt(sb.nextToken())",
"Integer.parseInt",
"Integer",
"sb.nextToken()",
"sb.nextToken",
"sb",
"Bary[x]=b",
"Bary[x]",
"Bary",
"x",
"b",
"int c=0;",
"c",
"0",
"for(int y=0;y<an;y++) {\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tc=c+Aary[y][x]*Bary[x];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t\tc=0;\n\t\t}",
"int y=0;",
"int y=0;",
"y",
"0",
"y<an",
"y",
"an",
"y++",
"y++",
"y",
"{\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tc=c+Aary[y][x]*Bary[x];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t\tc=0;\n\t\t}",
"{\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tc=c+Aary[y][x]*Bary[x];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t\tc=0;\n\t\t}",
"for(int x=0;x<m;x++) {\n\t\t\t\tc=c+Aary[y][x]*Bary[x];\n\t\t\t}",
"int x=0;",
"int x=0;",
"x",
"0",
"x<m",
"x",
"m",
"x++",
"x++",
"x",
"{\n\t\t\t\tc=c+Aary[y][x]*Bary[x];\n\t\t\t}",
"{\n\t\t\t\tc=c+Aary[y][x]*Bary[x];\n\t\t\t}",
"c=c+Aary[y][x]*Bary[x]",
"c",
"c+Aary[y][x]*Bary[x]",
"c",
"Aary[y][x]*Bary[x]",
"Aary[y][x]",
"Aary[y]",
"Aary",
"y",
"x",
"Bary[x]",
"Bary",
"x",
"System.out.println(c)",
"System.out.println",
"System.out",
"System",
"System.out",
"c",
"c=0",
"c",
"0",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(br.readLine());\n\t\tint an=Integer.parseInt(st.nextToken());\n\t\tint m=Integer.parseInt(st.nextToken());\n\n\t\t//้
ๅไฝๆ\n\t\t//่กๅA\n\t\tint[][] Aary=new int[an][m];\n\t\tfor(int y=0;y<an;y++) {\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tAary[y][x]=0;\n\t\t\t}\n\t\t}\n\t\t//ใใฏใใซb\n\t\tint[] Bary=new int[m];\n\t\tfor(int x=0;x<m;x++) {\n\t\t\tBary[x]=0;\n\t\t}\n\n\t\t//้
ๅใฎๆฐๅคๅ
ฅๅ\n\t\t//A\n\t\tfor(int y=0;y<an;y++) {\n\t\t\tStringTokenizer sa=new StringTokenizer(br.readLine());\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tint a=Integer.parseInt(sa.nextToken());\n\t\t\t\tAary[y][x]=a;\n\t\t\t}\n\t\t}\n\t\t//b\n\t\tfor(int x=0;x<m;x++) {\n\t\t\tStringTokenizer sb=new StringTokenizer(br.readLine());\n\t\t\tint b=Integer.parseInt(sb.nextToken());\n\t\t\tBary[x]=b;\n\t\t}\n\n\t\t//้
ๅใฎๅ ๅทฅ\n\t\tint c=0;\n\t\tfor(int y=0;y<an;y++) {\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tc=c+Aary[y][x]*Bary[x];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t\tc=0;\n\t\t}\n\n\t\t//้
ๅๅบๅใปใใใใฐ\n\t\t/*for(int y=0;y<an;y++) {\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tSystem.out.print(Aary[y][x]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}*/\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(br.readLine());\n\t\tint an=Integer.parseInt(st.nextToken());\n\t\tint m=Integer.parseInt(st.nextToken());\n\n\t\t//้
ๅไฝๆ\n\t\t//่กๅA\n\t\tint[][] Aary=new int[an][m];\n\t\tfor(int y=0;y<an;y++) {\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tAary[y][x]=0;\n\t\t\t}\n\t\t}\n\t\t//ใใฏใใซb\n\t\tint[] Bary=new int[m];\n\t\tfor(int x=0;x<m;x++) {\n\t\t\tBary[x]=0;\n\t\t}\n\n\t\t//้
ๅใฎๆฐๅคๅ
ฅๅ\n\t\t//A\n\t\tfor(int y=0;y<an;y++) {\n\t\t\tStringTokenizer sa=new StringTokenizer(br.readLine());\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tint a=Integer.parseInt(sa.nextToken());\n\t\t\t\tAary[y][x]=a;\n\t\t\t}\n\t\t}\n\t\t//b\n\t\tfor(int x=0;x<m;x++) {\n\t\t\tStringTokenizer sb=new StringTokenizer(br.readLine());\n\t\t\tint b=Integer.parseInt(sb.nextToken());\n\t\t\tBary[x]=b;\n\t\t}\n\n\t\t//้
ๅใฎๅ ๅทฅ\n\t\tint c=0;\n\t\tfor(int y=0;y<an;y++) {\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tc=c+Aary[y][x]*Bary[x];\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t\t\tc=0;\n\t\t}\n\n\t\t//้
ๅๅบๅใปใใใใฐ\n\t\t/*for(int y=0;y<an;y++) {\n\t\t\tfor(int x=0;x<m;x++) {\n\t\t\t\tSystem.out.print(Aary[y][x]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}*/\n\t}\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st=new StringTokenizer(br.readLine());
int an=Integer.parseInt(st.nextToken());
int m=Integer.parseInt(st.nextToken());
//้
ๅไฝๆ
//่กๅA
int[][] Aary=new int[an][m];
for(int y=0;y<an;y++) {
for(int x=0;x<m;x++) {
Aary[y][x]=0;
}
}
//ใใฏใใซb
int[] Bary=new int[m];
for(int x=0;x<m;x++) {
Bary[x]=0;
}
//้
ๅใฎๆฐๅคๅ
ฅๅ
//A
for(int y=0;y<an;y++) {
StringTokenizer sa=new StringTokenizer(br.readLine());
for(int x=0;x<m;x++) {
int a=Integer.parseInt(sa.nextToken());
Aary[y][x]=a;
}
}
//b
for(int x=0;x<m;x++) {
StringTokenizer sb=new StringTokenizer(br.readLine());
int b=Integer.parseInt(sb.nextToken());
Bary[x]=b;
}
//้
ๅใฎๅ ๅทฅ
int c=0;
for(int y=0;y<an;y++) {
for(int x=0;x<m;x++) {
c=c+Aary[y][x]*Bary[x];
}
System.out.println(c);
c=0;
}
//้
ๅๅบๅใปใใใใฐ
/*for(int y=0;y<an;y++) {
for(int x=0;x<m;x++) {
System.out.print(Aary[y][x]);
}
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,
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,
28,
13,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
142,
5
],
[
142,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
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
],
[
129,
131
],
[
129,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
6,
139
],
[
139,
140
],
[
0,
141
],
[
141,
142
],
[
141,
143
]
] | [
"\n\nimport java.util.Scanner;\n\npublic class Main {\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 \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 }\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 for(int j=0; j < m; j++){\n c[i] += a[i][j] * b[j];\n }\n }\n for(int res : c) System.out.println(res);\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\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 \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 }\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 for(int j=0; j < m; j++){\n c[i] += a[i][j] * b[j];\n }\n }\n for(int res : c) System.out.println(res);\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 \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 }\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 for(int j=0; j < m; j++){\n c[i] += a[i][j] * b[j];\n }\n }\n for(int res : c) System.out.println(res);\n }",
"main",
"{\n \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 }\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 for(int j=0; j < m; j++){\n c[i] += a[i][j] * b[j];\n }\n }\n for(int res : c) System.out.println(res);\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 }\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 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 res : c) System.out.println(res);",
"int res",
"c",
"System.out.println(res);",
"System.out.println(res)",
"System.out.println",
"System.out",
"System",
"System.out",
"res",
"String[] args",
"args",
"public class Main {\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 \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 }\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 for(int j=0; j < m; j++){\n c[i] += a[i][j] * b[j];\n }\n }\n for(int res : c) System.out.println(res);\n }\n}",
"public class Main {\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 \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 }\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 for(int j=0; j < m; j++){\n c[i] += a[i][j] * b[j];\n }\n }\n for(int res : c) System.out.println(res);\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++){
for(int j=0; j < m; j++){
c[i] += a[i][j] * b[j];
}
}
for(int res : c) System.out.println(res);
}
}
|
[
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,
41,
13,
4,
18,
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,
0,
18,
13,
13,
13,
41,
13,
17,
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,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
151,
5
],
[
151,
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
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
58,
64
],
[
8,
65
],
[
65,
66
],
[
65,
67
],
[
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
],
[
92,
94
],
[
8,
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
],
[
110,
112
],
[
109,
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
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
128,
134
],
[
134,
135
],
[
134,
136
],
[
125,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
139,
141
],
[
109,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
142,
147
],
[
6,
148
],
[
148,
149
],
[
0,
150
],
[
150,
151
],
[
150,
152
]
] | [
"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\n\t\tint n = sc.nextInt();\n\n\t\tint m = sc.nextInt();\n\t\t\n\t\tint[][] A = new int[n][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\t\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tA[i][j] = a;\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tint[] B = new int[m];\n\t\t\n\t\tfor(int k = 0;k < m;k++) {\n\t\t\t\n\t\t\tint b = sc.nextInt();\n\t\t\t\n\t\t\t\n\t\t\tB[k] = b;\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t//Aใฏ่ฆ็ด Aใฎ้
ๅใBใฏ่ฆ็ด Bใฎ้
ๅ\n\t\t\n\t\tint sum = 0;\n\t\tint seki;\n\t\t\n\t\tfor(int x = 0;x < n;x++) {\n\t\t\tsum = 0;\n\t\t\t\n\t\t\t\n\t\t\tfor(int y = 0;y < m;y++) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tseki = A[x][y] * B[y];\n\t\t\t\tsum = sum + seki;\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t}\n\n\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\n\t\tint n = sc.nextInt();\n\n\t\tint m = sc.nextInt();\n\t\t\n\t\tint[][] A = new int[n][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\t\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tA[i][j] = a;\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tint[] B = new int[m];\n\t\t\n\t\tfor(int k = 0;k < m;k++) {\n\t\t\t\n\t\t\tint b = sc.nextInt();\n\t\t\t\n\t\t\t\n\t\t\tB[k] = b;\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t//Aใฏ่ฆ็ด Aใฎ้
ๅใBใฏ่ฆ็ด Bใฎ้
ๅ\n\t\t\n\t\tint sum = 0;\n\t\tint seki;\n\t\t\n\t\tfor(int x = 0;x < n;x++) {\n\t\t\tsum = 0;\n\t\t\t\n\t\t\t\n\t\t\tfor(int y = 0;y < m;y++) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tseki = A[x][y] * B[y];\n\t\t\t\tsum = sum + seki;\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t}\n\n\n\n}",
"Main",
"public static void main(String [] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\n\t\tint m = sc.nextInt();\n\t\t\n\t\tint[][] A = new int[n][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\t\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tA[i][j] = a;\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tint[] B = new int[m];\n\t\t\n\t\tfor(int k = 0;k < m;k++) {\n\t\t\t\n\t\t\tint b = sc.nextInt();\n\t\t\t\n\t\t\t\n\t\t\tB[k] = b;\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t//Aใฏ่ฆ็ด Aใฎ้
ๅใBใฏ่ฆ็ด Bใฎ้
ๅ\n\t\t\n\t\tint sum = 0;\n\t\tint seki;\n\t\t\n\t\tfor(int x = 0;x < n;x++) {\n\t\t\tsum = 0;\n\t\t\t\n\t\t\t\n\t\t\tfor(int y = 0;y < m;y++) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tseki = A[x][y] * B[y];\n\t\t\t\tsum = sum + seki;\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\n\t\tint m = sc.nextInt();\n\t\t\n\t\tint[][] A = new int[n][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\t\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tA[i][j] = a;\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tint[] B = new int[m];\n\t\t\n\t\tfor(int k = 0;k < m;k++) {\n\t\t\t\n\t\t\tint b = sc.nextInt();\n\t\t\t\n\t\t\t\n\t\t\tB[k] = b;\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t//Aใฏ่ฆ็ด Aใฎ้
ๅใBใฏ่ฆ็ด Bใฎ้
ๅ\n\t\t\n\t\tint sum = 0;\n\t\tint seki;\n\t\t\n\t\tfor(int x = 0;x < n;x++) {\n\t\t\tsum = 0;\n\t\t\t\n\t\t\t\n\t\t\tfor(int y = 0;y < m;y++) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tseki = A[x][y] * B[y];\n\t\t\t\tsum = sum + seki;\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\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",
"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\t\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tA[i][j] = a;\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\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\t\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tA[i][j] = a;\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0;j < m;j++) {\n\t\t\t\t\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tA[i][j] = a;\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}\n\t\t}",
"for(int j = 0;j < m;j++) {\n\t\t\t\t\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tA[i][j] = a;\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\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\tint a = sc.nextInt();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tA[i][j] = a;\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\t\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tA[i][j] = a;\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"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 k = 0;k < m;k++) {\n\t\t\t\n\t\t\tint b = sc.nextInt();\n\t\t\t\n\t\t\t\n\t\t\tB[k] = b;\n\t\t\t\n\t\t\t\n\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"{\n\t\t\t\n\t\t\tint b = sc.nextInt();\n\t\t\t\n\t\t\t\n\t\t\tB[k] = b;\n\t\t\t\n\t\t\t\n\t\t}",
"{\n\t\t\t\n\t\t\tint b = sc.nextInt();\n\t\t\t\n\t\t\t\n\t\t\tB[k] = b;\n\t\t\t\n\t\t\t\n\t\t}",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"B[k] = b",
"B[k]",
"B",
"k",
"b",
"int sum = 0;",
"sum",
"0",
"int seki;",
"seki",
"for(int x = 0;x < n;x++) {\n\t\t\tsum = 0;\n\t\t\t\n\t\t\t\n\t\t\tfor(int y = 0;y < m;y++) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tseki = A[x][y] * B[y];\n\t\t\t\tsum = sum + seki;\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sum);\n\t\t}",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < n",
"x",
"n",
"x++",
"x++",
"x",
"{\n\t\t\tsum = 0;\n\t\t\t\n\t\t\t\n\t\t\tfor(int y = 0;y < m;y++) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tseki = A[x][y] * B[y];\n\t\t\t\tsum = sum + seki;\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sum);\n\t\t}",
"{\n\t\t\tsum = 0;\n\t\t\t\n\t\t\t\n\t\t\tfor(int y = 0;y < m;y++) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tseki = A[x][y] * B[y];\n\t\t\t\tsum = sum + seki;\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sum);\n\t\t}",
"sum = 0",
"sum",
"0",
"for(int y = 0;y < m;y++) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tseki = A[x][y] * B[y];\n\t\t\t\tsum = sum + seki;\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"int y = 0;",
"int y = 0;",
"y",
"0",
"y < m",
"y",
"m",
"y++",
"y++",
"y",
"{\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tseki = A[x][y] * B[y];\n\t\t\t\tsum = sum + seki;\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tseki = A[x][y] * B[y];\n\t\t\t\tsum = sum + seki;\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"seki = A[x][y] * B[y]",
"seki",
"A[x][y] * B[y]",
"A[x][y]",
"A[x]",
"A",
"x",
"y",
"B[y]",
"B",
"y",
"sum = sum + seki",
"sum",
"sum + seki",
"sum",
"seki",
"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\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\n\t\tint m = sc.nextInt();\n\t\t\n\t\tint[][] A = new int[n][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\t\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tA[i][j] = a;\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tint[] B = new int[m];\n\t\t\n\t\tfor(int k = 0;k < m;k++) {\n\t\t\t\n\t\t\tint b = sc.nextInt();\n\t\t\t\n\t\t\t\n\t\t\tB[k] = b;\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t//Aใฏ่ฆ็ด Aใฎ้
ๅใBใฏ่ฆ็ด Bใฎ้
ๅ\n\t\t\n\t\tint sum = 0;\n\t\tint seki;\n\t\t\n\t\tfor(int x = 0;x < n;x++) {\n\t\t\tsum = 0;\n\t\t\t\n\t\t\t\n\t\t\tfor(int y = 0;y < m;y++) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tseki = A[x][y] * B[y];\n\t\t\t\tsum = sum + seki;\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t}\n\n\n\n}",
"public class Main {\n\n\tpublic static void main(String [] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\n\t\tint m = sc.nextInt();\n\t\t\n\t\tint[][] A = new int[n][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\t\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tA[i][j] = a;\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tint[] B = new int[m];\n\t\t\n\t\tfor(int k = 0;k < m;k++) {\n\t\t\t\n\t\t\tint b = sc.nextInt();\n\t\t\t\n\t\t\t\n\t\t\tB[k] = b;\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t//Aใฏ่ฆ็ด Aใฎ้
ๅใBใฏ่ฆ็ด Bใฎ้
ๅ\n\t\t\n\t\tint sum = 0;\n\t\tint seki;\n\t\t\n\t\tfor(int x = 0;x < n;x++) {\n\t\t\tsum = 0;\n\t\t\t\n\t\t\t\n\t\t\tfor(int y = 0;y < m;y++) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tseki = A[x][y] * B[y];\n\t\t\t\tsum = sum + seki;\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t}\n\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[][] A = new int[n][m];
for(int i = 0;i < n;i++) {
for(int j = 0;j < m;j++) {
int a = sc.nextInt();
A[i][j] = a;
}
}
int[] B = new int[m];
for(int k = 0;k < m;k++) {
int b = sc.nextInt();
B[k] = b;
}
//Aใฏ่ฆ็ด Aใฎ้
ๅใBใฏ่ฆ็ด Bใฎ้
ๅ
int sum = 0;
int seki;
for(int x = 0;x < n;x++) {
sum = 0;
for(int y = 0;y < m;y++) {
seki = A[x][y] * B[y];
sum = sum + seki;
}
System.out.println(sum);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
20,
13,
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,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
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
],
[
179,
5
],
[
179,
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
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
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
],
[
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
],
[
8,
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
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
173,
174
],
[
173,
175
],
[
6,
176
],
[
176,
177
],
[
0,
178
],
[
178,
179
],
[
178,
180
]
] | [
"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 n,m,i,j;\n n=scan.nextInt();\n m=scan.nextInt();\n int arraya[][]=new int[n][m],arrayb[]=new int[m],arrayc[]=new int[n];\n for(i=0;i<n;i++) {\n \tfor(j=0;j<m;j++) {\n \t\tarraya[i][j]=scan.nextInt();\n \t}\n }\n for(i=0;i<m;i++) {\n \tarrayb[i]=scan.nextInt();\n }\n for(i=0;i<n;i++) {\n \tarrayc[i]=0;\n }\n for(i=0;i<n;i++) {\n \tfor(j=0;j<m;j++) {\n \t\tarrayc[i]+=arraya[i][j]*arrayb[j];\n \t}\n }\n for(i=0;i<n;i++) {\n \tSystem.out.println(arrayc[i]);\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 n,m,i,j;\n n=scan.nextInt();\n m=scan.nextInt();\n int arraya[][]=new int[n][m],arrayb[]=new int[m],arrayc[]=new int[n];\n for(i=0;i<n;i++) {\n \tfor(j=0;j<m;j++) {\n \t\tarraya[i][j]=scan.nextInt();\n \t}\n }\n for(i=0;i<m;i++) {\n \tarrayb[i]=scan.nextInt();\n }\n for(i=0;i<n;i++) {\n \tarrayc[i]=0;\n }\n for(i=0;i<n;i++) {\n \tfor(j=0;j<m;j++) {\n \t\tarrayc[i]+=arraya[i][j]*arrayb[j];\n \t}\n }\n for(i=0;i<n;i++) {\n \tSystem.out.println(arrayc[i]);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int n,m,i,j;\n n=scan.nextInt();\n m=scan.nextInt();\n int arraya[][]=new int[n][m],arrayb[]=new int[m],arrayc[]=new int[n];\n for(i=0;i<n;i++) {\n \tfor(j=0;j<m;j++) {\n \t\tarraya[i][j]=scan.nextInt();\n \t}\n }\n for(i=0;i<m;i++) {\n \tarrayb[i]=scan.nextInt();\n }\n for(i=0;i<n;i++) {\n \tarrayc[i]=0;\n }\n for(i=0;i<n;i++) {\n \tfor(j=0;j<m;j++) {\n \t\tarrayc[i]+=arraya[i][j]*arrayb[j];\n \t}\n }\n for(i=0;i<n;i++) {\n \tSystem.out.println(arrayc[i]);\n }\n }",
"main",
"{\n Scanner scan=new Scanner(System.in);\n int n,m,i,j;\n n=scan.nextInt();\n m=scan.nextInt();\n int arraya[][]=new int[n][m],arrayb[]=new int[m],arrayc[]=new int[n];\n for(i=0;i<n;i++) {\n \tfor(j=0;j<m;j++) {\n \t\tarraya[i][j]=scan.nextInt();\n \t}\n }\n for(i=0;i<m;i++) {\n \tarrayb[i]=scan.nextInt();\n }\n for(i=0;i<n;i++) {\n \tarrayc[i]=0;\n }\n for(i=0;i<n;i++) {\n \tfor(j=0;j<m;j++) {\n \t\tarrayc[i]+=arraya[i][j]*arrayb[j];\n \t}\n }\n for(i=0;i<n;i++) {\n \tSystem.out.println(arrayc[i]);\n }\n }",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n",
"n",
"m",
"m",
"i",
"i",
"j;",
"j",
"n=scan.nextInt()",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"m=scan.nextInt()",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int arraya[][]=new int[n][m]",
"arraya",
"new int[n][m]",
"n",
"m",
"arrayb[]=new int[m]",
"arrayb",
"new int[m]",
"m",
"arrayc[]=new int[n];",
"arrayc",
"new int[n]",
"n",
"for(i=0;i<n;i++) {\n \tfor(j=0;j<m;j++) {\n \t\tarraya[i][j]=scan.nextInt();\n \t}\n }",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tfor(j=0;j<m;j++) {\n \t\tarraya[i][j]=scan.nextInt();\n \t}\n }",
"{\n \tfor(j=0;j<m;j++) {\n \t\tarraya[i][j]=scan.nextInt();\n \t}\n }",
"for(j=0;j<m;j++) {\n \t\tarraya[i][j]=scan.nextInt();\n \t}",
"j=0;",
"j=0",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n \t\tarraya[i][j]=scan.nextInt();\n \t}",
"{\n \t\tarraya[i][j]=scan.nextInt();\n \t}",
"arraya[i][j]=scan.nextInt()",
"arraya[i][j]",
"arraya[i]",
"arraya",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(i=0;i<m;i++) {\n \tarrayb[i]=scan.nextInt();\n }",
"i=0;",
"i=0",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n \tarrayb[i]=scan.nextInt();\n }",
"{\n \tarrayb[i]=scan.nextInt();\n }",
"arrayb[i]=scan.nextInt()",
"arrayb[i]",
"arrayb",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(i=0;i<n;i++) {\n \tarrayc[i]=0;\n }",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tarrayc[i]=0;\n }",
"{\n \tarrayc[i]=0;\n }",
"arrayc[i]=0",
"arrayc[i]",
"arrayc",
"i",
"0",
"for(i=0;i<n;i++) {\n \tfor(j=0;j<m;j++) {\n \t\tarrayc[i]+=arraya[i][j]*arrayb[j];\n \t}\n }",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tfor(j=0;j<m;j++) {\n \t\tarrayc[i]+=arraya[i][j]*arrayb[j];\n \t}\n }",
"{\n \tfor(j=0;j<m;j++) {\n \t\tarrayc[i]+=arraya[i][j]*arrayb[j];\n \t}\n }",
"for(j=0;j<m;j++) {\n \t\tarrayc[i]+=arraya[i][j]*arrayb[j];\n \t}",
"j=0;",
"j=0",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n \t\tarrayc[i]+=arraya[i][j]*arrayb[j];\n \t}",
"{\n \t\tarrayc[i]+=arraya[i][j]*arrayb[j];\n \t}",
"arrayc[i]+=arraya[i][j]*arrayb[j]",
"arrayc[i]",
"arrayc",
"i",
"arraya[i][j]*arrayb[j]",
"arraya[i][j]",
"arraya[i]",
"arraya",
"i",
"j",
"arrayb[j]",
"arrayb",
"j",
"for(i=0;i<n;i++) {\n \tSystem.out.println(arrayc[i]);\n }",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tSystem.out.println(arrayc[i]);\n }",
"{\n \tSystem.out.println(arrayc[i]);\n }",
"System.out.println(arrayc[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"arrayc[i]",
"arrayc",
"i",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int n,m,i,j;\n n=scan.nextInt();\n m=scan.nextInt();\n int arraya[][]=new int[n][m],arrayb[]=new int[m],arrayc[]=new int[n];\n for(i=0;i<n;i++) {\n \tfor(j=0;j<m;j++) {\n \t\tarraya[i][j]=scan.nextInt();\n \t}\n }\n for(i=0;i<m;i++) {\n \tarrayb[i]=scan.nextInt();\n }\n for(i=0;i<n;i++) {\n \tarrayc[i]=0;\n }\n for(i=0;i<n;i++) {\n \tfor(j=0;j<m;j++) {\n \t\tarrayc[i]+=arraya[i][j]*arrayb[j];\n \t}\n }\n for(i=0;i<n;i++) {\n \tSystem.out.println(arrayc[i]);\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int n,m,i,j;\n n=scan.nextInt();\n m=scan.nextInt();\n int arraya[][]=new int[n][m],arrayb[]=new int[m],arrayc[]=new int[n];\n for(i=0;i<n;i++) {\n \tfor(j=0;j<m;j++) {\n \t\tarraya[i][j]=scan.nextInt();\n \t}\n }\n for(i=0;i<m;i++) {\n \tarrayb[i]=scan.nextInt();\n }\n for(i=0;i<n;i++) {\n \tarrayc[i]=0;\n }\n for(i=0;i<n;i++) {\n \tfor(j=0;j<m;j++) {\n \t\tarrayc[i]+=arraya[i][j]*arrayb[j];\n \t}\n }\n for(i=0;i<n;i++) {\n \tSystem.out.println(arrayc[i]);\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,m,i,j;
n=scan.nextInt();
m=scan.nextInt();
int arraya[][]=new int[n][m],arrayb[]=new int[m],arrayc[]=new int[n];
for(i=0;i<n;i++) {
for(j=0;j<m;j++) {
arraya[i][j]=scan.nextInt();
}
}
for(i=0;i<m;i++) {
arrayb[i]=scan.nextInt();
}
for(i=0;i<n;i++) {
arrayc[i]=0;
}
for(i=0;i<n;i++) {
for(j=0;j<m;j++) {
arrayc[i]+=arraya[i][j]*arrayb[j];
}
}
for(i=0;i<n;i++) {
System.out.println(arrayc[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,
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
],
[
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
],
[
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
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
60,
65
],
[
57,
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
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
79,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
88,
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
],
[
108,
111
],
[
111,
112
],
[
112,
113
],
[
8,
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
],
[
126,
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
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
145,
151
],
[
151,
152
],
[
151,
153
],
[
126,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
6,
160
],
[
160,
161
]
] | [
"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 String[] array = br.readLine().split(\" \");\n int n = Integer.parseInt(array[0]);\n int m = Integer.parseInt(array[1]);\n int[][] a = new int[n][m];\n int[] b = new int[m];\n for(int i=0;i<n;i++){\n array = br.readLine().split(\" \");\n for(int j=0;j<m;j++){\n \ta[i][j] = Integer.parseInt(array[j]);\n }\n }\n for(int i=0;i<m;i++){\n \tb[i] = Integer.parseInt(br.readLine());\n }\n for(int i=0;i<n;i++){\n \tint c=0;\n \tfor(int j=0;j<m;j++){\n \t\tc+=a[i][j]*b[j];\n \t}\n \tSystem.out.println(c);\n }\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 String[] array = br.readLine().split(\" \");\n int n = Integer.parseInt(array[0]);\n int m = Integer.parseInt(array[1]);\n int[][] a = new int[n][m];\n int[] b = new int[m];\n for(int i=0;i<n;i++){\n array = br.readLine().split(\" \");\n for(int j=0;j<m;j++){\n \ta[i][j] = Integer.parseInt(array[j]);\n }\n }\n for(int i=0;i<m;i++){\n \tb[i] = Integer.parseInt(br.readLine());\n }\n for(int i=0;i<n;i++){\n \tint c=0;\n \tfor(int j=0;j<m;j++){\n \t\tc+=a[i][j]*b[j];\n \t}\n \tSystem.out.println(c);\n }\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] array = br.readLine().split(\" \");\n int n = Integer.parseInt(array[0]);\n int m = Integer.parseInt(array[1]);\n int[][] a = new int[n][m];\n int[] b = new int[m];\n for(int i=0;i<n;i++){\n array = br.readLine().split(\" \");\n for(int j=0;j<m;j++){\n \ta[i][j] = Integer.parseInt(array[j]);\n }\n }\n for(int i=0;i<m;i++){\n \tb[i] = Integer.parseInt(br.readLine());\n }\n for(int i=0;i<n;i++){\n \tint c=0;\n \tfor(int j=0;j<m;j++){\n \t\tc+=a[i][j]*b[j];\n \t}\n \tSystem.out.println(c);\n }\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] array = br.readLine().split(\" \");\n int n = Integer.parseInt(array[0]);\n int m = Integer.parseInt(array[1]);\n int[][] a = new int[n][m];\n int[] b = new int[m];\n for(int i=0;i<n;i++){\n array = br.readLine().split(\" \");\n for(int j=0;j<m;j++){\n \ta[i][j] = Integer.parseInt(array[j]);\n }\n }\n for(int i=0;i<m;i++){\n \tb[i] = Integer.parseInt(br.readLine());\n }\n for(int i=0;i<n;i++){\n \tint c=0;\n \tfor(int j=0;j<m;j++){\n \t\tc+=a[i][j]*b[j];\n \t}\n \tSystem.out.println(c);\n }\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] array = br.readLine().split(\" \");",
"array",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int n = Integer.parseInt(array[0]);",
"n",
"Integer.parseInt(array[0])",
"Integer.parseInt",
"Integer",
"array[0]",
"array",
"0",
"int m = Integer.parseInt(array[1]);",
"m",
"Integer.parseInt(array[1])",
"Integer.parseInt",
"Integer",
"array[1]",
"array",
"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 array = br.readLine().split(\" \");\n for(int j=0;j<m;j++){\n \ta[i][j] = Integer.parseInt(array[j]);\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n array = br.readLine().split(\" \");\n for(int j=0;j<m;j++){\n \ta[i][j] = Integer.parseInt(array[j]);\n }\n }",
"{\n array = br.readLine().split(\" \");\n for(int j=0;j<m;j++){\n \ta[i][j] = Integer.parseInt(array[j]);\n }\n }",
"array = br.readLine().split(\" \")",
"array",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(int j=0;j<m;j++){\n \ta[i][j] = Integer.parseInt(array[j]);\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n \ta[i][j] = Integer.parseInt(array[j]);\n }",
"{\n \ta[i][j] = Integer.parseInt(array[j]);\n }",
"a[i][j] = Integer.parseInt(array[j])",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"Integer.parseInt(array[j])",
"Integer.parseInt",
"Integer",
"array[j]",
"array",
"j",
"for(int i=0;i<m;i++){\n \tb[i] = Integer.parseInt(br.readLine());\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n \tb[i] = Integer.parseInt(br.readLine());\n }",
"{\n \tb[i] = Integer.parseInt(br.readLine());\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 \tint c=0;\n \tfor(int j=0;j<m;j++){\n \t\tc+=a[i][j]*b[j];\n \t}\n \tSystem.out.println(c);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tint c=0;\n \tfor(int j=0;j<m;j++){\n \t\tc+=a[i][j]*b[j];\n \t}\n \tSystem.out.println(c);\n }",
"{\n \tint c=0;\n \tfor(int j=0;j<m;j++){\n \t\tc+=a[i][j]*b[j];\n \t}\n \tSystem.out.println(c);\n }",
"int c=0;",
"c",
"0",
"for(int j=0;j<m;j++){\n \t\tc+=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+=a[i][j]*b[j];\n \t}",
"{\n \t\tc+=a[i][j]*b[j];\n \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",
"String[] args",
"args"
] | import java.io.*;
class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] array = br.readLine().split(" ");
int n = Integer.parseInt(array[0]);
int m = Integer.parseInt(array[1]);
int[][] a = new int[n][m];
int[] b = new int[m];
for(int i=0;i<n;i++){
array = br.readLine().split(" ");
for(int j=0;j<m;j++){
a[i][j] = Integer.parseInt(array[j]);
}
}
for(int i=0;i<m;i++){
b[i] = Integer.parseInt(br.readLine());
}
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);
}
}
} |
[
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
0,
13,
17,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
0,
13,
17,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
0,
13,
17,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
0,
13,
17,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
0,
13,
17,
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
],
[
174,
11
],
[
174,
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
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
51,
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
],
[
82,
84
],
[
73,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
87,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
96,
97
],
[
96,
98
],
[
14,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
99,
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
],
[
132,
134
],
[
123,
135
],
[
136,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
140,
145
],
[
145,
146
],
[
145,
147
],
[
140,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
140,
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
],
[
136,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
165,
170
],
[
12,
171
],
[
171,
172
],
[
0,
173
],
[
173,
174
],
[
173,
175
]
] | [
"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 in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] matSize = in.readLine().split(\" \");\n\t\tint n = Integer.parseInt(matSize[0]);\n\t\tint m = Integer.parseInt(matSize[1]);\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vectorB = new int[m];\n\t\tfor (int i = 0; i < n; i += 1) {\n\t\t\tString[] input = in.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j += 1) {\n\t\t\t\tmatrix[i][j] = Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int s = 0; s < m; s += 1) {\n\t\t\tvectorB[s] = Integer.parseInt(in.readLine());\n\t\t}\n\t\tfor (int t = 0; t < n; t += 1) {\n\t\t\tint ans = 0;\n\t\t\tfor (int u = 0; u < m; u += 1) {\n\t\t\t\tans += matrix[t][u] * vectorB[u];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\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\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] matSize = in.readLine().split(\" \");\n\t\tint n = Integer.parseInt(matSize[0]);\n\t\tint m = Integer.parseInt(matSize[1]);\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vectorB = new int[m];\n\t\tfor (int i = 0; i < n; i += 1) {\n\t\t\tString[] input = in.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j += 1) {\n\t\t\t\tmatrix[i][j] = Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int s = 0; s < m; s += 1) {\n\t\t\tvectorB[s] = Integer.parseInt(in.readLine());\n\t\t}\n\t\tfor (int t = 0; t < n; t += 1) {\n\t\t\tint ans = 0;\n\t\t\tfor (int u = 0; u < m; u += 1) {\n\t\t\t\tans += matrix[t][u] * vectorB[u];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] matSize = in.readLine().split(\" \");\n\t\tint n = Integer.parseInt(matSize[0]);\n\t\tint m = Integer.parseInt(matSize[1]);\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vectorB = new int[m];\n\t\tfor (int i = 0; i < n; i += 1) {\n\t\t\tString[] input = in.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j += 1) {\n\t\t\t\tmatrix[i][j] = Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int s = 0; s < m; s += 1) {\n\t\t\tvectorB[s] = Integer.parseInt(in.readLine());\n\t\t}\n\t\tfor (int t = 0; t < n; t += 1) {\n\t\t\tint ans = 0;\n\t\t\tfor (int u = 0; u < m; u += 1) {\n\t\t\t\tans += matrix[t][u] * vectorB[u];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] matSize = in.readLine().split(\" \");\n\t\tint n = Integer.parseInt(matSize[0]);\n\t\tint m = Integer.parseInt(matSize[1]);\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vectorB = new int[m];\n\t\tfor (int i = 0; i < n; i += 1) {\n\t\t\tString[] input = in.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j += 1) {\n\t\t\t\tmatrix[i][j] = Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int s = 0; s < m; s += 1) {\n\t\t\tvectorB[s] = Integer.parseInt(in.readLine());\n\t\t}\n\t\tfor (int t = 0; t < n; t += 1) {\n\t\t\tint ans = 0;\n\t\t\tfor (int u = 0; u < m; u += 1) {\n\t\t\t\tans += matrix[t][u] * vectorB[u];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] matSize = in.readLine().split(\" \");",
"matSize",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"int n = Integer.parseInt(matSize[0]);",
"n",
"Integer.parseInt(matSize[0])",
"Integer.parseInt",
"Integer",
"matSize[0]",
"matSize",
"0",
"int m = Integer.parseInt(matSize[1]);",
"m",
"Integer.parseInt(matSize[1])",
"Integer.parseInt",
"Integer",
"matSize[1]",
"matSize",
"1",
"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 += 1) {\n\t\t\tString[] input = in.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j += 1) {\n\t\t\t\tmatrix[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 += 1",
"i += 1",
"i",
"1",
"{\n\t\t\tString[] input = in.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j += 1) {\n\t\t\t\tmatrix[i][j] = Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] input = in.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j += 1) {\n\t\t\t\tmatrix[i][j] = Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}",
"String[] input = in.readLine().split(\" \");",
"input",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"for (int j = 0; j < m; j += 1) {\n\t\t\t\tmatrix[i][j] = Integer.parseInt(input[j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j += 1",
"j += 1",
"j",
"1",
"{\n\t\t\t\tmatrix[i][j] = Integer.parseInt(input[j]);\n\t\t\t}",
"{\n\t\t\t\tmatrix[i][j] = Integer.parseInt(input[j]);\n\t\t\t}",
"matrix[i][j] = Integer.parseInt(input[j])",
"matrix[i][j]",
"matrix[i]",
"matrix",
"i",
"j",
"Integer.parseInt(input[j])",
"Integer.parseInt",
"Integer",
"input[j]",
"input",
"j",
"for (int s = 0; s < m; s += 1) {\n\t\t\tvectorB[s] = Integer.parseInt(in.readLine());\n\t\t}",
"int s = 0;",
"int s = 0;",
"s",
"0",
"s < m",
"s",
"m",
"s += 1",
"s += 1",
"s",
"1",
"{\n\t\t\tvectorB[s] = Integer.parseInt(in.readLine());\n\t\t}",
"{\n\t\t\tvectorB[s] = Integer.parseInt(in.readLine());\n\t\t}",
"vectorB[s] = Integer.parseInt(in.readLine())",
"vectorB[s]",
"vectorB",
"s",
"Integer.parseInt(in.readLine())",
"Integer.parseInt",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"for (int t = 0; t < n; t += 1) {\n\t\t\tint ans = 0;\n\t\t\tfor (int u = 0; u < m; u += 1) {\n\t\t\t\tans += matrix[t][u] * vectorB[u];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}",
"int t = 0;",
"int t = 0;",
"t",
"0",
"t < n",
"t",
"n",
"t += 1",
"t += 1",
"t",
"1",
"{\n\t\t\tint ans = 0;\n\t\t\tfor (int u = 0; u < m; u += 1) {\n\t\t\t\tans += matrix[t][u] * vectorB[u];\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 u = 0; u < m; u += 1) {\n\t\t\t\tans += matrix[t][u] * vectorB[u];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}",
"int ans = 0;",
"ans",
"0",
"for (int u = 0; u < m; u += 1) {\n\t\t\t\tans += matrix[t][u] * vectorB[u];\n\t\t\t}",
"int u = 0;",
"int u = 0;",
"u",
"0",
"u < m",
"u",
"m",
"u += 1",
"u += 1",
"u",
"1",
"{\n\t\t\t\tans += matrix[t][u] * vectorB[u];\n\t\t\t}",
"{\n\t\t\t\tans += matrix[t][u] * vectorB[u];\n\t\t\t}",
"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",
"public class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] matSize = in.readLine().split(\" \");\n\t\tint n = Integer.parseInt(matSize[0]);\n\t\tint m = Integer.parseInt(matSize[1]);\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vectorB = new int[m];\n\t\tfor (int i = 0; i < n; i += 1) {\n\t\t\tString[] input = in.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j += 1) {\n\t\t\t\tmatrix[i][j] = Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int s = 0; s < m; s += 1) {\n\t\t\tvectorB[s] = Integer.parseInt(in.readLine());\n\t\t}\n\t\tfor (int t = 0; t < n; t += 1) {\n\t\t\tint ans = 0;\n\t\t\tfor (int u = 0; u < m; u += 1) {\n\t\t\t\tans += matrix[t][u] * vectorB[u];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] matSize = in.readLine().split(\" \");\n\t\tint n = Integer.parseInt(matSize[0]);\n\t\tint m = Integer.parseInt(matSize[1]);\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vectorB = new int[m];\n\t\tfor (int i = 0; i < n; i += 1) {\n\t\t\tString[] input = in.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j += 1) {\n\t\t\t\tmatrix[i][j] = Integer.parseInt(input[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int s = 0; s < m; s += 1) {\n\t\t\tvectorB[s] = Integer.parseInt(in.readLine());\n\t\t}\n\t\tfor (int t = 0; t < n; t += 1) {\n\t\t\tint ans = 0;\n\t\t\tfor (int u = 0; u < m; u += 1) {\n\t\t\t\tans += matrix[t][u] * vectorB[u];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\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 in = new BufferedReader(new InputStreamReader(System.in));
String[] matSize = in.readLine().split(" ");
int n = Integer.parseInt(matSize[0]);
int m = Integer.parseInt(matSize[1]);
int[][] matrix = new int[n][m];
int[] vectorB = new int[m];
for (int i = 0; i < n; i += 1) {
String[] input = in.readLine().split(" ");
for (int j = 0; j < m; j += 1) {
matrix[i][j] = Integer.parseInt(input[j]);
}
}
for (int s = 0; s < m; s += 1) {
vectorB[s] = Integer.parseInt(in.readLine());
}
for (int t = 0; t < n; t += 1) {
int ans = 0;
for (int u = 0; u < m; u += 1) {
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,
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,
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
],
[
150,
5
],
[
150,
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
],
[
127,
129
],
[
126,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
130,
136
],
[
136,
137
],
[
136,
138
],
[
108,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
144,
145
],
[
144,
146
],
[
6,
147
],
[
147,
148
],
[
0,
149
],
[
149,
150
],
[
149,
151
]
] | [
"\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int n = sc.nextInt();\n\t\t int m = sc.nextInt();\n\t\t \n\t\t int A[][]= new int [n][m];\n\t\t int B[]= new int [m];\n\t\t int C[]= new int [n];\n\n\t\t\t for(int i =0;i<n;i++){\n\t\t\t\t for(int j =0;j<m;j++){\n\t\t\t\t int a = sc.nextInt();\n\t\t\t\t A[i][j]=a;\n\t\t\t\t }\n\t\t\t }\n\t\t\t\t for(int k =0;k<m;k++){\n\t\t\t\t\t int b = sc.nextInt();\n\t\t\t\t\t B[k]=b;\n\t\t\t\t\t }\n\t\t\t\t \n\t\t\tfor(int g=0;g<n;g++){\n\t\t\t for(int l=0;l<m;l++){\n\t\t\t\t C[g]=C[g]+A[g][l]*B[l];\n\t\t\t }\n\t\t\t System.out.println(C[g]);\n\t\t\t}\n\t\t\t\n\t\t \n\t\t//System.out.println(\"\");\n\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\t\t Scanner sc = new Scanner(System.in);\n\t\t int n = sc.nextInt();\n\t\t int m = sc.nextInt();\n\t\t \n\t\t int A[][]= new int [n][m];\n\t\t int B[]= new int [m];\n\t\t int C[]= new int [n];\n\n\t\t\t for(int i =0;i<n;i++){\n\t\t\t\t for(int j =0;j<m;j++){\n\t\t\t\t int a = sc.nextInt();\n\t\t\t\t A[i][j]=a;\n\t\t\t\t }\n\t\t\t }\n\t\t\t\t for(int k =0;k<m;k++){\n\t\t\t\t\t int b = sc.nextInt();\n\t\t\t\t\t B[k]=b;\n\t\t\t\t\t }\n\t\t\t\t \n\t\t\tfor(int g=0;g<n;g++){\n\t\t\t for(int l=0;l<m;l++){\n\t\t\t\t C[g]=C[g]+A[g][l]*B[l];\n\t\t\t }\n\t\t\t System.out.println(C[g]);\n\t\t\t}\n\t\t\t\n\t\t \n\t\t//System.out.println(\"\");\n\t}\n\t\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int n = sc.nextInt();\n\t\t int m = sc.nextInt();\n\t\t \n\t\t int A[][]= new int [n][m];\n\t\t int B[]= new int [m];\n\t\t int C[]= new int [n];\n\n\t\t\t for(int i =0;i<n;i++){\n\t\t\t\t for(int j =0;j<m;j++){\n\t\t\t\t int a = sc.nextInt();\n\t\t\t\t A[i][j]=a;\n\t\t\t\t }\n\t\t\t }\n\t\t\t\t for(int k =0;k<m;k++){\n\t\t\t\t\t int b = sc.nextInt();\n\t\t\t\t\t B[k]=b;\n\t\t\t\t\t }\n\t\t\t\t \n\t\t\tfor(int g=0;g<n;g++){\n\t\t\t for(int l=0;l<m;l++){\n\t\t\t\t C[g]=C[g]+A[g][l]*B[l];\n\t\t\t }\n\t\t\t System.out.println(C[g]);\n\t\t\t}\n\t\t\t\n\t\t \n\t\t//System.out.println(\"\");\n\t}",
"main",
"{\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int n = sc.nextInt();\n\t\t int m = sc.nextInt();\n\t\t \n\t\t int A[][]= new int [n][m];\n\t\t int B[]= new int [m];\n\t\t int C[]= new int [n];\n\n\t\t\t for(int i =0;i<n;i++){\n\t\t\t\t for(int j =0;j<m;j++){\n\t\t\t\t int a = sc.nextInt();\n\t\t\t\t A[i][j]=a;\n\t\t\t\t }\n\t\t\t }\n\t\t\t\t for(int k =0;k<m;k++){\n\t\t\t\t\t int b = sc.nextInt();\n\t\t\t\t\t B[k]=b;\n\t\t\t\t\t }\n\t\t\t\t \n\t\t\tfor(int g=0;g<n;g++){\n\t\t\t for(int l=0;l<m;l++){\n\t\t\t\t C[g]=C[g]+A[g][l]*B[l];\n\t\t\t }\n\t\t\t System.out.println(C[g]);\n\t\t\t}\n\t\t\t\n\t\t \n\t\t//System.out.println(\"\");\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\t\t for(int j =0;j<m;j++){\n\t\t\t\t int a = sc.nextInt();\n\t\t\t\t A[i][j]=a;\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\t for(int j =0;j<m;j++){\n\t\t\t\t int a = sc.nextInt();\n\t\t\t\t A[i][j]=a;\n\t\t\t\t }\n\t\t\t }",
"{\n\t\t\t\t for(int j =0;j<m;j++){\n\t\t\t\t int a = sc.nextInt();\n\t\t\t\t A[i][j]=a;\n\t\t\t\t }\n\t\t\t }",
"for(int j =0;j<m;j++){\n\t\t\t\t int a = sc.nextInt();\n\t\t\t\t A[i][j]=a;\n\t\t\t\t }",
"int j =0;",
"int j =0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\t int a = sc.nextInt();\n\t\t\t\t A[i][j]=a;\n\t\t\t\t }",
"{\n\t\t\t\t int a = sc.nextInt();\n\t\t\t\t A[i][j]=a;\n\t\t\t\t }",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"A[i][j]=a",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"a",
"for(int k =0;k<m;k++){\n\t\t\t\t\t int b = sc.nextInt();\n\t\t\t\t\t B[k]=b;\n\t\t\t\t\t }",
"int k =0;",
"int k =0;",
"k",
"0",
"k<m",
"k",
"m",
"k++",
"k++",
"k",
"{\n\t\t\t\t\t int b = sc.nextInt();\n\t\t\t\t\t B[k]=b;\n\t\t\t\t\t }",
"{\n\t\t\t\t\t int b = sc.nextInt();\n\t\t\t\t\t B[k]=b;\n\t\t\t\t\t }",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"B[k]=b",
"B[k]",
"B",
"k",
"b",
"for(int g=0;g<n;g++){\n\t\t\t for(int l=0;l<m;l++){\n\t\t\t\t C[g]=C[g]+A[g][l]*B[l];\n\t\t\t }\n\t\t\t System.out.println(C[g]);\n\t\t\t}",
"int g=0;",
"int g=0;",
"g",
"0",
"g<n",
"g",
"n",
"g++",
"g++",
"g",
"{\n\t\t\t for(int l=0;l<m;l++){\n\t\t\t\t C[g]=C[g]+A[g][l]*B[l];\n\t\t\t }\n\t\t\t System.out.println(C[g]);\n\t\t\t}",
"{\n\t\t\t for(int l=0;l<m;l++){\n\t\t\t\t C[g]=C[g]+A[g][l]*B[l];\n\t\t\t }\n\t\t\t System.out.println(C[g]);\n\t\t\t}",
"for(int l=0;l<m;l++){\n\t\t\t\t C[g]=C[g]+A[g][l]*B[l];\n\t\t\t }",
"int l=0;",
"int l=0;",
"l",
"0",
"l<m",
"l",
"m",
"l++",
"l++",
"l",
"{\n\t\t\t\t C[g]=C[g]+A[g][l]*B[l];\n\t\t\t }",
"{\n\t\t\t\t C[g]=C[g]+A[g][l]*B[l];\n\t\t\t }",
"C[g]=C[g]+A[g][l]*B[l]",
"C[g]",
"C",
"g",
"C[g]+A[g][l]*B[l]",
"C[g]",
"C",
"g",
"A[g][l]*B[l]",
"A[g][l]",
"A[g]",
"A",
"g",
"l",
"B[l]",
"B",
"l",
"System.out.println(C[g])",
"System.out.println",
"System.out",
"System",
"System.out",
"C[g]",
"C",
"g",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int n = sc.nextInt();\n\t\t int m = sc.nextInt();\n\t\t \n\t\t int A[][]= new int [n][m];\n\t\t int B[]= new int [m];\n\t\t int C[]= new int [n];\n\n\t\t\t for(int i =0;i<n;i++){\n\t\t\t\t for(int j =0;j<m;j++){\n\t\t\t\t int a = sc.nextInt();\n\t\t\t\t A[i][j]=a;\n\t\t\t\t }\n\t\t\t }\n\t\t\t\t for(int k =0;k<m;k++){\n\t\t\t\t\t int b = sc.nextInt();\n\t\t\t\t\t B[k]=b;\n\t\t\t\t\t }\n\t\t\t\t \n\t\t\tfor(int g=0;g<n;g++){\n\t\t\t for(int l=0;l<m;l++){\n\t\t\t\t C[g]=C[g]+A[g][l]*B[l];\n\t\t\t }\n\t\t\t System.out.println(C[g]);\n\t\t\t}\n\t\t\t\n\t\t \n\t\t//System.out.println(\"\");\n\t}\n\t\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t int n = sc.nextInt();\n\t\t int m = sc.nextInt();\n\t\t \n\t\t int A[][]= new int [n][m];\n\t\t int B[]= new int [m];\n\t\t int C[]= new int [n];\n\n\t\t\t for(int i =0;i<n;i++){\n\t\t\t\t for(int j =0;j<m;j++){\n\t\t\t\t int a = sc.nextInt();\n\t\t\t\t A[i][j]=a;\n\t\t\t\t }\n\t\t\t }\n\t\t\t\t for(int k =0;k<m;k++){\n\t\t\t\t\t int b = sc.nextInt();\n\t\t\t\t\t B[k]=b;\n\t\t\t\t\t }\n\t\t\t\t \n\t\t\tfor(int g=0;g<n;g++){\n\t\t\t for(int l=0;l<m;l++){\n\t\t\t\t C[g]=C[g]+A[g][l]*B[l];\n\t\t\t }\n\t\t\t System.out.println(C[g]);\n\t\t\t}\n\t\t\t\n\t\t \n\t\t//System.out.println(\"\");\n\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 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 a = sc.nextInt();
A[i][j]=a;
}
}
for(int k =0;k<m;k++){
int b = sc.nextInt();
B[k]=b;
}
for(int g=0;g<n;g++){
for(int l=0;l<m;l++){
C[g]=C[g]+A[g][l]*B[l];
}
System.out.println(C[g]);
}
//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,
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,
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,
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
],
[
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
],
[
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
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
58,
64
],
[
8,
65
],
[
65,
66
],
[
65,
67
],
[
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
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
8,
89
],
[
89,
90
],
[
90,
91
],
[
8,
92
],
[
92,
93
],
[
92,
94
],
[
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
],
[
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\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal int n = sc.nextInt();\n\t\tfinal int m = sc.nextInt();\n\n\t\tint[][] matrix = 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\tint a = sc.nextInt();\n\t\t\t\tmatrix[i][j] = a;\n\t\t\t}\n\t\t}\n\n\t\tint[] vector = new int[m];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tvector[i] = sc.nextInt();\n\t\t}\n\n\t\tsc.close();\n\n\t\tint[] calcdVector = 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\tcalcdVector[i] += matrix[i][j] * vector[j];\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(calcdVector[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\tfinal int n = sc.nextInt();\n\t\tfinal int m = sc.nextInt();\n\n\t\tint[][] matrix = 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\tint a = sc.nextInt();\n\t\t\t\tmatrix[i][j] = a;\n\t\t\t}\n\t\t}\n\n\t\tint[] vector = new int[m];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tvector[i] = sc.nextInt();\n\t\t}\n\n\t\tsc.close();\n\n\t\tint[] calcdVector = 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\tcalcdVector[i] += matrix[i][j] * vector[j];\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(calcdVector[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal int n = sc.nextInt();\n\t\tfinal int m = sc.nextInt();\n\n\t\tint[][] matrix = 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\tint a = sc.nextInt();\n\t\t\t\tmatrix[i][j] = a;\n\t\t\t}\n\t\t}\n\n\t\tint[] vector = new int[m];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tvector[i] = sc.nextInt();\n\t\t}\n\n\t\tsc.close();\n\n\t\tint[] calcdVector = 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\tcalcdVector[i] += matrix[i][j] * vector[j];\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(calcdVector[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal int n = sc.nextInt();\n\t\tfinal int m = sc.nextInt();\n\n\t\tint[][] matrix = 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\tint a = sc.nextInt();\n\t\t\t\tmatrix[i][j] = a;\n\t\t\t}\n\t\t}\n\n\t\tint[] vector = new int[m];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tvector[i] = sc.nextInt();\n\t\t}\n\n\t\tsc.close();\n\n\t\tint[] calcdVector = 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\tcalcdVector[i] += matrix[i][j] * vector[j];\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(calcdVector[i]);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"final int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"final int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] matrix = new int[n][m];",
"matrix",
"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\tint a = sc.nextInt();\n\t\t\t\tmatrix[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\tint a = sc.nextInt();\n\t\t\t\tmatrix[i][j] = a;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tmatrix[i][j] = a;\n\t\t\t}\n\t\t}",
"for (int j = 0; j < m; j++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tmatrix[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\tint a = sc.nextInt();\n\t\t\t\tmatrix[i][j] = a;\n\t\t\t}",
"{\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tmatrix[i][j] = a;\n\t\t\t}",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"matrix[i][j] = a",
"matrix[i][j]",
"matrix[i]",
"matrix",
"i",
"j",
"a",
"int[] vector = new int[m];",
"vector",
"new int[m]",
"m",
"for (int i = 0; i < m; i++) {\n\t\t\tvector[i] = sc.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tvector[i] = sc.nextInt();\n\t\t}",
"{\n\t\t\tvector[i] = sc.nextInt();\n\t\t}",
"vector[i] = sc.nextInt()",
"vector[i]",
"vector",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"int[] calcdVector = new int[n];",
"calcdVector",
"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\tcalcdVector[i] += matrix[i][j] * vector[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\tcalcdVector[i] += matrix[i][j] * vector[j];\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tcalcdVector[i] += matrix[i][j] * vector[j];\n\t\t\t}\n\t\t}",
"for (int j = 0; j < m; j++) {\n\t\t\t\tcalcdVector[i] += matrix[i][j] * vector[j];\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tcalcdVector[i] += matrix[i][j] * vector[j];\n\t\t\t}",
"{\n\t\t\t\tcalcdVector[i] += matrix[i][j] * vector[j];\n\t\t\t}",
"calcdVector[i] += matrix[i][j] * vector[j]",
"calcdVector[i]",
"calcdVector",
"i",
"matrix[i][j] * vector[j]",
"matrix[i][j]",
"matrix[i]",
"matrix",
"i",
"j",
"vector[j]",
"vector",
"j",
"for (int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(calcdVector[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(calcdVector[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(calcdVector[i]);\n\t\t}",
"System.out.println(calcdVector[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"calcdVector[i]",
"calcdVector",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal int n = sc.nextInt();\n\t\tfinal int m = sc.nextInt();\n\n\t\tint[][] matrix = 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\tint a = sc.nextInt();\n\t\t\t\tmatrix[i][j] = a;\n\t\t\t}\n\t\t}\n\n\t\tint[] vector = new int[m];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tvector[i] = sc.nextInt();\n\t\t}\n\n\t\tsc.close();\n\n\t\tint[] calcdVector = 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\tcalcdVector[i] += matrix[i][j] * vector[j];\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(calcdVector[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\tfinal int n = sc.nextInt();\n\t\tfinal int m = sc.nextInt();\n\n\t\tint[][] matrix = 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\tint a = sc.nextInt();\n\t\t\t\tmatrix[i][j] = a;\n\t\t\t}\n\t\t}\n\n\t\tint[] vector = new int[m];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tvector[i] = sc.nextInt();\n\t\t}\n\n\t\tsc.close();\n\n\t\tint[] calcdVector = 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\tcalcdVector[i] += matrix[i][j] * vector[j];\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(calcdVector[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);
final int n = sc.nextInt();
final int m = sc.nextInt();
int[][] matrix = new int[n][m];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
int a = sc.nextInt();
matrix[i][j] = a;
}
}
int[] vector = new int[m];
for (int i = 0; i < m; i++) {
vector[i] = sc.nextInt();
}
sc.close();
int[] calcdVector = new int[n];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
calcdVector[i] += matrix[i][j] * vector[j];
}
}
for (int i = 0; i < n; i++) {
System.out.println(calcdVector[i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
17,
41,
13,
20,
17,
41,
13,
41,
13,
4,
18,
13,
41,
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,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
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
]
] | [
"import java.util.*;\n public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n\n \tint[][] A=new int[100][100];\n \tint[] B=new int[100];\n int C;\n int n =scan.nextInt();\n int m = scan.nextInt();\n for (int s = 0;s<n;s++) {\n for(int t =0;t<m;t++){\n A[s][t]=scan.nextInt();\n }}\n \tfor (int s = 0;s<m;s++) {\n B[s]=scan.nextInt();\n }\n \n for(int s=0;s<n;s++){C=0;\n for(int t=0;t<m;t++){\n C += A[s][t]*B[t];\n }\n System.out.println(C);\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\n \tint[][] A=new int[100][100];\n \tint[] B=new int[100];\n int C;\n int n =scan.nextInt();\n int m = scan.nextInt();\n for (int s = 0;s<n;s++) {\n for(int t =0;t<m;t++){\n A[s][t]=scan.nextInt();\n }}\n \tfor (int s = 0;s<m;s++) {\n B[s]=scan.nextInt();\n }\n \n for(int s=0;s<n;s++){C=0;\n for(int t=0;t<m;t++){\n C += A[s][t]*B[t];\n }\n System.out.println(C);\n }\n}}",
"Main",
"public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n\n \tint[][] A=new int[100][100];\n \tint[] B=new int[100];\n int C;\n int n =scan.nextInt();\n int m = scan.nextInt();\n for (int s = 0;s<n;s++) {\n for(int t =0;t<m;t++){\n A[s][t]=scan.nextInt();\n }}\n \tfor (int s = 0;s<m;s++) {\n B[s]=scan.nextInt();\n }\n \n for(int s=0;s<n;s++){C=0;\n for(int t=0;t<m;t++){\n C += A[s][t]*B[t];\n }\n System.out.println(C);\n }\n}",
"main",
"{\n Scanner scan = new Scanner(System.in);\n\n \tint[][] A=new int[100][100];\n \tint[] B=new int[100];\n int C;\n int n =scan.nextInt();\n int m = scan.nextInt();\n for (int s = 0;s<n;s++) {\n for(int t =0;t<m;t++){\n A[s][t]=scan.nextInt();\n }}\n \tfor (int s = 0;s<m;s++) {\n B[s]=scan.nextInt();\n }\n \n for(int s=0;s<n;s++){C=0;\n for(int t=0;t<m;t++){\n C += A[s][t]*B[t];\n }\n System.out.println(C);\n }\n}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"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;",
"C",
"int n =scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int s = 0;s<n;s++) {\n for(int t =0;t<m;t++){\n A[s][t]=scan.nextInt();\n }}",
"int s = 0;",
"int s = 0;",
"s",
"0",
"s<n",
"s",
"n",
"s++",
"s++",
"s",
"{\n for(int t =0;t<m;t++){\n A[s][t]=scan.nextInt();\n }}",
"{\n for(int t =0;t<m;t++){\n A[s][t]=scan.nextInt();\n }}",
"for(int t =0;t<m;t++){\n A[s][t]=scan.nextInt();\n }",
"int t =0;",
"int t =0;",
"t",
"0",
"t<m",
"t",
"m",
"t++",
"t++",
"t",
"{\n A[s][t]=scan.nextInt();\n }",
"{\n A[s][t]=scan.nextInt();\n }",
"A[s][t]=scan.nextInt()",
"A[s][t]",
"A[s]",
"A",
"s",
"t",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int s = 0;s<m;s++) {\n B[s]=scan.nextInt();\n }",
"int s = 0;",
"int s = 0;",
"s",
"0",
"s<m",
"s",
"m",
"s++",
"s++",
"s",
"{\n B[s]=scan.nextInt();\n }",
"{\n B[s]=scan.nextInt();\n }",
"B[s]=scan.nextInt()",
"B[s]",
"B",
"s",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int s=0;s<n;s++){C=0;\n for(int t=0;t<m;t++){\n C += A[s][t]*B[t];\n }\n System.out.println(C);\n }",
"int s=0;",
"int s=0;",
"s",
"0",
"s<n",
"s",
"n",
"s++",
"s++",
"s",
"{C=0;\n for(int t=0;t<m;t++){\n C += A[s][t]*B[t];\n }\n System.out.println(C);\n }",
"{C=0;\n for(int t=0;t<m;t++){\n C += A[s][t]*B[t];\n }\n System.out.println(C);\n }",
"C=0",
"C",
"0",
"for(int t=0;t<m;t++){\n C += A[s][t]*B[t];\n }",
"int t=0;",
"int t=0;",
"t",
"0",
"t<m",
"t",
"m",
"t++",
"t++",
"t",
"{\n C += A[s][t]*B[t];\n }",
"{\n C += A[s][t]*B[t];\n }",
"C += A[s][t]*B[t]",
"C",
"A[s][t]*B[t]",
"A[s][t]",
"A[s]",
"A",
"s",
"t",
"B[t]",
"B",
"t",
"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 Scanner scan = new Scanner(System.in);\n\n \tint[][] A=new int[100][100];\n \tint[] B=new int[100];\n int C;\n int n =scan.nextInt();\n int m = scan.nextInt();\n for (int s = 0;s<n;s++) {\n for(int t =0;t<m;t++){\n A[s][t]=scan.nextInt();\n }}\n \tfor (int s = 0;s<m;s++) {\n B[s]=scan.nextInt();\n }\n \n for(int s=0;s<n;s++){C=0;\n for(int t=0;t<m;t++){\n C += A[s][t]*B[t];\n }\n System.out.println(C);\n }\n}}",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n\n \tint[][] A=new int[100][100];\n \tint[] B=new int[100];\n int C;\n int n =scan.nextInt();\n int m = scan.nextInt();\n for (int s = 0;s<n;s++) {\n for(int t =0;t<m;t++){\n A[s][t]=scan.nextInt();\n }}\n \tfor (int s = 0;s<m;s++) {\n B[s]=scan.nextInt();\n }\n \n for(int s=0;s<n;s++){C=0;\n for(int t=0;t<m;t++){\n C += A[s][t]*B[t];\n }\n System.out.println(C);\n }\n}}",
"Main"
] | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int[][] A=new int[100][100];
int[] B=new int[100];
int C;
int n =scan.nextInt();
int m = scan.nextInt();
for (int s = 0;s<n;s++) {
for(int t =0;t<m;t++){
A[s][t]=scan.nextInt();
}}
for (int s = 0;s<m;s++) {
B[s]=scan.nextInt();
}
for(int s=0;s<n;s++){C=0;
for(int t=0;t<m;t++){
C += A[s][t]*B[t];
}
System.out.println(C);
}
}} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
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,
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,
13,
13,
4,
18,
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
],
[
7,
12
],
[
12,
13
],
[
12,
14
],
[
7,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
32,
33
],
[
17,
34
],
[
34,
35
],
[
34,
36
],
[
17,
39
],
[
39,
40
],
[
39,
41
],
[
17,
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
],
[
75,
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
],
[
97,
100
],
[
100,
101
],
[
101,
102
],
[
17,
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
],
[
115,
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
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
134,
140
],
[
140,
141
],
[
140,
142
],
[
115,
143
],
[
143,
144
],
[
144,
145
],
[
143,
146
],
[
17,
147
],
[
147,
148
],
[
148,
149
],
[
15,
150
],
[
150,
151
]
] | [
"import java.io.PrintWriter;\nimport java.util.Scanner;\n\nclass Main{\n private static final Scanner sc = new Scanner(System.in);\n private static final PrintWriter out = new PrintWriter(System.out);\n public static void main(String[] Args){\n final int n = Integer.parseInt(sc.next());\n final int m = Integer.parseInt(sc.next());\n final int a[][] = new int[n][m];\n final int b[] = new int[m];\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 for(int i = 0; i<n; i++){\n int ans = 0;\n for(int j = 0; j<m; j++){\n ans += a[i][j]*b[j];\n }\n out.println(ans);\n }\n out.flush();\n }\n}",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n private static final Scanner sc = new Scanner(System.in);\n private static final PrintWriter out = new PrintWriter(System.out);\n public static void main(String[] Args){\n final int n = Integer.parseInt(sc.next());\n final int m = Integer.parseInt(sc.next());\n final int a[][] = new int[n][m];\n final int b[] = new int[m];\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 for(int i = 0; i<n; i++){\n int ans = 0;\n for(int j = 0; j<m; j++){\n ans += a[i][j]*b[j];\n }\n out.println(ans);\n }\n out.flush();\n }\n}",
"Main",
"private static final Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"private static final PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"public static void main(String[] Args){\n final int n = Integer.parseInt(sc.next());\n final int m = Integer.parseInt(sc.next());\n final int a[][] = new int[n][m];\n final int b[] = new int[m];\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 for(int i = 0; i<n; i++){\n int ans = 0;\n for(int j = 0; j<m; j++){\n ans += a[i][j]*b[j];\n }\n out.println(ans);\n }\n out.flush();\n }",
"main",
"{\n final int n = Integer.parseInt(sc.next());\n final int m = Integer.parseInt(sc.next());\n final int a[][] = new int[n][m];\n final int b[] = new int[m];\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 for(int i = 0; i<n; i++){\n int ans = 0;\n for(int j = 0; j<m; j++){\n ans += a[i][j]*b[j];\n }\n out.println(ans);\n }\n out.flush();\n }",
"final int n = Integer.parseInt(sc.next());",
"n",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"final int m = Integer.parseInt(sc.next());",
"m",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"final int a[][] = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"final 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());",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"b[i] = Integer.parseInt(sc.next());",
"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 ans = 0;\n for(int j = 0; j<m; j++){\n ans += a[i][j]*b[j];\n }\n 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 += a[i][j]*b[j];\n }\n out.println(ans);\n }",
"{\n int ans = 0;\n for(int j = 0; j<m; j++){\n ans += a[i][j]*b[j];\n }\n out.println(ans);\n }",
"int ans = 0;",
"ans",
"0",
"for(int j = 0; j<m; j++){\n ans += a[i][j]*b[j];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n ans += a[i][j]*b[j];\n }",
"{\n ans += a[i][j]*b[j];\n }",
"ans += a[i][j]*b[j]",
"ans",
"a[i][j]*b[j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"out.println(ans)",
"out.println",
"out",
"ans",
"out.flush()",
"out.flush",
"out",
"String[] Args",
"Args"
] | import java.io.PrintWriter;
import java.util.Scanner;
class Main{
private static final Scanner sc = new Scanner(System.in);
private static final PrintWriter out = new PrintWriter(System.out);
public static void main(String[] Args){
final int n = Integer.parseInt(sc.next());
final int m = Integer.parseInt(sc.next());
final int a[][] = new int[n][m];
final 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 ans = 0;
for(int j = 0; j<m; j++){
ans += a[i][j]*b[j];
}
out.println(ans);
}
out.flush();
}
} |
[
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\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint[][] A = new int[a][b];\n\t\tint[] B = new int[b];\n\t\t\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < b; i++){\n\t\t\tB[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < a; i++){\n\t\t\tint num = 0;\n\t\t\tfor(int j = 0; j < b; j++){\n\t\t\t\tnum += A[i][j] * B[j];\n\t\t\t}\n\t\t\tSystem.out.println(num);\n\t\t}\n\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\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint[][] A = new int[a][b];\n\t\tint[] B = new int[b];\n\t\t\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < b; i++){\n\t\t\tB[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < a; i++){\n\t\t\tint num = 0;\n\t\t\tfor(int j = 0; j < b; j++){\n\t\t\t\tnum += A[i][j] * B[j];\n\t\t\t}\n\t\t\tSystem.out.println(num);\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint[][] A = new int[a][b];\n\t\tint[] B = new int[b];\n\t\t\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < b; i++){\n\t\t\tB[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < a; i++){\n\t\t\tint num = 0;\n\t\t\tfor(int j = 0; j < b; j++){\n\t\t\t\tnum += A[i][j] * B[j];\n\t\t\t}\n\t\t\tSystem.out.println(num);\n\t\t}\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint[][] A = new int[a][b];\n\t\tint[] B = new int[b];\n\t\t\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < b; i++){\n\t\t\tB[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < a; i++){\n\t\t\tint num = 0;\n\t\t\tfor(int j = 0; j < b; j++){\n\t\t\t\tnum += A[i][j] * B[j];\n\t\t\t}\n\t\t\tSystem.out.println(num);\n\t\t}\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] A = new int[a][b];",
"A",
"new int[a][b]",
"a",
"b",
"int[] B = new int[b];",
"B",
"new int[b]",
"b",
"for (int i = 0; i < a; i++) {\n\t\t\tfor (int j = 0; j < b; 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 < a",
"i",
"a",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < b; 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 < b; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for (int j = 0; j < b; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < b",
"j",
"b",
"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 i = 0; i < b; i++){\n\t\t\tB[i] = sc.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < b",
"i",
"b",
"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 < a; i++){\n\t\t\tint num = 0;\n\t\t\tfor(int j = 0; j < b; j++){\n\t\t\t\tnum += A[i][j] * B[j];\n\t\t\t}\n\t\t\tSystem.out.println(num);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a",
"i",
"a",
"i++",
"i++",
"i",
"{\n\t\t\tint num = 0;\n\t\t\tfor(int j = 0; j < b; j++){\n\t\t\t\tnum += A[i][j] * B[j];\n\t\t\t}\n\t\t\tSystem.out.println(num);\n\t\t}",
"{\n\t\t\tint num = 0;\n\t\t\tfor(int j = 0; j < b; j++){\n\t\t\t\tnum += A[i][j] * B[j];\n\t\t\t}\n\t\t\tSystem.out.println(num);\n\t\t}",
"int num = 0;",
"num",
"0",
"for(int j = 0; j < b; j++){\n\t\t\t\tnum += A[i][j] * B[j];\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < b",
"j",
"b",
"j++",
"j++",
"j",
"{\n\t\t\t\tnum += A[i][j] * B[j];\n\t\t\t}",
"{\n\t\t\t\tnum += A[i][j] * B[j];\n\t\t\t}",
"num += A[i][j] * B[j]",
"num",
"A[i][j] * B[j]",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"B[j]",
"B",
"j",
"System.out.println(num)",
"System.out.println",
"System.out",
"System",
"System.out",
"num",
"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 a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint[][] A = new int[a][b];\n\t\tint[] B = new int[b];\n\t\t\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < b; i++){\n\t\t\tB[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < a; i++){\n\t\t\tint num = 0;\n\t\t\tfor(int j = 0; j < b; j++){\n\t\t\t\tnum += A[i][j] * B[j];\n\t\t\t}\n\t\t\tSystem.out.println(num);\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint[][] A = new int[a][b];\n\t\tint[] B = new int[b];\n\t\t\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < b; i++){\n\t\t\tB[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < a; i++){\n\t\t\tint num = 0;\n\t\t\tfor(int j = 0; j < b; j++){\n\t\t\t\tnum += A[i][j] * B[j];\n\t\t\t}\n\t\t\tSystem.out.println(num);\n\t\t}\n\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 a = sc.nextInt();
int b = sc.nextInt();
int[][] A = new int[a][b];
int[] B = new int[b];
for (int i = 0; i < a; i++) {
for (int j = 0; j < b; j++) {
A[i][j] = sc.nextInt();
}
}
for(int i = 0; i < b; i++){
B[i] = sc.nextInt();
}
for(int i = 0; i < a; i++){
int num = 0;
for(int j = 0; j < b; j++){
num += A[i][j] * B[j];
}
System.out.println(num);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
20,
41,
13,
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,
14,
2,
2,
13,
17,
2,
13,
17,
29,
14,
2,
2,
13,
17,
2,
13,
17,
29,
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,
41,
13,
4,
18,
13,
18,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
29,
0,
18,
18,
13,
13,
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,
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,
13,
2,
18,
13,
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
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
13,
18
],
[
9,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
23,
25
],
[
19,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
28,
33
],
[
19,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
19,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
47,
49
],
[
19,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
19,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
19,
68
],
[
68,
69
],
[
68,
70
],
[
19,
73
],
[
73,
74
],
[
73,
75
],
[
19,
77
],
[
77,
78
],
[
77,
79
],
[
19,
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
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
96,
101
],
[
93,
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
],
[
117,
120
],
[
120,
121
],
[
120,
122
],
[
114,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
128,
129
],
[
128,
130
],
[
123,
131
],
[
114,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
132,
138
],
[
19,
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
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
156,
157
],
[
157,
158
],
[
156,
159
],
[
159,
160
],
[
160,
161
],
[
19,
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
],
[
176,
178
],
[
175,
179
],
[
174,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
180,
185
],
[
185,
186
],
[
185,
187
],
[
180,
188
],
[
188,
189
],
[
189,
190
],
[
180,
191
],
[
192,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
193,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
202
],
[
197,
203
],
[
203,
204
],
[
203,
205
],
[
174,
206
],
[
206,
207
],
[
207,
208
],
[
206,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
209,
213
],
[
19,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
214,
219
],
[
6,
220
],
[
220,
221
]
] | [
"/* ITP1_6_D */\nimport java.io.*;\n\nclass Main\n{\n public static void main(String[] args)\n {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n String[] size = br.readLine().split(\" \");\n int n = Integer.parseInt(size[0]);\n int m = Integer.parseInt(size[1]);\n if(n < 1 || n > 100) return;\n if(m < 1 || m > 100) return;\n\n int[][] matrix1 = new int[n][m];\n int[] matrix2 = new int[m];\n int[] matrix3 = new int[n]; // answer\n\n // input matrix1\n for(int i = 0; i < n; i++){\n String[] row = br.readLine().split(\" \");\n\n for(int j = 0; j < m; j++){\n int value = Integer.parseInt(row[j]);\n if(value < 0 || value > 1000) return;\n matrix1[i][j] = value;\n }\n }\n // input matrix2\n for(int j = 0; j < m; j++){\n matrix2[j] = Integer.parseInt(br.readLine());\n }\n\n // calculation\n for(int i = 0; i < n; i++){\n matrix3[i] = 0;\n for(int j = 0; j < m; j++){\n matrix3[i] += matrix1[i][j] * matrix2[j];\n }\n sb.append(matrix3[i] + \"\\n\");\n }\n System.out.print(sb);\n\n }catch(Exception e){\n System.out.println(e);\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"class Main\n{\n public static void main(String[] args)\n {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n String[] size = br.readLine().split(\" \");\n int n = Integer.parseInt(size[0]);\n int m = Integer.parseInt(size[1]);\n if(n < 1 || n > 100) return;\n if(m < 1 || m > 100) return;\n\n int[][] matrix1 = new int[n][m];\n int[] matrix2 = new int[m];\n int[] matrix3 = new int[n]; // answer\n\n // input matrix1\n for(int i = 0; i < n; i++){\n String[] row = br.readLine().split(\" \");\n\n for(int j = 0; j < m; j++){\n int value = Integer.parseInt(row[j]);\n if(value < 0 || value > 1000) return;\n matrix1[i][j] = value;\n }\n }\n // input matrix2\n for(int j = 0; j < m; j++){\n matrix2[j] = Integer.parseInt(br.readLine());\n }\n\n // calculation\n for(int i = 0; i < n; i++){\n matrix3[i] = 0;\n for(int j = 0; j < m; j++){\n matrix3[i] += matrix1[i][j] * matrix2[j];\n }\n sb.append(matrix3[i] + \"\\n\");\n }\n System.out.print(sb);\n\n }catch(Exception e){\n System.out.println(e);\n }\n }\n}",
"Main",
"public static void main(String[] args)\n {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n String[] size = br.readLine().split(\" \");\n int n = Integer.parseInt(size[0]);\n int m = Integer.parseInt(size[1]);\n if(n < 1 || n > 100) return;\n if(m < 1 || m > 100) return;\n\n int[][] matrix1 = new int[n][m];\n int[] matrix2 = new int[m];\n int[] matrix3 = new int[n]; // answer\n\n // input matrix1\n for(int i = 0; i < n; i++){\n String[] row = br.readLine().split(\" \");\n\n for(int j = 0; j < m; j++){\n int value = Integer.parseInt(row[j]);\n if(value < 0 || value > 1000) return;\n matrix1[i][j] = value;\n }\n }\n // input matrix2\n for(int j = 0; j < m; j++){\n matrix2[j] = Integer.parseInt(br.readLine());\n }\n\n // calculation\n for(int i = 0; i < n; i++){\n matrix3[i] = 0;\n for(int j = 0; j < m; j++){\n matrix3[i] += matrix1[i][j] * matrix2[j];\n }\n sb.append(matrix3[i] + \"\\n\");\n }\n System.out.print(sb);\n\n }catch(Exception e){\n System.out.println(e);\n }\n }",
"main",
"{\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n String[] size = br.readLine().split(\" \");\n int n = Integer.parseInt(size[0]);\n int m = Integer.parseInt(size[1]);\n if(n < 1 || n > 100) return;\n if(m < 1 || m > 100) return;\n\n int[][] matrix1 = new int[n][m];\n int[] matrix2 = new int[m];\n int[] matrix3 = new int[n]; // answer\n\n // input matrix1\n for(int i = 0; i < n; i++){\n String[] row = br.readLine().split(\" \");\n\n for(int j = 0; j < m; j++){\n int value = Integer.parseInt(row[j]);\n if(value < 0 || value > 1000) return;\n matrix1[i][j] = value;\n }\n }\n // input matrix2\n for(int j = 0; j < m; j++){\n matrix2[j] = Integer.parseInt(br.readLine());\n }\n\n // calculation\n for(int i = 0; i < n; i++){\n matrix3[i] = 0;\n for(int j = 0; j < m; j++){\n matrix3[i] += matrix1[i][j] * matrix2[j];\n }\n sb.append(matrix3[i] + \"\\n\");\n }\n System.out.print(sb);\n\n }catch(Exception e){\n System.out.println(e);\n }\n }",
"try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n String[] size = br.readLine().split(\" \");\n int n = Integer.parseInt(size[0]);\n int m = Integer.parseInt(size[1]);\n if(n < 1 || n > 100) return;\n if(m < 1 || m > 100) return;\n\n int[][] matrix1 = new int[n][m];\n int[] matrix2 = new int[m];\n int[] matrix3 = new int[n]; // answer\n\n // input matrix1\n for(int i = 0; i < n; i++){\n String[] row = br.readLine().split(\" \");\n\n for(int j = 0; j < m; j++){\n int value = Integer.parseInt(row[j]);\n if(value < 0 || value > 1000) return;\n matrix1[i][j] = value;\n }\n }\n // input matrix2\n for(int j = 0; j < m; j++){\n matrix2[j] = Integer.parseInt(br.readLine());\n }\n\n // calculation\n for(int i = 0; i < n; i++){\n matrix3[i] = 0;\n for(int j = 0; j < m; j++){\n matrix3[i] += matrix1[i][j] * matrix2[j];\n }\n sb.append(matrix3[i] + \"\\n\");\n }\n System.out.print(sb);\n\n }catch(Exception e){\n System.out.println(e);\n }",
"catch(Exception e){\n System.out.println(e);\n }",
"Exception e",
"{\n System.out.println(e);\n }",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n String[] size = br.readLine().split(\" \");\n int n = Integer.parseInt(size[0]);\n int m = Integer.parseInt(size[1]);\n if(n < 1 || n > 100) return;\n if(m < 1 || m > 100) return;\n\n int[][] matrix1 = new int[n][m];\n int[] matrix2 = new int[m];\n int[] matrix3 = new int[n]; // answer\n\n // input matrix1\n for(int i = 0; i < n; i++){\n String[] row = br.readLine().split(\" \");\n\n for(int j = 0; j < m; j++){\n int value = Integer.parseInt(row[j]);\n if(value < 0 || value > 1000) return;\n matrix1[i][j] = value;\n }\n }\n // input matrix2\n for(int j = 0; j < m; j++){\n matrix2[j] = Integer.parseInt(br.readLine());\n }\n\n // calculation\n for(int i = 0; i < n; i++){\n matrix3[i] = 0;\n for(int j = 0; j < m; j++){\n matrix3[i] += matrix1[i][j] * matrix2[j];\n }\n sb.append(matrix3[i] + \"\\n\");\n }\n System.out.print(sb);\n\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"String[] size = br.readLine().split(\" \");",
"size",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int n = Integer.parseInt(size[0]);",
"n",
"Integer.parseInt(size[0])",
"Integer.parseInt",
"Integer",
"size[0]",
"size",
"0",
"int m = Integer.parseInt(size[1]);",
"m",
"Integer.parseInt(size[1])",
"Integer.parseInt",
"Integer",
"size[1]",
"size",
"1",
"if(n < 1 || n > 100) return;",
"n < 1 || n > 100",
"n < 1",
"n",
"1",
"n > 100",
"n",
"100",
"return;",
"if(m < 1 || m > 100) return;",
"m < 1 || m > 100",
"m < 1",
"m",
"1",
"m > 100",
"m",
"100",
"return;",
"int[][] matrix1 = new int[n][m];",
"matrix1",
"new int[n][m]",
"n",
"m",
"int[] matrix2 = new int[m];",
"matrix2",
"new int[m]",
"m",
"int[] matrix3 = new int[n];",
"matrix3",
"new int[n]",
"n",
"for(int i = 0; i < n; i++){\n String[] row = br.readLine().split(\" \");\n\n for(int j = 0; j < m; j++){\n int value = Integer.parseInt(row[j]);\n if(value < 0 || value > 1000) return;\n matrix1[i][j] = value;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String[] row = br.readLine().split(\" \");\n\n for(int j = 0; j < m; j++){\n int value = Integer.parseInt(row[j]);\n if(value < 0 || value > 1000) return;\n matrix1[i][j] = value;\n }\n }",
"{\n String[] row = br.readLine().split(\" \");\n\n for(int j = 0; j < m; j++){\n int value = Integer.parseInt(row[j]);\n if(value < 0 || value > 1000) return;\n matrix1[i][j] = value;\n }\n }",
"String[] row = br.readLine().split(\" \");",
"row",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(int j = 0; j < m; j++){\n int value = Integer.parseInt(row[j]);\n if(value < 0 || value > 1000) return;\n matrix1[i][j] = value;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n int value = Integer.parseInt(row[j]);\n if(value < 0 || value > 1000) return;\n matrix1[i][j] = value;\n }",
"{\n int value = Integer.parseInt(row[j]);\n if(value < 0 || value > 1000) return;\n matrix1[i][j] = value;\n }",
"int value = Integer.parseInt(row[j]);",
"value",
"Integer.parseInt(row[j])",
"Integer.parseInt",
"Integer",
"row[j]",
"row",
"j",
"if(value < 0 || value > 1000) return;",
"value < 0 || value > 1000",
"value < 0",
"value",
"0",
"value > 1000",
"value",
"1000",
"return;",
"matrix1[i][j] = value",
"matrix1[i][j]",
"matrix1[i]",
"matrix1",
"i",
"j",
"value",
"for(int j = 0; j < m; j++){\n matrix2[j] = Integer.parseInt(br.readLine());\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n matrix2[j] = Integer.parseInt(br.readLine());\n }",
"{\n matrix2[j] = Integer.parseInt(br.readLine());\n }",
"matrix2[j] = Integer.parseInt(br.readLine())",
"matrix2[j]",
"matrix2",
"j",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int i = 0; i < n; i++){\n matrix3[i] = 0;\n for(int j = 0; j < m; j++){\n matrix3[i] += matrix1[i][j] * matrix2[j];\n }\n sb.append(matrix3[i] + \"\\n\");\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n matrix3[i] = 0;\n for(int j = 0; j < m; j++){\n matrix3[i] += matrix1[i][j] * matrix2[j];\n }\n sb.append(matrix3[i] + \"\\n\");\n }",
"{\n matrix3[i] = 0;\n for(int j = 0; j < m; j++){\n matrix3[i] += matrix1[i][j] * matrix2[j];\n }\n sb.append(matrix3[i] + \"\\n\");\n }",
"matrix3[i] = 0",
"matrix3[i]",
"matrix3",
"i",
"0",
"for(int j = 0; j < m; j++){\n matrix3[i] += matrix1[i][j] * matrix2[j];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n matrix3[i] += matrix1[i][j] * matrix2[j];\n }",
"{\n matrix3[i] += matrix1[i][j] * matrix2[j];\n }",
"matrix3[i] += matrix1[i][j] * matrix2[j]",
"matrix3[i]",
"matrix3",
"i",
"matrix1[i][j] * matrix2[j]",
"matrix1[i][j]",
"matrix1[i]",
"matrix1",
"i",
"j",
"matrix2[j]",
"matrix2",
"j",
"sb.append(matrix3[i] + \"\\n\")",
"sb.append",
"sb",
"matrix3[i] + \"\\n\"",
"matrix3[i]",
"matrix3",
"i",
"\"\\n\"",
"System.out.print(sb)",
"System.out.print",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args"
] | /* ITP1_6_D */
import java.io.*;
class Main
{
public static void main(String[] args)
{
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
String[] size = br.readLine().split(" ");
int n = Integer.parseInt(size[0]);
int m = Integer.parseInt(size[1]);
if(n < 1 || n > 100) return;
if(m < 1 || m > 100) return;
int[][] matrix1 = new int[n][m];
int[] matrix2 = new int[m];
int[] matrix3 = new int[n]; // answer
// input matrix1
for(int i = 0; i < n; i++){
String[] row = br.readLine().split(" ");
for(int j = 0; j < m; j++){
int value = Integer.parseInt(row[j]);
if(value < 0 || value > 1000) return;
matrix1[i][j] = value;
}
}
// input matrix2
for(int j = 0; j < m; j++){
matrix2[j] = Integer.parseInt(br.readLine());
}
// calculation
for(int i = 0; i < n; i++){
matrix3[i] = 0;
for(int j = 0; j < m; j++){
matrix3[i] += matrix1[i][j] * matrix2[j];
}
sb.append(matrix3[i] + "\n");
}
System.out.print(sb);
}catch(Exception e){
System.out.println(e);
}
}
} |
[
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,
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,
4,
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,
18,
13,
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,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
29,
13,
23,
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
],
[
43,
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
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
8,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
91,
93
],
[
91,
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
],
[
6,
116
],
[
116,
117
],
[
4,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
124,
125
],
[
124,
126
],
[
120,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
134,
136
],
[
127,
137
],
[
137,
138
],
[
138,
139
],
[
127,
140
],
[
141,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
142,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
142,
154
],
[
154,
155
],
[
155,
156
],
[
142,
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
],
[
120,
172
],
[
172,
173
],
[
118,
174
],
[
174,
175
],
[
118,
176
],
[
176,
177
]
] | [
"import java.util.Scanner;\n\nclass 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 \n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n A[i][j] = sc.nextInt();\n }\n sc.nextLine();\n }\n \n for(int i=0;i<m;i++){\n b[i] = sc.nextInt();\n }\n \n int c[] = productVector(A,b);\n \n for(int i=0;i<n;i++){\n System.out.println(c[i]);\n }\n \n \n }\n static int[] productVector(int a[][], int b[]){\n int c[] = new int[a.length];\n for(int i=0;i<a.length;i++){\n for(int j=0;j<a[0].length;j++){\n c[i] += (a[i][j]*b[j]);\n }\n }\n return c;\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 \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 \n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n A[i][j] = sc.nextInt();\n }\n sc.nextLine();\n }\n \n for(int i=0;i<m;i++){\n b[i] = sc.nextInt();\n }\n \n int c[] = productVector(A,b);\n \n for(int i=0;i<n;i++){\n System.out.println(c[i]);\n }\n \n \n }\n static int[] productVector(int a[][], int b[]){\n int c[] = new int[a.length];\n for(int i=0;i<a.length;i++){\n for(int j=0;j<a[0].length;j++){\n c[i] += (a[i][j]*b[j]);\n }\n }\n return c;\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 \n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n A[i][j] = sc.nextInt();\n }\n sc.nextLine();\n }\n \n for(int i=0;i<m;i++){\n b[i] = sc.nextInt();\n }\n \n int c[] = productVector(A,b);\n \n for(int i=0;i<n;i++){\n System.out.println(c[i]);\n }\n \n \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 \n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n A[i][j] = sc.nextInt();\n }\n sc.nextLine();\n }\n \n for(int i=0;i<m;i++){\n b[i] = sc.nextInt();\n }\n \n int c[] = productVector(A,b);\n \n for(int i=0;i<n;i++){\n System.out.println(c[i]);\n }\n \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",
"for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n A[i][j] = sc.nextInt();\n }\n sc.nextLine();\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 sc.nextLine();\n }",
"{\n for(int j=0;j<m;j++){\n A[i][j] = sc.nextInt();\n }\n sc.nextLine();\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",
"sc.nextLine()",
"sc.nextLine",
"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",
"int c[] = productVector(A,b);",
"c",
"productVector(A,b)",
"productVector",
"A",
"b",
"for(int i=0;i<n;i++){\n System.out.println(c[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"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",
"static int[] productVector(int a[][], int b[]){\n int c[] = new int[a.length];\n for(int i=0;i<a.length;i++){\n for(int j=0;j<a[0].length;j++){\n c[i] += (a[i][j]*b[j]);\n }\n }\n return c;\n }",
"productVector",
"{\n int c[] = new int[a.length];\n for(int i=0;i<a.length;i++){\n for(int j=0;j<a[0].length;j++){\n c[i] += (a[i][j]*b[j]);\n }\n }\n return c;\n }",
"int c[] = new int[a.length];",
"c",
"new int[a.length]",
"a.length",
"a",
"a.length",
"for(int i=0;i<a.length;i++){\n for(int j=0;j<a[0].length;j++){\n c[i] += (a[i][j]*b[j]);\n }\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 c[i] += (a[i][j]*b[j]);\n }\n }",
"{\n for(int j=0;j<a[0].length;j++){\n c[i] += (a[i][j]*b[j]);\n }\n }",
"for(int j=0;j<a[0].length;j++){\n c[i] += (a[i][j]*b[j]);\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 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",
"return c;",
"c",
"int a[][]",
"a",
"int b[]",
"b"
] | 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 j=0;j<m;j++){
A[i][j] = sc.nextInt();
}
sc.nextLine();
}
for(int i=0;i<m;i++){
b[i] = sc.nextInt();
}
int c[] = productVector(A,b);
for(int i=0;i<n;i++){
System.out.println(c[i]);
}
}
static int[] productVector(int a[][], int b[]){
int c[] = new int[a.length];
for(int i=0;i<a.length;i++){
for(int j=0;j<a[0].length;j++){
c[i] += (a[i][j]*b[j]);
}
}
return c;
}
}
|
[
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,
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,
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,
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
],
[
151,
8
],
[
151,
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
],
[
38,
41
],
[
38,
42
],
[
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
],
[
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
],
[
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
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
96,
97
],
[
11,
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
],
[
11,
145
],
[
145,
146
],
[
146,
147
],
[
9,
148
],
[
148,
149
],
[
0,
150
],
[
150,
151
],
[
150,
152
]
] | [
"import java.util.Arrays;\nimport java.util.Scanner;\n\n\n\npublic class Main{\n\n\n\tpublic static void main(String[] args){\n\n\t\tScanner scan=new Scanner(System.in);\n\n\t\tint n=scan.nextInt();\n\t\tint m=scan.nextInt();\n\n\t\tint[][] matrix_nm=new int[n][m];\n\t\tint[] matrix_m1=new int[m];\n\t\tint[] matrix_n1=new int[n];\n\t\tArrays.fill(matrix_n1, 0);\n\n\t\tfor(int i=0;i<n;i++){\n\t\t for(int j=0;j<m;j++){\n\t\t\tmatrix_nm[i][j]=scan.nextInt();\n\t\t }\n\t\t}\n\n\t\tfor(int j=0;j<m;j++){\n\t\t\tmatrix_m1[j]=scan.nextInt();\n\t\t}\n\n\t\tfor(int j=0;j<n;j++){\n\t\t for(int i=0;i<m;i++){\n\t\t\tmatrix_n1[j]+=matrix_nm[j][i]*matrix_m1[i];\n\t\t }System.out.println(matrix_n1[j]);\n\t\t}\n\n\t\tscan.close();\n\t}\n\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n\n\tpublic static void main(String[] args){\n\n\t\tScanner scan=new Scanner(System.in);\n\n\t\tint n=scan.nextInt();\n\t\tint m=scan.nextInt();\n\n\t\tint[][] matrix_nm=new int[n][m];\n\t\tint[] matrix_m1=new int[m];\n\t\tint[] matrix_n1=new int[n];\n\t\tArrays.fill(matrix_n1, 0);\n\n\t\tfor(int i=0;i<n;i++){\n\t\t for(int j=0;j<m;j++){\n\t\t\tmatrix_nm[i][j]=scan.nextInt();\n\t\t }\n\t\t}\n\n\t\tfor(int j=0;j<m;j++){\n\t\t\tmatrix_m1[j]=scan.nextInt();\n\t\t}\n\n\t\tfor(int j=0;j<n;j++){\n\t\t for(int i=0;i<m;i++){\n\t\t\tmatrix_n1[j]+=matrix_nm[j][i]*matrix_m1[i];\n\t\t }System.out.println(matrix_n1[j]);\n\t\t}\n\n\t\tscan.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args){\n\n\t\tScanner scan=new Scanner(System.in);\n\n\t\tint n=scan.nextInt();\n\t\tint m=scan.nextInt();\n\n\t\tint[][] matrix_nm=new int[n][m];\n\t\tint[] matrix_m1=new int[m];\n\t\tint[] matrix_n1=new int[n];\n\t\tArrays.fill(matrix_n1, 0);\n\n\t\tfor(int i=0;i<n;i++){\n\t\t for(int j=0;j<m;j++){\n\t\t\tmatrix_nm[i][j]=scan.nextInt();\n\t\t }\n\t\t}\n\n\t\tfor(int j=0;j<m;j++){\n\t\t\tmatrix_m1[j]=scan.nextInt();\n\t\t}\n\n\t\tfor(int j=0;j<n;j++){\n\t\t for(int i=0;i<m;i++){\n\t\t\tmatrix_n1[j]+=matrix_nm[j][i]*matrix_m1[i];\n\t\t }System.out.println(matrix_n1[j]);\n\t\t}\n\n\t\tscan.close();\n\t}",
"main",
"{\n\n\t\tScanner scan=new Scanner(System.in);\n\n\t\tint n=scan.nextInt();\n\t\tint m=scan.nextInt();\n\n\t\tint[][] matrix_nm=new int[n][m];\n\t\tint[] matrix_m1=new int[m];\n\t\tint[] matrix_n1=new int[n];\n\t\tArrays.fill(matrix_n1, 0);\n\n\t\tfor(int i=0;i<n;i++){\n\t\t for(int j=0;j<m;j++){\n\t\t\tmatrix_nm[i][j]=scan.nextInt();\n\t\t }\n\t\t}\n\n\t\tfor(int j=0;j<m;j++){\n\t\t\tmatrix_m1[j]=scan.nextInt();\n\t\t}\n\n\t\tfor(int j=0;j<n;j++){\n\t\t for(int i=0;i<m;i++){\n\t\t\tmatrix_n1[j]+=matrix_nm[j][i]*matrix_m1[i];\n\t\t }System.out.println(matrix_n1[j]);\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[][] matrix_nm=new int[n][m];",
"matrix_nm",
"new int[n][m]",
"n",
"m",
"int[] matrix_m1=new int[m];",
"matrix_m1",
"new int[m]",
"m",
"int[] matrix_n1=new int[n];",
"matrix_n1",
"new int[n]",
"n",
"Arrays.fill(matrix_n1, 0)",
"Arrays.fill",
"Arrays",
"matrix_n1",
"0",
"for(int i=0;i<n;i++){\n\t\t for(int j=0;j<m;j++){\n\t\t\tmatrix_nm[i][j]=scan.nextInt();\n\t\t }\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t for(int j=0;j<m;j++){\n\t\t\tmatrix_nm[i][j]=scan.nextInt();\n\t\t }\n\t\t}",
"{\n\t\t for(int j=0;j<m;j++){\n\t\t\tmatrix_nm[i][j]=scan.nextInt();\n\t\t }\n\t\t}",
"for(int j=0;j<m;j++){\n\t\t\tmatrix_nm[i][j]=scan.nextInt();\n\t\t }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\tmatrix_nm[i][j]=scan.nextInt();\n\t\t }",
"{\n\t\t\tmatrix_nm[i][j]=scan.nextInt();\n\t\t }",
"matrix_nm[i][j]=scan.nextInt()",
"matrix_nm[i][j]",
"matrix_nm[i]",
"matrix_nm",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int j=0;j<m;j++){\n\t\t\tmatrix_m1[j]=scan.nextInt();\n\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\tmatrix_m1[j]=scan.nextInt();\n\t\t}",
"{\n\t\t\tmatrix_m1[j]=scan.nextInt();\n\t\t}",
"matrix_m1[j]=scan.nextInt()",
"matrix_m1[j]",
"matrix_m1",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int j=0;j<n;j++){\n\t\t for(int i=0;i<m;i++){\n\t\t\tmatrix_n1[j]+=matrix_nm[j][i]*matrix_m1[i];\n\t\t }System.out.println(matrix_n1[j]);\n\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<n",
"j",
"n",
"j++",
"j++",
"j",
"{\n\t\t for(int i=0;i<m;i++){\n\t\t\tmatrix_n1[j]+=matrix_nm[j][i]*matrix_m1[i];\n\t\t }System.out.println(matrix_n1[j]);\n\t\t}",
"{\n\t\t for(int i=0;i<m;i++){\n\t\t\tmatrix_n1[j]+=matrix_nm[j][i]*matrix_m1[i];\n\t\t }System.out.println(matrix_n1[j]);\n\t\t}",
"for(int i=0;i<m;i++){\n\t\t\tmatrix_n1[j]+=matrix_nm[j][i]*matrix_m1[i];\n\t\t }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tmatrix_n1[j]+=matrix_nm[j][i]*matrix_m1[i];\n\t\t }",
"{\n\t\t\tmatrix_n1[j]+=matrix_nm[j][i]*matrix_m1[i];\n\t\t }",
"matrix_n1[j]+=matrix_nm[j][i]*matrix_m1[i]",
"matrix_n1[j]",
"matrix_n1",
"j",
"matrix_nm[j][i]*matrix_m1[i]",
"matrix_nm[j][i]",
"matrix_nm[j]",
"matrix_nm",
"j",
"i",
"matrix_m1[i]",
"matrix_m1",
"i",
"System.out.println(matrix_n1[j])",
"System.out.println",
"System.out",
"System",
"System.out",
"matrix_n1[j]",
"matrix_n1",
"j",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main{\n\n\n\tpublic static void main(String[] args){\n\n\t\tScanner scan=new Scanner(System.in);\n\n\t\tint n=scan.nextInt();\n\t\tint m=scan.nextInt();\n\n\t\tint[][] matrix_nm=new int[n][m];\n\t\tint[] matrix_m1=new int[m];\n\t\tint[] matrix_n1=new int[n];\n\t\tArrays.fill(matrix_n1, 0);\n\n\t\tfor(int i=0;i<n;i++){\n\t\t for(int j=0;j<m;j++){\n\t\t\tmatrix_nm[i][j]=scan.nextInt();\n\t\t }\n\t\t}\n\n\t\tfor(int j=0;j<m;j++){\n\t\t\tmatrix_m1[j]=scan.nextInt();\n\t\t}\n\n\t\tfor(int j=0;j<n;j++){\n\t\t for(int i=0;i<m;i++){\n\t\t\tmatrix_n1[j]+=matrix_nm[j][i]*matrix_m1[i];\n\t\t }System.out.println(matrix_n1[j]);\n\t\t}\n\n\t\tscan.close();\n\t}\n\n}",
"public class Main{\n\n\n\tpublic static void main(String[] args){\n\n\t\tScanner scan=new Scanner(System.in);\n\n\t\tint n=scan.nextInt();\n\t\tint m=scan.nextInt();\n\n\t\tint[][] matrix_nm=new int[n][m];\n\t\tint[] matrix_m1=new int[m];\n\t\tint[] matrix_n1=new int[n];\n\t\tArrays.fill(matrix_n1, 0);\n\n\t\tfor(int i=0;i<n;i++){\n\t\t for(int j=0;j<m;j++){\n\t\t\tmatrix_nm[i][j]=scan.nextInt();\n\t\t }\n\t\t}\n\n\t\tfor(int j=0;j<m;j++){\n\t\t\tmatrix_m1[j]=scan.nextInt();\n\t\t}\n\n\t\tfor(int j=0;j<n;j++){\n\t\t for(int i=0;i<m;i++){\n\t\t\tmatrix_n1[j]+=matrix_nm[j][i]*matrix_m1[i];\n\t\t }System.out.println(matrix_n1[j]);\n\t\t}\n\n\t\tscan.close();\n\t}\n\n}",
"Main"
] | import java.util.Arrays;
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[][] matrix_nm=new int[n][m];
int[] matrix_m1=new int[m];
int[] matrix_n1=new int[n];
Arrays.fill(matrix_n1, 0);
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
matrix_nm[i][j]=scan.nextInt();
}
}
for(int j=0;j<m;j++){
matrix_m1[j]=scan.nextInt();
}
for(int j=0;j<n;j++){
for(int i=0;i<m;i++){
matrix_n1[j]+=matrix_nm[j][i]*matrix_m1[i];
}System.out.println(matrix_n1[j]);
}
scan.close();
}
} |
[
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,
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,
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,
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,
0,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
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
],
[
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
],
[
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
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
60,
65
],
[
57,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
78,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
87,
88
],
[
87,
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
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
110,
111
],
[
111,
112
],
[
8,
113
],
[
113,
114
],
[
113,
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
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
137,
138
],
[
137,
139
],
[
132,
140
],
[
140,
141
],
[
141,
142
],
[
132,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
146,
152
],
[
152,
153
],
[
152,
154
],
[
128,
155
],
[
155,
156
],
[
156,
157
],
[
155,
158
],
[
158,
159
],
[
158,
160
],
[
8,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
161,
166
],
[
6,
167
],
[
167,
168
]
] | [
"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 String[] nm=br.readLine().split(\" \");\n int n=Integer.parseInt(nm[0]);\n int m=Integer.parseInt(nm[1]);\n int[][] a=new int[n][m];\n int[] b=new int[m];\n for(int i=0;i<n;i++){\n \tString[] aa=br.readLine().split(\" \");\n for(int j=0;j<m;j++) a[i][j]=Integer.parseInt(aa[j]);\n }\n for(int i=0;i<m;i++){\n \tb[i]=Integer.parseInt(br.readLine());\n }\n StringBuilder sb=new StringBuilder();\n for(int i=0;i<n;i++){\n \tint c=0;\n \tfor(int j=0;j<m;j++) c+=a[i][j]*b[j];\n \tsb.append(c+\"\\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 String[] nm=br.readLine().split(\" \");\n int n=Integer.parseInt(nm[0]);\n int m=Integer.parseInt(nm[1]);\n int[][] a=new int[n][m];\n int[] b=new int[m];\n for(int i=0;i<n;i++){\n \tString[] aa=br.readLine().split(\" \");\n for(int j=0;j<m;j++) a[i][j]=Integer.parseInt(aa[j]);\n }\n for(int i=0;i<m;i++){\n \tb[i]=Integer.parseInt(br.readLine());\n }\n StringBuilder sb=new StringBuilder();\n for(int i=0;i<n;i++){\n \tint c=0;\n \tfor(int j=0;j<m;j++) c+=a[i][j]*b[j];\n \tsb.append(c+\"\\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 String[] nm=br.readLine().split(\" \");\n int n=Integer.parseInt(nm[0]);\n int m=Integer.parseInt(nm[1]);\n int[][] a=new int[n][m];\n int[] b=new int[m];\n for(int i=0;i<n;i++){\n \tString[] aa=br.readLine().split(\" \");\n for(int j=0;j<m;j++) a[i][j]=Integer.parseInt(aa[j]);\n }\n for(int i=0;i<m;i++){\n \tb[i]=Integer.parseInt(br.readLine());\n }\n StringBuilder sb=new StringBuilder();\n for(int i=0;i<n;i++){\n \tint c=0;\n \tfor(int j=0;j<m;j++) c+=a[i][j]*b[j];\n \tsb.append(c+\"\\n\");\n }\n System.out.print(sb);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] nm=br.readLine().split(\" \");\n int n=Integer.parseInt(nm[0]);\n int m=Integer.parseInt(nm[1]);\n int[][] a=new int[n][m];\n int[] b=new int[m];\n for(int i=0;i<n;i++){\n \tString[] aa=br.readLine().split(\" \");\n for(int j=0;j<m;j++) a[i][j]=Integer.parseInt(aa[j]);\n }\n for(int i=0;i<m;i++){\n \tb[i]=Integer.parseInt(br.readLine());\n }\n StringBuilder sb=new StringBuilder();\n for(int i=0;i<n;i++){\n \tint c=0;\n \tfor(int j=0;j<m;j++) c+=a[i][j]*b[j];\n \tsb.append(c+\"\\n\");\n }\n System.out.print(sb);\n\t}",
"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",
"\" \"",
"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][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 \tString[] aa=br.readLine().split(\" \");\n for(int j=0;j<m;j++) a[i][j]=Integer.parseInt(aa[j]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tString[] aa=br.readLine().split(\" \");\n for(int j=0;j<m;j++) a[i][j]=Integer.parseInt(aa[j]);\n }",
"{\n \tString[] aa=br.readLine().split(\" \");\n for(int j=0;j<m;j++) a[i][j]=Integer.parseInt(aa[j]);\n }",
"String[] aa=br.readLine().split(\" \");",
"aa",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(int j=0;j<m;j++) a[i][j]=Integer.parseInt(aa[j]);",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"a[i][j]=Integer.parseInt(aa[j]);",
"a[i][j]=Integer.parseInt(aa[j])",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"Integer.parseInt(aa[j])",
"Integer.parseInt",
"Integer",
"aa[j]",
"aa",
"j",
"for(int i=0;i<m;i++){\n \tb[i]=Integer.parseInt(br.readLine());\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n \tb[i]=Integer.parseInt(br.readLine());\n }",
"{\n \tb[i]=Integer.parseInt(br.readLine());\n }",
"b[i]=Integer.parseInt(br.readLine())",
"b[i]",
"b",
"i",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"StringBuilder sb=new StringBuilder();",
"sb",
"new StringBuilder()",
"for(int i=0;i<n;i++){\n \tint c=0;\n \tfor(int j=0;j<m;j++) c+=a[i][j]*b[j];\n \tsb.append(c+\"\\n\");\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tint c=0;\n \tfor(int j=0;j<m;j++) c+=a[i][j]*b[j];\n \tsb.append(c+\"\\n\");\n }",
"{\n \tint c=0;\n \tfor(int j=0;j<m;j++) c+=a[i][j]*b[j];\n \tsb.append(c+\"\\n\");\n }",
"int c=0;",
"c",
"0",
"for(int j=0;j<m;j++) c+=a[i][j]*b[j];",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"c+=a[i][j]*b[j];",
"c+=a[i][j]*b[j]",
"c",
"a[i][j]*b[j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"sb.append(c+\"\\n\")",
"sb.append",
"sb",
"c+\"\\n\"",
"c",
"\"\\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));
String[] nm=br.readLine().split(" ");
int n=Integer.parseInt(nm[0]);
int m=Integer.parseInt(nm[1]);
int[][] a=new int[n][m];
int[] b=new int[m];
for(int i=0;i<n;i++){
String[] aa=br.readLine().split(" ");
for(int j=0;j<m;j++) a[i][j]=Integer.parseInt(aa[j]);
}
for(int i=0;i<m;i++){
b[i]=Integer.parseInt(br.readLine());
}
StringBuilder sb=new StringBuilder();
for(int i=0;i<n;i++){
int c=0;
for(int j=0;j<m;j++) c+=a[i][j]*b[j];
sb.append(c+"\n");
}
System.out.print(sb);
}
} |
[
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,
41,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
41,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
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,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
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,
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
],
[
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
],
[
8,
38
],
[
38,
39
],
[
8,
40
],
[
40,
41
],
[
40,
42
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
8,
49
],
[
49,
50
],
[
8,
51
],
[
51,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
68,
73
],
[
65,
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
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
87,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
96,
97
],
[
96,
98
],
[
8,
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
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
119,
120
],
[
120,
121
],
[
8,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
127,
128
],
[
127,
129
],
[
122,
130
],
[
130,
131
],
[
131,
132
],
[
122,
133
],
[
134,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
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
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
153,
159
],
[
159,
160
],
[
159,
161
],
[
134,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
6,
168
],
[
168,
169
]
] | [
"import java.io.*;\n\nclass Main {\n public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] nums = br.readLine().split(\" \");\n int n = Integer.parseInt(nums[0]);\n int m = Integer.parseInt(nums[1]);\n int i, j;\n int[][] A = new int[n][m];\n int[] b = new int[m];\n int ci;\n String[] row;\n for (i = 0; i < n; i++) {\n row = br.readLine().split(\" \");\n for (j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(row[j]);\n }\n }\n for (j = 0; j < m; j++) {\n b[j] = Integer.parseInt(br.readLine());\n }\n for (i = 0; i < n; i++) {\n ci = 0;\n for (j = 0; j < m; j++) {\n ci += A[i][j] * b[j];\n }\n System.out.println(ci);\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"class Main {\n public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] nums = br.readLine().split(\" \");\n int n = Integer.parseInt(nums[0]);\n int m = Integer.parseInt(nums[1]);\n int i, j;\n int[][] A = new int[n][m];\n int[] b = new int[m];\n int ci;\n String[] row;\n for (i = 0; i < n; i++) {\n row = br.readLine().split(\" \");\n for (j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(row[j]);\n }\n }\n for (j = 0; j < m; j++) {\n b[j] = Integer.parseInt(br.readLine());\n }\n for (i = 0; i < n; i++) {\n ci = 0;\n for (j = 0; j < m; j++) {\n ci += A[i][j] * b[j];\n }\n System.out.println(ci);\n }\n }\n}",
"Main",
"public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] nums = br.readLine().split(\" \");\n int n = Integer.parseInt(nums[0]);\n int m = Integer.parseInt(nums[1]);\n int i, j;\n int[][] A = new int[n][m];\n int[] b = new int[m];\n int ci;\n String[] row;\n for (i = 0; i < n; i++) {\n row = br.readLine().split(\" \");\n for (j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(row[j]);\n }\n }\n for (j = 0; j < m; j++) {\n b[j] = Integer.parseInt(br.readLine());\n }\n for (i = 0; i < n; i++) {\n ci = 0;\n for (j = 0; j < m; j++) {\n ci += A[i][j] * b[j];\n }\n System.out.println(ci);\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] nums = br.readLine().split(\" \");\n int n = Integer.parseInt(nums[0]);\n int m = Integer.parseInt(nums[1]);\n int i, j;\n int[][] A = new int[n][m];\n int[] b = new int[m];\n int ci;\n String[] row;\n for (i = 0; i < n; i++) {\n row = br.readLine().split(\" \");\n for (j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(row[j]);\n }\n }\n for (j = 0; j < m; j++) {\n b[j] = Integer.parseInt(br.readLine());\n }\n for (i = 0; i < n; i++) {\n ci = 0;\n for (j = 0; j < m; j++) {\n ci += A[i][j] * b[j];\n }\n System.out.println(ci);\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] nums = br.readLine().split(\" \");",
"nums",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int n = Integer.parseInt(nums[0]);",
"n",
"Integer.parseInt(nums[0])",
"Integer.parseInt",
"Integer",
"nums[0]",
"nums",
"0",
"int m = Integer.parseInt(nums[1]);",
"m",
"Integer.parseInt(nums[1])",
"Integer.parseInt",
"Integer",
"nums[1]",
"nums",
"1",
"int i",
"i",
"j;",
"j",
"int[][] A = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int[] b = new int[m];",
"b",
"new int[m]",
"m",
"int ci;",
"ci",
"String[] row;",
"row",
"for (i = 0; i < n; i++) {\n row = br.readLine().split(\" \");\n for (j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(row[j]);\n }\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n row = br.readLine().split(\" \");\n for (j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(row[j]);\n }\n }",
"{\n row = br.readLine().split(\" \");\n for (j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(row[j]);\n }\n }",
"row = br.readLine().split(\" \")",
"row",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for (j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(row[j]);\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n A[i][j] = Integer.parseInt(row[j]);\n }",
"{\n A[i][j] = Integer.parseInt(row[j]);\n }",
"A[i][j] = Integer.parseInt(row[j])",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"Integer.parseInt(row[j])",
"Integer.parseInt",
"Integer",
"row[j]",
"row",
"j",
"for (j = 0; j < m; j++) {\n b[j] = Integer.parseInt(br.readLine());\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n b[j] = Integer.parseInt(br.readLine());\n }",
"{\n b[j] = Integer.parseInt(br.readLine());\n }",
"b[j] = Integer.parseInt(br.readLine())",
"b[j]",
"b",
"j",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for (i = 0; i < n; i++) {\n ci = 0;\n for (j = 0; j < m; j++) {\n ci += A[i][j] * b[j];\n }\n System.out.println(ci);\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n ci = 0;\n for (j = 0; j < m; j++) {\n ci += A[i][j] * b[j];\n }\n System.out.println(ci);\n }",
"{\n ci = 0;\n for (j = 0; j < m; j++) {\n ci += A[i][j] * b[j];\n }\n System.out.println(ci);\n }",
"ci = 0",
"ci",
"0",
"for (j = 0; j < m; j++) {\n ci += A[i][j] * b[j];\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n ci += A[i][j] * b[j];\n }",
"{\n ci += A[i][j] * b[j];\n }",
"ci += A[i][j] * b[j]",
"ci",
"A[i][j] * b[j]",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"b[j]",
"b",
"j",
"System.out.println(ci)",
"System.out.println",
"System.out",
"System",
"System.out",
"ci",
"String[] args",
"args"
] | import java.io.*;
class Main {
public static void main (String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] nums = br.readLine().split(" ");
int n = Integer.parseInt(nums[0]);
int m = Integer.parseInt(nums[1]);
int i, j;
int[][] A = new int[n][m];
int[] b = new int[m];
int ci;
String[] row;
for (i = 0; i < n; i++) {
row = br.readLine().split(" ");
for (j = 0; j < m; j++) {
A[i][j] = Integer.parseInt(row[j]);
}
}
for (j = 0; j < m; j++) {
b[j] = Integer.parseInt(br.readLine());
}
for (i = 0; i < n; i++) {
ci = 0;
for (j = 0; j < m; j++) {
ci += A[i][j] * b[j];
}
System.out.println(ci);
}
}
} |
[
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\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\n\t\t// ่กๅAใๅๅพ\n\t\tint matrixA[][] = 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\tmatrixA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\t// ใใฏใใซbใๅๅพ\n\t\tint vectorB[] = new int[m];\n\t\tfor(int i=0; i<m; i++) {\n\t\t\tvectorB[i] = sc.nextInt();\n\t\t}\n\n\t\tsc.close();\n\n\t\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 += matrixA[i][j] * vectorB[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\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\n\t\t// ่กๅAใๅๅพ\n\t\tint matrixA[][] = 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\tmatrixA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\t// ใใฏใใซbใๅๅพ\n\t\tint vectorB[] = new int[m];\n\t\tfor(int i=0; i<m; i++) {\n\t\t\tvectorB[i] = sc.nextInt();\n\t\t}\n\n\t\tsc.close();\n\n\t\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 += matrixA[i][j] * vectorB[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\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\n\t\t// ่กๅAใๅๅพ\n\t\tint matrixA[][] = 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\tmatrixA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\t// ใใฏใใซbใๅๅพ\n\t\tint vectorB[] = new int[m];\n\t\tfor(int i=0; i<m; i++) {\n\t\t\tvectorB[i] = sc.nextInt();\n\t\t}\n\n\t\tsc.close();\n\n\t\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 += matrixA[i][j] * vectorB[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\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\n\t\t// ่กๅAใๅๅพ\n\t\tint matrixA[][] = 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\tmatrixA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\t// ใใฏใใซbใๅๅพ\n\t\tint vectorB[] = new int[m];\n\t\tfor(int i=0; i<m; i++) {\n\t\t\tvectorB[i] = sc.nextInt();\n\t\t}\n\n\t\tsc.close();\n\n\t\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 += matrixA[i][j] * vectorB[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)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"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] = 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\tmatrixA[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\tmatrixA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int j=0; j<m; j++) {\n\t\t\t\tmatrixA[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\tmatrixA[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tmatrixA[i][j] = sc.nextInt();\n\t\t\t}",
"matrixA[i][j] = sc.nextInt()",
"matrixA[i][j]",
"matrixA[i]",
"matrixA",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int vectorB[] = new int[m];",
"vectorB",
"new int[m]",
"m",
"for(int i=0; i<m; i++) {\n\t\t\tvectorB[i] = sc.nextInt();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tvectorB[i] = sc.nextInt();\n\t\t}",
"{\n\t\t\tvectorB[i] = sc.nextInt();\n\t\t}",
"vectorB[i] = sc.nextInt()",
"vectorB[i]",
"vectorB",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"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 += matrixA[i][j] * vectorB[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\tint sum = 0;\n\t\t\tfor(int j=0; j<m; j++) {\n\t\t\t\tsum += matrixA[i][j] * vectorB[j];\n\t\t\t}\n\t\t\tSystem.out.println(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 += matrixA[i][j] * vectorB[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}",
"int sum = 0;",
"sum",
"0",
"for(int j=0; j<m; j++) {\n\t\t\t\tsum += 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\tsum += matrixA[i][j] * vectorB[j];\n\t\t\t}",
"{\n\t\t\t\tsum += matrixA[i][j] * vectorB[j];\n\t\t\t}",
"sum += matrixA[i][j] * vectorB[j]",
"sum",
"matrixA[i][j] * vectorB[j]",
"matrixA[i][j]",
"matrixA[i]",
"matrixA",
"i",
"j",
"vectorB[j]",
"vectorB",
"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\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\n\t\t// ่กๅAใๅๅพ\n\t\tint matrixA[][] = 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\tmatrixA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\t// ใใฏใใซbใๅๅพ\n\t\tint vectorB[] = new int[m];\n\t\tfor(int i=0; i<m; i++) {\n\t\t\tvectorB[i] = sc.nextInt();\n\t\t}\n\n\t\tsc.close();\n\n\t\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 += matrixA[i][j] * vectorB[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\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\n\t\t// ่กๅAใๅๅพ\n\t\tint matrixA[][] = 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\tmatrixA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\t// ใใฏใใซbใๅๅพ\n\t\tint vectorB[] = new int[m];\n\t\tfor(int i=0; i<m; i++) {\n\t\t\tvectorB[i] = sc.nextInt();\n\t\t}\n\n\t\tsc.close();\n\n\t\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 += matrixA[i][j] * vectorB[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) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
// ่กๅAใๅๅพ
int matrixA[][] = new int[n][m];
for(int i=0; i<n; i++) {
for(int j=0; j<m; j++) {
matrixA[i][j] = sc.nextInt();
}
}
// ใใฏใใซbใๅๅพ
int vectorB[] = new int[m];
for(int i=0; i<m; i++) {
vectorB[i] = sc.nextInt();
}
sc.close();
// ่จ็ฎ
for(int i=0; i<n; i++) {
int sum = 0;
for(int j=0; j<m; j++) {
sum += matrixA[i][j] * vectorB[j];
}
System.out.println(sum);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
17,
41,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
4,
18,
13,
17,
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,
4,
18,
13,
17,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
4,
18,
13,
18,
13,
13,
4,
18,
13,
18,
13,
13,
4,
18,
4,
18,
13,
4,
18,
13,
13,
13,
4,
18,
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
],
[
182,
11
],
[
182,
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
],
[
28,
31
],
[
22,
32
],
[
32,
33
],
[
32,
34
],
[
22,
35
],
[
35,
36
],
[
35,
37
],
[
22,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
40,
45
],
[
22,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
51,
53
],
[
22,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
59,
60
],
[
59,
61
],
[
22,
62
],
[
62,
63
],
[
62,
64
],
[
22,
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
],
[
78,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
81,
86
],
[
22,
87
],
[
87,
88
],
[
87,
89
],
[
22,
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
],
[
22,
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
],
[
126,
129
],
[
123,
130
],
[
130,
131
],
[
130,
132
],
[
123,
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
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
149,
152
],
[
152,
153
],
[
152,
154
],
[
148,
155
],
[
155,
156
],
[
156,
157
],
[
155,
158
],
[
158,
159
],
[
158,
160
],
[
123,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
163,
166
],
[
166,
167
],
[
167,
168
],
[
166,
169
],
[
161,
170
],
[
22,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
171,
176
],
[
176,
177
],
[
177,
178
],
[
12,
179
],
[
179,
180
],
[
0,
181
],
[
181,
182
],
[
181,
183
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\tlong sum = 0;\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString[] nm = input.readLine().split(\" \");\n\t\t\tint n = Integer.parseInt(nm[0]);\n\t\t\tint m = Integer.parseInt(nm[1]);\n\t\t\tArrayList<String[]> matrix = new ArrayList<String[]>(n);\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tmatrix.add(input.readLine().split(\" \"));\n\t\t\t}\n\t\t\tString[] vector = new String[m];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tvector[i] = input.readLine();\n\t\t\t}\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tString[] column = matrix.remove(0);\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\tsum += Integer.parseInt(column[j]) * Integer.parseInt(vector[j]);\n\t\t\t\t}\n\t\t\t\tanswer.append(String.valueOf(sum)).append(lb);\n\t\t\t}\n\t\t\tSystem.out.print(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\tlong sum = 0;\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString[] nm = input.readLine().split(\" \");\n\t\t\tint n = Integer.parseInt(nm[0]);\n\t\t\tint m = Integer.parseInt(nm[1]);\n\t\t\tArrayList<String[]> matrix = new ArrayList<String[]>(n);\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tmatrix.add(input.readLine().split(\" \"));\n\t\t\t}\n\t\t\tString[] vector = new String[m];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tvector[i] = input.readLine();\n\t\t\t}\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tString[] column = matrix.remove(0);\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\tsum += Integer.parseInt(column[j]) * Integer.parseInt(vector[j]);\n\t\t\t\t}\n\t\t\t\tanswer.append(String.valueOf(sum)).append(lb);\n\t\t\t}\n\t\t\tSystem.out.print(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\ttry {\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\tlong sum = 0;\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString[] nm = input.readLine().split(\" \");\n\t\t\tint n = Integer.parseInt(nm[0]);\n\t\t\tint m = Integer.parseInt(nm[1]);\n\t\t\tArrayList<String[]> matrix = new ArrayList<String[]>(n);\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tmatrix.add(input.readLine().split(\" \"));\n\t\t\t}\n\t\t\tString[] vector = new String[m];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tvector[i] = input.readLine();\n\t\t\t}\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tString[] column = matrix.remove(0);\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\tsum += Integer.parseInt(column[j]) * Integer.parseInt(vector[j]);\n\t\t\t\t}\n\t\t\t\tanswer.append(String.valueOf(sum)).append(lb);\n\t\t\t}\n\t\t\tSystem.out.print(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"main",
"{\n\t\ttry {\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\tlong sum = 0;\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString[] nm = input.readLine().split(\" \");\n\t\t\tint n = Integer.parseInt(nm[0]);\n\t\t\tint m = Integer.parseInt(nm[1]);\n\t\t\tArrayList<String[]> matrix = new ArrayList<String[]>(n);\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tmatrix.add(input.readLine().split(\" \"));\n\t\t\t}\n\t\t\tString[] vector = new String[m];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tvector[i] = input.readLine();\n\t\t\t}\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tString[] column = matrix.remove(0);\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\tsum += Integer.parseInt(column[j]) * Integer.parseInt(vector[j]);\n\t\t\t\t}\n\t\t\t\tanswer.append(String.valueOf(sum)).append(lb);\n\t\t\t}\n\t\t\tSystem.out.print(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"try {\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\tlong sum = 0;\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString[] nm = input.readLine().split(\" \");\n\t\t\tint n = Integer.parseInt(nm[0]);\n\t\t\tint m = Integer.parseInt(nm[1]);\n\t\t\tArrayList<String[]> matrix = new ArrayList<String[]>(n);\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tmatrix.add(input.readLine().split(\" \"));\n\t\t\t}\n\t\t\tString[] vector = new String[m];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tvector[i] = input.readLine();\n\t\t\t}\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tString[] column = matrix.remove(0);\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\tsum += Integer.parseInt(column[j]) * Integer.parseInt(vector[j]);\n\t\t\t\t}\n\t\t\t\tanswer.append(String.valueOf(sum)).append(lb);\n\t\t\t}\n\t\t\tSystem.out.print(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}",
"catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}",
"Exception e",
"{\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\tlong sum = 0;\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString[] nm = input.readLine().split(\" \");\n\t\t\tint n = Integer.parseInt(nm[0]);\n\t\t\tint m = Integer.parseInt(nm[1]);\n\t\t\tArrayList<String[]> matrix = new ArrayList<String[]>(n);\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tmatrix.add(input.readLine().split(\" \"));\n\t\t\t}\n\t\t\tString[] vector = new String[m];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tvector[i] = input.readLine();\n\t\t\t}\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tString[] column = matrix.remove(0);\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\tsum += Integer.parseInt(column[j]) * Integer.parseInt(vector[j]);\n\t\t\t\t}\n\t\t\t\tanswer.append(String.valueOf(sum)).append(lb);\n\t\t\t}\n\t\t\tSystem.out.print(answer.toString());\n\t\t}",
"StringBuilder answer = new StringBuilder();",
"answer",
"new StringBuilder()",
"String lb = System.getProperty(\"line.separator\");",
"lb",
"System.getProperty(\"line.separator\")",
"System.getProperty",
"System",
"\"line.separator\"",
"long sum = 0;",
"sum",
"0",
"BufferedReader input = new BufferedReader(new InputStreamReader(System.in));",
"input",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] nm = input.readLine().split(\" \");",
"nm",
"input.readLine().split(\" \")",
"input.readLine().split",
"input.readLine()",
"input.readLine",
"input",
"\" \"",
"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",
"ArrayList<String[]> matrix = new ArrayList<String[]>(n);",
"matrix",
"new ArrayList<String[]>(n)",
"for (int i = 0; i < n; i++) {\n\t\t\t\tmatrix.add(input.readLine().split(\" \"));\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tmatrix.add(input.readLine().split(\" \"));\n\t\t\t}",
"{\n\t\t\t\tmatrix.add(input.readLine().split(\" \"));\n\t\t\t}",
"matrix.add(input.readLine().split(\" \"))",
"matrix.add",
"matrix",
"input.readLine().split(\" \")",
"input.readLine().split",
"input.readLine()",
"input.readLine",
"input",
"\" \"",
"String[] vector = new String[m];",
"vector",
"new String[m]",
"m",
"for (int i = 0; i < m; i++) {\n\t\t\t\tvector[i] = input.readLine();\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\t\tvector[i] = input.readLine();\n\t\t\t}",
"{\n\t\t\t\tvector[i] = input.readLine();\n\t\t\t}",
"vector[i] = input.readLine()",
"vector[i]",
"vector",
"i",
"input.readLine()",
"input.readLine",
"input",
"for (int i = 0; i < n; i++) {\n\t\t\t\tString[] column = matrix.remove(0);\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\tsum += Integer.parseInt(column[j]) * Integer.parseInt(vector[j]);\n\t\t\t\t}\n\t\t\t\tanswer.append(String.valueOf(sum)).append(lb);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tString[] column = matrix.remove(0);\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\tsum += Integer.parseInt(column[j]) * Integer.parseInt(vector[j]);\n\t\t\t\t}\n\t\t\t\tanswer.append(String.valueOf(sum)).append(lb);\n\t\t\t}",
"{\n\t\t\t\tString[] column = matrix.remove(0);\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\tsum += Integer.parseInt(column[j]) * Integer.parseInt(vector[j]);\n\t\t\t\t}\n\t\t\t\tanswer.append(String.valueOf(sum)).append(lb);\n\t\t\t}",
"String[] column = matrix.remove(0);",
"column",
"matrix.remove(0)",
"matrix.remove",
"matrix",
"0",
"sum = 0",
"sum",
"0",
"for (int j = 0; j < m; j++) {\n\t\t\t\t\tsum += Integer.parseInt(column[j]) * Integer.parseInt(vector[j]);\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tsum += Integer.parseInt(column[j]) * Integer.parseInt(vector[j]);\n\t\t\t\t}",
"{\n\t\t\t\t\tsum += Integer.parseInt(column[j]) * Integer.parseInt(vector[j]);\n\t\t\t\t}",
"sum += Integer.parseInt(column[j]) * Integer.parseInt(vector[j])",
"sum",
"Integer.parseInt(column[j]) * Integer.parseInt(vector[j])",
"Integer.parseInt(column[j])",
"Integer.parseInt",
"Integer",
"column[j]",
"column",
"j",
"Integer.parseInt(vector[j])",
"Integer.parseInt",
"Integer",
"vector[j]",
"vector",
"j",
"answer.append(String.valueOf(sum)).append(lb)",
"answer.append(String.valueOf(sum)).append",
"answer.append(String.valueOf(sum))",
"answer.append",
"answer",
"String.valueOf(sum)",
"String.valueOf",
"String",
"sum",
"lb",
"System.out.print(answer.toString())",
"System.out.print",
"System.out",
"System",
"System.out",
"answer.toString()",
"answer.toString",
"answer",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\tlong sum = 0;\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString[] nm = input.readLine().split(\" \");\n\t\t\tint n = Integer.parseInt(nm[0]);\n\t\t\tint m = Integer.parseInt(nm[1]);\n\t\t\tArrayList<String[]> matrix = new ArrayList<String[]>(n);\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tmatrix.add(input.readLine().split(\" \"));\n\t\t\t}\n\t\t\tString[] vector = new String[m];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tvector[i] = input.readLine();\n\t\t\t}\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tString[] column = matrix.remove(0);\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\tsum += Integer.parseInt(column[j]) * Integer.parseInt(vector[j]);\n\t\t\t\t}\n\t\t\t\tanswer.append(String.valueOf(sum)).append(lb);\n\t\t\t}\n\t\t\tSystem.out.print(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\tlong sum = 0;\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString[] nm = input.readLine().split(\" \");\n\t\t\tint n = Integer.parseInt(nm[0]);\n\t\t\tint m = Integer.parseInt(nm[1]);\n\t\t\tArrayList<String[]> matrix = new ArrayList<String[]>(n);\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tmatrix.add(input.readLine().split(\" \"));\n\t\t\t}\n\t\t\tString[] vector = new String[m];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tvector[i] = input.readLine();\n\t\t\t}\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tString[] column = matrix.remove(0);\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\tsum += Integer.parseInt(column[j]) * Integer.parseInt(vector[j]);\n\t\t\t\t}\n\t\t\t\tanswer.append(String.valueOf(sum)).append(lb);\n\t\t\t}\n\t\t\tSystem.out.print(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) {
try {
StringBuilder answer = new StringBuilder();
String lb = System.getProperty("line.separator");
long sum = 0;
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
String[] nm = input.readLine().split(" ");
int n = Integer.parseInt(nm[0]);
int m = Integer.parseInt(nm[1]);
ArrayList<String[]> matrix = new ArrayList<String[]>(n);
for (int i = 0; i < n; i++) {
matrix.add(input.readLine().split(" "));
}
String[] vector = new String[m];
for (int i = 0; i < m; i++) {
vector[i] = input.readLine();
}
for (int i = 0; i < n; i++) {
String[] column = matrix.remove(0);
sum = 0;
for (int j = 0; j < m; j++) {
sum += Integer.parseInt(column[j]) * Integer.parseInt(vector[j]);
}
answer.append(String.valueOf(sum)).append(lb);
}
System.out.print(answer.toString());
} catch (Exception 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,
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,
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,
4,
18,
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
],
[
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
],
[
131,
133
],
[
130,
134
],
[
8,
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
],
[
8,
156
],
[
156,
157
],
[
157,
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 n = scan.nextInt();\n\t\tint m = scan.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\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\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint num = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tnum += a[i][j] * b[j];\n\t\t\t}\n\t\t\tc[i] = num;\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t\t\n\t\tscan.close();\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 scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.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\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\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint num = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tnum += a[i][j] * b[j];\n\t\t\t}\n\t\t\tc[i] = num;\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t\t\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\tint n = scan.nextInt();\n\t\tint m = scan.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\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\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint num = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tnum += a[i][j] * b[j];\n\t\t\t}\n\t\t\tc[i] = num;\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t\t\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\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\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\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint num = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tnum += a[i][j] * b[j];\n\t\t\t}\n\t\t\tc[i] = num;\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\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 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] = 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 num = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tnum += a[i][j] * b[j];\n\t\t\t}\n\t\t\tc[i] = num;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint num = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tnum += a[i][j] * b[j];\n\t\t\t}\n\t\t\tc[i] = num;\n\t\t}",
"{\n\t\t\tint num = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tnum += a[i][j] * b[j];\n\t\t\t}\n\t\t\tc[i] = num;\n\t\t}",
"int num = 0;",
"num",
"0",
"for (int j = 0; j < m; j++) {\n\t\t\t\tnum += 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\tnum += a[i][j] * b[j];\n\t\t\t}",
"{\n\t\t\t\tnum += a[i][j] * b[j];\n\t\t\t}",
"num += a[i][j] * b[j]",
"num",
"a[i][j] * b[j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"c[i] = num",
"c[i]",
"c",
"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",
"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\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\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\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint num = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tnum += a[i][j] * b[j];\n\t\t\t}\n\t\t\tc[i] = num;\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t\t\n\t\tscan.close();\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\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\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\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint num = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tnum += a[i][j] * b[j];\n\t\t\t}\n\t\t\tc[i] = num;\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t\t\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);
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++) {
a[i][j] = scan.nextInt();
}
}
for (int i = 0; i < m; i++) {
b[i] = scan.nextInt();
}
for (int i = 0; i < n; i++) {
int num = 0;
for (int j = 0; j < m; j++) {
num += a[i][j] * b[j];
}
c[i] = num;
}
for (int i = 0; i < n; i++) {
System.out.println(c[i]);
}
scan.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,
41,
13,
20,
13,
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,
41,
13,
4,
18,
13,
17,
0,
18,
18,
13,
13,
13,
18,
13,
13,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
18,
13,
13,
13,
41,
13,
20,
13,
41,
13,
20,
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,
13,
0,
18,
13,
13,
4,
18,
13,
18,
13,
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,
18,
13,
13,
13,
18,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
207,
5
],
[
207,
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
],
[
44,
46
],
[
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
],
[
61,
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
],
[
82,
85
],
[
79,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
86,
92
],
[
92,
93
],
[
92,
94
],
[
79,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
95,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
8,
109
],
[
109,
110
],
[
109,
111
],
[
8,
113
],
[
113,
114
],
[
113,
115
],
[
116,
117
],
[
116,
118
],
[
8,
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
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
131,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
131,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
142,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
149,
150
],
[
149,
151
],
[
8,
152
],
[
152,
153
],
[
152,
154
],
[
8,
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
],
[
168,
170
],
[
167,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
171,
176
],
[
176,
177
],
[
176,
178
],
[
171,
179
],
[
179,
180
],
[
180,
181
],
[
171,
182
],
[
183,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
186,
192
],
[
192,
193
],
[
192,
194
],
[
183,
195
],
[
195,
196
],
[
195,
197
],
[
167,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
198,
203
],
[
6,
204
],
[
204,
205
],
[
0,
206
],
[
206,
207
],
[
206,
208
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString line1 = sc.nextLine();\n\t\tString[] string1 = line1.split(\" \");\n\t\tint n = Integer.parseInt(string1[0]);\n\t\tint m = Integer.parseInt(string1[1]);\n\n\t\tString[][] gyouA = new String[n][m];\n\t\tint[][] A = new int[n][m];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tString[] string = line2.split(\" \");\n\t\t\t\tgyouA[i][j] = string[j];\n\t\t\t\tA[i][j] = Integer.parseInt(gyouA[i][j]);\n\t\t\t}\n\n\t\t}\n\n\t\tString[] retB = new String[m];\n\t\tint[] B = new int[retB.length];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tString line3 = sc.nextLine();\n\t\t\tretB[i] = line3;\n\t\t\tB[i] = Integer.parseInt(retB[i]);\n\t\t}\n\n\t\tint AB = 0;\n\t\tfor (int j = 0; j < n; j++) {\n\t\t\tint C = 0;\n\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\tAB = A[j][k] * B[k];\n\t\t\t\tC += AB;\n\t\t\t}\n\t\t\tSystem.out.println(C);\n\t\t}\n\n\t}\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\n\t\tString line1 = sc.nextLine();\n\t\tString[] string1 = line1.split(\" \");\n\t\tint n = Integer.parseInt(string1[0]);\n\t\tint m = Integer.parseInt(string1[1]);\n\n\t\tString[][] gyouA = new String[n][m];\n\t\tint[][] A = new int[n][m];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tString[] string = line2.split(\" \");\n\t\t\t\tgyouA[i][j] = string[j];\n\t\t\t\tA[i][j] = Integer.parseInt(gyouA[i][j]);\n\t\t\t}\n\n\t\t}\n\n\t\tString[] retB = new String[m];\n\t\tint[] B = new int[retB.length];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tString line3 = sc.nextLine();\n\t\t\tretB[i] = line3;\n\t\t\tB[i] = Integer.parseInt(retB[i]);\n\t\t}\n\n\t\tint AB = 0;\n\t\tfor (int j = 0; j < n; j++) {\n\t\t\tint C = 0;\n\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\tAB = A[j][k] * B[k];\n\t\t\t\tC += AB;\n\t\t\t}\n\t\t\tSystem.out.println(C);\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString line1 = sc.nextLine();\n\t\tString[] string1 = line1.split(\" \");\n\t\tint n = Integer.parseInt(string1[0]);\n\t\tint m = Integer.parseInt(string1[1]);\n\n\t\tString[][] gyouA = new String[n][m];\n\t\tint[][] A = new int[n][m];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tString[] string = line2.split(\" \");\n\t\t\t\tgyouA[i][j] = string[j];\n\t\t\t\tA[i][j] = Integer.parseInt(gyouA[i][j]);\n\t\t\t}\n\n\t\t}\n\n\t\tString[] retB = new String[m];\n\t\tint[] B = new int[retB.length];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tString line3 = sc.nextLine();\n\t\t\tretB[i] = line3;\n\t\t\tB[i] = Integer.parseInt(retB[i]);\n\t\t}\n\n\t\tint AB = 0;\n\t\tfor (int j = 0; j < n; j++) {\n\t\t\tint C = 0;\n\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\tAB = A[j][k] * B[k];\n\t\t\t\tC += AB;\n\t\t\t}\n\t\t\tSystem.out.println(C);\n\t\t}\n\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString line1 = sc.nextLine();\n\t\tString[] string1 = line1.split(\" \");\n\t\tint n = Integer.parseInt(string1[0]);\n\t\tint m = Integer.parseInt(string1[1]);\n\n\t\tString[][] gyouA = new String[n][m];\n\t\tint[][] A = new int[n][m];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tString[] string = line2.split(\" \");\n\t\t\t\tgyouA[i][j] = string[j];\n\t\t\t\tA[i][j] = Integer.parseInt(gyouA[i][j]);\n\t\t\t}\n\n\t\t}\n\n\t\tString[] retB = new String[m];\n\t\tint[] B = new int[retB.length];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tString line3 = sc.nextLine();\n\t\t\tretB[i] = line3;\n\t\t\tB[i] = Integer.parseInt(retB[i]);\n\t\t}\n\n\t\tint AB = 0;\n\t\tfor (int j = 0; j < n; j++) {\n\t\t\tint C = 0;\n\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\tAB = A[j][k] * B[k];\n\t\t\t\tC += AB;\n\t\t\t}\n\t\t\tSystem.out.println(C);\n\t\t}\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line1 = sc.nextLine();",
"line1",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] string1 = line1.split(\" \");",
"string1",
"line1.split(\" \")",
"line1.split",
"line1",
"\" \"",
"int n = Integer.parseInt(string1[0]);",
"n",
"Integer.parseInt(string1[0])",
"Integer.parseInt",
"Integer",
"string1[0]",
"string1",
"0",
"int m = Integer.parseInt(string1[1]);",
"m",
"Integer.parseInt(string1[1])",
"Integer.parseInt",
"Integer",
"string1[1]",
"string1",
"1",
"String[][] gyouA = new String[n][m];",
"gyouA",
"new String[n][m]",
"n",
"m",
"int[][] A = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tString[] string = line2.split(\" \");\n\t\t\t\tgyouA[i][j] = string[j];\n\t\t\t\tA[i][j] = Integer.parseInt(gyouA[i][j]);\n\t\t\t}\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString line2 = sc.nextLine();\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tString[] string = line2.split(\" \");\n\t\t\t\tgyouA[i][j] = string[j];\n\t\t\t\tA[i][j] = Integer.parseInt(gyouA[i][j]);\n\t\t\t}\n\n\t\t}",
"{\n\t\t\tString line2 = sc.nextLine();\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tString[] string = line2.split(\" \");\n\t\t\t\tgyouA[i][j] = string[j];\n\t\t\t\tA[i][j] = Integer.parseInt(gyouA[i][j]);\n\t\t\t}\n\n\t\t}",
"String line2 = sc.nextLine();",
"line2",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for (int j = 0; j < m; j++) {\n\t\t\t\tString[] string = line2.split(\" \");\n\t\t\t\tgyouA[i][j] = string[j];\n\t\t\t\tA[i][j] = Integer.parseInt(gyouA[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\tString[] string = line2.split(\" \");\n\t\t\t\tgyouA[i][j] = string[j];\n\t\t\t\tA[i][j] = Integer.parseInt(gyouA[i][j]);\n\t\t\t}",
"{\n\t\t\t\tString[] string = line2.split(\" \");\n\t\t\t\tgyouA[i][j] = string[j];\n\t\t\t\tA[i][j] = Integer.parseInt(gyouA[i][j]);\n\t\t\t}",
"String[] string = line2.split(\" \");",
"string",
"line2.split(\" \")",
"line2.split",
"line2",
"\" \"",
"gyouA[i][j] = string[j]",
"gyouA[i][j]",
"gyouA[i]",
"gyouA",
"i",
"j",
"string[j]",
"string",
"j",
"A[i][j] = Integer.parseInt(gyouA[i][j])",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"Integer.parseInt(gyouA[i][j])",
"Integer.parseInt",
"Integer",
"gyouA[i][j]",
"gyouA[i]",
"gyouA",
"i",
"j",
"String[] retB = new String[m];",
"retB",
"new String[m]",
"m",
"int[] B = new int[retB.length];",
"B",
"new int[retB.length]",
"retB.length",
"retB",
"retB.length",
"for (int i = 0; i < m; i++) {\n\t\t\tString line3 = sc.nextLine();\n\t\t\tretB[i] = line3;\n\t\t\tB[i] = Integer.parseInt(retB[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tString line3 = sc.nextLine();\n\t\t\tretB[i] = line3;\n\t\t\tB[i] = Integer.parseInt(retB[i]);\n\t\t}",
"{\n\t\t\tString line3 = sc.nextLine();\n\t\t\tretB[i] = line3;\n\t\t\tB[i] = Integer.parseInt(retB[i]);\n\t\t}",
"String line3 = sc.nextLine();",
"line3",
"sc.nextLine()",
"sc.nextLine",
"sc",
"retB[i] = line3",
"retB[i]",
"retB",
"i",
"line3",
"B[i] = Integer.parseInt(retB[i])",
"B[i]",
"B",
"i",
"Integer.parseInt(retB[i])",
"Integer.parseInt",
"Integer",
"retB[i]",
"retB",
"i",
"int AB = 0;",
"AB",
"0",
"for (int j = 0; j < n; j++) {\n\t\t\tint C = 0;\n\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\tAB = A[j][k] * B[k];\n\t\t\t\tC += AB;\n\t\t\t}\n\t\t\tSystem.out.println(C);\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < n",
"j",
"n",
"j++",
"j++",
"j",
"{\n\t\t\tint C = 0;\n\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\tAB = A[j][k] * B[k];\n\t\t\t\tC += AB;\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 < m; k++) {\n\t\t\t\tAB = A[j][k] * B[k];\n\t\t\t\tC += AB;\n\t\t\t}\n\t\t\tSystem.out.println(C);\n\t\t}",
"int C = 0;",
"C",
"0",
"for (int k = 0; k < m; k++) {\n\t\t\t\tAB = A[j][k] * B[k];\n\t\t\t\tC += AB;\n\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"{\n\t\t\t\tAB = A[j][k] * B[k];\n\t\t\t\tC += AB;\n\t\t\t}",
"{\n\t\t\t\tAB = A[j][k] * B[k];\n\t\t\t\tC += AB;\n\t\t\t}",
"AB = A[j][k] * B[k]",
"AB",
"A[j][k] * B[k]",
"A[j][k]",
"A[j]",
"A",
"j",
"k",
"B[k]",
"B",
"k",
"C += AB",
"C",
"AB",
"System.out.println(C)",
"System.out.println",
"System.out",
"System",
"System.out",
"C",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString line1 = sc.nextLine();\n\t\tString[] string1 = line1.split(\" \");\n\t\tint n = Integer.parseInt(string1[0]);\n\t\tint m = Integer.parseInt(string1[1]);\n\n\t\tString[][] gyouA = new String[n][m];\n\t\tint[][] A = new int[n][m];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tString[] string = line2.split(\" \");\n\t\t\t\tgyouA[i][j] = string[j];\n\t\t\t\tA[i][j] = Integer.parseInt(gyouA[i][j]);\n\t\t\t}\n\n\t\t}\n\n\t\tString[] retB = new String[m];\n\t\tint[] B = new int[retB.length];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tString line3 = sc.nextLine();\n\t\t\tretB[i] = line3;\n\t\t\tB[i] = Integer.parseInt(retB[i]);\n\t\t}\n\n\t\tint AB = 0;\n\t\tfor (int j = 0; j < n; j++) {\n\t\t\tint C = 0;\n\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\tAB = A[j][k] * B[k];\n\t\t\t\tC += AB;\n\t\t\t}\n\t\t\tSystem.out.println(C);\n\t\t}\n\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString line1 = sc.nextLine();\n\t\tString[] string1 = line1.split(\" \");\n\t\tint n = Integer.parseInt(string1[0]);\n\t\tint m = Integer.parseInt(string1[1]);\n\n\t\tString[][] gyouA = new String[n][m];\n\t\tint[][] A = new int[n][m];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tString[] string = line2.split(\" \");\n\t\t\t\tgyouA[i][j] = string[j];\n\t\t\t\tA[i][j] = Integer.parseInt(gyouA[i][j]);\n\t\t\t}\n\n\t\t}\n\n\t\tString[] retB = new String[m];\n\t\tint[] B = new int[retB.length];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tString line3 = sc.nextLine();\n\t\t\tretB[i] = line3;\n\t\t\tB[i] = Integer.parseInt(retB[i]);\n\t\t}\n\n\t\tint AB = 0;\n\t\tfor (int j = 0; j < n; j++) {\n\t\t\tint C = 0;\n\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\tAB = A[j][k] * B[k];\n\t\t\t\tC += AB;\n\t\t\t}\n\t\t\tSystem.out.println(C);\n\t\t}\n\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String line1 = sc.nextLine();
String[] string1 = line1.split(" ");
int n = Integer.parseInt(string1[0]);
int m = Integer.parseInt(string1[1]);
String[][] gyouA = new String[n][m];
int[][] A = new int[n][m];
for (int i = 0; i < n; i++) {
String line2 = sc.nextLine();
for (int j = 0; j < m; j++) {
String[] string = line2.split(" ");
gyouA[i][j] = string[j];
A[i][j] = Integer.parseInt(gyouA[i][j]);
}
}
String[] retB = new String[m];
int[] B = new int[retB.length];
for (int i = 0; i < m; i++) {
String line3 = sc.nextLine();
retB[i] = line3;
B[i] = Integer.parseInt(retB[i]);
}
int AB = 0;
for (int j = 0; j < n; j++) {
int C = 0;
for (int k = 0; k < m; k++) {
AB = A[j][k] * B[k];
C += AB;
}
System.out.println(C);
}
}
} |
[
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,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
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
],
[
157,
5
],
[
157,
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
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
33,
43
],
[
43,
44
],
[
44,
45
],
[
33,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
48,
58
],
[
58,
59
],
[
59,
60
],
[
48,
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
],
[
75,
77
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
79,
89
],
[
89,
90
],
[
90,
91
],
[
79,
92
],
[
93,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
101,
102
],
[
102,
103
],
[
8,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
111,
113
],
[
104,
114
],
[
114,
115
],
[
115,
116
],
[
104,
117
],
[
118,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
129,
131
],
[
122,
132
],
[
132,
133
],
[
133,
134
],
[
122,
135
],
[
136,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
139,
145
],
[
145,
146
],
[
145,
147
],
[
118,
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\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\tint n = Integer.parseInt(std.next());\n\t\tint m = Integer.parseInt(std.next());\n\n\t\tint matrix[][] = new int[n][m];\n\t\tfor(int i=0; i<=n-1; i++){\n\t\t\tfor(int j=0; j<=m-1; j++){\n\t\t\t\tmatrix[i][j] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}\n\n\t\tint vector[] = new int [m];\n\t\tfor(int k=0; k<=m-1; k++){\n\t\t\tvector[k] = Integer.parseInt(std.next());\n\t\t}\n\n\t\tfor(int i=0; i<=n-1; i++){\n\t\t\tint ans = 0;\n\t\t\tfor(int j=0; j<=m-1; j++){\n\t\t\t\tans += matrix[i][j] * vector[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\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\tint n = Integer.parseInt(std.next());\n\t\tint m = Integer.parseInt(std.next());\n\n\t\tint matrix[][] = new int[n][m];\n\t\tfor(int i=0; i<=n-1; i++){\n\t\t\tfor(int j=0; j<=m-1; j++){\n\t\t\t\tmatrix[i][j] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}\n\n\t\tint vector[] = new int [m];\n\t\tfor(int k=0; k<=m-1; k++){\n\t\t\tvector[k] = Integer.parseInt(std.next());\n\t\t}\n\n\t\tfor(int i=0; i<=n-1; i++){\n\t\t\tint ans = 0;\n\t\t\tfor(int j=0; j<=m-1; j++){\n\t\t\t\tans += matrix[i][j] * vector[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\tint n = Integer.parseInt(std.next());\n\t\tint m = Integer.parseInt(std.next());\n\n\t\tint matrix[][] = new int[n][m];\n\t\tfor(int i=0; i<=n-1; i++){\n\t\t\tfor(int j=0; j<=m-1; j++){\n\t\t\t\tmatrix[i][j] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}\n\n\t\tint vector[] = new int [m];\n\t\tfor(int k=0; k<=m-1; k++){\n\t\t\tvector[k] = Integer.parseInt(std.next());\n\t\t}\n\n\t\tfor(int i=0; i<=n-1; i++){\n\t\t\tint ans = 0;\n\t\t\tfor(int j=0; j<=m-1; j++){\n\t\t\t\tans += matrix[i][j] * vector[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner std = new Scanner(System.in);\n\t\tint n = Integer.parseInt(std.next());\n\t\tint m = Integer.parseInt(std.next());\n\n\t\tint matrix[][] = new int[n][m];\n\t\tfor(int i=0; i<=n-1; i++){\n\t\t\tfor(int j=0; j<=m-1; j++){\n\t\t\t\tmatrix[i][j] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}\n\n\t\tint vector[] = new int [m];\n\t\tfor(int k=0; k<=m-1; k++){\n\t\t\tvector[k] = Integer.parseInt(std.next());\n\t\t}\n\n\t\tfor(int i=0; i<=n-1; i++){\n\t\t\tint ans = 0;\n\t\t\tfor(int j=0; j<=m-1; j++){\n\t\t\t\tans += matrix[i][j] * vector[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}",
"Scanner std = new Scanner(System.in);",
"std",
"new Scanner(System.in)",
"int n = Integer.parseInt(std.next());",
"n",
"Integer.parseInt(std.next())",
"Integer.parseInt",
"Integer",
"std.next()",
"std.next",
"std",
"int m = Integer.parseInt(std.next());",
"m",
"Integer.parseInt(std.next())",
"Integer.parseInt",
"Integer",
"std.next()",
"std.next",
"std",
"int matrix[][] = new int[n][m];",
"matrix",
"new int[n][m]",
"n",
"m",
"for(int i=0; i<=n-1; i++){\n\t\t\tfor(int j=0; j<=m-1; j++){\n\t\t\t\tmatrix[i][j] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<=n-1",
"i",
"n-1",
"n",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0; j<=m-1; j++){\n\t\t\t\tmatrix[i][j] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0; j<=m-1; j++){\n\t\t\t\tmatrix[i][j] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}",
"for(int j=0; j<=m-1; j++){\n\t\t\t\tmatrix[i][j] = Integer.parseInt(std.next());\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<=m-1",
"j",
"m-1",
"m",
"1",
"j++",
"j++",
"j",
"{\n\t\t\t\tmatrix[i][j] = Integer.parseInt(std.next());\n\t\t\t}",
"{\n\t\t\t\tmatrix[i][j] = Integer.parseInt(std.next());\n\t\t\t}",
"matrix[i][j] = Integer.parseInt(std.next())",
"matrix[i][j]",
"matrix[i]",
"matrix",
"i",
"j",
"Integer.parseInt(std.next())",
"Integer.parseInt",
"Integer",
"std.next()",
"std.next",
"std",
"int vector[] = new int [m];",
"vector",
"new int [m]",
"m",
"for(int k=0; k<=m-1; k++){\n\t\t\tvector[k] = Integer.parseInt(std.next());\n\t\t}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<=m-1",
"k",
"m-1",
"m",
"1",
"k++",
"k++",
"k",
"{\n\t\t\tvector[k] = Integer.parseInt(std.next());\n\t\t}",
"{\n\t\t\tvector[k] = Integer.parseInt(std.next());\n\t\t}",
"vector[k] = Integer.parseInt(std.next())",
"vector[k]",
"vector",
"k",
"Integer.parseInt(std.next())",
"Integer.parseInt",
"Integer",
"std.next()",
"std.next",
"std",
"for(int i=0; i<=n-1; i++){\n\t\t\tint ans = 0;\n\t\t\tfor(int j=0; j<=m-1; j++){\n\t\t\t\tans += matrix[i][j] * vector[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-1",
"i",
"n-1",
"n",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tint ans = 0;\n\t\t\tfor(int j=0; j<=m-1; j++){\n\t\t\t\tans += matrix[i][j] * vector[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-1; j++){\n\t\t\t\tans += matrix[i][j] * vector[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-1; j++){\n\t\t\t\tans += matrix[i][j] * vector[j];\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<=m-1",
"j",
"m-1",
"m",
"1",
"j++",
"j++",
"j",
"{\n\t\t\t\tans += matrix[i][j] * vector[j];\n\t\t\t}",
"{\n\t\t\t\tans += matrix[i][j] * vector[j];\n\t\t\t}",
"ans += matrix[i][j] * vector[j]",
"ans",
"matrix[i][j] * vector[j]",
"matrix[i][j]",
"matrix[i]",
"matrix",
"i",
"j",
"vector[j]",
"vector",
"j",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\tint n = Integer.parseInt(std.next());\n\t\tint m = Integer.parseInt(std.next());\n\n\t\tint matrix[][] = new int[n][m];\n\t\tfor(int i=0; i<=n-1; i++){\n\t\t\tfor(int j=0; j<=m-1; j++){\n\t\t\t\tmatrix[i][j] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}\n\n\t\tint vector[] = new int [m];\n\t\tfor(int k=0; k<=m-1; k++){\n\t\t\tvector[k] = Integer.parseInt(std.next());\n\t\t}\n\n\t\tfor(int i=0; i<=n-1; i++){\n\t\t\tint ans = 0;\n\t\t\tfor(int j=0; j<=m-1; j++){\n\t\t\t\tans += matrix[i][j] * vector[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\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\tint n = Integer.parseInt(std.next());\n\t\tint m = Integer.parseInt(std.next());\n\n\t\tint matrix[][] = new int[n][m];\n\t\tfor(int i=0; i<=n-1; i++){\n\t\t\tfor(int j=0; j<=m-1; j++){\n\t\t\t\tmatrix[i][j] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}\n\n\t\tint vector[] = new int [m];\n\t\tfor(int k=0; k<=m-1; k++){\n\t\t\tvector[k] = Integer.parseInt(std.next());\n\t\t}\n\n\t\tfor(int i=0; i<=n-1; i++){\n\t\t\tint ans = 0;\n\t\t\tfor(int j=0; j<=m-1; j++){\n\t\t\t\tans += matrix[i][j] * vector[j];\n\t\t\t}\n\t\t\tSystem.out.println(ans);\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);
int n = Integer.parseInt(std.next());
int m = Integer.parseInt(std.next());
int matrix[][] = new int[n][m];
for(int i=0; i<=n-1; i++){
for(int j=0; j<=m-1; j++){
matrix[i][j] = Integer.parseInt(std.next());
}
}
int vector[] = new int [m];
for(int k=0; k<=m-1; k++){
vector[k] = Integer.parseInt(std.next());
}
for(int i=0; i<=n-1; i++){
int ans = 0;
for(int j=0; j<=m-1; j++){
ans += matrix[i][j] * vector[j];
}
System.out.println(ans);
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
4,
13,
4,
13,
23,
13,
12,
13,
30,
0,
13,
4,
18,
13,
0,
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,
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,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
18,
13,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
160,
5
],
[
160,
6
],
[
6,
7
],
[
6,
8
],
[
160,
9
],
[
9,
10
],
[
160,
11
],
[
11,
12
],
[
160,
13
],
[
13,
14
],
[
160,
15
],
[
15,
16
],
[
160,
17
],
[
17,
18
],
[
160,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
21,
24
],
[
24,
25
],
[
19,
26
],
[
26,
27
],
[
160,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
41,
42
],
[
41,
43
],
[
30,
46
],
[
46,
47
],
[
46,
48
],
[
30,
50
],
[
50,
51
],
[
50,
52
],
[
30,
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
],
[
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
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
80,
86
],
[
86,
87
],
[
87,
88
],
[
30,
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
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
107,
108
],
[
160,
109
],
[
109,
110
],
[
109,
111
],
[
111,
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
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
142,
148
],
[
148,
149
],
[
148,
150
],
[
124,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
156,
157
],
[
156,
158
],
[
0,
159
],
[
159,
160
],
[
159,
161
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n\n\tstatic Scanner s=new Scanner(System.in);\n\n\tpublic static void main(String __[]){\n\t\tinput();\n\t\tsolve();\n\t}\n\n\tstatic int n,m,a[][],b[],c[];\n\tprivate static void input(){\n\t\tn=s.nextInt();\n\t\tm=s.nextInt();\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\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\tb[j]=s.nextInt();\n\t\t\t}\n\t}\n\tprivate static void solve(){\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\tSystem.out.println(c[i]);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n\tstatic Scanner s=new Scanner(System.in);\n\n\tpublic static void main(String __[]){\n\t\tinput();\n\t\tsolve();\n\t}\n\n\tstatic int n,m,a[][],b[],c[];\n\tprivate static void input(){\n\t\tn=s.nextInt();\n\t\tm=s.nextInt();\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\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\tb[j]=s.nextInt();\n\t\t\t}\n\t}\n\tprivate static void solve(){\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\tSystem.out.println(c[i]);\n\t\t}\n\t}\n}",
"Main",
"static Scanner s=new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"static int n",
"n",
"m",
"m",
"a[][]",
"a",
"b[]",
"b",
"c[];",
"c",
"public static void main(String __[]){\n\t\tinput();\n\t\tsolve();\n\t}",
"main",
"{\n\t\tinput();\n\t\tsolve();\n\t}",
"input()",
"input",
"solve()",
"solve",
"String __[]",
"__",
"private static void input(){\n\t\tn=s.nextInt();\n\t\tm=s.nextInt();\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\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\tb[j]=s.nextInt();\n\t\t\t}\n\t}",
"input",
"{\n\t\tn=s.nextInt();\n\t\tm=s.nextInt();\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\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\tb[j]=s.nextInt();\n\t\t\t}\n\t}",
"n=s.nextInt()",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"m=s.nextInt()",
"m",
"s.nextInt()",
"s.nextInt",
"s",
"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\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 j=0;j<m;j++) {\n\t\t\t\tb[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\tb[j]=s.nextInt();\n\t\t\t}",
"{\n\t\t\t\tb[j]=s.nextInt();\n\t\t\t}",
"b[j]=s.nextInt()",
"b[j]",
"b",
"j",
"s.nextInt()",
"s.nextInt",
"s",
"private static void solve(){\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\tSystem.out.println(c[i]);\n\t\t}\n\t}",
"solve",
"{\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\tSystem.out.println(c[i]);\n\t\t}\n\t}",
"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\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\tc[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(int j=0;j<m;j++) {\n\t\t\t\tc[i]+=a[i][j]*b[j];\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\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",
"System.out.println(c[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[i]",
"c",
"i",
"public class Main{\n\n\tstatic Scanner s=new Scanner(System.in);\n\n\tpublic static void main(String __[]){\n\t\tinput();\n\t\tsolve();\n\t}\n\n\tstatic int n,m,a[][],b[],c[];\n\tprivate static void input(){\n\t\tn=s.nextInt();\n\t\tm=s.nextInt();\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\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\tb[j]=s.nextInt();\n\t\t\t}\n\t}\n\tprivate static void solve(){\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\tSystem.out.println(c[i]);\n\t\t}\n\t}\n}",
"public class Main{\n\n\tstatic Scanner s=new Scanner(System.in);\n\n\tpublic static void main(String __[]){\n\t\tinput();\n\t\tsolve();\n\t}\n\n\tstatic int n,m,a[][],b[],c[];\n\tprivate static void input(){\n\t\tn=s.nextInt();\n\t\tm=s.nextInt();\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\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\tb[j]=s.nextInt();\n\t\t\t}\n\t}\n\tprivate static void solve(){\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\tSystem.out.println(c[i]);\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main{
static Scanner s=new Scanner(System.in);
public static void main(String __[]){
input();
solve();
}
static int n,m,a[][],b[],c[];
private static void input(){
n=s.nextInt();
m=s.nextInt();
a=new int[n][m];
b=new int[m];
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 j=0;j<m;j++) {
b[j]=s.nextInt();
}
}
private static void solve(){
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,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
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,
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,
41,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
0,
13,
13,
4,
18,
4,
18,
13,
13,
17,
0,
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
],
[
185,
11
],
[
185,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
23,
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
],
[
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
],
[
123,
125
],
[
14,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
126,
134
],
[
134,
135
],
[
135,
136
],
[
126,
137
],
[
138,
138
],
[
138,
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
],
[
151,
163
],
[
163,
164
],
[
163,
165
],
[
138,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
168,
171
],
[
166,
172
],
[
138,
173
],
[
173,
174
],
[
173,
175
],
[
14,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
176,
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\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tString[] str = br.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\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] aStr = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = Integer.parseInt(aStr[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tb[i] = Integer.parseInt(br.readLine());\n\t\t}\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tint c = a[i][j] * b[j];\n\t\t\t\tsum += c;\n\t\t\t}\n\t\t\tsb.append(sum).append(\"\\n\");\n\t\t\tsum = 0;\n\t\t}\n\n\t\tSystem.out.print(sb);\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\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tString[] str = br.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\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] aStr = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = Integer.parseInt(aStr[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tb[i] = Integer.parseInt(br.readLine());\n\t\t}\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tint c = a[i][j] * b[j];\n\t\t\t\tsum += c;\n\t\t\t}\n\t\t\tsb.append(sum).append(\"\\n\");\n\t\t\tsum = 0;\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tString[] str = br.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\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] aStr = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = Integer.parseInt(aStr[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tb[i] = Integer.parseInt(br.readLine());\n\t\t}\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tint c = a[i][j] * b[j];\n\t\t\t\tsum += c;\n\t\t\t}\n\t\t\tsb.append(sum).append(\"\\n\");\n\t\t\tsum = 0;\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tString[] str = br.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\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] aStr = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = Integer.parseInt(aStr[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tb[i] = Integer.parseInt(br.readLine());\n\t\t}\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tint c = a[i][j] * b[j];\n\t\t\t\tsum += c;\n\t\t\t}\n\t\t\tsb.append(sum).append(\"\\n\");\n\t\t\tsum = 0;\n\t\t}\n\n\t\tSystem.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[] str = br.readLine().split(\" \");",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"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",
"for (int i = 0; i < n; i++) {\n\t\t\tString[] aStr = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = Integer.parseInt(aStr[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[] aStr = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = Integer.parseInt(aStr[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] aStr = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = Integer.parseInt(aStr[j]);\n\t\t\t}\n\t\t}",
"String[] aStr = br.readLine().split(\" \");",
"aStr",
"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(aStr[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(aStr[j]);\n\t\t\t}",
"{\n\t\t\t\ta[i][j] = Integer.parseInt(aStr[j]);\n\t\t\t}",
"a[i][j] = Integer.parseInt(aStr[j])",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"Integer.parseInt(aStr[j])",
"Integer.parseInt",
"Integer",
"aStr[j]",
"aStr",
"j",
"for (int i = 0; i < m; i++) {\n\t\t\tb[i] = Integer.parseInt(br.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(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",
"int sum = 0;",
"sum",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tint c = a[i][j] * b[j];\n\t\t\t\tsum += c;\n\t\t\t}\n\t\t\tsb.append(sum).append(\"\\n\");\n\t\t\tsum = 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\tint c = a[i][j] * b[j];\n\t\t\t\tsum += c;\n\t\t\t}\n\t\t\tsb.append(sum).append(\"\\n\");\n\t\t\tsum = 0;\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tint c = a[i][j] * b[j];\n\t\t\t\tsum += c;\n\t\t\t}\n\t\t\tsb.append(sum).append(\"\\n\");\n\t\t\tsum = 0;\n\t\t}",
"for (int j = 0; j < m; j++) {\n\t\t\t\tint c = a[i][j] * b[j];\n\t\t\t\tsum += 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 c = a[i][j] * b[j];\n\t\t\t\tsum += c;\n\t\t\t}",
"{\n\t\t\t\tint c = a[i][j] * b[j];\n\t\t\t\tsum += c;\n\t\t\t}",
"int c = a[i][j] * b[j];",
"c",
"a[i][j] * b[j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"sum += c",
"sum",
"c",
"sb.append(sum).append(\"\\n\")",
"sb.append(sum).append",
"sb.append(sum)",
"sb.append",
"sb",
"sum",
"\"\\n\"",
"sum = 0",
"sum",
"0",
"System.out.print(sb)",
"System.out.print",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tString[] str = br.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\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] aStr = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = Integer.parseInt(aStr[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tb[i] = Integer.parseInt(br.readLine());\n\t\t}\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tint c = a[i][j] * b[j];\n\t\t\t\tsum += c;\n\t\t\t}\n\t\t\tsb.append(sum).append(\"\\n\");\n\t\t\tsum = 0;\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tString[] str = br.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\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] aStr = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta[i][j] = Integer.parseInt(aStr[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tb[i] = Integer.parseInt(br.readLine());\n\t\t}\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tint c = a[i][j] * b[j];\n\t\t\t\tsum += c;\n\t\t\t}\n\t\t\tsb.append(sum).append(\"\\n\");\n\t\t\tsum = 0;\n\t\t}\n\n\t\tSystem.out.print(sb);\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));
StringBuilder sb = new StringBuilder();
String[] str = br.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];
for (int i = 0; i < n; i++) {
String[] aStr = br.readLine().split(" ");
for (int j = 0; j < m; j++) {
a[i][j] = Integer.parseInt(aStr[j]);
}
}
for (int i = 0; i < m; i++) {
b[i] = Integer.parseInt(br.readLine());
}
int sum = 0;
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
int c = a[i][j] * b[j];
sum += c;
}
sb.append(sum).append("\n");
sum = 0;
}
System.out.print(sb);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
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,
12,
13,
30,
4,
18,
20,
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
],
[
19,
20
],
[
20,
21
],
[
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
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
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
],
[
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
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
75,
81
],
[
81,
82
],
[
82,
83
],
[
8,
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
],
[
8,
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
],
[
116,
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
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
135,
141
],
[
141,
142
],
[
141,
143
],
[
116,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
144,
149
],
[
159,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
150,
156
],
[
156,
157
],
[
0,
158
],
[
158,
159
],
[
158,
160
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint[][] a = new int[n][];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = new int[m];\n\t\t}\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] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tb[i] = scan.nextInt();\n\t\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 += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint[][] a = new int[n][];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = new int[m];\n\t\t}\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] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tb[i] = scan.nextInt();\n\t\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 += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"Main",
"void run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint[][] a = new int[n][];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = new int[m];\n\t\t}\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] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tb[i] = scan.nextInt();\n\t\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 += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}",
"run",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint[][] a = new int[n][];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = new int[m];\n\t\t}\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] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tb[i] = scan.nextInt();\n\t\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 += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\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][];",
"a",
"new int[n][]",
"n",
"for (int i = 0; i < n; i++) {\n\t\t\ta[i] = new int[m];\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ta[i] = new int[m];\n\t\t}",
"{\n\t\t\ta[i] = new int[m];\n\t\t}",
"a[i] = new int[m]",
"a[i]",
"a",
"i",
"new int[m]",
"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 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\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\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\tSystem.out.println(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 += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\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",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"public static void main(String[] args) {\n\t\tnew Main().run();\n\t}",
"main",
"{\n\t\tnew Main().run();\n\t}",
"new Main().run()",
"new Main().run",
"new Main()",
"String[] args",
"args",
"public class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint[][] a = new int[n][];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = new int[m];\n\t\t}\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] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tb[i] = scan.nextInt();\n\t\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 += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"public class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint[][] a = new int[n][];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = new int[m];\n\t\t}\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] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tb[i] = scan.nextInt();\n\t\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 += a[i][j] * b[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
void run() {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int m = scan.nextInt();
int[][] a = new int[n][];
for (int i = 0; i < n; i++) {
a[i] = new int[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 sum = 0;
for (int j = 0; j < m; j++) {
sum += a[i][j] * b[j];
}
System.out.println(sum);
}
}
public static void main(String[] args) {
new Main().run();
}
} |
[
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,
4,
18,
13,
17,
41,
13,
20,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
18,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
18,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
18,
13,
13,
4,
18,
13,
13,
0,
13,
20,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
18,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
18,
13,
17,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
18,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
4,
18,
4,
18,
13,
13,
13,
4,
18,
13,
13,
4,
18,
13,
13,
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
] | [
[
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
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
23,
28
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
17,
32
],
[
32,
33
],
[
32,
34
],
[
17,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
45,
47
],
[
35,
48
],
[
48,
49
],
[
49,
50
],
[
35,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
55,
60
],
[
52,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
71,
73
],
[
61,
74
],
[
74,
75
],
[
75,
76
],
[
61,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
85,
86
],
[
85,
87
],
[
52,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
52,
92
],
[
92,
93
],
[
92,
94
],
[
17,
95
],
[
95,
96
],
[
95,
97
],
[
17,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
108,
109
],
[
108,
110
],
[
98,
111
],
[
111,
112
],
[
112,
113
],
[
98,
114
],
[
115,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
121,
122
],
[
122,
123
],
[
115,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
17,
128
],
[
128,
129
],
[
128,
130
],
[
17,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
138,
141
],
[
141,
142
],
[
141,
143
],
[
131,
144
],
[
144,
145
],
[
145,
146
],
[
131,
147
],
[
148,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
148,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
152,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
159,
162
],
[
162,
163
],
[
162,
164
],
[
152,
165
],
[
165,
166
],
[
166,
167
],
[
152,
168
],
[
169,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
175,
178
],
[
173,
179
],
[
172,
180
],
[
180,
181
],
[
181,
182
],
[
180,
183
],
[
148,
184
],
[
184,
185
],
[
185,
186
],
[
184,
187
],
[
17,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
188,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
196,
197
],
[
188,
198
],
[
198,
199
],
[
199,
200
],
[
188,
201
],
[
202,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
203,
208
],
[
208,
209
],
[
209,
210
],
[
208,
211
],
[
15,
212
],
[
212,
213
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\nclass Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] aArrays = br.readLine().split(\" \");\n\t\tArrayList<ArrayList<Integer>> itiKaiso = new ArrayList<ArrayList<Integer>>();\n\t\tArrayList<Integer> niKaiso = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < Integer.parseInt(aArrays[0]); i++) {\n\t\t\tString[] aLine = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < Integer.parseInt(aArrays[1]); j++) {\n\t\t\t\tniKaiso.add(Integer.parseInt(aLine[j]));\n\t\t\t}\n\t\t\titiKaiso.add(niKaiso);\n\t\t\tniKaiso = new ArrayList<Integer>();\n\t\t}\n\t\tArrayList<Integer> bArraysList = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < Integer.parseInt(aArrays[1]); i++) {\n\t\t\tInteger bNum = Integer.parseInt(br.readLine());\n\t\t\tbArraysList.add(bNum);\n\t\t}\n\t\tArrayList<Integer> cArrayList = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < Integer.parseInt(aArrays[0]); i++) {\n\t\t\tInteger sum = 0;\n\t\t\tfor (int j = 0; j < Integer.parseInt(aArrays[1]); j++) {\n\t\t\t\tsum += itiKaiso.get(i).get(j) * bArraysList.get(j);\n\t\t\t}\n\t\t\tcArrayList.add(sum);\n\t\t}\n\t\tfor (int i = 0; i < cArrayList.size(); i++) {\n\t\t\tSystem.out.println(cArrayList.get(i));\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",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] aArrays = br.readLine().split(\" \");\n\t\tArrayList<ArrayList<Integer>> itiKaiso = new ArrayList<ArrayList<Integer>>();\n\t\tArrayList<Integer> niKaiso = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < Integer.parseInt(aArrays[0]); i++) {\n\t\t\tString[] aLine = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < Integer.parseInt(aArrays[1]); j++) {\n\t\t\t\tniKaiso.add(Integer.parseInt(aLine[j]));\n\t\t\t}\n\t\t\titiKaiso.add(niKaiso);\n\t\t\tniKaiso = new ArrayList<Integer>();\n\t\t}\n\t\tArrayList<Integer> bArraysList = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < Integer.parseInt(aArrays[1]); i++) {\n\t\t\tInteger bNum = Integer.parseInt(br.readLine());\n\t\t\tbArraysList.add(bNum);\n\t\t}\n\t\tArrayList<Integer> cArrayList = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < Integer.parseInt(aArrays[0]); i++) {\n\t\t\tInteger sum = 0;\n\t\t\tfor (int j = 0; j < Integer.parseInt(aArrays[1]); j++) {\n\t\t\t\tsum += itiKaiso.get(i).get(j) * bArraysList.get(j);\n\t\t\t}\n\t\t\tcArrayList.add(sum);\n\t\t}\n\t\tfor (int i = 0; i < cArrayList.size(); i++) {\n\t\t\tSystem.out.println(cArrayList.get(i));\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] aArrays = br.readLine().split(\" \");\n\t\tArrayList<ArrayList<Integer>> itiKaiso = new ArrayList<ArrayList<Integer>>();\n\t\tArrayList<Integer> niKaiso = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < Integer.parseInt(aArrays[0]); i++) {\n\t\t\tString[] aLine = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < Integer.parseInt(aArrays[1]); j++) {\n\t\t\t\tniKaiso.add(Integer.parseInt(aLine[j]));\n\t\t\t}\n\t\t\titiKaiso.add(niKaiso);\n\t\t\tniKaiso = new ArrayList<Integer>();\n\t\t}\n\t\tArrayList<Integer> bArraysList = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < Integer.parseInt(aArrays[1]); i++) {\n\t\t\tInteger bNum = Integer.parseInt(br.readLine());\n\t\t\tbArraysList.add(bNum);\n\t\t}\n\t\tArrayList<Integer> cArrayList = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < Integer.parseInt(aArrays[0]); i++) {\n\t\t\tInteger sum = 0;\n\t\t\tfor (int j = 0; j < Integer.parseInt(aArrays[1]); j++) {\n\t\t\t\tsum += itiKaiso.get(i).get(j) * bArraysList.get(j);\n\t\t\t}\n\t\t\tcArrayList.add(sum);\n\t\t}\n\t\tfor (int i = 0; i < cArrayList.size(); i++) {\n\t\t\tSystem.out.println(cArrayList.get(i));\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] aArrays = br.readLine().split(\" \");\n\t\tArrayList<ArrayList<Integer>> itiKaiso = new ArrayList<ArrayList<Integer>>();\n\t\tArrayList<Integer> niKaiso = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < Integer.parseInt(aArrays[0]); i++) {\n\t\t\tString[] aLine = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < Integer.parseInt(aArrays[1]); j++) {\n\t\t\t\tniKaiso.add(Integer.parseInt(aLine[j]));\n\t\t\t}\n\t\t\titiKaiso.add(niKaiso);\n\t\t\tniKaiso = new ArrayList<Integer>();\n\t\t}\n\t\tArrayList<Integer> bArraysList = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < Integer.parseInt(aArrays[1]); i++) {\n\t\t\tInteger bNum = Integer.parseInt(br.readLine());\n\t\t\tbArraysList.add(bNum);\n\t\t}\n\t\tArrayList<Integer> cArrayList = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < Integer.parseInt(aArrays[0]); i++) {\n\t\t\tInteger sum = 0;\n\t\t\tfor (int j = 0; j < Integer.parseInt(aArrays[1]); j++) {\n\t\t\t\tsum += itiKaiso.get(i).get(j) * bArraysList.get(j);\n\t\t\t}\n\t\t\tcArrayList.add(sum);\n\t\t}\n\t\tfor (int i = 0; i < cArrayList.size(); i++) {\n\t\t\tSystem.out.println(cArrayList.get(i));\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] aArrays = br.readLine().split(\" \");",
"aArrays",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"ArrayList<ArrayList<Integer>> itiKaiso = new ArrayList<ArrayList<Integer>>();",
"itiKaiso",
"new ArrayList<ArrayList<Integer>>()",
"ArrayList<Integer> niKaiso = new ArrayList<Integer>();",
"niKaiso",
"new ArrayList<Integer>()",
"for (int i = 0; i < Integer.parseInt(aArrays[0]); i++) {\n\t\t\tString[] aLine = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < Integer.parseInt(aArrays[1]); j++) {\n\t\t\t\tniKaiso.add(Integer.parseInt(aLine[j]));\n\t\t\t}\n\t\t\titiKaiso.add(niKaiso);\n\t\t\tniKaiso = new ArrayList<Integer>();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < Integer.parseInt(aArrays[0])",
"i",
"Integer.parseInt(aArrays[0])",
"Integer.parseInt",
"Integer",
"aArrays[0]",
"aArrays",
"0",
"i++",
"i++",
"i",
"{\n\t\t\tString[] aLine = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < Integer.parseInt(aArrays[1]); j++) {\n\t\t\t\tniKaiso.add(Integer.parseInt(aLine[j]));\n\t\t\t}\n\t\t\titiKaiso.add(niKaiso);\n\t\t\tniKaiso = new ArrayList<Integer>();\n\t\t}",
"{\n\t\t\tString[] aLine = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < Integer.parseInt(aArrays[1]); j++) {\n\t\t\t\tniKaiso.add(Integer.parseInt(aLine[j]));\n\t\t\t}\n\t\t\titiKaiso.add(niKaiso);\n\t\t\tniKaiso = new ArrayList<Integer>();\n\t\t}",
"String[] aLine = br.readLine().split(\" \");",
"aLine",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for (int j = 0; j < Integer.parseInt(aArrays[1]); j++) {\n\t\t\t\tniKaiso.add(Integer.parseInt(aLine[j]));\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < Integer.parseInt(aArrays[1])",
"j",
"Integer.parseInt(aArrays[1])",
"Integer.parseInt",
"Integer",
"aArrays[1]",
"aArrays",
"1",
"j++",
"j++",
"j",
"{\n\t\t\t\tniKaiso.add(Integer.parseInt(aLine[j]));\n\t\t\t}",
"{\n\t\t\t\tniKaiso.add(Integer.parseInt(aLine[j]));\n\t\t\t}",
"niKaiso.add(Integer.parseInt(aLine[j]))",
"niKaiso.add",
"niKaiso",
"Integer.parseInt(aLine[j])",
"Integer.parseInt",
"Integer",
"aLine[j]",
"aLine",
"j",
"itiKaiso.add(niKaiso)",
"itiKaiso.add",
"itiKaiso",
"niKaiso",
"niKaiso = new ArrayList<Integer>()",
"niKaiso",
"new ArrayList<Integer>()",
"ArrayList<Integer> bArraysList = new ArrayList<Integer>();",
"bArraysList",
"new ArrayList<Integer>()",
"for (int i = 0; i < Integer.parseInt(aArrays[1]); i++) {\n\t\t\tInteger bNum = Integer.parseInt(br.readLine());\n\t\t\tbArraysList.add(bNum);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < Integer.parseInt(aArrays[1])",
"i",
"Integer.parseInt(aArrays[1])",
"Integer.parseInt",
"Integer",
"aArrays[1]",
"aArrays",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tInteger bNum = Integer.parseInt(br.readLine());\n\t\t\tbArraysList.add(bNum);\n\t\t}",
"{\n\t\t\tInteger bNum = Integer.parseInt(br.readLine());\n\t\t\tbArraysList.add(bNum);\n\t\t}",
"Integer bNum = Integer.parseInt(br.readLine());",
"bNum",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"bArraysList.add(bNum)",
"bArraysList.add",
"bArraysList",
"bNum",
"ArrayList<Integer> cArrayList = new ArrayList<Integer>();",
"cArrayList",
"new ArrayList<Integer>()",
"for (int i = 0; i < Integer.parseInt(aArrays[0]); i++) {\n\t\t\tInteger sum = 0;\n\t\t\tfor (int j = 0; j < Integer.parseInt(aArrays[1]); j++) {\n\t\t\t\tsum += itiKaiso.get(i).get(j) * bArraysList.get(j);\n\t\t\t}\n\t\t\tcArrayList.add(sum);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < Integer.parseInt(aArrays[0])",
"i",
"Integer.parseInt(aArrays[0])",
"Integer.parseInt",
"Integer",
"aArrays[0]",
"aArrays",
"0",
"i++",
"i++",
"i",
"{\n\t\t\tInteger sum = 0;\n\t\t\tfor (int j = 0; j < Integer.parseInt(aArrays[1]); j++) {\n\t\t\t\tsum += itiKaiso.get(i).get(j) * bArraysList.get(j);\n\t\t\t}\n\t\t\tcArrayList.add(sum);\n\t\t}",
"{\n\t\t\tInteger sum = 0;\n\t\t\tfor (int j = 0; j < Integer.parseInt(aArrays[1]); j++) {\n\t\t\t\tsum += itiKaiso.get(i).get(j) * bArraysList.get(j);\n\t\t\t}\n\t\t\tcArrayList.add(sum);\n\t\t}",
"Integer sum = 0;",
"sum",
"0",
"for (int j = 0; j < Integer.parseInt(aArrays[1]); j++) {\n\t\t\t\tsum += itiKaiso.get(i).get(j) * bArraysList.get(j);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < Integer.parseInt(aArrays[1])",
"j",
"Integer.parseInt(aArrays[1])",
"Integer.parseInt",
"Integer",
"aArrays[1]",
"aArrays",
"1",
"j++",
"j++",
"j",
"{\n\t\t\t\tsum += itiKaiso.get(i).get(j) * bArraysList.get(j);\n\t\t\t}",
"{\n\t\t\t\tsum += itiKaiso.get(i).get(j) * bArraysList.get(j);\n\t\t\t}",
"sum += itiKaiso.get(i).get(j) * bArraysList.get(j)",
"sum",
"itiKaiso.get(i).get(j) * bArraysList.get(j)",
"itiKaiso.get(i).get(j)",
"itiKaiso.get(i).get",
"itiKaiso.get(i)",
"itiKaiso.get",
"itiKaiso",
"i",
"j",
"bArraysList.get(j)",
"bArraysList.get",
"bArraysList",
"j",
"cArrayList.add(sum)",
"cArrayList.add",
"cArrayList",
"sum",
"for (int i = 0; i < cArrayList.size(); i++) {\n\t\t\tSystem.out.println(cArrayList.get(i));\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < cArrayList.size()",
"i",
"cArrayList.size()",
"cArrayList.size",
"cArrayList",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(cArrayList.get(i));\n\t\t}",
"{\n\t\t\tSystem.out.println(cArrayList.get(i));\n\t\t}",
"System.out.println(cArrayList.get(i))",
"System.out.println",
"System.out",
"System",
"System.out",
"cArrayList.get(i)",
"cArrayList.get",
"cArrayList",
"i",
"String[] args",
"args"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] aArrays = br.readLine().split(" ");
ArrayList<ArrayList<Integer>> itiKaiso = new ArrayList<ArrayList<Integer>>();
ArrayList<Integer> niKaiso = new ArrayList<Integer>();
for (int i = 0; i < Integer.parseInt(aArrays[0]); i++) {
String[] aLine = br.readLine().split(" ");
for (int j = 0; j < Integer.parseInt(aArrays[1]); j++) {
niKaiso.add(Integer.parseInt(aLine[j]));
}
itiKaiso.add(niKaiso);
niKaiso = new ArrayList<Integer>();
}
ArrayList<Integer> bArraysList = new ArrayList<Integer>();
for (int i = 0; i < Integer.parseInt(aArrays[1]); i++) {
Integer bNum = Integer.parseInt(br.readLine());
bArraysList.add(bNum);
}
ArrayList<Integer> cArrayList = new ArrayList<Integer>();
for (int i = 0; i < Integer.parseInt(aArrays[0]); i++) {
Integer sum = 0;
for (int j = 0; j < Integer.parseInt(aArrays[1]); j++) {
sum += itiKaiso.get(i).get(j) * bArraysList.get(j);
}
cArrayList.add(sum);
}
for (int i = 0; i < cArrayList.size(); i++) {
System.out.println(cArrayList.get(i));
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
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,
4,
18,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
4,
18,
13,
4,
18,
13,
41,
13,
20,
4,
18,
13,
13,
13,
4,
18,
13,
17,
23,
13,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
4,
18,
13,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
0,
13,
2,
4,
18,
13,
13,
13,
4,
18,
13,
13,
13,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
4,
18,
13,
17,
12,
13,
30,
29,
4,
18,
4,
18,
13,
13,
13,
23,
13,
23,
13,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
4,
18,
13,
4,
18,
13,
18,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
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
],
[
305,
14
],
[
305,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
17,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
24,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
31,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
43,
45
],
[
31,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
51,
53
],
[
31,
54
],
[
54,
55
],
[
54,
56
],
[
31,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
57,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
73,
74
],
[
31,
75
],
[
75,
76
],
[
75,
77
],
[
31,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
78,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
94,
95
],
[
31,
96
],
[
96,
97
],
[
96,
98
],
[
31,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
99,
103
],
[
17,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
15,
108
],
[
108,
109
],
[
0,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
121,
122
],
[
122,
123
],
[
121,
124
],
[
115,
125
],
[
125,
126
],
[
110,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
130,
140
],
[
140,
141
],
[
141,
142
],
[
130,
143
],
[
144,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
145,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
145,
155
],
[
155,
156
],
[
156,
157
],
[
145,
158
],
[
159,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
163,
173
],
[
173,
174
],
[
174,
175
],
[
163,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
180,
183
],
[
180,
184
],
[
179,
185
],
[
185,
186
],
[
186,
187
],
[
185,
188
],
[
185,
189
],
[
159,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
190,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
194,
199
],
[
159,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
200,
205
],
[
144,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
206,
211
],
[
127,
212
],
[
212,
213
],
[
127,
214
],
[
214,
215
],
[
110,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
110,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
229,
232
],
[
110,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
239,
242
],
[
237,
243
],
[
233,
244
],
[
244,
245
],
[
233,
246
],
[
246,
247
],
[
0,
248
],
[
248,
249
],
[
248,
250
],
[
250,
251
],
[
250,
252
],
[
248,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
258,
259
],
[
259,
260
],
[
258,
261
],
[
255,
262
],
[
262,
263
],
[
263,
264
],
[
264,
265
],
[
264,
266
],
[
262,
267
],
[
267,
268
],
[
267,
269
],
[
269,
270
],
[
269,
271
],
[
262,
272
],
[
272,
273
],
[
273,
274
],
[
262,
275
],
[
275,
276
],
[
276,
277
],
[
277,
278
],
[
276,
279
],
[
279,
280
],
[
280,
281
],
[
279,
282
],
[
282,
283
],
[
282,
284
],
[
253,
285
],
[
285,
286
],
[
248,
287
],
[
287,
288
],
[
287,
289
],
[
289,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
248,
294
],
[
294,
295
],
[
294,
296
],
[
296,
297
],
[
297,
298
],
[
298,
299
],
[
299,
300
],
[
298,
301
],
[
294,
302
],
[
302,
303
],
[
0,
304
],
[
304,
305
],
[
304,
306
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\twhile ((s = stdIn.readLine()) != null) {\n\t\t\tString[] ss = s.split(\" \");\n\t\t\tint vn = Integer.valueOf(ss[0]);\n\t\t\tint vm = Integer.valueOf(ss[1]);\n\n\t\t\tVect vect1 = new Vect();\n\t\t\tfor (int i = 0; i < vn; i++)\n\t\t\t\tvect1.addRow(stdIn.readLine());\n\n\t\t\tVect vect2 = new Vect();\n\t\t\tfor (int i = 0; i < vm; i++)\n\t\t\t\tvect2.addRow(stdIn.readLine());\n\n\t\t\tVect vect3 = new Vect();\n\t\t\tvect3.multi(vect1, vect2);\n\t\t}\n\t\tSystem.exit(0);\n\t}\n}\n\nclass Vect {\n\tList<Vrow> rows = new ArrayList<Vrow>();\n\n\tpublic void addRow(String row) {\n\t\tVrow r = new Vrow(row);\n\t\trows.add(r);\n\t}\n\n\tpublic void multi(Vect vect1, Vect vect2) {\n\t\tfor (int r = 0; r < vect1.getRcount(); r++) {\n\t\t\tfor (int c = 0; c < vect2.getCcount(); c++) {\n\t\t\t\tint e = 0;\n\t\t\t\tfor (int i = 0; i < vect2.getRcount(); i++)\n\t\t\t\t\te += (vect1.getElem(r, i) * vect2.getElem(i, c));\n\t\t\t\tif (c > 0)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(e);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n\n\tprivate int getRcount() {\n\t\treturn rows.size();\n\t}\n\n\tprivate int getCcount() {\n\t\treturn rows.get(0).getCcount();\n\t}\n\n\tpublic int getElem(int r, int c) {\n\t\treturn rows.get(r).get(c);\n\n\t}\n}\n\nclass Vrow {\n\tList<Integer> elem = new ArrayList<Integer>();\n\n\tpublic Vrow(String row) {\n\t\tString[] rows = row.split(\" \");\n\t\tfor (int i = 0; i < rows.length; i++)\n\t\t\telem.add(Integer.valueOf(rows[i]));\n\t}\n\n\tpublic int getCcount() {\n\t\treturn elem.size();\n\t}\n\n\tpublic int get(int c) {\n\t\treturn elem.get(c);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\twhile ((s = stdIn.readLine()) != null) {\n\t\t\tString[] ss = s.split(\" \");\n\t\t\tint vn = Integer.valueOf(ss[0]);\n\t\t\tint vm = Integer.valueOf(ss[1]);\n\n\t\t\tVect vect1 = new Vect();\n\t\t\tfor (int i = 0; i < vn; i++)\n\t\t\t\tvect1.addRow(stdIn.readLine());\n\n\t\t\tVect vect2 = new Vect();\n\t\t\tfor (int i = 0; i < vm; i++)\n\t\t\t\tvect2.addRow(stdIn.readLine());\n\n\t\t\tVect vect3 = new Vect();\n\t\t\tvect3.multi(vect1, vect2);\n\t\t}\n\t\tSystem.exit(0);\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\twhile ((s = stdIn.readLine()) != null) {\n\t\t\tString[] ss = s.split(\" \");\n\t\t\tint vn = Integer.valueOf(ss[0]);\n\t\t\tint vm = Integer.valueOf(ss[1]);\n\n\t\t\tVect vect1 = new Vect();\n\t\t\tfor (int i = 0; i < vn; i++)\n\t\t\t\tvect1.addRow(stdIn.readLine());\n\n\t\t\tVect vect2 = new Vect();\n\t\t\tfor (int i = 0; i < vm; i++)\n\t\t\t\tvect2.addRow(stdIn.readLine());\n\n\t\t\tVect vect3 = new Vect();\n\t\t\tvect3.multi(vect1, vect2);\n\t\t}\n\t\tSystem.exit(0);\n\t}",
"main",
"{\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\twhile ((s = stdIn.readLine()) != null) {\n\t\t\tString[] ss = s.split(\" \");\n\t\t\tint vn = Integer.valueOf(ss[0]);\n\t\t\tint vm = Integer.valueOf(ss[1]);\n\n\t\t\tVect vect1 = new Vect();\n\t\t\tfor (int i = 0; i < vn; i++)\n\t\t\t\tvect1.addRow(stdIn.readLine());\n\n\t\t\tVect vect2 = new Vect();\n\t\t\tfor (int i = 0; i < vm; i++)\n\t\t\t\tvect2.addRow(stdIn.readLine());\n\n\t\t\tVect vect3 = new Vect();\n\t\t\tvect3.multi(vect1, vect2);\n\t\t}\n\t\tSystem.exit(0);\n\t}",
"BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));",
"stdIn",
"new BufferedReader(new InputStreamReader(System.in))",
"String s;",
"s",
"while ((s = stdIn.readLine()) != null) {\n\t\t\tString[] ss = s.split(\" \");\n\t\t\tint vn = Integer.valueOf(ss[0]);\n\t\t\tint vm = Integer.valueOf(ss[1]);\n\n\t\t\tVect vect1 = new Vect();\n\t\t\tfor (int i = 0; i < vn; i++)\n\t\t\t\tvect1.addRow(stdIn.readLine());\n\n\t\t\tVect vect2 = new Vect();\n\t\t\tfor (int i = 0; i < vm; i++)\n\t\t\t\tvect2.addRow(stdIn.readLine());\n\n\t\t\tVect vect3 = new Vect();\n\t\t\tvect3.multi(vect1, vect2);\n\t\t}",
"(s = stdIn.readLine()) != null",
"(s = stdIn.readLine())",
"s",
"stdIn.readLine()",
"stdIn.readLine",
"stdIn",
"null",
"{\n\t\t\tString[] ss = s.split(\" \");\n\t\t\tint vn = Integer.valueOf(ss[0]);\n\t\t\tint vm = Integer.valueOf(ss[1]);\n\n\t\t\tVect vect1 = new Vect();\n\t\t\tfor (int i = 0; i < vn; i++)\n\t\t\t\tvect1.addRow(stdIn.readLine());\n\n\t\t\tVect vect2 = new Vect();\n\t\t\tfor (int i = 0; i < vm; i++)\n\t\t\t\tvect2.addRow(stdIn.readLine());\n\n\t\t\tVect vect3 = new Vect();\n\t\t\tvect3.multi(vect1, vect2);\n\t\t}",
"String[] ss = s.split(\" \");",
"ss",
"s.split(\" \")",
"s.split",
"s",
"\" \"",
"int vn = Integer.valueOf(ss[0]);",
"vn",
"Integer.valueOf(ss[0])",
"Integer.valueOf",
"Integer",
"ss[0]",
"ss",
"0",
"int vm = Integer.valueOf(ss[1]);",
"vm",
"Integer.valueOf(ss[1])",
"Integer.valueOf",
"Integer",
"ss[1]",
"ss",
"1",
"Vect vect1 = new Vect();",
"vect1",
"new Vect()",
"for (int i = 0; i < vn; i++)\n\t\t\t\tvect1.addRow(stdIn.readLine());",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < vn",
"i",
"vn",
"i++",
"i++",
"i",
"vect1.addRow(stdIn.readLine());",
"vect1.addRow(stdIn.readLine())",
"vect1.addRow",
"vect1",
"stdIn.readLine()",
"stdIn.readLine",
"stdIn",
"Vect vect2 = new Vect();",
"vect2",
"new Vect()",
"for (int i = 0; i < vm; i++)\n\t\t\t\tvect2.addRow(stdIn.readLine());",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < vm",
"i",
"vm",
"i++",
"i++",
"i",
"vect2.addRow(stdIn.readLine());",
"vect2.addRow(stdIn.readLine())",
"vect2.addRow",
"vect2",
"stdIn.readLine()",
"stdIn.readLine",
"stdIn",
"Vect vect3 = new Vect();",
"vect3",
"new Vect()",
"vect3.multi(vect1, vect2)",
"vect3.multi",
"vect3",
"vect1",
"vect2",
"System.exit(0)",
"System.exit",
"System",
"0",
"String[] args",
"args",
"class Vect {\n\tList<Vrow> rows = new ArrayList<Vrow>();\n\n\tpublic void addRow(String row) {\n\t\tVrow r = new Vrow(row);\n\t\trows.add(r);\n\t}\n\n\tpublic void multi(Vect vect1, Vect vect2) {\n\t\tfor (int r = 0; r < vect1.getRcount(); r++) {\n\t\t\tfor (int c = 0; c < vect2.getCcount(); c++) {\n\t\t\t\tint e = 0;\n\t\t\t\tfor (int i = 0; i < vect2.getRcount(); i++)\n\t\t\t\t\te += (vect1.getElem(r, i) * vect2.getElem(i, c));\n\t\t\t\tif (c > 0)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(e);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n\n\tprivate int getRcount() {\n\t\treturn rows.size();\n\t}\n\n\tprivate int getCcount() {\n\t\treturn rows.get(0).getCcount();\n\t}\n\n\tpublic int getElem(int r, int c) {\n\t\treturn rows.get(r).get(c);\n\n\t}\n}",
"Vect",
"List<Vrow> rows = new ArrayList<Vrow>();",
"rows",
"new ArrayList<Vrow>()",
"public void addRow(String row) {\n\t\tVrow r = new Vrow(row);\n\t\trows.add(r);\n\t}",
"addRow",
"{\n\t\tVrow r = new Vrow(row);\n\t\trows.add(r);\n\t}",
"Vrow r = new Vrow(row);",
"r",
"new Vrow(row)",
"rows.add(r)",
"rows.add",
"rows",
"r",
"String row",
"row",
"public void multi(Vect vect1, Vect vect2) {\n\t\tfor (int r = 0; r < vect1.getRcount(); r++) {\n\t\t\tfor (int c = 0; c < vect2.getCcount(); c++) {\n\t\t\t\tint e = 0;\n\t\t\t\tfor (int i = 0; i < vect2.getRcount(); i++)\n\t\t\t\t\te += (vect1.getElem(r, i) * vect2.getElem(i, c));\n\t\t\t\tif (c > 0)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(e);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"multi",
"{\n\t\tfor (int r = 0; r < vect1.getRcount(); r++) {\n\t\t\tfor (int c = 0; c < vect2.getCcount(); c++) {\n\t\t\t\tint e = 0;\n\t\t\t\tfor (int i = 0; i < vect2.getRcount(); i++)\n\t\t\t\t\te += (vect1.getElem(r, i) * vect2.getElem(i, c));\n\t\t\t\tif (c > 0)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(e);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"for (int r = 0; r < vect1.getRcount(); r++) {\n\t\t\tfor (int c = 0; c < vect2.getCcount(); c++) {\n\t\t\t\tint e = 0;\n\t\t\t\tfor (int i = 0; i < vect2.getRcount(); i++)\n\t\t\t\t\te += (vect1.getElem(r, i) * vect2.getElem(i, c));\n\t\t\t\tif (c > 0)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(e);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"int r = 0;",
"int r = 0;",
"r",
"0",
"r < vect1.getRcount()",
"r",
"vect1.getRcount()",
"vect1.getRcount",
"vect1",
"r++",
"r++",
"r",
"{\n\t\t\tfor (int c = 0; c < vect2.getCcount(); c++) {\n\t\t\t\tint e = 0;\n\t\t\t\tfor (int i = 0; i < vect2.getRcount(); i++)\n\t\t\t\t\te += (vect1.getElem(r, i) * vect2.getElem(i, c));\n\t\t\t\tif (c > 0)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(e);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"{\n\t\t\tfor (int c = 0; c < vect2.getCcount(); c++) {\n\t\t\t\tint e = 0;\n\t\t\t\tfor (int i = 0; i < vect2.getRcount(); i++)\n\t\t\t\t\te += (vect1.getElem(r, i) * vect2.getElem(i, c));\n\t\t\t\tif (c > 0)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(e);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"for (int c = 0; c < vect2.getCcount(); c++) {\n\t\t\t\tint e = 0;\n\t\t\t\tfor (int i = 0; i < vect2.getRcount(); i++)\n\t\t\t\t\te += (vect1.getElem(r, i) * vect2.getElem(i, c));\n\t\t\t\tif (c > 0)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(e);\n\t\t\t}",
"int c = 0;",
"int c = 0;",
"c",
"0",
"c < vect2.getCcount()",
"c",
"vect2.getCcount()",
"vect2.getCcount",
"vect2",
"c++",
"c++",
"c",
"{\n\t\t\t\tint e = 0;\n\t\t\t\tfor (int i = 0; i < vect2.getRcount(); i++)\n\t\t\t\t\te += (vect1.getElem(r, i) * vect2.getElem(i, c));\n\t\t\t\tif (c > 0)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(e);\n\t\t\t}",
"{\n\t\t\t\tint e = 0;\n\t\t\t\tfor (int i = 0; i < vect2.getRcount(); i++)\n\t\t\t\t\te += (vect1.getElem(r, i) * vect2.getElem(i, c));\n\t\t\t\tif (c > 0)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(e);\n\t\t\t}",
"int e = 0;",
"e",
"0",
"for (int i = 0; i < vect2.getRcount(); i++)\n\t\t\t\t\te += (vect1.getElem(r, i) * vect2.getElem(i, c));",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < vect2.getRcount()",
"i",
"vect2.getRcount()",
"vect2.getRcount",
"vect2",
"i++",
"i++",
"i",
"e += (vect1.getElem(r, i) * vect2.getElem(i, c));",
"e += (vect1.getElem(r, i) * vect2.getElem(i, c))",
"e",
"(vect1.getElem(r, i) * vect2.getElem(i, c))",
"vect1.getElem(r, i)",
"vect1.getElem",
"vect1",
"r",
"i",
"vect2.getElem(i, c)",
"vect2.getElem",
"vect2",
"i",
"c",
"if (c > 0)\n\t\t\t\t\tSystem.out.print(\" \");",
"c > 0",
"c",
"0",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.print(e)",
"System.out.print",
"System.out",
"System",
"System.out",
"e",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"Vect vect1",
"vect1",
"Vect vect2",
"vect2",
"private int getRcount() {\n\t\treturn rows.size();\n\t}",
"getRcount",
"{\n\t\treturn rows.size();\n\t}",
"return rows.size();",
"rows.size()",
"rows.size",
"rows",
"private int getCcount() {\n\t\treturn rows.get(0).getCcount();\n\t}",
"getCcount",
"{\n\t\treturn rows.get(0).getCcount();\n\t}",
"return rows.get(0).getCcount();",
"rows.get(0).getCcount()",
"rows.get(0).getCcount",
"rows.get(0)",
"rows.get",
"rows",
"0",
"public int getElem(int r, int c) {\n\t\treturn rows.get(r).get(c);\n\n\t}",
"getElem",
"{\n\t\treturn rows.get(r).get(c);\n\n\t}",
"return rows.get(r).get(c);",
"rows.get(r).get(c)",
"rows.get(r).get",
"rows.get(r)",
"rows.get",
"rows",
"r",
"c",
"int r",
"r",
"int c",
"c",
"class Vrow {\n\tList<Integer> elem = new ArrayList<Integer>();\n\n\tpublic Vrow(String row) {\n\t\tString[] rows = row.split(\" \");\n\t\tfor (int i = 0; i < rows.length; i++)\n\t\t\telem.add(Integer.valueOf(rows[i]));\n\t}\n\n\tpublic int getCcount() {\n\t\treturn elem.size();\n\t}\n\n\tpublic int get(int c) {\n\t\treturn elem.get(c);\n\t}\n}",
"Vrow",
"List<Integer> elem = new ArrayList<Integer>();",
"elem",
"new ArrayList<Integer>()",
"public Vrow(String row) {\n\t\tString[] rows = row.split(\" \");\n\t\tfor (int i = 0; i < rows.length; i++)\n\t\t\telem.add(Integer.valueOf(rows[i]));\n\t}",
"Vrow",
"{\n\t\tString[] rows = row.split(\" \");\n\t\tfor (int i = 0; i < rows.length; i++)\n\t\t\telem.add(Integer.valueOf(rows[i]));\n\t}",
"String[] rows = row.split(\" \");",
"rows",
"row.split(\" \")",
"row.split",
"row",
"\" \"",
"for (int i = 0; i < rows.length; i++)\n\t\t\telem.add(Integer.valueOf(rows[i]));",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < rows.length",
"i",
"rows.length",
"rows",
"rows.length",
"i++",
"i++",
"i",
"elem.add(Integer.valueOf(rows[i]));",
"elem.add(Integer.valueOf(rows[i]))",
"elem.add",
"elem",
"Integer.valueOf(rows[i])",
"Integer.valueOf",
"Integer",
"rows[i]",
"rows",
"i",
"String row",
"row",
"public int getCcount() {\n\t\treturn elem.size();\n\t}",
"getCcount",
"{\n\t\treturn elem.size();\n\t}",
"return elem.size();",
"elem.size()",
"elem.size",
"elem",
"public int get(int c) {\n\t\treturn elem.get(c);\n\t}",
"get",
"{\n\t\treturn elem.get(c);\n\t}",
"return elem.get(c);",
"elem.get(c)",
"elem.get",
"elem",
"c",
"int c",
"c",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\twhile ((s = stdIn.readLine()) != null) {\n\t\t\tString[] ss = s.split(\" \");\n\t\t\tint vn = Integer.valueOf(ss[0]);\n\t\t\tint vm = Integer.valueOf(ss[1]);\n\n\t\t\tVect vect1 = new Vect();\n\t\t\tfor (int i = 0; i < vn; i++)\n\t\t\t\tvect1.addRow(stdIn.readLine());\n\n\t\t\tVect vect2 = new Vect();\n\t\t\tfor (int i = 0; i < vm; i++)\n\t\t\t\tvect2.addRow(stdIn.readLine());\n\n\t\t\tVect vect3 = new Vect();\n\t\t\tvect3.multi(vect1, vect2);\n\t\t}\n\t\tSystem.exit(0);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\twhile ((s = stdIn.readLine()) != null) {\n\t\t\tString[] ss = s.split(\" \");\n\t\t\tint vn = Integer.valueOf(ss[0]);\n\t\t\tint vm = Integer.valueOf(ss[1]);\n\n\t\t\tVect vect1 = new Vect();\n\t\t\tfor (int i = 0; i < vn; i++)\n\t\t\t\tvect1.addRow(stdIn.readLine());\n\n\t\t\tVect vect2 = new Vect();\n\t\t\tfor (int i = 0; i < vm; i++)\n\t\t\t\tvect2.addRow(stdIn.readLine());\n\n\t\t\tVect vect3 = new Vect();\n\t\t\tvect3.multi(vect1, vect2);\n\t\t}\n\t\tSystem.exit(0);\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
String s;
while ((s = stdIn.readLine()) != null) {
String[] ss = s.split(" ");
int vn = Integer.valueOf(ss[0]);
int vm = Integer.valueOf(ss[1]);
Vect vect1 = new Vect();
for (int i = 0; i < vn; i++)
vect1.addRow(stdIn.readLine());
Vect vect2 = new Vect();
for (int i = 0; i < vm; i++)
vect2.addRow(stdIn.readLine());
Vect vect3 = new Vect();
vect3.multi(vect1, vect2);
}
System.exit(0);
}
}
class Vect {
List<Vrow> rows = new ArrayList<Vrow>();
public void addRow(String row) {
Vrow r = new Vrow(row);
rows.add(r);
}
public void multi(Vect vect1, Vect vect2) {
for (int r = 0; r < vect1.getRcount(); r++) {
for (int c = 0; c < vect2.getCcount(); c++) {
int e = 0;
for (int i = 0; i < vect2.getRcount(); i++)
e += (vect1.getElem(r, i) * vect2.getElem(i, c));
if (c > 0)
System.out.print(" ");
System.out.print(e);
}
System.out.println("");
}
}
private int getRcount() {
return rows.size();
}
private int getCcount() {
return rows.get(0).getCcount();
}
public int getElem(int r, int c) {
return rows.get(r).get(c);
}
}
class Vrow {
List<Integer> elem = new ArrayList<Integer>();
public Vrow(String row) {
String[] rows = row.split(" ");
for (int i = 0; i < rows.length; i++)
elem.add(Integer.valueOf(rows[i]));
}
public int getCcount() {
return elem.size();
}
public int get(int c) {
return elem.get(c);
}
} |
[
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
] | [
[
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
],
[
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
]
] | [
"import java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint [][] det = 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\tdet[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\n\t\t}\n\t\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 sum += det[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\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\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint [][] det = 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\tdet[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\n\t\t}\n\t\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 sum += det[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint [][] det = 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\tdet[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\n\t\t}\n\t\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 sum += det[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint [][] det = 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\tdet[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\n\t\t}\n\t\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 sum += det[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\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 [][] det = new int [n][m];",
"det",
"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\tdet[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\tdet[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\tdet[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0 ; j < m ; j++){\n\t\t\t\tdet[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\tdet[i][j] = scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\tdet[i][j] = scan.nextInt();\n\t\t\t}",
"det[i][j] = scan.nextInt()",
"det[i][j]",
"det[i]",
"det",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 0 ; i < m ; i++){\n\t\t\tb [i] = scan.nextInt();\n\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\n\t\t}",
"{\n\t\t\tb [i] = scan.nextInt();\n\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 sum = 0 ;\n\t\t\tfor(int j = 0 ; j < m ; j++){\n\t\t\t sum += det[i][j]*b[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\tint sum = 0 ;\n\t\t\tfor(int j = 0 ; j < m ; j++){\n\t\t\t sum += det[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}",
"{\n\t\t\tint sum = 0 ;\n\t\t\tfor(int j = 0 ; j < m ; j++){\n\t\t\t sum += det[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}",
"int sum = 0 ;",
"sum",
"0",
"for(int j = 0 ; j < m ; j++){\n\t\t\t sum += det[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 sum += det[i][j]*b[j];\n\t\t\t}",
"{\n\t\t\t sum += det[i][j]*b[j];\n\t\t\t}",
"sum += det[i][j]*b[j]",
"sum",
"det[i][j]*b[j]",
"det[i][j]",
"det[i]",
"det",
"i",
"j",
"b[j]",
"b",
"j",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int m = scan.nextInt();
int [][] det = new int [n][m];
int [] b = new int [m];
for(int i = 0; i < n ; i++){
for(int j = 0 ; j < m ; j++){
det[i][j] = scan.nextInt();
}
}
for(int i = 0 ; i < m ; i++){
b [i] = scan.nextInt();
}
for(int i = 0 ; i < n ; i++){
int sum = 0 ;
for(int j = 0 ; j < m ; j++){
sum += det[i][j]*b[j];
}
System.out.println(sum);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
18,
13,
13,
41,
13,
18,
13,
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,
4,
18,
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,
13,
13,
2,
18,
18,
13,
13,
13,
18,
13,
13,
4,
18,
13,
18,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
0,
18,
36,
13,
17,
23,
13,
12,
13,
30,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
29,
17,
29,
17,
12,
13,
30,
14,
4,
13,
29,
18,
13,
40,
13,
29,
40,
17,
12,
13,
30,
29,
40,
2,
2,
13,
17,
2,
13,
17,
23,
13,
12,
13,
30,
42,
2,
4,
13,
4,
13,
18,
13,
13,
40,
13,
12,
13,
30,
4,
13,
29,
4,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
20,
41,
13,
4,
13,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
37,
20,
0,
13,
2,
2,
2,
13,
17,
13,
17,
0,
13,
4,
13,
29,
8,
13,
40,
13,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
37,
20,
0,
13,
2,
2,
2,
13,
17,
13,
17,
0,
13,
4,
13,
29,
8,
13,
40,
13,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
20,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
4,
13,
29,
13,
23,
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
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
31,
32
],
[
31,
33
],
[
0,
34
],
[
34,
35
],
[
34,
36
],
[
0,
37
],
[
37,
38
],
[
37,
39
],
[
0,
40
],
[
40,
41
],
[
40,
42
],
[
0,
43
],
[
43,
44
],
[
43,
45
],
[
0,
46
],
[
46,
47
],
[
46,
48
],
[
0,
49
],
[
49,
50
],
[
49,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
],
[
0,
55
],
[
564,
56
],
[
564,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
564,
62
],
[
62,
63
],
[
62,
64
],
[
564,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
564,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
564,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
77,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
77,
91
],
[
91,
92
],
[
91,
93
],
[
77,
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
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
122,
128
],
[
128,
129
],
[
129,
130
],
[
77,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
77,
137
],
[
137,
138
],
[
137,
139
],
[
77,
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
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
159,
160
],
[
159,
161
],
[
154,
162
],
[
162,
163
],
[
163,
164
],
[
154,
165
],
[
166,
166
],
[
166,
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
],
[
153,
180
],
[
180,
181
],
[
181,
182
],
[
180,
183
],
[
183,
184
],
[
183,
185
],
[
77,
186
],
[
186,
187
],
[
187,
188
],
[
75,
189
],
[
189,
190
],
[
564,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
191,
195
],
[
195,
196
],
[
195,
197
],
[
191,
199
],
[
199,
200
],
[
191,
201
],
[
201,
202
],
[
191,
203
],
[
203,
204
],
[
203,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
206,
210
],
[
205,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
211,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
215,
219
],
[
203,
220
],
[
220,
221
],
[
191,
222
],
[
222,
223
],
[
222,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
225,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
229,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
237,
238
],
[
233,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
242,
243
],
[
243,
244
],
[
242,
245
],
[
229,
246
],
[
246,
247
],
[
247,
248
],
[
247,
249
],
[
246,
250
],
[
250,
251
],
[
224,
252
],
[
252,
253
],
[
191,
254
],
[
254,
255
],
[
254,
256
],
[
256,
257
],
[
257,
258
],
[
258,
259
],
[
257,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
263,
264
],
[
257,
265
],
[
265,
266
],
[
266,
267
],
[
191,
268
],
[
268,
269
],
[
268,
270
],
[
270,
271
],
[
271,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
273,
277
],
[
277,
278
],
[
277,
279
],
[
268,
280
],
[
280,
281
],
[
191,
282
],
[
282,
283
],
[
282,
284
],
[
284,
285
],
[
285,
286
],
[
286,
287
],
[
287,
288
],
[
286,
289
],
[
289,
290
],
[
289,
291
],
[
291,
292
],
[
291,
293
],
[
285,
294
],
[
294,
295
],
[
191,
296
],
[
296,
297
],
[
296,
298
],
[
298,
299
],
[
299,
300
],
[
298,
301
],
[
301,
302
],
[
302,
303
],
[
191,
304
],
[
304,
305
],
[
304,
306
],
[
306,
307
],
[
307,
308
],
[
308,
309
],
[
309,
310
],
[
307,
311
],
[
311,
312
],
[
306,
313
],
[
313,
314
],
[
313,
315
],
[
306,
316
],
[
316,
317
],
[
316,
318
],
[
318,
319
],
[
306,
320
],
[
320,
321
],
[
321,
322
],
[
322,
323
],
[
322,
324
],
[
320,
325
],
[
325,
326
],
[
326,
327
],
[
327,
328
],
[
326,
329
],
[
325,
330
],
[
330,
331
],
[
330,
332
],
[
332,
333
],
[
306,
334
],
[
334,
335
],
[
335,
336
],
[
336,
337
],
[
191,
338
],
[
338,
339
],
[
338,
340
],
[
340,
341
],
[
341,
342
],
[
342,
343
],
[
343,
344
],
[
341,
345
],
[
345,
346
],
[
340,
347
],
[
347,
348
],
[
347,
349
],
[
349,
350
],
[
340,
351
],
[
351,
352
],
[
352,
353
],
[
352,
354
],
[
351,
355
],
[
355,
356
],
[
355,
357
],
[
357,
358
],
[
340,
359
],
[
359,
360
],
[
359,
361
],
[
340,
362
],
[
362,
363
],
[
363,
364
],
[
363,
365
],
[
362,
366
],
[
366,
367
],
[
367,
368
],
[
367,
369
],
[
366,
370
],
[
370,
371
],
[
370,
372
],
[
372,
373
],
[
340,
374
],
[
374,
375
],
[
374,
376
],
[
340,
377
],
[
377,
378
],
[
378,
379
],
[
379,
380
],
[
379,
381
],
[
377,
382
],
[
382,
383
],
[
383,
384
],
[
384,
385
],
[
385,
386
],
[
385,
387
],
[
384,
388
],
[
388,
389
],
[
388,
390
],
[
383,
391
],
[
391,
392
],
[
382,
393
],
[
393,
394
],
[
393,
395
],
[
395,
396
],
[
396,
397
],
[
397,
398
],
[
397,
399
],
[
396,
400
],
[
395,
401
],
[
382,
402
],
[
402,
403
],
[
402,
404
],
[
404,
405
],
[
340,
406
],
[
406,
407
],
[
407,
408
],
[
407,
409
],
[
409,
410
],
[
407,
411
],
[
191,
412
],
[
412,
413
],
[
412,
414
],
[
414,
415
],
[
415,
416
],
[
416,
417
],
[
417,
418
],
[
415,
419
],
[
419,
420
],
[
414,
421
],
[
421,
422
],
[
421,
423
],
[
423,
424
],
[
414,
425
],
[
425,
426
],
[
426,
427
],
[
426,
428
],
[
425,
429
],
[
429,
430
],
[
429,
431
],
[
431,
432
],
[
414,
433
],
[
433,
434
],
[
433,
435
],
[
414,
436
],
[
436,
437
],
[
437,
438
],
[
437,
439
],
[
436,
440
],
[
440,
441
],
[
441,
442
],
[
441,
443
],
[
440,
444
],
[
444,
445
],
[
444,
446
],
[
446,
447
],
[
414,
448
],
[
448,
449
],
[
448,
450
],
[
414,
451
],
[
451,
452
],
[
452,
453
],
[
453,
454
],
[
453,
455
],
[
451,
456
],
[
456,
457
],
[
457,
458
],
[
458,
459
],
[
459,
460
],
[
459,
461
],
[
458,
462
],
[
462,
463
],
[
462,
464
],
[
457,
465
],
[
465,
466
],
[
456,
467
],
[
467,
468
],
[
467,
469
],
[
469,
470
],
[
470,
471
],
[
471,
472
],
[
471,
473
],
[
470,
474
],
[
469,
475
],
[
456,
476
],
[
476,
477
],
[
476,
478
],
[
478,
479
],
[
414,
480
],
[
480,
481
],
[
481,
482
],
[
481,
483
],
[
483,
484
],
[
481,
485
],
[
191,
486
],
[
486,
487
],
[
486,
488
],
[
488,
489
],
[
489,
490
],
[
490,
491
],
[
491,
492
],
[
490,
493
],
[
493,
494
],
[
191,
495
],
[
495,
496
],
[
495,
497
],
[
497,
498
],
[
498,
499
],
[
191,
500
],
[
500,
501
],
[
500,
502
],
[
502,
503
],
[
503,
504
],
[
503,
505
],
[
502,
507
],
[
507,
508
],
[
508,
509
],
[
509,
510
],
[
509,
511
],
[
507,
512
],
[
512,
513
],
[
512,
514
],
[
507,
515
],
[
515,
516
],
[
516,
517
],
[
507,
518
],
[
518,
519
],
[
519,
520
],
[
520,
521
],
[
520,
522
],
[
519,
523
],
[
523,
524
],
[
502,
525
],
[
525,
526
],
[
500,
527
],
[
527,
528
],
[
191,
529
],
[
529,
530
],
[
529,
531
],
[
531,
532
],
[
532,
533
],
[
532,
534
],
[
531,
537
],
[
537,
538
],
[
538,
539
],
[
539,
540
],
[
539,
541
],
[
537,
542
],
[
542,
543
],
[
542,
544
],
[
537,
545
],
[
545,
546
],
[
546,
547
],
[
537,
548
],
[
548,
549
],
[
549,
550
],
[
550,
551
],
[
550,
552
],
[
549,
553
],
[
553,
554
],
[
554,
555
],
[
555,
556
],
[
531,
557
],
[
557,
558
],
[
529,
559
],
[
559,
560
],
[
529,
561
],
[
561,
562
],
[
0,
563
],
[
563,
564
],
[
563,
565
]
] | [
"import java.io.InputStream;\nimport java.io.IOException;\nimport java.io.PrintWriter;\nimport java.util.ArrayDeque;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.BitSet;\nimport java.util.Comparator;\nimport java.util.Deque;\nimport java.util.HashMap;\nimport java.util.HashSet;\nimport java.util.InputMismatchException;\nimport java.util.Map;\nimport java.util.NoSuchElementException;\nimport java.util.PriorityQueue;\nimport java.util.TreeMap;\nimport java.math.BigDecimal;\nimport java.math.BigInteger;\n \npublic class Main{\n \nstatic final InputStream in=System.in;\nstatic final PrintWriter out=new PrintWriter(System.out);\nstatic final int INF=Integer.MAX_VALUE;\nstatic final long LINF=Long.MAX_VALUE;\n \npublic static void main(String[] args) throws IOException{\nInputReader ir=new InputReader(in);\nint n=ir.nextInt();\nint m=ir.nextInt();\nint[][] mat=new int[n][m];\nfor(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n mat[i][j]=ir.nextInt();\n }\n}\nint[] vector=ir.nextIntArray(m);\nint[] c=new int[n];\nfor(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n c[i]+=mat[i][j]*vector[j];\n }\n out.println(c[i]);\n}\nout.flush();\n}\n\nstatic class InputReader {\n private InputStream in;\n private byte[] buffer=new byte[1024];\n private int curbuf;\n private int lenbuf;\n \n public InputReader(InputStream in) {this.in=in; this.curbuf=this.lenbuf=0;}\n \n public boolean hasNextByte() {\n if(curbuf>=lenbuf){\n curbuf= 0;\n try{\n lenbuf=in.read(buffer);\n }catch(IOException e) {\n throw new InputMismatchException();\n }\n if(lenbuf<=0) return false;\n }\n return true;\n }\n \n private int readByte(){if(hasNextByte()) return buffer[curbuf++]; else return -1;}\n\n private boolean isSpaceChar(int c){return !(c>=33&&c<=126);}\n \n private void skip(){while(hasNextByte()&&isSpaceChar(buffer[curbuf])) curbuf++;}\n\n public boolean hasNext(){skip(); return hasNextByte();}\n \n public String next(){\n if(!hasNext()) throw new NoSuchElementException();\n StringBuilder sb=new StringBuilder();\n int b=readByte();\n while(!isSpaceChar(b)){\n sb.appendCodePoint(b);\n b=readByte();\n }\n return sb.toString();\n }\n \n public int nextInt() {\n if(!hasNext()) throw new NoSuchElementException();\n int c=readByte();\n while (isSpaceChar(c)) c=readByte();\n boolean minus=false;\n if (c=='-') {\n minus=true;\n c=readByte();\n }\n int res=0;\n do{\n if(c<'0'||c>'9') throw new InputMismatchException();\n res=res*10+c-'0';\n c=readByte();\n }while(!isSpaceChar(c));\n return (minus)?-res:res;\n }\n \n public long nextLong() {\n if(!hasNext()) throw new NoSuchElementException();\n int c=readByte();\n while (isSpaceChar(c)) c=readByte();\n boolean minus=false;\n if (c=='-') {\n minus=true;\n c=readByte();\n }\n long res = 0;\n do{\n if(c<'0'||c>'9') throw new InputMismatchException();\n res=res*10+c-'0';\n c=readByte();\n }while(!isSpaceChar(c));\n return (minus)?-res:res;\n }\n \n public double nextDouble(){return Double.parseDouble(next());}\n \n public BigInteger nextBigInteger(){return new BigInteger(next());}\n \n public int[] nextIntArray(int n){\n int[] a=new int[n];\n for(int i=0;i<n;i++) a[i]=nextInt();\n return a;\n }\n \n public char[][] nextCharMap(int n,int m){\n char[][] map=new char[n][m];\n for(int i=0;i<n;i++) map[i]=next().toCharArray();\n return map;\n }\n}\n}",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.ArrayDeque;",
"ArrayDeque",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.BitSet;",
"BitSet",
"java.util",
"import java.util.Comparator;",
"Comparator",
"java.util",
"import java.util.Deque;",
"Deque",
"java.util",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"import java.util.Map;",
"Map",
"java.util",
"import java.util.NoSuchElementException;",
"NoSuchElementException",
"java.util",
"import java.util.PriorityQueue;",
"PriorityQueue",
"java.util",
"import java.util.TreeMap;",
"TreeMap",
"java.util",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"public class Main{\n \nstatic final InputStream in=System.in;\nstatic final PrintWriter out=new PrintWriter(System.out);\nstatic final int INF=Integer.MAX_VALUE;\nstatic final long LINF=Long.MAX_VALUE;\n \npublic static void main(String[] args) throws IOException{\nInputReader ir=new InputReader(in);\nint n=ir.nextInt();\nint m=ir.nextInt();\nint[][] mat=new int[n][m];\nfor(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n mat[i][j]=ir.nextInt();\n }\n}\nint[] vector=ir.nextIntArray(m);\nint[] c=new int[n];\nfor(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n c[i]+=mat[i][j]*vector[j];\n }\n out.println(c[i]);\n}\nout.flush();\n}\n\nstatic class InputReader {\n private InputStream in;\n private byte[] buffer=new byte[1024];\n private int curbuf;\n private int lenbuf;\n \n public InputReader(InputStream in) {this.in=in; this.curbuf=this.lenbuf=0;}\n \n public boolean hasNextByte() {\n if(curbuf>=lenbuf){\n curbuf= 0;\n try{\n lenbuf=in.read(buffer);\n }catch(IOException e) {\n throw new InputMismatchException();\n }\n if(lenbuf<=0) return false;\n }\n return true;\n }\n \n private int readByte(){if(hasNextByte()) return buffer[curbuf++]; else return -1;}\n\n private boolean isSpaceChar(int c){return !(c>=33&&c<=126);}\n \n private void skip(){while(hasNextByte()&&isSpaceChar(buffer[curbuf])) curbuf++;}\n\n public boolean hasNext(){skip(); return hasNextByte();}\n \n public String next(){\n if(!hasNext()) throw new NoSuchElementException();\n StringBuilder sb=new StringBuilder();\n int b=readByte();\n while(!isSpaceChar(b)){\n sb.appendCodePoint(b);\n b=readByte();\n }\n return sb.toString();\n }\n \n public int nextInt() {\n if(!hasNext()) throw new NoSuchElementException();\n int c=readByte();\n while (isSpaceChar(c)) c=readByte();\n boolean minus=false;\n if (c=='-') {\n minus=true;\n c=readByte();\n }\n int res=0;\n do{\n if(c<'0'||c>'9') throw new InputMismatchException();\n res=res*10+c-'0';\n c=readByte();\n }while(!isSpaceChar(c));\n return (minus)?-res:res;\n }\n \n public long nextLong() {\n if(!hasNext()) throw new NoSuchElementException();\n int c=readByte();\n while (isSpaceChar(c)) c=readByte();\n boolean minus=false;\n if (c=='-') {\n minus=true;\n c=readByte();\n }\n long res = 0;\n do{\n if(c<'0'||c>'9') throw new InputMismatchException();\n res=res*10+c-'0';\n c=readByte();\n }while(!isSpaceChar(c));\n return (minus)?-res:res;\n }\n \n public double nextDouble(){return Double.parseDouble(next());}\n \n public BigInteger nextBigInteger(){return new BigInteger(next());}\n \n public int[] nextIntArray(int n){\n int[] a=new int[n];\n for(int i=0;i<n;i++) a[i]=nextInt();\n return a;\n }\n \n public char[][] nextCharMap(int n,int m){\n char[][] map=new char[n][m];\n for(int i=0;i<n;i++) map[i]=next().toCharArray();\n return map;\n }\n}\n}",
"Main",
"static final InputStream in=System.in;",
"in",
"System.in",
"System",
"System.in",
"static final PrintWriter out=new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"static final int INF=Integer.MAX_VALUE;",
"INF",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"static final long LINF=Long.MAX_VALUE;",
"LINF",
"Long.MAX_VALUE",
"Long",
"Long.MAX_VALUE",
"public static void main(String[] args) throws IOException{\nInputReader ir=new InputReader(in);\nint n=ir.nextInt();\nint m=ir.nextInt();\nint[][] mat=new int[n][m];\nfor(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n mat[i][j]=ir.nextInt();\n }\n}\nint[] vector=ir.nextIntArray(m);\nint[] c=new int[n];\nfor(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n c[i]+=mat[i][j]*vector[j];\n }\n out.println(c[i]);\n}\nout.flush();\n}",
"main",
"{\nInputReader ir=new InputReader(in);\nint n=ir.nextInt();\nint m=ir.nextInt();\nint[][] mat=new int[n][m];\nfor(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n mat[i][j]=ir.nextInt();\n }\n}\nint[] vector=ir.nextIntArray(m);\nint[] c=new int[n];\nfor(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n c[i]+=mat[i][j]*vector[j];\n }\n out.println(c[i]);\n}\nout.flush();\n}",
"InputReader ir=new InputReader(in);",
"ir",
"new InputReader(in)",
"int n=ir.nextInt();",
"n",
"ir.nextInt()",
"ir.nextInt",
"ir",
"int m=ir.nextInt();",
"m",
"ir.nextInt()",
"ir.nextInt",
"ir",
"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]=ir.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]=ir.nextInt();\n }\n}",
"{\n for(int j=0;j<m;j++){\n mat[i][j]=ir.nextInt();\n }\n}",
"for(int j=0;j<m;j++){\n mat[i][j]=ir.nextInt();\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n mat[i][j]=ir.nextInt();\n }",
"{\n mat[i][j]=ir.nextInt();\n }",
"mat[i][j]=ir.nextInt()",
"mat[i][j]",
"mat[i]",
"mat",
"i",
"j",
"ir.nextInt()",
"ir.nextInt",
"ir",
"int[] vector=ir.nextIntArray(m);",
"vector",
"ir.nextIntArray(m)",
"ir.nextIntArray",
"ir",
"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 c[i]+=mat[i][j]*vector[j];\n }\n out.println(c[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 c[i]+=mat[i][j]*vector[j];\n }\n out.println(c[i]);\n}",
"{\n for(int j=0;j<m;j++){\n c[i]+=mat[i][j]*vector[j];\n }\n out.println(c[i]);\n}",
"for(int j=0;j<m;j++){\n c[i]+=mat[i][j]*vector[j];\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n c[i]+=mat[i][j]*vector[j];\n }",
"{\n c[i]+=mat[i][j]*vector[j];\n }",
"c[i]+=mat[i][j]*vector[j]",
"c[i]",
"c",
"i",
"mat[i][j]*vector[j]",
"mat[i][j]",
"mat[i]",
"mat",
"i",
"j",
"vector[j]",
"vector",
"j",
"out.println(c[i])",
"out.println",
"out",
"c[i]",
"c",
"i",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"static class InputReader {\n private InputStream in;\n private byte[] buffer=new byte[1024];\n private int curbuf;\n private int lenbuf;\n \n public InputReader(InputStream in) {this.in=in; this.curbuf=this.lenbuf=0;}\n \n public boolean hasNextByte() {\n if(curbuf>=lenbuf){\n curbuf= 0;\n try{\n lenbuf=in.read(buffer);\n }catch(IOException e) {\n throw new InputMismatchException();\n }\n if(lenbuf<=0) return false;\n }\n return true;\n }\n \n private int readByte(){if(hasNextByte()) return buffer[curbuf++]; else return -1;}\n\n private boolean isSpaceChar(int c){return !(c>=33&&c<=126);}\n \n private void skip(){while(hasNextByte()&&isSpaceChar(buffer[curbuf])) curbuf++;}\n\n public boolean hasNext(){skip(); return hasNextByte();}\n \n public String next(){\n if(!hasNext()) throw new NoSuchElementException();\n StringBuilder sb=new StringBuilder();\n int b=readByte();\n while(!isSpaceChar(b)){\n sb.appendCodePoint(b);\n b=readByte();\n }\n return sb.toString();\n }\n \n public int nextInt() {\n if(!hasNext()) throw new NoSuchElementException();\n int c=readByte();\n while (isSpaceChar(c)) c=readByte();\n boolean minus=false;\n if (c=='-') {\n minus=true;\n c=readByte();\n }\n int res=0;\n do{\n if(c<'0'||c>'9') throw new InputMismatchException();\n res=res*10+c-'0';\n c=readByte();\n }while(!isSpaceChar(c));\n return (minus)?-res:res;\n }\n \n public long nextLong() {\n if(!hasNext()) throw new NoSuchElementException();\n int c=readByte();\n while (isSpaceChar(c)) c=readByte();\n boolean minus=false;\n if (c=='-') {\n minus=true;\n c=readByte();\n }\n long res = 0;\n do{\n if(c<'0'||c>'9') throw new InputMismatchException();\n res=res*10+c-'0';\n c=readByte();\n }while(!isSpaceChar(c));\n return (minus)?-res:res;\n }\n \n public double nextDouble(){return Double.parseDouble(next());}\n \n public BigInteger nextBigInteger(){return new BigInteger(next());}\n \n public int[] nextIntArray(int n){\n int[] a=new int[n];\n for(int i=0;i<n;i++) a[i]=nextInt();\n return a;\n }\n \n public char[][] nextCharMap(int n,int m){\n char[][] map=new char[n][m];\n for(int i=0;i<n;i++) map[i]=next().toCharArray();\n return map;\n }\n}",
"InputReader",
"private InputStream in;",
"in",
"private byte[] buffer=new byte[1024];",
"buffer",
"new byte[1024]",
"1024",
"private int curbuf;",
"curbuf",
"private int lenbuf;",
"lenbuf",
"public InputReader(InputStream in) {this.in=in; this.curbuf=this.lenbuf=0;}",
"InputReader",
"{this.in=in; this.curbuf=this.lenbuf=0;}",
"this.in=in",
"this.in",
"this",
"this.in",
"in",
"this.curbuf=this.lenbuf=0",
"this.curbuf",
"this",
"this.curbuf",
"this.lenbuf=0",
"this.lenbuf",
"this",
"this.lenbuf",
"0",
"InputStream in",
"in",
"public boolean hasNextByte() {\n if(curbuf>=lenbuf){\n curbuf= 0;\n try{\n lenbuf=in.read(buffer);\n }catch(IOException e) {\n throw new InputMismatchException();\n }\n if(lenbuf<=0) return false;\n }\n return true;\n }",
"hasNextByte",
"{\n if(curbuf>=lenbuf){\n curbuf= 0;\n try{\n lenbuf=in.read(buffer);\n }catch(IOException e) {\n throw new InputMismatchException();\n }\n if(lenbuf<=0) return false;\n }\n return true;\n }",
"if(curbuf>=lenbuf){\n curbuf= 0;\n try{\n lenbuf=in.read(buffer);\n }catch(IOException e) {\n throw new InputMismatchException();\n }\n if(lenbuf<=0) return false;\n }",
"curbuf>=lenbuf",
"curbuf",
"lenbuf",
"{\n curbuf= 0;\n try{\n lenbuf=in.read(buffer);\n }catch(IOException e) {\n throw new InputMismatchException();\n }\n if(lenbuf<=0) return false;\n }",
"curbuf= 0",
"curbuf",
"0",
"try{\n lenbuf=in.read(buffer);\n }catch(IOException e) {\n throw new InputMismatchException();\n }",
"catch(IOException e) {\n throw new InputMismatchException();\n }",
"IOException e",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n lenbuf=in.read(buffer);\n }",
"lenbuf=in.read(buffer)",
"lenbuf",
"in.read(buffer)",
"in.read",
"in",
"buffer",
"if(lenbuf<=0) return false;",
"lenbuf<=0",
"lenbuf",
"0",
"return false;",
"false",
"return true;",
"true",
"private int readByte(){if(hasNextByte()) return buffer[curbuf++]; else return -1;}",
"readByte",
"{if(hasNextByte()) return buffer[curbuf++]; else return -1;}",
"if(hasNextByte()) return buffer[curbuf++]; else return -1;",
"hasNextByte()",
"hasNextByte",
"return buffer[curbuf++];",
"buffer[curbuf++]",
"buffer",
"curbuf++",
"curbuf",
"return -1;",
"-1",
"1",
"private boolean isSpaceChar(int c){return !(c>=33&&c<=126);}",
"isSpaceChar",
"{return !(c>=33&&c<=126);}",
"return !(c>=33&&c<=126);",
"!(c>=33&&c<=126)",
"(c>=33&&c<=126)",
"c>=33",
"c",
"33",
"c<=126",
"c",
"126",
"int c",
"c",
"private void skip(){while(hasNextByte()&&isSpaceChar(buffer[curbuf])) curbuf++;}",
"skip",
"{while(hasNextByte()&&isSpaceChar(buffer[curbuf])) curbuf++;}",
"while(hasNextByte()&&isSpaceChar(buffer[curbuf])) curbuf++;",
"hasNextByte()&&isSpaceChar(buffer[curbuf])",
"hasNextByte()",
"hasNextByte",
"isSpaceChar(buffer[curbuf])",
"isSpaceChar",
"buffer[curbuf]",
"buffer",
"curbuf",
"curbuf++",
"curbuf",
"public boolean hasNext(){skip(); return hasNextByte();}",
"hasNext",
"{skip(); return hasNextByte();}",
"skip()",
"skip",
"return hasNextByte();",
"hasNextByte()",
"hasNextByte",
"public String next(){\n if(!hasNext()) throw new NoSuchElementException();\n StringBuilder sb=new StringBuilder();\n int b=readByte();\n while(!isSpaceChar(b)){\n sb.appendCodePoint(b);\n b=readByte();\n }\n return sb.toString();\n }",
"next",
"{\n if(!hasNext()) throw new NoSuchElementException();\n StringBuilder sb=new StringBuilder();\n int b=readByte();\n while(!isSpaceChar(b)){\n sb.appendCodePoint(b);\n b=readByte();\n }\n return sb.toString();\n }",
"if(!hasNext()) throw new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"StringBuilder sb=new StringBuilder();",
"sb",
"new StringBuilder()",
"int b=readByte();",
"b",
"readByte()",
"readByte",
"while(!isSpaceChar(b)){\n sb.appendCodePoint(b);\n b=readByte();\n }",
"!isSpaceChar(b)",
"isSpaceChar(b)",
"isSpaceChar",
"b",
"{\n sb.appendCodePoint(b);\n b=readByte();\n }",
"sb.appendCodePoint(b)",
"sb.appendCodePoint",
"sb",
"b",
"b=readByte()",
"b",
"readByte()",
"readByte",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public int nextInt() {\n if(!hasNext()) throw new NoSuchElementException();\n int c=readByte();\n while (isSpaceChar(c)) c=readByte();\n boolean minus=false;\n if (c=='-') {\n minus=true;\n c=readByte();\n }\n int res=0;\n do{\n if(c<'0'||c>'9') throw new InputMismatchException();\n res=res*10+c-'0';\n c=readByte();\n }while(!isSpaceChar(c));\n return (minus)?-res:res;\n }",
"nextInt",
"{\n if(!hasNext()) throw new NoSuchElementException();\n int c=readByte();\n while (isSpaceChar(c)) c=readByte();\n boolean minus=false;\n if (c=='-') {\n minus=true;\n c=readByte();\n }\n int res=0;\n do{\n if(c<'0'||c>'9') throw new InputMismatchException();\n res=res*10+c-'0';\n c=readByte();\n }while(!isSpaceChar(c));\n return (minus)?-res:res;\n }",
"if(!hasNext()) throw new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"int c=readByte();",
"c",
"readByte()",
"readByte",
"while (isSpaceChar(c)) c=readByte();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c=readByte()",
"c",
"readByte()",
"readByte",
"boolean minus=false;",
"minus",
"false",
"if (c=='-') {\n minus=true;\n c=readByte();\n }",
"c=='-'",
"c",
"'-'",
"{\n minus=true;\n c=readByte();\n }",
"minus=true",
"minus",
"true",
"c=readByte()",
"c",
"readByte()",
"readByte",
"int res=0;",
"res",
"0",
"do{\n if(c<'0'||c>'9') throw new InputMismatchException();\n res=res*10+c-'0';\n c=readByte();\n }while(!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n if(c<'0'||c>'9') throw new InputMismatchException();\n res=res*10+c-'0';\n c=readByte();\n }",
"if(c<'0'||c>'9') throw new InputMismatchException();",
"c<'0'||c>'9'",
"c<'0'",
"c",
"'0'",
"c>'9'",
"c",
"'9'",
"throw new InputMismatchException();",
"new InputMismatchException()",
"res=res*10+c-'0'",
"res",
"res*10+c-'0'",
"res*10+c",
"res*10",
"res",
"10",
"c",
"'0'",
"c=readByte()",
"c",
"readByte()",
"readByte",
"return (minus)?-res:res;",
"(minus)?-res:res",
"(minus)",
"-res",
"res",
"res",
"public long nextLong() {\n if(!hasNext()) throw new NoSuchElementException();\n int c=readByte();\n while (isSpaceChar(c)) c=readByte();\n boolean minus=false;\n if (c=='-') {\n minus=true;\n c=readByte();\n }\n long res = 0;\n do{\n if(c<'0'||c>'9') throw new InputMismatchException();\n res=res*10+c-'0';\n c=readByte();\n }while(!isSpaceChar(c));\n return (minus)?-res:res;\n }",
"nextLong",
"{\n if(!hasNext()) throw new NoSuchElementException();\n int c=readByte();\n while (isSpaceChar(c)) c=readByte();\n boolean minus=false;\n if (c=='-') {\n minus=true;\n c=readByte();\n }\n long res = 0;\n do{\n if(c<'0'||c>'9') throw new InputMismatchException();\n res=res*10+c-'0';\n c=readByte();\n }while(!isSpaceChar(c));\n return (minus)?-res:res;\n }",
"if(!hasNext()) throw new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"int c=readByte();",
"c",
"readByte()",
"readByte",
"while (isSpaceChar(c)) c=readByte();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c=readByte()",
"c",
"readByte()",
"readByte",
"boolean minus=false;",
"minus",
"false",
"if (c=='-') {\n minus=true;\n c=readByte();\n }",
"c=='-'",
"c",
"'-'",
"{\n minus=true;\n c=readByte();\n }",
"minus=true",
"minus",
"true",
"c=readByte()",
"c",
"readByte()",
"readByte",
"long res = 0;",
"res",
"0",
"do{\n if(c<'0'||c>'9') throw new InputMismatchException();\n res=res*10+c-'0';\n c=readByte();\n }while(!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n if(c<'0'||c>'9') throw new InputMismatchException();\n res=res*10+c-'0';\n c=readByte();\n }",
"if(c<'0'||c>'9') throw new InputMismatchException();",
"c<'0'||c>'9'",
"c<'0'",
"c",
"'0'",
"c>'9'",
"c",
"'9'",
"throw new InputMismatchException();",
"new InputMismatchException()",
"res=res*10+c-'0'",
"res",
"res*10+c-'0'",
"res*10+c",
"res*10",
"res",
"10",
"c",
"'0'",
"c=readByte()",
"c",
"readByte()",
"readByte",
"return (minus)?-res:res;",
"(minus)?-res:res",
"(minus)",
"-res",
"res",
"res",
"public double nextDouble(){return Double.parseDouble(next());}",
"nextDouble",
"{return Double.parseDouble(next());}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public BigInteger nextBigInteger(){return new BigInteger(next());}",
"nextBigInteger",
"{return new BigInteger(next());}",
"return new BigInteger(next());",
"new BigInteger(next())",
"public int[] nextIntArray(int n){\n int[] a=new int[n];\n for(int i=0;i<n;i++) a[i]=nextInt();\n return a;\n }",
"nextIntArray",
"{\n int[] a=new int[n];\n for(int i=0;i<n;i++) a[i]=nextInt();\n return a;\n }",
"int[] a=new int[n];",
"a",
"new int[n]",
"n",
"for(int i=0;i<n;i++) a[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=nextInt();",
"a[i]=nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"public char[][] nextCharMap(int n,int m){\n char[][] map=new char[n][m];\n for(int i=0;i<n;i++) map[i]=next().toCharArray();\n return map;\n }",
"nextCharMap",
"{\n char[][] map=new char[n][m];\n for(int i=0;i<n;i++) map[i]=next().toCharArray();\n return map;\n }",
"char[][] map=new char[n][m];",
"map",
"new char[n][m]",
"n",
"m",
"for(int i=0;i<n;i++) map[i]=next().toCharArray();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"map[i]=next().toCharArray();",
"map[i]=next().toCharArray()",
"map[i]",
"map",
"i",
"next().toCharArray()",
"next().toCharArray",
"next()",
"next",
"return map;",
"map",
"int n",
"n",
"int m",
"m",
"public class Main{\n \nstatic final InputStream in=System.in;\nstatic final PrintWriter out=new PrintWriter(System.out);\nstatic final int INF=Integer.MAX_VALUE;\nstatic final long LINF=Long.MAX_VALUE;\n \npublic static void main(String[] args) throws IOException{\nInputReader ir=new InputReader(in);\nint n=ir.nextInt();\nint m=ir.nextInt();\nint[][] mat=new int[n][m];\nfor(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n mat[i][j]=ir.nextInt();\n }\n}\nint[] vector=ir.nextIntArray(m);\nint[] c=new int[n];\nfor(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n c[i]+=mat[i][j]*vector[j];\n }\n out.println(c[i]);\n}\nout.flush();\n}\n\nstatic class InputReader {\n private InputStream in;\n private byte[] buffer=new byte[1024];\n private int curbuf;\n private int lenbuf;\n \n public InputReader(InputStream in) {this.in=in; this.curbuf=this.lenbuf=0;}\n \n public boolean hasNextByte() {\n if(curbuf>=lenbuf){\n curbuf= 0;\n try{\n lenbuf=in.read(buffer);\n }catch(IOException e) {\n throw new InputMismatchException();\n }\n if(lenbuf<=0) return false;\n }\n return true;\n }\n \n private int readByte(){if(hasNextByte()) return buffer[curbuf++]; else return -1;}\n\n private boolean isSpaceChar(int c){return !(c>=33&&c<=126);}\n \n private void skip(){while(hasNextByte()&&isSpaceChar(buffer[curbuf])) curbuf++;}\n\n public boolean hasNext(){skip(); return hasNextByte();}\n \n public String next(){\n if(!hasNext()) throw new NoSuchElementException();\n StringBuilder sb=new StringBuilder();\n int b=readByte();\n while(!isSpaceChar(b)){\n sb.appendCodePoint(b);\n b=readByte();\n }\n return sb.toString();\n }\n \n public int nextInt() {\n if(!hasNext()) throw new NoSuchElementException();\n int c=readByte();\n while (isSpaceChar(c)) c=readByte();\n boolean minus=false;\n if (c=='-') {\n minus=true;\n c=readByte();\n }\n int res=0;\n do{\n if(c<'0'||c>'9') throw new InputMismatchException();\n res=res*10+c-'0';\n c=readByte();\n }while(!isSpaceChar(c));\n return (minus)?-res:res;\n }\n \n public long nextLong() {\n if(!hasNext()) throw new NoSuchElementException();\n int c=readByte();\n while (isSpaceChar(c)) c=readByte();\n boolean minus=false;\n if (c=='-') {\n minus=true;\n c=readByte();\n }\n long res = 0;\n do{\n if(c<'0'||c>'9') throw new InputMismatchException();\n res=res*10+c-'0';\n c=readByte();\n }while(!isSpaceChar(c));\n return (minus)?-res:res;\n }\n \n public double nextDouble(){return Double.parseDouble(next());}\n \n public BigInteger nextBigInteger(){return new BigInteger(next());}\n \n public int[] nextIntArray(int n){\n int[] a=new int[n];\n for(int i=0;i<n;i++) a[i]=nextInt();\n return a;\n }\n \n public char[][] nextCharMap(int n,int m){\n char[][] map=new char[n][m];\n for(int i=0;i<n;i++) map[i]=next().toCharArray();\n return map;\n }\n}\n}",
"public class Main{\n \nstatic final InputStream in=System.in;\nstatic final PrintWriter out=new PrintWriter(System.out);\nstatic final int INF=Integer.MAX_VALUE;\nstatic final long LINF=Long.MAX_VALUE;\n \npublic static void main(String[] args) throws IOException{\nInputReader ir=new InputReader(in);\nint n=ir.nextInt();\nint m=ir.nextInt();\nint[][] mat=new int[n][m];\nfor(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n mat[i][j]=ir.nextInt();\n }\n}\nint[] vector=ir.nextIntArray(m);\nint[] c=new int[n];\nfor(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n c[i]+=mat[i][j]*vector[j];\n }\n out.println(c[i]);\n}\nout.flush();\n}\n\nstatic class InputReader {\n private InputStream in;\n private byte[] buffer=new byte[1024];\n private int curbuf;\n private int lenbuf;\n \n public InputReader(InputStream in) {this.in=in; this.curbuf=this.lenbuf=0;}\n \n public boolean hasNextByte() {\n if(curbuf>=lenbuf){\n curbuf= 0;\n try{\n lenbuf=in.read(buffer);\n }catch(IOException e) {\n throw new InputMismatchException();\n }\n if(lenbuf<=0) return false;\n }\n return true;\n }\n \n private int readByte(){if(hasNextByte()) return buffer[curbuf++]; else return -1;}\n\n private boolean isSpaceChar(int c){return !(c>=33&&c<=126);}\n \n private void skip(){while(hasNextByte()&&isSpaceChar(buffer[curbuf])) curbuf++;}\n\n public boolean hasNext(){skip(); return hasNextByte();}\n \n public String next(){\n if(!hasNext()) throw new NoSuchElementException();\n StringBuilder sb=new StringBuilder();\n int b=readByte();\n while(!isSpaceChar(b)){\n sb.appendCodePoint(b);\n b=readByte();\n }\n return sb.toString();\n }\n \n public int nextInt() {\n if(!hasNext()) throw new NoSuchElementException();\n int c=readByte();\n while (isSpaceChar(c)) c=readByte();\n boolean minus=false;\n if (c=='-') {\n minus=true;\n c=readByte();\n }\n int res=0;\n do{\n if(c<'0'||c>'9') throw new InputMismatchException();\n res=res*10+c-'0';\n c=readByte();\n }while(!isSpaceChar(c));\n return (minus)?-res:res;\n }\n \n public long nextLong() {\n if(!hasNext()) throw new NoSuchElementException();\n int c=readByte();\n while (isSpaceChar(c)) c=readByte();\n boolean minus=false;\n if (c=='-') {\n minus=true;\n c=readByte();\n }\n long res = 0;\n do{\n if(c<'0'||c>'9') throw new InputMismatchException();\n res=res*10+c-'0';\n c=readByte();\n }while(!isSpaceChar(c));\n return (minus)?-res:res;\n }\n \n public double nextDouble(){return Double.parseDouble(next());}\n \n public BigInteger nextBigInteger(){return new BigInteger(next());}\n \n public int[] nextIntArray(int n){\n int[] a=new int[n];\n for(int i=0;i<n;i++) a[i]=nextInt();\n return a;\n }\n \n public char[][] nextCharMap(int n,int m){\n char[][] map=new char[n][m];\n for(int i=0;i<n;i++) map[i]=next().toCharArray();\n return map;\n }\n}\n}",
"Main"
] | import java.io.InputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.BitSet;
import java.util.Comparator;
import java.util.Deque;
import java.util.HashMap;
import java.util.HashSet;
import java.util.InputMismatchException;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.PriorityQueue;
import java.util.TreeMap;
import java.math.BigDecimal;
import java.math.BigInteger;
public class Main{
static final InputStream in=System.in;
static final PrintWriter out=new PrintWriter(System.out);
static final int INF=Integer.MAX_VALUE;
static final long LINF=Long.MAX_VALUE;
public static void main(String[] args) throws IOException{
InputReader ir=new InputReader(in);
int n=ir.nextInt();
int m=ir.nextInt();
int[][] mat=new int[n][m];
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
mat[i][j]=ir.nextInt();
}
}
int[] vector=ir.nextIntArray(m);
int[] c=new int[n];
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
c[i]+=mat[i][j]*vector[j];
}
out.println(c[i]);
}
out.flush();
}
static class InputReader {
private InputStream in;
private byte[] buffer=new byte[1024];
private int curbuf;
private int lenbuf;
public InputReader(InputStream in) {this.in=in; this.curbuf=this.lenbuf=0;}
public boolean hasNextByte() {
if(curbuf>=lenbuf){
curbuf= 0;
try{
lenbuf=in.read(buffer);
}catch(IOException e) {
throw new InputMismatchException();
}
if(lenbuf<=0) return false;
}
return true;
}
private int readByte(){if(hasNextByte()) return buffer[curbuf++]; else return -1;}
private boolean isSpaceChar(int c){return !(c>=33&&c<=126);}
private void skip(){while(hasNextByte()&&isSpaceChar(buffer[curbuf])) curbuf++;}
public boolean hasNext(){skip(); return hasNextByte();}
public String next(){
if(!hasNext()) throw new NoSuchElementException();
StringBuilder sb=new StringBuilder();
int b=readByte();
while(!isSpaceChar(b)){
sb.appendCodePoint(b);
b=readByte();
}
return sb.toString();
}
public int nextInt() {
if(!hasNext()) throw new NoSuchElementException();
int c=readByte();
while (isSpaceChar(c)) c=readByte();
boolean minus=false;
if (c=='-') {
minus=true;
c=readByte();
}
int res=0;
do{
if(c<'0'||c>'9') throw new InputMismatchException();
res=res*10+c-'0';
c=readByte();
}while(!isSpaceChar(c));
return (minus)?-res:res;
}
public long nextLong() {
if(!hasNext()) throw new NoSuchElementException();
int c=readByte();
while (isSpaceChar(c)) c=readByte();
boolean minus=false;
if (c=='-') {
minus=true;
c=readByte();
}
long res = 0;
do{
if(c<'0'||c>'9') throw new InputMismatchException();
res=res*10+c-'0';
c=readByte();
}while(!isSpaceChar(c));
return (minus)?-res:res;
}
public double nextDouble(){return Double.parseDouble(next());}
public BigInteger nextBigInteger(){return new BigInteger(next());}
public int[] nextIntArray(int n){
int[] a=new int[n];
for(int i=0;i<n;i++) a[i]=nextInt();
return a;
}
public char[][] nextCharMap(int n,int m){
char[][] map=new char[n][m];
for(int i=0;i<n;i++) map[i]=next().toCharArray();
return map;
}
}
} |
[
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,
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
] | [
[
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
],
[
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
],
[
89,
91
],
[
11,
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
],
[
11,
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
],
[
9,
153
],
[
153,
154
]
] | [
"import java.io.*;\nimport java.util.*;\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 \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] = sc.nextInt();\n }\n }\n \n for (int i = 0; i < m; i++) {\n B[i] = sc.nextInt();\n }\n \n int[] result = new int[n];\n \n \n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n result[i] += A[i][j] * B[j];\n }\n }\n \n \n for (int i = 0; i < n; i++) {\n System.out.println(result[i]);\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"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 \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] = sc.nextInt();\n }\n }\n \n for (int i = 0; i < m; i++) {\n B[i] = sc.nextInt();\n }\n \n int[] result = new int[n];\n \n \n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n result[i] += A[i][j] * B[j];\n }\n }\n \n \n for (int i = 0; i < n; i++) {\n System.out.println(result[i]);\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 \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] = sc.nextInt();\n }\n }\n \n for (int i = 0; i < m; i++) {\n B[i] = sc.nextInt();\n }\n \n int[] result = new int[n];\n \n \n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n result[i] += A[i][j] * B[j];\n }\n }\n \n \n for (int i = 0; i < n; i++) {\n System.out.println(result[i]);\n }\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 \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 \n for (int i = 0; i < m; i++) {\n B[i] = sc.nextInt();\n }\n \n int[] result = new int[n];\n \n \n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n result[i] += A[i][j] * B[j];\n }\n }\n \n \n for (int i = 0; i < n; i++) {\n System.out.println(result[i]);\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",
"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",
"int[] result = new int[n];",
"result",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n result[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 result[i] += A[i][j] * B[j];\n }\n }",
"{\n for (int j = 0; j < m; j++) {\n result[i] += A[i][j] * B[j];\n }\n }",
"for (int j = 0; j < m; j++) {\n result[i] += A[i][j] * B[j];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n result[i] += A[i][j] * B[j];\n }",
"{\n result[i] += A[i][j] * B[j];\n }",
"result[i] += A[i][j] * B[j]",
"result[i]",
"result",
"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(result[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n System.out.println(result[i]);\n }",
"{\n System.out.println(result[i]);\n }",
"System.out.println(result[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"result[i]",
"result",
"i",
"String[] args",
"args"
] | import java.io.*;
import java.util.*;
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 i = 0; i < m; i++) {
B[i] = sc.nextInt();
}
int[] result = new int[n];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
result[i] += A[i][j] * B[j];
}
}
for (int i = 0; i < n; i++) {
System.out.println(result[i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
13,
13,
41,
13,
20,
18,
13,
17,
18,
13,
17,
41,
13,
20,
18,
13,
17,
41,
13,
20,
18,
13,
17,
41,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
17,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
17,
0,
18,
13,
13,
4,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
17,
1,
40,
13,
30,
30,
0,
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,
12,
13,
30,
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,
29,
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
],
[
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
],
[
43,
44
],
[
43,
45
],
[
8,
46
],
[
46,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
48,
58
],
[
58,
59
],
[
59,
60
],
[
48,
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
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
75,
77
],
[
8,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
78,
88
],
[
88,
89
],
[
89,
90
],
[
78,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
100,
101
],
[
101,
102
],
[
8,
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
],
[
128,
130
],
[
121,
131
],
[
131,
132
],
[
132,
133
],
[
121,
134
],
[
135,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
139,
145
],
[
145,
146
],
[
145,
147
],
[
138,
148
],
[
117,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
149,
154
],
[
6,
155
],
[
155,
156
],
[
4,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
163,
164
],
[
163,
165
],
[
159,
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
],
[
182,
184
],
[
181,
185
],
[
185,
186
],
[
186,
187
],
[
185,
188
],
[
188,
189
],
[
188,
190
],
[
159,
191
],
[
191,
192
],
[
157,
193
],
[
193,
194
]
] | [
"import java.io.*;\n\nclass Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str[] = br.readLine().split(\" \");\n\t\tint in[] = parseInts(str);\n\t\tint in1[][] = new int[in[0]][in[1]];\n\t\tString str1[] = new String[in[1]];\n\t\tint in2[] = new int[in[1]];\n\t\tint x;\n\t\tfor(int i=0; i<in[0]; i++){\n\t\t\tstr1 = br.readLine().split(\" \");\n\t\t\tin1[i] = parseInts(str1);\n\t\t}\n\t\tfor(int i=0; i<in[1]; i++){\n\t\t\tin2[i] = Integer.parseInt(br.readLine());\n\t\t}\n\t\tfor(int n=0; n<in[0]; n++){\n\t\t\tx = 0;\n\t\t\tfor(int m=0; m<in[1]; m++){\n\t\t\t\tx = in1[n][m] * in2[m] + x;\n\t\t\t}\n\t\t\tSystem.out.println(x);\n\t\t}\n\t}\n\tstatic int[] parseInts(String[] s){\n\t\tint[] x = new int[s.length];\n\t\tfor(int i=0; i<s.length; i++){\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}\n\t\treturn x;\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"class Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str[] = br.readLine().split(\" \");\n\t\tint in[] = parseInts(str);\n\t\tint in1[][] = new int[in[0]][in[1]];\n\t\tString str1[] = new String[in[1]];\n\t\tint in2[] = new int[in[1]];\n\t\tint x;\n\t\tfor(int i=0; i<in[0]; i++){\n\t\t\tstr1 = br.readLine().split(\" \");\n\t\t\tin1[i] = parseInts(str1);\n\t\t}\n\t\tfor(int i=0; i<in[1]; i++){\n\t\t\tin2[i] = Integer.parseInt(br.readLine());\n\t\t}\n\t\tfor(int n=0; n<in[0]; n++){\n\t\t\tx = 0;\n\t\t\tfor(int m=0; m<in[1]; m++){\n\t\t\t\tx = in1[n][m] * in2[m] + x;\n\t\t\t}\n\t\t\tSystem.out.println(x);\n\t\t}\n\t}\n\tstatic int[] parseInts(String[] s){\n\t\tint[] x = new int[s.length];\n\t\tfor(int i=0; i<s.length; i++){\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}\n\t\treturn x;\n\t}\n}",
"Main",
"public static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str[] = br.readLine().split(\" \");\n\t\tint in[] = parseInts(str);\n\t\tint in1[][] = new int[in[0]][in[1]];\n\t\tString str1[] = new String[in[1]];\n\t\tint in2[] = new int[in[1]];\n\t\tint x;\n\t\tfor(int i=0; i<in[0]; i++){\n\t\t\tstr1 = br.readLine().split(\" \");\n\t\t\tin1[i] = parseInts(str1);\n\t\t}\n\t\tfor(int i=0; i<in[1]; i++){\n\t\t\tin2[i] = Integer.parseInt(br.readLine());\n\t\t}\n\t\tfor(int n=0; n<in[0]; n++){\n\t\t\tx = 0;\n\t\t\tfor(int m=0; m<in[1]; m++){\n\t\t\t\tx = in1[n][m] * in2[m] + x;\n\t\t\t}\n\t\t\tSystem.out.println(x);\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str[] = br.readLine().split(\" \");\n\t\tint in[] = parseInts(str);\n\t\tint in1[][] = new int[in[0]][in[1]];\n\t\tString str1[] = new String[in[1]];\n\t\tint in2[] = new int[in[1]];\n\t\tint x;\n\t\tfor(int i=0; i<in[0]; i++){\n\t\t\tstr1 = br.readLine().split(\" \");\n\t\t\tin1[i] = parseInts(str1);\n\t\t}\n\t\tfor(int i=0; i<in[1]; i++){\n\t\t\tin2[i] = Integer.parseInt(br.readLine());\n\t\t}\n\t\tfor(int n=0; n<in[0]; n++){\n\t\t\tx = 0;\n\t\t\tfor(int m=0; m<in[1]; m++){\n\t\t\t\tx = in1[n][m] * in2[m] + x;\n\t\t\t}\n\t\t\tSystem.out.println(x);\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str[] = br.readLine().split(\" \");",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int in[] = parseInts(str);",
"in",
"parseInts(str)",
"parseInts",
"str",
"int in1[][] = new int[in[0]][in[1]];",
"in1",
"new int[in[0]][in[1]]",
"in[0]",
"in",
"0",
"in[1]",
"in",
"1",
"String str1[] = new String[in[1]];",
"str1",
"new String[in[1]]",
"in[1]",
"in",
"1",
"int in2[] = new int[in[1]];",
"in2",
"new int[in[1]]",
"in[1]",
"in",
"1",
"int x;",
"x",
"for(int i=0; i<in[0]; i++){\n\t\t\tstr1 = br.readLine().split(\" \");\n\t\t\tin1[i] = parseInts(str1);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<in[0]",
"i",
"in[0]",
"in",
"0",
"i++",
"i++",
"i",
"{\n\t\t\tstr1 = br.readLine().split(\" \");\n\t\t\tin1[i] = parseInts(str1);\n\t\t}",
"{\n\t\t\tstr1 = br.readLine().split(\" \");\n\t\t\tin1[i] = parseInts(str1);\n\t\t}",
"str1 = br.readLine().split(\" \")",
"str1",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"in1[i] = parseInts(str1)",
"in1[i]",
"in1",
"i",
"parseInts(str1)",
"parseInts",
"str1",
"for(int i=0; i<in[1]; i++){\n\t\t\tin2[i] = Integer.parseInt(br.readLine());\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<in[1]",
"i",
"in[1]",
"in",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tin2[i] = Integer.parseInt(br.readLine());\n\t\t}",
"{\n\t\t\tin2[i] = Integer.parseInt(br.readLine());\n\t\t}",
"in2[i] = Integer.parseInt(br.readLine())",
"in2[i]",
"in2",
"i",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int n=0; n<in[0]; n++){\n\t\t\tx = 0;\n\t\t\tfor(int m=0; m<in[1]; m++){\n\t\t\t\tx = in1[n][m] * in2[m] + x;\n\t\t\t}\n\t\t\tSystem.out.println(x);\n\t\t}",
"int n=0;",
"int n=0;",
"n",
"0",
"n<in[0]",
"n",
"in[0]",
"in",
"0",
"n++",
"n++",
"n",
"{\n\t\t\tx = 0;\n\t\t\tfor(int m=0; m<in[1]; m++){\n\t\t\t\tx = in1[n][m] * in2[m] + x;\n\t\t\t}\n\t\t\tSystem.out.println(x);\n\t\t}",
"{\n\t\t\tx = 0;\n\t\t\tfor(int m=0; m<in[1]; m++){\n\t\t\t\tx = in1[n][m] * in2[m] + x;\n\t\t\t}\n\t\t\tSystem.out.println(x);\n\t\t}",
"x = 0",
"x",
"0",
"for(int m=0; m<in[1]; m++){\n\t\t\t\tx = in1[n][m] * in2[m] + x;\n\t\t\t}",
"int m=0;",
"int m=0;",
"m",
"0",
"m<in[1]",
"m",
"in[1]",
"in",
"1",
"m++",
"m++",
"m",
"{\n\t\t\t\tx = in1[n][m] * in2[m] + x;\n\t\t\t}",
"{\n\t\t\t\tx = in1[n][m] * in2[m] + x;\n\t\t\t}",
"x = in1[n][m] * in2[m] + x",
"x",
"in1[n][m] * in2[m] + x",
"in1[n][m] * in2[m]",
"in1[n][m]",
"in1[n]",
"in1",
"n",
"m",
"in2[m]",
"in2",
"m",
"x",
"System.out.println(x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x",
"String[] args",
"args",
"static int[] parseInts(String[] s){\n\t\tint[] x = new int[s.length];\n\t\tfor(int i=0; i<s.length; i++){\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}\n\t\treturn x;\n\t}",
"parseInts",
"{\n\t\tint[] x = new int[s.length];\n\t\tfor(int i=0; i<s.length; i++){\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}\n\t\treturn x;\n\t}",
"int[] x = new int[s.length];",
"x",
"new int[s.length]",
"s.length",
"s",
"s.length",
"for(int i=0; i<s.length; i++){\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<s.length",
"i",
"s.length",
"s",
"s.length",
"i++",
"i++",
"i",
"{\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}",
"{\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}",
"x[i] = Integer.parseInt(s[i])",
"x[i]",
"x",
"i",
"Integer.parseInt(s[i])",
"Integer.parseInt",
"Integer",
"s[i]",
"s",
"i",
"return x;",
"x",
"String[] s",
"s"
] | import java.io.*;
class Main{
public static void main(String[] args)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str[] = br.readLine().split(" ");
int in[] = parseInts(str);
int in1[][] = new int[in[0]][in[1]];
String str1[] = new String[in[1]];
int in2[] = new int[in[1]];
int x;
for(int i=0; i<in[0]; i++){
str1 = br.readLine().split(" ");
in1[i] = parseInts(str1);
}
for(int i=0; i<in[1]; i++){
in2[i] = Integer.parseInt(br.readLine());
}
for(int n=0; n<in[0]; n++){
x = 0;
for(int m=0; m<in[1]; m++){
x = in1[n][m] * in2[m] + x;
}
System.out.println(x);
}
}
static int[] parseInts(String[] s){
int[] x = new int[s.length];
for(int i=0; i<s.length; i++){
x[i] = Integer.parseInt(s[i]);
}
return x;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
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,
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,
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
] | [
[
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
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
32,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
14,
39
],
[
39,
40
],
[
39,
41
],
[
14,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
43,
53
],
[
53,
54
],
[
54,
55
],
[
43,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
58,
70
],
[
70,
71
],
[
71,
72
],
[
58,
73
],
[
74,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
75,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
84,
85
],
[
85,
86
],
[
14,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
94,
96
],
[
87,
97
],
[
97,
98
],
[
98,
99
],
[
87,
100
],
[
101,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
109,
110
],
[
110,
111
],
[
14,
112
],
[
112,
113
],
[
112,
114
],
[
14,
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
],
[
14,
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
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
173,
174
],
[
173,
175
],
[
12,
176
],
[
176,
177
]
] | [
"import java.io.*;\nimport java.util.*;\nimport java.lang.*;\n\nclass Main{\n public static void main(String[] args) throws IOException{\n Scanner scan=new Scanner(System.in);\n int n=Integer.parseInt(scan.next());\n int m=Integer.parseInt(scan.next());\n int[][] A=new int[n][m];\n int[] b=new int[m];\n for(int i=0;i<A.length;i++){\n for(int j=0;j<A[i].length;j++){\n A[i][j]=Integer.parseInt(scan.next());\n }\n }\n for(int i=0;i<b.length;i++){\n b[i]=Integer.parseInt(scan.next());\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 for(int i=0;i<n;i++){\n System.out.println(c[i]);\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"class Main{\n public static void main(String[] args) throws IOException{\n Scanner scan=new Scanner(System.in);\n int n=Integer.parseInt(scan.next());\n int m=Integer.parseInt(scan.next());\n int[][] A=new int[n][m];\n int[] b=new int[m];\n for(int i=0;i<A.length;i++){\n for(int j=0;j<A[i].length;j++){\n A[i][j]=Integer.parseInt(scan.next());\n }\n }\n for(int i=0;i<b.length;i++){\n b[i]=Integer.parseInt(scan.next());\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 for(int i=0;i<n;i++){\n System.out.println(c[i]);\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException{\n Scanner scan=new Scanner(System.in);\n int n=Integer.parseInt(scan.next());\n int m=Integer.parseInt(scan.next());\n int[][] A=new int[n][m];\n int[] b=new int[m];\n for(int i=0;i<A.length;i++){\n for(int j=0;j<A[i].length;j++){\n A[i][j]=Integer.parseInt(scan.next());\n }\n }\n for(int i=0;i<b.length;i++){\n b[i]=Integer.parseInt(scan.next());\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 for(int i=0;i<n;i++){\n System.out.println(c[i]);\n }\n }",
"main",
"{\n Scanner scan=new Scanner(System.in);\n int n=Integer.parseInt(scan.next());\n int m=Integer.parseInt(scan.next());\n int[][] A=new int[n][m];\n int[] b=new int[m];\n for(int i=0;i<A.length;i++){\n for(int j=0;j<A[i].length;j++){\n A[i][j]=Integer.parseInt(scan.next());\n }\n }\n for(int i=0;i<b.length;i++){\n b[i]=Integer.parseInt(scan.next());\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 for(int i=0;i<n;i++){\n System.out.println(c[i]);\n }\n }",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n=Integer.parseInt(scan.next());",
"n",
"Integer.parseInt(scan.next())",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"scan",
"int m=Integer.parseInt(scan.next());",
"m",
"Integer.parseInt(scan.next())",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"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<A.length;i++){\n for(int j=0;j<A[i].length;j++){\n A[i][j]=Integer.parseInt(scan.next());\n }\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[i].length;j++){\n A[i][j]=Integer.parseInt(scan.next());\n }\n }",
"{\n for(int j=0;j<A[i].length;j++){\n A[i][j]=Integer.parseInt(scan.next());\n }\n }",
"for(int j=0;j<A[i].length;j++){\n A[i][j]=Integer.parseInt(scan.next());\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<A[i].length",
"j",
"A[i].length",
"A[i]",
"A",
"i",
"A[i].length",
"j++",
"j++",
"j",
"{\n A[i][j]=Integer.parseInt(scan.next());\n }",
"{\n A[i][j]=Integer.parseInt(scan.next());\n }",
"A[i][j]=Integer.parseInt(scan.next())",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"Integer.parseInt(scan.next())",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"scan",
"for(int i=0;i<b.length;i++){\n b[i]=Integer.parseInt(scan.next());\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<b.length",
"i",
"b.length",
"b",
"b.length",
"i++",
"i++",
"i",
"{\n b[i]=Integer.parseInt(scan.next());\n }",
"{\n b[i]=Integer.parseInt(scan.next());\n }",
"b[i]=Integer.parseInt(scan.next())",
"b[i]",
"b",
"i",
"Integer.parseInt(scan.next())",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"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<n;i++){\n System.out.println(c[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"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"
] | import java.io.*;
import java.util.*;
import java.lang.*;
class Main{
public static void main(String[] args) throws IOException{
Scanner scan=new Scanner(System.in);
int n=Integer.parseInt(scan.next());
int m=Integer.parseInt(scan.next());
int[][] A=new int[n][m];
int[] b=new int[m];
for(int i=0;i<A.length;i++){
for(int j=0;j<A[i].length;j++){
A[i][j]=Integer.parseInt(scan.next());
}
}
for(int i=0;i<b.length;i++){
b[i]=Integer.parseInt(scan.next());
}
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<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,
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,
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,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
141,
5
],
[
141,
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
],
[
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
],
[
8,
135
],
[
135,
136
],
[
136,
137
],
[
6,
138
],
[
138,
139
],
[
0,
140
],
[
140,
141
],
[
140,
142
]
] | [
"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\t\tint[][] arrayA = new int[n][m];\n\t\tint[] arrayB = 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\tarrayA[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i< m; i++){\n\t\t\tarrayB[i] = scan.nextInt();\n\t\t}\n\t\tint intCount = 0;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tintCount = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tintCount += arrayA[i][j] * arrayB[j];\n\t\t\t}\n\t\t\tSystem.out.println(intCount);\n\t\t}\n\t\tscan.close();\n\t}\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\t\tint[][] arrayA = new int[n][m];\n\t\tint[] arrayB = 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\tarrayA[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i< m; i++){\n\t\t\tarrayB[i] = scan.nextInt();\n\t\t}\n\t\tint intCount = 0;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tintCount = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tintCount += arrayA[i][j] * arrayB[j];\n\t\t\t}\n\t\t\tSystem.out.println(intCount);\n\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\t\tint m = scan.nextInt();\n\t\tint[][] arrayA = new int[n][m];\n\t\tint[] arrayB = 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\tarrayA[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i< m; i++){\n\t\t\tarrayB[i] = scan.nextInt();\n\t\t}\n\t\tint intCount = 0;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tintCount = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tintCount += arrayA[i][j] * arrayB[j];\n\t\t\t}\n\t\t\tSystem.out.println(intCount);\n\t\t}\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\t\tint[][] arrayA = new int[n][m];\n\t\tint[] arrayB = 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\tarrayA[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i< m; i++){\n\t\t\tarrayB[i] = scan.nextInt();\n\t\t}\n\t\tint intCount = 0;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tintCount = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tintCount += arrayA[i][j] * arrayB[j];\n\t\t\t}\n\t\t\tSystem.out.println(intCount);\n\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[][] arrayA = new int[n][m];",
"arrayA",
"new int[n][m]",
"n",
"m",
"int[] arrayB = new int[m];",
"arrayB",
"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\tarrayA[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\tarrayA[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\tarrayA[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0; j < m; j++){\n\t\t\t\tarrayA[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\tarrayA[i][j] = scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\tarrayA[i][j] = scan.nextInt();\n\t\t\t}",
"arrayA[i][j] = scan.nextInt()",
"arrayA[i][j]",
"arrayA[i]",
"arrayA",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 0; i< m; i++){\n\t\t\tarrayB[i] = scan.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i< m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tarrayB[i] = scan.nextInt();\n\t\t}",
"{\n\t\t\tarrayB[i] = scan.nextInt();\n\t\t}",
"arrayB[i] = scan.nextInt()",
"arrayB[i]",
"arrayB",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int intCount = 0;",
"intCount",
"0",
"for(int i = 0; i < n; i++){\n\t\t\tintCount = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tintCount += arrayA[i][j] * arrayB[j];\n\t\t\t}\n\t\t\tSystem.out.println(intCount);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tintCount = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tintCount += arrayA[i][j] * arrayB[j];\n\t\t\t}\n\t\t\tSystem.out.println(intCount);\n\t\t}",
"{\n\t\t\tintCount = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tintCount += arrayA[i][j] * arrayB[j];\n\t\t\t}\n\t\t\tSystem.out.println(intCount);\n\t\t}",
"intCount = 0",
"intCount",
"0",
"for(int j = 0; j < m; j++){\n\t\t\t\tintCount += arrayA[i][j] * arrayB[j];\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tintCount += arrayA[i][j] * arrayB[j];\n\t\t\t}",
"{\n\t\t\t\tintCount += arrayA[i][j] * arrayB[j];\n\t\t\t}",
"intCount += arrayA[i][j] * arrayB[j]",
"intCount",
"arrayA[i][j] * arrayB[j]",
"arrayA[i][j]",
"arrayA[i]",
"arrayA",
"i",
"j",
"arrayB[j]",
"arrayB",
"j",
"System.out.println(intCount)",
"System.out.println",
"System.out",
"System",
"System.out",
"intCount",
"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\t\tint[][] arrayA = new int[n][m];\n\t\tint[] arrayB = 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\tarrayA[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i< m; i++){\n\t\t\tarrayB[i] = scan.nextInt();\n\t\t}\n\t\tint intCount = 0;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tintCount = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tintCount += arrayA[i][j] * arrayB[j];\n\t\t\t}\n\t\t\tSystem.out.println(intCount);\n\t\t}\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\t\tint[][] arrayA = new int[n][m];\n\t\tint[] arrayB = 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\tarrayA[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i< m; i++){\n\t\t\tarrayB[i] = scan.nextInt();\n\t\t}\n\t\tint intCount = 0;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tintCount = 0;\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tintCount += arrayA[i][j] * arrayB[j];\n\t\t\t}\n\t\t\tSystem.out.println(intCount);\n\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();
int m = scan.nextInt();
int[][] arrayA = new int[n][m];
int[] arrayB = new int[m];
for(int i = 0; i < n; i++){
for(int j = 0; j < m; j++){
arrayA[i][j] = scan.nextInt();
}
}
for(int i = 0; i< m; i++){
arrayB[i] = scan.nextInt();
}
int intCount = 0;
for(int i = 0; i < n; i++){
intCount = 0;
for(int j = 0; j < m; j++){
intCount += arrayA[i][j] * arrayB[j];
}
System.out.println(intCount);
}
scan.close();
}
} |
[
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,
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,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
140,
5
],
[
140,
6
],
[
6,
7
],
[
6,
8
],
[
140,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
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,
31
],
[
31,
32
],
[
31,
33
],
[
11,
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
],
[
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
],
[
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
],
[
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
],
[
102,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
9,
137
],
[
137,
138
],
[
0,
139
],
[
139,
140
],
[
139,
141
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n static Scanner scan = new Scanner(System.in);\n public static void main(String [] args){\n \n int n = scan.nextInt(); int m = scan.nextInt();\n int [][] mtx = new int [n][m];\n int [] mtx2 = new int [m];\n int [] ans = new int [n];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n mtx[i][j] = scan.nextInt();\n }\n }\n for (int i = 0; i < m; i++) {\n mtx2[i] = scan.nextInt();\n }\n \n for (int i = 0; i < n; i++) { \n for (int j = 0; j < m; j++) {\n ans[i] += mtx[i][j] * mtx2[j] ;\n }\n System.out.println(ans[i]);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n static Scanner scan = new Scanner(System.in);\n public static void main(String [] args){\n \n int n = scan.nextInt(); int m = scan.nextInt();\n int [][] mtx = new int [n][m];\n int [] mtx2 = new int [m];\n int [] ans = new int [n];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n mtx[i][j] = scan.nextInt();\n }\n }\n for (int i = 0; i < m; i++) {\n mtx2[i] = scan.nextInt();\n }\n \n for (int i = 0; i < n; i++) { \n for (int j = 0; j < m; j++) {\n ans[i] += mtx[i][j] * mtx2[j] ;\n }\n System.out.println(ans[i]);\n }\n }\n}",
"Main",
"static Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"public static void main(String [] args){\n \n int n = scan.nextInt(); int m = scan.nextInt();\n int [][] mtx = new int [n][m];\n int [] mtx2 = new int [m];\n int [] ans = new int [n];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n mtx[i][j] = scan.nextInt();\n }\n }\n for (int i = 0; i < m; i++) {\n mtx2[i] = scan.nextInt();\n }\n \n for (int i = 0; i < n; i++) { \n for (int j = 0; j < m; j++) {\n ans[i] += mtx[i][j] * mtx2[j] ;\n }\n System.out.println(ans[i]);\n }\n }",
"main",
"{\n \n int n = scan.nextInt(); int m = scan.nextInt();\n int [][] mtx = new int [n][m];\n int [] mtx2 = new int [m];\n int [] ans = new int [n];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n mtx[i][j] = scan.nextInt();\n }\n }\n for (int i = 0; i < m; i++) {\n mtx2[i] = scan.nextInt();\n }\n \n for (int i = 0; i < n; i++) { \n for (int j = 0; j < m; j++) {\n ans[i] += mtx[i][j] * mtx2[j] ;\n }\n System.out.println(ans[i]);\n }\n }",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int [][] mtx = new int [n][m];",
"mtx",
"new int [n][m]",
"n",
"m",
"int [] mtx2 = new int [m];",
"mtx2",
"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 mtx[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 mtx[i][j] = scan.nextInt();\n }\n }",
"{\n for (int j = 0; j < m; j++) {\n mtx[i][j] = scan.nextInt();\n }\n }",
"for (int j = 0; j < m; j++) {\n mtx[i][j] = scan.nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n mtx[i][j] = scan.nextInt();\n }",
"{\n mtx[i][j] = scan.nextInt();\n }",
"mtx[i][j] = scan.nextInt()",
"mtx[i][j]",
"mtx[i]",
"mtx",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int i = 0; i < m; i++) {\n mtx2[i] = scan.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n mtx2[i] = scan.nextInt();\n }",
"{\n mtx2[i] = scan.nextInt();\n }",
"mtx2[i] = scan.nextInt()",
"mtx2[i]",
"mtx2",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int i = 0; i < n; i++) { \n for (int j = 0; j < m; j++) {\n ans[i] += mtx[i][j] * mtx2[j] ;\n }\n System.out.println(ans[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 ans[i] += mtx[i][j] * mtx2[j] ;\n }\n System.out.println(ans[i]);\n }",
"{ \n for (int j = 0; j < m; j++) {\n ans[i] += mtx[i][j] * mtx2[j] ;\n }\n System.out.println(ans[i]);\n }",
"for (int j = 0; j < m; j++) {\n ans[i] += mtx[i][j] * mtx2[j] ;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n ans[i] += mtx[i][j] * mtx2[j] ;\n }",
"{\n ans[i] += mtx[i][j] * mtx2[j] ;\n }",
"ans[i] += mtx[i][j] * mtx2[j]",
"ans[i]",
"ans",
"i",
"mtx[i][j] * mtx2[j]",
"mtx[i][j]",
"mtx[i]",
"mtx",
"i",
"j",
"mtx2[j]",
"mtx2",
"j",
"System.out.println(ans[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"ans[i]",
"ans",
"i",
"String [] args",
"args",
"public class Main{\n static Scanner scan = new Scanner(System.in);\n public static void main(String [] args){\n \n int n = scan.nextInt(); int m = scan.nextInt();\n int [][] mtx = new int [n][m];\n int [] mtx2 = new int [m];\n int [] ans = new int [n];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n mtx[i][j] = scan.nextInt();\n }\n }\n for (int i = 0; i < m; i++) {\n mtx2[i] = scan.nextInt();\n }\n \n for (int i = 0; i < n; i++) { \n for (int j = 0; j < m; j++) {\n ans[i] += mtx[i][j] * mtx2[j] ;\n }\n System.out.println(ans[i]);\n }\n }\n}",
"public class Main{\n static Scanner scan = new Scanner(System.in);\n public static void main(String [] args){\n \n int n = scan.nextInt(); int m = scan.nextInt();\n int [][] mtx = new int [n][m];\n int [] mtx2 = new int [m];\n int [] ans = new int [n];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n mtx[i][j] = scan.nextInt();\n }\n }\n for (int i = 0; i < m; i++) {\n mtx2[i] = scan.nextInt();\n }\n \n for (int i = 0; i < n; i++) { \n for (int j = 0; j < m; j++) {\n ans[i] += mtx[i][j] * mtx2[j] ;\n }\n System.out.println(ans[i]);\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main{
static Scanner scan = new Scanner(System.in);
public static void main(String [] args){
int n = scan.nextInt(); int m = scan.nextInt();
int [][] mtx = new int [n][m];
int [] mtx2 = new int [m];
int [] ans = new int [n];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
mtx[i][j] = scan.nextInt();
}
}
for (int i = 0; i < m; i++) {
mtx2[i] = scan.nextInt();
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
ans[i] += mtx[i][j] * mtx2[j] ;
}
System.out.println(ans[i]);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
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,
18,
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,
18,
18,
13,
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,
18,
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,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
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
],
[
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
],
[
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
],
[
61,
62
],
[
61,
63
],
[
54,
64
],
[
64,
65
],
[
65,
66
],
[
54,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
68,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
68,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
80,
92
],
[
92,
93
],
[
93,
94
],
[
80,
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
],
[
116,
117
],
[
116,
118
],
[
109,
119
],
[
119,
120
],
[
120,
121
],
[
109,
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
],
[
144,
145
],
[
144,
146
],
[
137,
147
],
[
147,
148
],
[
148,
149
],
[
137,
150
],
[
151,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
155,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
155,
167
],
[
167,
168
],
[
168,
169
],
[
155,
170
],
[
171,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
174,
180
],
[
180,
181
],
[
180,
182
],
[
151,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
183,
188
],
[
12,
189
],
[
189,
190
],
[
0,
191
],
[
191,
192
],
[
191,
193
]
] | [
"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 br = new BufferedReader(new InputStreamReader(System.in));\n String input = br.readLine();\n String[] strArray = input.split(\" \");\n int n = Integer.parseInt(strArray[0]); //n???\n int m = Integer.parseInt(strArray[1]); //m???\n\n int[][] A = new int[n][m];\n int[] b = new int[m];\n\n// ?????????????????????A????????????????????????\n for(int i = 0; i < A.length; i++){\n input = br.readLine();\n strArray = input.split(\" \");\n for(int j = 0; j < A[i].length; j++){\n A[i][j] = Integer.parseInt(strArray[j]);\n }\n }\n\n// ?????????????????????b?????????????????????\n for(int i = 0; i < b.length; i++){\n input = br.readLine();\n b[i] = Integer.parseInt(input);\n }\n\n// A??ยจb??????????ยจ??????????\n for(int i = 0; i < A.length; i++){\n int ans = 0;\n for(int j = 0; j < A[i].length; j++){\n ans += A[i][j] * b[j];\n }\n System.out.println(ans);\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 br = new BufferedReader(new InputStreamReader(System.in));\n String input = br.readLine();\n String[] strArray = input.split(\" \");\n int n = Integer.parseInt(strArray[0]); //n???\n int m = Integer.parseInt(strArray[1]); //m???\n\n int[][] A = new int[n][m];\n int[] b = new int[m];\n\n// ?????????????????????A????????????????????????\n for(int i = 0; i < A.length; i++){\n input = br.readLine();\n strArray = input.split(\" \");\n for(int j = 0; j < A[i].length; j++){\n A[i][j] = Integer.parseInt(strArray[j]);\n }\n }\n\n// ?????????????????????b?????????????????????\n for(int i = 0; i < b.length; i++){\n input = br.readLine();\n b[i] = Integer.parseInt(input);\n }\n\n// A??ยจb??????????ยจ??????????\n for(int i = 0; i < A.length; i++){\n int ans = 0;\n for(int j = 0; j < A[i].length; j++){\n ans += A[i][j] * b[j];\n }\n System.out.println(ans);\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String input = br.readLine();\n String[] strArray = input.split(\" \");\n int n = Integer.parseInt(strArray[0]); //n???\n int m = Integer.parseInt(strArray[1]); //m???\n\n int[][] A = new int[n][m];\n int[] b = new int[m];\n\n// ?????????????????????A????????????????????????\n for(int i = 0; i < A.length; i++){\n input = br.readLine();\n strArray = input.split(\" \");\n for(int j = 0; j < A[i].length; j++){\n A[i][j] = Integer.parseInt(strArray[j]);\n }\n }\n\n// ?????????????????????b?????????????????????\n for(int i = 0; i < b.length; i++){\n input = br.readLine();\n b[i] = Integer.parseInt(input);\n }\n\n// A??ยจb??????????ยจ??????????\n for(int i = 0; i < A.length; i++){\n int ans = 0;\n for(int j = 0; j < A[i].length; j++){\n ans += A[i][j] * b[j];\n }\n System.out.println(ans);\n }\n }",
"main",
"{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String input = br.readLine();\n String[] strArray = input.split(\" \");\n int n = Integer.parseInt(strArray[0]); //n???\n int m = Integer.parseInt(strArray[1]); //m???\n\n int[][] A = new int[n][m];\n int[] b = new int[m];\n\n// ?????????????????????A????????????????????????\n for(int i = 0; i < A.length; i++){\n input = br.readLine();\n strArray = input.split(\" \");\n for(int j = 0; j < A[i].length; j++){\n A[i][j] = Integer.parseInt(strArray[j]);\n }\n }\n\n// ?????????????????????b?????????????????????\n for(int i = 0; i < b.length; i++){\n input = br.readLine();\n b[i] = Integer.parseInt(input);\n }\n\n// A??ยจb??????????ยจ??????????\n for(int i = 0; i < A.length; i++){\n int ans = 0;\n for(int j = 0; j < A[i].length; j++){\n ans += A[i][j] * b[j];\n }\n System.out.println(ans);\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String input = br.readLine();",
"input",
"br.readLine()",
"br.readLine",
"br",
"String[] strArray = input.split(\" \");",
"strArray",
"input.split(\" \")",
"input.split",
"input",
"\" \"",
"int n = Integer.parseInt(strArray[0]);",
"n",
"Integer.parseInt(strArray[0])",
"Integer.parseInt",
"Integer",
"strArray[0]",
"strArray",
"0",
"int m = Integer.parseInt(strArray[1]);",
"m",
"Integer.parseInt(strArray[1])",
"Integer.parseInt",
"Integer",
"strArray[1]",
"strArray",
"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 < A.length; i++){\n input = br.readLine();\n strArray = input.split(\" \");\n for(int j = 0; j < A[i].length; j++){\n A[i][j] = Integer.parseInt(strArray[j]);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < A.length",
"i",
"A.length",
"A",
"A.length",
"i++",
"i++",
"i",
"{\n input = br.readLine();\n strArray = input.split(\" \");\n for(int j = 0; j < A[i].length; j++){\n A[i][j] = Integer.parseInt(strArray[j]);\n }\n }",
"{\n input = br.readLine();\n strArray = input.split(\" \");\n for(int j = 0; j < A[i].length; j++){\n A[i][j] = Integer.parseInt(strArray[j]);\n }\n }",
"input = br.readLine()",
"input",
"br.readLine()",
"br.readLine",
"br",
"strArray = input.split(\" \")",
"strArray",
"input.split(\" \")",
"input.split",
"input",
"\" \"",
"for(int j = 0; j < A[i].length; j++){\n A[i][j] = Integer.parseInt(strArray[j]);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < A[i].length",
"j",
"A[i].length",
"A[i]",
"A",
"i",
"A[i].length",
"j++",
"j++",
"j",
"{\n A[i][j] = Integer.parseInt(strArray[j]);\n }",
"{\n A[i][j] = Integer.parseInt(strArray[j]);\n }",
"A[i][j] = Integer.parseInt(strArray[j])",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"Integer.parseInt(strArray[j])",
"Integer.parseInt",
"Integer",
"strArray[j]",
"strArray",
"j",
"for(int i = 0; i < b.length; i++){\n input = br.readLine();\n b[i] = Integer.parseInt(input);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < b.length",
"i",
"b.length",
"b",
"b.length",
"i++",
"i++",
"i",
"{\n input = br.readLine();\n b[i] = Integer.parseInt(input);\n }",
"{\n input = br.readLine();\n b[i] = Integer.parseInt(input);\n }",
"input = br.readLine()",
"input",
"br.readLine()",
"br.readLine",
"br",
"b[i] = Integer.parseInt(input)",
"b[i]",
"b",
"i",
"Integer.parseInt(input)",
"Integer.parseInt",
"Integer",
"input",
"for(int i = 0; i < A.length; i++){\n int ans = 0;\n for(int j = 0; j < A[i].length; j++){\n ans += A[i][j] * b[j];\n }\n System.out.println(ans);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < A.length",
"i",
"A.length",
"A",
"A.length",
"i++",
"i++",
"i",
"{\n int ans = 0;\n for(int j = 0; j < A[i].length; j++){\n ans += A[i][j] * b[j];\n }\n System.out.println(ans);\n }",
"{\n int ans = 0;\n for(int j = 0; j < A[i].length; j++){\n ans += A[i][j] * b[j];\n }\n System.out.println(ans);\n }",
"int ans = 0;",
"ans",
"0",
"for(int j = 0; j < A[i].length; j++){\n ans += A[i][j] * b[j];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < A[i].length",
"j",
"A[i].length",
"A[i]",
"A",
"i",
"A[i].length",
"j++",
"j++",
"j",
"{\n ans += A[i][j] * b[j];\n }",
"{\n ans += A[i][j] * b[j];\n }",
"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",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String input = br.readLine();\n String[] strArray = input.split(\" \");\n int n = Integer.parseInt(strArray[0]); //n???\n int m = Integer.parseInt(strArray[1]); //m???\n\n int[][] A = new int[n][m];\n int[] b = new int[m];\n\n// ?????????????????????A????????????????????????\n for(int i = 0; i < A.length; i++){\n input = br.readLine();\n strArray = input.split(\" \");\n for(int j = 0; j < A[i].length; j++){\n A[i][j] = Integer.parseInt(strArray[j]);\n }\n }\n\n// ?????????????????????b?????????????????????\n for(int i = 0; i < b.length; i++){\n input = br.readLine();\n b[i] = Integer.parseInt(input);\n }\n\n// A??ยจb??????????ยจ??????????\n for(int i = 0; i < A.length; i++){\n int ans = 0;\n for(int j = 0; j < A[i].length; j++){\n ans += A[i][j] * b[j];\n }\n System.out.println(ans);\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String input = br.readLine();\n String[] strArray = input.split(\" \");\n int n = Integer.parseInt(strArray[0]); //n???\n int m = Integer.parseInt(strArray[1]); //m???\n\n int[][] A = new int[n][m];\n int[] b = new int[m];\n\n// ?????????????????????A????????????????????????\n for(int i = 0; i < A.length; i++){\n input = br.readLine();\n strArray = input.split(\" \");\n for(int j = 0; j < A[i].length; j++){\n A[i][j] = Integer.parseInt(strArray[j]);\n }\n }\n\n// ?????????????????????b?????????????????????\n for(int i = 0; i < b.length; i++){\n input = br.readLine();\n b[i] = Integer.parseInt(input);\n }\n\n// A??ยจb??????????ยจ??????????\n for(int i = 0; i < A.length; i++){\n int ans = 0;\n for(int j = 0; j < A[i].length; j++){\n ans += A[i][j] * b[j];\n }\n System.out.println(ans);\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 br = new BufferedReader(new InputStreamReader(System.in));
String input = br.readLine();
String[] strArray = input.split(" ");
int n = Integer.parseInt(strArray[0]); //n???
int m = Integer.parseInt(strArray[1]); //m???
int[][] A = new int[n][m];
int[] b = new int[m];
// ?????????????????????A????????????????????????
for(int i = 0; i < A.length; i++){
input = br.readLine();
strArray = input.split(" ");
for(int j = 0; j < A[i].length; j++){
A[i][j] = Integer.parseInt(strArray[j]);
}
}
// ?????????????????????b?????????????????????
for(int i = 0; i < b.length; i++){
input = br.readLine();
b[i] = Integer.parseInt(input);
}
// A??ยจb??????????ยจ??????????
for(int i = 0; i < A.length; i++){
int ans = 0;
for(int j = 0; j < A[i].length; j++){
ans += A[i][j] * b[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,
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,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
122,
5
],
[
122,
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
],
[
108,
110
],
[
108,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
6,
119
],
[
119,
120
],
[
0,
121
],
[
121,
122
],
[
121,
123
]
] | [
"import java.util.Scanner;\npublic class Main {\n public static void main(String[] defargs) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int m = scanner.nextInt();\n int[][] gyoretu = new int[n][m];\n\t\tint[] beku = 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\tgyoretu[i][j] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tint b = scanner.nextInt();\n\t\t\tfor (int j=0; j<n; j++) {\n\t\t\t\tbeku[j] += gyoretu[j][i]*b;\n\t\t\t}\n\t\t}\n\t\tfor (int C : beku) {\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 public static void main(String[] defargs) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int m = scanner.nextInt();\n int[][] gyoretu = new int[n][m];\n\t\tint[] beku = 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\tgyoretu[i][j] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tint b = scanner.nextInt();\n\t\t\tfor (int j=0; j<n; j++) {\n\t\t\t\tbeku[j] += gyoretu[j][i]*b;\n\t\t\t}\n\t\t}\n\t\tfor (int C : beku) {\n\t\t\tSystem.out.println(C);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] defargs) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int m = scanner.nextInt();\n int[][] gyoretu = new int[n][m];\n\t\tint[] beku = 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\tgyoretu[i][j] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tint b = scanner.nextInt();\n\t\t\tfor (int j=0; j<n; j++) {\n\t\t\t\tbeku[j] += gyoretu[j][i]*b;\n\t\t\t}\n\t\t}\n\t\tfor (int C : beku) {\n\t\t\tSystem.out.println(C);\n\t\t}\n\t}",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int m = scanner.nextInt();\n int[][] gyoretu = new int[n][m];\n\t\tint[] beku = 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\tgyoretu[i][j] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tint b = scanner.nextInt();\n\t\t\tfor (int j=0; j<n; j++) {\n\t\t\t\tbeku[j] += gyoretu[j][i]*b;\n\t\t\t}\n\t\t}\n\t\tfor (int C : beku) {\n\t\t\tSystem.out.println(C);\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[][] gyoretu = new int[n][m];",
"gyoretu",
"new int[n][m]",
"n",
"m",
"int[] beku = new int[n];",
"beku",
"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\tgyoretu[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\tgyoretu[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\tgyoretu[i][j] = scanner.nextInt();\n\t\t\t}\n\t\t}",
"for (int j = 0; j < m; j++) {\n\t\t\t\tgyoretu[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\tgyoretu[i][j] = scanner.nextInt();\n\t\t\t}",
"{\n\t\t\t\tgyoretu[i][j] = scanner.nextInt();\n\t\t\t}",
"gyoretu[i][j] = scanner.nextInt()",
"gyoretu[i][j]",
"gyoretu[i]",
"gyoretu",
"i",
"j",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for (int i = 0; i < m; i++) {\n\t\t\tint b = scanner.nextInt();\n\t\t\tfor (int j=0; j<n; j++) {\n\t\t\t\tbeku[j] += gyoretu[j][i]*b;\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 b = scanner.nextInt();\n\t\t\tfor (int j=0; j<n; j++) {\n\t\t\t\tbeku[j] += gyoretu[j][i]*b;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint b = scanner.nextInt();\n\t\t\tfor (int j=0; j<n; j++) {\n\t\t\t\tbeku[j] += gyoretu[j][i]*b;\n\t\t\t}\n\t\t}",
"int b = scanner.nextInt();",
"b",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for (int j=0; j<n; j++) {\n\t\t\t\tbeku[j] += gyoretu[j][i]*b;\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<n",
"j",
"n",
"j++",
"j++",
"j",
"{\n\t\t\t\tbeku[j] += gyoretu[j][i]*b;\n\t\t\t}",
"{\n\t\t\t\tbeku[j] += gyoretu[j][i]*b;\n\t\t\t}",
"beku[j] += gyoretu[j][i]*b",
"beku[j]",
"beku",
"j",
"gyoretu[j][i]*b",
"gyoretu[j][i]",
"gyoretu[j]",
"gyoretu",
"j",
"i",
"b",
"for (int C : beku) {\n\t\t\tSystem.out.println(C);\n\t\t}",
"int C",
"beku",
"{\n\t\t\tSystem.out.println(C);\n\t\t}",
"{\n\t\t\tSystem.out.println(C);\n\t\t}",
"System.out.println(C)",
"System.out.println",
"System.out",
"System",
"System.out",
"C",
"String[] defargs",
"defargs",
"public class Main {\n public static void main(String[] defargs) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int m = scanner.nextInt();\n int[][] gyoretu = new int[n][m];\n\t\tint[] beku = 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\tgyoretu[i][j] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tint b = scanner.nextInt();\n\t\t\tfor (int j=0; j<n; j++) {\n\t\t\t\tbeku[j] += gyoretu[j][i]*b;\n\t\t\t}\n\t\t}\n\t\tfor (int C : beku) {\n\t\t\tSystem.out.println(C);\n\t\t}\n\t}\n}",
"public class Main {\n public static void main(String[] defargs) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int m = scanner.nextInt();\n int[][] gyoretu = new int[n][m];\n\t\tint[] beku = 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\tgyoretu[i][j] = scanner.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tint b = scanner.nextInt();\n\t\t\tfor (int j=0; j<n; j++) {\n\t\t\t\tbeku[j] += gyoretu[j][i]*b;\n\t\t\t}\n\t\t}\n\t\tfor (int C : beku) {\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[] defargs) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int m = scanner.nextInt();
int[][] gyoretu = new int[n][m];
int[] beku = new int[n];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
gyoretu[i][j] = scanner.nextInt();
}
}
for (int i = 0; i < m; i++) {
int b = scanner.nextInt();
for (int j=0; j<n; j++) {
beku[j] += gyoretu[j][i]*b;
}
}
for (int C : beku) {
System.out.println(C);
}
}
}
|
[
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,
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
],
[
158,
5
],
[
158,
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
],
[
8,
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
],
[
149,
150
],
[
149,
151
],
[
147,
152
],
[
152,
153
],
[
152,
154
],
[
6,
155
],
[
155,
156
],
[
0,
157
],
[
157,
158
],
[
157,
159
]
] | [
"import java.util.Scanner;\n\n\npublic class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint h = scanner.nextInt();\n\t\tint w = scanner.nextInt();\n\t\t\n\t\tint[][] a = new int[h][w];\n\t\tint[] b = new int[w];\n\t\t\n\t\tint c[] = new int[h];\n\t\t\n\t\tfor(int i=0; i<h; i++)\n\t\t{\n\t\t\tfor(int j=0; j<w; j++)\n\t\t\t{\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<w; i++)\n\t\t{\n\t\t\tb[i] = scanner.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i=0; i<h; i++)\n\t\t{\n\t\t\tc[i] = 0;\n\t\t\tfor(int j=0; j<w; j++)\n\t\t\t{\n\t\t\t\tc[i] += a[i][j]*b[j];\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0; i<h; i++)\n\t\t{\n\t\t\tSystem.out.println(c[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{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint h = scanner.nextInt();\n\t\tint w = scanner.nextInt();\n\t\t\n\t\tint[][] a = new int[h][w];\n\t\tint[] b = new int[w];\n\t\t\n\t\tint c[] = new int[h];\n\t\t\n\t\tfor(int i=0; i<h; i++)\n\t\t{\n\t\t\tfor(int j=0; j<w; j++)\n\t\t\t{\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<w; i++)\n\t\t{\n\t\t\tb[i] = scanner.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i=0; i<h; i++)\n\t\t{\n\t\t\tc[i] = 0;\n\t\t\tfor(int j=0; j<w; j++)\n\t\t\t{\n\t\t\t\tc[i] += a[i][j]*b[j];\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0; i<h; i++)\n\t\t{\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint h = scanner.nextInt();\n\t\tint w = scanner.nextInt();\n\t\t\n\t\tint[][] a = new int[h][w];\n\t\tint[] b = new int[w];\n\t\t\n\t\tint c[] = new int[h];\n\t\t\n\t\tfor(int i=0; i<h; i++)\n\t\t{\n\t\t\tfor(int j=0; j<w; j++)\n\t\t\t{\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<w; i++)\n\t\t{\n\t\t\tb[i] = scanner.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i=0; i<h; i++)\n\t\t{\n\t\t\tc[i] = 0;\n\t\t\tfor(int j=0; j<w; j++)\n\t\t\t{\n\t\t\t\tc[i] += a[i][j]*b[j];\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0; i<h; i++)\n\t\t{\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint h = scanner.nextInt();\n\t\tint w = scanner.nextInt();\n\t\t\n\t\tint[][] a = new int[h][w];\n\t\tint[] b = new int[w];\n\t\t\n\t\tint c[] = new int[h];\n\t\t\n\t\tfor(int i=0; i<h; i++)\n\t\t{\n\t\t\tfor(int j=0; j<w; j++)\n\t\t\t{\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<w; i++)\n\t\t{\n\t\t\tb[i] = scanner.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i=0; i<h; i++)\n\t\t{\n\t\t\tc[i] = 0;\n\t\t\tfor(int j=0; j<w; j++)\n\t\t\t{\n\t\t\t\tc[i] += a[i][j]*b[j];\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0; i<h; i++)\n\t\t{\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int h = scanner.nextInt();",
"h",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int w = scanner.nextInt();",
"w",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int[][] a = new int[h][w];",
"a",
"new int[h][w]",
"h",
"w",
"int[] b = new int[w];",
"b",
"new int[w]",
"w",
"int c[] = new int[h];",
"c",
"new int[h]",
"h",
"for(int i=0; i<h; i++)\n\t\t{\n\t\t\tfor(int j=0; j<w; j++)\n\t\t\t{\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<h",
"i",
"h",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0; j<w; j++)\n\t\t\t{\n\t\t\t\ta[i][j] = scanner.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0; j<w; j++)\n\t\t\t{\n\t\t\t\ta[i][j] = scanner.nextInt();\n\t\t\t}\n\t\t}",
"for(int j=0; j<w; j++)\n\t\t\t{\n\t\t\t\ta[i][j] = scanner.nextInt();\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<w",
"j",
"w",
"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<w; i++)\n\t\t{\n\t\t\tb[i] = scanner.nextInt();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<w",
"i",
"w",
"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<h; i++)\n\t\t{\n\t\t\tc[i] = 0;\n\t\t\tfor(int j=0; j<w; j++)\n\t\t\t{\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<h",
"i",
"h",
"i++",
"i++",
"i",
"{\n\t\t\tc[i] = 0;\n\t\t\tfor(int j=0; j<w; j++)\n\t\t\t{\n\t\t\t\tc[i] += a[i][j]*b[j];\n\t\t\t}\n\t\t}",
"{\n\t\t\tc[i] = 0;\n\t\t\tfor(int j=0; j<w; j++)\n\t\t\t{\n\t\t\t\tc[i] += a[i][j]*b[j];\n\t\t\t}\n\t\t}",
"c[i] = 0",
"c[i]",
"c",
"i",
"0",
"for(int j=0; j<w; j++)\n\t\t\t{\n\t\t\t\tc[i] += a[i][j]*b[j];\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<w",
"j",
"w",
"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=0; i<h; i++)\n\t\t{\n\t\t\tSystem.out.println(c[i]);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<h",
"i",
"h",
"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\tpublic static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint h = scanner.nextInt();\n\t\tint w = scanner.nextInt();\n\t\t\n\t\tint[][] a = new int[h][w];\n\t\tint[] b = new int[w];\n\t\t\n\t\tint c[] = new int[h];\n\t\t\n\t\tfor(int i=0; i<h; i++)\n\t\t{\n\t\t\tfor(int j=0; j<w; j++)\n\t\t\t{\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<w; i++)\n\t\t{\n\t\t\tb[i] = scanner.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i=0; i<h; i++)\n\t\t{\n\t\t\tc[i] = 0;\n\t\t\tfor(int j=0; j<w; j++)\n\t\t\t{\n\t\t\t\tc[i] += a[i][j]*b[j];\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0; i<h; i++)\n\t\t{\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint h = scanner.nextInt();\n\t\tint w = scanner.nextInt();\n\t\t\n\t\tint[][] a = new int[h][w];\n\t\tint[] b = new int[w];\n\t\t\n\t\tint c[] = new int[h];\n\t\t\n\t\tfor(int i=0; i<h; i++)\n\t\t{\n\t\t\tfor(int j=0; j<w; j++)\n\t\t\t{\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<w; i++)\n\t\t{\n\t\t\tb[i] = scanner.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i=0; i<h; i++)\n\t\t{\n\t\t\tc[i] = 0;\n\t\t\tfor(int j=0; j<w; j++)\n\t\t\t{\n\t\t\t\tc[i] += a[i][j]*b[j];\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0; i<h; i++)\n\t\t{\n\t\t\tSystem.out.println(c[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 h = scanner.nextInt();
int w = scanner.nextInt();
int[][] a = new int[h][w];
int[] b = new int[w];
int c[] = new int[h];
for(int i=0; i<h; i++)
{
for(int j=0; j<w; j++)
{
a[i][j] = scanner.nextInt();
}
}
for(int i=0; i<w; i++)
{
b[i] = scanner.nextInt();
}
for(int i=0; i<h; i++)
{
c[i] = 0;
for(int j=0; j<w; j++)
{
c[i] += a[i][j]*b[j];
}
}
for(int i=0; i<h; i++)
{
System.out.println(c[i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
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,
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,
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,
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
],
[
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
],
[
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
],
[
65,
68
],
[
68,
69
],
[
69,
70
],
[
8,
71
],
[
71,
72
],
[
71,
73
],
[
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
],
[
98,
100
],
[
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
],
[
8,
141
],
[
141,
142
],
[
141,
143
],
[
141,
144
],
[
145,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
146,
151
],
[
6,
152
],
[
152,
153
],
[
0,
154
],
[
154,
155
],
[
154,
156
]
] | [
"import java.util.*;\npublic class Main {\npublic static void main(String[] args){\nScanner sc = new Scanner(System.in);\nint n=Integer.parseInt(sc.next());\nint m=Integer.parseInt(sc.next());\nint[][] a=new int[n][m]; \nfor(int i=0;i<n;i++){for(int j=0;j<m;j++){a[i][j]=Integer.parseInt(sc.next());}}\nint[] b=new int[m];\nfor(int i=0;i<m;i++){b[i]=Integer.parseInt(sc.next());}\nint[] c=new int[n];\nfor(int i=0;i<n;i++){for(int j=0;j<m;j++){c[i]+=a[i][j]*b[j];}}\nfor(int i:c){System.out.println(i);}\n}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\npublic static void main(String[] args){\nScanner sc = new Scanner(System.in);\nint n=Integer.parseInt(sc.next());\nint m=Integer.parseInt(sc.next());\nint[][] a=new int[n][m]; \nfor(int i=0;i<n;i++){for(int j=0;j<m;j++){a[i][j]=Integer.parseInt(sc.next());}}\nint[] b=new int[m];\nfor(int i=0;i<m;i++){b[i]=Integer.parseInt(sc.next());}\nint[] c=new int[n];\nfor(int i=0;i<n;i++){for(int j=0;j<m;j++){c[i]+=a[i][j]*b[j];}}\nfor(int i:c){System.out.println(i);}\n}\n}",
"Main",
"public static void main(String[] args){\nScanner sc = new Scanner(System.in);\nint n=Integer.parseInt(sc.next());\nint m=Integer.parseInt(sc.next());\nint[][] a=new int[n][m]; \nfor(int i=0;i<n;i++){for(int j=0;j<m;j++){a[i][j]=Integer.parseInt(sc.next());}}\nint[] b=new int[m];\nfor(int i=0;i<m;i++){b[i]=Integer.parseInt(sc.next());}\nint[] c=new int[n];\nfor(int i=0;i<n;i++){for(int j=0;j<m;j++){c[i]+=a[i][j]*b[j];}}\nfor(int i:c){System.out.println(i);}\n}",
"main",
"{\nScanner sc = new Scanner(System.in);\nint n=Integer.parseInt(sc.next());\nint m=Integer.parseInt(sc.next());\nint[][] a=new int[n][m]; \nfor(int i=0;i<n;i++){for(int j=0;j<m;j++){a[i][j]=Integer.parseInt(sc.next());}}\nint[] b=new int[m];\nfor(int i=0;i<m;i++){b[i]=Integer.parseInt(sc.next());}\nint[] c=new int[n];\nfor(int i=0;i<n;i++){for(int j=0;j<m;j++){c[i]+=a[i][j]*b[j];}}\nfor(int i:c){System.out.println(i);}\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",
"for(int i=0;i<n;i++){for(int j=0;j<m;j++){a[i][j]=Integer.parseInt(sc.next());}}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{for(int j=0;j<m;j++){a[i][j]=Integer.parseInt(sc.next());}}",
"{for(int j=0;j<m;j++){a[i][j]=Integer.parseInt(sc.next());}}",
"for(int j=0;j<m;j++){a[i][j]=Integer.parseInt(sc.next());}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{a[i][j]=Integer.parseInt(sc.next());}",
"{a[i][j]=Integer.parseInt(sc.next());}",
"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",
"int[] b=new int[m];",
"b",
"new int[m]",
"m",
"for(int i=0;i<m;i++){b[i]=Integer.parseInt(sc.next());}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{b[i]=Integer.parseInt(sc.next());}",
"{b[i]=Integer.parseInt(sc.next());}",
"b[i]=Integer.parseInt(sc.next())",
"b[i]",
"b",
"i",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int[] c=new int[n];",
"c",
"new int[n]",
"n",
"for(int i=0;i<n;i++){for(int j=0;j<m;j++){c[i]+=a[i][j]*b[j];}}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{for(int j=0;j<m;j++){c[i]+=a[i][j]*b[j];}}",
"{for(int j=0;j<m;j++){c[i]+=a[i][j]*b[j];}}",
"for(int j=0;j<m;j++){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]+=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:c){System.out.println(i);}",
"int i",
"c",
"{System.out.println(i);}",
"{System.out.println(i);}",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"String[] args",
"args",
"public class Main {\npublic static void main(String[] args){\nScanner sc = new Scanner(System.in);\nint n=Integer.parseInt(sc.next());\nint m=Integer.parseInt(sc.next());\nint[][] a=new int[n][m]; \nfor(int i=0;i<n;i++){for(int j=0;j<m;j++){a[i][j]=Integer.parseInt(sc.next());}}\nint[] b=new int[m];\nfor(int i=0;i<m;i++){b[i]=Integer.parseInt(sc.next());}\nint[] c=new int[n];\nfor(int i=0;i<n;i++){for(int j=0;j<m;j++){c[i]+=a[i][j]*b[j];}}\nfor(int i:c){System.out.println(i);}\n}\n}",
"public class Main {\npublic static void main(String[] args){\nScanner sc = new Scanner(System.in);\nint n=Integer.parseInt(sc.next());\nint m=Integer.parseInt(sc.next());\nint[][] a=new int[n][m]; \nfor(int i=0;i<n;i++){for(int j=0;j<m;j++){a[i][j]=Integer.parseInt(sc.next());}}\nint[] b=new int[m];\nfor(int i=0;i<m;i++){b[i]=Integer.parseInt(sc.next());}\nint[] c=new int[n];\nfor(int i=0;i<n;i++){for(int j=0;j<m;j++){c[i]+=a[i][j]*b[j];}}\nfor(int i:c){System.out.println(i);}\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];
for(int i=0;i<n;i++){for(int j=0;j<m;j++){a[i][j]=Integer.parseInt(sc.next());}}
int[] b=new int[m];
for(int i=0;i<m;i++){b[i]=Integer.parseInt(sc.next());}
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:c){System.out.println(i);}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
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,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
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
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
237,
26
],
[
237,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
29,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
29,
43
],
[
43,
44
],
[
43,
45
],
[
29,
48
],
[
48,
49
],
[
48,
50
],
[
29,
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
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
77,
83
],
[
83,
84
],
[
84,
85
],
[
29,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
86,
94
],
[
94,
95
],
[
95,
96
],
[
86,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
103,
104
],
[
29,
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
],
[
117,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
126,
127
],
[
126,
128
],
[
121,
129
],
[
129,
130
],
[
130,
131
],
[
121,
132
],
[
133,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
136,
142
],
[
142,
143
],
[
142,
144
],
[
117,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
145,
150
],
[
27,
151
],
[
151,
152
],
[
237,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
153,
157
],
[
157,
158
],
[
153,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
162,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
159,
173
],
[
173,
174
],
[
153,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
153,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
185,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
184,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
194,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
183,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
153,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
213,
216
],
[
216,
217
],
[
153,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
222,
225
],
[
225,
226
],
[
153,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
231,
234
],
[
234,
235
],
[
0,
236
],
[
236,
237
],
[
236,
238
]
] | [
"import java.io.BufferedReader;\nimport java.io.FileNotFoundException;\nimport java.io.FileReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\nimport java.util.Arrays;\nimport java.util.Objects;\n\npublic class Main{\n public static void main(String[] args){\n FastScanner sc = new FastScanner();\n\n int n = sc.nextInt();\n int m = sc.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++)a[i][j] = sc.nextInt();\n }\n for(int i=0;i<m;i++)b[i] = sc.nextInt();\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.println(tmp);\n }\n }\n\n public static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner(String s) {\n try {\n br = new BufferedReader(new FileReader(s));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String nextToken() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(nextToken());\n }\n\n long nextLong() {\n return Long.parseLong(nextToken());\n }\n\n double nextDouble() {\n return Double.parseDouble(nextToken());\n }\n }\n}\n",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.FileNotFoundException;",
"FileNotFoundException",
"java.io",
"import java.io.FileReader;",
"FileReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Objects;",
"Objects",
"java.util",
"public class Main{\n public static void main(String[] args){\n FastScanner sc = new FastScanner();\n\n int n = sc.nextInt();\n int m = sc.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++)a[i][j] = sc.nextInt();\n }\n for(int i=0;i<m;i++)b[i] = sc.nextInt();\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.println(tmp);\n }\n }\n\n public static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner(String s) {\n try {\n br = new BufferedReader(new FileReader(s));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String nextToken() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(nextToken());\n }\n\n long nextLong() {\n return Long.parseLong(nextToken());\n }\n\n double nextDouble() {\n return Double.parseDouble(nextToken());\n }\n }\n}",
"Main",
"public static void main(String[] args){\n FastScanner sc = new FastScanner();\n\n int n = sc.nextInt();\n int m = sc.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++)a[i][j] = sc.nextInt();\n }\n for(int i=0;i<m;i++)b[i] = sc.nextInt();\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.println(tmp);\n }\n }",
"main",
"{\n FastScanner sc = new FastScanner();\n\n int n = sc.nextInt();\n int m = sc.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++)a[i][j] = sc.nextInt();\n }\n for(int i=0;i<m;i++)b[i] = sc.nextInt();\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.println(tmp);\n }\n }",
"FastScanner sc = new FastScanner();",
"sc",
"new FastScanner()",
"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 for(int j=0;j<m;j++)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++)a[i][j] = sc.nextInt();\n }",
"{\n for(int j=0;j<m;j++)a[i][j] = sc.nextInt();\n }",
"for(int j=0;j<m;j++)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++)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 int tmp = 0;\n for(int j=0;j<m;j++){\n tmp += a[i][j]*b[j];\n }\n System.out.println(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.println(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.println(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.println(tmp)",
"System.out.println",
"System.out",
"System",
"System.out",
"tmp",
"String[] args",
"args",
"public static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner(String s) {\n try {\n br = new BufferedReader(new FileReader(s));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String nextToken() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(nextToken());\n }\n\n long nextLong() {\n return Long.parseLong(nextToken());\n }\n\n double nextDouble() {\n return Double.parseDouble(nextToken());\n }\n }",
"FastScanner",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastScanner(String s) {\n try {\n br = new BufferedReader(new FileReader(s));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }",
"FastScanner",
"{\n try {\n br = new BufferedReader(new FileReader(s));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }",
"try {\n br = new BufferedReader(new FileReader(s));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }",
"catch (FileNotFoundException e) {\n e.printStackTrace();\n }",
"FileNotFoundException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n br = new BufferedReader(new FileReader(s));\n }",
"br = new BufferedReader(new FileReader(s))",
"br",
"new BufferedReader(new FileReader(s))",
"String s",
"s",
"public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"FastScanner",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String nextToken() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"nextToken",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\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 st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(nextToken());\n }",
"nextInt",
"{\n return Integer.parseInt(nextToken());\n }",
"return Integer.parseInt(nextToken());",
"Integer.parseInt(nextToken())",
"Integer.parseInt",
"Integer",
"nextToken()",
"nextToken",
"long nextLong() {\n return Long.parseLong(nextToken());\n }",
"nextLong",
"{\n return Long.parseLong(nextToken());\n }",
"return Long.parseLong(nextToken());",
"Long.parseLong(nextToken())",
"Long.parseLong",
"Long",
"nextToken()",
"nextToken",
"double nextDouble() {\n return Double.parseDouble(nextToken());\n }",
"nextDouble",
"{\n return Double.parseDouble(nextToken());\n }",
"return Double.parseDouble(nextToken());",
"Double.parseDouble(nextToken())",
"Double.parseDouble",
"Double",
"nextToken()",
"nextToken",
"public class Main{\n public static void main(String[] args){\n FastScanner sc = new FastScanner();\n\n int n = sc.nextInt();\n int m = sc.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++)a[i][j] = sc.nextInt();\n }\n for(int i=0;i<m;i++)b[i] = sc.nextInt();\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.println(tmp);\n }\n }\n\n public static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner(String s) {\n try {\n br = new BufferedReader(new FileReader(s));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String nextToken() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(nextToken());\n }\n\n long nextLong() {\n return Long.parseLong(nextToken());\n }\n\n double nextDouble() {\n return Double.parseDouble(nextToken());\n }\n }\n}",
"public class Main{\n public static void main(String[] args){\n FastScanner sc = new FastScanner();\n\n int n = sc.nextInt();\n int m = sc.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++)a[i][j] = sc.nextInt();\n }\n for(int i=0;i<m;i++)b[i] = sc.nextInt();\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.println(tmp);\n }\n }\n\n public static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner(String s) {\n try {\n br = new BufferedReader(new FileReader(s));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String nextToken() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(nextToken());\n }\n\n long nextLong() {\n return Long.parseLong(nextToken());\n }\n\n double nextDouble() {\n return Double.parseDouble(nextToken());\n }\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
import java.util.Arrays;
import java.util.Objects;
public class Main{
public static void main(String[] args){
FastScanner sc = new FastScanner();
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 tmp = 0;
for(int j=0;j<m;j++){
tmp += a[i][j]*b[j];
}
System.out.println(tmp);
}
}
public static class FastScanner {
BufferedReader br;
StringTokenizer st;
public FastScanner(String s) {
try {
br = new BufferedReader(new FileReader(s));
} catch (FileNotFoundException e) {
e.printStackTrace();
}
}
public FastScanner() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String nextToken() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(nextToken());
}
long nextLong() {
return Long.parseLong(nextToken());
}
double nextDouble() {
return Double.parseDouble(nextToken());
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
20,
41,
13,
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,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
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,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
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,
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,
18,
13,
13,
13,
18,
13,
13,
28,
13,
13,
30,
4,
18,
18,
13,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
199,
5
],
[
199,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
13,
18
],
[
9,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
25,
30
],
[
19,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
36,
38
],
[
19,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
44,
46
],
[
19,
47
],
[
47,
48
],
[
47,
49
],
[
19,
52
],
[
52,
53
],
[
52,
54
],
[
19,
56
],
[
56,
57
],
[
56,
58
],
[
19,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
60,
70
],
[
70,
71
],
[
71,
72
],
[
60,
73
],
[
74,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
77,
82
],
[
74,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
83,
95
],
[
95,
96
],
[
96,
97
],
[
83,
98
],
[
99,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
100,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
109,
110
],
[
109,
111
],
[
19,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
119,
121
],
[
112,
122
],
[
122,
123
],
[
123,
124
],
[
112,
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
],
[
19,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
140,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
147,
149
],
[
140,
150
],
[
150,
151
],
[
151,
152
],
[
140,
153
],
[
154,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
155,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
155,
167
],
[
167,
168
],
[
168,
169
],
[
155,
170
],
[
171,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
176,
182
],
[
182,
183
],
[
182,
184
],
[
19,
185
],
[
185,
186
],
[
185,
187
],
[
185,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
189,
194
],
[
189,
195
],
[
6,
196
],
[
196,
197
],
[
0,
198
],
[
198,
199
],
[
198,
200
]
] | [
"// ITP1_6_D Matrix Vector Multiplication\nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args) {\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] strAry1 = (br.readLine()).split(\" \");\n int n = Integer.parseInt(strAry1[0]);\n int m = Integer.parseInt(strAry1[1]);\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 < A.length; i++) {\n String[] strAry2 = (br.readLine()).split(\" \");\n for (int j = 0; j < A[i].length; j++) {\n A[i][j] = Integer.parseInt(strAry2[j]);\n }\n }\n\n for (int i = 0; i < b.length; i++) {\n String str = br.readLine();\n b[i] = Integer.parseInt(str);\n }\n\n for (int i = 0; i < A.length; i++) {\n for (int j = 0; j < A[i].length; j++) {\n c[i] += A[i][j] * b[j];\n }\n }\n\n for (int result : c)\n System.out.printf(\"%d\\n\", result);\n }\n\n catch (Exception e) {\n System.err.println(e);\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] args) {\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] strAry1 = (br.readLine()).split(\" \");\n int n = Integer.parseInt(strAry1[0]);\n int m = Integer.parseInt(strAry1[1]);\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 < A.length; i++) {\n String[] strAry2 = (br.readLine()).split(\" \");\n for (int j = 0; j < A[i].length; j++) {\n A[i][j] = Integer.parseInt(strAry2[j]);\n }\n }\n\n for (int i = 0; i < b.length; i++) {\n String str = br.readLine();\n b[i] = Integer.parseInt(str);\n }\n\n for (int i = 0; i < A.length; i++) {\n for (int j = 0; j < A[i].length; j++) {\n c[i] += A[i][j] * b[j];\n }\n }\n\n for (int result : c)\n System.out.printf(\"%d\\n\", result);\n }\n\n catch (Exception e) {\n System.err.println(e);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] strAry1 = (br.readLine()).split(\" \");\n int n = Integer.parseInt(strAry1[0]);\n int m = Integer.parseInt(strAry1[1]);\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 < A.length; i++) {\n String[] strAry2 = (br.readLine()).split(\" \");\n for (int j = 0; j < A[i].length; j++) {\n A[i][j] = Integer.parseInt(strAry2[j]);\n }\n }\n\n for (int i = 0; i < b.length; i++) {\n String str = br.readLine();\n b[i] = Integer.parseInt(str);\n }\n\n for (int i = 0; i < A.length; i++) {\n for (int j = 0; j < A[i].length; j++) {\n c[i] += A[i][j] * b[j];\n }\n }\n\n for (int result : c)\n System.out.printf(\"%d\\n\", result);\n }\n\n catch (Exception e) {\n System.err.println(e);\n }\n }",
"main",
"{\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] strAry1 = (br.readLine()).split(\" \");\n int n = Integer.parseInt(strAry1[0]);\n int m = Integer.parseInt(strAry1[1]);\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 < A.length; i++) {\n String[] strAry2 = (br.readLine()).split(\" \");\n for (int j = 0; j < A[i].length; j++) {\n A[i][j] = Integer.parseInt(strAry2[j]);\n }\n }\n\n for (int i = 0; i < b.length; i++) {\n String str = br.readLine();\n b[i] = Integer.parseInt(str);\n }\n\n for (int i = 0; i < A.length; i++) {\n for (int j = 0; j < A[i].length; j++) {\n c[i] += A[i][j] * b[j];\n }\n }\n\n for (int result : c)\n System.out.printf(\"%d\\n\", result);\n }\n\n catch (Exception e) {\n System.err.println(e);\n }\n }",
"try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] strAry1 = (br.readLine()).split(\" \");\n int n = Integer.parseInt(strAry1[0]);\n int m = Integer.parseInt(strAry1[1]);\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 < A.length; i++) {\n String[] strAry2 = (br.readLine()).split(\" \");\n for (int j = 0; j < A[i].length; j++) {\n A[i][j] = Integer.parseInt(strAry2[j]);\n }\n }\n\n for (int i = 0; i < b.length; i++) {\n String str = br.readLine();\n b[i] = Integer.parseInt(str);\n }\n\n for (int i = 0; i < A.length; i++) {\n for (int j = 0; j < A[i].length; j++) {\n c[i] += A[i][j] * b[j];\n }\n }\n\n for (int result : c)\n System.out.printf(\"%d\\n\", result);\n }\n\n catch (Exception e) {\n System.err.println(e);\n }",
"catch (Exception e) {\n System.err.println(e);\n }",
"Exception e",
"{\n System.err.println(e);\n }",
"System.err.println(e)",
"System.err.println",
"System.err",
"System",
"System.err",
"e",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] strAry1 = (br.readLine()).split(\" \");\n int n = Integer.parseInt(strAry1[0]);\n int m = Integer.parseInt(strAry1[1]);\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 < A.length; i++) {\n String[] strAry2 = (br.readLine()).split(\" \");\n for (int j = 0; j < A[i].length; j++) {\n A[i][j] = Integer.parseInt(strAry2[j]);\n }\n }\n\n for (int i = 0; i < b.length; i++) {\n String str = br.readLine();\n b[i] = Integer.parseInt(str);\n }\n\n for (int i = 0; i < A.length; i++) {\n for (int j = 0; j < A[i].length; j++) {\n c[i] += A[i][j] * b[j];\n }\n }\n\n for (int result : c)\n System.out.printf(\"%d\\n\", result);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] strAry1 = (br.readLine()).split(\" \");",
"strAry1",
"(br.readLine()).split(\" \")",
"(br.readLine()).split",
"(br.readLine())",
"br.readLine",
"br",
"\" \"",
"int n = Integer.parseInt(strAry1[0]);",
"n",
"Integer.parseInt(strAry1[0])",
"Integer.parseInt",
"Integer",
"strAry1[0]",
"strAry1",
"0",
"int m = Integer.parseInt(strAry1[1]);",
"m",
"Integer.parseInt(strAry1[1])",
"Integer.parseInt",
"Integer",
"strAry1[1]",
"strAry1",
"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 < A.length; i++) {\n String[] strAry2 = (br.readLine()).split(\" \");\n for (int j = 0; j < A[i].length; j++) {\n A[i][j] = Integer.parseInt(strAry2[j]);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < A.length",
"i",
"A.length",
"A",
"A.length",
"i++",
"i++",
"i",
"{\n String[] strAry2 = (br.readLine()).split(\" \");\n for (int j = 0; j < A[i].length; j++) {\n A[i][j] = Integer.parseInt(strAry2[j]);\n }\n }",
"{\n String[] strAry2 = (br.readLine()).split(\" \");\n for (int j = 0; j < A[i].length; j++) {\n A[i][j] = Integer.parseInt(strAry2[j]);\n }\n }",
"String[] strAry2 = (br.readLine()).split(\" \");",
"strAry2",
"(br.readLine()).split(\" \")",
"(br.readLine()).split",
"(br.readLine())",
"br.readLine",
"br",
"\" \"",
"for (int j = 0; j < A[i].length; j++) {\n A[i][j] = Integer.parseInt(strAry2[j]);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < A[i].length",
"j",
"A[i].length",
"A[i]",
"A",
"i",
"A[i].length",
"j++",
"j++",
"j",
"{\n A[i][j] = Integer.parseInt(strAry2[j]);\n }",
"{\n A[i][j] = Integer.parseInt(strAry2[j]);\n }",
"A[i][j] = Integer.parseInt(strAry2[j])",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"Integer.parseInt(strAry2[j])",
"Integer.parseInt",
"Integer",
"strAry2[j]",
"strAry2",
"j",
"for (int i = 0; i < b.length; i++) {\n String str = br.readLine();\n b[i] = Integer.parseInt(str);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < b.length",
"i",
"b.length",
"b",
"b.length",
"i++",
"i++",
"i",
"{\n String str = br.readLine();\n b[i] = Integer.parseInt(str);\n }",
"{\n String str = br.readLine();\n b[i] = Integer.parseInt(str);\n }",
"String 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",
"for (int i = 0; i < A.length; i++) {\n for (int j = 0; j < A[i].length; j++) {\n c[i] += A[i][j] * b[j];\n }\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[i].length; j++) {\n c[i] += A[i][j] * b[j];\n }\n }",
"{\n for (int j = 0; j < A[i].length; j++) {\n c[i] += A[i][j] * b[j];\n }\n }",
"for (int j = 0; j < A[i].length; j++) {\n c[i] += A[i][j] * b[j];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < A[i].length",
"j",
"A[i].length",
"A[i]",
"A",
"i",
"A[i].length",
"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 result : c)\n System.out.printf(\"%d\\n\", result);",
"int result",
"c",
"System.out.printf(\"%d\\n\", result);",
"System.out.printf(\"%d\\n\", result)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d\\n\"",
"result",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] strAry1 = (br.readLine()).split(\" \");\n int n = Integer.parseInt(strAry1[0]);\n int m = Integer.parseInt(strAry1[1]);\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 < A.length; i++) {\n String[] strAry2 = (br.readLine()).split(\" \");\n for (int j = 0; j < A[i].length; j++) {\n A[i][j] = Integer.parseInt(strAry2[j]);\n }\n }\n\n for (int i = 0; i < b.length; i++) {\n String str = br.readLine();\n b[i] = Integer.parseInt(str);\n }\n\n for (int i = 0; i < A.length; i++) {\n for (int j = 0; j < A[i].length; j++) {\n c[i] += A[i][j] * b[j];\n }\n }\n\n for (int result : c)\n System.out.printf(\"%d\\n\", result);\n }\n\n catch (Exception e) {\n System.err.println(e);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] strAry1 = (br.readLine()).split(\" \");\n int n = Integer.parseInt(strAry1[0]);\n int m = Integer.parseInt(strAry1[1]);\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 < A.length; i++) {\n String[] strAry2 = (br.readLine()).split(\" \");\n for (int j = 0; j < A[i].length; j++) {\n A[i][j] = Integer.parseInt(strAry2[j]);\n }\n }\n\n for (int i = 0; i < b.length; i++) {\n String str = br.readLine();\n b[i] = Integer.parseInt(str);\n }\n\n for (int i = 0; i < A.length; i++) {\n for (int j = 0; j < A[i].length; j++) {\n c[i] += A[i][j] * b[j];\n }\n }\n\n for (int result : c)\n System.out.printf(\"%d\\n\", result);\n }\n\n catch (Exception e) {\n System.err.println(e);\n }\n }\n}",
"Main"
] | // ITP1_6_D Matrix Vector Multiplication
import java.io.*;
public class Main {
public static void main(String[] args) {
try {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] strAry1 = (br.readLine()).split(" ");
int n = Integer.parseInt(strAry1[0]);
int m = Integer.parseInt(strAry1[1]);
int[][] A = new int[n][m];
int[] b = new int[m];
int[] c = new int[n];
for (int i = 0; i < A.length; i++) {
String[] strAry2 = (br.readLine()).split(" ");
for (int j = 0; j < A[i].length; j++) {
A[i][j] = Integer.parseInt(strAry2[j]);
}
}
for (int i = 0; i < b.length; i++) {
String str = br.readLine();
b[i] = Integer.parseInt(str);
}
for (int i = 0; i < A.length; i++) {
for (int j = 0; j < A[i].length; j++) {
c[i] += A[i][j] * b[j];
}
}
for (int result : c)
System.out.printf("%d\n", result);
}
catch (Exception e) {
System.err.println(e);
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
17,
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,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
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,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
12,
13,
30,
4,
18,
20,
23,
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
],
[
4,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
16,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
16,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
16,
34
],
[
34,
35
],
[
34,
36
],
[
16,
39
],
[
39,
40
],
[
39,
41
],
[
16,
43
],
[
43,
44
],
[
43,
45
],
[
16,
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
],
[
59,
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
],
[
16,
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
],
[
16,
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
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
125,
126
],
[
125,
127
],
[
120,
128
],
[
128,
129
],
[
129,
130
],
[
120,
131
],
[
132,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
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
],
[
16,
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
],
[
4,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
171,
177
],
[
177,
178
]
] | [
"import java.util.Scanner;\nclass Main{\n int n,m,x,y;\n public void solve(){\n Scanner sc = new Scanner(System.in);\n sc.useDelimiter(\"\\\\s\");\n n = sc.nextInt();\n m = sc.nextInt();\n int [] []A = new int[n][m];\n int [] b = new int[m];\n int [] c = new int[n];\n for(x = 0; x < n; x++){\n c[x] = 0;\n for(y = 0; y < m; y++){\n A[x] [y]= sc.nextInt();\n }\n }\n for(y = 0; y < m; y++){\n b[y]= sc.nextInt();\n }\n for(x = 0; x < n; x++){\n for(y = 0; y < m; y++){\n c[x] = c[x] + A[x][y] * b[y];\n }\n }\n for(x = 0; x < n; x++){\n System.out.println(c[x]);\n }\n }\n public static void main(String[] args){\n new Main().solve();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n int n,m,x,y;\n public void solve(){\n Scanner sc = new Scanner(System.in);\n sc.useDelimiter(\"\\\\s\");\n n = sc.nextInt();\n m = sc.nextInt();\n int [] []A = new int[n][m];\n int [] b = new int[m];\n int [] c = new int[n];\n for(x = 0; x < n; x++){\n c[x] = 0;\n for(y = 0; y < m; y++){\n A[x] [y]= sc.nextInt();\n }\n }\n for(y = 0; y < m; y++){\n b[y]= sc.nextInt();\n }\n for(x = 0; x < n; x++){\n for(y = 0; y < m; y++){\n c[x] = c[x] + A[x][y] * b[y];\n }\n }\n for(x = 0; x < n; x++){\n System.out.println(c[x]);\n }\n }\n public static void main(String[] args){\n new Main().solve();\n }\n}",
"Main",
"int n",
"n",
"m",
"m",
"x",
"x",
"y;",
"y",
"public void solve(){\n Scanner sc = new Scanner(System.in);\n sc.useDelimiter(\"\\\\s\");\n n = sc.nextInt();\n m = sc.nextInt();\n int [] []A = new int[n][m];\n int [] b = new int[m];\n int [] c = new int[n];\n for(x = 0; x < n; x++){\n c[x] = 0;\n for(y = 0; y < m; y++){\n A[x] [y]= sc.nextInt();\n }\n }\n for(y = 0; y < m; y++){\n b[y]= sc.nextInt();\n }\n for(x = 0; x < n; x++){\n for(y = 0; y < m; y++){\n c[x] = c[x] + A[x][y] * b[y];\n }\n }\n for(x = 0; x < n; x++){\n System.out.println(c[x]);\n }\n }",
"solve",
"{\n Scanner sc = new Scanner(System.in);\n sc.useDelimiter(\"\\\\s\");\n n = sc.nextInt();\n m = sc.nextInt();\n int [] []A = new int[n][m];\n int [] b = new int[m];\n int [] c = new int[n];\n for(x = 0; x < n; x++){\n c[x] = 0;\n for(y = 0; y < m; y++){\n A[x] [y]= sc.nextInt();\n }\n }\n for(y = 0; y < m; y++){\n b[y]= sc.nextInt();\n }\n for(x = 0; x < n; x++){\n for(y = 0; y < m; y++){\n c[x] = c[x] + A[x][y] * b[y];\n }\n }\n for(x = 0; x < n; x++){\n System.out.println(c[x]);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"sc.useDelimiter(\"\\\\s\")",
"sc.useDelimiter",
"sc",
"\"\\\\s\"",
"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 [] c = new int[n];",
"c",
"new int[n]",
"n",
"for(x = 0; x < n; x++){\n c[x] = 0;\n for(y = 0; y < m; y++){\n A[x] [y]= sc.nextInt();\n }\n }",
"x = 0;",
"x = 0",
"x",
"0",
"x < n",
"x",
"n",
"x++",
"x++",
"x",
"{\n c[x] = 0;\n for(y = 0; y < m; y++){\n A[x] [y]= sc.nextInt();\n }\n }",
"{\n c[x] = 0;\n for(y = 0; y < m; y++){\n A[x] [y]= sc.nextInt();\n }\n }",
"c[x] = 0",
"c[x]",
"c",
"x",
"0",
"for(y = 0; y < m; y++){\n A[x] [y]= sc.nextInt();\n }",
"y = 0;",
"y = 0",
"y",
"0",
"y < m",
"y",
"m",
"y++",
"y++",
"y",
"{\n A[x] [y]= sc.nextInt();\n }",
"{\n A[x] [y]= sc.nextInt();\n }",
"A[x] [y]= sc.nextInt()",
"A[x] [y]",
"A[x]",
"A",
"x",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(y = 0; y < m; y++){\n b[y]= sc.nextInt();\n }",
"y = 0;",
"y = 0",
"y",
"0",
"y < m",
"y",
"m",
"y++",
"y++",
"y",
"{\n b[y]= sc.nextInt();\n }",
"{\n b[y]= sc.nextInt();\n }",
"b[y]= sc.nextInt()",
"b[y]",
"b",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(x = 0; x < n; x++){\n for(y = 0; y < m; y++){\n c[x] = c[x] + A[x][y] * b[y];\n }\n }",
"x = 0;",
"x = 0",
"x",
"0",
"x < n",
"x",
"n",
"x++",
"x++",
"x",
"{\n for(y = 0; y < m; y++){\n c[x] = c[x] + A[x][y] * b[y];\n }\n }",
"{\n for(y = 0; y < m; y++){\n c[x] = c[x] + A[x][y] * b[y];\n }\n }",
"for(y = 0; y < m; y++){\n c[x] = c[x] + A[x][y] * b[y];\n }",
"y = 0;",
"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",
"for(x = 0; x < n; x++){\n System.out.println(c[x]);\n }",
"x = 0;",
"x = 0",
"x",
"0",
"x < n",
"x",
"n",
"x++",
"x++",
"x",
"{\n System.out.println(c[x]);\n }",
"{\n System.out.println(c[x]);\n }",
"System.out.println(c[x])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[x]",
"c",
"x",
"public static void main(String[] args){\n new Main().solve();\n }",
"main",
"{\n new Main().solve();\n }",
"new Main().solve()",
"new Main().solve",
"new Main()",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
int n,m,x,y;
public void solve(){
Scanner sc = new Scanner(System.in);
sc.useDelimiter("\\s");
n = sc.nextInt();
m = sc.nextInt();
int [] []A = new int[n][m];
int [] b = new int[m];
int [] c = new int[n];
for(x = 0; x < n; x++){
c[x] = 0;
for(y = 0; y < m; y++){
A[x] [y]= sc.nextInt();
}
}
for(y = 0; y < m; y++){
b[y]= sc.nextInt();
}
for(x = 0; x < n; x++){
for(y = 0; y < m; y++){
c[x] = c[x] + A[x][y] * b[y];
}
}
for(x = 0; x < n; x++){
System.out.println(c[x]);
}
}
public static void main(String[] args){
new Main().solve();
}
} |
[
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,
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
],
[
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,
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
],
[
113,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
121,
122
],
[
122,
123
],
[
14,
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
],
[
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
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
154,
160
],
[
160,
161
],
[
160,
162
],
[
14,
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
],
[
12,
184
],
[
184,
185
]
] | [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main{\n\tpublic static void main(String args[]) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] str = br.readLine().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 = 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\tB[i] = Integer.parseInt(br.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\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main{\n\tpublic static void main(String args[]) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] str = br.readLine().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 = 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\tB[i] = Integer.parseInt(br.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\t}\n}",
"Main",
"public static void main(String args[]) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] str = br.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 = 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\tB[i] = Integer.parseInt(br.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\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] str = br.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 = 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\tB[i] = Integer.parseInt(br.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\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] str = br.readLine().split(\" \");",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"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 = 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\tB[i] = Integer.parseInt(br.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(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<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.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main{
public static void main(String args[]) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] str = br.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 = br.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(br.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,
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,
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,
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
],
[
152,
5
],
[
152,
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
],
[
35,
38
],
[
35,
39
],
[
8,
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
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
66,
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
],
[
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
],
[
120,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
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
],
[
107,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
143,
144
],
[
143,
145
],
[
8,
146
],
[
146,
147
],
[
147,
148
],
[
6,
149
],
[
149,
150
],
[
0,
151
],
[
151,
152
],
[
151,
153
]
] | [
"import java.util.*;\n\npublic class Main {\n public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n int n = scn.nextInt();\n int m = scn.nextInt();\n\n int[][] a = new int[n][m];\n int b[] = new int[m];\n int c[] = new int[n];\n Arrays.fill(c,0);\n\n for (int i = 0; i < n; i++) {\n for (int j=0; j < m; j++) {\n a[i][j] = scn.nextInt();\n }\n }\n for (int i = 0; i < m; i++) {\n b[i] = scn.nextInt();\n }\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n c[i]= c[i]+a[i][j]*b[j];\n }\n System.out.println(c[i]);\n }\n\n\n\n scn.close();\n\n }\n\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n int n = scn.nextInt();\n int m = scn.nextInt();\n\n int[][] a = new int[n][m];\n int b[] = new int[m];\n int c[] = new int[n];\n Arrays.fill(c,0);\n\n for (int i = 0; i < n; i++) {\n for (int j=0; j < m; j++) {\n a[i][j] = scn.nextInt();\n }\n }\n for (int i = 0; i < m; i++) {\n b[i] = scn.nextInt();\n }\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n c[i]= c[i]+a[i][j]*b[j];\n }\n System.out.println(c[i]);\n }\n\n\n\n scn.close();\n\n }\n\n\n}",
"Main",
"public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n int n = scn.nextInt();\n int m = scn.nextInt();\n\n int[][] a = new int[n][m];\n int b[] = new int[m];\n int c[] = new int[n];\n Arrays.fill(c,0);\n\n for (int i = 0; i < n; i++) {\n for (int j=0; j < m; j++) {\n a[i][j] = scn.nextInt();\n }\n }\n for (int i = 0; i < m; i++) {\n b[i] = scn.nextInt();\n }\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n c[i]= c[i]+a[i][j]*b[j];\n }\n System.out.println(c[i]);\n }\n\n\n\n scn.close();\n\n }",
"main",
"{\n Scanner scn = new Scanner(System.in);\n int n = scn.nextInt();\n int m = scn.nextInt();\n\n int[][] a = new int[n][m];\n int b[] = new int[m];\n int c[] = new int[n];\n Arrays.fill(c,0);\n\n for (int i = 0; i < n; i++) {\n for (int j=0; j < m; j++) {\n a[i][j] = scn.nextInt();\n }\n }\n for (int i = 0; i < m; i++) {\n b[i] = scn.nextInt();\n }\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n c[i]= c[i]+a[i][j]*b[j];\n }\n System.out.println(c[i]);\n }\n\n\n\n scn.close();\n\n }",
"Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"int n = scn.nextInt();",
"n",
"scn.nextInt()",
"scn.nextInt",
"scn",
"int m = scn.nextInt();",
"m",
"scn.nextInt()",
"scn.nextInt",
"scn",
"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",
"Arrays.fill(c,0)",
"Arrays.fill",
"Arrays",
"c",
"0",
"for (int i = 0; i < n; i++) {\n for (int j=0; j < m; j++) {\n a[i][j] = scn.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] = scn.nextInt();\n }\n }",
"{\n for (int j=0; j < m; j++) {\n a[i][j] = scn.nextInt();\n }\n }",
"for (int j=0; j < m; j++) {\n a[i][j] = scn.nextInt();\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n a[i][j] = scn.nextInt();\n }",
"{\n a[i][j] = scn.nextInt();\n }",
"a[i][j] = scn.nextInt()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"scn.nextInt()",
"scn.nextInt",
"scn",
"for (int i = 0; i < m; i++) {\n b[i] = scn.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n b[i] = scn.nextInt();\n }",
"{\n b[i] = scn.nextInt();\n }",
"b[i] = scn.nextInt()",
"b[i]",
"b",
"i",
"scn.nextInt()",
"scn.nextInt",
"scn",
"for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n c[i]= c[i]+a[i][j]*b[j];\n }\n System.out.println(c[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 c[i]= c[i]+a[i][j]*b[j];\n }\n System.out.println(c[i]);\n }",
"{\n for (int j = 0; j < m; j++) {\n c[i]= c[i]+a[i][j]*b[j];\n }\n System.out.println(c[i]);\n }",
"for (int j = 0; j < m; j++) {\n c[i]= 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]= c[i]+a[i][j]*b[j];\n }",
"{\n c[i]= c[i]+a[i][j]*b[j];\n }",
"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",
"scn.close()",
"scn.close",
"scn",
"String args[]",
"args",
"public class Main {\n public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n int n = scn.nextInt();\n int m = scn.nextInt();\n\n int[][] a = new int[n][m];\n int b[] = new int[m];\n int c[] = new int[n];\n Arrays.fill(c,0);\n\n for (int i = 0; i < n; i++) {\n for (int j=0; j < m; j++) {\n a[i][j] = scn.nextInt();\n }\n }\n for (int i = 0; i < m; i++) {\n b[i] = scn.nextInt();\n }\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n c[i]= c[i]+a[i][j]*b[j];\n }\n System.out.println(c[i]);\n }\n\n\n\n scn.close();\n\n }\n\n\n}",
"public class Main {\n public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n int n = scn.nextInt();\n int m = scn.nextInt();\n\n int[][] a = new int[n][m];\n int b[] = new int[m];\n int c[] = new int[n];\n Arrays.fill(c,0);\n\n for (int i = 0; i < n; i++) {\n for (int j=0; j < m; j++) {\n a[i][j] = scn.nextInt();\n }\n }\n for (int i = 0; i < m; i++) {\n b[i] = scn.nextInt();\n }\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n c[i]= c[i]+a[i][j]*b[j];\n }\n System.out.println(c[i]);\n }\n\n\n\n scn.close();\n\n }\n\n\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner scn = new Scanner(System.in);
int n = scn.nextInt();
int m = scn.nextInt();
int[][] a = new int[n][m];
int b[] = new int[m];
int c[] = new int[n];
Arrays.fill(c,0);
for (int i = 0; i < n; i++) {
for (int j=0; j < m; j++) {
a[i][j] = scn.nextInt();
}
}
for (int i = 0; i < m; i++) {
b[i] = scn.nextInt();
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
c[i]= c[i]+a[i][j]*b[j];
}
System.out.println(c[i]);
}
scn.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
17,
40,
13,
14,
2,
13,
17,
30,
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,
30,
14,
2,
2,
17,
13,
2,
13,
2,
17,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
2,
13,
17,
13,
4,
18,
13,
18,
13,
13,
14,
2,
2,
2,
17,
13,
13,
2,
13,
2,
2,
17,
13,
13,
30,
0,
18,
13,
2,
2,
13,
17,
13,
4,
18,
13,
18,
13,
17,
14,
2,
2,
2,
17,
13,
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,
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
],
[
213,
8
],
[
213,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
11,
29
],
[
29,
30
],
[
29,
31
],
[
11,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
32,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
48,
55
],
[
55,
56
],
[
48,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
67,
68
],
[
67,
69
],
[
61,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
75,
77
],
[
61,
78
],
[
78,
79
],
[
78,
80
],
[
61,
83
],
[
83,
84
],
[
83,
85
],
[
57,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
88,
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
],
[
111,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
116,
118
],
[
113,
119
],
[
112,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
123,
124
],
[
123,
125
],
[
87,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
127,
133
],
[
133,
134
],
[
133,
135
],
[
136,
136
],
[
136,
137
],
[
136,
138
],
[
136,
139
],
[
126,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
145,
145
],
[
145,
146
],
[
145,
147
],
[
145,
148
],
[
141,
149
],
[
149,
150
],
[
150,
151
],
[
149,
152
],
[
152,
153
],
[
152,
154
],
[
87,
155
],
[
155,
156
],
[
156,
157
],
[
158,
158
],
[
158,
159
],
[
158,
160
],
[
158,
161
],
[
156,
162
],
[
155,
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
],
[
177,
179
],
[
176,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
180,
185
],
[
185,
186
],
[
185,
187
],
[
180,
188
],
[
188,
189
],
[
189,
190
],
[
180,
191
],
[
192,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
196,
200
],
[
195,
201
],
[
201,
202
],
[
201,
203
],
[
176,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
204,
209
],
[
9,
210
],
[
210,
211
],
[
0,
212
],
[
212,
213
],
[
212,
214
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer;\n\t\tint count = 0;\n\n\t\tint n = 0;\n\t\tint m = 0;\n\t\tint[][] matrix = null;\n\t\tint[] vector = null;\n\n\t\ttry {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\t\t\t\t++count;\n\t\t\t\tif (count == 1) {\n\t\t\t\t\tn = Integer.valueOf(strings[0]);\n\t\t\t\t\tm = Integer.valueOf(strings[1]);\n\t\t\t\t\tmatrix = new int[n][m];\n\t\t\t\t\tvector = new int[m];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (1 < count && count <= 1 + n) {\n\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\tmatrix[count - 2][w] = Integer.valueOf(strings[w]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (1 + n < count && count <= 1 + n + m) {\n\t\t\t\t\t\tvector[count - 2 - n] = Integer.valueOf(strings[0]);\n\t\t\t\t\t}\n\t\t\t\t\tif (1 + n + m == count) {\n\t\t\t\t\t\tfor (int h = 0; h < n; h++) {\n\t\t\t\t\t\t\tint calc = 0;\n\t\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\t\tcalc += (matrix[h][w] * vector[w]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(calc);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}\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) {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer;\n\t\tint count = 0;\n\n\t\tint n = 0;\n\t\tint m = 0;\n\t\tint[][] matrix = null;\n\t\tint[] vector = null;\n\n\t\ttry {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\t\t\t\t++count;\n\t\t\t\tif (count == 1) {\n\t\t\t\t\tn = Integer.valueOf(strings[0]);\n\t\t\t\t\tm = Integer.valueOf(strings[1]);\n\t\t\t\t\tmatrix = new int[n][m];\n\t\t\t\t\tvector = new int[m];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (1 < count && count <= 1 + n) {\n\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\tmatrix[count - 2][w] = Integer.valueOf(strings[w]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (1 + n < count && count <= 1 + n + m) {\n\t\t\t\t\t\tvector[count - 2 - n] = Integer.valueOf(strings[0]);\n\t\t\t\t\t}\n\t\t\t\t\tif (1 + n + m == count) {\n\t\t\t\t\t\tfor (int h = 0; h < n; h++) {\n\t\t\t\t\t\t\tint calc = 0;\n\t\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\t\tcalc += (matrix[h][w] * vector[w]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(calc);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer;\n\t\tint count = 0;\n\n\t\tint n = 0;\n\t\tint m = 0;\n\t\tint[][] matrix = null;\n\t\tint[] vector = null;\n\n\t\ttry {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\t\t\t\t++count;\n\t\t\t\tif (count == 1) {\n\t\t\t\t\tn = Integer.valueOf(strings[0]);\n\t\t\t\t\tm = Integer.valueOf(strings[1]);\n\t\t\t\t\tmatrix = new int[n][m];\n\t\t\t\t\tvector = new int[m];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (1 < count && count <= 1 + n) {\n\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\tmatrix[count - 2][w] = Integer.valueOf(strings[w]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (1 + n < count && count <= 1 + n + m) {\n\t\t\t\t\t\tvector[count - 2 - n] = Integer.valueOf(strings[0]);\n\t\t\t\t\t}\n\t\t\t\t\tif (1 + n + m == count) {\n\t\t\t\t\t\tfor (int h = 0; h < n; h++) {\n\t\t\t\t\t\t\tint calc = 0;\n\t\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\t\tcalc += (matrix[h][w] * vector[w]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(calc);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer;\n\t\tint count = 0;\n\n\t\tint n = 0;\n\t\tint m = 0;\n\t\tint[][] matrix = null;\n\t\tint[] vector = null;\n\n\t\ttry {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\t\t\t\t++count;\n\t\t\t\tif (count == 1) {\n\t\t\t\t\tn = Integer.valueOf(strings[0]);\n\t\t\t\t\tm = Integer.valueOf(strings[1]);\n\t\t\t\t\tmatrix = new int[n][m];\n\t\t\t\t\tvector = new int[m];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (1 < count && count <= 1 + n) {\n\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\tmatrix[count - 2][w] = Integer.valueOf(strings[w]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (1 + n < count && count <= 1 + n + m) {\n\t\t\t\t\t\tvector[count - 2 - n] = Integer.valueOf(strings[0]);\n\t\t\t\t\t}\n\t\t\t\t\tif (1 + n + m == count) {\n\t\t\t\t\t\tfor (int h = 0; h < n; h++) {\n\t\t\t\t\t\t\tint calc = 0;\n\t\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\t\tcalc += (matrix[h][w] * vector[w]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(calc);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"String buffer;",
"buffer",
"int count = 0;",
"count",
"0",
"int n = 0;",
"n",
"0",
"int m = 0;",
"m",
"0",
"int[][] matrix = null;",
"matrix",
"null",
"int[] vector = null;",
"vector",
"null",
"try {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\t\t\t\t++count;\n\t\t\t\tif (count == 1) {\n\t\t\t\t\tn = Integer.valueOf(strings[0]);\n\t\t\t\t\tm = Integer.valueOf(strings[1]);\n\t\t\t\t\tmatrix = new int[n][m];\n\t\t\t\t\tvector = new int[m];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (1 < count && count <= 1 + n) {\n\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\tmatrix[count - 2][w] = Integer.valueOf(strings[w]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (1 + n < count && count <= 1 + n + m) {\n\t\t\t\t\t\tvector[count - 2 - n] = Integer.valueOf(strings[0]);\n\t\t\t\t\t}\n\t\t\t\t\tif (1 + n + m == count) {\n\t\t\t\t\t\tfor (int h = 0; h < n; h++) {\n\t\t\t\t\t\t\tint calc = 0;\n\t\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\t\tcalc += (matrix[h][w] * vector[w]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(calc);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}",
"catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}",
"Exception ex",
"{\n\t\t\tex.printStackTrace();\n\t\t}",
"ex.printStackTrace()",
"ex.printStackTrace",
"ex",
"{\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\t\t\t\t++count;\n\t\t\t\tif (count == 1) {\n\t\t\t\t\tn = Integer.valueOf(strings[0]);\n\t\t\t\t\tm = Integer.valueOf(strings[1]);\n\t\t\t\t\tmatrix = new int[n][m];\n\t\t\t\t\tvector = new int[m];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (1 < count && count <= 1 + n) {\n\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\tmatrix[count - 2][w] = Integer.valueOf(strings[w]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (1 + n < count && count <= 1 + n + m) {\n\t\t\t\t\t\tvector[count - 2 - n] = Integer.valueOf(strings[0]);\n\t\t\t\t\t}\n\t\t\t\t\tif (1 + n + m == count) {\n\t\t\t\t\t\tfor (int h = 0; h < n; h++) {\n\t\t\t\t\t\t\tint calc = 0;\n\t\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\t\tcalc += (matrix[h][w] * vector[w]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(calc);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"while ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\t\t\t\t++count;\n\t\t\t\tif (count == 1) {\n\t\t\t\t\tn = Integer.valueOf(strings[0]);\n\t\t\t\t\tm = Integer.valueOf(strings[1]);\n\t\t\t\t\tmatrix = new int[n][m];\n\t\t\t\t\tvector = new int[m];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (1 < count && count <= 1 + n) {\n\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\tmatrix[count - 2][w] = Integer.valueOf(strings[w]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (1 + n < count && count <= 1 + n + m) {\n\t\t\t\t\t\tvector[count - 2 - n] = Integer.valueOf(strings[0]);\n\t\t\t\t\t}\n\t\t\t\t\tif (1 + n + m == count) {\n\t\t\t\t\t\tfor (int h = 0; h < n; h++) {\n\t\t\t\t\t\t\tint calc = 0;\n\t\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\t\tcalc += (matrix[h][w] * vector[w]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(calc);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"(buffer = reader.readLine()) != null",
"(buffer = reader.readLine())",
"buffer",
"reader.readLine()",
"reader.readLine",
"reader",
"null",
"{\n\t\t\t\tString[] strings = buffer.split(\" \");\n\t\t\t\t++count;\n\t\t\t\tif (count == 1) {\n\t\t\t\t\tn = Integer.valueOf(strings[0]);\n\t\t\t\t\tm = Integer.valueOf(strings[1]);\n\t\t\t\t\tmatrix = new int[n][m];\n\t\t\t\t\tvector = new int[m];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (1 < count && count <= 1 + n) {\n\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\tmatrix[count - 2][w] = Integer.valueOf(strings[w]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (1 + n < count && count <= 1 + n + m) {\n\t\t\t\t\t\tvector[count - 2 - n] = Integer.valueOf(strings[0]);\n\t\t\t\t\t}\n\t\t\t\t\tif (1 + n + m == count) {\n\t\t\t\t\t\tfor (int h = 0; h < n; h++) {\n\t\t\t\t\t\t\tint calc = 0;\n\t\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\t\tcalc += (matrix[h][w] * vector[w]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(calc);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"String[] strings = buffer.split(\" \");",
"strings",
"buffer.split(\" \")",
"buffer.split",
"buffer",
"\" \"",
"++count",
"count",
"if (count == 1) {\n\t\t\t\t\tn = Integer.valueOf(strings[0]);\n\t\t\t\t\tm = Integer.valueOf(strings[1]);\n\t\t\t\t\tmatrix = new int[n][m];\n\t\t\t\t\tvector = new int[m];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (1 < count && count <= 1 + n) {\n\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\tmatrix[count - 2][w] = Integer.valueOf(strings[w]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (1 + n < count && count <= 1 + n + m) {\n\t\t\t\t\t\tvector[count - 2 - n] = Integer.valueOf(strings[0]);\n\t\t\t\t\t}\n\t\t\t\t\tif (1 + n + m == count) {\n\t\t\t\t\t\tfor (int h = 0; h < n; h++) {\n\t\t\t\t\t\t\tint calc = 0;\n\t\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\t\tcalc += (matrix[h][w] * vector[w]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(calc);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"count == 1",
"count",
"1",
"{\n\t\t\t\t\tn = Integer.valueOf(strings[0]);\n\t\t\t\t\tm = Integer.valueOf(strings[1]);\n\t\t\t\t\tmatrix = new int[n][m];\n\t\t\t\t\tvector = new int[m];\n\t\t\t\t}",
"n = Integer.valueOf(strings[0])",
"n",
"Integer.valueOf(strings[0])",
"Integer.valueOf",
"Integer",
"strings[0]",
"strings",
"0",
"m = Integer.valueOf(strings[1])",
"m",
"Integer.valueOf(strings[1])",
"Integer.valueOf",
"Integer",
"strings[1]",
"strings",
"1",
"matrix = new int[n][m]",
"matrix",
"new int[n][m]",
"n",
"m",
"vector = new int[m]",
"vector",
"new int[m]",
"m",
"{\n\t\t\t\t\tif (1 < count && count <= 1 + n) {\n\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\tmatrix[count - 2][w] = Integer.valueOf(strings[w]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (1 + n < count && count <= 1 + n + m) {\n\t\t\t\t\t\tvector[count - 2 - n] = Integer.valueOf(strings[0]);\n\t\t\t\t\t}\n\t\t\t\t\tif (1 + n + m == count) {\n\t\t\t\t\t\tfor (int h = 0; h < n; h++) {\n\t\t\t\t\t\t\tint calc = 0;\n\t\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\t\tcalc += (matrix[h][w] * vector[w]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(calc);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"if (1 < count && count <= 1 + n) {\n\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\tmatrix[count - 2][w] = Integer.valueOf(strings[w]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"1 < count && count <= 1 + n",
"1 < count",
"1",
"count",
"count <= 1 + n",
"count",
"1 + n",
"1",
"n",
"{\n\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\tmatrix[count - 2][w] = Integer.valueOf(strings[w]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"for (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\tmatrix[count - 2][w] = Integer.valueOf(strings[w]);\n\t\t\t\t\t\t}",
"int w = 0;",
"int w = 0;",
"w",
"0",
"w < m",
"w",
"m",
"w++",
"w++",
"w",
"{\n\t\t\t\t\t\t\tmatrix[count - 2][w] = Integer.valueOf(strings[w]);\n\t\t\t\t\t\t}",
"{\n\t\t\t\t\t\t\tmatrix[count - 2][w] = Integer.valueOf(strings[w]);\n\t\t\t\t\t\t}",
"matrix[count - 2][w] = Integer.valueOf(strings[w])",
"matrix[count - 2][w]",
"matrix[count - 2]",
"matrix",
"count - 2",
"count",
"2",
"w",
"Integer.valueOf(strings[w])",
"Integer.valueOf",
"Integer",
"strings[w]",
"strings",
"w",
"if (1 + n < count && count <= 1 + n + m) {\n\t\t\t\t\t\tvector[count - 2 - n] = Integer.valueOf(strings[0]);\n\t\t\t\t\t}",
"1 + n < count && count <= 1 + n + m",
"1 + n < count",
"1 + n",
"1",
"n",
"count",
"count <= 1 + n + m",
"count",
"1 + n + m",
"1 + n + m",
"1",
"n",
"m",
"{\n\t\t\t\t\t\tvector[count - 2 - n] = Integer.valueOf(strings[0]);\n\t\t\t\t\t}",
"vector[count - 2 - n] = Integer.valueOf(strings[0])",
"vector[count - 2 - n]",
"vector",
"count - 2 - n",
"count - 2 - n",
"count",
"2",
"n",
"Integer.valueOf(strings[0])",
"Integer.valueOf",
"Integer",
"strings[0]",
"strings",
"0",
"if (1 + n + m == count) {\n\t\t\t\t\t\tfor (int h = 0; h < n; h++) {\n\t\t\t\t\t\t\tint calc = 0;\n\t\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\t\tcalc += (matrix[h][w] * vector[w]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(calc);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"1 + n + m == count",
"1 + n + m",
"1 + n + m",
"1",
"n",
"m",
"count",
"{\n\t\t\t\t\t\tfor (int h = 0; h < n; h++) {\n\t\t\t\t\t\t\tint calc = 0;\n\t\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\t\tcalc += (matrix[h][w] * vector[w]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(calc);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"for (int h = 0; h < n; h++) {\n\t\t\t\t\t\t\tint calc = 0;\n\t\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\t\tcalc += (matrix[h][w] * vector[w]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(calc);\n\t\t\t\t\t\t}",
"int h = 0;",
"int h = 0;",
"h",
"0",
"h < n",
"h",
"n",
"h++",
"h++",
"h",
"{\n\t\t\t\t\t\t\tint calc = 0;\n\t\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\t\tcalc += (matrix[h][w] * vector[w]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(calc);\n\t\t\t\t\t\t}",
"{\n\t\t\t\t\t\t\tint calc = 0;\n\t\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\t\tcalc += (matrix[h][w] * vector[w]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(calc);\n\t\t\t\t\t\t}",
"int calc = 0;",
"calc",
"0",
"for (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\t\tcalc += (matrix[h][w] * vector[w]);\n\t\t\t\t\t\t\t}",
"int w = 0;",
"int w = 0;",
"w",
"0",
"w < m",
"w",
"m",
"w++",
"w++",
"w",
"{\n\t\t\t\t\t\t\t\tcalc += (matrix[h][w] * vector[w]);\n\t\t\t\t\t\t\t}",
"{\n\t\t\t\t\t\t\t\tcalc += (matrix[h][w] * vector[w]);\n\t\t\t\t\t\t\t}",
"calc += (matrix[h][w] * vector[w])",
"calc",
"(matrix[h][w] * vector[w])",
"matrix[h][w]",
"matrix[h]",
"matrix",
"h",
"w",
"vector[w]",
"vector",
"w",
"System.out.println(calc)",
"System.out.println",
"System.out",
"System",
"System.out",
"calc",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer;\n\t\tint count = 0;\n\n\t\tint n = 0;\n\t\tint m = 0;\n\t\tint[][] matrix = null;\n\t\tint[] vector = null;\n\n\t\ttry {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\t\t\t\t++count;\n\t\t\t\tif (count == 1) {\n\t\t\t\t\tn = Integer.valueOf(strings[0]);\n\t\t\t\t\tm = Integer.valueOf(strings[1]);\n\t\t\t\t\tmatrix = new int[n][m];\n\t\t\t\t\tvector = new int[m];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (1 < count && count <= 1 + n) {\n\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\tmatrix[count - 2][w] = Integer.valueOf(strings[w]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (1 + n < count && count <= 1 + n + m) {\n\t\t\t\t\t\tvector[count - 2 - n] = Integer.valueOf(strings[0]);\n\t\t\t\t\t}\n\t\t\t\t\tif (1 + n + m == count) {\n\t\t\t\t\t\tfor (int h = 0; h < n; h++) {\n\t\t\t\t\t\t\tint calc = 0;\n\t\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\t\tcalc += (matrix[h][w] * vector[w]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(calc);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer;\n\t\tint count = 0;\n\n\t\tint n = 0;\n\t\tint m = 0;\n\t\tint[][] matrix = null;\n\t\tint[] vector = null;\n\n\t\ttry {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\t\t\t\t++count;\n\t\t\t\tif (count == 1) {\n\t\t\t\t\tn = Integer.valueOf(strings[0]);\n\t\t\t\t\tm = Integer.valueOf(strings[1]);\n\t\t\t\t\tmatrix = new int[n][m];\n\t\t\t\t\tvector = new int[m];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (1 < count && count <= 1 + n) {\n\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\tmatrix[count - 2][w] = Integer.valueOf(strings[w]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (1 + n < count && count <= 1 + n + m) {\n\t\t\t\t\t\tvector[count - 2 - n] = Integer.valueOf(strings[0]);\n\t\t\t\t\t}\n\t\t\t\t\tif (1 + n + m == count) {\n\t\t\t\t\t\tfor (int h = 0; h < n; h++) {\n\t\t\t\t\t\t\tint calc = 0;\n\t\t\t\t\t\t\tfor (int w = 0; w < m; w++) {\n\t\t\t\t\t\t\t\tcalc += (matrix[h][w] * vector[w]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(calc);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String buffer;
int count = 0;
int n = 0;
int m = 0;
int[][] matrix = null;
int[] vector = null;
try {
while ((buffer = reader.readLine()) != null) {
String[] strings = buffer.split(" ");
++count;
if (count == 1) {
n = Integer.valueOf(strings[0]);
m = Integer.valueOf(strings[1]);
matrix = new int[n][m];
vector = new int[m];
}
else {
if (1 < count && count <= 1 + n) {
for (int w = 0; w < m; w++) {
matrix[count - 2][w] = Integer.valueOf(strings[w]);
}
}
if (1 + n < count && count <= 1 + n + m) {
vector[count - 2 - n] = Integer.valueOf(strings[0]);
}
if (1 + n + m == count) {
for (int h = 0; h < n; h++) {
int calc = 0;
for (int w = 0; w < m; w++) {
calc += (matrix[h][w] * vector[w]);
}
System.out.println(calc);
}
}
}
}
} catch (Exception ex) {
ex.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,
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,
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,
2,
13,
13,
4,
18,
18,
13,
13,
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
],
[
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
],
[
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
],
[
108,
110
],
[
104,
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
],
[
123,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
137,
139
],
[
104,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
140,
145
],
[
6,
146
],
[
146,
147
],
[
0,
148
],
[
148,
149
],
[
148,
150
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t// ??\\???\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\t// ???????????ยฃ?ยจ?\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 i2=0; i2<m; i2++){\n\t\t\t\tint x = scan.nextInt();\n\t\t\t\tA[i][i2] = x;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<m; i++){\n\t\t\tint x = scan.nextInt();\n\t\t\tb[i] = x;\n\t\t}\n\t\t\n\t\t\n\t\t// \tA ??ยจ b ??????????ยฑ???????\n\t\tfor(int i=0; i<n; i++){\n\t\t\tint Ci = 0;\n\t\t\tint y = 0;\n\t\t\tfor(int i2=0; i2<m; i2++){\n\t\t\t\ty = A[i][i2]*b[i2];\n\t\t\t\tCi = Ci + y;\n\t\t\t}\n\t\t\t// ??????\n\t\t\tSystem.out.println(Ci);\n\t\t}\n\t\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\n\t\t// ??\\???\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\t// ???????????ยฃ?ยจ?\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 i2=0; i2<m; i2++){\n\t\t\t\tint x = scan.nextInt();\n\t\t\t\tA[i][i2] = x;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<m; i++){\n\t\t\tint x = scan.nextInt();\n\t\t\tb[i] = x;\n\t\t}\n\t\t\n\t\t\n\t\t// \tA ??ยจ b ??????????ยฑ???????\n\t\tfor(int i=0; i<n; i++){\n\t\t\tint Ci = 0;\n\t\t\tint y = 0;\n\t\t\tfor(int i2=0; i2<m; i2++){\n\t\t\t\ty = A[i][i2]*b[i2];\n\t\t\t\tCi = Ci + y;\n\t\t\t}\n\t\t\t// ??????\n\t\t\tSystem.out.println(Ci);\n\t\t}\n\t\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t// ??\\???\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\t// ???????????ยฃ?ยจ?\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 i2=0; i2<m; i2++){\n\t\t\t\tint x = scan.nextInt();\n\t\t\t\tA[i][i2] = x;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<m; i++){\n\t\t\tint x = scan.nextInt();\n\t\t\tb[i] = x;\n\t\t}\n\t\t\n\t\t\n\t\t// \tA ??ยจ b ??????????ยฑ???????\n\t\tfor(int i=0; i<n; i++){\n\t\t\tint Ci = 0;\n\t\t\tint y = 0;\n\t\t\tfor(int i2=0; i2<m; i2++){\n\t\t\t\ty = A[i][i2]*b[i2];\n\t\t\t\tCi = Ci + y;\n\t\t\t}\n\t\t\t// ??????\n\t\t\tSystem.out.println(Ci);\n\t\t}\n\t\n\t\t\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t// ??\\???\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\t// ???????????ยฃ?ยจ?\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 i2=0; i2<m; i2++){\n\t\t\t\tint x = scan.nextInt();\n\t\t\t\tA[i][i2] = x;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<m; i++){\n\t\t\tint x = scan.nextInt();\n\t\t\tb[i] = x;\n\t\t}\n\t\t\n\t\t\n\t\t// \tA ??ยจ b ??????????ยฑ???????\n\t\tfor(int i=0; i<n; i++){\n\t\t\tint Ci = 0;\n\t\t\tint y = 0;\n\t\t\tfor(int i2=0; i2<m; i2++){\n\t\t\t\ty = A[i][i2]*b[i2];\n\t\t\t\tCi = Ci + y;\n\t\t\t}\n\t\t\t// ??????\n\t\t\tSystem.out.println(Ci);\n\t\t}\n\t\n\t\t\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 i2=0; i2<m; i2++){\n\t\t\t\tint x = scan.nextInt();\n\t\t\t\tA[i][i2] = x;\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\tint x = scan.nextInt();\n\t\t\t\tA[i][i2] = x;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int i2=0; i2<m; i2++){\n\t\t\t\tint x = scan.nextInt();\n\t\t\t\tA[i][i2] = x;\n\t\t\t}\n\t\t}",
"for(int i2=0; i2<m; i2++){\n\t\t\t\tint x = scan.nextInt();\n\t\t\t\tA[i][i2] = x;\n\t\t\t}",
"int i2=0;",
"int i2=0;",
"i2",
"0",
"i2<m",
"i2",
"m",
"i2++",
"i2++",
"i2",
"{\n\t\t\t\tint x = scan.nextInt();\n\t\t\t\tA[i][i2] = x;\n\t\t\t}",
"{\n\t\t\t\tint x = scan.nextInt();\n\t\t\t\tA[i][i2] = x;\n\t\t\t}",
"int x = scan.nextInt();",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"A[i][i2] = x",
"A[i][i2]",
"A[i]",
"A",
"i",
"i2",
"x",
"for(int i=0; i<m; i++){\n\t\t\tint x = scan.nextInt();\n\t\t\tb[i] = x;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tint x = scan.nextInt();\n\t\t\tb[i] = x;\n\t\t}",
"{\n\t\t\tint x = scan.nextInt();\n\t\t\tb[i] = x;\n\t\t}",
"int x = scan.nextInt();",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"b[i] = x",
"b[i]",
"b",
"i",
"x",
"for(int i=0; i<n; i++){\n\t\t\tint Ci = 0;\n\t\t\tint y = 0;\n\t\t\tfor(int i2=0; i2<m; i2++){\n\t\t\t\ty = A[i][i2]*b[i2];\n\t\t\t\tCi = Ci + y;\n\t\t\t}\n\t\t\t// ??????\n\t\t\tSystem.out.println(Ci);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint Ci = 0;\n\t\t\tint y = 0;\n\t\t\tfor(int i2=0; i2<m; i2++){\n\t\t\t\ty = A[i][i2]*b[i2];\n\t\t\t\tCi = Ci + y;\n\t\t\t}\n\t\t\t// ??????\n\t\t\tSystem.out.println(Ci);\n\t\t}",
"{\n\t\t\tint Ci = 0;\n\t\t\tint y = 0;\n\t\t\tfor(int i2=0; i2<m; i2++){\n\t\t\t\ty = A[i][i2]*b[i2];\n\t\t\t\tCi = Ci + y;\n\t\t\t}\n\t\t\t// ??????\n\t\t\tSystem.out.println(Ci);\n\t\t}",
"int Ci = 0;",
"Ci",
"0",
"int y = 0;",
"y",
"0",
"for(int i2=0; i2<m; i2++){\n\t\t\t\ty = A[i][i2]*b[i2];\n\t\t\t\tCi = Ci + y;\n\t\t\t}",
"int i2=0;",
"int i2=0;",
"i2",
"0",
"i2<m",
"i2",
"m",
"i2++",
"i2++",
"i2",
"{\n\t\t\t\ty = A[i][i2]*b[i2];\n\t\t\t\tCi = Ci + y;\n\t\t\t}",
"{\n\t\t\t\ty = A[i][i2]*b[i2];\n\t\t\t\tCi = Ci + y;\n\t\t\t}",
"y = A[i][i2]*b[i2]",
"y",
"A[i][i2]*b[i2]",
"A[i][i2]",
"A[i]",
"A",
"i",
"i2",
"b[i2]",
"b",
"i2",
"Ci = Ci + y",
"Ci",
"Ci + y",
"Ci",
"y",
"System.out.println(Ci)",
"System.out.println",
"System.out",
"System",
"System.out",
"Ci",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t// ??\\???\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\t// ???????????ยฃ?ยจ?\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 i2=0; i2<m; i2++){\n\t\t\t\tint x = scan.nextInt();\n\t\t\t\tA[i][i2] = x;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<m; i++){\n\t\t\tint x = scan.nextInt();\n\t\t\tb[i] = x;\n\t\t}\n\t\t\n\t\t\n\t\t// \tA ??ยจ b ??????????ยฑ???????\n\t\tfor(int i=0; i<n; i++){\n\t\t\tint Ci = 0;\n\t\t\tint y = 0;\n\t\t\tfor(int i2=0; i2<m; i2++){\n\t\t\t\ty = A[i][i2]*b[i2];\n\t\t\t\tCi = Ci + y;\n\t\t\t}\n\t\t\t// ??????\n\t\t\tSystem.out.println(Ci);\n\t\t}\n\t\n\t\t\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t// ??\\???\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\t// ???????????ยฃ?ยจ?\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 i2=0; i2<m; i2++){\n\t\t\t\tint x = scan.nextInt();\n\t\t\t\tA[i][i2] = x;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<m; i++){\n\t\t\tint x = scan.nextInt();\n\t\t\tb[i] = x;\n\t\t}\n\t\t\n\t\t\n\t\t// \tA ??ยจ b ??????????ยฑ???????\n\t\tfor(int i=0; i<n; i++){\n\t\t\tint Ci = 0;\n\t\t\tint y = 0;\n\t\t\tfor(int i2=0; i2<m; i2++){\n\t\t\t\ty = A[i][i2]*b[i2];\n\t\t\t\tCi = Ci + y;\n\t\t\t}\n\t\t\t// ??????\n\t\t\tSystem.out.println(Ci);\n\t\t}\n\t\n\t\t\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
// ??\???
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 i2=0; i2<m; i2++){
int x = scan.nextInt();
A[i][i2] = x;
}
}
for(int i=0; i<m; i++){
int x = scan.nextInt();
b[i] = x;
}
// A ??ยจ b ??????????ยฑ???????
for(int i=0; i<n; i++){
int Ci = 0;
int y = 0;
for(int i2=0; i2<m; i2++){
y = A[i][i2]*b[i2];
Ci = Ci + y;
}
// ??????
System.out.println(Ci);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
4,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
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,
4,
13,
13,
13,
13,
13,
12,
13,
30,
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,
23,
13,
23,
13,
23,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
6,
11
],
[
11,
12
],
[
4,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
15,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
15,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
15,
29
],
[
29,
30
],
[
29,
31
],
[
15,
34
],
[
34,
35
],
[
34,
36
],
[
15,
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
],
[
15,
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
],
[
15,
93
],
[
93,
94
],
[
93,
95
],
[
93,
96
],
[
93,
97
],
[
93,
98
],
[
4,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
101,
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
],
[
116,
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
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
135,
141
],
[
141,
142
],
[
141,
143
],
[
116,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
144,
149
],
[
99,
150
],
[
150,
151
],
[
99,
152
],
[
152,
153
],
[
99,
154
],
[
154,
155
],
[
99,
156
],
[
156,
157
]
] | [
"import java.util.*;\n\n class Main\n {\n public static void main(String args[])\n { \n input();\n }\n static void input()\n {\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n \n int m = sc.nextInt();\n \n int a[][] = new int[n][m];\n \n int b[] = new int[m];\n \n for(int i = 0;i < n;i ++)\n {\n for(int j = 0;j < m;j ++)\n {\n a[i][j] = sc.nextInt();\n }\n }\n for(int i = 0;i < m;i ++)\n {\n b[i] = sc.nextInt();\n }\n output(a,b,n,m);\n }\n static void output(int a[][],int b[],int n,int m)\n {\n int answer;\n \n for(int i = 0; i < n; i ++)\n {\n answer = 0;\n \n for(int j = 0; j < m; j ++)\n {\n answer += a[i][j] * b[j];\n }\n System.out.println(answer);\n }\n }\n }\n\n",
"import java.util.*;",
"util.*",
"java",
"class Main\n {\n public static void main(String args[])\n { \n input();\n }\n static void input()\n {\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n \n int m = sc.nextInt();\n \n int a[][] = new int[n][m];\n \n int b[] = new int[m];\n \n for(int i = 0;i < n;i ++)\n {\n for(int j = 0;j < m;j ++)\n {\n a[i][j] = sc.nextInt();\n }\n }\n for(int i = 0;i < m;i ++)\n {\n b[i] = sc.nextInt();\n }\n output(a,b,n,m);\n }\n static void output(int a[][],int b[],int n,int m)\n {\n int answer;\n \n for(int i = 0; i < n; i ++)\n {\n answer = 0;\n \n for(int j = 0; j < m; j ++)\n {\n answer += a[i][j] * b[j];\n }\n System.out.println(answer);\n }\n }\n }",
"Main",
"public static void main(String args[])\n { \n input();\n }",
"main",
"{ \n input();\n }",
"input()",
"input",
"String args[]",
"args",
"static void input()\n {\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n \n int m = sc.nextInt();\n \n int a[][] = new int[n][m];\n \n int b[] = new int[m];\n \n for(int i = 0;i < n;i ++)\n {\n for(int j = 0;j < m;j ++)\n {\n a[i][j] = sc.nextInt();\n }\n }\n for(int i = 0;i < m;i ++)\n {\n b[i] = sc.nextInt();\n }\n output(a,b,n,m);\n }",
"input",
"{\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n \n int m = sc.nextInt();\n \n int a[][] = new int[n][m];\n \n int b[] = new int[m];\n \n for(int i = 0;i < n;i ++)\n {\n for(int j = 0;j < m;j ++)\n {\n a[i][j] = sc.nextInt();\n }\n }\n for(int i = 0;i < m;i ++)\n {\n b[i] = sc.nextInt();\n }\n output(a,b,n,m);\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 {\n for(int j = 0;j < m;j ++)\n {\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 {\n a[i][j] = sc.nextInt();\n }\n }",
"{\n for(int j = 0;j < m;j ++)\n {\n a[i][j] = sc.nextInt();\n }\n }",
"for(int j = 0;j < m;j ++)\n {\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 {\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",
"output(a,b,n,m)",
"output",
"a",
"b",
"n",
"m",
"static void output(int a[][],int b[],int n,int m)\n {\n int answer;\n \n for(int i = 0; i < n; i ++)\n {\n answer = 0;\n \n for(int j = 0; j < m; j ++)\n {\n answer += a[i][j] * b[j];\n }\n System.out.println(answer);\n }\n }",
"output",
"{\n int answer;\n \n for(int i = 0; i < n; i ++)\n {\n answer = 0;\n \n for(int j = 0; j < m; j ++)\n {\n answer += a[i][j] * b[j];\n }\n System.out.println(answer);\n }\n }",
"int answer;",
"answer",
"for(int i = 0; i < n; i ++)\n {\n answer = 0;\n \n for(int j = 0; j < m; j ++)\n {\n answer += a[i][j] * b[j];\n }\n System.out.println(answer);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i ++",
"i ++",
"i",
"{\n answer = 0;\n \n for(int j = 0; j < m; j ++)\n {\n answer += a[i][j] * b[j];\n }\n System.out.println(answer);\n }",
"{\n answer = 0;\n \n for(int j = 0; j < m; j ++)\n {\n answer += a[i][j] * b[j];\n }\n System.out.println(answer);\n }",
"answer = 0",
"answer",
"0",
"for(int j = 0; j < m; j ++)\n {\n answer += a[i][j] * b[j];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j ++",
"j ++",
"j",
"{\n answer += a[i][j] * b[j];\n }",
"{\n answer += a[i][j] * b[j];\n }",
"answer += a[i][j] * b[j]",
"answer",
"a[i][j] * b[j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"System.out.println(answer)",
"System.out.println",
"System.out",
"System",
"System.out",
"answer",
"int a[][]",
"a",
"int b[]",
"b",
"int n",
"n",
"int m",
"m"
] | import java.util.*;
class Main
{
public static void main(String args[])
{
input();
}
static void input()
{
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 i = 0;i < m;i ++)
{
b[i] = sc.nextInt();
}
output(a,b,n,m);
}
static void output(int a[][],int b[],int n,int m)
{
int answer;
for(int i = 0; i < n; i ++)
{
answer = 0;
for(int j = 0; j < m; j ++)
{
answer += a[i][j] * b[j];
}
System.out.println(answer);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
38,
30,
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,
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,
11,
1,
0,
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
],
[
162,
5
],
[
162,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
8,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
18,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
18,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
18,
32
],
[
32,
33
],
[
32,
34
],
[
18,
37
],
[
37,
38
],
[
37,
39
],
[
18,
41
],
[
41,
42
],
[
41,
43
],
[
18,
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
],
[
18,
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
],
[
18,
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
],
[
18,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
144,
145
],
[
144,
146
],
[
139,
147
],
[
147,
148
],
[
148,
149
],
[
139,
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\tpublic static void main(String[] args) {\n\t\tint m, n;\n\t\tint i, j;\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tm = sc.nextInt();\n\t\t\tn = sc.nextInt();\n\t\t\tint a[][] = new int[m][n];\n\t\t\tint b[] = new int[n];\n\t\t\tint c[] = new int[m];\n\t\t\tfor(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < n; j++) {\n\t\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i = 0; i < n; i++) {\n\t\t\t\tb[i] = sc.nextInt();\n\t\t\t}\n\t\t\tfor(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < n; j++) {\n\t\t\t\t\tc[i] += a[i][j] * b[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i = 0; i < m; i++) System.out.println(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\tint m, n;\n\t\tint i, j;\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tm = sc.nextInt();\n\t\t\tn = sc.nextInt();\n\t\t\tint a[][] = new int[m][n];\n\t\t\tint b[] = new int[n];\n\t\t\tint c[] = new int[m];\n\t\t\tfor(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < n; j++) {\n\t\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i = 0; i < n; i++) {\n\t\t\t\tb[i] = sc.nextInt();\n\t\t\t}\n\t\t\tfor(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < n; j++) {\n\t\t\t\t\tc[i] += a[i][j] * b[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i = 0; i < m; i++) System.out.println(c[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tint m, n;\n\t\tint i, j;\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tm = sc.nextInt();\n\t\t\tn = sc.nextInt();\n\t\t\tint a[][] = new int[m][n];\n\t\t\tint b[] = new int[n];\n\t\t\tint c[] = new int[m];\n\t\t\tfor(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < n; j++) {\n\t\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i = 0; i < n; i++) {\n\t\t\t\tb[i] = sc.nextInt();\n\t\t\t}\n\t\t\tfor(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < n; j++) {\n\t\t\t\t\tc[i] += a[i][j] * b[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i = 0; i < m; i++) System.out.println(c[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tint m, n;\n\t\tint i, j;\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tm = sc.nextInt();\n\t\t\tn = sc.nextInt();\n\t\t\tint a[][] = new int[m][n];\n\t\t\tint b[] = new int[n];\n\t\t\tint c[] = new int[m];\n\t\t\tfor(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < n; j++) {\n\t\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i = 0; i < n; i++) {\n\t\t\t\tb[i] = sc.nextInt();\n\t\t\t}\n\t\t\tfor(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < n; j++) {\n\t\t\t\t\tc[i] += a[i][j] * b[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i = 0; i < m; i++) System.out.println(c[i]);\n\t\t}\n\t}",
"int m",
"m",
"n;",
"n",
"int i",
"i",
"j;",
"j",
"try (Scanner sc = new Scanner(System.in)) {\n\t\t\tm = sc.nextInt();\n\t\t\tn = sc.nextInt();\n\t\t\tint a[][] = new int[m][n];\n\t\t\tint b[] = new int[n];\n\t\t\tint c[] = new int[m];\n\t\t\tfor(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < n; j++) {\n\t\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i = 0; i < n; i++) {\n\t\t\t\tb[i] = sc.nextInt();\n\t\t\t}\n\t\t\tfor(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < n; j++) {\n\t\t\t\t\tc[i] += a[i][j] * b[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i = 0; i < m; i++) System.out.println(c[i]);\n\t\t}",
"{\n\t\t\tm = sc.nextInt();\n\t\t\tn = sc.nextInt();\n\t\t\tint a[][] = new int[m][n];\n\t\t\tint b[] = new int[n];\n\t\t\tint c[] = new int[m];\n\t\t\tfor(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < n; j++) {\n\t\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i = 0; i < n; i++) {\n\t\t\t\tb[i] = sc.nextInt();\n\t\t\t}\n\t\t\tfor(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < n; j++) {\n\t\t\t\t\tc[i] += a[i][j] * b[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i = 0; i < m; i++) System.out.println(c[i]);\n\t\t}",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"m = sc.nextInt()",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a[][] = new int[m][n];",
"a",
"new int[m][n]",
"m",
"n",
"int b[] = new int[n];",
"b",
"new int[n]",
"n",
"int c[] = new int[m];",
"c",
"new int[m]",
"m",
"for(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < n; j++) {\n\t\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(j = 0; j < n; j++) {\n\t\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(j = 0; j < n; j++) {\n\t\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}",
"for(j = 0; j < n; j++) {\n\t\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < n",
"j",
"n",
"j++",
"j++",
"j",
"{\n\t\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t\t}",
"{\n\t\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t\t}",
"a[i][j] = sc.nextInt()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(i = 0; i < n; i++) {\n\t\t\t\tb[i] = sc.nextInt();\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"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",
"for(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < n; j++) {\n\t\t\t\t\tc[i] += a[i][j] * b[j];\n\t\t\t\t}\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(j = 0; j < n; j++) {\n\t\t\t\t\tc[i] += a[i][j] * b[j];\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(j = 0; j < n; j++) {\n\t\t\t\t\tc[i] += a[i][j] * b[j];\n\t\t\t\t}\n\t\t\t}",
"for(j = 0; j < n; j++) {\n\t\t\t\t\tc[i] += a[i][j] * b[j];\n\t\t\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < n",
"j",
"n",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tc[i] += a[i][j] * b[j];\n\t\t\t\t}",
"{\n\t\t\t\t\tc[i] += a[i][j] * b[j];\n\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(i = 0; i < m; i++) System.out.println(c[i]);",
"i = 0;",
"i = 0",
"i",
"0",
"i < m",
"i",
"m",
"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) {\n\t\tint m, n;\n\t\tint i, j;\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tm = sc.nextInt();\n\t\t\tn = sc.nextInt();\n\t\t\tint a[][] = new int[m][n];\n\t\t\tint b[] = new int[n];\n\t\t\tint c[] = new int[m];\n\t\t\tfor(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < n; j++) {\n\t\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i = 0; i < n; i++) {\n\t\t\t\tb[i] = sc.nextInt();\n\t\t\t}\n\t\t\tfor(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < n; j++) {\n\t\t\t\t\tc[i] += a[i][j] * b[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i = 0; i < m; i++) System.out.println(c[i]);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tint m, n;\n\t\tint i, j;\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tm = sc.nextInt();\n\t\t\tn = sc.nextInt();\n\t\t\tint a[][] = new int[m][n];\n\t\t\tint b[] = new int[n];\n\t\t\tint c[] = new int[m];\n\t\t\tfor(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < n; j++) {\n\t\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i = 0; i < n; i++) {\n\t\t\t\tb[i] = sc.nextInt();\n\t\t\t}\n\t\t\tfor(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < n; j++) {\n\t\t\t\t\tc[i] += a[i][j] * b[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i = 0; i < m; i++) System.out.println(c[i]);\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int m, n;
int i, j;
try (Scanner sc = new Scanner(System.in)) {
m = sc.nextInt();
n = sc.nextInt();
int a[][] = new int[m][n];
int b[] = new int[n];
int c[] = new int[m];
for(i = 0; i < m; i++) {
for(j = 0; j < n; j++) {
a[i][j] = sc.nextInt();
}
}
for(i = 0; i < n; i++) {
b[i] = sc.nextInt();
}
for(i = 0; i < m; i++) {
for(j = 0; j < n; j++) {
c[i] += a[i][j] * b[j];
}
}
for(i = 0; i < m; i++) System.out.println(c[i]);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
13,
13,
41,
13,
4,
13,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
20,
13,
13,
41,
13,
4,
18,
13,
13,
17,
2,
17,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
13,
18,
13,
13,
4,
18,
13,
13,
17,
18,
13,
13,
17,
18,
13,
13,
41,
13,
20,
13,
41,
13,
4,
18,
13,
13,
2,
17,
13,
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,
4,
13,
13,
13,
28,
13,
13,
30,
30,
4,
18,
4,
18,
13,
13,
17,
29,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
20,
18,
13,
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,
18,
13,
13,
13,
18,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
38,
5,
13,
30,
37,
20,
30,
14,
2,
13,
17,
30,
38,
5,
13,
30,
30,
4,
18,
13,
14,
2,
13,
17,
30,
38,
5,
13,
30,
30,
4,
18,
13,
30,
0,
13,
20,
0,
13,
20,
41,
13,
20,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
4,
18,
4,
18,
13,
13,
17,
29,
4,
18,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
17,
23,
13,
12,
13,
30,
41,
13,
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,
29,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
4,
13,
4,
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
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
368,
17
],
[
368,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
26,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
33,
35
],
[
20,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
20,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
20,
46
],
[
46,
47
],
[
46,
48
],
[
20,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
53,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
20,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
61,
71
],
[
71,
72
],
[
72,
73
],
[
61,
74
],
[
75,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
75,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
83,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
83,
91
],
[
83,
92
],
[
92,
93
],
[
92,
94
],
[
20,
95
],
[
95,
96
],
[
95,
97
],
[
20,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
101,
105
],
[
105,
106
],
[
105,
107
],
[
101,
108
],
[
108,
109
],
[
108,
110
],
[
20,
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
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
130,
131
],
[
131,
132
],
[
130,
133
],
[
133,
134
],
[
133,
135
],
[
20,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
138,
140
],
[
138,
141
],
[
20,
142
],
[
142,
143
],
[
142,
144
],
[
142,
145
],
[
146,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
149,
152
],
[
147,
153
],
[
20,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
18,
158
],
[
158,
159
],
[
368,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
166,
167
],
[
166,
168
],
[
162,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
169,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
176,
178
],
[
169,
179
],
[
179,
180
],
[
180,
181
],
[
169,
182
],
[
183,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
184,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
195
],
[
184,
196
],
[
196,
197
],
[
197,
198
],
[
184,
199
],
[
200,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
206,
210
],
[
205,
211
],
[
211,
212
],
[
211,
213
],
[
162,
214
],
[
214,
215
],
[
160,
216
],
[
216,
217
],
[
160,
218
],
[
218,
219
],
[
368,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
222,
226
],
[
226,
227
],
[
226,
228
],
[
222,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
233,
234
],
[
229,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
237,
239
],
[
236,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
241,
245
],
[
245,
246
],
[
246,
247
],
[
247,
248
],
[
235,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
249,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
254,
258
],
[
258,
259
],
[
259,
260
],
[
260,
261
],
[
229,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
262,
266
],
[
266,
267
],
[
266,
268
],
[
262,
269
],
[
269,
270
],
[
269,
271
],
[
262,
272
],
[
272,
273
],
[
262,
274
],
[
274,
275
],
[
275,
276
],
[
276,
277
],
[
276,
278
],
[
278,
279
],
[
279,
280
],
[
275,
281
],
[
274,
282
],
[
282,
283
],
[
283,
284
],
[
284,
285
],
[
285,
286
],
[
286,
287
],
[
285,
288
],
[
283,
289
],
[
262,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
220,
294
],
[
294,
295
],
[
368,
296
],
[
296,
297
],
[
296,
298
],
[
298,
299
],
[
299,
300
],
[
300,
301
],
[
301,
302
],
[
300,
303
],
[
296,
304
],
[
304,
305
],
[
368,
306
],
[
306,
307
],
[
306,
308
],
[
308,
309
],
[
309,
310
],
[
309,
311
],
[
311,
312
],
[
312,
313
],
[
311,
314
],
[
308,
315
],
[
315,
316
],
[
315,
317
],
[
318,
319
],
[
318,
320
],
[
308,
321
],
[
321,
322
],
[
322,
323
],
[
323,
324
],
[
323,
325
],
[
321,
326
],
[
326,
327
],
[
326,
328
],
[
328,
329
],
[
328,
330
],
[
321,
331
],
[
331,
332
],
[
332,
333
],
[
321,
334
],
[
335,
335
],
[
335,
336
],
[
336,
337
],
[
337,
338
],
[
337,
339
],
[
336,
340
],
[
340,
341
],
[
341,
342
],
[
340,
343
],
[
343,
344
],
[
343,
345
],
[
308,
346
],
[
346,
347
],
[
306,
348
],
[
348,
349
],
[
368,
350
],
[
350,
351
],
[
350,
352
],
[
352,
353
],
[
353,
354
],
[
354,
355
],
[
355,
356
],
[
355,
357
],
[
353,
358
],
[
358,
359
],
[
358,
360
],
[
360,
361
],
[
360,
362
],
[
362,
363
],
[
362,
364
],
[
350,
365
],
[
365,
366
],
[
0,
367
],
[
367,
368
],
[
367,
369
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\npublic class Main {\n\n protected static String process(String data) {\n StringBuilder sb = new StringBuilder();\n final String[] lines = splitForLines(data);\n\n final int[] split = split(lines[0]);\n final int rows = split[0];\n final int columns = split[1];\n\n final int[][] matrix = new int[rows][columns];\n final String[] matrixLines = Arrays.copyOfRange(lines, 1, 1 + rows);\n for (int i = 0; i < matrixLines.length; i++) {\n final int[] array = split(matrixLines[i]);\n\n// for (int j = 0; j < array.length; j++) {\n// matrix[i][j] = array[j];\n// }\n System.arraycopy(array, 0, matrix[i], 0, array.length);\n }\n\n final int[] vector = new int[columns];\n final String[] vectorLines = Arrays.copyOfRange(lines, 1 + rows, lines.length);\n for (int i = 0; i < vectorLines.length; i++) {\n vector[i] = Integer.parseInt(vectorLines[i]);\n }\n\n final int[] result = multiply(matrix, vector);\n\n for (int i : result) {\n sb.append(i).append('\\n');\n }\n\n return sb.toString();\n }\n\n static int[] multiply(int[][] matrix, int[] vector) {\n int[] result = new int[matrix.length];\n\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[i].length; j++) {\n result[i] += matrix[i][j] * vector[j];\n }\n }\n\n return result;\n }\n\n private static String readAll(InputStream is) {\n InputStreamReader r = null;\n BufferedReader br = null;\n\n try {\n r = new InputStreamReader(is);\n br = new BufferedReader(r);\n StringBuilder sb = new StringBuilder();\n String s;\n\n while ((s = br.readLine()) != null) {\n sb.append(s).append('\\n');\n }\n\n return sb.toString();\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n }\n }\n if (r != null) {\n try {\n r.close();\n } catch (IOException e) {\n }\n }\n }\n }\n\n private static String[] splitForLines(String lines) {\n return lines.split(\"\\\\n\");\n }\n\n private static int[] split(String s) {\n final String[] s0 = s.split(\" \");\n int[] ia = new int[s0.length];\n\n for (int i = 0; i < s0.length; i++) {\n ia[i] = Integer.parseInt(s0[i]);\n }\n\n return ia;\n }\n\n public static void main(String[] args) {\n System.out.print(process(readAll(System.in)));\n }\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.util.Arrays;",
"Arrays",
"java.util",
"public class Main {\n\n protected static String process(String data) {\n StringBuilder sb = new StringBuilder();\n final String[] lines = splitForLines(data);\n\n final int[] split = split(lines[0]);\n final int rows = split[0];\n final int columns = split[1];\n\n final int[][] matrix = new int[rows][columns];\n final String[] matrixLines = Arrays.copyOfRange(lines, 1, 1 + rows);\n for (int i = 0; i < matrixLines.length; i++) {\n final int[] array = split(matrixLines[i]);\n\n// for (int j = 0; j < array.length; j++) {\n// matrix[i][j] = array[j];\n// }\n System.arraycopy(array, 0, matrix[i], 0, array.length);\n }\n\n final int[] vector = new int[columns];\n final String[] vectorLines = Arrays.copyOfRange(lines, 1 + rows, lines.length);\n for (int i = 0; i < vectorLines.length; i++) {\n vector[i] = Integer.parseInt(vectorLines[i]);\n }\n\n final int[] result = multiply(matrix, vector);\n\n for (int i : result) {\n sb.append(i).append('\\n');\n }\n\n return sb.toString();\n }\n\n static int[] multiply(int[][] matrix, int[] vector) {\n int[] result = new int[matrix.length];\n\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[i].length; j++) {\n result[i] += matrix[i][j] * vector[j];\n }\n }\n\n return result;\n }\n\n private static String readAll(InputStream is) {\n InputStreamReader r = null;\n BufferedReader br = null;\n\n try {\n r = new InputStreamReader(is);\n br = new BufferedReader(r);\n StringBuilder sb = new StringBuilder();\n String s;\n\n while ((s = br.readLine()) != null) {\n sb.append(s).append('\\n');\n }\n\n return sb.toString();\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n }\n }\n if (r != null) {\n try {\n r.close();\n } catch (IOException e) {\n }\n }\n }\n }\n\n private static String[] splitForLines(String lines) {\n return lines.split(\"\\\\n\");\n }\n\n private static int[] split(String s) {\n final String[] s0 = s.split(\" \");\n int[] ia = new int[s0.length];\n\n for (int i = 0; i < s0.length; i++) {\n ia[i] = Integer.parseInt(s0[i]);\n }\n\n return ia;\n }\n\n public static void main(String[] args) {\n System.out.print(process(readAll(System.in)));\n }\n}",
"Main",
"protected static String process(String data) {\n StringBuilder sb = new StringBuilder();\n final String[] lines = splitForLines(data);\n\n final int[] split = split(lines[0]);\n final int rows = split[0];\n final int columns = split[1];\n\n final int[][] matrix = new int[rows][columns];\n final String[] matrixLines = Arrays.copyOfRange(lines, 1, 1 + rows);\n for (int i = 0; i < matrixLines.length; i++) {\n final int[] array = split(matrixLines[i]);\n\n// for (int j = 0; j < array.length; j++) {\n// matrix[i][j] = array[j];\n// }\n System.arraycopy(array, 0, matrix[i], 0, array.length);\n }\n\n final int[] vector = new int[columns];\n final String[] vectorLines = Arrays.copyOfRange(lines, 1 + rows, lines.length);\n for (int i = 0; i < vectorLines.length; i++) {\n vector[i] = Integer.parseInt(vectorLines[i]);\n }\n\n final int[] result = multiply(matrix, vector);\n\n for (int i : result) {\n sb.append(i).append('\\n');\n }\n\n return sb.toString();\n }",
"process",
"{\n StringBuilder sb = new StringBuilder();\n final String[] lines = splitForLines(data);\n\n final int[] split = split(lines[0]);\n final int rows = split[0];\n final int columns = split[1];\n\n final int[][] matrix = new int[rows][columns];\n final String[] matrixLines = Arrays.copyOfRange(lines, 1, 1 + rows);\n for (int i = 0; i < matrixLines.length; i++) {\n final int[] array = split(matrixLines[i]);\n\n// for (int j = 0; j < array.length; j++) {\n// matrix[i][j] = array[j];\n// }\n System.arraycopy(array, 0, matrix[i], 0, array.length);\n }\n\n final int[] vector = new int[columns];\n final String[] vectorLines = Arrays.copyOfRange(lines, 1 + rows, lines.length);\n for (int i = 0; i < vectorLines.length; i++) {\n vector[i] = Integer.parseInt(vectorLines[i]);\n }\n\n final int[] result = multiply(matrix, vector);\n\n for (int i : result) {\n sb.append(i).append('\\n');\n }\n\n return sb.toString();\n }",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"final String[] lines = splitForLines(data);",
"lines",
"splitForLines(data)",
"splitForLines",
"data",
"final int[] split = split(lines[0]);",
"split",
"split(lines[0])",
"split",
"lines[0]",
"lines",
"0",
"final int rows = split[0];",
"rows",
"split[0]",
"split",
"0",
"final int columns = split[1];",
"columns",
"split[1]",
"split",
"1",
"final int[][] matrix = new int[rows][columns];",
"matrix",
"new int[rows][columns]",
"rows",
"columns",
"final String[] matrixLines = Arrays.copyOfRange(lines, 1, 1 + rows);",
"matrixLines",
"Arrays.copyOfRange(lines, 1, 1 + rows)",
"Arrays.copyOfRange",
"Arrays",
"lines",
"1",
"1 + rows",
"1",
"rows",
"for (int i = 0; i < matrixLines.length; i++) {\n final int[] array = split(matrixLines[i]);\n\n// for (int j = 0; j < array.length; j++) {\n// matrix[i][j] = array[j];\n// }\n System.arraycopy(array, 0, matrix[i], 0, array.length);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < matrixLines.length",
"i",
"matrixLines.length",
"matrixLines",
"matrixLines.length",
"i++",
"i++",
"i",
"{\n final int[] array = split(matrixLines[i]);\n\n// for (int j = 0; j < array.length; j++) {\n// matrix[i][j] = array[j];\n// }\n System.arraycopy(array, 0, matrix[i], 0, array.length);\n }",
"{\n final int[] array = split(matrixLines[i]);\n\n// for (int j = 0; j < array.length; j++) {\n// matrix[i][j] = array[j];\n// }\n System.arraycopy(array, 0, matrix[i], 0, array.length);\n }",
"final int[] array = split(matrixLines[i]);",
"array",
"split(matrixLines[i])",
"split",
"matrixLines[i]",
"matrixLines",
"i",
"System.arraycopy(array, 0, matrix[i], 0, array.length)",
"System.arraycopy",
"System",
"array",
"0",
"matrix[i]",
"matrix",
"i",
"0",
"array.length",
"array",
"array.length",
"final int[] vector = new int[columns];",
"vector",
"new int[columns]",
"columns",
"final String[] vectorLines = Arrays.copyOfRange(lines, 1 + rows, lines.length);",
"vectorLines",
"Arrays.copyOfRange(lines, 1 + rows, lines.length)",
"Arrays.copyOfRange",
"Arrays",
"lines",
"1 + rows",
"1",
"rows",
"lines.length",
"lines",
"lines.length",
"for (int i = 0; i < vectorLines.length; i++) {\n vector[i] = Integer.parseInt(vectorLines[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < vectorLines.length",
"i",
"vectorLines.length",
"vectorLines",
"vectorLines.length",
"i++",
"i++",
"i",
"{\n vector[i] = Integer.parseInt(vectorLines[i]);\n }",
"{\n vector[i] = Integer.parseInt(vectorLines[i]);\n }",
"vector[i] = Integer.parseInt(vectorLines[i])",
"vector[i]",
"vector",
"i",
"Integer.parseInt(vectorLines[i])",
"Integer.parseInt",
"Integer",
"vectorLines[i]",
"vectorLines",
"i",
"final int[] result = multiply(matrix, vector);",
"result",
"multiply(matrix, vector)",
"multiply",
"matrix",
"vector",
"for (int i : result) {\n sb.append(i).append('\\n');\n }",
"int i",
"result",
"{\n sb.append(i).append('\\n');\n }",
"{\n sb.append(i).append('\\n');\n }",
"sb.append(i).append('\\n')",
"sb.append(i).append",
"sb.append(i)",
"sb.append",
"sb",
"i",
"'\\n'",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"String data",
"data",
"static int[] multiply(int[][] matrix, int[] vector) {\n int[] result = new int[matrix.length];\n\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[i].length; j++) {\n result[i] += matrix[i][j] * vector[j];\n }\n }\n\n return result;\n }",
"multiply",
"{\n int[] result = new int[matrix.length];\n\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[i].length; j++) {\n result[i] += matrix[i][j] * vector[j];\n }\n }\n\n return result;\n }",
"int[] result = new int[matrix.length];",
"result",
"new int[matrix.length]",
"matrix.length",
"matrix",
"matrix.length",
"for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[i].length; j++) {\n result[i] += matrix[i][j] * vector[j];\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < matrix.length",
"i",
"matrix.length",
"matrix",
"matrix.length",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < matrix[i].length; j++) {\n result[i] += matrix[i][j] * vector[j];\n }\n }",
"{\n for (int j = 0; j < matrix[i].length; j++) {\n result[i] += matrix[i][j] * vector[j];\n }\n }",
"for (int j = 0; j < matrix[i].length; j++) {\n result[i] += matrix[i][j] * vector[j];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < matrix[i].length",
"j",
"matrix[i].length",
"matrix[i]",
"matrix",
"i",
"matrix[i].length",
"j++",
"j++",
"j",
"{\n result[i] += matrix[i][j] * vector[j];\n }",
"{\n result[i] += matrix[i][j] * vector[j];\n }",
"result[i] += matrix[i][j] * vector[j]",
"result[i]",
"result",
"i",
"matrix[i][j] * vector[j]",
"matrix[i][j]",
"matrix[i]",
"matrix",
"i",
"j",
"vector[j]",
"vector",
"j",
"return result;",
"result",
"int[][] matrix",
"matrix",
"int[] vector",
"vector",
"private static String readAll(InputStream is) {\n InputStreamReader r = null;\n BufferedReader br = null;\n\n try {\n r = new InputStreamReader(is);\n br = new BufferedReader(r);\n StringBuilder sb = new StringBuilder();\n String s;\n\n while ((s = br.readLine()) != null) {\n sb.append(s).append('\\n');\n }\n\n return sb.toString();\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n }\n }\n if (r != null) {\n try {\n r.close();\n } catch (IOException e) {\n }\n }\n }\n }",
"readAll",
"{\n InputStreamReader r = null;\n BufferedReader br = null;\n\n try {\n r = new InputStreamReader(is);\n br = new BufferedReader(r);\n StringBuilder sb = new StringBuilder();\n String s;\n\n while ((s = br.readLine()) != null) {\n sb.append(s).append('\\n');\n }\n\n return sb.toString();\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n }\n }\n if (r != null) {\n try {\n r.close();\n } catch (IOException e) {\n }\n }\n }\n }",
"InputStreamReader r = null;",
"r",
"null",
"BufferedReader br = null;",
"br",
"null",
"try {\n r = new InputStreamReader(is);\n br = new BufferedReader(r);\n StringBuilder sb = new StringBuilder();\n String s;\n\n while ((s = br.readLine()) != null) {\n sb.append(s).append('\\n');\n }\n\n return sb.toString();\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n }\n }\n if (r != null) {\n try {\n r.close();\n } catch (IOException e) {\n }\n }\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n }\n }\n if (r != null) {\n try {\n r.close();\n } catch (IOException e) {\n }\n }\n }",
"if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n }\n }",
"br != null",
"br",
"null",
"{\n try {\n br.close();\n } catch (IOException e) {\n }\n }",
"try {\n br.close();\n } catch (IOException e) {\n }",
"catch (IOException e) {\n }",
"IOException e",
"{\n }",
"{\n br.close();\n }",
"br.close()",
"br.close",
"br",
"if (r != null) {\n try {\n r.close();\n } catch (IOException e) {\n }\n }",
"r != null",
"r",
"null",
"{\n try {\n r.close();\n } catch (IOException e) {\n }\n }",
"try {\n r.close();\n } catch (IOException e) {\n }",
"catch (IOException e) {\n }",
"IOException e",
"{\n }",
"{\n r.close();\n }",
"r.close()",
"r.close",
"r",
"{\n r = new InputStreamReader(is);\n br = new BufferedReader(r);\n StringBuilder sb = new StringBuilder();\n String s;\n\n while ((s = br.readLine()) != null) {\n sb.append(s).append('\\n');\n }\n\n return sb.toString();\n }",
"r = new InputStreamReader(is)",
"r",
"new InputStreamReader(is)",
"br = new BufferedReader(r)",
"br",
"new BufferedReader(r)",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"String s;",
"s",
"while ((s = br.readLine()) != null) {\n sb.append(s).append('\\n');\n }",
"(s = br.readLine()) != null",
"(s = br.readLine())",
"s",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n sb.append(s).append('\\n');\n }",
"sb.append(s).append('\\n')",
"sb.append(s).append",
"sb.append(s)",
"sb.append",
"sb",
"s",
"'\\n'",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"InputStream is",
"is",
"private static String[] splitForLines(String lines) {\n return lines.split(\"\\\\n\");\n }",
"splitForLines",
"{\n return lines.split(\"\\\\n\");\n }",
"return lines.split(\"\\\\n\");",
"lines.split(\"\\\\n\")",
"lines.split",
"lines",
"\"\\\\n\"",
"String lines",
"lines",
"private static int[] split(String s) {\n final String[] s0 = s.split(\" \");\n int[] ia = new int[s0.length];\n\n for (int i = 0; i < s0.length; i++) {\n ia[i] = Integer.parseInt(s0[i]);\n }\n\n return ia;\n }",
"split",
"{\n final String[] s0 = s.split(\" \");\n int[] ia = new int[s0.length];\n\n for (int i = 0; i < s0.length; i++) {\n ia[i] = Integer.parseInt(s0[i]);\n }\n\n return ia;\n }",
"final String[] s0 = s.split(\" \");",
"s0",
"s.split(\" \")",
"s.split",
"s",
"\" \"",
"int[] ia = new int[s0.length];",
"ia",
"new int[s0.length]",
"s0.length",
"s0",
"s0.length",
"for (int i = 0; i < s0.length; i++) {\n ia[i] = Integer.parseInt(s0[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s0.length",
"i",
"s0.length",
"s0",
"s0.length",
"i++",
"i++",
"i",
"{\n ia[i] = Integer.parseInt(s0[i]);\n }",
"{\n ia[i] = Integer.parseInt(s0[i]);\n }",
"ia[i] = Integer.parseInt(s0[i])",
"ia[i]",
"ia",
"i",
"Integer.parseInt(s0[i])",
"Integer.parseInt",
"Integer",
"s0[i]",
"s0",
"i",
"return ia;",
"ia",
"String s",
"s",
"public static void main(String[] args) {\n System.out.print(process(readAll(System.in)));\n }",
"main",
"{\n System.out.print(process(readAll(System.in)));\n }",
"System.out.print(process(readAll(System.in)))",
"System.out.print",
"System.out",
"System",
"System.out",
"process(readAll(System.in))",
"process",
"readAll(System.in)",
"readAll",
"System.in",
"System",
"System.in",
"String[] args",
"args",
"public class Main {\n\n protected static String process(String data) {\n StringBuilder sb = new StringBuilder();\n final String[] lines = splitForLines(data);\n\n final int[] split = split(lines[0]);\n final int rows = split[0];\n final int columns = split[1];\n\n final int[][] matrix = new int[rows][columns];\n final String[] matrixLines = Arrays.copyOfRange(lines, 1, 1 + rows);\n for (int i = 0; i < matrixLines.length; i++) {\n final int[] array = split(matrixLines[i]);\n\n// for (int j = 0; j < array.length; j++) {\n// matrix[i][j] = array[j];\n// }\n System.arraycopy(array, 0, matrix[i], 0, array.length);\n }\n\n final int[] vector = new int[columns];\n final String[] vectorLines = Arrays.copyOfRange(lines, 1 + rows, lines.length);\n for (int i = 0; i < vectorLines.length; i++) {\n vector[i] = Integer.parseInt(vectorLines[i]);\n }\n\n final int[] result = multiply(matrix, vector);\n\n for (int i : result) {\n sb.append(i).append('\\n');\n }\n\n return sb.toString();\n }\n\n static int[] multiply(int[][] matrix, int[] vector) {\n int[] result = new int[matrix.length];\n\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[i].length; j++) {\n result[i] += matrix[i][j] * vector[j];\n }\n }\n\n return result;\n }\n\n private static String readAll(InputStream is) {\n InputStreamReader r = null;\n BufferedReader br = null;\n\n try {\n r = new InputStreamReader(is);\n br = new BufferedReader(r);\n StringBuilder sb = new StringBuilder();\n String s;\n\n while ((s = br.readLine()) != null) {\n sb.append(s).append('\\n');\n }\n\n return sb.toString();\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n }\n }\n if (r != null) {\n try {\n r.close();\n } catch (IOException e) {\n }\n }\n }\n }\n\n private static String[] splitForLines(String lines) {\n return lines.split(\"\\\\n\");\n }\n\n private static int[] split(String s) {\n final String[] s0 = s.split(\" \");\n int[] ia = new int[s0.length];\n\n for (int i = 0; i < s0.length; i++) {\n ia[i] = Integer.parseInt(s0[i]);\n }\n\n return ia;\n }\n\n public static void main(String[] args) {\n System.out.print(process(readAll(System.in)));\n }\n}",
"public class Main {\n\n protected static String process(String data) {\n StringBuilder sb = new StringBuilder();\n final String[] lines = splitForLines(data);\n\n final int[] split = split(lines[0]);\n final int rows = split[0];\n final int columns = split[1];\n\n final int[][] matrix = new int[rows][columns];\n final String[] matrixLines = Arrays.copyOfRange(lines, 1, 1 + rows);\n for (int i = 0; i < matrixLines.length; i++) {\n final int[] array = split(matrixLines[i]);\n\n// for (int j = 0; j < array.length; j++) {\n// matrix[i][j] = array[j];\n// }\n System.arraycopy(array, 0, matrix[i], 0, array.length);\n }\n\n final int[] vector = new int[columns];\n final String[] vectorLines = Arrays.copyOfRange(lines, 1 + rows, lines.length);\n for (int i = 0; i < vectorLines.length; i++) {\n vector[i] = Integer.parseInt(vectorLines[i]);\n }\n\n final int[] result = multiply(matrix, vector);\n\n for (int i : result) {\n sb.append(i).append('\\n');\n }\n\n return sb.toString();\n }\n\n static int[] multiply(int[][] matrix, int[] vector) {\n int[] result = new int[matrix.length];\n\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[i].length; j++) {\n result[i] += matrix[i][j] * vector[j];\n }\n }\n\n return result;\n }\n\n private static String readAll(InputStream is) {\n InputStreamReader r = null;\n BufferedReader br = null;\n\n try {\n r = new InputStreamReader(is);\n br = new BufferedReader(r);\n StringBuilder sb = new StringBuilder();\n String s;\n\n while ((s = br.readLine()) != null) {\n sb.append(s).append('\\n');\n }\n\n return sb.toString();\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n }\n }\n if (r != null) {\n try {\n r.close();\n } catch (IOException e) {\n }\n }\n }\n }\n\n private static String[] splitForLines(String lines) {\n return lines.split(\"\\\\n\");\n }\n\n private static int[] split(String s) {\n final String[] s0 = s.split(\" \");\n int[] ia = new int[s0.length];\n\n for (int i = 0; i < s0.length; i++) {\n ia[i] = Integer.parseInt(s0[i]);\n }\n\n return ia;\n }\n\n public static void main(String[] args) {\n System.out.print(process(readAll(System.in)));\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Main {
protected static String process(String data) {
StringBuilder sb = new StringBuilder();
final String[] lines = splitForLines(data);
final int[] split = split(lines[0]);
final int rows = split[0];
final int columns = split[1];
final int[][] matrix = new int[rows][columns];
final String[] matrixLines = Arrays.copyOfRange(lines, 1, 1 + rows);
for (int i = 0; i < matrixLines.length; i++) {
final int[] array = split(matrixLines[i]);
// for (int j = 0; j < array.length; j++) {
// matrix[i][j] = array[j];
// }
System.arraycopy(array, 0, matrix[i], 0, array.length);
}
final int[] vector = new int[columns];
final String[] vectorLines = Arrays.copyOfRange(lines, 1 + rows, lines.length);
for (int i = 0; i < vectorLines.length; i++) {
vector[i] = Integer.parseInt(vectorLines[i]);
}
final int[] result = multiply(matrix, vector);
for (int i : result) {
sb.append(i).append('\n');
}
return sb.toString();
}
static int[] multiply(int[][] matrix, int[] vector) {
int[] result = new int[matrix.length];
for (int i = 0; i < matrix.length; i++) {
for (int j = 0; j < matrix[i].length; j++) {
result[i] += matrix[i][j] * vector[j];
}
}
return result;
}
private static String readAll(InputStream is) {
InputStreamReader r = null;
BufferedReader br = null;
try {
r = new InputStreamReader(is);
br = new BufferedReader(r);
StringBuilder sb = new StringBuilder();
String s;
while ((s = br.readLine()) != null) {
sb.append(s).append('\n');
}
return sb.toString();
} catch (IOException e) {
throw new RuntimeException(e);
} finally {
if (br != null) {
try {
br.close();
} catch (IOException e) {
}
}
if (r != null) {
try {
r.close();
} catch (IOException e) {
}
}
}
}
private static String[] splitForLines(String lines) {
return lines.split("\\n");
}
private static int[] split(String s) {
final String[] s0 = s.split(" ");
int[] ia = new int[s0.length];
for (int i = 0; i < s0.length; i++) {
ia[i] = Integer.parseInt(s0[i]);
}
return ia;
}
public static void main(String[] args) {
System.out.print(process(readAll(System.in)));
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
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,
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
],
[
44,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
8,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
65,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
82,
83
],
[
8,
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
],
[
97,
99
],
[
96,
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
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
115,
121
],
[
121,
122
],
[
121,
123
],
[
96,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
6,
130
],
[
130,
131
]
] | [
"import java.util.Scanner;\n\nclass 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\t\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}\n\t\t\n\t\tfor (int i = 0; i < m; i++)\n\t\t\tb[i] = scanner.nextInt();\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\t}\n\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"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\t\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}\n\t\t\n\t\tfor (int i = 0; i < m; i++)\n\t\t\tb[i] = scanner.nextInt();\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\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\t\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}\n\t\t\n\t\tfor (int i = 0; i < m; i++)\n\t\t\tb[i] = scanner.nextInt();\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\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\t\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}\n\t\t\n\t\tfor (int i = 0; i < m; i++)\n\t\t\tb[i] = scanner.nextInt();\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\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[][] 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}",
"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}",
"{\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\ta[i][j] = scanner.nextInt();\n\t\t}",
"for (int j = 0; j < m; j++)\n\t\t\t\ta[i][j] = scanner.nextInt();",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"a[i][j] = scanner.nextInt();",
"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();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"b[i] = scanner.nextInt();",
"b[i] = scanner.nextInt()",
"b[i]",
"b",
"i",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"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",
"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();
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 c = 0;
for (int j = 0; j < m; j++) {
c += (a[i][j] * b[j]);
}
System.out.println(c);
}
}
}
|
[
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,
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,
13,
17,
4,
18,
13,
41,
13,
4,
13,
13,
13,
13,
13,
28,
13,
13,
30,
30,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
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,
18,
13,
13,
13,
18,
18,
13,
13,
17,
0,
18,
18,
13,
13,
17,
13,
29,
13,
23,
13,
23,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
183,
5
],
[
183,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
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
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
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
],
[
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
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
80,
86
],
[
86,
87
],
[
87,
88
],
[
8,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
91,
93
],
[
91,
94
],
[
91,
95
],
[
91,
96
],
[
8,
97
],
[
97,
98
],
[
97,
99
],
[
97,
100
],
[
101,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
102,
105
],
[
106,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
6,
113
],
[
113,
114
],
[
183,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
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
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
135,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
165,
171
],
[
117,
172
],
[
172,
173
],
[
115,
174
],
[
174,
175
],
[
115,
176
],
[
176,
177
],
[
115,
178
],
[
178,
179
],
[
115,
180
],
[
180,
181
],
[
0,
182
],
[
182,
183
],
[
182,
184
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner inp = new Scanner(System.in);\n int rows = inp.nextInt();\n int cols = inp.nextInt();\n\n int aMatrix[][] = new int[rows][cols];\n int bMatrix[][] = new int[cols][1];\n\n\n for (int k = 0; k < rows; k++) {\n for (int j = 0; j < cols; j++) {\n aMatrix[k][j] = inp.nextInt();\n }\n }\n\n for (int j = 0; j < cols; j++) {\n bMatrix[j][0] = inp.nextInt();\n }\n\n int total[][] = matrixCalc(aMatrix, bMatrix, rows, cols);\n for (int[] item : total) {\n for (int secondItem : item) {\n System.out.println(secondItem);\n }\n }\n }\n\n public static int[][] matrixCalc(int[][] aMatrix, int[][] bMatrix, int rows, int cols) {\n int totals[][] = new int[rows][1];\n for (int k = 0; k < rows; k++) {\n int total = 0;\n for (int j = 0; j < cols; j++) {\n total += aMatrix[k][j] * bMatrix[j][0];\n }\n\n totals[k][0] = total;\n }\n\n return totals;\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner inp = new Scanner(System.in);\n int rows = inp.nextInt();\n int cols = inp.nextInt();\n\n int aMatrix[][] = new int[rows][cols];\n int bMatrix[][] = new int[cols][1];\n\n\n for (int k = 0; k < rows; k++) {\n for (int j = 0; j < cols; j++) {\n aMatrix[k][j] = inp.nextInt();\n }\n }\n\n for (int j = 0; j < cols; j++) {\n bMatrix[j][0] = inp.nextInt();\n }\n\n int total[][] = matrixCalc(aMatrix, bMatrix, rows, cols);\n for (int[] item : total) {\n for (int secondItem : item) {\n System.out.println(secondItem);\n }\n }\n }\n\n public static int[][] matrixCalc(int[][] aMatrix, int[][] bMatrix, int rows, int cols) {\n int totals[][] = new int[rows][1];\n for (int k = 0; k < rows; k++) {\n int total = 0;\n for (int j = 0; j < cols; j++) {\n total += aMatrix[k][j] * bMatrix[j][0];\n }\n\n totals[k][0] = total;\n }\n\n return totals;\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner inp = new Scanner(System.in);\n int rows = inp.nextInt();\n int cols = inp.nextInt();\n\n int aMatrix[][] = new int[rows][cols];\n int bMatrix[][] = new int[cols][1];\n\n\n for (int k = 0; k < rows; k++) {\n for (int j = 0; j < cols; j++) {\n aMatrix[k][j] = inp.nextInt();\n }\n }\n\n for (int j = 0; j < cols; j++) {\n bMatrix[j][0] = inp.nextInt();\n }\n\n int total[][] = matrixCalc(aMatrix, bMatrix, rows, cols);\n for (int[] item : total) {\n for (int secondItem : item) {\n System.out.println(secondItem);\n }\n }\n }",
"main",
"{\n Scanner inp = new Scanner(System.in);\n int rows = inp.nextInt();\n int cols = inp.nextInt();\n\n int aMatrix[][] = new int[rows][cols];\n int bMatrix[][] = new int[cols][1];\n\n\n for (int k = 0; k < rows; k++) {\n for (int j = 0; j < cols; j++) {\n aMatrix[k][j] = inp.nextInt();\n }\n }\n\n for (int j = 0; j < cols; j++) {\n bMatrix[j][0] = inp.nextInt();\n }\n\n int total[][] = matrixCalc(aMatrix, bMatrix, rows, cols);\n for (int[] item : total) {\n for (int secondItem : item) {\n System.out.println(secondItem);\n }\n }\n }",
"Scanner inp = new Scanner(System.in);",
"inp",
"new Scanner(System.in)",
"int rows = inp.nextInt();",
"rows",
"inp.nextInt()",
"inp.nextInt",
"inp",
"int cols = inp.nextInt();",
"cols",
"inp.nextInt()",
"inp.nextInt",
"inp",
"int aMatrix[][] = new int[rows][cols];",
"aMatrix",
"new int[rows][cols]",
"rows",
"cols",
"int bMatrix[][] = new int[cols][1];",
"bMatrix",
"new int[cols][1]",
"cols",
"1",
"for (int k = 0; k < rows; k++) {\n for (int j = 0; j < cols; j++) {\n aMatrix[k][j] = inp.nextInt();\n }\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < rows",
"k",
"rows",
"k++",
"k++",
"k",
"{\n for (int j = 0; j < cols; j++) {\n aMatrix[k][j] = inp.nextInt();\n }\n }",
"{\n for (int j = 0; j < cols; j++) {\n aMatrix[k][j] = inp.nextInt();\n }\n }",
"for (int j = 0; j < cols; j++) {\n aMatrix[k][j] = inp.nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < cols",
"j",
"cols",
"j++",
"j++",
"j",
"{\n aMatrix[k][j] = inp.nextInt();\n }",
"{\n aMatrix[k][j] = inp.nextInt();\n }",
"aMatrix[k][j] = inp.nextInt()",
"aMatrix[k][j]",
"aMatrix[k]",
"aMatrix",
"k",
"j",
"inp.nextInt()",
"inp.nextInt",
"inp",
"for (int j = 0; j < cols; j++) {\n bMatrix[j][0] = inp.nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < cols",
"j",
"cols",
"j++",
"j++",
"j",
"{\n bMatrix[j][0] = inp.nextInt();\n }",
"{\n bMatrix[j][0] = inp.nextInt();\n }",
"bMatrix[j][0] = inp.nextInt()",
"bMatrix[j][0]",
"bMatrix[j]",
"bMatrix",
"j",
"0",
"inp.nextInt()",
"inp.nextInt",
"inp",
"int total[][] = matrixCalc(aMatrix, bMatrix, rows, cols);",
"total",
"matrixCalc(aMatrix, bMatrix, rows, cols)",
"matrixCalc",
"aMatrix",
"bMatrix",
"rows",
"cols",
"for (int[] item : total) {\n for (int secondItem : item) {\n System.out.println(secondItem);\n }\n }",
"int[] item",
"total",
"{\n for (int secondItem : item) {\n System.out.println(secondItem);\n }\n }",
"{\n for (int secondItem : item) {\n System.out.println(secondItem);\n }\n }",
"for (int secondItem : item) {\n System.out.println(secondItem);\n }",
"int secondItem",
"item",
"{\n System.out.println(secondItem);\n }",
"{\n System.out.println(secondItem);\n }",
"System.out.println(secondItem)",
"System.out.println",
"System.out",
"System",
"System.out",
"secondItem",
"String[] args",
"args",
"public static int[][] matrixCalc(int[][] aMatrix, int[][] bMatrix, int rows, int cols) {\n int totals[][] = new int[rows][1];\n for (int k = 0; k < rows; k++) {\n int total = 0;\n for (int j = 0; j < cols; j++) {\n total += aMatrix[k][j] * bMatrix[j][0];\n }\n\n totals[k][0] = total;\n }\n\n return totals;\n }",
"matrixCalc",
"{\n int totals[][] = new int[rows][1];\n for (int k = 0; k < rows; k++) {\n int total = 0;\n for (int j = 0; j < cols; j++) {\n total += aMatrix[k][j] * bMatrix[j][0];\n }\n\n totals[k][0] = total;\n }\n\n return totals;\n }",
"int totals[][] = new int[rows][1];",
"totals",
"new int[rows][1]",
"rows",
"1",
"for (int k = 0; k < rows; k++) {\n int total = 0;\n for (int j = 0; j < cols; j++) {\n total += aMatrix[k][j] * bMatrix[j][0];\n }\n\n totals[k][0] = total;\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < rows",
"k",
"rows",
"k++",
"k++",
"k",
"{\n int total = 0;\n for (int j = 0; j < cols; j++) {\n total += aMatrix[k][j] * bMatrix[j][0];\n }\n\n totals[k][0] = total;\n }",
"{\n int total = 0;\n for (int j = 0; j < cols; j++) {\n total += aMatrix[k][j] * bMatrix[j][0];\n }\n\n totals[k][0] = total;\n }",
"int total = 0;",
"total",
"0",
"for (int j = 0; j < cols; j++) {\n total += aMatrix[k][j] * bMatrix[j][0];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < cols",
"j",
"cols",
"j++",
"j++",
"j",
"{\n total += aMatrix[k][j] * bMatrix[j][0];\n }",
"{\n total += aMatrix[k][j] * bMatrix[j][0];\n }",
"total += aMatrix[k][j] * bMatrix[j][0]",
"total",
"aMatrix[k][j] * bMatrix[j][0]",
"aMatrix[k][j]",
"aMatrix[k]",
"aMatrix",
"k",
"j",
"bMatrix[j][0]",
"bMatrix[j]",
"bMatrix",
"j",
"0",
"totals[k][0] = total",
"totals[k][0]",
"totals[k]",
"totals",
"k",
"0",
"total",
"return totals;",
"totals",
"int[][] aMatrix",
"aMatrix",
"int[][] bMatrix",
"bMatrix",
"int rows",
"rows",
"int cols",
"cols",
"public class Main {\n public static void main(String[] args) {\n Scanner inp = new Scanner(System.in);\n int rows = inp.nextInt();\n int cols = inp.nextInt();\n\n int aMatrix[][] = new int[rows][cols];\n int bMatrix[][] = new int[cols][1];\n\n\n for (int k = 0; k < rows; k++) {\n for (int j = 0; j < cols; j++) {\n aMatrix[k][j] = inp.nextInt();\n }\n }\n\n for (int j = 0; j < cols; j++) {\n bMatrix[j][0] = inp.nextInt();\n }\n\n int total[][] = matrixCalc(aMatrix, bMatrix, rows, cols);\n for (int[] item : total) {\n for (int secondItem : item) {\n System.out.println(secondItem);\n }\n }\n }\n\n public static int[][] matrixCalc(int[][] aMatrix, int[][] bMatrix, int rows, int cols) {\n int totals[][] = new int[rows][1];\n for (int k = 0; k < rows; k++) {\n int total = 0;\n for (int j = 0; j < cols; j++) {\n total += aMatrix[k][j] * bMatrix[j][0];\n }\n\n totals[k][0] = total;\n }\n\n return totals;\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner inp = new Scanner(System.in);\n int rows = inp.nextInt();\n int cols = inp.nextInt();\n\n int aMatrix[][] = new int[rows][cols];\n int bMatrix[][] = new int[cols][1];\n\n\n for (int k = 0; k < rows; k++) {\n for (int j = 0; j < cols; j++) {\n aMatrix[k][j] = inp.nextInt();\n }\n }\n\n for (int j = 0; j < cols; j++) {\n bMatrix[j][0] = inp.nextInt();\n }\n\n int total[][] = matrixCalc(aMatrix, bMatrix, rows, cols);\n for (int[] item : total) {\n for (int secondItem : item) {\n System.out.println(secondItem);\n }\n }\n }\n\n public static int[][] matrixCalc(int[][] aMatrix, int[][] bMatrix, int rows, int cols) {\n int totals[][] = new int[rows][1];\n for (int k = 0; k < rows; k++) {\n int total = 0;\n for (int j = 0; j < cols; j++) {\n total += aMatrix[k][j] * bMatrix[j][0];\n }\n\n totals[k][0] = total;\n }\n\n return totals;\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner inp = new Scanner(System.in);
int rows = inp.nextInt();
int cols = inp.nextInt();
int aMatrix[][] = new int[rows][cols];
int bMatrix[][] = new int[cols][1];
for (int k = 0; k < rows; k++) {
for (int j = 0; j < cols; j++) {
aMatrix[k][j] = inp.nextInt();
}
}
for (int j = 0; j < cols; j++) {
bMatrix[j][0] = inp.nextInt();
}
int total[][] = matrixCalc(aMatrix, bMatrix, rows, cols);
for (int[] item : total) {
for (int secondItem : item) {
System.out.println(secondItem);
}
}
}
public static int[][] matrixCalc(int[][] aMatrix, int[][] bMatrix, int rows, int cols) {
int totals[][] = new int[rows][1];
for (int k = 0; k < rows; k++) {
int total = 0;
for (int j = 0; j < cols; j++) {
total += aMatrix[k][j] * bMatrix[j][0];
}
totals[k][0] = total;
}
return totals;
}
}
|
[
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,
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
] | [
[
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
],
[
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
],
[
89,
91
],
[
11,
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
],
[
11,
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
],
[
9,
153
],
[
153,
154
]
] | [
"import java.util.*;\nimport java.text.*;\n\nclass Main {\n public static void main(String[]args)throws Exception {\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 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 int [] x = new int[n];\n for(int i = 0; i < n; i++) {\n for(int j = 0; j < m; j++) {\n x[i] += a[i][j]*b[j];\n }\n }\n for(int i = 0; i < n; i++) {\n System.out.println(x[i]);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.text.*;",
"text.*",
"java",
"class Main {\n public static void main(String[]args)throws Exception {\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 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 int [] x = new int[n];\n for(int i = 0; i < n; i++) {\n for(int j = 0; j < m; j++) {\n x[i] += a[i][j]*b[j];\n }\n }\n for(int i = 0; i < n; i++) {\n System.out.println(x[i]);\n }\n }\n}",
"Main",
"public static void main(String[]args)throws Exception {\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 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 int [] x = new int[n];\n for(int i = 0; i < n; i++) {\n for(int j = 0; j < m; j++) {\n x[i] += a[i][j]*b[j];\n }\n }\n for(int i = 0; i < n; i++) {\n System.out.println(x[i]);\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 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 int [] x = new int[n];\n for(int i = 0; i < n; i++) {\n for(int j = 0; j < m; j++) {\n x[i] += a[i][j]*b[j];\n }\n }\n for(int i = 0; i < n; i++) {\n System.out.println(x[i]);\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",
"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",
"int [] x = new int[n];",
"x",
"new int[n]",
"n",
"for(int i = 0; i < n; i++) {\n for(int j = 0; j < m; j++) {\n x[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 x[i] += a[i][j]*b[j];\n }\n }",
"{\n for(int j = 0; j < m; j++) {\n x[i] += a[i][j]*b[j];\n }\n }",
"for(int j = 0; j < m; j++) {\n x[i] += a[i][j]*b[j];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n x[i] += a[i][j]*b[j];\n }",
"{\n x[i] += a[i][j]*b[j];\n }",
"x[i] += a[i][j]*b[j]",
"x[i]",
"x",
"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(x[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n System.out.println(x[i]);\n }",
"{\n System.out.println(x[i]);\n }",
"System.out.println(x[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"x[i]",
"x",
"i",
"String[]args",
"args"
] | import java.util.*;
import java.text.*;
class Main {
public static void main(String[]args)throws Exception {
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();
}
int [] x = new int[n];
for(int i = 0; i < n; i++) {
for(int j = 0; j < m; j++) {
x[i] += a[i][j]*b[j];
}
}
for(int i = 0; i < n; i++) {
System.out.println(x[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,
41,
13,
41,
13,
41,
13,
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,
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
],
[
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
],
[
8,
88
],
[
88,
89
],
[
8,
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
],
[
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
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
125,
131
],
[
131,
132
],
[
131,
133
],
[
104,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
6,
140
],
[
140,
141
]
] | [
"//bๆฃf้ใฎr็ช็ฎใฎ้จๅฑใซvไบบใ่ฟฝๅ ใงๅ
ฅๅฑ
ใใใใจใ็คบใใพใใvใ่ฒ ใฎๅคใฎๅ ดๅใvไบบ้ๅปใใใใจใ็คบใใพใใ \n\nimport java.util.Scanner;\n\nclass Main {\n public static void main(String [] args){\n \tScanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n \n \n \n int[][] A = new int[n][m];\n \n int[] b = new int[m];\n \n //Aใฎ้
ๅใซforใจscannerไฝฟใฃใฆไปฃๅ
ฅ\n for(int i = 0 ; i < n ; i++ ){\n \tfor(int j = 0 ; j < m ; j++ ){\n \t\tA[i][j] = sc.nextInt();\n \t}\n }\n \n //bใฎ้
ๅใซforใจscannerไฝฟใฃใฆไปฃๅ
ฅ\n for(int k = 0 ; k < m ; k++ ){\n \tb[k] = sc.nextInt();\n }\n \n //่จ็ฎไฝๆฅญ\n \n int x,y;\n int sum;\n \n for( x = 0 ; x < n ; x++ ){\n \tsum = 0;\n \tfor(y = 0 ; y < m ; y++ ){\n \t\t\n \t\t\n \t\tsum = sum + A[x][y] * b[y];\n \t\t\n \t}\n System.out.println(sum);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String [] args){\n \tScanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n \n \n \n int[][] A = new int[n][m];\n \n int[] b = new int[m];\n \n //Aใฎ้
ๅใซforใจscannerไฝฟใฃใฆไปฃๅ
ฅ\n for(int i = 0 ; i < n ; i++ ){\n \tfor(int j = 0 ; j < m ; j++ ){\n \t\tA[i][j] = sc.nextInt();\n \t}\n }\n \n //bใฎ้
ๅใซforใจscannerไฝฟใฃใฆไปฃๅ
ฅ\n for(int k = 0 ; k < m ; k++ ){\n \tb[k] = sc.nextInt();\n }\n \n //่จ็ฎไฝๆฅญ\n \n int x,y;\n int sum;\n \n for( x = 0 ; x < n ; x++ ){\n \tsum = 0;\n \tfor(y = 0 ; y < m ; y++ ){\n \t\t\n \t\t\n \t\tsum = sum + A[x][y] * b[y];\n \t\t\n \t}\n System.out.println(sum);\n }\n }\n}",
"Main",
"public static void main(String [] args){\n \tScanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n \n \n \n int[][] A = new int[n][m];\n \n int[] b = new int[m];\n \n //Aใฎ้
ๅใซforใจscannerไฝฟใฃใฆไปฃๅ
ฅ\n for(int i = 0 ; i < n ; i++ ){\n \tfor(int j = 0 ; j < m ; j++ ){\n \t\tA[i][j] = sc.nextInt();\n \t}\n }\n \n //bใฎ้
ๅใซforใจscannerไฝฟใฃใฆไปฃๅ
ฅ\n for(int k = 0 ; k < m ; k++ ){\n \tb[k] = sc.nextInt();\n }\n \n //่จ็ฎไฝๆฅญ\n \n int x,y;\n int sum;\n \n for( x = 0 ; x < n ; x++ ){\n \tsum = 0;\n \tfor(y = 0 ; y < m ; y++ ){\n \t\t\n \t\t\n \t\tsum = sum + A[x][y] * b[y];\n \t\t\n \t}\n System.out.println(sum);\n }\n }",
"main",
"{\n \tScanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n \n \n \n int[][] A = new int[n][m];\n \n int[] b = new int[m];\n \n //Aใฎ้
ๅใซforใจscannerไฝฟใฃใฆไปฃๅ
ฅ\n for(int i = 0 ; i < n ; i++ ){\n \tfor(int j = 0 ; j < m ; j++ ){\n \t\tA[i][j] = sc.nextInt();\n \t}\n }\n \n //bใฎ้
ๅใซforใจscannerไฝฟใฃใฆไปฃๅ
ฅ\n for(int k = 0 ; k < m ; k++ ){\n \tb[k] = sc.nextInt();\n }\n \n //่จ็ฎไฝๆฅญ\n \n int x,y;\n int sum;\n \n for( x = 0 ; x < n ; x++ ){\n \tsum = 0;\n \tfor(y = 0 ; y < m ; y++ ){\n \t\t\n \t\t\n \t\tsum = sum + A[x][y] * b[y];\n \t\t\n \t}\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[][] 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 j = 0 ; j < m ; j++ ){\n \t\tA[i][j] = sc.nextInt();\n \t}\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 \t\tA[i][j] = sc.nextInt();\n \t}\n }",
"{\n \tfor(int j = 0 ; j < m ; j++ ){\n \t\tA[i][j] = sc.nextInt();\n \t}\n }",
"for(int j = 0 ; j < m ; j++ ){\n \t\tA[i][j] = sc.nextInt();\n \t}",
"int j = 0 ;",
"int j = 0 ;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n \t\tA[i][j] = sc.nextInt();\n \t}",
"{\n \t\tA[i][j] = sc.nextInt();\n \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 \tb[k] = sc.nextInt();\n }",
"int k = 0 ;",
"int k = 0 ;",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"{\n \tb[k] = sc.nextInt();\n }",
"{\n \tb[k] = sc.nextInt();\n }",
"b[k] = sc.nextInt()",
"b[k]",
"b",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x",
"x",
"y;",
"y",
"int sum;",
"sum",
"for( x = 0 ; x < n ; x++ ){\n \tsum = 0;\n \tfor(y = 0 ; y < m ; y++ ){\n \t\t\n \t\t\n \t\tsum = sum + A[x][y] * b[y];\n \t\t\n \t}\n System.out.println(sum);\n }",
"x = 0 ;",
"x = 0",
"x",
"0",
"x < n",
"x",
"n",
"x++",
"x++",
"x",
"{\n \tsum = 0;\n \tfor(y = 0 ; y < m ; y++ ){\n \t\t\n \t\t\n \t\tsum = sum + A[x][y] * b[y];\n \t\t\n \t}\n System.out.println(sum);\n }",
"{\n \tsum = 0;\n \tfor(y = 0 ; y < m ; y++ ){\n \t\t\n \t\t\n \t\tsum = sum + A[x][y] * b[y];\n \t\t\n \t}\n System.out.println(sum);\n }",
"sum = 0",
"sum",
"0",
"for(y = 0 ; y < m ; y++ ){\n \t\t\n \t\t\n \t\tsum = sum + A[x][y] * b[y];\n \t\t\n \t}",
"y = 0 ;",
"y = 0",
"y",
"0",
"y < m",
"y",
"m",
"y++",
"y++",
"y",
"{\n \t\t\n \t\t\n \t\tsum = sum + A[x][y] * b[y];\n \t\t\n \t}",
"{\n \t\t\n \t\t\n \t\tsum = sum + A[x][y] * b[y];\n \t\t\n \t}",
"sum = sum + A[x][y] * b[y]",
"sum",
"sum + A[x][y] * b[y]",
"sum",
"A[x][y] * b[y]",
"A[x][y]",
"A[x]",
"A",
"x",
"y",
"b[y]",
"b",
"y",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String [] args",
"args"
] | //bๆฃf้ใฎr็ช็ฎใฎ้จๅฑใซvไบบใ่ฟฝๅ ใงๅ
ฅๅฑ
ใใใใจใ็คบใใพใใvใ่ฒ ใฎๅคใฎๅ ดๅใvไบบ้ๅปใใใใจใ็คบใใพใใ
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];
//Aใฎ้
ๅใซforใจscannerไฝฟใฃใฆไปฃๅ
ฅ
for(int i = 0 ; i < n ; i++ ){
for(int j = 0 ; j < m ; j++ ){
A[i][j] = sc.nextInt();
}
}
//bใฎ้
ๅใซforใจscannerไฝฟใฃใฆไปฃๅ
ฅ
for(int k = 0 ; k < m ; k++ ){
b[k] = sc.nextInt();
}
//่จ็ฎไฝๆฅญ
int x,y;
int sum;
for( x = 0 ; x < n ; x++ ){
sum = 0;
for(y = 0 ; y < m ; y++ ){
sum = sum + A[x][y] * b[y];
}
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,
41,
13,
20,
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,
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
],
[
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
],
[
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
],
[
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
],
[
105,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
137,
138
],
[
137,
139
],
[
6,
140
],
[
140,
141
]
] | [
"import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int numRow = sc.nextInt();\n int numCol = sc.nextInt();\n int[][] mat = new int[numRow][numCol];\n int[] vecIn = new int[numCol];\n int[] vecOut = new int[numRow];\n int i, j;\n for (i = 0; i < numRow; i++) {\n for (j = 0; j < numCol; j++) {\n mat[i][j] = sc.nextInt();\n }\n }\n for (j = 0; j < numCol; j++) vecIn[j] = sc.nextInt();\n for (i = 0; i < numRow; i++) {\n for (j = 0; j < numCol; j++) {\n vecOut[i] += mat[i][j] * vecIn[j];\n }\n System.out.println(vecOut[i]);\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 numRow = sc.nextInt();\n int numCol = sc.nextInt();\n int[][] mat = new int[numRow][numCol];\n int[] vecIn = new int[numCol];\n int[] vecOut = new int[numRow];\n int i, j;\n for (i = 0; i < numRow; i++) {\n for (j = 0; j < numCol; j++) {\n mat[i][j] = sc.nextInt();\n }\n }\n for (j = 0; j < numCol; j++) vecIn[j] = sc.nextInt();\n for (i = 0; i < numRow; i++) {\n for (j = 0; j < numCol; j++) {\n vecOut[i] += mat[i][j] * vecIn[j];\n }\n System.out.println(vecOut[i]);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int numRow = sc.nextInt();\n int numCol = sc.nextInt();\n int[][] mat = new int[numRow][numCol];\n int[] vecIn = new int[numCol];\n int[] vecOut = new int[numRow];\n int i, j;\n for (i = 0; i < numRow; i++) {\n for (j = 0; j < numCol; j++) {\n mat[i][j] = sc.nextInt();\n }\n }\n for (j = 0; j < numCol; j++) vecIn[j] = sc.nextInt();\n for (i = 0; i < numRow; i++) {\n for (j = 0; j < numCol; j++) {\n vecOut[i] += mat[i][j] * vecIn[j];\n }\n System.out.println(vecOut[i]);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int numRow = sc.nextInt();\n int numCol = sc.nextInt();\n int[][] mat = new int[numRow][numCol];\n int[] vecIn = new int[numCol];\n int[] vecOut = new int[numRow];\n int i, j;\n for (i = 0; i < numRow; i++) {\n for (j = 0; j < numCol; j++) {\n mat[i][j] = sc.nextInt();\n }\n }\n for (j = 0; j < numCol; j++) vecIn[j] = sc.nextInt();\n for (i = 0; i < numRow; i++) {\n for (j = 0; j < numCol; j++) {\n vecOut[i] += mat[i][j] * vecIn[j];\n }\n System.out.println(vecOut[i]);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int numRow = sc.nextInt();",
"numRow",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int numCol = sc.nextInt();",
"numCol",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] mat = new int[numRow][numCol];",
"mat",
"new int[numRow][numCol]",
"numRow",
"numCol",
"int[] vecIn = new int[numCol];",
"vecIn",
"new int[numCol]",
"numCol",
"int[] vecOut = new int[numRow];",
"vecOut",
"new int[numRow]",
"numRow",
"int i",
"i",
"j;",
"j",
"for (i = 0; i < numRow; i++) {\n for (j = 0; j < numCol; j++) {\n mat[i][j] = sc.nextInt();\n }\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < numRow",
"i",
"numRow",
"i++",
"i++",
"i",
"{\n for (j = 0; j < numCol; j++) {\n mat[i][j] = sc.nextInt();\n }\n }",
"{\n for (j = 0; j < numCol; j++) {\n mat[i][j] = sc.nextInt();\n }\n }",
"for (j = 0; j < numCol; j++) {\n mat[i][j] = sc.nextInt();\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < numCol",
"j",
"numCol",
"j++",
"j++",
"j",
"{\n mat[i][j] = sc.nextInt();\n }",
"{\n mat[i][j] = sc.nextInt();\n }",
"mat[i][j] = sc.nextInt()",
"mat[i][j]",
"mat[i]",
"mat",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (j = 0; j < numCol; j++) vecIn[j] = sc.nextInt();",
"j = 0;",
"j = 0",
"j",
"0",
"j < numCol",
"j",
"numCol",
"j++",
"j++",
"j",
"vecIn[j] = sc.nextInt();",
"vecIn[j] = sc.nextInt()",
"vecIn[j]",
"vecIn",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (i = 0; i < numRow; i++) {\n for (j = 0; j < numCol; j++) {\n vecOut[i] += mat[i][j] * vecIn[j];\n }\n System.out.println(vecOut[i]);\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < numRow",
"i",
"numRow",
"i++",
"i++",
"i",
"{\n for (j = 0; j < numCol; j++) {\n vecOut[i] += mat[i][j] * vecIn[j];\n }\n System.out.println(vecOut[i]);\n }",
"{\n for (j = 0; j < numCol; j++) {\n vecOut[i] += mat[i][j] * vecIn[j];\n }\n System.out.println(vecOut[i]);\n }",
"for (j = 0; j < numCol; j++) {\n vecOut[i] += mat[i][j] * vecIn[j];\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < numCol",
"j",
"numCol",
"j++",
"j++",
"j",
"{\n vecOut[i] += mat[i][j] * vecIn[j];\n }",
"{\n vecOut[i] += mat[i][j] * vecIn[j];\n }",
"vecOut[i] += mat[i][j] * vecIn[j]",
"vecOut[i]",
"vecOut",
"i",
"mat[i][j] * vecIn[j]",
"mat[i][j]",
"mat[i]",
"mat",
"i",
"j",
"vecIn[j]",
"vecIn",
"j",
"System.out.println(vecOut[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"vecOut[i]",
"vecOut",
"i",
"String[] args",
"args"
] | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int numRow = sc.nextInt();
int numCol = sc.nextInt();
int[][] mat = new int[numRow][numCol];
int[] vecIn = new int[numCol];
int[] vecOut = new int[numRow];
int i, j;
for (i = 0; i < numRow; i++) {
for (j = 0; j < numCol; j++) {
mat[i][j] = sc.nextInt();
}
}
for (j = 0; j < numCol; j++) vecIn[j] = sc.nextInt();
for (i = 0; i < numRow; i++) {
for (j = 0; j < numCol; j++) {
vecOut[i] += mat[i][j] * vecIn[j];
}
System.out.println(vecOut[i]);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
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,
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,
13,
4,
18,
4,
18,
13,
17,
0,
18,
13,
13,
4,
18,
13,
18,
13,
17,
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
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
14,
19
],
[
19,
20
],
[
19,
21
],
[
14,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
24,
29
],
[
14,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
35,
36
],
[
35,
37
],
[
14,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
43,
45
],
[
14,
46
],
[
46,
47
],
[
46,
48
],
[
14,
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
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
66,
71
],
[
63,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
72,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
85,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
94,
96
],
[
14,
97
],
[
97,
98
],
[
97,
99
],
[
14,
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
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
116,
121
],
[
113,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
129,
130
],
[
129,
131
],
[
14,
132
],
[
132,
133
],
[
132,
134
],
[
14,
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
],
[
163,
165
],
[
162,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
166,
172
],
[
172,
173
],
[
172,
174
],
[
14,
175
],
[
175,
176
],
[
175,
177
],
[
175,
178
],
[
179,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
180,
185
],
[
12,
186
],
[
186,
187
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tint n,m;\n\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] inputline = stdIn.readLine().split(\" \");\n\n\n\t\tn = Integer.parseInt(inputline[0]);\n\t\tm = Integer.parseInt(inputline[1]);\n\n\t\tint[][] matrixA = new int[n][m];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tinputline = stdIn.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = Integer.parseInt(inputline[j]);\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\tinputline = stdIn.readLine().split(\" \");\n\t\t\tvectorB[i] = Integer.parseInt(inputline[0]);\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.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tint n,m;\n\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] inputline = stdIn.readLine().split(\" \");\n\n\n\t\tn = Integer.parseInt(inputline[0]);\n\t\tm = Integer.parseInt(inputline[1]);\n\n\t\tint[][] matrixA = new int[n][m];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tinputline = stdIn.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = Integer.parseInt(inputline[j]);\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\tinputline = stdIn.readLine().split(\" \");\n\t\t\tvectorB[i] = Integer.parseInt(inputline[0]);\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) throws IOException {\n\n\t\tint n,m;\n\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] inputline = stdIn.readLine().split(\" \");\n\n\n\t\tn = Integer.parseInt(inputline[0]);\n\t\tm = Integer.parseInt(inputline[1]);\n\n\t\tint[][] matrixA = new int[n][m];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tinputline = stdIn.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = Integer.parseInt(inputline[j]);\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\tinputline = stdIn.readLine().split(\" \");\n\t\t\tvectorB[i] = Integer.parseInt(inputline[0]);\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\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] inputline = stdIn.readLine().split(\" \");\n\n\n\t\tn = Integer.parseInt(inputline[0]);\n\t\tm = Integer.parseInt(inputline[1]);\n\n\t\tint[][] matrixA = new int[n][m];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tinputline = stdIn.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = Integer.parseInt(inputline[j]);\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\tinputline = stdIn.readLine().split(\" \");\n\t\t\tvectorB[i] = Integer.parseInt(inputline[0]);\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",
"BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));",
"stdIn",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] inputline = stdIn.readLine().split(\" \");",
"inputline",
"stdIn.readLine().split(\" \")",
"stdIn.readLine().split",
"stdIn.readLine()",
"stdIn.readLine",
"stdIn",
"\" \"",
"n = Integer.parseInt(inputline[0])",
"n",
"Integer.parseInt(inputline[0])",
"Integer.parseInt",
"Integer",
"inputline[0]",
"inputline",
"0",
"m = Integer.parseInt(inputline[1])",
"m",
"Integer.parseInt(inputline[1])",
"Integer.parseInt",
"Integer",
"inputline[1]",
"inputline",
"1",
"int[][] matrixA = new int[n][m];",
"matrixA",
"new int[n][m]",
"n",
"m",
"for(int i = 0; i < n; i++) {\n\t\t\tinputline = stdIn.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = Integer.parseInt(inputline[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\tinputline = stdIn.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = Integer.parseInt(inputline[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tinputline = stdIn.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = Integer.parseInt(inputline[j]);\n\t\t\t}\n\t\t}",
"inputline = stdIn.readLine().split(\" \")",
"inputline",
"stdIn.readLine().split(\" \")",
"stdIn.readLine().split",
"stdIn.readLine()",
"stdIn.readLine",
"stdIn",
"\" \"",
"for(int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = Integer.parseInt(inputline[j]);\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] = Integer.parseInt(inputline[j]);\n\t\t\t}",
"{\n\t\t\t\tmatrixA[i][j] = Integer.parseInt(inputline[j]);\n\t\t\t}",
"matrixA[i][j] = Integer.parseInt(inputline[j])",
"matrixA[i][j]",
"matrixA[i]",
"matrixA",
"i",
"j",
"Integer.parseInt(inputline[j])",
"Integer.parseInt",
"Integer",
"inputline[j]",
"inputline",
"j",
"int[] vectorB = new int[m];",
"vectorB",
"new int[m]",
"m",
"for(int i = 0; i < m; i++) {\n\t\t\tinputline = stdIn.readLine().split(\" \");\n\t\t\tvectorB[i] = Integer.parseInt(inputline[0]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tinputline = stdIn.readLine().split(\" \");\n\t\t\tvectorB[i] = Integer.parseInt(inputline[0]);\n\t\t}",
"{\n\t\t\tinputline = stdIn.readLine().split(\" \");\n\t\t\tvectorB[i] = Integer.parseInt(inputline[0]);\n\t\t}",
"inputline = stdIn.readLine().split(\" \")",
"inputline",
"stdIn.readLine().split(\" \")",
"stdIn.readLine().split",
"stdIn.readLine()",
"stdIn.readLine",
"stdIn",
"\" \"",
"vectorB[i] = Integer.parseInt(inputline[0])",
"vectorB[i]",
"vectorB",
"i",
"Integer.parseInt(inputline[0])",
"Integer.parseInt",
"Integer",
"inputline[0]",
"inputline",
"0",
"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.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
public static void main(String[] args) throws IOException {
int n,m;
BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
String[] inputline = stdIn.readLine().split(" ");
n = Integer.parseInt(inputline[0]);
m = Integer.parseInt(inputline[1]);
int[][] matrixA = new int[n][m];
for(int i = 0; i < n; i++) {
inputline = stdIn.readLine().split(" ");
for(int j = 0; j < m; j++) {
matrixA[i][j] = Integer.parseInt(inputline[j]);
}
}
int[] vectorB = new int[m];
for(int i = 0; i < m; i++) {
inputline = stdIn.readLine().split(" ");
vectorB[i] = Integer.parseInt(inputline[0]);
}
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,
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,
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
],
[
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
],
[
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\t\tint height=sc.nextInt();\n\t\tint wide=sc.nextInt();\n\t\tint[][] matrix=new int[height][wide];\n\t\tint[] vector=new int[wide];\n\n\t\t//ๅ
ฅๅ\n\t\tfor(int i=0;i<height;i++){\n\t\t\tfor(int j=0;j<wide;j++){\n\t\t\t\tmatrix[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<wide;i++){\n\t\t\tvector[i]=sc.nextInt();\n\t\t}\n\n\t\t//่จ็ฎ\n\t\tint[] ans_ary=new int[height];\n\t\tfor(int i=0;i<height;i++){\n\t\t\tfor(int j=0;j<wide;j++){\n\t\t\t\tans_ary[i]+=matrix[i][j]*vector[j];\n\t\t\t}\n\t\t}\n\n\t\t//ๅบๅ\n\t\tfor(int i=0;i<height;i++){\n\t\t\tSystem.out.println(ans_ary[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\t\tScanner sc=new Scanner(System.in);\n\t\tint height=sc.nextInt();\n\t\tint wide=sc.nextInt();\n\t\tint[][] matrix=new int[height][wide];\n\t\tint[] vector=new int[wide];\n\n\t\t//ๅ
ฅๅ\n\t\tfor(int i=0;i<height;i++){\n\t\t\tfor(int j=0;j<wide;j++){\n\t\t\t\tmatrix[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<wide;i++){\n\t\t\tvector[i]=sc.nextInt();\n\t\t}\n\n\t\t//่จ็ฎ\n\t\tint[] ans_ary=new int[height];\n\t\tfor(int i=0;i<height;i++){\n\t\t\tfor(int j=0;j<wide;j++){\n\t\t\t\tans_ary[i]+=matrix[i][j]*vector[j];\n\t\t\t}\n\t\t}\n\n\t\t//ๅบๅ\n\t\tfor(int i=0;i<height;i++){\n\t\t\tSystem.out.println(ans_ary[i]);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint height=sc.nextInt();\n\t\tint wide=sc.nextInt();\n\t\tint[][] matrix=new int[height][wide];\n\t\tint[] vector=new int[wide];\n\n\t\t//ๅ
ฅๅ\n\t\tfor(int i=0;i<height;i++){\n\t\t\tfor(int j=0;j<wide;j++){\n\t\t\t\tmatrix[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<wide;i++){\n\t\t\tvector[i]=sc.nextInt();\n\t\t}\n\n\t\t//่จ็ฎ\n\t\tint[] ans_ary=new int[height];\n\t\tfor(int i=0;i<height;i++){\n\t\t\tfor(int j=0;j<wide;j++){\n\t\t\t\tans_ary[i]+=matrix[i][j]*vector[j];\n\t\t\t}\n\t\t}\n\n\t\t//ๅบๅ\n\t\tfor(int i=0;i<height;i++){\n\t\t\tSystem.out.println(ans_ary[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint height=sc.nextInt();\n\t\tint wide=sc.nextInt();\n\t\tint[][] matrix=new int[height][wide];\n\t\tint[] vector=new int[wide];\n\n\t\t//ๅ
ฅๅ\n\t\tfor(int i=0;i<height;i++){\n\t\t\tfor(int j=0;j<wide;j++){\n\t\t\t\tmatrix[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<wide;i++){\n\t\t\tvector[i]=sc.nextInt();\n\t\t}\n\n\t\t//่จ็ฎ\n\t\tint[] ans_ary=new int[height];\n\t\tfor(int i=0;i<height;i++){\n\t\t\tfor(int j=0;j<wide;j++){\n\t\t\t\tans_ary[i]+=matrix[i][j]*vector[j];\n\t\t\t}\n\t\t}\n\n\t\t//ๅบๅ\n\t\tfor(int i=0;i<height;i++){\n\t\t\tSystem.out.println(ans_ary[i]);\n\t\t}\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int height=sc.nextInt();",
"height",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int wide=sc.nextInt();",
"wide",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] matrix=new int[height][wide];",
"matrix",
"new int[height][wide]",
"height",
"wide",
"int[] vector=new int[wide];",
"vector",
"new int[wide]",
"wide",
"for(int i=0;i<height;i++){\n\t\t\tfor(int j=0;j<wide;j++){\n\t\t\t\tmatrix[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<height",
"i",
"height",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<wide;j++){\n\t\t\t\tmatrix[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<wide;j++){\n\t\t\t\tmatrix[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int j=0;j<wide;j++){\n\t\t\t\tmatrix[i][j]=sc.nextInt();\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<wide",
"j",
"wide",
"j++",
"j++",
"j",
"{\n\t\t\t\tmatrix[i][j]=sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tmatrix[i][j]=sc.nextInt();\n\t\t\t}",
"matrix[i][j]=sc.nextInt()",
"matrix[i][j]",
"matrix[i]",
"matrix",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i<wide;i++){\n\t\t\tvector[i]=sc.nextInt();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<wide",
"i",
"wide",
"i++",
"i++",
"i",
"{\n\t\t\tvector[i]=sc.nextInt();\n\t\t}",
"{\n\t\t\tvector[i]=sc.nextInt();\n\t\t}",
"vector[i]=sc.nextInt()",
"vector[i]",
"vector",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] ans_ary=new int[height];",
"ans_ary",
"new int[height]",
"height",
"for(int i=0;i<height;i++){\n\t\t\tfor(int j=0;j<wide;j++){\n\t\t\t\tans_ary[i]+=matrix[i][j]*vector[j];\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<height",
"i",
"height",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<wide;j++){\n\t\t\t\tans_ary[i]+=matrix[i][j]*vector[j];\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<wide;j++){\n\t\t\t\tans_ary[i]+=matrix[i][j]*vector[j];\n\t\t\t}\n\t\t}",
"for(int j=0;j<wide;j++){\n\t\t\t\tans_ary[i]+=matrix[i][j]*vector[j];\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<wide",
"j",
"wide",
"j++",
"j++",
"j",
"{\n\t\t\t\tans_ary[i]+=matrix[i][j]*vector[j];\n\t\t\t}",
"{\n\t\t\t\tans_ary[i]+=matrix[i][j]*vector[j];\n\t\t\t}",
"ans_ary[i]+=matrix[i][j]*vector[j]",
"ans_ary[i]",
"ans_ary",
"i",
"matrix[i][j]*vector[j]",
"matrix[i][j]",
"matrix[i]",
"matrix",
"i",
"j",
"vector[j]",
"vector",
"j",
"for(int i=0;i<height;i++){\n\t\t\tSystem.out.println(ans_ary[i]);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<height",
"i",
"height",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(ans_ary[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(ans_ary[i]);\n\t\t}",
"System.out.println(ans_ary[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"ans_ary[i]",
"ans_ary",
"i",
"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 height=sc.nextInt();\n\t\tint wide=sc.nextInt();\n\t\tint[][] matrix=new int[height][wide];\n\t\tint[] vector=new int[wide];\n\n\t\t//ๅ
ฅๅ\n\t\tfor(int i=0;i<height;i++){\n\t\t\tfor(int j=0;j<wide;j++){\n\t\t\t\tmatrix[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<wide;i++){\n\t\t\tvector[i]=sc.nextInt();\n\t\t}\n\n\t\t//่จ็ฎ\n\t\tint[] ans_ary=new int[height];\n\t\tfor(int i=0;i<height;i++){\n\t\t\tfor(int j=0;j<wide;j++){\n\t\t\t\tans_ary[i]+=matrix[i][j]*vector[j];\n\t\t\t}\n\t\t}\n\n\t\t//ๅบๅ\n\t\tfor(int i=0;i<height;i++){\n\t\t\tSystem.out.println(ans_ary[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\t\tint height=sc.nextInt();\n\t\tint wide=sc.nextInt();\n\t\tint[][] matrix=new int[height][wide];\n\t\tint[] vector=new int[wide];\n\n\t\t//ๅ
ฅๅ\n\t\tfor(int i=0;i<height;i++){\n\t\t\tfor(int j=0;j<wide;j++){\n\t\t\t\tmatrix[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<wide;i++){\n\t\t\tvector[i]=sc.nextInt();\n\t\t}\n\n\t\t//่จ็ฎ\n\t\tint[] ans_ary=new int[height];\n\t\tfor(int i=0;i<height;i++){\n\t\t\tfor(int j=0;j<wide;j++){\n\t\t\t\tans_ary[i]+=matrix[i][j]*vector[j];\n\t\t\t}\n\t\t}\n\n\t\t//ๅบๅ\n\t\tfor(int i=0;i<height;i++){\n\t\t\tSystem.out.println(ans_ary[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 height=sc.nextInt();
int wide=sc.nextInt();
int[][] matrix=new int[height][wide];
int[] vector=new int[wide];
//ๅ
ฅๅ
for(int i=0;i<height;i++){
for(int j=0;j<wide;j++){
matrix[i][j]=sc.nextInt();
}
}
for(int i=0;i<wide;i++){
vector[i]=sc.nextInt();
}
//่จ็ฎ
int[] ans_ary=new int[height];
for(int i=0;i<height;i++){
for(int j=0;j<wide;j++){
ans_ary[i]+=matrix[i][j]*vector[j];
}
}
//ๅบๅ
for(int i=0;i<height;i++){
System.out.println(ans_ary[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,
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,
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
],
[
174,
11
],
[
174,
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
],
[
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
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
66,
71
],
[
63,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
72,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
85,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
94,
96
],
[
14,
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
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
117,
118
],
[
118,
119
],
[
14,
120
],
[
120,
121
],
[
120,
122
],
[
14,
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
],
[
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
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
154,
160
],
[
160,
161
],
[
160,
162
],
[
136,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
168,
169
],
[
168,
170
],
[
12,
171
],
[
171,
172
],
[
0,
173
],
[
173,
174
],
[
173,
175
]
] | [
"import java.io.InputStreamReader;\nimport java.io.BufferedReader;\nimport java.io.IOException;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strAry = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(strAry[0]);\n\t\tint m = Integer.parseInt(strAry[1]);\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[m];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] strMat = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatrix[i][j] = Integer.parseInt(strMat[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tvector[i] = Integer.parseInt(br.readLine());\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] += matrix[i][j] * vector[j];\n\t\t\t\t}\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t}\n}",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strAry = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(strAry[0]);\n\t\tint m = Integer.parseInt(strAry[1]);\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[m];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] strMat = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatrix[i][j] = Integer.parseInt(strMat[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tvector[i] = Integer.parseInt(br.readLine());\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] += matrix[i][j] * vector[j];\n\t\t\t\t}\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strAry = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(strAry[0]);\n\t\tint m = Integer.parseInt(strAry[1]);\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[m];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] strMat = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatrix[i][j] = Integer.parseInt(strMat[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tvector[i] = Integer.parseInt(br.readLine());\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] += matrix[i][j] * vector[j];\n\t\t\t\t}\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strAry = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(strAry[0]);\n\t\tint m = Integer.parseInt(strAry[1]);\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[m];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] strMat = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatrix[i][j] = Integer.parseInt(strMat[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tvector[i] = Integer.parseInt(br.readLine());\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] += matrix[i][j] * vector[j];\n\t\t\t\t}\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] strAry = br.readLine().split(\" \");",
"strAry",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int n = Integer.parseInt(strAry[0]);",
"n",
"Integer.parseInt(strAry[0])",
"Integer.parseInt",
"Integer",
"strAry[0]",
"strAry",
"0",
"int m = Integer.parseInt(strAry[1]);",
"m",
"Integer.parseInt(strAry[1])",
"Integer.parseInt",
"Integer",
"strAry[1]",
"strAry",
"1",
"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\t\t\tString[] strMat = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatrix[i][j] = Integer.parseInt(strMat[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[] strMat = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatrix[i][j] = Integer.parseInt(strMat[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] strMat = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatrix[i][j] = Integer.parseInt(strMat[j]);\n\t\t\t}\n\t\t}",
"String[] strMat = br.readLine().split(\" \");",
"strMat",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for (int j = 0; j < m; j++) {\n\t\t\t\tmatrix[i][j] = Integer.parseInt(strMat[j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tmatrix[i][j] = Integer.parseInt(strMat[j]);\n\t\t\t}",
"{\n\t\t\t\tmatrix[i][j] = Integer.parseInt(strMat[j]);\n\t\t\t}",
"matrix[i][j] = Integer.parseInt(strMat[j])",
"matrix[i][j]",
"matrix[i]",
"matrix",
"i",
"j",
"Integer.parseInt(strMat[j])",
"Integer.parseInt",
"Integer",
"strMat[j]",
"strMat",
"j",
"for (int i = 0; i < m; i++) {\n\t\t\tvector[i] = Integer.parseInt(br.readLine());\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tvector[i] = Integer.parseInt(br.readLine());\n\t\t}",
"{\n\t\t\tvector[i] = Integer.parseInt(br.readLine());\n\t\t}",
"vector[i] = Integer.parseInt(br.readLine())",
"vector[i]",
"vector",
"i",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"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] += matrix[i][j] * vector[j];\n\t\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\tc[i] += matrix[i][j] * vector[j];\n\t\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\tc[i] += matrix[i][j] * vector[j];\n\t\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\tc[i] += matrix[i][j] * vector[j];\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tc[i] += matrix[i][j] * vector[j];\n\t\t\t\t}",
"{\n\t\t\t\tc[i] += matrix[i][j] * vector[j];\n\t\t\t\t}",
"c[i] += matrix[i][j] * vector[j]",
"c[i]",
"c",
"i",
"matrix[i][j] * vector[j]",
"matrix[i][j]",
"matrix[i]",
"matrix",
"i",
"j",
"vector[j]",
"vector",
"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\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strAry = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(strAry[0]);\n\t\tint m = Integer.parseInt(strAry[1]);\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[m];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] strMat = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatrix[i][j] = Integer.parseInt(strMat[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tvector[i] = Integer.parseInt(br.readLine());\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] += matrix[i][j] * vector[j];\n\t\t\t\t}\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strAry = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(strAry[0]);\n\t\tint m = Integer.parseInt(strAry[1]);\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[m];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] strMat = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatrix[i][j] = Integer.parseInt(strMat[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tvector[i] = Integer.parseInt(br.readLine());\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] += matrix[i][j] * vector[j];\n\t\t\t\t}\n\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t}\n}",
"Main"
] | import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.io.IOException;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] strAry = br.readLine().split(" ");
int n = Integer.parseInt(strAry[0]);
int m = Integer.parseInt(strAry[1]);
int[][] matrix = new int[n][m];
int[] vector = new int[m];
for (int i = 0; i < n; i++) {
String[] strMat = br.readLine().split(" ");
for (int j = 0; j < m; j++) {
matrix[i][j] = Integer.parseInt(strMat[j]);
}
}
for (int i = 0; i < m; i++) {
vector[i] = Integer.parseInt(br.readLine());
}
int[] c = new int[n];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
c[i] += matrix[i][j] * vector[j];
}
System.out.println(c[i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
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,
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,
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
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
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
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
72,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
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
],
[
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
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
123,
129
],
[
129,
130
],
[
129,
131
],
[
104,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
104,
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\tpublic static void main(String [] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint sum;\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\t\n\t\tint matrix_A[][] = new int[n][m];\n\t\tint Vector_b[] = new int[m];\n\t\tint Vector_c[] = new int[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\tmatrix_A[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor( int i = 0; i < m; i++) {\n\t\t\tVector_b[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tfor( int i = 0; i < n; i++) {\n\t\t\tsum = 0;\n\t\t\tfor( int j = 0; j < m; j++) {\n\t\t\t\tsum += matrix_A[i][j] * Vector_b[j];\n\t\t\t}\n\t\t\tVector_c[i] = sum;\n\t\t\tSystem.out.println(Vector_c[i]);\n\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 scan = new Scanner(System.in);\n\t\tint sum;\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\t\n\t\tint matrix_A[][] = new int[n][m];\n\t\tint Vector_b[] = new int[m];\n\t\tint Vector_c[] = new int[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\tmatrix_A[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor( int i = 0; i < m; i++) {\n\t\t\tVector_b[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tfor( int i = 0; i < n; i++) {\n\t\t\tsum = 0;\n\t\t\tfor( int j = 0; j < m; j++) {\n\t\t\t\tsum += matrix_A[i][j] * Vector_b[j];\n\t\t\t}\n\t\t\tVector_c[i] = sum;\n\t\t\tSystem.out.println(Vector_c[i]);\n\t\t}\n\t\t\n\t}\n}",
"Main",
"public static void main(String [] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint sum;\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\t\n\t\tint matrix_A[][] = new int[n][m];\n\t\tint Vector_b[] = new int[m];\n\t\tint Vector_c[] = new int[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\tmatrix_A[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor( int i = 0; i < m; i++) {\n\t\t\tVector_b[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tfor( int i = 0; i < n; i++) {\n\t\t\tsum = 0;\n\t\t\tfor( int j = 0; j < m; j++) {\n\t\t\t\tsum += matrix_A[i][j] * Vector_b[j];\n\t\t\t}\n\t\t\tVector_c[i] = sum;\n\t\t\tSystem.out.println(Vector_c[i]);\n\t\t}\n\t\t\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint sum;\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\t\n\t\tint matrix_A[][] = new int[n][m];\n\t\tint Vector_b[] = new int[m];\n\t\tint Vector_c[] = new int[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\tmatrix_A[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor( int i = 0; i < m; i++) {\n\t\t\tVector_b[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tfor( int i = 0; i < n; i++) {\n\t\t\tsum = 0;\n\t\t\tfor( int j = 0; j < m; j++) {\n\t\t\t\tsum += matrix_A[i][j] * Vector_b[j];\n\t\t\t}\n\t\t\tVector_c[i] = sum;\n\t\t\tSystem.out.println(Vector_c[i]);\n\t\t}\n\t\t\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int sum;",
"sum",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int matrix_A[][] = new int[n][m];",
"matrix_A",
"new int[n][m]",
"n",
"m",
"int Vector_b[] = new int[m];",
"Vector_b",
"new int[m]",
"m",
"int Vector_c[] = new int[n];",
"Vector_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\tmatrix_A[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\tmatrix_A[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\tmatrix_A[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0; j < m; j++) {\n\t\t\t\tmatrix_A[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\tmatrix_A[i][j] = scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\tmatrix_A[i][j] = scan.nextInt();\n\t\t\t}",
"matrix_A[i][j] = scan.nextInt()",
"matrix_A[i][j]",
"matrix_A[i]",
"matrix_A",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for( int i = 0; i < m; i++) {\n\t\t\tVector_b[i] = scan.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tVector_b[i] = scan.nextInt();\n\t\t}",
"{\n\t\t\tVector_b[i] = scan.nextInt();\n\t\t}",
"Vector_b[i] = scan.nextInt()",
"Vector_b[i]",
"Vector_b",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for( int i = 0; i < n; i++) {\n\t\t\tsum = 0;\n\t\t\tfor( int j = 0; j < m; j++) {\n\t\t\t\tsum += matrix_A[i][j] * Vector_b[j];\n\t\t\t}\n\t\t\tVector_c[i] = sum;\n\t\t\tSystem.out.println(Vector_c[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tsum = 0;\n\t\t\tfor( int j = 0; j < m; j++) {\n\t\t\t\tsum += matrix_A[i][j] * Vector_b[j];\n\t\t\t}\n\t\t\tVector_c[i] = sum;\n\t\t\tSystem.out.println(Vector_c[i]);\n\t\t}",
"{\n\t\t\tsum = 0;\n\t\t\tfor( int j = 0; j < m; j++) {\n\t\t\t\tsum += matrix_A[i][j] * Vector_b[j];\n\t\t\t}\n\t\t\tVector_c[i] = sum;\n\t\t\tSystem.out.println(Vector_c[i]);\n\t\t}",
"sum = 0",
"sum",
"0",
"for( int j = 0; j < m; j++) {\n\t\t\t\tsum += matrix_A[i][j] * Vector_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 += matrix_A[i][j] * Vector_b[j];\n\t\t\t}",
"{\n\t\t\t\tsum += matrix_A[i][j] * Vector_b[j];\n\t\t\t}",
"sum += matrix_A[i][j] * Vector_b[j]",
"sum",
"matrix_A[i][j] * Vector_b[j]",
"matrix_A[i][j]",
"matrix_A[i]",
"matrix_A",
"i",
"j",
"Vector_b[j]",
"Vector_b",
"j",
"Vector_c[i] = sum",
"Vector_c[i]",
"Vector_c",
"i",
"sum",
"System.out.println(Vector_c[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"Vector_c[i]",
"Vector_c",
"i",
"String [] args",
"args",
"public class Main {\n\tpublic static void main(String [] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint sum;\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\t\n\t\tint matrix_A[][] = new int[n][m];\n\t\tint Vector_b[] = new int[m];\n\t\tint Vector_c[] = new int[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\tmatrix_A[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor( int i = 0; i < m; i++) {\n\t\t\tVector_b[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tfor( int i = 0; i < n; i++) {\n\t\t\tsum = 0;\n\t\t\tfor( int j = 0; j < m; j++) {\n\t\t\t\tsum += matrix_A[i][j] * Vector_b[j];\n\t\t\t}\n\t\t\tVector_c[i] = sum;\n\t\t\tSystem.out.println(Vector_c[i]);\n\t\t}\n\t\t\n\t}\n}",
"public class Main {\n\tpublic static void main(String [] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint sum;\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\t\n\t\tint matrix_A[][] = new int[n][m];\n\t\tint Vector_b[] = new int[m];\n\t\tint Vector_c[] = new int[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\tmatrix_A[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor( int i = 0; i < m; i++) {\n\t\t\tVector_b[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tfor( int i = 0; i < n; i++) {\n\t\t\tsum = 0;\n\t\t\tfor( int j = 0; j < m; j++) {\n\t\t\t\tsum += matrix_A[i][j] * Vector_b[j];\n\t\t\t}\n\t\t\tVector_c[i] = sum;\n\t\t\tSystem.out.println(Vector_c[i]);\n\t\t}\n\t\t\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String [] args) {
Scanner scan = new Scanner(System.in);
int sum;
int n = scan.nextInt();
int m = scan.nextInt();
int matrix_A[][] = new int[n][m];
int Vector_b[] = new int[m];
int Vector_c[] = new int[n];
for( int i = 0; i < n; i++) {
for(int j = 0; j < m; j++) {
matrix_A[i][j] = scan.nextInt();
}
}
for( int i = 0; i < m; i++) {
Vector_b[i] = scan.nextInt();
}
for( int i = 0; i < n; i++) {
sum = 0;
for( int j = 0; j < m; j++) {
sum += matrix_A[i][j] * Vector_b[j];
}
Vector_c[i] = sum;
System.out.println(Vector_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,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
143,
5
],
[
143,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
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
],
[
129,
131
],
[
129,
132
],
[
133,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
6,
140
],
[
140,
141
],
[
0,
142
],
[
142,
143
],
[
142,
144
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint m = in.nextInt();\n\t\tint[][] aryA = new int[n][m];\n\t\tint[] aryB = new int[m];\n\t\tint[] result = new int[n];\n\t\t\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\taryA[i][j] = in.nextInt();\n\t\t\t}\n\t\t}\n\t\t//?????????????????????????ยด????????ยด?\n\t\tfor(int i=0; i<m; i++){\n\t\t\taryB[i] = in.nextInt();\n\t\t}\n\t\t//?????????????ยจ????????????????n x 1???????????????\n\t\tfor(int i=0; i<n; i++){\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tresult[i] += aryA[i][j]*aryB[j];\n\t\t\t}\n\t\t}\n\t\t//????????ยจ???\n\t\tfor(int i:result){\n\t\t\tSystem.out.println(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 in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint m = in.nextInt();\n\t\tint[][] aryA = new int[n][m];\n\t\tint[] aryB = new int[m];\n\t\tint[] result = new int[n];\n\t\t\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\taryA[i][j] = in.nextInt();\n\t\t\t}\n\t\t}\n\t\t//?????????????????????????ยด????????ยด?\n\t\tfor(int i=0; i<m; i++){\n\t\t\taryB[i] = in.nextInt();\n\t\t}\n\t\t//?????????????ยจ????????????????n x 1???????????????\n\t\tfor(int i=0; i<n; i++){\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tresult[i] += aryA[i][j]*aryB[j];\n\t\t\t}\n\t\t}\n\t\t//????????ยจ???\n\t\tfor(int i:result){\n\t\t\tSystem.out.println(i);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint m = in.nextInt();\n\t\tint[][] aryA = new int[n][m];\n\t\tint[] aryB = new int[m];\n\t\tint[] result = new int[n];\n\t\t\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\taryA[i][j] = in.nextInt();\n\t\t\t}\n\t\t}\n\t\t//?????????????????????????ยด????????ยด?\n\t\tfor(int i=0; i<m; i++){\n\t\t\taryB[i] = in.nextInt();\n\t\t}\n\t\t//?????????????ยจ????????????????n x 1???????????????\n\t\tfor(int i=0; i<n; i++){\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tresult[i] += aryA[i][j]*aryB[j];\n\t\t\t}\n\t\t}\n\t\t//????????ยจ???\n\t\tfor(int i:result){\n\t\t\tSystem.out.println(i);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint m = in.nextInt();\n\t\tint[][] aryA = new int[n][m];\n\t\tint[] aryB = new int[m];\n\t\tint[] result = new int[n];\n\t\t\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\taryA[i][j] = in.nextInt();\n\t\t\t}\n\t\t}\n\t\t//?????????????????????????ยด????????ยด?\n\t\tfor(int i=0; i<m; i++){\n\t\t\taryB[i] = in.nextInt();\n\t\t}\n\t\t//?????????????ยจ????????????????n x 1???????????????\n\t\tfor(int i=0; i<n; i++){\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tresult[i] += aryA[i][j]*aryB[j];\n\t\t\t}\n\t\t}\n\t\t//????????ยจ???\n\t\tfor(int i:result){\n\t\t\tSystem.out.println(i);\n\t\t}\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"int m = in.nextInt();",
"m",
"in.nextInt()",
"in.nextInt",
"in",
"int[][] aryA = new int[n][m];",
"aryA",
"new int[n][m]",
"n",
"m",
"int[] aryB = new int[m];",
"aryB",
"new int[m]",
"m",
"int[] result = new int[n];",
"result",
"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\taryA[i][j] = in.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\taryA[i][j] = in.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\taryA[i][j] = in.nextInt();\n\t\t\t}\n\t\t}",
"for(int j=0; j<m; j++){\n\t\t\t\taryA[i][j] = in.nextInt();\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\taryA[i][j] = in.nextInt();\n\t\t\t}",
"{\n\t\t\t\taryA[i][j] = in.nextInt();\n\t\t\t}",
"aryA[i][j] = in.nextInt()",
"aryA[i][j]",
"aryA[i]",
"aryA",
"i",
"j",
"in.nextInt()",
"in.nextInt",
"in",
"for(int i=0; i<m; i++){\n\t\t\taryB[i] = in.nextInt();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\taryB[i] = in.nextInt();\n\t\t}",
"{\n\t\t\taryB[i] = in.nextInt();\n\t\t}",
"aryB[i] = in.nextInt()",
"aryB[i]",
"aryB",
"i",
"in.nextInt()",
"in.nextInt",
"in",
"for(int i=0; i<n; i++){\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tresult[i] += aryA[i][j]*aryB[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\tresult[i] += aryA[i][j]*aryB[j];\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tresult[i] += aryA[i][j]*aryB[j];\n\t\t\t}\n\t\t}",
"for(int j=0; j<m; j++){\n\t\t\t\tresult[i] += aryA[i][j]*aryB[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[i] += aryA[i][j]*aryB[j];\n\t\t\t}",
"{\n\t\t\t\tresult[i] += aryA[i][j]*aryB[j];\n\t\t\t}",
"result[i] += aryA[i][j]*aryB[j]",
"result[i]",
"result",
"i",
"aryA[i][j]*aryB[j]",
"aryA[i][j]",
"aryA[i]",
"aryA",
"i",
"j",
"aryB[j]",
"aryB",
"j",
"for(int i:result){\n\t\t\tSystem.out.println(i);\n\t\t}",
"int i",
"result",
"{\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",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint m = in.nextInt();\n\t\tint[][] aryA = new int[n][m];\n\t\tint[] aryB = new int[m];\n\t\tint[] result = new int[n];\n\t\t\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\taryA[i][j] = in.nextInt();\n\t\t\t}\n\t\t}\n\t\t//?????????????????????????ยด????????ยด?\n\t\tfor(int i=0; i<m; i++){\n\t\t\taryB[i] = in.nextInt();\n\t\t}\n\t\t//?????????????ยจ????????????????n x 1???????????????\n\t\tfor(int i=0; i<n; i++){\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tresult[i] += aryA[i][j]*aryB[j];\n\t\t\t}\n\t\t}\n\t\t//????????ยจ???\n\t\tfor(int i:result){\n\t\t\tSystem.out.println(i);\n\t\t}\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint m = in.nextInt();\n\t\tint[][] aryA = new int[n][m];\n\t\tint[] aryB = new int[m];\n\t\tint[] result = new int[n];\n\t\t\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\taryA[i][j] = in.nextInt();\n\t\t\t}\n\t\t}\n\t\t//?????????????????????????ยด????????ยด?\n\t\tfor(int i=0; i<m; i++){\n\t\t\taryB[i] = in.nextInt();\n\t\t}\n\t\t//?????????????ยจ????????????????n x 1???????????????\n\t\tfor(int i=0; i<n; i++){\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tresult[i] += aryA[i][j]*aryB[j];\n\t\t\t}\n\t\t}\n\t\t//????????ยจ???\n\t\tfor(int i:result){\n\t\t\tSystem.out.println(i);\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int m = in.nextInt();
int[][] aryA = new int[n][m];
int[] aryB = new int[m];
int[] result = new int[n];
//??????A???????ยด????????ยด?
for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
aryA[i][j] = in.nextInt();
}
}
//?????????????????????????ยด????????ยด?
for(int i=0; i<m; i++){
aryB[i] = in.nextInt();
}
//?????????????ยจ????????????????n x 1???????????????
for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
result[i] += aryA[i][j]*aryB[j];
}
}
//????????ยจ???
for(int i:result){
System.out.println(i);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
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,
0,
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,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
142,
5
],
[
142,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
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
],
[
8,
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
],
[
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
],
[
8,
136
],
[
136,
137
],
[
137,
138
],
[
6,
139
],
[
139,
140
],
[
0,
141
],
[
141,
142
],
[
141,
143
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String args[]){\n\n\t\t//???????????ยฃ?ยจ??????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint list1 [][];\n\n\t\t//list??????????????ยง????????ยจ??ยจ????????ยง???????????ยจ???\n\t\t//2?ยฌ???????????????????\n\t\tint tate = sc.nextInt();\n\t\tint yoko = sc.nextInt();\n\t\tlist1 = new int[tate][yoko];\n\n\t\t//2?ยฌ?????????????????????????????????????\n\t\tfor(int i = 0; i < tate; i++){\n\t\t\tfor(int j = 0; j < yoko; j++){\n\t\t\t\tlist1[i][j] = sc.nextInt();\n\t\t\t\t//System.out.print(list1[i][j]);\n\t\t\t}\n\t\t\t//System.out.println(\"\");\n\t\t}\n\n\t\t//???????????ยฃ?ยจ?\n\t\tint list2 [];\n\t\tlist2 = new int[yoko];\n\n\t\t//????????????????????\\????????????\n\t\tfor(int i = 0; i < yoko; i++){\n\t\t\tlist2[i] = sc.nextInt();\n\t\t\t//System.out.println(list2[i]);\n\t\t}\n\n\t\t//?ยจ????????????????\n\t\tfor(int i = 0; i < tate; i++){\n\t\t\tint goukei = 0;\n\t\t\tfor(int j = 0; j < yoko; j++){\n\t\t\t\tgoukei += list1[i][j] * list2[j];\n\t\t\t}\n\t\t\t\tSystem.out.println(goukei);\n\t\t}\n\t\tsc.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String args[]){\n\n\t\t//???????????ยฃ?ยจ??????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint list1 [][];\n\n\t\t//list??????????????ยง????????ยจ??ยจ????????ยง???????????ยจ???\n\t\t//2?ยฌ???????????????????\n\t\tint tate = sc.nextInt();\n\t\tint yoko = sc.nextInt();\n\t\tlist1 = new int[tate][yoko];\n\n\t\t//2?ยฌ?????????????????????????????????????\n\t\tfor(int i = 0; i < tate; i++){\n\t\t\tfor(int j = 0; j < yoko; j++){\n\t\t\t\tlist1[i][j] = sc.nextInt();\n\t\t\t\t//System.out.print(list1[i][j]);\n\t\t\t}\n\t\t\t//System.out.println(\"\");\n\t\t}\n\n\t\t//???????????ยฃ?ยจ?\n\t\tint list2 [];\n\t\tlist2 = new int[yoko];\n\n\t\t//????????????????????\\????????????\n\t\tfor(int i = 0; i < yoko; i++){\n\t\t\tlist2[i] = sc.nextInt();\n\t\t\t//System.out.println(list2[i]);\n\t\t}\n\n\t\t//?ยจ????????????????\n\t\tfor(int i = 0; i < tate; i++){\n\t\t\tint goukei = 0;\n\t\t\tfor(int j = 0; j < yoko; j++){\n\t\t\t\tgoukei += list1[i][j] * list2[j];\n\t\t\t}\n\t\t\t\tSystem.out.println(goukei);\n\t\t}\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String args[]){\n\n\t\t//???????????ยฃ?ยจ??????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint list1 [][];\n\n\t\t//list??????????????ยง????????ยจ??ยจ????????ยง???????????ยจ???\n\t\t//2?ยฌ???????????????????\n\t\tint tate = sc.nextInt();\n\t\tint yoko = sc.nextInt();\n\t\tlist1 = new int[tate][yoko];\n\n\t\t//2?ยฌ?????????????????????????????????????\n\t\tfor(int i = 0; i < tate; i++){\n\t\t\tfor(int j = 0; j < yoko; j++){\n\t\t\t\tlist1[i][j] = sc.nextInt();\n\t\t\t\t//System.out.print(list1[i][j]);\n\t\t\t}\n\t\t\t//System.out.println(\"\");\n\t\t}\n\n\t\t//???????????ยฃ?ยจ?\n\t\tint list2 [];\n\t\tlist2 = new int[yoko];\n\n\t\t//????????????????????\\????????????\n\t\tfor(int i = 0; i < yoko; i++){\n\t\t\tlist2[i] = sc.nextInt();\n\t\t\t//System.out.println(list2[i]);\n\t\t}\n\n\t\t//?ยจ????????????????\n\t\tfor(int i = 0; i < tate; i++){\n\t\t\tint goukei = 0;\n\t\t\tfor(int j = 0; j < yoko; j++){\n\t\t\t\tgoukei += list1[i][j] * list2[j];\n\t\t\t}\n\t\t\t\tSystem.out.println(goukei);\n\t\t}\n\t\tsc.close();\n\t}",
"main",
"{\n\n\t\t//???????????ยฃ?ยจ??????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint list1 [][];\n\n\t\t//list??????????????ยง????????ยจ??ยจ????????ยง???????????ยจ???\n\t\t//2?ยฌ???????????????????\n\t\tint tate = sc.nextInt();\n\t\tint yoko = sc.nextInt();\n\t\tlist1 = new int[tate][yoko];\n\n\t\t//2?ยฌ?????????????????????????????????????\n\t\tfor(int i = 0; i < tate; i++){\n\t\t\tfor(int j = 0; j < yoko; j++){\n\t\t\t\tlist1[i][j] = sc.nextInt();\n\t\t\t\t//System.out.print(list1[i][j]);\n\t\t\t}\n\t\t\t//System.out.println(\"\");\n\t\t}\n\n\t\t//???????????ยฃ?ยจ?\n\t\tint list2 [];\n\t\tlist2 = new int[yoko];\n\n\t\t//????????????????????\\????????????\n\t\tfor(int i = 0; i < yoko; i++){\n\t\t\tlist2[i] = sc.nextInt();\n\t\t\t//System.out.println(list2[i]);\n\t\t}\n\n\t\t//?ยจ????????????????\n\t\tfor(int i = 0; i < tate; i++){\n\t\t\tint goukei = 0;\n\t\t\tfor(int j = 0; j < yoko; j++){\n\t\t\t\tgoukei += list1[i][j] * list2[j];\n\t\t\t}\n\t\t\t\tSystem.out.println(goukei);\n\t\t}\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int list1 [][];",
"list1",
"int tate = sc.nextInt();",
"tate",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int yoko = sc.nextInt();",
"yoko",
"sc.nextInt()",
"sc.nextInt",
"sc",
"list1 = new int[tate][yoko]",
"list1",
"new int[tate][yoko]",
"tate",
"yoko",
"for(int i = 0; i < tate; i++){\n\t\t\tfor(int j = 0; j < yoko; j++){\n\t\t\t\tlist1[i][j] = sc.nextInt();\n\t\t\t\t//System.out.print(list1[i][j]);\n\t\t\t}\n\t\t\t//System.out.println(\"\");\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < tate",
"i",
"tate",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < yoko; j++){\n\t\t\t\tlist1[i][j] = sc.nextInt();\n\t\t\t\t//System.out.print(list1[i][j]);\n\t\t\t}\n\t\t\t//System.out.println(\"\");\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < yoko; j++){\n\t\t\t\tlist1[i][j] = sc.nextInt();\n\t\t\t\t//System.out.print(list1[i][j]);\n\t\t\t}\n\t\t\t//System.out.println(\"\");\n\t\t}",
"for(int j = 0; j < yoko; j++){\n\t\t\t\tlist1[i][j] = sc.nextInt();\n\t\t\t\t//System.out.print(list1[i][j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < yoko",
"j",
"yoko",
"j++",
"j++",
"j",
"{\n\t\t\t\tlist1[i][j] = sc.nextInt();\n\t\t\t\t//System.out.print(list1[i][j]);\n\t\t\t}",
"{\n\t\t\t\tlist1[i][j] = sc.nextInt();\n\t\t\t\t//System.out.print(list1[i][j]);\n\t\t\t}",
"list1[i][j] = sc.nextInt()",
"list1[i][j]",
"list1[i]",
"list1",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int list2 [];",
"list2",
"list2 = new int[yoko]",
"list2",
"new int[yoko]",
"yoko",
"for(int i = 0; i < yoko; i++){\n\t\t\tlist2[i] = sc.nextInt();\n\t\t\t//System.out.println(list2[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < yoko",
"i",
"yoko",
"i++",
"i++",
"i",
"{\n\t\t\tlist2[i] = sc.nextInt();\n\t\t\t//System.out.println(list2[i]);\n\t\t}",
"{\n\t\t\tlist2[i] = sc.nextInt();\n\t\t\t//System.out.println(list2[i]);\n\t\t}",
"list2[i] = sc.nextInt()",
"list2[i]",
"list2",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < tate; i++){\n\t\t\tint goukei = 0;\n\t\t\tfor(int j = 0; j < yoko; j++){\n\t\t\t\tgoukei += list1[i][j] * list2[j];\n\t\t\t}\n\t\t\t\tSystem.out.println(goukei);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < tate",
"i",
"tate",
"i++",
"i++",
"i",
"{\n\t\t\tint goukei = 0;\n\t\t\tfor(int j = 0; j < yoko; j++){\n\t\t\t\tgoukei += list1[i][j] * list2[j];\n\t\t\t}\n\t\t\t\tSystem.out.println(goukei);\n\t\t}",
"{\n\t\t\tint goukei = 0;\n\t\t\tfor(int j = 0; j < yoko; j++){\n\t\t\t\tgoukei += list1[i][j] * list2[j];\n\t\t\t}\n\t\t\t\tSystem.out.println(goukei);\n\t\t}",
"int goukei = 0;",
"goukei",
"0",
"for(int j = 0; j < yoko; j++){\n\t\t\t\tgoukei += list1[i][j] * list2[j];\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < yoko",
"j",
"yoko",
"j++",
"j++",
"j",
"{\n\t\t\t\tgoukei += list1[i][j] * list2[j];\n\t\t\t}",
"{\n\t\t\t\tgoukei += list1[i][j] * list2[j];\n\t\t\t}",
"goukei += list1[i][j] * list2[j]",
"goukei",
"list1[i][j] * list2[j]",
"list1[i][j]",
"list1[i]",
"list1",
"i",
"j",
"list2[j]",
"list2",
"j",
"System.out.println(goukei)",
"System.out.println",
"System.out",
"System",
"System.out",
"goukei",
"sc.close()",
"sc.close",
"sc",
"String args[]",
"args",
"public class Main{\n\tpublic static void main(String args[]){\n\n\t\t//???????????ยฃ?ยจ??????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint list1 [][];\n\n\t\t//list??????????????ยง????????ยจ??ยจ????????ยง???????????ยจ???\n\t\t//2?ยฌ???????????????????\n\t\tint tate = sc.nextInt();\n\t\tint yoko = sc.nextInt();\n\t\tlist1 = new int[tate][yoko];\n\n\t\t//2?ยฌ?????????????????????????????????????\n\t\tfor(int i = 0; i < tate; i++){\n\t\t\tfor(int j = 0; j < yoko; j++){\n\t\t\t\tlist1[i][j] = sc.nextInt();\n\t\t\t\t//System.out.print(list1[i][j]);\n\t\t\t}\n\t\t\t//System.out.println(\"\");\n\t\t}\n\n\t\t//???????????ยฃ?ยจ?\n\t\tint list2 [];\n\t\tlist2 = new int[yoko];\n\n\t\t//????????????????????\\????????????\n\t\tfor(int i = 0; i < yoko; i++){\n\t\t\tlist2[i] = sc.nextInt();\n\t\t\t//System.out.println(list2[i]);\n\t\t}\n\n\t\t//?ยจ????????????????\n\t\tfor(int i = 0; i < tate; i++){\n\t\t\tint goukei = 0;\n\t\t\tfor(int j = 0; j < yoko; j++){\n\t\t\t\tgoukei += list1[i][j] * list2[j];\n\t\t\t}\n\t\t\t\tSystem.out.println(goukei);\n\t\t}\n\t\tsc.close();\n\t}\n}",
"public class Main{\n\tpublic static void main(String args[]){\n\n\t\t//???????????ยฃ?ยจ??????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint list1 [][];\n\n\t\t//list??????????????ยง????????ยจ??ยจ????????ยง???????????ยจ???\n\t\t//2?ยฌ???????????????????\n\t\tint tate = sc.nextInt();\n\t\tint yoko = sc.nextInt();\n\t\tlist1 = new int[tate][yoko];\n\n\t\t//2?ยฌ?????????????????????????????????????\n\t\tfor(int i = 0; i < tate; i++){\n\t\t\tfor(int j = 0; j < yoko; j++){\n\t\t\t\tlist1[i][j] = sc.nextInt();\n\t\t\t\t//System.out.print(list1[i][j]);\n\t\t\t}\n\t\t\t//System.out.println(\"\");\n\t\t}\n\n\t\t//???????????ยฃ?ยจ?\n\t\tint list2 [];\n\t\tlist2 = new int[yoko];\n\n\t\t//????????????????????\\????????????\n\t\tfor(int i = 0; i < yoko; i++){\n\t\t\tlist2[i] = sc.nextInt();\n\t\t\t//System.out.println(list2[i]);\n\t\t}\n\n\t\t//?ยจ????????????????\n\t\tfor(int i = 0; i < tate; i++){\n\t\t\tint goukei = 0;\n\t\t\tfor(int j = 0; j < yoko; j++){\n\t\t\t\tgoukei += list1[i][j] * list2[j];\n\t\t\t}\n\t\t\t\tSystem.out.println(goukei);\n\t\t}\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 list1 [][];
//list??????????????ยง????????ยจ??ยจ????????ยง???????????ยจ???
//2?ยฌ???????????????????
int tate = sc.nextInt();
int yoko = sc.nextInt();
list1 = new int[tate][yoko];
//2?ยฌ?????????????????????????????????????
for(int i = 0; i < tate; i++){
for(int j = 0; j < yoko; j++){
list1[i][j] = sc.nextInt();
//System.out.print(list1[i][j]);
}
//System.out.println("");
}
//???????????ยฃ?ยจ?
int list2 [];
list2 = new int[yoko];
//????????????????????\????????????
for(int i = 0; i < yoko; i++){
list2[i] = sc.nextInt();
//System.out.println(list2[i]);
}
//?ยจ????????????????
for(int i = 0; i < tate; i++){
int goukei = 0;
for(int j = 0; j < yoko; j++){
goukei += list1[i][j] * list2[j];
}
System.out.println(goukei);
}
sc.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
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,
13,
4,
18,
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,
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
],
[
187,
14
],
[
187,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
25,
30
],
[
19,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
36,
38
],
[
19,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
44,
46
],
[
19,
47
],
[
47,
48
],
[
47,
49
],
[
19,
52
],
[
52,
53
],
[
52,
54
],
[
19,
56
],
[
56,
57
],
[
56,
58
],
[
19,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
60,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
75,
80
],
[
72,
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
],
[
19,
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
],
[
124,
125
],
[
121,
126
],
[
118,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
134,
135
],
[
134,
136
],
[
19,
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
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
167,
173
],
[
173,
174
],
[
173,
175
],
[
149,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
176,
181
],
[
181,
182
],
[
181,
183
],
[
15,
184
],
[
184,
185
],
[
0,
186
],
[
186,
187
],
[
186,
188
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n \npublic class Main{\n\n public static void main(String[] args) throws IOException {\n try ( BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) ) {\n\n String[] lines = br.readLine().split(\" \");\n int n = Integer.parseInt(lines[0]);\n int m = Integer.parseInt(lines[1]);\n int[][] mA = new int[n][m];\n int[] vb = new int[m];\n int[] vc = new int[n];\n\n for(int i = 0; i < n; i++ ) {\n lines = br.readLine().split(\" \");\n for( int j = 0; j < m; j++ ) {\n mA[i][j] = Integer.parseInt(lines[j]);\n }\n }\n for( int i = 0; i < m; i++ ) {\n lines = br.readLine().split(\" \");\n vb[i] = Integer.parseInt(lines[0]);\n }\n\n for( int i = 0; i < n; i++ ) {\n for( int j = 0; j < m; j++ ){\n vc[i] += mA[i][j] * vb[j];\n }\n System.out.println(vc[i]);\n }\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\n public static void main(String[] args) throws IOException {\n try ( BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) ) {\n\n String[] lines = br.readLine().split(\" \");\n int n = Integer.parseInt(lines[0]);\n int m = Integer.parseInt(lines[1]);\n int[][] mA = new int[n][m];\n int[] vb = new int[m];\n int[] vc = new int[n];\n\n for(int i = 0; i < n; i++ ) {\n lines = br.readLine().split(\" \");\n for( int j = 0; j < m; j++ ) {\n mA[i][j] = Integer.parseInt(lines[j]);\n }\n }\n for( int i = 0; i < m; i++ ) {\n lines = br.readLine().split(\" \");\n vb[i] = Integer.parseInt(lines[0]);\n }\n\n for( int i = 0; i < n; i++ ) {\n for( int j = 0; j < m; j++ ){\n vc[i] += mA[i][j] * vb[j];\n }\n System.out.println(vc[i]);\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n try ( BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) ) {\n\n String[] lines = br.readLine().split(\" \");\n int n = Integer.parseInt(lines[0]);\n int m = Integer.parseInt(lines[1]);\n int[][] mA = new int[n][m];\n int[] vb = new int[m];\n int[] vc = new int[n];\n\n for(int i = 0; i < n; i++ ) {\n lines = br.readLine().split(\" \");\n for( int j = 0; j < m; j++ ) {\n mA[i][j] = Integer.parseInt(lines[j]);\n }\n }\n for( int i = 0; i < m; i++ ) {\n lines = br.readLine().split(\" \");\n vb[i] = Integer.parseInt(lines[0]);\n }\n\n for( int i = 0; i < n; i++ ) {\n for( int j = 0; j < m; j++ ){\n vc[i] += mA[i][j] * vb[j];\n }\n System.out.println(vc[i]);\n }\n }\n }",
"main",
"{\n try ( BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) ) {\n\n String[] lines = br.readLine().split(\" \");\n int n = Integer.parseInt(lines[0]);\n int m = Integer.parseInt(lines[1]);\n int[][] mA = new int[n][m];\n int[] vb = new int[m];\n int[] vc = new int[n];\n\n for(int i = 0; i < n; i++ ) {\n lines = br.readLine().split(\" \");\n for( int j = 0; j < m; j++ ) {\n mA[i][j] = Integer.parseInt(lines[j]);\n }\n }\n for( int i = 0; i < m; i++ ) {\n lines = br.readLine().split(\" \");\n vb[i] = Integer.parseInt(lines[0]);\n }\n\n for( int i = 0; i < n; i++ ) {\n for( int j = 0; j < m; j++ ){\n vc[i] += mA[i][j] * vb[j];\n }\n System.out.println(vc[i]);\n }\n }\n }",
"try ( BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) ) {\n\n String[] lines = br.readLine().split(\" \");\n int n = Integer.parseInt(lines[0]);\n int m = Integer.parseInt(lines[1]);\n int[][] mA = new int[n][m];\n int[] vb = new int[m];\n int[] vc = new int[n];\n\n for(int i = 0; i < n; i++ ) {\n lines = br.readLine().split(\" \");\n for( int j = 0; j < m; j++ ) {\n mA[i][j] = Integer.parseInt(lines[j]);\n }\n }\n for( int i = 0; i < m; i++ ) {\n lines = br.readLine().split(\" \");\n vb[i] = Integer.parseInt(lines[0]);\n }\n\n for( int i = 0; i < n; i++ ) {\n for( int j = 0; j < m; j++ ){\n vc[i] += mA[i][j] * vb[j];\n }\n System.out.println(vc[i]);\n }\n }",
"{\n\n String[] lines = br.readLine().split(\" \");\n int n = Integer.parseInt(lines[0]);\n int m = Integer.parseInt(lines[1]);\n int[][] mA = new int[n][m];\n int[] vb = new int[m];\n int[] vc = new int[n];\n\n for(int i = 0; i < n; i++ ) {\n lines = br.readLine().split(\" \");\n for( int j = 0; j < m; j++ ) {\n mA[i][j] = Integer.parseInt(lines[j]);\n }\n }\n for( int i = 0; i < m; i++ ) {\n lines = br.readLine().split(\" \");\n vb[i] = Integer.parseInt(lines[0]);\n }\n\n for( int i = 0; i < n; i++ ) {\n for( int j = 0; j < m; j++ ){\n vc[i] += mA[i][j] * vb[j];\n }\n System.out.println(vc[i]);\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[] lines = br.readLine().split(\" \");",
"lines",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int n = Integer.parseInt(lines[0]);",
"n",
"Integer.parseInt(lines[0])",
"Integer.parseInt",
"Integer",
"lines[0]",
"lines",
"0",
"int m = Integer.parseInt(lines[1]);",
"m",
"Integer.parseInt(lines[1])",
"Integer.parseInt",
"Integer",
"lines[1]",
"lines",
"1",
"int[][] mA = new int[n][m];",
"mA",
"new int[n][m]",
"n",
"m",
"int[] vb = new int[m];",
"vb",
"new int[m]",
"m",
"int[] vc = new int[n];",
"vc",
"new int[n]",
"n",
"for(int i = 0; i < n; i++ ) {\n lines = br.readLine().split(\" \");\n for( int j = 0; j < m; j++ ) {\n mA[i][j] = Integer.parseInt(lines[j]);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n lines = br.readLine().split(\" \");\n for( int j = 0; j < m; j++ ) {\n mA[i][j] = Integer.parseInt(lines[j]);\n }\n }",
"{\n lines = br.readLine().split(\" \");\n for( int j = 0; j < m; j++ ) {\n mA[i][j] = Integer.parseInt(lines[j]);\n }\n }",
"lines = br.readLine().split(\" \")",
"lines",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for( int j = 0; j < m; j++ ) {\n mA[i][j] = Integer.parseInt(lines[j]);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n mA[i][j] = Integer.parseInt(lines[j]);\n }",
"{\n mA[i][j] = Integer.parseInt(lines[j]);\n }",
"mA[i][j] = Integer.parseInt(lines[j])",
"mA[i][j]",
"mA[i]",
"mA",
"i",
"j",
"Integer.parseInt(lines[j])",
"Integer.parseInt",
"Integer",
"lines[j]",
"lines",
"j",
"for( int i = 0; i < m; i++ ) {\n lines = br.readLine().split(\" \");\n vb[i] = Integer.parseInt(lines[0]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n lines = br.readLine().split(\" \");\n vb[i] = Integer.parseInt(lines[0]);\n }",
"{\n lines = br.readLine().split(\" \");\n vb[i] = Integer.parseInt(lines[0]);\n }",
"lines = br.readLine().split(\" \")",
"lines",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"vb[i] = Integer.parseInt(lines[0])",
"vb[i]",
"vb",
"i",
"Integer.parseInt(lines[0])",
"Integer.parseInt",
"Integer",
"lines[0]",
"lines",
"0",
"for( int i = 0; i < n; i++ ) {\n for( int j = 0; j < m; j++ ){\n vc[i] += mA[i][j] * vb[j];\n }\n System.out.println(vc[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 vc[i] += mA[i][j] * vb[j];\n }\n System.out.println(vc[i]);\n }",
"{\n for( int j = 0; j < m; j++ ){\n vc[i] += mA[i][j] * vb[j];\n }\n System.out.println(vc[i]);\n }",
"for( int j = 0; j < m; j++ ){\n vc[i] += mA[i][j] * vb[j];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n vc[i] += mA[i][j] * vb[j];\n }",
"{\n vc[i] += mA[i][j] * vb[j];\n }",
"vc[i] += mA[i][j] * vb[j]",
"vc[i]",
"vc",
"i",
"mA[i][j] * vb[j]",
"mA[i][j]",
"mA[i]",
"mA",
"i",
"j",
"vb[j]",
"vb",
"j",
"System.out.println(vc[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"vc[i]",
"vc",
"i",
"String[] args",
"args",
"public class Main{\n\n public static void main(String[] args) throws IOException {\n try ( BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) ) {\n\n String[] lines = br.readLine().split(\" \");\n int n = Integer.parseInt(lines[0]);\n int m = Integer.parseInt(lines[1]);\n int[][] mA = new int[n][m];\n int[] vb = new int[m];\n int[] vc = new int[n];\n\n for(int i = 0; i < n; i++ ) {\n lines = br.readLine().split(\" \");\n for( int j = 0; j < m; j++ ) {\n mA[i][j] = Integer.parseInt(lines[j]);\n }\n }\n for( int i = 0; i < m; i++ ) {\n lines = br.readLine().split(\" \");\n vb[i] = Integer.parseInt(lines[0]);\n }\n\n for( int i = 0; i < n; i++ ) {\n for( int j = 0; j < m; j++ ){\n vc[i] += mA[i][j] * vb[j];\n }\n System.out.println(vc[i]);\n }\n }\n }\n}",
"public class Main{\n\n public static void main(String[] args) throws IOException {\n try ( BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) ) {\n\n String[] lines = br.readLine().split(\" \");\n int n = Integer.parseInt(lines[0]);\n int m = Integer.parseInt(lines[1]);\n int[][] mA = new int[n][m];\n int[] vb = new int[m];\n int[] vc = new int[n];\n\n for(int i = 0; i < n; i++ ) {\n lines = br.readLine().split(\" \");\n for( int j = 0; j < m; j++ ) {\n mA[i][j] = Integer.parseInt(lines[j]);\n }\n }\n for( int i = 0; i < m; i++ ) {\n lines = br.readLine().split(\" \");\n vb[i] = Integer.parseInt(lines[0]);\n }\n\n for( int i = 0; i < n; i++ ) {\n for( int j = 0; j < m; j++ ){\n vc[i] += mA[i][j] * vb[j];\n }\n System.out.println(vc[i]);\n }\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 {
try ( BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) ) {
String[] lines = br.readLine().split(" ");
int n = Integer.parseInt(lines[0]);
int m = Integer.parseInt(lines[1]);
int[][] mA = new int[n][m];
int[] vb = new int[m];
int[] vc = new int[n];
for(int i = 0; i < n; i++ ) {
lines = br.readLine().split(" ");
for( int j = 0; j < m; j++ ) {
mA[i][j] = Integer.parseInt(lines[j]);
}
}
for( int i = 0; i < m; i++ ) {
lines = br.readLine().split(" ");
vb[i] = Integer.parseInt(lines[0]);
}
for( int i = 0; i < n; i++ ) {
for( int j = 0; j < m; j++ ){
vc[i] += mA[i][j] * vb[j];
}
System.out.println(vc[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,
2,
2,
17,
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,
2,
2,
17,
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,
13,
2,
18,
13,
2,
2,
17,
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
],
[
147,
8
],
[
147,
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
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
11,
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
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
11,
70
],
[
70,
71
],
[
70,
72
],
[
11,
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
],
[
11,
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
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
127,
135
],
[
135,
136
],
[
135,
137
],
[
106,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
9,
144
],
[
144,
145
],
[
0,
146
],
[
146,
147
],
[
146,
148
]
] | [
"import java.io.IOException;\nimport java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint n = sc.nextInt();\n\t\t\tint m = sc.nextInt();\n\t\t\tint []a = new int [100*n+m];\n\t\t\t\n\t\t\tfor(int b=0;b<n;b++){\n\t\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\t\ta[100*b+c] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint []b = new int[m];\n\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\tb[c] = sc.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tfor(int d=0;d<n;d++){\n\t\t\t\tint x=0;\n\t\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\t\tx=x+a[100*d+c]*b[c];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(x);\n\t\t\t}\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint n = sc.nextInt();\n\t\t\tint m = sc.nextInt();\n\t\t\tint []a = new int [100*n+m];\n\t\t\t\n\t\t\tfor(int b=0;b<n;b++){\n\t\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\t\ta[100*b+c] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint []b = new int[m];\n\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\tb[c] = sc.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tfor(int d=0;d<n;d++){\n\t\t\t\tint x=0;\n\t\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\t\tx=x+a[100*d+c]*b[c];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(x);\n\t\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint n = sc.nextInt();\n\t\t\tint m = sc.nextInt();\n\t\t\tint []a = new int [100*n+m];\n\t\t\t\n\t\t\tfor(int b=0;b<n;b++){\n\t\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\t\ta[100*b+c] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint []b = new int[m];\n\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\tb[c] = sc.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tfor(int d=0;d<n;d++){\n\t\t\t\tint x=0;\n\t\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\t\tx=x+a[100*d+c]*b[c];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(x);\n\t\t\t}\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint n = sc.nextInt();\n\t\t\tint m = sc.nextInt();\n\t\t\tint []a = new int [100*n+m];\n\t\t\t\n\t\t\tfor(int b=0;b<n;b++){\n\t\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\t\ta[100*b+c] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint []b = new int[m];\n\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\tb[c] = sc.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tfor(int d=0;d<n;d++){\n\t\t\t\tint x=0;\n\t\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\t\tx=x+a[100*d+c]*b[c];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(x);\n\t\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 []a = new int [100*n+m];",
"a",
"new int [100*n+m]",
"100*n+m",
"100*n",
"100",
"n",
"m",
"for(int b=0;b<n;b++){\n\t\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\t\ta[100*b+c] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}",
"int b=0;",
"int b=0;",
"b",
"0",
"b<n",
"b",
"n",
"b++",
"b++",
"b",
"{\n\t\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\t\ta[100*b+c] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\t\ta[100*b+c] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}",
"for(int c=0;c<m;c++){\n\t\t\t\t\ta[100*b+c] = sc.nextInt();\n\t\t\t\t}",
"int c=0;",
"int c=0;",
"c",
"0",
"c<m",
"c",
"m",
"c++",
"c++",
"c",
"{\n\t\t\t\t\ta[100*b+c] = sc.nextInt();\n\t\t\t\t}",
"{\n\t\t\t\t\ta[100*b+c] = sc.nextInt();\n\t\t\t\t}",
"a[100*b+c] = sc.nextInt()",
"a[100*b+c]",
"a",
"100*b+c",
"100*b",
"100",
"b",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int []b = new int[m];",
"b",
"new int[m]",
"m",
"for(int c=0;c<m;c++){\n\t\t\t\tb[c] = sc.nextInt();\n\t\t\t}",
"int c=0;",
"int c=0;",
"c",
"0",
"c<m",
"c",
"m",
"c++",
"c++",
"c",
"{\n\t\t\t\tb[c] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tb[c] = sc.nextInt();\n\t\t\t}",
"b[c] = sc.nextInt()",
"b[c]",
"b",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int d=0;d<n;d++){\n\t\t\t\tint x=0;\n\t\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\t\tx=x+a[100*d+c]*b[c];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(x);\n\t\t\t}",
"int d=0;",
"int d=0;",
"d",
"0",
"d<n",
"d",
"n",
"d++",
"d++",
"d",
"{\n\t\t\t\tint x=0;\n\t\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\t\tx=x+a[100*d+c]*b[c];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(x);\n\t\t\t}",
"{\n\t\t\t\tint x=0;\n\t\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\t\tx=x+a[100*d+c]*b[c];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(x);\n\t\t\t}",
"int x=0;",
"x",
"0",
"for(int c=0;c<m;c++){\n\t\t\t\t\tx=x+a[100*d+c]*b[c];\n\t\t\t\t}",
"int c=0;",
"int c=0;",
"c",
"0",
"c<m",
"c",
"m",
"c++",
"c++",
"c",
"{\n\t\t\t\t\tx=x+a[100*d+c]*b[c];\n\t\t\t\t}",
"{\n\t\t\t\t\tx=x+a[100*d+c]*b[c];\n\t\t\t\t}",
"x=x+a[100*d+c]*b[c]",
"x",
"x+a[100*d+c]*b[c]",
"x",
"a[100*d+c]*b[c]",
"a[100*d+c]",
"a",
"100*d+c",
"100*d",
"100",
"d",
"c",
"b[c]",
"b",
"c",
"System.out.println(x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint n = sc.nextInt();\n\t\t\tint m = sc.nextInt();\n\t\t\tint []a = new int [100*n+m];\n\t\t\t\n\t\t\tfor(int b=0;b<n;b++){\n\t\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\t\ta[100*b+c] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint []b = new int[m];\n\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\tb[c] = sc.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tfor(int d=0;d<n;d++){\n\t\t\t\tint x=0;\n\t\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\t\tx=x+a[100*d+c]*b[c];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(x);\n\t\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint n = sc.nextInt();\n\t\t\tint m = sc.nextInt();\n\t\t\tint []a = new int [100*n+m];\n\t\t\t\n\t\t\tfor(int b=0;b<n;b++){\n\t\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\t\ta[100*b+c] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint []b = new int[m];\n\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\tb[c] = sc.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tfor(int d=0;d<n;d++){\n\t\t\t\tint x=0;\n\t\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\t\tx=x+a[100*d+c]*b[c];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(x);\n\t\t\t}\n\t}\n}",
"Main"
] | import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
int []a = new int [100*n+m];
for(int b=0;b<n;b++){
for(int c=0;c<m;c++){
a[100*b+c] = sc.nextInt();
}
}
int []b = new int[m];
for(int c=0;c<m;c++){
b[c] = sc.nextInt();
}
for(int d=0;d<n;d++){
int x=0;
for(int c=0;c<m;c++){
x=x+a[100*d+c]*b[c];
}
System.out.println(x);
}
}
} |
[
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,
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,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
144,
8
],
[
144,
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
],
[
89,
91
],
[
11,
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
],
[
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
],
[
104,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
104,
135
],
[
135,
136
],
[
135,
137
],
[
11,
138
],
[
138,
139
],
[
139,
140
],
[
9,
141
],
[
141,
142
],
[
0,
143
],
[
143,
144
],
[
143,
145
]
] | [
"import java.io.IOException;\nimport java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\n\t\tint[][] v = new int[x][y];\n\t\tint[] a = new int[y];\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<y;j++) {\n\t\t\t\tv[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<y;i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\tint tmp = 0;\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<y;j++) {\n\t\t\t\ttmp += v[i][j] * a[j];\n\t\t\t}\n\t\t\tSystem.out.println(tmp);\n\t\t\ttmp = 0;\n\t\t}\n\t\tsc.close();\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\n\t\tint[][] v = new int[x][y];\n\t\tint[] a = new int[y];\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<y;j++) {\n\t\t\t\tv[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<y;i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\tint tmp = 0;\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<y;j++) {\n\t\t\t\ttmp += v[i][j] * a[j];\n\t\t\t}\n\t\t\tSystem.out.println(tmp);\n\t\t\ttmp = 0;\n\t\t}\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\n\t\tint[][] v = new int[x][y];\n\t\tint[] a = new int[y];\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<y;j++) {\n\t\t\t\tv[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<y;i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\tint tmp = 0;\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<y;j++) {\n\t\t\t\ttmp += v[i][j] * a[j];\n\t\t\t}\n\t\t\tSystem.out.println(tmp);\n\t\t\ttmp = 0;\n\t\t}\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\n\t\tint[][] v = new int[x][y];\n\t\tint[] a = new int[y];\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<y;j++) {\n\t\t\t\tv[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<y;i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\tint tmp = 0;\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<y;j++) {\n\t\t\t\ttmp += v[i][j] * a[j];\n\t\t\t}\n\t\t\tSystem.out.println(tmp);\n\t\t\ttmp = 0;\n\t\t}\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] v = new int[x][y];",
"v",
"new int[x][y]",
"x",
"y",
"int[] a = new int[y];",
"a",
"new int[y]",
"y",
"for(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<y;j++) {\n\t\t\t\tv[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<x",
"i",
"x",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<y;j++) {\n\t\t\t\tv[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<y;j++) {\n\t\t\t\tv[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int j=0;j<y;j++) {\n\t\t\t\tv[i][j] = sc.nextInt();\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<y",
"j",
"y",
"j++",
"j++",
"j",
"{\n\t\t\t\tv[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tv[i][j] = sc.nextInt();\n\t\t\t}",
"v[i][j] = sc.nextInt()",
"v[i][j]",
"v[i]",
"v",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i<y;i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<y",
"i",
"y",
"i++",
"i++",
"i",
"{\n\t\t\ta[i] = sc.nextInt();\n\t\t}",
"{\n\t\t\ta[i] = sc.nextInt();\n\t\t}",
"a[i] = sc.nextInt()",
"a[i]",
"a",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int tmp = 0;",
"tmp",
"0",
"for(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<y;j++) {\n\t\t\t\ttmp += v[i][j] * a[j];\n\t\t\t}\n\t\t\tSystem.out.println(tmp);\n\t\t\ttmp = 0;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<x",
"i",
"x",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<y;j++) {\n\t\t\t\ttmp += v[i][j] * a[j];\n\t\t\t}\n\t\t\tSystem.out.println(tmp);\n\t\t\ttmp = 0;\n\t\t}",
"{\n\t\t\tfor(int j=0;j<y;j++) {\n\t\t\t\ttmp += v[i][j] * a[j];\n\t\t\t}\n\t\t\tSystem.out.println(tmp);\n\t\t\ttmp = 0;\n\t\t}",
"for(int j=0;j<y;j++) {\n\t\t\t\ttmp += v[i][j] * a[j];\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<y",
"j",
"y",
"j++",
"j++",
"j",
"{\n\t\t\t\ttmp += v[i][j] * a[j];\n\t\t\t}",
"{\n\t\t\t\ttmp += v[i][j] * a[j];\n\t\t\t}",
"tmp += v[i][j] * a[j]",
"tmp",
"v[i][j] * a[j]",
"v[i][j]",
"v[i]",
"v",
"i",
"j",
"a[j]",
"a",
"j",
"System.out.println(tmp)",
"System.out.println",
"System.out",
"System",
"System.out",
"tmp",
"tmp = 0",
"tmp",
"0",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\n\t\tint[][] v = new int[x][y];\n\t\tint[] a = new int[y];\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<y;j++) {\n\t\t\t\tv[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<y;i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\tint tmp = 0;\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<y;j++) {\n\t\t\t\ttmp += v[i][j] * a[j];\n\t\t\t}\n\t\t\tSystem.out.println(tmp);\n\t\t\ttmp = 0;\n\t\t}\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\n\t\tint[][] v = new int[x][y];\n\t\tint[] a = new int[y];\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<y;j++) {\n\t\t\t\tv[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<y;i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\tint tmp = 0;\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<y;j++) {\n\t\t\t\ttmp += v[i][j] * a[j];\n\t\t\t}\n\t\t\tSystem.out.println(tmp);\n\t\t\ttmp = 0;\n\t\t}\n\t\tsc.close();\n\t}\n}",
"Main"
] | import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException{
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
int[][] v = new int[x][y];
int[] a = new int[y];
for(int i=0;i<x;i++) {
for(int j=0;j<y;j++) {
v[i][j] = sc.nextInt();
}
}
for(int i=0;i<y;i++) {
a[i] = sc.nextInt();
}
int tmp = 0;
for(int i=0;i<x;i++) {
for(int j=0;j<y;j++) {
tmp += v[i][j] * a[j];
}
System.out.println(tmp);
tmp = 0;
}
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,
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,
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
],
[
150,
5
],
[
150,
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
],
[
127,
129
],
[
126,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
130,
136
],
[
136,
137
],
[
136,
138
],
[
108,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
144,
145
],
[
144,
146
],
[
6,
147
],
[
147,
148
],
[
0,
149
],
[
149,
150
],
[
149,
151
]
] | [
"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[m][n];\n\t\tint[] b = new int [m];\n\t\tint [] calc = 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\tint c = sc.nextInt();\n\t\t\t\ta[j][i] = c;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i < m;i++) {\n\t\t\tint c = sc.nextInt();\n\t\t\tb[i] = c;\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\tcalc[i] = calc[i] + (a[j][i] * b[j]);\n\t\t\t}\n\t\t\tSystem.out.println(calc[i]);\n\t\t}\n\t}\n}\n\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[m][n];\n\t\tint[] b = new int [m];\n\t\tint [] calc = 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\tint c = sc.nextInt();\n\t\t\t\ta[j][i] = c;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i < m;i++) {\n\t\t\tint c = sc.nextInt();\n\t\t\tb[i] = c;\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\tcalc[i] = calc[i] + (a[j][i] * b[j]);\n\t\t\t}\n\t\t\tSystem.out.println(calc[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[][] a = new int[m][n];\n\t\tint[] b = new int [m];\n\t\tint [] calc = 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\tint c = sc.nextInt();\n\t\t\t\ta[j][i] = c;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i < m;i++) {\n\t\t\tint c = sc.nextInt();\n\t\t\tb[i] = c;\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\tcalc[i] = calc[i] + (a[j][i] * b[j]);\n\t\t\t}\n\t\t\tSystem.out.println(calc[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[][] a = new int[m][n];\n\t\tint[] b = new int [m];\n\t\tint [] calc = 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\tint c = sc.nextInt();\n\t\t\t\ta[j][i] = c;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i < m;i++) {\n\t\t\tint c = sc.nextInt();\n\t\t\tb[i] = c;\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\tcalc[i] = calc[i] + (a[j][i] * b[j]);\n\t\t\t}\n\t\t\tSystem.out.println(calc[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[][] a = new int[m][n];",
"a",
"new int[m][n]",
"m",
"n",
"int[] b = new int [m];",
"b",
"new int [m]",
"m",
"int [] calc = new int[n];",
"calc",
"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 c = sc.nextInt();\n\t\t\t\ta[j][i] = c;\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 c = sc.nextInt();\n\t\t\t\ta[j][i] = c;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0;j < m;j++) {\n\t\t\t\tint c = sc.nextInt();\n\t\t\t\ta[j][i] = c;\n\t\t\t}\n\t\t}",
"for(int j = 0;j < m;j++) {\n\t\t\t\tint c = sc.nextInt();\n\t\t\t\ta[j][i] = 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 c = sc.nextInt();\n\t\t\t\ta[j][i] = c;\n\t\t\t}",
"{\n\t\t\t\tint c = sc.nextInt();\n\t\t\t\ta[j][i] = c;\n\t\t\t}",
"int c = sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a[j][i] = c",
"a[j][i]",
"a[j]",
"a",
"j",
"i",
"c",
"for(int i = 0;i < m;i++) {\n\t\t\tint c = sc.nextInt();\n\t\t\tb[i] = c;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tint c = sc.nextInt();\n\t\t\tb[i] = c;\n\t\t}",
"{\n\t\t\tint c = sc.nextInt();\n\t\t\tb[i] = c;\n\t\t}",
"int c = sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"b[i] = c",
"b[i]",
"b",
"i",
"c",
"for(int i = 0;i < n;i++) {\n\t\t\tfor(int j = 0;j < m;j++) {\n\t\t\t\tcalc[i] = calc[i] + (a[j][i] * b[j]);\n\t\t\t}\n\t\t\tSystem.out.println(calc[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\tcalc[i] = calc[i] + (a[j][i] * b[j]);\n\t\t\t}\n\t\t\tSystem.out.println(calc[i]);\n\t\t}",
"{\n\t\t\tfor(int j = 0;j < m;j++) {\n\t\t\t\tcalc[i] = calc[i] + (a[j][i] * b[j]);\n\t\t\t}\n\t\t\tSystem.out.println(calc[i]);\n\t\t}",
"for(int j = 0;j < m;j++) {\n\t\t\t\tcalc[i] = calc[i] + (a[j][i] * 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\tcalc[i] = calc[i] + (a[j][i] * b[j]);\n\t\t\t}",
"{\n\t\t\t\tcalc[i] = calc[i] + (a[j][i] * b[j]);\n\t\t\t}",
"calc[i] = calc[i] + (a[j][i] * b[j])",
"calc[i]",
"calc",
"i",
"calc[i] + (a[j][i] * b[j])",
"calc[i]",
"calc",
"i",
"(a[j][i] * b[j])",
"a[j][i]",
"a[j]",
"a",
"j",
"i",
"b[j]",
"b",
"j",
"System.out.println(calc[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"calc[i]",
"calc",
"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[][] a = new int[m][n];\n\t\tint[] b = new int [m];\n\t\tint [] calc = 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\tint c = sc.nextInt();\n\t\t\t\ta[j][i] = c;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i < m;i++) {\n\t\t\tint c = sc.nextInt();\n\t\t\tb[i] = c;\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\tcalc[i] = calc[i] + (a[j][i] * b[j]);\n\t\t\t}\n\t\t\tSystem.out.println(calc[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[][] a = new int[m][n];\n\t\tint[] b = new int [m];\n\t\tint [] calc = 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\tint c = sc.nextInt();\n\t\t\t\ta[j][i] = c;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i < m;i++) {\n\t\t\tint c = sc.nextInt();\n\t\t\tb[i] = c;\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\tcalc[i] = calc[i] + (a[j][i] * b[j]);\n\t\t\t}\n\t\t\tSystem.out.println(calc[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[][] a = new int[m][n];
int[] b = new int [m];
int [] calc = new int[n];
for(int i = 0;i < n;i++ ) {
for(int j = 0;j < m;j++) {
int c = sc.nextInt();
a[j][i] = c;
}
}
for(int i = 0;i < m;i++) {
int c = sc.nextInt();
b[i] = c;
}
for(int i = 0;i < n;i++) {
for(int j = 0;j < m;j++) {
calc[i] = calc[i] + (a[j][i] * b[j]);
}
System.out.println(calc[i]);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
20,
13,
13,
0,
13,
20,
13,
17,
0,
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,
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
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
8,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
42
],
[
42,
43
],
[
42,
44
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
50,
60
],
[
60,
61
],
[
61,
62
],
[
50,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
65,
77
],
[
77,
78
],
[
78,
79
],
[
65,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
82,
88
],
[
88,
89
],
[
89,
90
],
[
64,
91
],
[
91,
92
],
[
92,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
101,
103
],
[
94,
104
],
[
104,
105
],
[
105,
106
],
[
94,
107
],
[
108,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
109,
115
],
[
115,
116
],
[
116,
117
],
[
108,
118
],
[
118,
119
],
[
119,
120
],
[
8,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
128,
130
],
[
121,
131
],
[
131,
132
],
[
132,
133
],
[
121,
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
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
139,
151
],
[
151,
152
],
[
152,
153
],
[
139,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
157,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
163,
167
],
[
135,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
168,
174
],
[
8,
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
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
190,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
195,
199
],
[
6,
200
],
[
200,
201
]
] | [
"import java.util.Scanner;\n \nclass Main{\n public static void main(String[] arg){\n int rows,cols;\n int [][] a,b,c;\n\n Scanner in = new Scanner(System.in);\n\n rows = in.nextInt();\n cols = in.nextInt();\n\n a = new int[rows][cols];\n b = new int[cols][1];\n c = new int[rows][1];\n in.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] = in.nextInt();\n }\n in.nextLine();\n }\n\n for(int i=0; i<b.length; i++){\n b[i][0] = in.nextInt();\n in.nextLine();\n }\n\n for(int i=0; i<a.length; i++){\n int tmp = 0;\n for(int j=0; j<a[0].length; j++)\n tmp += a[i][j]*b[j][0];\n c[i][0] = tmp;\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[] arg){\n int rows,cols;\n int [][] a,b,c;\n\n Scanner in = new Scanner(System.in);\n\n rows = in.nextInt();\n cols = in.nextInt();\n\n a = new int[rows][cols];\n b = new int[cols][1];\n c = new int[rows][1];\n in.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] = in.nextInt();\n }\n in.nextLine();\n }\n\n for(int i=0; i<b.length; i++){\n b[i][0] = in.nextInt();\n in.nextLine();\n }\n\n for(int i=0; i<a.length; i++){\n int tmp = 0;\n for(int j=0; j<a[0].length; j++)\n tmp += a[i][j]*b[j][0];\n c[i][0] = tmp;\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[] arg){\n int rows,cols;\n int [][] a,b,c;\n\n Scanner in = new Scanner(System.in);\n\n rows = in.nextInt();\n cols = in.nextInt();\n\n a = new int[rows][cols];\n b = new int[cols][1];\n c = new int[rows][1];\n in.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] = in.nextInt();\n }\n in.nextLine();\n }\n\n for(int i=0; i<b.length; i++){\n b[i][0] = in.nextInt();\n in.nextLine();\n }\n\n for(int i=0; i<a.length; i++){\n int tmp = 0;\n for(int j=0; j<a[0].length; j++)\n tmp += a[i][j]*b[j][0];\n c[i][0] = tmp;\n }\n\n for(int i=0; i<c.length; i++){\n System.out.println(c[i][0]);\n }\n }",
"main",
"{\n int rows,cols;\n int [][] a,b,c;\n\n Scanner in = new Scanner(System.in);\n\n rows = in.nextInt();\n cols = in.nextInt();\n\n a = new int[rows][cols];\n b = new int[cols][1];\n c = new int[rows][1];\n in.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] = in.nextInt();\n }\n in.nextLine();\n }\n\n for(int i=0; i<b.length; i++){\n b[i][0] = in.nextInt();\n in.nextLine();\n }\n\n for(int i=0; i<a.length; i++){\n int tmp = 0;\n for(int j=0; j<a[0].length; j++)\n tmp += a[i][j]*b[j][0];\n c[i][0] = tmp;\n }\n\n for(int i=0; i<c.length; i++){\n System.out.println(c[i][0]);\n }\n }",
"int rows",
"rows",
"cols;",
"cols",
"int [][] a",
"a",
"b",
"b",
"c;",
"c",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"rows = in.nextInt()",
"rows",
"in.nextInt()",
"in.nextInt",
"in",
"cols = in.nextInt()",
"cols",
"in.nextInt()",
"in.nextInt",
"in",
"a = new int[rows][cols]",
"a",
"new int[rows][cols]",
"rows",
"cols",
"b = new int[cols][1]",
"b",
"new int[cols][1]",
"cols",
"1",
"c = new int[rows][1]",
"c",
"new int[rows][1]",
"rows",
"1",
"in.nextLine()",
"in.nextLine",
"in",
"for(int i=0; i<a.length; i++){\n for(int j=0; j<a[0].length; j++){\n a[i][j] = in.nextInt();\n }\n in.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] = in.nextInt();\n }\n in.nextLine();\n }",
"{\n for(int j=0; j<a[0].length; j++){\n a[i][j] = in.nextInt();\n }\n in.nextLine();\n }",
"for(int j=0; j<a[0].length; j++){\n a[i][j] = in.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] = in.nextInt();\n }",
"{\n a[i][j] = in.nextInt();\n }",
"a[i][j] = in.nextInt()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"in.nextInt()",
"in.nextInt",
"in",
"in.nextLine()",
"in.nextLine",
"in",
"for(int i=0; i<b.length; i++){\n b[i][0] = in.nextInt();\n in.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] = in.nextInt();\n in.nextLine();\n }",
"{\n b[i][0] = in.nextInt();\n in.nextLine();\n }",
"b[i][0] = in.nextInt()",
"b[i][0]",
"b[i]",
"b",
"i",
"0",
"in.nextInt()",
"in.nextInt",
"in",
"in.nextLine()",
"in.nextLine",
"in",
"for(int i=0; i<a.length; i++){\n int tmp = 0;\n for(int j=0; j<a[0].length; j++)\n tmp += a[i][j]*b[j][0];\n c[i][0] = tmp;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"{\n int tmp = 0;\n for(int j=0; j<a[0].length; j++)\n tmp += a[i][j]*b[j][0];\n c[i][0] = tmp;\n }",
"{\n int tmp = 0;\n for(int j=0; j<a[0].length; j++)\n tmp += a[i][j]*b[j][0];\n c[i][0] = tmp;\n }",
"int tmp = 0;",
"tmp",
"0",
"for(int j=0; j<a[0].length; j++)\n tmp += a[i][j]*b[j][0];",
"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",
"tmp += a[i][j]*b[j][0];",
"tmp += a[i][j]*b[j][0]",
"tmp",
"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] = tmp",
"c[i][0]",
"c[i]",
"c",
"i",
"0",
"tmp",
"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[] arg",
"arg"
] | import java.util.Scanner;
class Main{
public static void main(String[] arg){
int rows,cols;
int [][] a,b,c;
Scanner in = new Scanner(System.in);
rows = in.nextInt();
cols = in.nextInt();
a = new int[rows][cols];
b = new int[cols][1];
c = new int[rows][1];
in.nextLine();
for(int i=0; i<a.length; i++){
for(int j=0; j<a[0].length; j++){
a[i][j] = in.nextInt();
}
in.nextLine();
}
for(int i=0; i<b.length; i++){
b[i][0] = in.nextInt();
in.nextLine();
}
for(int i=0; i<a.length; i++){
int tmp = 0;
for(int j=0; j<a[0].length; j++)
tmp += a[i][j]*b[j][0];
c[i][0] = tmp;
}
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,
41,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
38,
30,
4,
18,
13,
30,
0,
13,
20,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
20,
18,
13,
17,
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,
0,
13,
20,
18,
13,
17,
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,
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,
0,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
183,
5
],
[
183,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
13,
15
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
23,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
32,
42
],
[
42,
43
],
[
43,
44
],
[
32,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
52,
53
],
[
28,
54
],
[
54,
55
],
[
54,
56
],
[
57,
58
],
[
57,
59
],
[
60,
61
],
[
60,
62
],
[
28,
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
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
78,
88
],
[
88,
89
],
[
89,
90
],
[
78,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
93,
99
],
[
99,
100
],
[
100,
101
],
[
28,
102
],
[
102,
103
],
[
102,
104
],
[
105,
106
],
[
105,
107
],
[
28,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
115,
117
],
[
108,
118
],
[
118,
119
],
[
119,
120
],
[
108,
121
],
[
122,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
127,
128
],
[
128,
129
],
[
28,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
137,
139
],
[
130,
140
],
[
140,
141
],
[
141,
142
],
[
130,
143
],
[
144,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
145,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
152,
154
],
[
145,
155
],
[
155,
156
],
[
156,
157
],
[
145,
158
],
[
159,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
163,
167
],
[
162,
168
],
[
168,
169
],
[
168,
170
],
[
144,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
171,
176
],
[
144,
177
],
[
177,
178
],
[
177,
179
],
[
6,
180
],
[
180,
181
],
[
0,
182
],
[
182,
183
],
[
182,
184
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t//?????ยฃ?????????\n\t\tint[][] boxN;\n\t\tint[] boxM;\n\t\tint[] InputList = new int[2];\n\n\t\tint anser = 0;\n\n\t\tScanner sc = null;\n\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\tfor (int i = 0; i < InputList.length; i++) {\n\t\t\t\tInputList[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t//??????N?????????\n\t\t\tboxN = new int[InputList[0]][InputList[1]];\n\n\t\t\tfor (int i = 0; i < InputList[0]; i++) {\n\n\t\t\t\t//N??????????????????\n\t\t\t\tfor (int j = 0; j < InputList[1]; j++) {\n\n\t\t\t\t\tboxN[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//??????M?????????\n\t\t\tboxM = new int[InputList[1]];\n\n\t\t\tfor (int i = 0; i < InputList[1]; i++) {\n\t\t\t\tboxM[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t//?ยจ????\n\t\t\tfor (int i = 0; i < InputList[0]; i++) {\n\t\t\t\tfor (int j = 0; j < InputList[1]; j++) {\n\n\t\t\t\t\tanser += boxN[i][j] * boxM[j];\n\t\t\t\t}\n\t\t\t\t//???????????????\n\t\t\t\tSystem.out.println(anser);\n\t\t\t\t//????????????\n\t\t\t\tanser = 0;\n\t\t\t}\n\t\t} finally {\n\t\t\tsc.close();\n\t\t}\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t//?????ยฃ?????????\n\t\tint[][] boxN;\n\t\tint[] boxM;\n\t\tint[] InputList = new int[2];\n\n\t\tint anser = 0;\n\n\t\tScanner sc = null;\n\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\tfor (int i = 0; i < InputList.length; i++) {\n\t\t\t\tInputList[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t//??????N?????????\n\t\t\tboxN = new int[InputList[0]][InputList[1]];\n\n\t\t\tfor (int i = 0; i < InputList[0]; i++) {\n\n\t\t\t\t//N??????????????????\n\t\t\t\tfor (int j = 0; j < InputList[1]; j++) {\n\n\t\t\t\t\tboxN[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//??????M?????????\n\t\t\tboxM = new int[InputList[1]];\n\n\t\t\tfor (int i = 0; i < InputList[1]; i++) {\n\t\t\t\tboxM[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t//?ยจ????\n\t\t\tfor (int i = 0; i < InputList[0]; i++) {\n\t\t\t\tfor (int j = 0; j < InputList[1]; j++) {\n\n\t\t\t\t\tanser += boxN[i][j] * boxM[j];\n\t\t\t\t}\n\t\t\t\t//???????????????\n\t\t\t\tSystem.out.println(anser);\n\t\t\t\t//????????????\n\t\t\t\tanser = 0;\n\t\t\t}\n\t\t} finally {\n\t\t\tsc.close();\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\t//?????ยฃ?????????\n\t\tint[][] boxN;\n\t\tint[] boxM;\n\t\tint[] InputList = new int[2];\n\n\t\tint anser = 0;\n\n\t\tScanner sc = null;\n\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\tfor (int i = 0; i < InputList.length; i++) {\n\t\t\t\tInputList[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t//??????N?????????\n\t\t\tboxN = new int[InputList[0]][InputList[1]];\n\n\t\t\tfor (int i = 0; i < InputList[0]; i++) {\n\n\t\t\t\t//N??????????????????\n\t\t\t\tfor (int j = 0; j < InputList[1]; j++) {\n\n\t\t\t\t\tboxN[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//??????M?????????\n\t\t\tboxM = new int[InputList[1]];\n\n\t\t\tfor (int i = 0; i < InputList[1]; i++) {\n\t\t\t\tboxM[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t//?ยจ????\n\t\t\tfor (int i = 0; i < InputList[0]; i++) {\n\t\t\t\tfor (int j = 0; j < InputList[1]; j++) {\n\n\t\t\t\t\tanser += boxN[i][j] * boxM[j];\n\t\t\t\t}\n\t\t\t\t//???????????????\n\t\t\t\tSystem.out.println(anser);\n\t\t\t\t//????????????\n\t\t\t\tanser = 0;\n\t\t\t}\n\t\t} finally {\n\t\t\tsc.close();\n\t\t}\n\n\t}",
"main",
"{\n\n\t\t//?????ยฃ?????????\n\t\tint[][] boxN;\n\t\tint[] boxM;\n\t\tint[] InputList = new int[2];\n\n\t\tint anser = 0;\n\n\t\tScanner sc = null;\n\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\tfor (int i = 0; i < InputList.length; i++) {\n\t\t\t\tInputList[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t//??????N?????????\n\t\t\tboxN = new int[InputList[0]][InputList[1]];\n\n\t\t\tfor (int i = 0; i < InputList[0]; i++) {\n\n\t\t\t\t//N??????????????????\n\t\t\t\tfor (int j = 0; j < InputList[1]; j++) {\n\n\t\t\t\t\tboxN[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//??????M?????????\n\t\t\tboxM = new int[InputList[1]];\n\n\t\t\tfor (int i = 0; i < InputList[1]; i++) {\n\t\t\t\tboxM[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t//?ยจ????\n\t\t\tfor (int i = 0; i < InputList[0]; i++) {\n\t\t\t\tfor (int j = 0; j < InputList[1]; j++) {\n\n\t\t\t\t\tanser += boxN[i][j] * boxM[j];\n\t\t\t\t}\n\t\t\t\t//???????????????\n\t\t\t\tSystem.out.println(anser);\n\t\t\t\t//????????????\n\t\t\t\tanser = 0;\n\t\t\t}\n\t\t} finally {\n\t\t\tsc.close();\n\t\t}\n\n\t}",
"int[][] boxN;",
"boxN",
"int[] boxM;",
"boxM",
"int[] InputList = new int[2];",
"InputList",
"new int[2]",
"2",
"int anser = 0;",
"anser",
"0",
"Scanner sc = null;",
"sc",
"null",
"try {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\tfor (int i = 0; i < InputList.length; i++) {\n\t\t\t\tInputList[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t//??????N?????????\n\t\t\tboxN = new int[InputList[0]][InputList[1]];\n\n\t\t\tfor (int i = 0; i < InputList[0]; i++) {\n\n\t\t\t\t//N??????????????????\n\t\t\t\tfor (int j = 0; j < InputList[1]; j++) {\n\n\t\t\t\t\tboxN[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//??????M?????????\n\t\t\tboxM = new int[InputList[1]];\n\n\t\t\tfor (int i = 0; i < InputList[1]; i++) {\n\t\t\t\tboxM[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t//?ยจ????\n\t\t\tfor (int i = 0; i < InputList[0]; i++) {\n\t\t\t\tfor (int j = 0; j < InputList[1]; j++) {\n\n\t\t\t\t\tanser += boxN[i][j] * boxM[j];\n\t\t\t\t}\n\t\t\t\t//???????????????\n\t\t\t\tSystem.out.println(anser);\n\t\t\t\t//????????????\n\t\t\t\tanser = 0;\n\t\t\t}\n\t\t} finally {\n\t\t\tsc.close();\n\t\t}",
"{\n\t\t\tsc.close();\n\t\t}",
"sc.close()",
"sc.close",
"sc",
"{\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\tfor (int i = 0; i < InputList.length; i++) {\n\t\t\t\tInputList[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t//??????N?????????\n\t\t\tboxN = new int[InputList[0]][InputList[1]];\n\n\t\t\tfor (int i = 0; i < InputList[0]; i++) {\n\n\t\t\t\t//N??????????????????\n\t\t\t\tfor (int j = 0; j < InputList[1]; j++) {\n\n\t\t\t\t\tboxN[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//??????M?????????\n\t\t\tboxM = new int[InputList[1]];\n\n\t\t\tfor (int i = 0; i < InputList[1]; i++) {\n\t\t\t\tboxM[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t//?ยจ????\n\t\t\tfor (int i = 0; i < InputList[0]; i++) {\n\t\t\t\tfor (int j = 0; j < InputList[1]; j++) {\n\n\t\t\t\t\tanser += boxN[i][j] * boxM[j];\n\t\t\t\t}\n\t\t\t\t//???????????????\n\t\t\t\tSystem.out.println(anser);\n\t\t\t\t//????????????\n\t\t\t\tanser = 0;\n\t\t\t}\n\t\t}",
"sc = new Scanner(System.in)",
"sc",
"new Scanner(System.in)",
"for (int i = 0; i < InputList.length; i++) {\n\t\t\t\tInputList[i] = sc.nextInt();\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < InputList.length",
"i",
"InputList.length",
"InputList",
"InputList.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tInputList[i] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tInputList[i] = sc.nextInt();\n\t\t\t}",
"InputList[i] = sc.nextInt()",
"InputList[i]",
"InputList",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"boxN = new int[InputList[0]][InputList[1]]",
"boxN",
"new int[InputList[0]][InputList[1]]",
"InputList[0]",
"InputList",
"0",
"InputList[1]",
"InputList",
"1",
"for (int i = 0; i < InputList[0]; i++) {\n\n\t\t\t\t//N??????????????????\n\t\t\t\tfor (int j = 0; j < InputList[1]; j++) {\n\n\t\t\t\t\tboxN[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < InputList[0]",
"i",
"InputList[0]",
"InputList",
"0",
"i++",
"i++",
"i",
"{\n\n\t\t\t\t//N??????????????????\n\t\t\t\tfor (int j = 0; j < InputList[1]; j++) {\n\n\t\t\t\t\tboxN[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}",
"{\n\n\t\t\t\t//N??????????????????\n\t\t\t\tfor (int j = 0; j < InputList[1]; j++) {\n\n\t\t\t\t\tboxN[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}",
"for (int j = 0; j < InputList[1]; j++) {\n\n\t\t\t\t\tboxN[i][j] = sc.nextInt();\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < InputList[1]",
"j",
"InputList[1]",
"InputList",
"1",
"j++",
"j++",
"j",
"{\n\n\t\t\t\t\tboxN[i][j] = sc.nextInt();\n\t\t\t\t}",
"{\n\n\t\t\t\t\tboxN[i][j] = sc.nextInt();\n\t\t\t\t}",
"boxN[i][j] = sc.nextInt()",
"boxN[i][j]",
"boxN[i]",
"boxN",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"boxM = new int[InputList[1]]",
"boxM",
"new int[InputList[1]]",
"InputList[1]",
"InputList",
"1",
"for (int i = 0; i < InputList[1]; i++) {\n\t\t\t\tboxM[i] = sc.nextInt();\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < InputList[1]",
"i",
"InputList[1]",
"InputList",
"1",
"i++",
"i++",
"i",
"{\n\t\t\t\tboxM[i] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tboxM[i] = sc.nextInt();\n\t\t\t}",
"boxM[i] = sc.nextInt()",
"boxM[i]",
"boxM",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < InputList[0]; i++) {\n\t\t\t\tfor (int j = 0; j < InputList[1]; j++) {\n\n\t\t\t\t\tanser += boxN[i][j] * boxM[j];\n\t\t\t\t}\n\t\t\t\t//???????????????\n\t\t\t\tSystem.out.println(anser);\n\t\t\t\t//????????????\n\t\t\t\tanser = 0;\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < InputList[0]",
"i",
"InputList[0]",
"InputList",
"0",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor (int j = 0; j < InputList[1]; j++) {\n\n\t\t\t\t\tanser += boxN[i][j] * boxM[j];\n\t\t\t\t}\n\t\t\t\t//???????????????\n\t\t\t\tSystem.out.println(anser);\n\t\t\t\t//????????????\n\t\t\t\tanser = 0;\n\t\t\t}",
"{\n\t\t\t\tfor (int j = 0; j < InputList[1]; j++) {\n\n\t\t\t\t\tanser += boxN[i][j] * boxM[j];\n\t\t\t\t}\n\t\t\t\t//???????????????\n\t\t\t\tSystem.out.println(anser);\n\t\t\t\t//????????????\n\t\t\t\tanser = 0;\n\t\t\t}",
"for (int j = 0; j < InputList[1]; j++) {\n\n\t\t\t\t\tanser += boxN[i][j] * boxM[j];\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < InputList[1]",
"j",
"InputList[1]",
"InputList",
"1",
"j++",
"j++",
"j",
"{\n\n\t\t\t\t\tanser += boxN[i][j] * boxM[j];\n\t\t\t\t}",
"{\n\n\t\t\t\t\tanser += boxN[i][j] * boxM[j];\n\t\t\t\t}",
"anser += boxN[i][j] * boxM[j]",
"anser",
"boxN[i][j] * boxM[j]",
"boxN[i][j]",
"boxN[i]",
"boxN",
"i",
"j",
"boxM[j]",
"boxM",
"j",
"System.out.println(anser)",
"System.out.println",
"System.out",
"System",
"System.out",
"anser",
"anser = 0",
"anser",
"0",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t//?????ยฃ?????????\n\t\tint[][] boxN;\n\t\tint[] boxM;\n\t\tint[] InputList = new int[2];\n\n\t\tint anser = 0;\n\n\t\tScanner sc = null;\n\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\tfor (int i = 0; i < InputList.length; i++) {\n\t\t\t\tInputList[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t//??????N?????????\n\t\t\tboxN = new int[InputList[0]][InputList[1]];\n\n\t\t\tfor (int i = 0; i < InputList[0]; i++) {\n\n\t\t\t\t//N??????????????????\n\t\t\t\tfor (int j = 0; j < InputList[1]; j++) {\n\n\t\t\t\t\tboxN[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//??????M?????????\n\t\t\tboxM = new int[InputList[1]];\n\n\t\t\tfor (int i = 0; i < InputList[1]; i++) {\n\t\t\t\tboxM[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t//?ยจ????\n\t\t\tfor (int i = 0; i < InputList[0]; i++) {\n\t\t\t\tfor (int j = 0; j < InputList[1]; j++) {\n\n\t\t\t\t\tanser += boxN[i][j] * boxM[j];\n\t\t\t\t}\n\t\t\t\t//???????????????\n\t\t\t\tSystem.out.println(anser);\n\t\t\t\t//????????????\n\t\t\t\tanser = 0;\n\t\t\t}\n\t\t} finally {\n\t\t\tsc.close();\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t//?????ยฃ?????????\n\t\tint[][] boxN;\n\t\tint[] boxM;\n\t\tint[] InputList = new int[2];\n\n\t\tint anser = 0;\n\n\t\tScanner sc = null;\n\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\tfor (int i = 0; i < InputList.length; i++) {\n\t\t\t\tInputList[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t//??????N?????????\n\t\t\tboxN = new int[InputList[0]][InputList[1]];\n\n\t\t\tfor (int i = 0; i < InputList[0]; i++) {\n\n\t\t\t\t//N??????????????????\n\t\t\t\tfor (int j = 0; j < InputList[1]; j++) {\n\n\t\t\t\t\tboxN[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//??????M?????????\n\t\t\tboxM = new int[InputList[1]];\n\n\t\t\tfor (int i = 0; i < InputList[1]; i++) {\n\t\t\t\tboxM[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t//?ยจ????\n\t\t\tfor (int i = 0; i < InputList[0]; i++) {\n\t\t\t\tfor (int j = 0; j < InputList[1]; j++) {\n\n\t\t\t\t\tanser += boxN[i][j] * boxM[j];\n\t\t\t\t}\n\t\t\t\t//???????????????\n\t\t\t\tSystem.out.println(anser);\n\t\t\t\t//????????????\n\t\t\t\tanser = 0;\n\t\t\t}\n\t\t} finally {\n\t\t\tsc.close();\n\t\t}\n\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
//?????ยฃ?????????
int[][] boxN;
int[] boxM;
int[] InputList = new int[2];
int anser = 0;
Scanner sc = null;
try {
sc = new Scanner(System.in);
for (int i = 0; i < InputList.length; i++) {
InputList[i] = sc.nextInt();
}
//??????N?????????
boxN = new int[InputList[0]][InputList[1]];
for (int i = 0; i < InputList[0]; i++) {
//N??????????????????
for (int j = 0; j < InputList[1]; j++) {
boxN[i][j] = sc.nextInt();
}
}
//??????M?????????
boxM = new int[InputList[1]];
for (int i = 0; i < InputList[1]; i++) {
boxM[i] = sc.nextInt();
}
//?ยจ????
for (int i = 0; i < InputList[0]; i++) {
for (int j = 0; j < InputList[1]; j++) {
anser += boxN[i][j] * boxM[j];
}
//???????????????
System.out.println(anser);
//????????????
anser = 0;
}
} finally {
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,
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,
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,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
171,
8
],
[
171,
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
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
28,
30
],
[
11,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
36,
38
],
[
11,
39
],
[
39,
40
],
[
39,
41
],
[
11,
44
],
[
44,
45
],
[
44,
46
],
[
11,
48
],
[
48,
49
],
[
48,
50
],
[
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
],
[
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
],
[
112,
114
],
[
111,
115
],
[
115,
116
],
[
116,
117
],
[
11,
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
],
[
11,
157
],
[
157,
158
],
[
157,
159
],
[
157,
160
],
[
161,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
9,
168
],
[
168,
169
],
[
0,
170
],
[
170,
171
],
[
170,
172
]
] | [
"import java.util.*;\nimport java.lang.StringBuilder;\npublic class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] st = sc.nextLine().split(\" \");\n\t\tint h = Integer.parseInt(st[0]);\n\t\tint w = Integer.parseInt(st[1]);\n\t\tint[][] a = new int[h][w];\n\t\tint[] b = new int[w];\n\t\tint[] c = new int[h];\n\t\tfor(int i = 0;i < h;i++){\n\t\t\tst = sc.nextLine().split(\" \");\n\t\t\tfor(int o = 0;o < w;o++){\n\t\t\t\ta[i][o] = Integer.parseInt(st[o]);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i < w;i++){\n\t\t\tb[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0;i < h;i++){\n\t\t\tfor(int o = 0;o < w;o++){\n\t\t\t\tc[i] += a[i][o] * b[o];\n\t\t\t}\n\t\t}\n\t\tfor(int i:c){\n\t\t\tSystem.out.println(i);\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.StringBuilder;",
"StringBuilder",
"java.lang",
"public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] st = sc.nextLine().split(\" \");\n\t\tint h = Integer.parseInt(st[0]);\n\t\tint w = Integer.parseInt(st[1]);\n\t\tint[][] a = new int[h][w];\n\t\tint[] b = new int[w];\n\t\tint[] c = new int[h];\n\t\tfor(int i = 0;i < h;i++){\n\t\t\tst = sc.nextLine().split(\" \");\n\t\t\tfor(int o = 0;o < w;o++){\n\t\t\t\ta[i][o] = Integer.parseInt(st[o]);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i < w;i++){\n\t\t\tb[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0;i < h;i++){\n\t\t\tfor(int o = 0;o < w;o++){\n\t\t\t\tc[i] += a[i][o] * b[o];\n\t\t\t}\n\t\t}\n\t\tfor(int i:c){\n\t\t\tSystem.out.println(i);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] st = sc.nextLine().split(\" \");\n\t\tint h = Integer.parseInt(st[0]);\n\t\tint w = Integer.parseInt(st[1]);\n\t\tint[][] a = new int[h][w];\n\t\tint[] b = new int[w];\n\t\tint[] c = new int[h];\n\t\tfor(int i = 0;i < h;i++){\n\t\t\tst = sc.nextLine().split(\" \");\n\t\t\tfor(int o = 0;o < w;o++){\n\t\t\t\ta[i][o] = Integer.parseInt(st[o]);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i < w;i++){\n\t\t\tb[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0;i < h;i++){\n\t\t\tfor(int o = 0;o < w;o++){\n\t\t\t\tc[i] += a[i][o] * b[o];\n\t\t\t}\n\t\t}\n\t\tfor(int i:c){\n\t\t\tSystem.out.println(i);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] st = sc.nextLine().split(\" \");\n\t\tint h = Integer.parseInt(st[0]);\n\t\tint w = Integer.parseInt(st[1]);\n\t\tint[][] a = new int[h][w];\n\t\tint[] b = new int[w];\n\t\tint[] c = new int[h];\n\t\tfor(int i = 0;i < h;i++){\n\t\t\tst = sc.nextLine().split(\" \");\n\t\t\tfor(int o = 0;o < w;o++){\n\t\t\t\ta[i][o] = Integer.parseInt(st[o]);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i < w;i++){\n\t\t\tb[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0;i < h;i++){\n\t\t\tfor(int o = 0;o < w;o++){\n\t\t\t\tc[i] += a[i][o] * b[o];\n\t\t\t}\n\t\t}\n\t\tfor(int i:c){\n\t\t\tSystem.out.println(i);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String[] st = sc.nextLine().split(\" \");",
"st",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"int h = Integer.parseInt(st[0]);",
"h",
"Integer.parseInt(st[0])",
"Integer.parseInt",
"Integer",
"st[0]",
"st",
"0",
"int w = Integer.parseInt(st[1]);",
"w",
"Integer.parseInt(st[1])",
"Integer.parseInt",
"Integer",
"st[1]",
"st",
"1",
"int[][] a = new int[h][w];",
"a",
"new int[h][w]",
"h",
"w",
"int[] b = new int[w];",
"b",
"new int[w]",
"w",
"int[] c = new int[h];",
"c",
"new int[h]",
"h",
"for(int i = 0;i < h;i++){\n\t\t\tst = sc.nextLine().split(\" \");\n\t\t\tfor(int o = 0;o < w;o++){\n\t\t\t\ta[i][o] = Integer.parseInt(st[o]);\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < h",
"i",
"h",
"i++",
"i++",
"i",
"{\n\t\t\tst = sc.nextLine().split(\" \");\n\t\t\tfor(int o = 0;o < w;o++){\n\t\t\t\ta[i][o] = Integer.parseInt(st[o]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tst = sc.nextLine().split(\" \");\n\t\t\tfor(int o = 0;o < w;o++){\n\t\t\t\ta[i][o] = Integer.parseInt(st[o]);\n\t\t\t}\n\t\t}",
"st = sc.nextLine().split(\" \")",
"st",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"for(int o = 0;o < w;o++){\n\t\t\t\ta[i][o] = Integer.parseInt(st[o]);\n\t\t\t}",
"int o = 0;",
"int o = 0;",
"o",
"0",
"o < w",
"o",
"w",
"o++",
"o++",
"o",
"{\n\t\t\t\ta[i][o] = Integer.parseInt(st[o]);\n\t\t\t}",
"{\n\t\t\t\ta[i][o] = Integer.parseInt(st[o]);\n\t\t\t}",
"a[i][o] = Integer.parseInt(st[o])",
"a[i][o]",
"a[i]",
"a",
"i",
"o",
"Integer.parseInt(st[o])",
"Integer.parseInt",
"Integer",
"st[o]",
"st",
"o",
"for(int i = 0;i < w;i++){\n\t\t\tb[i] = sc.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < w",
"i",
"w",
"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 < h;i++){\n\t\t\tfor(int o = 0;o < w;o++){\n\t\t\t\tc[i] += a[i][o] * b[o];\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < h",
"i",
"h",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int o = 0;o < w;o++){\n\t\t\t\tc[i] += a[i][o] * b[o];\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int o = 0;o < w;o++){\n\t\t\t\tc[i] += a[i][o] * b[o];\n\t\t\t}\n\t\t}",
"for(int o = 0;o < w;o++){\n\t\t\t\tc[i] += a[i][o] * b[o];\n\t\t\t}",
"int o = 0;",
"int o = 0;",
"o",
"0",
"o < w",
"o",
"w",
"o++",
"o++",
"o",
"{\n\t\t\t\tc[i] += a[i][o] * b[o];\n\t\t\t}",
"{\n\t\t\t\tc[i] += a[i][o] * b[o];\n\t\t\t}",
"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:c){\n\t\t\tSystem.out.println(i);\n\t\t}",
"int i",
"c",
"{\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",
"public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] st = sc.nextLine().split(\" \");\n\t\tint h = Integer.parseInt(st[0]);\n\t\tint w = Integer.parseInt(st[1]);\n\t\tint[][] a = new int[h][w];\n\t\tint[] b = new int[w];\n\t\tint[] c = new int[h];\n\t\tfor(int i = 0;i < h;i++){\n\t\t\tst = sc.nextLine().split(\" \");\n\t\t\tfor(int o = 0;o < w;o++){\n\t\t\t\ta[i][o] = Integer.parseInt(st[o]);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i < w;i++){\n\t\t\tb[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0;i < h;i++){\n\t\t\tfor(int o = 0;o < w;o++){\n\t\t\t\tc[i] += a[i][o] * b[o];\n\t\t\t}\n\t\t}\n\t\tfor(int i:c){\n\t\t\tSystem.out.println(i);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] st = sc.nextLine().split(\" \");\n\t\tint h = Integer.parseInt(st[0]);\n\t\tint w = Integer.parseInt(st[1]);\n\t\tint[][] a = new int[h][w];\n\t\tint[] b = new int[w];\n\t\tint[] c = new int[h];\n\t\tfor(int i = 0;i < h;i++){\n\t\t\tst = sc.nextLine().split(\" \");\n\t\t\tfor(int o = 0;o < w;o++){\n\t\t\t\ta[i][o] = Integer.parseInt(st[o]);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0;i < w;i++){\n\t\t\tb[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0;i < h;i++){\n\t\t\tfor(int o = 0;o < w;o++){\n\t\t\t\tc[i] += a[i][o] * b[o];\n\t\t\t}\n\t\t}\n\t\tfor(int i:c){\n\t\t\tSystem.out.println(i);\n\t\t}\n\t}\n}",
"Main"
] | import java.util.*;
import java.lang.StringBuilder;
public class Main {
public static void main(String[] args) throws Exception{
Scanner sc = new Scanner(System.in);
String[] st = sc.nextLine().split(" ");
int h = Integer.parseInt(st[0]);
int w = Integer.parseInt(st[1]);
int[][] a = new int[h][w];
int[] b = new int[w];
int[] c = new int[h];
for(int i = 0;i < h;i++){
st = sc.nextLine().split(" ");
for(int o = 0;o < w;o++){
a[i][o] = Integer.parseInt(st[o]);
}
}
for(int i = 0;i < w;i++){
b[i] = sc.nextInt();
}
for(int i = 0;i < h;i++){
for(int o = 0;o < w;o++){
c[i] += a[i][o] * b[o];
}
}
for(int i:c){
System.out.println(i);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
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,
41,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
17,
11,
1,
0,
13,
17,
2,
13,
18,
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,
4,
18,
13,
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,
13,
11,
1,
0,
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
],
[
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
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
21,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
31,
36
],
[
28,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
42,
44
],
[
28,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
50,
52
],
[
28,
53
],
[
53,
54
],
[
53,
55
],
[
28,
58
],
[
58,
59
],
[
58,
60
],
[
28,
62
],
[
62,
63
],
[
28,
64
],
[
64,
65
],
[
28,
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
],
[
83,
84
],
[
84,
85
],
[
81,
86
],
[
78,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
94,
96
],
[
87,
97
],
[
97,
98
],
[
98,
99
],
[
87,
100
],
[
101,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
102,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
111,
112
],
[
111,
113
],
[
28,
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
],
[
129,
132
],
[
132,
133
],
[
133,
134
],
[
126,
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
],
[
149,
151
],
[
148,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
156,
162
],
[
28,
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
],
[
12,
184
],
[
184,
185
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tString[] inputList = br.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(inputList[0]);\n\t\t\tint W = Integer.parseInt(inputList[1]);\n\t\t\tint[][] a = new int[H][W];\n\t\t\tint[] b = new int[H];\n\t\t\tint i, x;\n\t\t\tfor (i = 0; i < H; i++) {\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (x = 0; x < inputList.length; x++) {\n\t\t\t\t\ta[i][x] = Integer.parseInt(inputList[x]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (i = 0; i < W; i++) {\n\t\t\t\tint input = Integer.parseInt(br.readLine());\n\t\t\t\tfor (x = 0; x < H; x++) {\n\t\t\t\t\tb[x] = b[x] + a[x][i] * input;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (i = 0; i < H; i++) {\n\t\t\t\tSystem.out.println(b[i]);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\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",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tString[] inputList = br.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(inputList[0]);\n\t\t\tint W = Integer.parseInt(inputList[1]);\n\t\t\tint[][] a = new int[H][W];\n\t\t\tint[] b = new int[H];\n\t\t\tint i, x;\n\t\t\tfor (i = 0; i < H; i++) {\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (x = 0; x < inputList.length; x++) {\n\t\t\t\t\ta[i][x] = Integer.parseInt(inputList[x]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (i = 0; i < W; i++) {\n\t\t\t\tint input = Integer.parseInt(br.readLine());\n\t\t\t\tfor (x = 0; x < H; x++) {\n\t\t\t\t\tb[x] = b[x] + a[x][i] * input;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (i = 0; i < H; i++) {\n\t\t\t\tSystem.out.println(b[i]);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tString[] inputList = br.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(inputList[0]);\n\t\t\tint W = Integer.parseInt(inputList[1]);\n\t\t\tint[][] a = new int[H][W];\n\t\t\tint[] b = new int[H];\n\t\t\tint i, x;\n\t\t\tfor (i = 0; i < H; i++) {\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (x = 0; x < inputList.length; x++) {\n\t\t\t\t\ta[i][x] = Integer.parseInt(inputList[x]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (i = 0; i < W; i++) {\n\t\t\t\tint input = Integer.parseInt(br.readLine());\n\t\t\t\tfor (x = 0; x < H; x++) {\n\t\t\t\t\tb[x] = b[x] + a[x][i] * input;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (i = 0; i < H; i++) {\n\t\t\t\tSystem.out.println(b[i]);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"main",
"{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tString[] inputList = br.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(inputList[0]);\n\t\t\tint W = Integer.parseInt(inputList[1]);\n\t\t\tint[][] a = new int[H][W];\n\t\t\tint[] b = new int[H];\n\t\t\tint i, x;\n\t\t\tfor (i = 0; i < H; i++) {\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (x = 0; x < inputList.length; x++) {\n\t\t\t\t\ta[i][x] = Integer.parseInt(inputList[x]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (i = 0; i < W; i++) {\n\t\t\t\tint input = Integer.parseInt(br.readLine());\n\t\t\t\tfor (x = 0; x < H; x++) {\n\t\t\t\t\tb[x] = b[x] + a[x][i] * input;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (i = 0; i < H; i++) {\n\t\t\t\tSystem.out.println(b[i]);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"InputStreamReader isr = new InputStreamReader(System.in);",
"isr",
"new InputStreamReader(System.in)",
"BufferedReader br = new BufferedReader(isr);",
"br",
"new BufferedReader(isr)",
"try {\n\t\t\tString[] inputList = br.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(inputList[0]);\n\t\t\tint W = Integer.parseInt(inputList[1]);\n\t\t\tint[][] a = new int[H][W];\n\t\t\tint[] b = new int[H];\n\t\t\tint i, x;\n\t\t\tfor (i = 0; i < H; i++) {\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (x = 0; x < inputList.length; x++) {\n\t\t\t\t\ta[i][x] = Integer.parseInt(inputList[x]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (i = 0; i < W; i++) {\n\t\t\t\tint input = Integer.parseInt(br.readLine());\n\t\t\t\tfor (x = 0; x < H; x++) {\n\t\t\t\t\tb[x] = b[x] + a[x][i] * input;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (i = 0; i < H; i++) {\n\t\t\t\tSystem.out.println(b[i]);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"IOException e",
"{\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\tString[] inputList = br.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(inputList[0]);\n\t\t\tint W = Integer.parseInt(inputList[1]);\n\t\t\tint[][] a = new int[H][W];\n\t\t\tint[] b = new int[H];\n\t\t\tint i, x;\n\t\t\tfor (i = 0; i < H; i++) {\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (x = 0; x < inputList.length; x++) {\n\t\t\t\t\ta[i][x] = Integer.parseInt(inputList[x]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (i = 0; i < W; i++) {\n\t\t\t\tint input = Integer.parseInt(br.readLine());\n\t\t\t\tfor (x = 0; x < H; x++) {\n\t\t\t\t\tb[x] = b[x] + a[x][i] * input;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (i = 0; i < H; i++) {\n\t\t\t\tSystem.out.println(b[i]);\n\t\t\t}\n\t\t}",
"String[] inputList = br.readLine().split(\" \");",
"inputList",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int H = Integer.parseInt(inputList[0]);",
"H",
"Integer.parseInt(inputList[0])",
"Integer.parseInt",
"Integer",
"inputList[0]",
"inputList",
"0",
"int W = Integer.parseInt(inputList[1]);",
"W",
"Integer.parseInt(inputList[1])",
"Integer.parseInt",
"Integer",
"inputList[1]",
"inputList",
"1",
"int[][] a = new int[H][W];",
"a",
"new int[H][W]",
"H",
"W",
"int[] b = new int[H];",
"b",
"new int[H]",
"H",
"int i",
"i",
"x;",
"x",
"for (i = 0; i < H; i++) {\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (x = 0; x < inputList.length; x++) {\n\t\t\t\t\ta[i][x] = Integer.parseInt(inputList[x]);\n\t\t\t\t}\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < H",
"i",
"H",
"i++",
"i++",
"i",
"{\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (x = 0; x < inputList.length; x++) {\n\t\t\t\t\ta[i][x] = Integer.parseInt(inputList[x]);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (x = 0; x < inputList.length; x++) {\n\t\t\t\t\ta[i][x] = Integer.parseInt(inputList[x]);\n\t\t\t\t}\n\t\t\t}",
"inputList = br.readLine().split(\" \")",
"inputList",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for (x = 0; x < inputList.length; x++) {\n\t\t\t\t\ta[i][x] = Integer.parseInt(inputList[x]);\n\t\t\t\t}",
"x = 0;",
"x = 0",
"x",
"0",
"x < inputList.length",
"x",
"inputList.length",
"inputList",
"inputList.length",
"x++",
"x++",
"x",
"{\n\t\t\t\t\ta[i][x] = Integer.parseInt(inputList[x]);\n\t\t\t\t}",
"{\n\t\t\t\t\ta[i][x] = Integer.parseInt(inputList[x]);\n\t\t\t\t}",
"a[i][x] = Integer.parseInt(inputList[x])",
"a[i][x]",
"a[i]",
"a",
"i",
"x",
"Integer.parseInt(inputList[x])",
"Integer.parseInt",
"Integer",
"inputList[x]",
"inputList",
"x",
"for (i = 0; i < W; i++) {\n\t\t\t\tint input = Integer.parseInt(br.readLine());\n\t\t\t\tfor (x = 0; x < H; x++) {\n\t\t\t\t\tb[x] = b[x] + a[x][i] * input;\n\t\t\t\t}\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < W",
"i",
"W",
"i++",
"i++",
"i",
"{\n\t\t\t\tint input = Integer.parseInt(br.readLine());\n\t\t\t\tfor (x = 0; x < H; x++) {\n\t\t\t\t\tb[x] = b[x] + a[x][i] * input;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tint input = Integer.parseInt(br.readLine());\n\t\t\t\tfor (x = 0; x < H; x++) {\n\t\t\t\t\tb[x] = b[x] + a[x][i] * input;\n\t\t\t\t}\n\t\t\t}",
"int input = Integer.parseInt(br.readLine());",
"input",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for (x = 0; x < H; x++) {\n\t\t\t\t\tb[x] = b[x] + a[x][i] * input;\n\t\t\t\t}",
"x = 0;",
"x = 0",
"x",
"0",
"x < H",
"x",
"H",
"x++",
"x++",
"x",
"{\n\t\t\t\t\tb[x] = b[x] + a[x][i] * input;\n\t\t\t\t}",
"{\n\t\t\t\t\tb[x] = b[x] + a[x][i] * input;\n\t\t\t\t}",
"b[x] = b[x] + a[x][i] * input",
"b[x]",
"b",
"x",
"b[x] + a[x][i] * input",
"b[x]",
"b",
"x",
"a[x][i] * input",
"a[x][i]",
"a[x]",
"a",
"x",
"i",
"input",
"for (i = 0; i < H; i++) {\n\t\t\t\tSystem.out.println(b[i]);\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < H",
"i",
"H",
"i++",
"i++",
"i",
"{\n\t\t\t\tSystem.out.println(b[i]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.println(b[i]);\n\t\t\t}",
"System.out.println(b[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"b[i]",
"b",
"i",
"String[] args",
"args"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
public static void main(String[] args) {
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
try {
String[] inputList = br.readLine().split(" ");
int H = Integer.parseInt(inputList[0]);
int W = Integer.parseInt(inputList[1]);
int[][] a = new int[H][W];
int[] b = new int[H];
int i, x;
for (i = 0; i < H; i++) {
inputList = br.readLine().split(" ");
for (x = 0; x < inputList.length; x++) {
a[i][x] = Integer.parseInt(inputList[x]);
}
}
for (i = 0; i < W; i++) {
int input = Integer.parseInt(br.readLine());
for (x = 0; x < H; x++) {
b[x] = b[x] + a[x][i] * input;
}
}
for (i = 0; i < H; i++) {
System.out.println(b[i]);
}
} catch (IOException e) {
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
13,
4,
18,
4,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
0,
13,
17,
41,
13,
20,
13,
13,
41,
13,
20,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
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,
17,
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,
18,
13,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
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,
29,
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
],
[
193,
14
],
[
193,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
25,
30
],
[
17,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
33,
35
],
[
17,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
17,
41
],
[
41,
42
],
[
41,
43
],
[
17,
44
],
[
44,
45
],
[
44,
46
],
[
17,
49
],
[
49,
50
],
[
49,
51
],
[
17,
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
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
73,
78
],
[
17,
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
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
92,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
101,
102
],
[
102,
103
],
[
17,
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
],
[
116,
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
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
135,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
116,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
146,
151
],
[
15,
152
],
[
152,
153
],
[
193,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
160,
161
],
[
160,
162
],
[
156,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
170,
172
],
[
163,
173
],
[
173,
174
],
[
174,
175
],
[
163,
176
],
[
177,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
182
],
[
182,
183
],
[
183,
184
],
[
182,
185
],
[
185,
186
],
[
185,
187
],
[
156,
188
],
[
188,
189
],
[
154,
190
],
[
190,
191
],
[
0,
192
],
[
192,
193
],
[
192,
194
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[] tmp = parceIntArray(br.readLine().split(\" \"));\n\t\tint n = tmp[0];\n\t\tint m = tmp[1];\n\t\ttmp = null;\n\t\tint[][] matrix = new int[n][m];\n\t\tint[][] vector = new int[m][1];\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tmatrix[i] = parceIntArray(br.readLine().split(\" \"));\n\t\t}\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tvector[i][0] = Integer.parseInt(br.readLine());\n\t\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 += matrix[i][j] * vector[j][0];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n\t\n\tstatic int[] parceIntArray(String[] strArr)throws NumberFormatException{\n\t\tint [] arr = new int[strArr.length];\n\t\tfor(int i = 0;i < arr.length;i++){\n\t\t\tarr[i] = Integer.parseInt(strArr[i]);\n\t\t}\n\t\treturn arr;\n\t}\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.ArrayList;",
"ArrayList",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[] tmp = parceIntArray(br.readLine().split(\" \"));\n\t\tint n = tmp[0];\n\t\tint m = tmp[1];\n\t\ttmp = null;\n\t\tint[][] matrix = new int[n][m];\n\t\tint[][] vector = new int[m][1];\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tmatrix[i] = parceIntArray(br.readLine().split(\" \"));\n\t\t}\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tvector[i][0] = Integer.parseInt(br.readLine());\n\t\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 += matrix[i][j] * vector[j][0];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n\t\n\tstatic int[] parceIntArray(String[] strArr)throws NumberFormatException{\n\t\tint [] arr = new int[strArr.length];\n\t\tfor(int i = 0;i < arr.length;i++){\n\t\t\tarr[i] = Integer.parseInt(strArr[i]);\n\t\t}\n\t\treturn arr;\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[] tmp = parceIntArray(br.readLine().split(\" \"));\n\t\tint n = tmp[0];\n\t\tint m = tmp[1];\n\t\ttmp = null;\n\t\tint[][] matrix = new int[n][m];\n\t\tint[][] vector = new int[m][1];\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tmatrix[i] = parceIntArray(br.readLine().split(\" \"));\n\t\t}\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tvector[i][0] = Integer.parseInt(br.readLine());\n\t\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 += matrix[i][j] * vector[j][0];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[] tmp = parceIntArray(br.readLine().split(\" \"));\n\t\tint n = tmp[0];\n\t\tint m = tmp[1];\n\t\ttmp = null;\n\t\tint[][] matrix = new int[n][m];\n\t\tint[][] vector = new int[m][1];\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tmatrix[i] = parceIntArray(br.readLine().split(\" \"));\n\t\t}\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tvector[i][0] = Integer.parseInt(br.readLine());\n\t\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 += matrix[i][j] * vector[j][0];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int[] tmp = parceIntArray(br.readLine().split(\" \"));",
"tmp",
"parceIntArray(br.readLine().split(\" \"))",
"parceIntArray",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int n = tmp[0];",
"n",
"tmp[0]",
"tmp",
"0",
"int m = tmp[1];",
"m",
"tmp[1]",
"tmp",
"1",
"tmp = null",
"tmp",
"null",
"int[][] matrix = new int[n][m];",
"matrix",
"new int[n][m]",
"n",
"m",
"int[][] vector = new int[m][1];",
"vector",
"new int[m][1]",
"m",
"1",
"for(int i = 0;i < n;i++){\n\t\t\tmatrix[i] = parceIntArray(br.readLine().split(\" \"));\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tmatrix[i] = parceIntArray(br.readLine().split(\" \"));\n\t\t}",
"{\n\t\t\tmatrix[i] = parceIntArray(br.readLine().split(\" \"));\n\t\t}",
"matrix[i] = parceIntArray(br.readLine().split(\" \"))",
"matrix[i]",
"matrix",
"i",
"parceIntArray(br.readLine().split(\" \"))",
"parceIntArray",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(int i = 0;i < m;i++){\n\t\t\tvector[i][0] = Integer.parseInt(br.readLine());\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tvector[i][0] = Integer.parseInt(br.readLine());\n\t\t}",
"{\n\t\t\tvector[i][0] = Integer.parseInt(br.readLine());\n\t\t}",
"vector[i][0] = Integer.parseInt(br.readLine())",
"vector[i][0]",
"vector[i]",
"vector",
"i",
"0",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"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 += matrix[i][j] * vector[j][0];\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\tint sum = 0;\n\t\t\tfor(int j = 0;j < m;j++){\n\t\t\t\tsum += matrix[i][j] * vector[j][0];\n\t\t\t}\n\t\t\tSystem.out.println(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 += matrix[i][j] * vector[j][0];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}",
"int sum = 0;",
"sum",
"0",
"for(int j = 0;j < m;j++){\n\t\t\t\tsum += matrix[i][j] * vector[j][0];\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tsum += matrix[i][j] * vector[j][0];\n\t\t\t}",
"{\n\t\t\t\tsum += matrix[i][j] * vector[j][0];\n\t\t\t}",
"sum += matrix[i][j] * vector[j][0]",
"sum",
"matrix[i][j] * vector[j][0]",
"matrix[i][j]",
"matrix[i]",
"matrix",
"i",
"j",
"vector[j][0]",
"vector[j]",
"vector",
"j",
"0",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"static int[] parceIntArray(String[] strArr)throws NumberFormatException{\n\t\tint [] arr = new int[strArr.length];\n\t\tfor(int i = 0;i < arr.length;i++){\n\t\t\tarr[i] = Integer.parseInt(strArr[i]);\n\t\t}\n\t\treturn arr;\n\t}",
"parceIntArray",
"{\n\t\tint [] arr = new int[strArr.length];\n\t\tfor(int i = 0;i < arr.length;i++){\n\t\t\tarr[i] = Integer.parseInt(strArr[i]);\n\t\t}\n\t\treturn arr;\n\t}",
"int [] arr = new int[strArr.length];",
"arr",
"new int[strArr.length]",
"strArr.length",
"strArr",
"strArr.length",
"for(int i = 0;i < arr.length;i++){\n\t\t\tarr[i] = Integer.parseInt(strArr[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < arr.length",
"i",
"arr.length",
"arr",
"arr.length",
"i++",
"i++",
"i",
"{\n\t\t\tarr[i] = Integer.parseInt(strArr[i]);\n\t\t}",
"{\n\t\t\tarr[i] = Integer.parseInt(strArr[i]);\n\t\t}",
"arr[i] = Integer.parseInt(strArr[i])",
"arr[i]",
"arr",
"i",
"Integer.parseInt(strArr[i])",
"Integer.parseInt",
"Integer",
"strArr[i]",
"strArr",
"i",
"return arr;",
"arr",
"String[] strArr",
"strArr",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[] tmp = parceIntArray(br.readLine().split(\" \"));\n\t\tint n = tmp[0];\n\t\tint m = tmp[1];\n\t\ttmp = null;\n\t\tint[][] matrix = new int[n][m];\n\t\tint[][] vector = new int[m][1];\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tmatrix[i] = parceIntArray(br.readLine().split(\" \"));\n\t\t}\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tvector[i][0] = Integer.parseInt(br.readLine());\n\t\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 += matrix[i][j] * vector[j][0];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n\t\n\tstatic int[] parceIntArray(String[] strArr)throws NumberFormatException{\n\t\tint [] arr = new int[strArr.length];\n\t\tfor(int i = 0;i < arr.length;i++){\n\t\t\tarr[i] = Integer.parseInt(strArr[i]);\n\t\t}\n\t\treturn arr;\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint[] tmp = parceIntArray(br.readLine().split(\" \"));\n\t\tint n = tmp[0];\n\t\tint m = tmp[1];\n\t\ttmp = null;\n\t\tint[][] matrix = new int[n][m];\n\t\tint[][] vector = new int[m][1];\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tmatrix[i] = parceIntArray(br.readLine().split(\" \"));\n\t\t}\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tvector[i][0] = Integer.parseInt(br.readLine());\n\t\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 += matrix[i][j] * vector[j][0];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n\t\n\tstatic int[] parceIntArray(String[] strArr)throws NumberFormatException{\n\t\tint [] arr = new int[strArr.length];\n\t\tfor(int i = 0;i < arr.length;i++){\n\t\t\tarr[i] = Integer.parseInt(strArr[i]);\n\t\t}\n\t\treturn arr;\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int[] tmp = parceIntArray(br.readLine().split(" "));
int n = tmp[0];
int m = tmp[1];
tmp = null;
int[][] matrix = new int[n][m];
int[][] vector = new int[m][1];
for(int i = 0;i < n;i++){
matrix[i] = parceIntArray(br.readLine().split(" "));
}
for(int i = 0;i < m;i++){
vector[i][0] = Integer.parseInt(br.readLine());
}
for(int i = 0;i < n;i++){
int sum = 0;
for(int j = 0;j < m;j++){
sum += matrix[i][j] * vector[j][0];
}
System.out.println(sum);
}
}
static int[] parceIntArray(String[] strArr)throws NumberFormatException{
int [] arr = new int[strArr.length];
for(int i = 0;i < arr.length;i++){
arr[i] = Integer.parseInt(strArr[i]);
}
return arr;
}
} |
[
7,
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,
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,
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,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
144,
5
],
[
144,
6
],
[
6,
7
],
[
6,
8
],
[
144,
9
],
[
9,
10
],
[
9,
11
],
[
144,
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
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
14,
33
],
[
33,
34
],
[
33,
35
],
[
14,
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
],
[
14,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
72,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
90,
91
],
[
14,
92
],
[
92,
93
],
[
14,
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
],
[
134,
140
],
[
12,
141
],
[
141,
142
],
[
0,
143
],
[
143,
144
],
[
143,
145
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\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 A[][] = new int[N][M];\n\t\tint B[] = new int[M];\n\n\t\tfor(int row = 0; row < N; row++){\n\t\t\tfor(int col = 0; col < M; col++){\n\t\t\t\tA[row][col] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int row = 0; row < M; row++){\n\t\t\tB[row] = sc.nextInt();\n\t\t}\n\n\t\tint ans;\n\n\t\tfor(int row = 0; row < N; row++){\n\t\t\tans = 0;\n\t\t\tfor(int col = 0; col < M; col++){\n\t\t\t\tans += A[row][col]*B[col];\n\t\t\t}\n\t\t\tSystem.out.printf(\"%d\\n\", ans);\n\t\t}\n\t}\n}\n\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\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 A[][] = new int[N][M];\n\t\tint B[] = new int[M];\n\n\t\tfor(int row = 0; row < N; row++){\n\t\t\tfor(int col = 0; col < M; col++){\n\t\t\t\tA[row][col] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int row = 0; row < M; row++){\n\t\t\tB[row] = sc.nextInt();\n\t\t}\n\n\t\tint ans;\n\n\t\tfor(int row = 0; row < N; row++){\n\t\t\tans = 0;\n\t\t\tfor(int col = 0; col < M; col++){\n\t\t\t\tans += A[row][col]*B[col];\n\t\t\t}\n\t\t\tSystem.out.printf(\"%d\\n\", ans);\n\t\t}\n\t}\n}",
"Main",
"public static final int BIG_NUM = 2000000000;",
"BIG_NUM",
"2000000000",
"public static final int MOD = 1000000007;",
"MOD",
"1000000007",
"public static void main(String[] args) {\n\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 A[][] = new int[N][M];\n\t\tint B[] = new int[M];\n\n\t\tfor(int row = 0; row < N; row++){\n\t\t\tfor(int col = 0; col < M; col++){\n\t\t\t\tA[row][col] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int row = 0; row < M; row++){\n\t\t\tB[row] = sc.nextInt();\n\t\t}\n\n\t\tint ans;\n\n\t\tfor(int row = 0; row < N; row++){\n\t\t\tans = 0;\n\t\t\tfor(int col = 0; col < M; col++){\n\t\t\t\tans += A[row][col]*B[col];\n\t\t\t}\n\t\t\tSystem.out.printf(\"%d\\n\", ans);\n\t\t}\n\t}",
"main",
"{\n\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 A[][] = new int[N][M];\n\t\tint B[] = new int[M];\n\n\t\tfor(int row = 0; row < N; row++){\n\t\t\tfor(int col = 0; col < M; col++){\n\t\t\t\tA[row][col] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int row = 0; row < M; row++){\n\t\t\tB[row] = sc.nextInt();\n\t\t}\n\n\t\tint ans;\n\n\t\tfor(int row = 0; row < N; row++){\n\t\t\tans = 0;\n\t\t\tfor(int col = 0; col < M; col++){\n\t\t\t\tans += A[row][col]*B[col];\n\t\t\t}\n\t\t\tSystem.out.printf(\"%d\\n\", ans);\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 A[][] = new int[N][M];",
"A",
"new int[N][M]",
"N",
"M",
"int B[] = new int[M];",
"B",
"new int[M]",
"M",
"for(int row = 0; row < N; row++){\n\t\t\tfor(int col = 0; col < M; col++){\n\t\t\t\tA[row][col] = sc.nextInt();\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\tA[row][col] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int col = 0; col < M; col++){\n\t\t\t\tA[row][col] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int col = 0; col < M; col++){\n\t\t\t\tA[row][col] = sc.nextInt();\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] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tA[row][col] = sc.nextInt();\n\t\t\t}",
"A[row][col] = sc.nextInt()",
"A[row][col]",
"A[row]",
"A",
"row",
"col",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int row = 0; row < M; row++){\n\t\t\tB[row] = sc.nextInt();\n\t\t}",
"int row = 0;",
"int row = 0;",
"row",
"0",
"row < M",
"row",
"M",
"row++",
"row++",
"row",
"{\n\t\t\tB[row] = sc.nextInt();\n\t\t}",
"{\n\t\t\tB[row] = sc.nextInt();\n\t\t}",
"B[row] = sc.nextInt()",
"B[row]",
"B",
"row",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ans;",
"ans",
"for(int row = 0; row < N; row++){\n\t\t\tans = 0;\n\t\t\tfor(int col = 0; col < M; col++){\n\t\t\t\tans += A[row][col]*B[col];\n\t\t\t}\n\t\t\tSystem.out.printf(\"%d\\n\", ans);\n\t\t}",
"int row = 0;",
"int row = 0;",
"row",
"0",
"row < N",
"row",
"N",
"row++",
"row++",
"row",
"{\n\t\t\tans = 0;\n\t\t\tfor(int col = 0; col < M; col++){\n\t\t\t\tans += A[row][col]*B[col];\n\t\t\t}\n\t\t\tSystem.out.printf(\"%d\\n\", ans);\n\t\t}",
"{\n\t\t\tans = 0;\n\t\t\tfor(int col = 0; col < M; col++){\n\t\t\t\tans += A[row][col]*B[col];\n\t\t\t}\n\t\t\tSystem.out.printf(\"%d\\n\", ans);\n\t\t}",
"ans = 0",
"ans",
"0",
"for(int col = 0; col < M; col++){\n\t\t\t\tans += 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\tans += A[row][col]*B[col];\n\t\t\t}",
"{\n\t\t\t\tans += A[row][col]*B[col];\n\t\t\t}",
"ans += A[row][col]*B[col]",
"ans",
"A[row][col]*B[col]",
"A[row][col]",
"A[row]",
"A",
"row",
"col",
"B[col]",
"B",
"col",
"System.out.printf(\"%d\\n\", ans)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d\\n\"",
"ans",
"String[] args",
"args",
"public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\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 A[][] = new int[N][M];\n\t\tint B[] = new int[M];\n\n\t\tfor(int row = 0; row < N; row++){\n\t\t\tfor(int col = 0; col < M; col++){\n\t\t\t\tA[row][col] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int row = 0; row < M; row++){\n\t\t\tB[row] = sc.nextInt();\n\t\t}\n\n\t\tint ans;\n\n\t\tfor(int row = 0; row < N; row++){\n\t\t\tans = 0;\n\t\t\tfor(int col = 0; col < M; col++){\n\t\t\t\tans += A[row][col]*B[col];\n\t\t\t}\n\t\t\tSystem.out.printf(\"%d\\n\", ans);\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\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 A[][] = new int[N][M];\n\t\tint B[] = new int[M];\n\n\t\tfor(int row = 0; row < N; row++){\n\t\t\tfor(int col = 0; col < M; col++){\n\t\t\t\tA[row][col] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int row = 0; row < M; row++){\n\t\t\tB[row] = sc.nextInt();\n\t\t}\n\n\t\tint ans;\n\n\t\tfor(int row = 0; row < N; row++){\n\t\t\tans = 0;\n\t\t\tfor(int col = 0; col < M; col++){\n\t\t\t\tans += A[row][col]*B[col];\n\t\t\t}\n\t\t\tSystem.out.printf(\"%d\\n\", ans);\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static final int BIG_NUM = 2000000000;
public static final int MOD = 1000000007;
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 row = 0; row < N; row++){
for(int col = 0; col < M; col++){
A[row][col] = sc.nextInt();
}
}
for(int row = 0; row < M; row++){
B[row] = sc.nextInt();
}
int ans;
for(int row = 0; row < N; row++){
ans = 0;
for(int col = 0; col < M; col++){
ans += A[row][col]*B[col];
}
System.out.printf("%d\n", 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,
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,
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
],
[
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
],
[
108,
110
],
[
108,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
6,
119
],
[
119,
120
]
] | [
"import java.util.*;\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(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[] ans = 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\t}\n\t\t}\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tint b = stdIn.nextInt();\n\t\t\tfor (int j=0; j<n; j++) {\n\t\t\t\tans[j] += A[j][i]*b;\n\t\t\t}\n\t\t}\n\t\tfor (int ret : ans) {\n\t\t\tSystem.out.println(ret);\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(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[] ans = 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\t}\n\t\t}\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tint b = stdIn.nextInt();\n\t\t\tfor (int j=0; j<n; j++) {\n\t\t\t\tans[j] += A[j][i]*b;\n\t\t\t}\n\t\t}\n\t\tfor (int ret : ans) {\n\t\t\tSystem.out.println(ret);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(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[] ans = 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\t}\n\t\t}\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tint b = stdIn.nextInt();\n\t\t\tfor (int j=0; j<n; j++) {\n\t\t\t\tans[j] += A[j][i]*b;\n\t\t\t}\n\t\t}\n\t\tfor (int ret : ans) {\n\t\t\tSystem.out.println(ret);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner stdIn = new Scanner(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[] ans = 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\t}\n\t\t}\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tint b = stdIn.nextInt();\n\t\t\tfor (int j=0; j<n; j++) {\n\t\t\t\tans[j] += A[j][i]*b;\n\t\t\t}\n\t\t}\n\t\tfor (int ret : ans) {\n\t\t\tSystem.out.println(ret);\n\t\t}\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(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[] ans = new int[n];",
"ans",
"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\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] = stdIn.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] = stdIn.nextInt();\n\t\t\t}\n\t\t}",
"for (int j=0; j<m; j++) {\n\t\t\t\tA[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\tA[i][j] = stdIn.nextInt();\n\t\t\t}",
"{\n\t\t\t\tA[i][j] = stdIn.nextInt();\n\t\t\t}",
"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\tint b = stdIn.nextInt();\n\t\t\tfor (int j=0; j<n; j++) {\n\t\t\t\tans[j] += A[j][i]*b;\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 b = stdIn.nextInt();\n\t\t\tfor (int j=0; j<n; j++) {\n\t\t\t\tans[j] += A[j][i]*b;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint b = stdIn.nextInt();\n\t\t\tfor (int j=0; j<n; j++) {\n\t\t\t\tans[j] += A[j][i]*b;\n\t\t\t}\n\t\t}",
"int b = stdIn.nextInt();",
"b",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"for (int j=0; j<n; j++) {\n\t\t\t\tans[j] += A[j][i]*b;\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<n",
"j",
"n",
"j++",
"j++",
"j",
"{\n\t\t\t\tans[j] += A[j][i]*b;\n\t\t\t}",
"{\n\t\t\t\tans[j] += A[j][i]*b;\n\t\t\t}",
"ans[j] += A[j][i]*b",
"ans[j]",
"ans",
"j",
"A[j][i]*b",
"A[j][i]",
"A[j]",
"A",
"j",
"i",
"b",
"for (int ret : ans) {\n\t\t\tSystem.out.println(ret);\n\t\t}",
"int ret",
"ans",
"{\n\t\t\tSystem.out.println(ret);\n\t\t}",
"{\n\t\t\tSystem.out.println(ret);\n\t\t}",
"System.out.println(ret)",
"System.out.println",
"System.out",
"System",
"System.out",
"ret",
"String[] args",
"args"
] | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int n = stdIn.nextInt();
int m = stdIn.nextInt();
int[][] A = new int[n][m];
int[] ans = 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++) {
int b = stdIn.nextInt();
for (int j=0; j<n; j++) {
ans[j] += A[j][i]*b;
}
}
for (int ret : ans) {
System.out.println(ret);
}
}
} |
[
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
] | [
[
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
],
[
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
]
] | [
"import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n1 = sc.nextInt();\n int n2 = sc.nextInt();\n int[][] A = new int[n1][n2];\n int[] B = new int[n2];\n for(int i=0;i<n1;i++){\n for(int j=0;j<n2;j++){\n A[i][j]= sc.nextInt();\n }\n }\n for(int k=0;k<n2;k++){\n B[k] = sc.nextInt();\n }\n \tfor(int i=0;i<n1;i++){\n int sum =0;\n for(int j=0;j<n2;j++){\n sum += A[i][j] * B[j];\n }\n System.out.println(sum);\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 n1 = sc.nextInt();\n int n2 = sc.nextInt();\n int[][] A = new int[n1][n2];\n int[] B = new int[n2];\n for(int i=0;i<n1;i++){\n for(int j=0;j<n2;j++){\n A[i][j]= sc.nextInt();\n }\n }\n for(int k=0;k<n2;k++){\n B[k] = sc.nextInt();\n }\n \tfor(int i=0;i<n1;i++){\n int sum =0;\n for(int j=0;j<n2;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 n1 = sc.nextInt();\n int n2 = sc.nextInt();\n int[][] A = new int[n1][n2];\n int[] B = new int[n2];\n for(int i=0;i<n1;i++){\n for(int j=0;j<n2;j++){\n A[i][j]= sc.nextInt();\n }\n }\n for(int k=0;k<n2;k++){\n B[k] = sc.nextInt();\n }\n \tfor(int i=0;i<n1;i++){\n int sum =0;\n for(int j=0;j<n2;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 n1 = sc.nextInt();\n int n2 = sc.nextInt();\n int[][] A = new int[n1][n2];\n int[] B = new int[n2];\n for(int i=0;i<n1;i++){\n for(int j=0;j<n2;j++){\n A[i][j]= sc.nextInt();\n }\n }\n for(int k=0;k<n2;k++){\n B[k] = sc.nextInt();\n }\n \tfor(int i=0;i<n1;i++){\n int sum =0;\n for(int j=0;j<n2;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 n1 = sc.nextInt();",
"n1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int n2 = sc.nextInt();",
"n2",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] A = new int[n1][n2];",
"A",
"new int[n1][n2]",
"n1",
"n2",
"int[] B = new int[n2];",
"B",
"new int[n2]",
"n2",
"for(int i=0;i<n1;i++){\n for(int j=0;j<n2;j++){\n A[i][j]= sc.nextInt();\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n1",
"i",
"n1",
"i++",
"i++",
"i",
"{\n for(int j=0;j<n2;j++){\n A[i][j]= sc.nextInt();\n }\n }",
"{\n for(int j=0;j<n2;j++){\n A[i][j]= sc.nextInt();\n }\n }",
"for(int j=0;j<n2;j++){\n A[i][j]= sc.nextInt();\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<n2",
"j",
"n2",
"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 k=0;k<n2;k++){\n B[k] = sc.nextInt();\n }",
"int k=0;",
"int k=0;",
"k",
"0",
"k<n2",
"k",
"n2",
"k++",
"k++",
"k",
"{\n B[k] = sc.nextInt();\n }",
"{\n B[k] = sc.nextInt();\n }",
"B[k] = sc.nextInt()",
"B[k]",
"B",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i<n1;i++){\n int sum =0;\n for(int j=0;j<n2;j++){\n sum += A[i][j] * B[j];\n }\n System.out.println(sum);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n1",
"i",
"n1",
"i++",
"i++",
"i",
"{\n int sum =0;\n for(int j=0;j<n2;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<n2;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<n2;j++){\n sum += A[i][j] * B[j];\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<n2",
"j",
"n2",
"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"
] | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n1 = sc.nextInt();
int n2 = sc.nextInt();
int[][] A = new int[n1][n2];
int[] B = new int[n2];
for(int i=0;i<n1;i++){
for(int j=0;j<n2;j++){
A[i][j]= sc.nextInt();
}
}
for(int k=0;k<n2;k++){
B[k] = sc.nextInt();
}
for(int i=0;i<n1;i++){
int sum =0;
for(int j=0;j<n2;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,
17,
41,
13,
20,
13,
13,
41,
13,
20,
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,
0,
18,
18,
13,
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,
18,
13,
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,
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,
13,
13,
0,
18,
18,
13,
13,
13,
13,
4,
13,
13,
13,
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,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
18,
18,
13,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
18,
18,
13,
13,
2,
13,
17,
23,
13,
23,
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,
25
],
[
25,
26
],
[
25,
27
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
8,
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
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
66,
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
],
[
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
],
[
8,
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
],
[
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
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
135,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
165,
171
],
[
8,
172
],
[
172,
173
],
[
172,
174
],
[
172,
175
],
[
172,
176
],
[
6,
177
],
[
177,
178
],
[
4,
179
],
[
179,
180
],
[
179,
181
],
[
181,
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
],
[
202,
203
],
[
202,
204
],
[
195,
205
],
[
205,
206
],
[
206,
207
],
[
195,
208
],
[
209,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
210,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
216,
220
],
[
215,
221
],
[
194,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
222,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
227,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
232,
236
],
[
236,
237
],
[
236,
238
],
[
179,
239
],
[
239,
240
],
[
179,
241
],
[
241,
242
],
[
179,
243
],
[
243,
244
]
] | [
"import java.util.Scanner;\n\nclass 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 l=1;\n\t\tlong[][] m1=new long[n][m];\n\t\tlong[][] m2=new long[m][l];\n\t\tlong[][] ans=new long[n][l];\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tfor(int j=0; j<m; j++) {\n\t\t\t\tm1[i][j]=sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<m; i++) {\n\t\t\tfor(int j=0; j<l; j++) {\n\t\t\t\tm2[i][j]=sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tfor(int j=0; j<l; j++) {\n\t\t\t\tlong tmp=0;\n\t\t\t\tfor(int k=0; k<m; k++) {\n\t\t\t\t\ttmp+=m1[i][k]*m2[k][j];\n\t\t\t\t}\n\t\t\t\tans[i][j]=tmp;\n\t\t\t}\n\t\t}\n\t\toutput(ans,n,l);\n\t}\n\tpublic static void output(long[][] a,int h,int w) {\n\t\tfor(int i=0; i<h; i++) {\n\t\t\tfor(int j=0; j<w-1; j++) {\n\t\t\t\tSystem.out.print(a[i][j]+\" \");\n\t\t\t}\n\t\t\tif(w>0) {\n\t\t\t\tSystem.out.println(a[i][w-1]);;\n\t\t\t}\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 sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint m=sc.nextInt();\n\t\tint l=1;\n\t\tlong[][] m1=new long[n][m];\n\t\tlong[][] m2=new long[m][l];\n\t\tlong[][] ans=new long[n][l];\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tfor(int j=0; j<m; j++) {\n\t\t\t\tm1[i][j]=sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<m; i++) {\n\t\t\tfor(int j=0; j<l; j++) {\n\t\t\t\tm2[i][j]=sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tfor(int j=0; j<l; j++) {\n\t\t\t\tlong tmp=0;\n\t\t\t\tfor(int k=0; k<m; k++) {\n\t\t\t\t\ttmp+=m1[i][k]*m2[k][j];\n\t\t\t\t}\n\t\t\t\tans[i][j]=tmp;\n\t\t\t}\n\t\t}\n\t\toutput(ans,n,l);\n\t}\n\tpublic static void output(long[][] a,int h,int w) {\n\t\tfor(int i=0; i<h; i++) {\n\t\t\tfor(int j=0; j<w-1; j++) {\n\t\t\t\tSystem.out.print(a[i][j]+\" \");\n\t\t\t}\n\t\t\tif(w>0) {\n\t\t\t\tSystem.out.println(a[i][w-1]);;\n\t\t\t}\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 l=1;\n\t\tlong[][] m1=new long[n][m];\n\t\tlong[][] m2=new long[m][l];\n\t\tlong[][] ans=new long[n][l];\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tfor(int j=0; j<m; j++) {\n\t\t\t\tm1[i][j]=sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<m; i++) {\n\t\t\tfor(int j=0; j<l; j++) {\n\t\t\t\tm2[i][j]=sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tfor(int j=0; j<l; j++) {\n\t\t\t\tlong tmp=0;\n\t\t\t\tfor(int k=0; k<m; k++) {\n\t\t\t\t\ttmp+=m1[i][k]*m2[k][j];\n\t\t\t\t}\n\t\t\t\tans[i][j]=tmp;\n\t\t\t}\n\t\t}\n\t\toutput(ans,n,l);\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 l=1;\n\t\tlong[][] m1=new long[n][m];\n\t\tlong[][] m2=new long[m][l];\n\t\tlong[][] ans=new long[n][l];\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tfor(int j=0; j<m; j++) {\n\t\t\t\tm1[i][j]=sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<m; i++) {\n\t\t\tfor(int j=0; j<l; j++) {\n\t\t\t\tm2[i][j]=sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tfor(int j=0; j<l; j++) {\n\t\t\t\tlong tmp=0;\n\t\t\t\tfor(int k=0; k<m; k++) {\n\t\t\t\t\ttmp+=m1[i][k]*m2[k][j];\n\t\t\t\t}\n\t\t\t\tans[i][j]=tmp;\n\t\t\t}\n\t\t}\n\t\toutput(ans,n,l);\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 l=1;",
"l",
"1",
"long[][] m1=new long[n][m];",
"m1",
"new long[n][m]",
"n",
"m",
"long[][] m2=new long[m][l];",
"m2",
"new long[m][l]",
"m",
"l",
"long[][] ans=new long[n][l];",
"ans",
"new long[n][l]",
"n",
"l",
"for(int i=0; i<n; i++) {\n\t\t\tfor(int j=0; j<m; j++) {\n\t\t\t\tm1[i][j]=sc.nextLong();\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\tm1[i][j]=sc.nextLong();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0; j<m; j++) {\n\t\t\t\tm1[i][j]=sc.nextLong();\n\t\t\t}\n\t\t}",
"for(int j=0; j<m; j++) {\n\t\t\t\tm1[i][j]=sc.nextLong();\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tm1[i][j]=sc.nextLong();\n\t\t\t}",
"{\n\t\t\t\tm1[i][j]=sc.nextLong();\n\t\t\t}",
"m1[i][j]=sc.nextLong()",
"m1[i][j]",
"m1[i]",
"m1",
"i",
"j",
"sc.nextLong()",
"sc.nextLong",
"sc",
"for(int i=0; i<m; i++) {\n\t\t\tfor(int j=0; j<l; j++) {\n\t\t\t\tm2[i][j]=sc.nextLong();\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<l; j++) {\n\t\t\t\tm2[i][j]=sc.nextLong();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0; j<l; j++) {\n\t\t\t\tm2[i][j]=sc.nextLong();\n\t\t\t}\n\t\t}",
"for(int j=0; j<l; j++) {\n\t\t\t\tm2[i][j]=sc.nextLong();\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tm2[i][j]=sc.nextLong();\n\t\t\t}",
"{\n\t\t\t\tm2[i][j]=sc.nextLong();\n\t\t\t}",
"m2[i][j]=sc.nextLong()",
"m2[i][j]",
"m2[i]",
"m2",
"i",
"j",
"sc.nextLong()",
"sc.nextLong",
"sc",
"for(int i=0; i<n; i++) {\n\t\t\tfor(int j=0; j<l; j++) {\n\t\t\t\tlong tmp=0;\n\t\t\t\tfor(int k=0; k<m; k++) {\n\t\t\t\t\ttmp+=m1[i][k]*m2[k][j];\n\t\t\t\t}\n\t\t\t\tans[i][j]=tmp;\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<l; j++) {\n\t\t\t\tlong tmp=0;\n\t\t\t\tfor(int k=0; k<m; k++) {\n\t\t\t\t\ttmp+=m1[i][k]*m2[k][j];\n\t\t\t\t}\n\t\t\t\tans[i][j]=tmp;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0; j<l; j++) {\n\t\t\t\tlong tmp=0;\n\t\t\t\tfor(int k=0; k<m; k++) {\n\t\t\t\t\ttmp+=m1[i][k]*m2[k][j];\n\t\t\t\t}\n\t\t\t\tans[i][j]=tmp;\n\t\t\t}\n\t\t}",
"for(int j=0; j<l; j++) {\n\t\t\t\tlong tmp=0;\n\t\t\t\tfor(int k=0; k<m; k++) {\n\t\t\t\t\ttmp+=m1[i][k]*m2[k][j];\n\t\t\t\t}\n\t\t\t\tans[i][j]=tmp;\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tlong tmp=0;\n\t\t\t\tfor(int k=0; k<m; k++) {\n\t\t\t\t\ttmp+=m1[i][k]*m2[k][j];\n\t\t\t\t}\n\t\t\t\tans[i][j]=tmp;\n\t\t\t}",
"{\n\t\t\t\tlong tmp=0;\n\t\t\t\tfor(int k=0; k<m; k++) {\n\t\t\t\t\ttmp+=m1[i][k]*m2[k][j];\n\t\t\t\t}\n\t\t\t\tans[i][j]=tmp;\n\t\t\t}",
"long tmp=0;",
"tmp",
"0",
"for(int k=0; k<m; k++) {\n\t\t\t\t\ttmp+=m1[i][k]*m2[k][j];\n\t\t\t\t}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<m",
"k",
"m",
"k++",
"k++",
"k",
"{\n\t\t\t\t\ttmp+=m1[i][k]*m2[k][j];\n\t\t\t\t}",
"{\n\t\t\t\t\ttmp+=m1[i][k]*m2[k][j];\n\t\t\t\t}",
"tmp+=m1[i][k]*m2[k][j]",
"tmp",
"m1[i][k]*m2[k][j]",
"m1[i][k]",
"m1[i]",
"m1",
"i",
"k",
"m2[k][j]",
"m2[k]",
"m2",
"k",
"j",
"ans[i][j]=tmp",
"ans[i][j]",
"ans[i]",
"ans",
"i",
"j",
"tmp",
"output(ans,n,l)",
"output",
"ans",
"n",
"l",
"String[] args",
"args",
"public static void output(long[][] a,int h,int w) {\n\t\tfor(int i=0; i<h; i++) {\n\t\t\tfor(int j=0; j<w-1; j++) {\n\t\t\t\tSystem.out.print(a[i][j]+\" \");\n\t\t\t}\n\t\t\tif(w>0) {\n\t\t\t\tSystem.out.println(a[i][w-1]);;\n\t\t\t}\n\t\t}\n\t}",
"output",
"{\n\t\tfor(int i=0; i<h; i++) {\n\t\t\tfor(int j=0; j<w-1; j++) {\n\t\t\t\tSystem.out.print(a[i][j]+\" \");\n\t\t\t}\n\t\t\tif(w>0) {\n\t\t\t\tSystem.out.println(a[i][w-1]);;\n\t\t\t}\n\t\t}\n\t}",
"for(int i=0; i<h; i++) {\n\t\t\tfor(int j=0; j<w-1; j++) {\n\t\t\t\tSystem.out.print(a[i][j]+\" \");\n\t\t\t}\n\t\t\tif(w>0) {\n\t\t\t\tSystem.out.println(a[i][w-1]);;\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<h",
"i",
"h",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0; j<w-1; j++) {\n\t\t\t\tSystem.out.print(a[i][j]+\" \");\n\t\t\t}\n\t\t\tif(w>0) {\n\t\t\t\tSystem.out.println(a[i][w-1]);;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0; j<w-1; j++) {\n\t\t\t\tSystem.out.print(a[i][j]+\" \");\n\t\t\t}\n\t\t\tif(w>0) {\n\t\t\t\tSystem.out.println(a[i][w-1]);;\n\t\t\t}\n\t\t}",
"for(int j=0; j<w-1; j++) {\n\t\t\t\tSystem.out.print(a[i][j]+\" \");\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<w-1",
"j",
"w-1",
"w",
"1",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(a[i][j]+\" \");\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(a[i][j]+\" \");\n\t\t\t}",
"System.out.print(a[i][j]+\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"a[i][j]+\" \"",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"\" \"",
"if(w>0) {\n\t\t\t\tSystem.out.println(a[i][w-1]);;\n\t\t\t}",
"w>0",
"w",
"0",
"{\n\t\t\t\tSystem.out.println(a[i][w-1]);;\n\t\t\t}",
"System.out.println(a[i][w-1])",
"System.out.println",
"System.out",
"System",
"System.out",
"a[i][w-1]",
"a[i]",
"a",
"i",
"w-1",
"w",
"1",
"long[][] a",
"a",
"int h",
"h",
"int w",
"w"
] | 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 l=1;
long[][] m1=new long[n][m];
long[][] m2=new long[m][l];
long[][] ans=new long[n][l];
for(int i=0; i<n; i++) {
for(int j=0; j<m; j++) {
m1[i][j]=sc.nextLong();
}
}
for(int i=0; i<m; i++) {
for(int j=0; j<l; j++) {
m2[i][j]=sc.nextLong();
}
}
for(int i=0; i<n; i++) {
for(int j=0; j<l; j++) {
long tmp=0;
for(int k=0; k<m; k++) {
tmp+=m1[i][k]*m2[k][j];
}
ans[i][j]=tmp;
}
}
output(ans,n,l);
}
public static void output(long[][] a,int h,int w) {
for(int i=0; i<h; i++) {
for(int j=0; j<w-1; j++) {
System.out.print(a[i][j]+" ");
}
if(w>0) {
System.out.println(a[i][w-1]);;
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
20,
17,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
29,
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,
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,
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
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
11,
19
],
[
19,
20
],
[
19,
21
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
26,
33
],
[
23,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
37,
42
],
[
34,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
48,
49
],
[
48,
50
],
[
34,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
56,
58
],
[
34,
59
],
[
59,
60
],
[
59,
61
],
[
34,
64
],
[
64,
65
],
[
64,
66
],
[
34,
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
],
[
85,
86
],
[
86,
87
],
[
83,
88
],
[
80,
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
],
[
103,
107
],
[
102,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
111,
112
],
[
111,
113
],
[
34,
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
],
[
131,
134
],
[
134,
135
],
[
135,
136
],
[
34,
137
],
[
137,
138
],
[
137,
139
],
[
34,
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
],
[
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
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
168,
174
],
[
174,
175
],
[
174,
176
],
[
152,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
152,
183
],
[
183,
184
],
[
183,
185
],
[
9,
186
],
[
186,
187
]
] | [
"import java.io.*;\nimport java.io.IOException;\n\nclass Main{\n\tpublic static void main(String args[]){\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n\n\t\t\t,m;\n\t\t\n\t\tString[] input = new String[100];\n\t\t\n\t\ttry{\n\t\t\t//n,mใฎๅ
ฅๅ\n\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\tn = Integer.parseInt(input[0]);\n\t\t\tm = Integer.parseInt(input[1]);\n\t\t\t\n\t\t\tint[][] A = new int[n][m]; \n\t\t\tint[] b = new int[m];\n\t\t\t\n\t\t\t//Aใฎๅ
ฅๅ\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tA[i][j] = Integer.parseInt(input[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//bใฎๅ
ฅๅ\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\tb[j] = Integer.parseInt(br.readLine());\n\t\t\t}\n\t\t\t//่จ็ฎใปๅบๅ\n\t\t\tint c = 0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tc += A[i][j] * b[j];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(c);\n\t\t\t\tc = 0;\n\t\t\t}\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t\treturn;\n\t\t}\n\t\t\n\t}\n}\n",
"import java.io.*;",
"io.*",
"java",
"import java.io.IOException;",
"IOException",
"java.io",
"class Main{\n\tpublic static void main(String args[]){\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n\n\t\t\t,m;\n\t\t\n\t\tString[] input = new String[100];\n\t\t\n\t\ttry{\n\t\t\t//n,mใฎๅ
ฅๅ\n\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\tn = Integer.parseInt(input[0]);\n\t\t\tm = Integer.parseInt(input[1]);\n\t\t\t\n\t\t\tint[][] A = new int[n][m]; \n\t\t\tint[] b = new int[m];\n\t\t\t\n\t\t\t//Aใฎๅ
ฅๅ\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tA[i][j] = Integer.parseInt(input[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//bใฎๅ
ฅๅ\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\tb[j] = Integer.parseInt(br.readLine());\n\t\t\t}\n\t\t\t//่จ็ฎใปๅบๅ\n\t\t\tint c = 0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tc += A[i][j] * b[j];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(c);\n\t\t\t\tc = 0;\n\t\t\t}\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t\treturn;\n\t\t}\n\t\t\n\t}\n}",
"Main",
"public static void main(String args[]){\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n\n\t\t\t,m;\n\t\t\n\t\tString[] input = new String[100];\n\t\t\n\t\ttry{\n\t\t\t//n,mใฎๅ
ฅๅ\n\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\tn = Integer.parseInt(input[0]);\n\t\t\tm = Integer.parseInt(input[1]);\n\t\t\t\n\t\t\tint[][] A = new int[n][m]; \n\t\t\tint[] b = new int[m];\n\t\t\t\n\t\t\t//Aใฎๅ
ฅๅ\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tA[i][j] = Integer.parseInt(input[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//bใฎๅ
ฅๅ\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\tb[j] = Integer.parseInt(br.readLine());\n\t\t\t}\n\t\t\t//่จ็ฎใปๅบๅ\n\t\t\tint c = 0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tc += A[i][j] * b[j];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(c);\n\t\t\t\tc = 0;\n\t\t\t}\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t\treturn;\n\t\t}\n\t\t\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n\n\t\t\t,m;\n\t\t\n\t\tString[] input = new String[100];\n\t\t\n\t\ttry{\n\t\t\t//n,mใฎๅ
ฅๅ\n\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\tn = Integer.parseInt(input[0]);\n\t\t\tm = Integer.parseInt(input[1]);\n\t\t\t\n\t\t\tint[][] A = new int[n][m]; \n\t\t\tint[] b = new int[m];\n\t\t\t\n\t\t\t//Aใฎๅ
ฅๅ\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tA[i][j] = Integer.parseInt(input[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//bใฎๅ
ฅๅ\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\tb[j] = Integer.parseInt(br.readLine());\n\t\t\t}\n\t\t\t//่จ็ฎใปๅบๅ\n\t\t\tint c = 0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tc += A[i][j] * b[j];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(c);\n\t\t\t\tc = 0;\n\t\t\t}\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t\treturn;\n\t\t}\n\t\t\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n",
"n",
"m;",
"m",
"String[] input = new String[100];",
"input",
"new String[100]",
"100",
"try{\n\t\t\t//n,mใฎๅ
ฅๅ\n\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\tn = Integer.parseInt(input[0]);\n\t\t\tm = Integer.parseInt(input[1]);\n\t\t\t\n\t\t\tint[][] A = new int[n][m]; \n\t\t\tint[] b = new int[m];\n\t\t\t\n\t\t\t//Aใฎๅ
ฅๅ\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tA[i][j] = Integer.parseInt(input[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//bใฎๅ
ฅๅ\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\tb[j] = Integer.parseInt(br.readLine());\n\t\t\t}\n\t\t\t//่จ็ฎใปๅบๅ\n\t\t\tint c = 0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tc += A[i][j] * b[j];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(c);\n\t\t\t\tc = 0;\n\t\t\t}\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t\treturn;\n\t\t}",
"catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t\treturn;\n\t\t}",
"IOException e",
"{\n\t\t\tSystem.out.println(e);\n\t\t\treturn;\n\t\t}",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"return;",
"{\n\t\t\t//n,mใฎๅ
ฅๅ\n\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\tn = Integer.parseInt(input[0]);\n\t\t\tm = Integer.parseInt(input[1]);\n\t\t\t\n\t\t\tint[][] A = new int[n][m]; \n\t\t\tint[] b = new int[m];\n\t\t\t\n\t\t\t//Aใฎๅ
ฅๅ\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tA[i][j] = Integer.parseInt(input[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//bใฎๅ
ฅๅ\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\tb[j] = Integer.parseInt(br.readLine());\n\t\t\t}\n\t\t\t//่จ็ฎใปๅบๅ\n\t\t\tint c = 0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tc += A[i][j] * b[j];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(c);\n\t\t\t\tc = 0;\n\t\t\t}\n\t\t}",
"input = br.readLine().split(\"[\\\\s]+\")",
"input",
"br.readLine().split(\"[\\\\s]+\")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\"[\\\\s]+\"",
"n = Integer.parseInt(input[0])",
"n",
"Integer.parseInt(input[0])",
"Integer.parseInt",
"Integer",
"input[0]",
"input",
"0",
"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\t\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tA[i][j] = Integer.parseInt(input[j]);\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\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tA[i][j] = Integer.parseInt(input[j]);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tA[i][j] = Integer.parseInt(input[j]);\n\t\t\t\t}\n\t\t\t}",
"input = br.readLine().split(\"[\\\\s]+\")",
"input",
"br.readLine().split(\"[\\\\s]+\")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\"[\\\\s]+\"",
"for(int j=0;j<m;j++){\n\t\t\t\t\tA[i][j] = Integer.parseInt(input[j]);\n\t\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tA[i][j] = Integer.parseInt(input[j]);\n\t\t\t\t}",
"{\n\t\t\t\t\tA[i][j] = Integer.parseInt(input[j]);\n\t\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 j=0;j<m;j++){\n\t\t\t\tb[j] = Integer.parseInt(br.readLine());\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tb[j] = Integer.parseInt(br.readLine());\n\t\t\t}",
"{\n\t\t\t\tb[j] = Integer.parseInt(br.readLine());\n\t\t\t}",
"b[j] = Integer.parseInt(br.readLine())",
"b[j]",
"b",
"j",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int c = 0;",
"c",
"0",
"for(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tc += A[i][j] * b[j];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(c);\n\t\t\t\tc = 0;\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 j=0;j<m;j++){\n\t\t\t\t\tc += A[i][j] * b[j];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(c);\n\t\t\t\tc = 0;\n\t\t\t}",
"{\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tc += A[i][j] * b[j];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(c);\n\t\t\t\tc = 0;\n\t\t\t}",
"for(int j=0;j<m;j++){\n\t\t\t\t\tc += A[i][j] * b[j];\n\t\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tc += A[i][j] * b[j];\n\t\t\t\t}",
"{\n\t\t\t\t\tc += A[i][j] * b[j];\n\t\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",
"c = 0",
"c",
"0",
"String args[]",
"args"
] | import java.io.*;
import java.io.IOException;
class Main{
public static void main(String args[]){
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n
,m;
String[] input = new String[100];
try{
//n,mใฎๅ
ฅๅ
input = br.readLine().split("[\\s]+");
n = Integer.parseInt(input[0]);
m = Integer.parseInt(input[1]);
int[][] A = new int[n][m];
int[] b = new int[m];
//Aใฎๅ
ฅๅ
for(int i=0;i<n;i++){
input = br.readLine().split("[\\s]+");
for(int j=0;j<m;j++){
A[i][j] = Integer.parseInt(input[j]);
}
}
//bใฎๅ
ฅๅ
for(int j=0;j<m;j++){
b[j] = Integer.parseInt(br.readLine());
}
//่จ็ฎใปๅบๅ
int c = 0;
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
c += A[i][j] * b[j];
}
System.out.println(c);
c = 0;
}
}catch(IOException e){
System.out.println(e);
return;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
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,
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,
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
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
20,
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,
47
],
[
47,
48
],
[
47,
49
],
[
8,
51
],
[
51,
52
],
[
51,
53
],
[
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
],
[
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
],
[
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
],
[
115,
117
],
[
114,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
121,
122
],
[
122,
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
],
[
136,
136
],
[
136,
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
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
154,
160
],
[
160,
161
],
[
160,
162
],
[
8,
163
],
[
163,
164
],
[
163,
165
],
[
163,
166
],
[
167,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
6,
174
],
[
174,
175
]
] | [
"import java.io.*;\n\nclass Main {\n public static void main(String[] args) throws NumberFormatException, IOException {\n int n, m;\n String[] str;\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n str = br.readLine().split(\" \");\n n = Integer.parseInt(str[0]);\n m = Integer.parseInt(str[1]);\n\n int[][] arr = new int[n][m];\n int[] vec = new int[m];\n int[] ans = new int[n];\n\n for(int i = 0; i < n; i++){\n String[] str2 = br.readLine().split(\" \");\n for(int j = 0; j < m; j++){\n arr[i][j] = Integer.parseInt(str2[j]);\n }\n }\n\n for(int i = 0; i < m; i++){\n vec[i] = Integer.parseInt(br.readLine());\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n ans[i] += arr[i][j]*vec[j];\n }\n }\n\n for(int num : ans){\n System.out.println(num);\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"class Main {\n public static void main(String[] args) throws NumberFormatException, IOException {\n int n, m;\n String[] str;\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n str = br.readLine().split(\" \");\n n = Integer.parseInt(str[0]);\n m = Integer.parseInt(str[1]);\n\n int[][] arr = new int[n][m];\n int[] vec = new int[m];\n int[] ans = new int[n];\n\n for(int i = 0; i < n; i++){\n String[] str2 = br.readLine().split(\" \");\n for(int j = 0; j < m; j++){\n arr[i][j] = Integer.parseInt(str2[j]);\n }\n }\n\n for(int i = 0; i < m; i++){\n vec[i] = Integer.parseInt(br.readLine());\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n ans[i] += arr[i][j]*vec[j];\n }\n }\n\n for(int num : ans){\n System.out.println(num);\n }\n }\n}",
"Main",
"public static void main(String[] args) throws NumberFormatException, IOException {\n int n, m;\n String[] str;\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n str = br.readLine().split(\" \");\n n = Integer.parseInt(str[0]);\n m = Integer.parseInt(str[1]);\n\n int[][] arr = new int[n][m];\n int[] vec = new int[m];\n int[] ans = new int[n];\n\n for(int i = 0; i < n; i++){\n String[] str2 = br.readLine().split(\" \");\n for(int j = 0; j < m; j++){\n arr[i][j] = Integer.parseInt(str2[j]);\n }\n }\n\n for(int i = 0; i < m; i++){\n vec[i] = Integer.parseInt(br.readLine());\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n ans[i] += arr[i][j]*vec[j];\n }\n }\n\n for(int num : ans){\n System.out.println(num);\n }\n }",
"main",
"{\n int n, m;\n String[] str;\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n str = br.readLine().split(\" \");\n n = Integer.parseInt(str[0]);\n m = Integer.parseInt(str[1]);\n\n int[][] arr = new int[n][m];\n int[] vec = new int[m];\n int[] ans = new int[n];\n\n for(int i = 0; i < n; i++){\n String[] str2 = br.readLine().split(\" \");\n for(int j = 0; j < m; j++){\n arr[i][j] = Integer.parseInt(str2[j]);\n }\n }\n\n for(int i = 0; i < m; i++){\n vec[i] = Integer.parseInt(br.readLine());\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n ans[i] += arr[i][j]*vec[j];\n }\n }\n\n for(int num : ans){\n System.out.println(num);\n }\n }",
"int n",
"n",
"m;",
"m",
"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",
"int[][] arr = new int[n][m];",
"arr",
"new int[n][m]",
"n",
"m",
"int[] vec = new int[m];",
"vec",
"new int[m]",
"m",
"int[] ans = new int[n];",
"ans",
"new int[n]",
"n",
"for(int i = 0; i < n; i++){\n String[] str2 = br.readLine().split(\" \");\n for(int j = 0; j < m; j++){\n arr[i][j] = Integer.parseInt(str2[j]);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String[] str2 = br.readLine().split(\" \");\n for(int j = 0; j < m; j++){\n arr[i][j] = Integer.parseInt(str2[j]);\n }\n }",
"{\n String[] str2 = br.readLine().split(\" \");\n for(int j = 0; j < m; j++){\n arr[i][j] = Integer.parseInt(str2[j]);\n }\n }",
"String[] str2 = br.readLine().split(\" \");",
"str2",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(int j = 0; j < m; j++){\n arr[i][j] = Integer.parseInt(str2[j]);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n arr[i][j] = Integer.parseInt(str2[j]);\n }",
"{\n arr[i][j] = Integer.parseInt(str2[j]);\n }",
"arr[i][j] = Integer.parseInt(str2[j])",
"arr[i][j]",
"arr[i]",
"arr",
"i",
"j",
"Integer.parseInt(str2[j])",
"Integer.parseInt",
"Integer",
"str2[j]",
"str2",
"j",
"for(int i = 0; i < m; i++){\n vec[i] = Integer.parseInt(br.readLine());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n vec[i] = Integer.parseInt(br.readLine());\n }",
"{\n vec[i] = Integer.parseInt(br.readLine());\n }",
"vec[i] = Integer.parseInt(br.readLine())",
"vec[i]",
"vec",
"i",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n ans[i] += arr[i][j]*vec[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 ans[i] += arr[i][j]*vec[j];\n }\n }",
"{\n for(int j = 0; j < m; j++){\n ans[i] += arr[i][j]*vec[j];\n }\n }",
"for(int j = 0; j < m; j++){\n ans[i] += arr[i][j]*vec[j];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n ans[i] += arr[i][j]*vec[j];\n }",
"{\n ans[i] += arr[i][j]*vec[j];\n }",
"ans[i] += arr[i][j]*vec[j]",
"ans[i]",
"ans",
"i",
"arr[i][j]*vec[j]",
"arr[i][j]",
"arr[i]",
"arr",
"i",
"j",
"vec[j]",
"vec",
"j",
"for(int num : ans){\n System.out.println(num);\n }",
"int num",
"ans",
"{\n System.out.println(num);\n }",
"{\n System.out.println(num);\n }",
"System.out.println(num)",
"System.out.println",
"System.out",
"System",
"System.out",
"num",
"String[] args",
"args"
] | import java.io.*;
class Main {
public static void main(String[] args) throws NumberFormatException, IOException {
int n, m;
String[] str;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
str = br.readLine().split(" ");
n = Integer.parseInt(str[0]);
m = Integer.parseInt(str[1]);
int[][] arr = new int[n][m];
int[] vec = new int[m];
int[] ans = new int[n];
for(int i = 0; i < n; i++){
String[] str2 = br.readLine().split(" ");
for(int j = 0; j < m; j++){
arr[i][j] = Integer.parseInt(str2[j]);
}
}
for(int i = 0; i < m; i++){
vec[i] = Integer.parseInt(br.readLine());
}
for(int i = 0; i < n; i++){
for(int j = 0; j < m; j++){
ans[i] += arr[i][j]*vec[j];
}
}
for(int num : ans){
System.out.println(num);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
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,
4,
18,
13,
13,
13,
4,
18,
13,
41,
13,
20,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
4,
18,
13,
13,
17,
4,
18,
13,
41,
13,
20,
4,
18,
13,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
0,
13,
20,
13,
13,
23,
13,
23,
13,
12,
13,
30,
0,
18,
18,
18,
36,
13,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
36,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
36,
13,
1,
40,
13,
30,
30,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
18,
18,
18,
36,
13,
13,
13,
4,
18,
18,
13,
13,
17,
18,
18,
18,
36,
13,
13,
13,
4,
18,
18,
13,
13,
17,
12,
13,
30,
14,
2,
18,
13,
13,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
18,
36,
13,
13,
13,
2,
18,
18,
18,
13,
13,
13,
13,
18,
18,
18,
13,
13,
13,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
310,
5
],
[
310,
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,
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
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
54,
58
],
[
54,
59
],
[
59,
60
],
[
60,
61
],
[
8,
62
],
[
62,
63
],
[
62,
64
],
[
8,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
65,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
77,
81
],
[
77,
82
],
[
82,
83
],
[
83,
84
],
[
8,
85
],
[
85,
86
],
[
85,
87
],
[
8,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
88,
92
],
[
8,
93
],
[
93,
94
],
[
94,
95
],
[
6,
96
],
[
96,
97
],
[
0,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
98,
102
],
[
102,
103
],
[
98,
104
],
[
104,
105
],
[
98,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
108,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
108,
119
],
[
119,
120
],
[
119,
121
],
[
106,
124
],
[
124,
125
],
[
106,
126
],
[
126,
127
],
[
98,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
132,
138
],
[
131,
139
],
[
128,
140
],
[
140,
141
],
[
128,
142
],
[
142,
143
],
[
128,
144
],
[
144,
145
],
[
98,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
149,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
156,
158
],
[
149,
159
],
[
159,
160
],
[
160,
161
],
[
149,
162
],
[
163,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
164,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
171,
173
],
[
164,
174
],
[
174,
175
],
[
175,
176
],
[
164,
177
],
[
178,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
183,
188
],
[
183,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
190,
194
],
[
189,
195
],
[
179,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
196,
201
],
[
196,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
203,
207
],
[
202,
208
],
[
163,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
209,
214
],
[
98,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
219,
223
],
[
223,
224
],
[
223,
225
],
[
218,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
227,
232
],
[
226,
233
],
[
233,
234
],
[
234,
235
],
[
233,
236
],
[
217,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
237,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
244,
246
],
[
237,
247
],
[
247,
248
],
[
248,
249
],
[
237,
250
],
[
251,
251
],
[
251,
252
],
[
252,
253
],
[
253,
254
],
[
254,
255
],
[
254,
256
],
[
252,
257
],
[
257,
258
],
[
257,
259
],
[
259,
260
],
[
259,
261
],
[
252,
262
],
[
262,
263
],
[
263,
264
],
[
252,
265
],
[
266,
266
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
269,
270
],
[
269,
271
],
[
267,
272
],
[
272,
273
],
[
272,
274
],
[
274,
275
],
[
274,
276
],
[
267,
277
],
[
277,
278
],
[
278,
279
],
[
267,
280
],
[
281,
281
],
[
281,
282
],
[
282,
283
],
[
283,
284
],
[
284,
285
],
[
285,
286
],
[
285,
287
],
[
284,
288
],
[
283,
289
],
[
282,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
292,
296
],
[
291,
297
],
[
290,
298
],
[
298,
299
],
[
299,
300
],
[
300,
301
],
[
300,
302
],
[
299,
303
],
[
298,
304
],
[
215,
305
],
[
305,
306
],
[
215,
307
],
[
307,
308
],
[
0,
309
],
[
309,
310
],
[
309,
311
]
] | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n int i,j;\n \n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int m=sc.nextInt();\n \n Matrix A=new Matrix(n,m);\n for(i=0;i<n;i++){\n for(j=0;j<m;j++)A.setElement(i,j,sc.nextInt());\n }\n \n Matrix B=new Matrix(m,1);\n for(i=0;i<m;i++)B.setElement(i,0,sc.nextInt());\n \n Matrix C=new Matrix(n,1);\n C.product(A,B);\n C.printElement();\n }\n}\nclass Matrix{\n private int row;\n private int col;\n private int elm[][];\n Matrix(int a,int b){\n this.row=a;\n this.col=b;\n elm=new int[a][b];\n }\n void setElement(int a,int b,int x){\n this.elm[a][b]=x;\n }\n void printElement(){\n for(int i=0;i<this.row;i++){\n for(int j=0;j<this.col;j++){\n if(j==0)System.out.printf(\"%d\",this.elm[i][j]);\n else System.out.printf(\" %d\",this.elm[i][j]);\n }\n System.out.printf(\"\\n\");\n }\n }\n void product(Matrix a,Matrix b){\n if(a.col!=b.row){\n System.out.println(\"wrong input\");\n System.exit(0);\n }\n \n for(int i=0;i<a.row;i++){\n for(int k=0;k<b.col;k++){\n for(int j=0;j<a.col;j++){\n this.elm[i][k]+=a.elm[i][j]*b.elm[j][k];\n }\n }\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n int i,j;\n \n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int m=sc.nextInt();\n \n Matrix A=new Matrix(n,m);\n for(i=0;i<n;i++){\n for(j=0;j<m;j++)A.setElement(i,j,sc.nextInt());\n }\n \n Matrix B=new Matrix(m,1);\n for(i=0;i<m;i++)B.setElement(i,0,sc.nextInt());\n \n Matrix C=new Matrix(n,1);\n C.product(A,B);\n C.printElement();\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n int i,j;\n \n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int m=sc.nextInt();\n \n Matrix A=new Matrix(n,m);\n for(i=0;i<n;i++){\n for(j=0;j<m;j++)A.setElement(i,j,sc.nextInt());\n }\n \n Matrix B=new Matrix(m,1);\n for(i=0;i<m;i++)B.setElement(i,0,sc.nextInt());\n \n Matrix C=new Matrix(n,1);\n C.product(A,B);\n C.printElement();\n }",
"main",
"{\n int i,j;\n \n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int m=sc.nextInt();\n \n Matrix A=new Matrix(n,m);\n for(i=0;i<n;i++){\n for(j=0;j<m;j++)A.setElement(i,j,sc.nextInt());\n }\n \n Matrix B=new Matrix(m,1);\n for(i=0;i<m;i++)B.setElement(i,0,sc.nextInt());\n \n Matrix C=new Matrix(n,1);\n C.product(A,B);\n C.printElement();\n }",
"int i",
"i",
"j;",
"j",
"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",
"Matrix A=new Matrix(n,m);",
"A",
"new Matrix(n,m)",
"for(i=0;i<n;i++){\n for(j=0;j<m;j++)A.setElement(i,j,sc.nextInt());\n }",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(j=0;j<m;j++)A.setElement(i,j,sc.nextInt());\n }",
"{\n for(j=0;j<m;j++)A.setElement(i,j,sc.nextInt());\n }",
"for(j=0;j<m;j++)A.setElement(i,j,sc.nextInt());",
"j=0;",
"j=0",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"A.setElement(i,j,sc.nextInt());",
"A.setElement(i,j,sc.nextInt())",
"A.setElement",
"A",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Matrix B=new Matrix(m,1);",
"B",
"new Matrix(m,1)",
"for(i=0;i<m;i++)B.setElement(i,0,sc.nextInt());",
"i=0;",
"i=0",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"B.setElement(i,0,sc.nextInt());",
"B.setElement(i,0,sc.nextInt())",
"B.setElement",
"B",
"i",
"0",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Matrix C=new Matrix(n,1);",
"C",
"new Matrix(n,1)",
"C.product(A,B)",
"C.product",
"C",
"A",
"B",
"C.printElement()",
"C.printElement",
"C",
"String[] args",
"args",
"class Matrix{\n private int row;\n private int col;\n private int elm[][];\n Matrix(int a,int b){\n this.row=a;\n this.col=b;\n elm=new int[a][b];\n }\n void setElement(int a,int b,int x){\n this.elm[a][b]=x;\n }\n void printElement(){\n for(int i=0;i<this.row;i++){\n for(int j=0;j<this.col;j++){\n if(j==0)System.out.printf(\"%d\",this.elm[i][j]);\n else System.out.printf(\" %d\",this.elm[i][j]);\n }\n System.out.printf(\"\\n\");\n }\n }\n void product(Matrix a,Matrix b){\n if(a.col!=b.row){\n System.out.println(\"wrong input\");\n System.exit(0);\n }\n \n for(int i=0;i<a.row;i++){\n for(int k=0;k<b.col;k++){\n for(int j=0;j<a.col;j++){\n this.elm[i][k]+=a.elm[i][j]*b.elm[j][k];\n }\n }\n }\n }\n}",
"Matrix",
"private int row;",
"row",
"private int col;",
"col",
"private int elm[][];",
"elm",
"Matrix(int a,int b){\n this.row=a;\n this.col=b;\n elm=new int[a][b];\n }",
"Matrix",
"{\n this.row=a;\n this.col=b;\n elm=new int[a][b];\n }",
"this.row=a",
"this.row",
"this",
"this.row",
"a",
"this.col=b",
"this.col",
"this",
"this.col",
"b",
"elm=new int[a][b]",
"elm",
"new int[a][b]",
"a",
"b",
"int a",
"a",
"int b",
"b",
"void setElement(int a,int b,int x){\n this.elm[a][b]=x;\n }",
"setElement",
"{\n this.elm[a][b]=x;\n }",
"this.elm[a][b]=x",
"this.elm[a][b]",
"this.elm[a]",
"this.elm",
"this",
"this.elm",
"a",
"b",
"x",
"int a",
"a",
"int b",
"b",
"int x",
"x",
"void printElement(){\n for(int i=0;i<this.row;i++){\n for(int j=0;j<this.col;j++){\n if(j==0)System.out.printf(\"%d\",this.elm[i][j]);\n else System.out.printf(\" %d\",this.elm[i][j]);\n }\n System.out.printf(\"\\n\");\n }\n }",
"printElement",
"{\n for(int i=0;i<this.row;i++){\n for(int j=0;j<this.col;j++){\n if(j==0)System.out.printf(\"%d\",this.elm[i][j]);\n else System.out.printf(\" %d\",this.elm[i][j]);\n }\n System.out.printf(\"\\n\");\n }\n }",
"for(int i=0;i<this.row;i++){\n for(int j=0;j<this.col;j++){\n if(j==0)System.out.printf(\"%d\",this.elm[i][j]);\n else System.out.printf(\" %d\",this.elm[i][j]);\n }\n System.out.printf(\"\\n\");\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<this.row",
"i",
"this.row",
"this",
"this.row",
"i++",
"i++",
"i",
"{\n for(int j=0;j<this.col;j++){\n if(j==0)System.out.printf(\"%d\",this.elm[i][j]);\n else System.out.printf(\" %d\",this.elm[i][j]);\n }\n System.out.printf(\"\\n\");\n }",
"{\n for(int j=0;j<this.col;j++){\n if(j==0)System.out.printf(\"%d\",this.elm[i][j]);\n else System.out.printf(\" %d\",this.elm[i][j]);\n }\n System.out.printf(\"\\n\");\n }",
"for(int j=0;j<this.col;j++){\n if(j==0)System.out.printf(\"%d\",this.elm[i][j]);\n else System.out.printf(\" %d\",this.elm[i][j]);\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<this.col",
"j",
"this.col",
"this",
"this.col",
"j++",
"j++",
"j",
"{\n if(j==0)System.out.printf(\"%d\",this.elm[i][j]);\n else System.out.printf(\" %d\",this.elm[i][j]);\n }",
"{\n if(j==0)System.out.printf(\"%d\",this.elm[i][j]);\n else System.out.printf(\" %d\",this.elm[i][j]);\n }",
"if(j==0)System.out.printf(\"%d\",this.elm[i][j]);\n else System.out.printf(\" %d\",this.elm[i][j]);",
"j==0",
"j",
"0",
"System.out.printf(\"%d\",this.elm[i][j])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d\"",
"this.elm[i][j]",
"this.elm[i]",
"this.elm",
"this",
"this.elm",
"i",
"j",
"System.out.printf(\" %d\",this.elm[i][j])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"this.elm[i][j]",
"this.elm[i]",
"this.elm",
"this",
"this.elm",
"i",
"j",
"System.out.printf(\"\\n\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"\\n\"",
"void product(Matrix a,Matrix b){\n if(a.col!=b.row){\n System.out.println(\"wrong input\");\n System.exit(0);\n }\n \n for(int i=0;i<a.row;i++){\n for(int k=0;k<b.col;k++){\n for(int j=0;j<a.col;j++){\n this.elm[i][k]+=a.elm[i][j]*b.elm[j][k];\n }\n }\n }\n }",
"product",
"{\n if(a.col!=b.row){\n System.out.println(\"wrong input\");\n System.exit(0);\n }\n \n for(int i=0;i<a.row;i++){\n for(int k=0;k<b.col;k++){\n for(int j=0;j<a.col;j++){\n this.elm[i][k]+=a.elm[i][j]*b.elm[j][k];\n }\n }\n }\n }",
"if(a.col!=b.row){\n System.out.println(\"wrong input\");\n System.exit(0);\n }",
"a.col!=b.row",
"a.col",
"a",
"a.col",
"b.row",
"b",
"b.row",
"{\n System.out.println(\"wrong input\");\n System.exit(0);\n }",
"System.out.println(\"wrong input\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"wrong input\"",
"System.exit(0)",
"System.exit",
"System",
"0",
"for(int i=0;i<a.row;i++){\n for(int k=0;k<b.col;k++){\n for(int j=0;j<a.col;j++){\n this.elm[i][k]+=a.elm[i][j]*b.elm[j][k];\n }\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a.row",
"i",
"a.row",
"a",
"a.row",
"i++",
"i++",
"i",
"{\n for(int k=0;k<b.col;k++){\n for(int j=0;j<a.col;j++){\n this.elm[i][k]+=a.elm[i][j]*b.elm[j][k];\n }\n }\n }",
"{\n for(int k=0;k<b.col;k++){\n for(int j=0;j<a.col;j++){\n this.elm[i][k]+=a.elm[i][j]*b.elm[j][k];\n }\n }\n }",
"for(int k=0;k<b.col;k++){\n for(int j=0;j<a.col;j++){\n this.elm[i][k]+=a.elm[i][j]*b.elm[j][k];\n }\n }",
"int k=0;",
"int k=0;",
"k",
"0",
"k<b.col",
"k",
"b.col",
"b",
"b.col",
"k++",
"k++",
"k",
"{\n for(int j=0;j<a.col;j++){\n this.elm[i][k]+=a.elm[i][j]*b.elm[j][k];\n }\n }",
"{\n for(int j=0;j<a.col;j++){\n this.elm[i][k]+=a.elm[i][j]*b.elm[j][k];\n }\n }",
"for(int j=0;j<a.col;j++){\n this.elm[i][k]+=a.elm[i][j]*b.elm[j][k];\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<a.col",
"j",
"a.col",
"a",
"a.col",
"j++",
"j++",
"j",
"{\n this.elm[i][k]+=a.elm[i][j]*b.elm[j][k];\n }",
"{\n this.elm[i][k]+=a.elm[i][j]*b.elm[j][k];\n }",
"this.elm[i][k]+=a.elm[i][j]*b.elm[j][k]",
"this.elm[i][k]",
"this.elm[i]",
"this.elm",
"this",
"this.elm",
"i",
"k",
"a.elm[i][j]*b.elm[j][k]",
"a.elm[i][j]",
"a.elm[i]",
"a.elm",
"a",
"a.elm",
"i",
"j",
"b.elm[j][k]",
"b.elm[j]",
"b.elm",
"b",
"b.elm",
"j",
"k",
"Matrix a",
"a",
"Matrix b",
"b",
"public class Main {\n public static void main(String[] args) throws Exception {\n int i,j;\n \n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int m=sc.nextInt();\n \n Matrix A=new Matrix(n,m);\n for(i=0;i<n;i++){\n for(j=0;j<m;j++)A.setElement(i,j,sc.nextInt());\n }\n \n Matrix B=new Matrix(m,1);\n for(i=0;i<m;i++)B.setElement(i,0,sc.nextInt());\n \n Matrix C=new Matrix(n,1);\n C.product(A,B);\n C.printElement();\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n int i,j;\n \n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int m=sc.nextInt();\n \n Matrix A=new Matrix(n,m);\n for(i=0;i<n;i++){\n for(j=0;j<m;j++)A.setElement(i,j,sc.nextInt());\n }\n \n Matrix B=new Matrix(m,1);\n for(i=0;i<m;i++)B.setElement(i,0,sc.nextInt());\n \n Matrix C=new Matrix(n,1);\n C.product(A,B);\n C.printElement();\n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
int i,j;
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int m=sc.nextInt();
Matrix A=new Matrix(n,m);
for(i=0;i<n;i++){
for(j=0;j<m;j++)A.setElement(i,j,sc.nextInt());
}
Matrix B=new Matrix(m,1);
for(i=0;i<m;i++)B.setElement(i,0,sc.nextInt());
Matrix C=new Matrix(n,1);
C.product(A,B);
C.printElement();
}
}
class Matrix{
private int row;
private int col;
private int elm[][];
Matrix(int a,int b){
this.row=a;
this.col=b;
elm=new int[a][b];
}
void setElement(int a,int b,int x){
this.elm[a][b]=x;
}
void printElement(){
for(int i=0;i<this.row;i++){
for(int j=0;j<this.col;j++){
if(j==0)System.out.printf("%d",this.elm[i][j]);
else System.out.printf(" %d",this.elm[i][j]);
}
System.out.printf("\n");
}
}
void product(Matrix a,Matrix b){
if(a.col!=b.row){
System.out.println("wrong input");
System.exit(0);
}
for(int i=0;i<a.row;i++){
for(int k=0;k<b.col;k++){
for(int j=0;j<a.col;j++){
this.elm[i][k]+=a.elm[i][j]*b.elm[j][k];
}
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
41,
13,
8,
4,
18,
13,
20,
20,
41,
13,
20,
4,
13,
13,
13,
4,
18,
13,
12,
13,
30,
41,
13,
41,
13,
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,
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,
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
],
[
176,
11
],
[
176,
12
],
[
12,
13
],
[
12,
14
],
[
176,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
15,
21
],
[
21,
22
],
[
176,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
28,
32
],
[
28,
33
],
[
25,
34
],
[
34,
35
],
[
34,
36
],
[
25,
37
],
[
37,
38
],
[
37,
39
],
[
37,
40
],
[
25,
41
],
[
41,
42
],
[
42,
43
],
[
176,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
46,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
46,
61
],
[
61,
62
],
[
61,
63
],
[
46,
66
],
[
66,
67
],
[
66,
68
],
[
46,
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
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
96,
102
],
[
102,
103
],
[
103,
104
],
[
46,
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
],
[
46,
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
],
[
44,
171
],
[
171,
172
],
[
44,
173
],
[
173,
174
],
[
0,
175
],
[
175,
176
],
[
175,
177
]
] | [
"import java.io.ByteArrayInputStream;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\n\npublic class Main {\n\n String INPUT = \"\";\n\n public static void main(String[] args) throws Exception {\n new Main().run();\n }\n\n void run() {\n Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));\n PrintWriter out = new PrintWriter(System.out);\n\n solve(sc, out);\n out.flush();\n }\n\n void solve(Scanner sc, PrintWriter out) {\n int n, m;\n \n n = sc.nextInt();\n m = sc.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\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 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 \tint a = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta += A[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(a);\n\t\t}\n }\n}\n",
"import java.io.ByteArrayInputStream;",
"ByteArrayInputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n String INPUT = \"\";\n\n public static void main(String[] args) throws Exception {\n new Main().run();\n }\n\n void run() {\n Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));\n PrintWriter out = new PrintWriter(System.out);\n\n solve(sc, out);\n out.flush();\n }\n\n void solve(Scanner sc, PrintWriter out) {\n int n, m;\n \n n = sc.nextInt();\n m = sc.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\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 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 \tint a = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta += A[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(a);\n\t\t}\n }\n}",
"Main",
"String INPUT = \"\";",
"INPUT",
"\"\"",
"public static void main(String[] args) throws Exception {\n new Main().run();\n }",
"main",
"{\n new Main().run();\n }",
"new Main().run()",
"new Main().run",
"new Main()",
"String[] args",
"args",
"void run() {\n Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));\n PrintWriter out = new PrintWriter(System.out);\n\n solve(sc, out);\n out.flush();\n }",
"run",
"{\n Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));\n PrintWriter out = new PrintWriter(System.out);\n\n solve(sc, out);\n out.flush();\n }",
"Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));",
"sc",
"INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()))",
"INPUT.isEmpty()",
"INPUT.isEmpty",
"INPUT",
"new Scanner(System.in)",
"new Scanner(new ByteArrayInputStream(INPUT.getBytes()))",
"PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"solve(sc, out)",
"solve",
"sc",
"out",
"out.flush()",
"out.flush",
"out",
"void solve(Scanner sc, PrintWriter out) {\n int n, m;\n \n n = sc.nextInt();\n m = sc.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\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 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 \tint a = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta += A[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(a);\n\t\t}\n }",
"solve",
"{\n int n, m;\n \n n = sc.nextInt();\n m = sc.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\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 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 \tint a = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta += A[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(a);\n\t\t}\n }",
"int n",
"n",
"m;",
"m",
"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",
"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 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 \tint a = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta += A[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(a);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tint a = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta += A[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(a);\n\t\t}",
"{\n \tint a = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta += A[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(a);\n\t\t}",
"int a = 0;",
"a",
"0",
"for (int j = 0; j < m; j++) {\n\t\t\t\ta += 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\ta += A[i][j]*b[j];\n\t\t\t}",
"{\n\t\t\t\ta += A[i][j]*b[j];\n\t\t\t}",
"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",
"Scanner sc",
"sc",
"PrintWriter out",
"out",
"public class Main {\n\n String INPUT = \"\";\n\n public static void main(String[] args) throws Exception {\n new Main().run();\n }\n\n void run() {\n Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));\n PrintWriter out = new PrintWriter(System.out);\n\n solve(sc, out);\n out.flush();\n }\n\n void solve(Scanner sc, PrintWriter out) {\n int n, m;\n \n n = sc.nextInt();\n m = sc.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\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 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 \tint a = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta += A[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(a);\n\t\t}\n }\n}",
"public class Main {\n\n String INPUT = \"\";\n\n public static void main(String[] args) throws Exception {\n new Main().run();\n }\n\n void run() {\n Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));\n PrintWriter out = new PrintWriter(System.out);\n\n solve(sc, out);\n out.flush();\n }\n\n void solve(Scanner sc, PrintWriter out) {\n int n, m;\n \n n = sc.nextInt();\n m = sc.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\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 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 \tint a = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ta += A[i][j]*b[j];\n\t\t\t}\n\t\t\tSystem.out.println(a);\n\t\t}\n }\n}",
"Main"
] | import java.io.ByteArrayInputStream;
import java.io.PrintWriter;
import java.util.Scanner;
public class Main {
String INPUT = "";
public static void main(String[] args) throws Exception {
new Main().run();
}
void run() {
Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));
PrintWriter out = new PrintWriter(System.out);
solve(sc, out);
out.flush();
}
void solve(Scanner sc, PrintWriter out) {
int n, m;
n = sc.nextInt();
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 a = 0;
for (int j = 0; j < m; j++) {
a += A[i][j]*b[j];
}
System.out.println(a);
}
}
}
|
[
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,
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,
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,
17,
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,
18,
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
],
[
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
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
17,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
28,
30
],
[
11,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
36,
38
],
[
11,
39
],
[
39,
40
],
[
39,
41
],
[
11,
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
],
[
61,
62
],
[
62,
63
],
[
59,
64
],
[
56,
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
],
[
84,
87
],
[
87,
88
],
[
87,
89
],
[
11,
90
],
[
90,
91
],
[
90,
92
],
[
11,
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
],
[
118,
119
],
[
11,
120
],
[
120,
121
],
[
120,
122
],
[
11,
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
],
[
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
],
[
152,
156
],
[
151,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
157,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
163,
167
],
[
11,
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
],
[
9,
193
],
[
193,
194
],
[
0,
195
],
[
195,
196
],
[
195,
197
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String[] line = br.readLine().split(\" \");\n\t int n = Integer.parseInt(line[0]);\n\t int m = Integer.parseInt(line[1]);\n\n\t // parse A\n\t int[][] a = new int[n][m];\n\t for (int i = 0; i < n; i++) {\n\t \tline = br.readLine().split(\" \");\n\t \tfor (int j = 0; j < m; j++) {\n\t\t \ta[i][j] = Integer.parseInt(line[j]);\n\t \t}\n\t }\n\n\t // parse B\n\t int[][] b = new int[m][1];\n\t for (int i = 0; i < m; i++) {\n\t \tb[i][0] = Integer.parseInt(br.readLine());\n\t }\n\n\t // Calculation\n\t int[][] ans = new int[n][1];\n\t for (int i = 0; i < n; i++) {\n\t \tfor (int j = 0; j < m; j++) {\n\t \t\tans[i][0] += (a[i][j] * b[j][0]);\n\t \t}\n\t }\n\n\t // Display Answer\n\t for (int i = 0; i < ans.length; i++) {\n\t \tSystem.out.println(ans[i][0]);\n\t }\n\t}\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 Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String[] line = br.readLine().split(\" \");\n\t int n = Integer.parseInt(line[0]);\n\t int m = Integer.parseInt(line[1]);\n\n\t // parse A\n\t int[][] a = new int[n][m];\n\t for (int i = 0; i < n; i++) {\n\t \tline = br.readLine().split(\" \");\n\t \tfor (int j = 0; j < m; j++) {\n\t\t \ta[i][j] = Integer.parseInt(line[j]);\n\t \t}\n\t }\n\n\t // parse B\n\t int[][] b = new int[m][1];\n\t for (int i = 0; i < m; i++) {\n\t \tb[i][0] = Integer.parseInt(br.readLine());\n\t }\n\n\t // Calculation\n\t int[][] ans = new int[n][1];\n\t for (int i = 0; i < n; i++) {\n\t \tfor (int j = 0; j < m; j++) {\n\t \t\tans[i][0] += (a[i][j] * b[j][0]);\n\t \t}\n\t }\n\n\t // Display Answer\n\t for (int i = 0; i < ans.length; i++) {\n\t \tSystem.out.println(ans[i][0]);\n\t }\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String[] line = br.readLine().split(\" \");\n\t int n = Integer.parseInt(line[0]);\n\t int m = Integer.parseInt(line[1]);\n\n\t // parse A\n\t int[][] a = new int[n][m];\n\t for (int i = 0; i < n; i++) {\n\t \tline = br.readLine().split(\" \");\n\t \tfor (int j = 0; j < m; j++) {\n\t\t \ta[i][j] = Integer.parseInt(line[j]);\n\t \t}\n\t }\n\n\t // parse B\n\t int[][] b = new int[m][1];\n\t for (int i = 0; i < m; i++) {\n\t \tb[i][0] = Integer.parseInt(br.readLine());\n\t }\n\n\t // Calculation\n\t int[][] ans = new int[n][1];\n\t for (int i = 0; i < n; i++) {\n\t \tfor (int j = 0; j < m; j++) {\n\t \t\tans[i][0] += (a[i][j] * b[j][0]);\n\t \t}\n\t }\n\n\t // Display Answer\n\t for (int i = 0; i < ans.length; i++) {\n\t \tSystem.out.println(ans[i][0]);\n\t }\n\t}",
"main",
"{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String[] line = br.readLine().split(\" \");\n\t int n = Integer.parseInt(line[0]);\n\t int m = Integer.parseInt(line[1]);\n\n\t // parse A\n\t int[][] a = new int[n][m];\n\t for (int i = 0; i < n; i++) {\n\t \tline = br.readLine().split(\" \");\n\t \tfor (int j = 0; j < m; j++) {\n\t\t \ta[i][j] = Integer.parseInt(line[j]);\n\t \t}\n\t }\n\n\t // parse B\n\t int[][] b = new int[m][1];\n\t for (int i = 0; i < m; i++) {\n\t \tb[i][0] = Integer.parseInt(br.readLine());\n\t }\n\n\t // Calculation\n\t int[][] ans = new int[n][1];\n\t for (int i = 0; i < n; i++) {\n\t \tfor (int j = 0; j < m; j++) {\n\t \t\tans[i][0] += (a[i][j] * b[j][0]);\n\t \t}\n\t }\n\n\t // Display Answer\n\t for (int i = 0; i < ans.length; i++) {\n\t \tSystem.out.println(ans[i][0]);\n\t }\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 = 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",
"for (int i = 0; i < n; i++) {\n\t \tline = br.readLine().split(\" \");\n\t \tfor (int j = 0; j < m; j++) {\n\t\t \ta[i][j] = Integer.parseInt(line[j]);\n\t \t}\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t \tline = br.readLine().split(\" \");\n\t \tfor (int j = 0; j < m; j++) {\n\t\t \ta[i][j] = Integer.parseInt(line[j]);\n\t \t}\n\t }",
"{\n\t \tline = br.readLine().split(\" \");\n\t \tfor (int j = 0; j < m; j++) {\n\t\t \ta[i][j] = Integer.parseInt(line[j]);\n\t \t}\n\t }",
"line = br.readLine().split(\" \")",
"line",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for (int j = 0; j < m; j++) {\n\t\t \ta[i][j] = Integer.parseInt(line[j]);\n\t \t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t \ta[i][j] = Integer.parseInt(line[j]);\n\t \t}",
"{\n\t\t \ta[i][j] = Integer.parseInt(line[j]);\n\t \t}",
"a[i][j] = Integer.parseInt(line[j])",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"Integer.parseInt(line[j])",
"Integer.parseInt",
"Integer",
"line[j]",
"line",
"j",
"int[][] b = new int[m][1];",
"b",
"new int[m][1]",
"m",
"1",
"for (int i = 0; i < m; i++) {\n\t \tb[i][0] = Integer.parseInt(br.readLine());\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t \tb[i][0] = Integer.parseInt(br.readLine());\n\t }",
"{\n\t \tb[i][0] = Integer.parseInt(br.readLine());\n\t }",
"b[i][0] = Integer.parseInt(br.readLine())",
"b[i][0]",
"b[i]",
"b",
"i",
"0",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int[][] ans = new int[n][1];",
"ans",
"new int[n][1]",
"n",
"1",
"for (int i = 0; i < n; i++) {\n\t \tfor (int j = 0; j < m; j++) {\n\t \t\tans[i][0] += (a[i][j] * b[j][0]);\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\tans[i][0] += (a[i][j] * b[j][0]);\n\t \t}\n\t }",
"{\n\t \tfor (int j = 0; j < m; j++) {\n\t \t\tans[i][0] += (a[i][j] * b[j][0]);\n\t \t}\n\t }",
"for (int j = 0; j < m; j++) {\n\t \t\tans[i][0] += (a[i][j] * b[j][0]);\n\t \t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t \t\tans[i][0] += (a[i][j] * b[j][0]);\n\t \t}",
"{\n\t \t\tans[i][0] += (a[i][j] * b[j][0]);\n\t \t}",
"ans[i][0] += (a[i][j] * b[j][0])",
"ans[i][0]",
"ans[i]",
"ans",
"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 < ans.length; i++) {\n\t \tSystem.out.println(ans[i][0]);\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < ans.length",
"i",
"ans.length",
"ans",
"ans.length",
"i++",
"i++",
"i",
"{\n\t \tSystem.out.println(ans[i][0]);\n\t }",
"{\n\t \tSystem.out.println(ans[i][0]);\n\t }",
"System.out.println(ans[i][0])",
"System.out.println",
"System.out",
"System",
"System.out",
"ans[i][0]",
"ans[i]",
"ans",
"i",
"0",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String[] line = br.readLine().split(\" \");\n\t int n = Integer.parseInt(line[0]);\n\t int m = Integer.parseInt(line[1]);\n\n\t // parse A\n\t int[][] a = new int[n][m];\n\t for (int i = 0; i < n; i++) {\n\t \tline = br.readLine().split(\" \");\n\t \tfor (int j = 0; j < m; j++) {\n\t\t \ta[i][j] = Integer.parseInt(line[j]);\n\t \t}\n\t }\n\n\t // parse B\n\t int[][] b = new int[m][1];\n\t for (int i = 0; i < m; i++) {\n\t \tb[i][0] = Integer.parseInt(br.readLine());\n\t }\n\n\t // Calculation\n\t int[][] ans = new int[n][1];\n\t for (int i = 0; i < n; i++) {\n\t \tfor (int j = 0; j < m; j++) {\n\t \t\tans[i][0] += (a[i][j] * b[j][0]);\n\t \t}\n\t }\n\n\t // Display Answer\n\t for (int i = 0; i < ans.length; i++) {\n\t \tSystem.out.println(ans[i][0]);\n\t }\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String[] line = br.readLine().split(\" \");\n\t int n = Integer.parseInt(line[0]);\n\t int m = Integer.parseInt(line[1]);\n\n\t // parse A\n\t int[][] a = new int[n][m];\n\t for (int i = 0; i < n; i++) {\n\t \tline = br.readLine().split(\" \");\n\t \tfor (int j = 0; j < m; j++) {\n\t\t \ta[i][j] = Integer.parseInt(line[j]);\n\t \t}\n\t }\n\n\t // parse B\n\t int[][] b = new int[m][1];\n\t for (int i = 0; i < m; i++) {\n\t \tb[i][0] = Integer.parseInt(br.readLine());\n\t }\n\n\t // Calculation\n\t int[][] ans = new int[n][1];\n\t for (int i = 0; i < n; i++) {\n\t \tfor (int j = 0; j < m; j++) {\n\t \t\tans[i][0] += (a[i][j] * b[j][0]);\n\t \t}\n\t }\n\n\t // Display Answer\n\t for (int i = 0; i < ans.length; i++) {\n\t \tSystem.out.println(ans[i][0]);\n\t }\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] line = br.readLine().split(" ");
int n = Integer.parseInt(line[0]);
int m = Integer.parseInt(line[1]);
// parse A
int[][] a = new int[n][m];
for (int i = 0; i < n; i++) {
line = br.readLine().split(" ");
for (int j = 0; j < m; j++) {
a[i][j] = Integer.parseInt(line[j]);
}
}
// parse B
int[][] b = new int[m][1];
for (int i = 0; i < m; i++) {
b[i][0] = Integer.parseInt(br.readLine());
}
// Calculation
int[][] ans = new int[n][1];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
ans[i][0] += (a[i][j] * b[j][0]);
}
}
// Display Answer
for (int i = 0; i < ans.length; i++) {
System.out.println(ans[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,
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,
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,
18,
13,
13,
13,
18,
13,
13,
28,
13,
13,
30,
30,
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
],
[
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
],
[
42,
43
],
[
42,
44
],
[
35,
45
],
[
45,
46
],
[
46,
47
],
[
35,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
50,
62
],
[
62,
63
],
[
63,
64
],
[
50,
65
],
[
66,
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
],
[
83,
84
],
[
83,
85
],
[
76,
86
],
[
86,
87
],
[
87,
88
],
[
76,
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
],
[
105,
106
],
[
105,
107
],
[
98,
108
],
[
108,
109
],
[
109,
110
],
[
98,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
113,
125
],
[
125,
126
],
[
126,
127
],
[
113,
128
],
[
129,
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
],
[
143,
145
],
[
143,
146
],
[
147,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
6,
154
],
[
154,
155
],
[
0,
156
],
[
156,
157
],
[
156,
158
]
] | [
"import java.util.*;\n\npublic class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[][] queue = new int[n][m];\n\t\tint[] vector = new int[m];\n\t\tint[] vectorAns = new int[n];\n\n\t\tfor(int i = 0; i < queue.length; i++){\n\t\t\tfor(int j = 0; j < queue[i].length; j++){\n\t\t\t\tqueue[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < vector.length; i++){\n\t\t\tvector[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < vectorAns.length; i++){\n\t\t\tfor(int j = 0; j < queue[i].length; j++){\n\t\t\t\tvectorAns[i] += queue[i][j] * vector[j];\n\t\t\t}\n\t\t}\n\t\tfor(int data: vectorAns){\n\t\t\tSystem.out.println(data);\n\t\t}\n\t}\n}\n\n",
"import java.util.*;",
"util.*",
"java",
"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[][] queue = new int[n][m];\n\t\tint[] vector = new int[m];\n\t\tint[] vectorAns = new int[n];\n\n\t\tfor(int i = 0; i < queue.length; i++){\n\t\t\tfor(int j = 0; j < queue[i].length; j++){\n\t\t\t\tqueue[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < vector.length; i++){\n\t\t\tvector[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < vectorAns.length; i++){\n\t\t\tfor(int j = 0; j < queue[i].length; j++){\n\t\t\t\tvectorAns[i] += queue[i][j] * vector[j];\n\t\t\t}\n\t\t}\n\t\tfor(int data: vectorAns){\n\t\t\tSystem.out.println(data);\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[][] queue = new int[n][m];\n\t\tint[] vector = new int[m];\n\t\tint[] vectorAns = new int[n];\n\n\t\tfor(int i = 0; i < queue.length; i++){\n\t\t\tfor(int j = 0; j < queue[i].length; j++){\n\t\t\t\tqueue[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < vector.length; i++){\n\t\t\tvector[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < vectorAns.length; i++){\n\t\t\tfor(int j = 0; j < queue[i].length; j++){\n\t\t\t\tvectorAns[i] += queue[i][j] * vector[j];\n\t\t\t}\n\t\t}\n\t\tfor(int data: vectorAns){\n\t\t\tSystem.out.println(data);\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[][] queue = new int[n][m];\n\t\tint[] vector = new int[m];\n\t\tint[] vectorAns = new int[n];\n\n\t\tfor(int i = 0; i < queue.length; i++){\n\t\t\tfor(int j = 0; j < queue[i].length; j++){\n\t\t\t\tqueue[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < vector.length; i++){\n\t\t\tvector[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < vectorAns.length; i++){\n\t\t\tfor(int j = 0; j < queue[i].length; j++){\n\t\t\t\tvectorAns[i] += queue[i][j] * vector[j];\n\t\t\t}\n\t\t}\n\t\tfor(int data: vectorAns){\n\t\t\tSystem.out.println(data);\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[][] queue = new int[n][m];",
"queue",
"new int[n][m]",
"n",
"m",
"int[] vector = new int[m];",
"vector",
"new int[m]",
"m",
"int[] vectorAns = new int[n];",
"vectorAns",
"new int[n]",
"n",
"for(int i = 0; i < queue.length; i++){\n\t\t\tfor(int j = 0; j < queue[i].length; j++){\n\t\t\t\tqueue[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < queue.length",
"i",
"queue.length",
"queue",
"queue.length",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < queue[i].length; j++){\n\t\t\t\tqueue[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < queue[i].length; j++){\n\t\t\t\tqueue[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0; j < queue[i].length; j++){\n\t\t\t\tqueue[i][j] = sc.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < queue[i].length",
"j",
"queue[i].length",
"queue[i]",
"queue",
"i",
"queue[i].length",
"j++",
"j++",
"j",
"{\n\t\t\t\tqueue[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tqueue[i][j] = sc.nextInt();\n\t\t\t}",
"queue[i][j] = sc.nextInt()",
"queue[i][j]",
"queue[i]",
"queue",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < vector.length; i++){\n\t\t\tvector[i] = sc.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < vector.length",
"i",
"vector.length",
"vector",
"vector.length",
"i++",
"i++",
"i",
"{\n\t\t\tvector[i] = sc.nextInt();\n\t\t}",
"{\n\t\t\tvector[i] = sc.nextInt();\n\t\t}",
"vector[i] = sc.nextInt()",
"vector[i]",
"vector",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < vectorAns.length; i++){\n\t\t\tfor(int j = 0; j < queue[i].length; j++){\n\t\t\t\tvectorAns[i] += queue[i][j] * vector[j];\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < vectorAns.length",
"i",
"vectorAns.length",
"vectorAns",
"vectorAns.length",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < queue[i].length; j++){\n\t\t\t\tvectorAns[i] += queue[i][j] * vector[j];\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < queue[i].length; j++){\n\t\t\t\tvectorAns[i] += queue[i][j] * vector[j];\n\t\t\t}\n\t\t}",
"for(int j = 0; j < queue[i].length; j++){\n\t\t\t\tvectorAns[i] += queue[i][j] * vector[j];\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < queue[i].length",
"j",
"queue[i].length",
"queue[i]",
"queue",
"i",
"queue[i].length",
"j++",
"j++",
"j",
"{\n\t\t\t\tvectorAns[i] += queue[i][j] * vector[j];\n\t\t\t}",
"{\n\t\t\t\tvectorAns[i] += queue[i][j] * vector[j];\n\t\t\t}",
"vectorAns[i] += queue[i][j] * vector[j]",
"vectorAns[i]",
"vectorAns",
"i",
"queue[i][j] * vector[j]",
"queue[i][j]",
"queue[i]",
"queue",
"i",
"j",
"vector[j]",
"vector",
"j",
"for(int data: vectorAns){\n\t\t\tSystem.out.println(data);\n\t\t}",
"int data",
"vectorAns",
"{\n\t\t\tSystem.out.println(data);\n\t\t}",
"{\n\t\t\tSystem.out.println(data);\n\t\t}",
"System.out.println(data)",
"System.out.println",
"System.out",
"System",
"System.out",
"data",
"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[][] queue = new int[n][m];\n\t\tint[] vector = new int[m];\n\t\tint[] vectorAns = new int[n];\n\n\t\tfor(int i = 0; i < queue.length; i++){\n\t\t\tfor(int j = 0; j < queue[i].length; j++){\n\t\t\t\tqueue[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < vector.length; i++){\n\t\t\tvector[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < vectorAns.length; i++){\n\t\t\tfor(int j = 0; j < queue[i].length; j++){\n\t\t\t\tvectorAns[i] += queue[i][j] * vector[j];\n\t\t\t}\n\t\t}\n\t\tfor(int data: vectorAns){\n\t\t\tSystem.out.println(data);\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[][] queue = new int[n][m];\n\t\tint[] vector = new int[m];\n\t\tint[] vectorAns = new int[n];\n\n\t\tfor(int i = 0; i < queue.length; i++){\n\t\t\tfor(int j = 0; j < queue[i].length; j++){\n\t\t\t\tqueue[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < vector.length; i++){\n\t\t\tvector[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < vectorAns.length; i++){\n\t\t\tfor(int j = 0; j < queue[i].length; j++){\n\t\t\t\tvectorAns[i] += queue[i][j] * vector[j];\n\t\t\t}\n\t\t}\n\t\tfor(int data: vectorAns){\n\t\t\tSystem.out.println(data);\n\t\t}\n\t}\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[][] queue = new int[n][m];
int[] vector = new int[m];
int[] vectorAns = new int[n];
for(int i = 0; i < queue.length; i++){
for(int j = 0; j < queue[i].length; j++){
queue[i][j] = sc.nextInt();
}
}
for(int i = 0; i < vector.length; i++){
vector[i] = sc.nextInt();
}
for(int i = 0; i < vectorAns.length; i++){
for(int j = 0; j < queue[i].length; j++){
vectorAns[i] += queue[i][j] * vector[j];
}
}
for(int data: vectorAns){
System.out.println(data);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
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,
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,
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
],
[
146,
5
],
[
146,
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
],
[
23,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
8,
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
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
66,
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
],
[
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
],
[
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
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
128,
134
],
[
134,
135
],
[
134,
136
],
[
107,
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 public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n \n int i = 0;\n int j = 0;\n int sum = 0;\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 \n for(i=0; i<n; i++){\n for(j=0; j<m; j++){\n A[i][j] = sc.nextInt();\n }\n }\n \n for(j=0; j<m; j++){\n b[j] = sc.nextInt();\n }\n \n for(i=0; i<n; i++){\n sum = 0;\n for(j=0; j<m; j++){\n sum = sum +(A[i][j]*b[j]);\n }\n System.out.println(sum);\n }\n \n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n \n int i = 0;\n int j = 0;\n int sum = 0;\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 \n for(i=0; i<n; i++){\n for(j=0; j<m; j++){\n A[i][j] = sc.nextInt();\n }\n }\n \n for(j=0; j<m; j++){\n b[j] = sc.nextInt();\n }\n \n for(i=0; i<n; i++){\n sum = 0;\n for(j=0; j<m; j++){\n sum = sum +(A[i][j]*b[j]);\n }\n System.out.println(sum);\n }\n \n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n \n int i = 0;\n int j = 0;\n int sum = 0;\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 \n for(i=0; i<n; i++){\n for(j=0; j<m; j++){\n A[i][j] = sc.nextInt();\n }\n }\n \n for(j=0; j<m; j++){\n b[j] = sc.nextInt();\n }\n \n for(i=0; i<n; i++){\n sum = 0;\n for(j=0; j<m; j++){\n sum = sum +(A[i][j]*b[j]);\n }\n System.out.println(sum);\n }\n \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n \n int i = 0;\n int j = 0;\n int sum = 0;\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 \n for(i=0; i<n; i++){\n for(j=0; j<m; j++){\n A[i][j] = sc.nextInt();\n }\n }\n \n for(j=0; j<m; j++){\n b[j] = sc.nextInt();\n }\n \n for(i=0; i<n; i++){\n sum = 0;\n for(j=0; j<m; j++){\n sum = sum +(A[i][j]*b[j]);\n }\n System.out.println(sum);\n }\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int i = 0;",
"i",
"0",
"int j = 0;",
"j",
"0",
"int sum = 0;",
"sum",
"0",
"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(i=0; i<n; i++){\n for(j=0; j<m; j++){\n A[i][j] = sc.nextInt();\n }\n }",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(j=0; j<m; j++){\n A[i][j] = sc.nextInt();\n }\n }",
"{\n for(j=0; j<m; j++){\n A[i][j] = sc.nextInt();\n }\n }",
"for(j=0; j<m; j++){\n A[i][j] = sc.nextInt();\n }",
"j=0;",
"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(j=0; j<m; j++){\n b[j] = sc.nextInt();\n }",
"j=0;",
"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(i=0; i<n; i++){\n sum = 0;\n for(j=0; j<m; j++){\n sum = sum +(A[i][j]*b[j]);\n }\n System.out.println(sum);\n }",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n sum = 0;\n for(j=0; j<m; j++){\n sum = sum +(A[i][j]*b[j]);\n }\n System.out.println(sum);\n }",
"{\n sum = 0;\n for(j=0; j<m; j++){\n sum = sum +(A[i][j]*b[j]);\n }\n System.out.println(sum);\n }",
"sum = 0",
"sum",
"0",
"for(j=0; j<m; j++){\n sum = sum +(A[i][j]*b[j]);\n }",
"j=0;",
"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) throws Exception {\n Scanner sc = new Scanner(System.in);\n \n int i = 0;\n int j = 0;\n int sum = 0;\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 \n for(i=0; i<n; i++){\n for(j=0; j<m; j++){\n A[i][j] = sc.nextInt();\n }\n }\n \n for(j=0; j<m; j++){\n b[j] = sc.nextInt();\n }\n \n for(i=0; i<n; i++){\n sum = 0;\n for(j=0; j<m; j++){\n sum = sum +(A[i][j]*b[j]);\n }\n System.out.println(sum);\n }\n \n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n \n int i = 0;\n int j = 0;\n int sum = 0;\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 \n for(i=0; i<n; i++){\n for(j=0; j<m; j++){\n A[i][j] = sc.nextInt();\n }\n }\n \n for(j=0; j<m; j++){\n b[j] = sc.nextInt();\n }\n \n for(i=0; i<n; i++){\n sum = 0;\n for(j=0; j<m; j++){\n sum = sum +(A[i][j]*b[j]);\n }\n System.out.println(sum);\n }\n \n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int i = 0;
int j = 0;
int sum = 0;
int n = sc.nextInt();
int m = sc.nextInt();
int A[][] = new int[n][m];
int b[] = new int[m];
for(i=0; i<n; i++){
for(j=0; j<m; j++){
A[i][j] = sc.nextInt();
}
}
for(j=0; j<m; j++){
b[j] = sc.nextInt();
}
for(i=0; i<n; i++){
sum = 0;
for(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,
41,
13,
17,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
40,
17,
30,
41,
13,
20,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
14,
2,
4,
18,
13,
17,
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,
0,
13,
20,
13,
14,
2,
4,
18,
13,
2,
17,
13,
30,
41,
13,
2,
4,
18,
13,
17,
41,
13,
4,
18,
13,
17,
41,
13,
17,
0,
18,
13,
13,
20,
13,
28,
13,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
13,
40,
13,
14,
2,
4,
18,
13,
2,
2,
17,
13,
13,
30,
41,
13,
4,
18,
13,
13,
41,
13,
2,
4,
18,
13,
2,
17,
13,
0,
18,
13,
13,
4,
18,
13,
18,
13,
17,
14,
2,
4,
18,
13,
2,
2,
17,
13,
13,
3,
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,
28,
13,
13,
30,
30,
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
],
[
249,
8
],
[
249,
9
],
[
9,
10
],
[
9,
11
],
[
249,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
22,
23
],
[
15,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
30,
32
],
[
24,
33
],
[
33,
34
],
[
33,
35
],
[
24,
36
],
[
36,
37
],
[
36,
38
],
[
24,
39
],
[
39,
40
],
[
39,
41
],
[
24,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
43,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
52,
56
],
[
51,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
57,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
69,
71
],
[
57,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
77,
79
],
[
57,
80
],
[
80,
81
],
[
80,
82
],
[
57,
84
],
[
84,
85
],
[
84,
86
],
[
51,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
89,
93
],
[
93,
94
],
[
93,
95
],
[
88,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
99,
103
],
[
96,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
96,
110
],
[
110,
111
],
[
110,
112
],
[
96,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
96,
119
],
[
119,
120
],
[
119,
121
],
[
119,
122
],
[
123,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
124,
130
],
[
130,
131
],
[
131,
132
],
[
130,
133
],
[
123,
134
],
[
134,
135
],
[
88,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
137,
141
],
[
142,
142
],
[
142,
143
],
[
142,
144
],
[
142,
145
],
[
136,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
149,
152
],
[
146,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
155,
159
],
[
159,
160
],
[
159,
161
],
[
146,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
166,
167
],
[
167,
168
],
[
166,
169
],
[
169,
170
],
[
169,
171
],
[
146,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
173,
177
],
[
178,
178
],
[
178,
179
],
[
178,
180
],
[
178,
181
],
[
172,
182
],
[
24,
183
],
[
183,
184
],
[
183,
185
],
[
24,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
187,
192
],
[
192,
193
],
[
192,
194
],
[
187,
195
],
[
195,
196
],
[
196,
197
],
[
187,
198
],
[
199,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
199,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
203,
208
],
[
208,
209
],
[
208,
210
],
[
203,
211
],
[
211,
212
],
[
212,
213
],
[
203,
214
],
[
215,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
219,
223
],
[
218,
224
],
[
224,
225
],
[
224,
226
],
[
199,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
227,
231
],
[
24,
232
],
[
232,
233
],
[
232,
234
],
[
232,
235
],
[
236,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
237,
242
],
[
24,
243
],
[
243,
244
],
[
244,
245
],
[
12,
246
],
[
246,
247
],
[
0,
248
],
[
248,
249
],
[
248,
250
]
] | [
"import java.io.InputStreamReader;\nimport java.io.LineNumberReader;\n\n/**\n * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_6_D\n * \n * @author eitatsuro\n * \n */\npublic class Main {\n private final static String SPACE = \" \";\n \n public static void main(String[] args) {\n try {\n LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String sStr;\n int n = 0;\n int m = 0;\n int[][] a = null;\n int[] b = null;\n while ((sStr = stdReader.readLine()) != null) {\n \n // ????????????????????????\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n m = Integer.valueOf(inputs[1]);\n // ??????????ยด???ยจ??????\n a = new int[n][];\n b = new int[m];\n } else if (stdReader.getLineNumber() <= 1 + n) {\n // 2????????\\??????????????????\n // ??????????????ยฐ(0,1,2,...)\n int i = stdReader.getLineNumber() - 2;\n String[] inputs = sStr.split(\" \");\n int j = 0;\n a[i] = new int[m];\n for (String input : inputs) {\n a[i][j] = Integer.parseInt(input);\n j++;\n }\n } else if (stdReader.getLineNumber() <= 1 + n + m) {\n String[] inputsVector = sStr.split(SPACE);\n int k = stdReader.getLineNumber() - (2+n);\n b[k] = Integer.parseInt(inputsVector[0]);\n\n if (stdReader.getLineNumber() == 1+n+m) break;\n }\n }\n \n int c[] = new int[n];\n\n // ?????? x ?????????????????????\n for (int i =0; i<n; i++) {\n int temp = 0;\n for (int j = 0; j<m; j++){\n temp += a[i][j] * b[j];\n }\n c[i] = temp;\n }\n \n // ??ยข???????????????\n for (int ci: c){\n System.out.println(ci);\n }\n\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n}",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.LineNumberReader;",
"LineNumberReader",
"java.io",
"public class Main {\n private final static String SPACE = \" \";\n \n public static void main(String[] args) {\n try {\n LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String sStr;\n int n = 0;\n int m = 0;\n int[][] a = null;\n int[] b = null;\n while ((sStr = stdReader.readLine()) != null) {\n \n // ????????????????????????\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n m = Integer.valueOf(inputs[1]);\n // ??????????ยด???ยจ??????\n a = new int[n][];\n b = new int[m];\n } else if (stdReader.getLineNumber() <= 1 + n) {\n // 2????????\\??????????????????\n // ??????????????ยฐ(0,1,2,...)\n int i = stdReader.getLineNumber() - 2;\n String[] inputs = sStr.split(\" \");\n int j = 0;\n a[i] = new int[m];\n for (String input : inputs) {\n a[i][j] = Integer.parseInt(input);\n j++;\n }\n } else if (stdReader.getLineNumber() <= 1 + n + m) {\n String[] inputsVector = sStr.split(SPACE);\n int k = stdReader.getLineNumber() - (2+n);\n b[k] = Integer.parseInt(inputsVector[0]);\n\n if (stdReader.getLineNumber() == 1+n+m) break;\n }\n }\n \n int c[] = new int[n];\n\n // ?????? x ?????????????????????\n for (int i =0; i<n; i++) {\n int temp = 0;\n for (int j = 0; j<m; j++){\n temp += a[i][j] * b[j];\n }\n c[i] = temp;\n }\n \n // ??ยข???????????????\n for (int ci: c){\n System.out.println(ci);\n }\n\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n}",
"Main",
"private final static String SPACE = \" \";",
"SPACE",
"\" \"",
"public static void main(String[] args) {\n try {\n LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String sStr;\n int n = 0;\n int m = 0;\n int[][] a = null;\n int[] b = null;\n while ((sStr = stdReader.readLine()) != null) {\n \n // ????????????????????????\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n m = Integer.valueOf(inputs[1]);\n // ??????????ยด???ยจ??????\n a = new int[n][];\n b = new int[m];\n } else if (stdReader.getLineNumber() <= 1 + n) {\n // 2????????\\??????????????????\n // ??????????????ยฐ(0,1,2,...)\n int i = stdReader.getLineNumber() - 2;\n String[] inputs = sStr.split(\" \");\n int j = 0;\n a[i] = new int[m];\n for (String input : inputs) {\n a[i][j] = Integer.parseInt(input);\n j++;\n }\n } else if (stdReader.getLineNumber() <= 1 + n + m) {\n String[] inputsVector = sStr.split(SPACE);\n int k = stdReader.getLineNumber() - (2+n);\n b[k] = Integer.parseInt(inputsVector[0]);\n\n if (stdReader.getLineNumber() == 1+n+m) break;\n }\n }\n \n int c[] = new int[n];\n\n // ?????? x ?????????????????????\n for (int i =0; i<n; i++) {\n int temp = 0;\n for (int j = 0; j<m; j++){\n temp += a[i][j] * b[j];\n }\n c[i] = temp;\n }\n \n // ??ยข???????????????\n for (int ci: c){\n System.out.println(ci);\n }\n\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }",
"main",
"{\n try {\n LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String sStr;\n int n = 0;\n int m = 0;\n int[][] a = null;\n int[] b = null;\n while ((sStr = stdReader.readLine()) != null) {\n \n // ????????????????????????\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n m = Integer.valueOf(inputs[1]);\n // ??????????ยด???ยจ??????\n a = new int[n][];\n b = new int[m];\n } else if (stdReader.getLineNumber() <= 1 + n) {\n // 2????????\\??????????????????\n // ??????????????ยฐ(0,1,2,...)\n int i = stdReader.getLineNumber() - 2;\n String[] inputs = sStr.split(\" \");\n int j = 0;\n a[i] = new int[m];\n for (String input : inputs) {\n a[i][j] = Integer.parseInt(input);\n j++;\n }\n } else if (stdReader.getLineNumber() <= 1 + n + m) {\n String[] inputsVector = sStr.split(SPACE);\n int k = stdReader.getLineNumber() - (2+n);\n b[k] = Integer.parseInt(inputsVector[0]);\n\n if (stdReader.getLineNumber() == 1+n+m) break;\n }\n }\n \n int c[] = new int[n];\n\n // ?????? x ?????????????????????\n for (int i =0; i<n; i++) {\n int temp = 0;\n for (int j = 0; j<m; j++){\n temp += a[i][j] * b[j];\n }\n c[i] = temp;\n }\n \n // ??ยข???????????????\n for (int ci: c){\n System.out.println(ci);\n }\n\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }",
"try {\n LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String sStr;\n int n = 0;\n int m = 0;\n int[][] a = null;\n int[] b = null;\n while ((sStr = stdReader.readLine()) != null) {\n \n // ????????????????????????\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n m = Integer.valueOf(inputs[1]);\n // ??????????ยด???ยจ??????\n a = new int[n][];\n b = new int[m];\n } else if (stdReader.getLineNumber() <= 1 + n) {\n // 2????????\\??????????????????\n // ??????????????ยฐ(0,1,2,...)\n int i = stdReader.getLineNumber() - 2;\n String[] inputs = sStr.split(\" \");\n int j = 0;\n a[i] = new int[m];\n for (String input : inputs) {\n a[i][j] = Integer.parseInt(input);\n j++;\n }\n } else if (stdReader.getLineNumber() <= 1 + n + m) {\n String[] inputsVector = sStr.split(SPACE);\n int k = stdReader.getLineNumber() - (2+n);\n b[k] = Integer.parseInt(inputsVector[0]);\n\n if (stdReader.getLineNumber() == 1+n+m) break;\n }\n }\n \n int c[] = new int[n];\n\n // ?????? x ?????????????????????\n for (int i =0; i<n; i++) {\n int temp = 0;\n for (int j = 0; j<m; j++){\n temp += a[i][j] * b[j];\n }\n c[i] = temp;\n }\n \n // ??ยข???????????????\n for (int ci: c){\n System.out.println(ci);\n }\n\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }",
"catch (Exception e) {\n System.exit(-1);\n }",
"Exception e",
"{\n System.exit(-1);\n }",
"System.exit(-1)",
"System.exit",
"System",
"-1",
"1",
"{\n LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String sStr;\n int n = 0;\n int m = 0;\n int[][] a = null;\n int[] b = null;\n while ((sStr = stdReader.readLine()) != null) {\n \n // ????????????????????????\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n m = Integer.valueOf(inputs[1]);\n // ??????????ยด???ยจ??????\n a = new int[n][];\n b = new int[m];\n } else if (stdReader.getLineNumber() <= 1 + n) {\n // 2????????\\??????????????????\n // ??????????????ยฐ(0,1,2,...)\n int i = stdReader.getLineNumber() - 2;\n String[] inputs = sStr.split(\" \");\n int j = 0;\n a[i] = new int[m];\n for (String input : inputs) {\n a[i][j] = Integer.parseInt(input);\n j++;\n }\n } else if (stdReader.getLineNumber() <= 1 + n + m) {\n String[] inputsVector = sStr.split(SPACE);\n int k = stdReader.getLineNumber() - (2+n);\n b[k] = Integer.parseInt(inputsVector[0]);\n\n if (stdReader.getLineNumber() == 1+n+m) break;\n }\n }\n \n int c[] = new int[n];\n\n // ?????? x ?????????????????????\n for (int i =0; i<n; i++) {\n int temp = 0;\n for (int j = 0; j<m; j++){\n temp += a[i][j] * b[j];\n }\n c[i] = temp;\n }\n \n // ??ยข???????????????\n for (int ci: c){\n System.out.println(ci);\n }\n\n stdReader.close();\n }",
"LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));",
"stdReader",
"new LineNumberReader(\n new InputStreamReader(System.in))",
"String sStr;",
"sStr",
"int n = 0;",
"n",
"0",
"int m = 0;",
"m",
"0",
"int[][] a = null;",
"a",
"null",
"int[] b = null;",
"b",
"null",
"while ((sStr = stdReader.readLine()) != null) {\n \n // ????????????????????????\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n m = Integer.valueOf(inputs[1]);\n // ??????????ยด???ยจ??????\n a = new int[n][];\n b = new int[m];\n } else if (stdReader.getLineNumber() <= 1 + n) {\n // 2????????\\??????????????????\n // ??????????????ยฐ(0,1,2,...)\n int i = stdReader.getLineNumber() - 2;\n String[] inputs = sStr.split(\" \");\n int j = 0;\n a[i] = new int[m];\n for (String input : inputs) {\n a[i][j] = Integer.parseInt(input);\n j++;\n }\n } else if (stdReader.getLineNumber() <= 1 + n + m) {\n String[] inputsVector = sStr.split(SPACE);\n int k = stdReader.getLineNumber() - (2+n);\n b[k] = Integer.parseInt(inputsVector[0]);\n\n if (stdReader.getLineNumber() == 1+n+m) break;\n }\n }",
"(sStr = stdReader.readLine()) != null",
"(sStr = stdReader.readLine())",
"sStr",
"stdReader.readLine()",
"stdReader.readLine",
"stdReader",
"null",
"{\n \n // ????????????????????????\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n m = Integer.valueOf(inputs[1]);\n // ??????????ยด???ยจ??????\n a = new int[n][];\n b = new int[m];\n } else if (stdReader.getLineNumber() <= 1 + n) {\n // 2????????\\??????????????????\n // ??????????????ยฐ(0,1,2,...)\n int i = stdReader.getLineNumber() - 2;\n String[] inputs = sStr.split(\" \");\n int j = 0;\n a[i] = new int[m];\n for (String input : inputs) {\n a[i][j] = Integer.parseInt(input);\n j++;\n }\n } else if (stdReader.getLineNumber() <= 1 + n + m) {\n String[] inputsVector = sStr.split(SPACE);\n int k = stdReader.getLineNumber() - (2+n);\n b[k] = Integer.parseInt(inputsVector[0]);\n\n if (stdReader.getLineNumber() == 1+n+m) break;\n }\n }",
"if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n m = Integer.valueOf(inputs[1]);\n // ??????????ยด???ยจ??????\n a = new int[n][];\n b = new int[m];\n } else if (stdReader.getLineNumber() <= 1 + n) {\n // 2????????\\??????????????????\n // ??????????????ยฐ(0,1,2,...)\n int i = stdReader.getLineNumber() - 2;\n String[] inputs = sStr.split(\" \");\n int j = 0;\n a[i] = new int[m];\n for (String input : inputs) {\n a[i][j] = Integer.parseInt(input);\n j++;\n }\n } else if (stdReader.getLineNumber() <= 1 + n + m) {\n String[] inputsVector = sStr.split(SPACE);\n int k = stdReader.getLineNumber() - (2+n);\n b[k] = Integer.parseInt(inputsVector[0]);\n\n if (stdReader.getLineNumber() == 1+n+m) break;\n }",
"stdReader.getLineNumber() == 1",
"stdReader.getLineNumber()",
"stdReader.getLineNumber",
"stdReader",
"1",
"{\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n m = Integer.valueOf(inputs[1]);\n // ??????????ยด???ยจ??????\n a = new int[n][];\n b = new int[m];\n }",
"String[] inputs = sStr.split(\" \");",
"inputs",
"sStr.split(\" \")",
"sStr.split",
"sStr",
"\" \"",
"n = Integer.valueOf(inputs[0])",
"n",
"Integer.valueOf(inputs[0])",
"Integer.valueOf",
"Integer",
"inputs[0]",
"inputs",
"0",
"m = Integer.valueOf(inputs[1])",
"m",
"Integer.valueOf(inputs[1])",
"Integer.valueOf",
"Integer",
"inputs[1]",
"inputs",
"1",
"a = new int[n][]",
"a",
"new int[n][]",
"n",
"b = new int[m]",
"b",
"new int[m]",
"m",
"if (stdReader.getLineNumber() <= 1 + n) {\n // 2????????\\??????????????????\n // ??????????????ยฐ(0,1,2,...)\n int i = stdReader.getLineNumber() - 2;\n String[] inputs = sStr.split(\" \");\n int j = 0;\n a[i] = new int[m];\n for (String input : inputs) {\n a[i][j] = Integer.parseInt(input);\n j++;\n }\n } else if (stdReader.getLineNumber() <= 1 + n + m) {\n String[] inputsVector = sStr.split(SPACE);\n int k = stdReader.getLineNumber() - (2+n);\n b[k] = Integer.parseInt(inputsVector[0]);\n\n if (stdReader.getLineNumber() == 1+n+m) break;\n }",
"stdReader.getLineNumber() <= 1 + n",
"stdReader.getLineNumber()",
"stdReader.getLineNumber",
"stdReader",
"1 + n",
"1",
"n",
"{\n // 2????????\\??????????????????\n // ??????????????ยฐ(0,1,2,...)\n int i = stdReader.getLineNumber() - 2;\n String[] inputs = sStr.split(\" \");\n int j = 0;\n a[i] = new int[m];\n for (String input : inputs) {\n a[i][j] = Integer.parseInt(input);\n j++;\n }\n }",
"int i = stdReader.getLineNumber() - 2;",
"i",
"stdReader.getLineNumber() - 2",
"stdReader.getLineNumber()",
"stdReader.getLineNumber",
"stdReader",
"2",
"String[] inputs = sStr.split(\" \");",
"inputs",
"sStr.split(\" \")",
"sStr.split",
"sStr",
"\" \"",
"int j = 0;",
"j",
"0",
"a[i] = new int[m]",
"a[i]",
"a",
"i",
"new int[m]",
"m",
"for (String input : inputs) {\n a[i][j] = Integer.parseInt(input);\n j++;\n }",
"String input",
"inputs",
"{\n a[i][j] = Integer.parseInt(input);\n j++;\n }",
"{\n a[i][j] = Integer.parseInt(input);\n j++;\n }",
"a[i][j] = Integer.parseInt(input)",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"Integer.parseInt(input)",
"Integer.parseInt",
"Integer",
"input",
"j++",
"j",
"if (stdReader.getLineNumber() <= 1 + n + m) {\n String[] inputsVector = sStr.split(SPACE);\n int k = stdReader.getLineNumber() - (2+n);\n b[k] = Integer.parseInt(inputsVector[0]);\n\n if (stdReader.getLineNumber() == 1+n+m) break;\n }",
"stdReader.getLineNumber() <= 1 + n + m",
"stdReader.getLineNumber()",
"stdReader.getLineNumber",
"stdReader",
"1 + n + m",
"1 + n + m",
"1",
"n",
"m",
"{\n String[] inputsVector = sStr.split(SPACE);\n int k = stdReader.getLineNumber() - (2+n);\n b[k] = Integer.parseInt(inputsVector[0]);\n\n if (stdReader.getLineNumber() == 1+n+m) break;\n }",
"String[] inputsVector = sStr.split(SPACE);",
"inputsVector",
"sStr.split(SPACE)",
"sStr.split",
"sStr",
"SPACE",
"int k = stdReader.getLineNumber() - (2+n);",
"k",
"stdReader.getLineNumber() - (2+n)",
"stdReader.getLineNumber()",
"stdReader.getLineNumber",
"stdReader",
"(2+n)",
"2",
"n",
"b[k] = Integer.parseInt(inputsVector[0])",
"b[k]",
"b",
"k",
"Integer.parseInt(inputsVector[0])",
"Integer.parseInt",
"Integer",
"inputsVector[0]",
"inputsVector",
"0",
"if (stdReader.getLineNumber() == 1+n+m) break;",
"stdReader.getLineNumber() == 1+n+m",
"stdReader.getLineNumber()",
"stdReader.getLineNumber",
"stdReader",
"1+n+m",
"1+n+m",
"1",
"n",
"m",
"break;",
"int c[] = new int[n];",
"c",
"new int[n]",
"n",
"for (int i =0; i<n; i++) {\n int temp = 0;\n for (int j = 0; j<m; j++){\n temp += a[i][j] * b[j];\n }\n c[i] = temp;\n }",
"int i =0;",
"int i =0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int temp = 0;\n for (int j = 0; j<m; j++){\n temp += a[i][j] * b[j];\n }\n c[i] = temp;\n }",
"{\n int temp = 0;\n for (int j = 0; j<m; j++){\n temp += a[i][j] * b[j];\n }\n c[i] = temp;\n }",
"int temp = 0;",
"temp",
"0",
"for (int j = 0; j<m; j++){\n temp += a[i][j] * b[j];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n temp += a[i][j] * b[j];\n }",
"{\n temp += a[i][j] * b[j];\n }",
"temp += a[i][j] * b[j]",
"temp",
"a[i][j] * b[j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"c[i] = temp",
"c[i]",
"c",
"i",
"temp",
"for (int ci: c){\n System.out.println(ci);\n }",
"int ci",
"c",
"{\n System.out.println(ci);\n }",
"{\n System.out.println(ci);\n }",
"System.out.println(ci)",
"System.out.println",
"System.out",
"System",
"System.out",
"ci",
"stdReader.close()",
"stdReader.close",
"stdReader",
"String[] args",
"args",
"public class Main {\n private final static String SPACE = \" \";\n \n public static void main(String[] args) {\n try {\n LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String sStr;\n int n = 0;\n int m = 0;\n int[][] a = null;\n int[] b = null;\n while ((sStr = stdReader.readLine()) != null) {\n \n // ????????????????????????\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n m = Integer.valueOf(inputs[1]);\n // ??????????ยด???ยจ??????\n a = new int[n][];\n b = new int[m];\n } else if (stdReader.getLineNumber() <= 1 + n) {\n // 2????????\\??????????????????\n // ??????????????ยฐ(0,1,2,...)\n int i = stdReader.getLineNumber() - 2;\n String[] inputs = sStr.split(\" \");\n int j = 0;\n a[i] = new int[m];\n for (String input : inputs) {\n a[i][j] = Integer.parseInt(input);\n j++;\n }\n } else if (stdReader.getLineNumber() <= 1 + n + m) {\n String[] inputsVector = sStr.split(SPACE);\n int k = stdReader.getLineNumber() - (2+n);\n b[k] = Integer.parseInt(inputsVector[0]);\n\n if (stdReader.getLineNumber() == 1+n+m) break;\n }\n }\n \n int c[] = new int[n];\n\n // ?????? x ?????????????????????\n for (int i =0; i<n; i++) {\n int temp = 0;\n for (int j = 0; j<m; j++){\n temp += a[i][j] * b[j];\n }\n c[i] = temp;\n }\n \n // ??ยข???????????????\n for (int ci: c){\n System.out.println(ci);\n }\n\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n}",
"public class Main {\n private final static String SPACE = \" \";\n \n public static void main(String[] args) {\n try {\n LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String sStr;\n int n = 0;\n int m = 0;\n int[][] a = null;\n int[] b = null;\n while ((sStr = stdReader.readLine()) != null) {\n \n // ????????????????????????\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n m = Integer.valueOf(inputs[1]);\n // ??????????ยด???ยจ??????\n a = new int[n][];\n b = new int[m];\n } else if (stdReader.getLineNumber() <= 1 + n) {\n // 2????????\\??????????????????\n // ??????????????ยฐ(0,1,2,...)\n int i = stdReader.getLineNumber() - 2;\n String[] inputs = sStr.split(\" \");\n int j = 0;\n a[i] = new int[m];\n for (String input : inputs) {\n a[i][j] = Integer.parseInt(input);\n j++;\n }\n } else if (stdReader.getLineNumber() <= 1 + n + m) {\n String[] inputsVector = sStr.split(SPACE);\n int k = stdReader.getLineNumber() - (2+n);\n b[k] = Integer.parseInt(inputsVector[0]);\n\n if (stdReader.getLineNumber() == 1+n+m) break;\n }\n }\n \n int c[] = new int[n];\n\n // ?????? x ?????????????????????\n for (int i =0; i<n; i++) {\n int temp = 0;\n for (int j = 0; j<m; j++){\n temp += a[i][j] * b[j];\n }\n c[i] = temp;\n }\n \n // ??ยข???????????????\n for (int ci: c){\n System.out.println(ci);\n }\n\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n}",
"Main"
] | import java.io.InputStreamReader;
import java.io.LineNumberReader;
/**
* http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_6_D
*
* @author eitatsuro
*
*/
public class Main {
private final static String SPACE = " ";
public static void main(String[] args) {
try {
LineNumberReader stdReader = new LineNumberReader(
new InputStreamReader(System.in));
String sStr;
int n = 0;
int m = 0;
int[][] a = null;
int[] b = null;
while ((sStr = stdReader.readLine()) != null) {
// ????????????????????????
if (stdReader.getLineNumber() == 1) {
String[] inputs = sStr.split(" ");
n = Integer.valueOf(inputs[0]);
m = Integer.valueOf(inputs[1]);
// ??????????ยด???ยจ??????
a = new int[n][];
b = new int[m];
} else if (stdReader.getLineNumber() <= 1 + n) {
// 2????????\??????????????????
// ??????????????ยฐ(0,1,2,...)
int i = stdReader.getLineNumber() - 2;
String[] inputs = sStr.split(" ");
int j = 0;
a[i] = new int[m];
for (String input : inputs) {
a[i][j] = Integer.parseInt(input);
j++;
}
} else if (stdReader.getLineNumber() <= 1 + n + m) {
String[] inputsVector = sStr.split(SPACE);
int k = stdReader.getLineNumber() - (2+n);
b[k] = Integer.parseInt(inputsVector[0]);
if (stdReader.getLineNumber() == 1+n+m) break;
}
}
int c[] = new int[n];
// ?????? x ?????????????????????
for (int i =0; i<n; i++) {
int temp = 0;
for (int j = 0; j<m; j++){
temp += a[i][j] * b[j];
}
c[i] = temp;
}
// ??ยข???????????????
for (int ci: c){
System.out.println(ci);
}
stdReader.close();
} catch (Exception e) {
System.exit(-1);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
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,
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,
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,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
183,
8
],
[
183,
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
],
[
47,
49
],
[
11,
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
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
63,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
63,
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
],
[
11,
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
],
[
115,
116
],
[
116,
117
],
[
112,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
11,
126
],
[
126,
127
],
[
126,
128
],
[
11,
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
],
[
143,
148
],
[
148,
149
],
[
148,
150
],
[
143,
151
],
[
151,
152
],
[
152,
153
],
[
143,
154
],
[
155,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
160,
166
],
[
166,
167
],
[
166,
168
],
[
11,
169
],
[
169,
170
],
[
169,
171
],
[
169,
172
],
[
173,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
174,
179
],
[
9,
180
],
[
180,
181
],
[
0,
182
],
[
182,
183
],
[
182,
184
]
] | [
"import java.io.*;\nimport java.util.Arrays;\n\npublic class Main{\n\tpublic static void main(String[] args) throws IOException{ \n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line1 = br.readLine();\n\t\tString[] sp1 = line1.split(\" \");\n\t\tint n = Integer.parseInt(sp1[0]);\n\t\tint m = Integer.parseInt(sp1[1]);\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\tString line = br.readLine();\n\t\t\tString[] str = line.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\tString line = br.readLine();\n\t\t\tb[i] = Integer.parseInt(line);\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 youso : c) {\n\t\t\tSystem.out.println(youso);\n\t\t}\n\t}\n\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.Arrays;",
"Arrays",
"java.util",
"public class Main{\n\tpublic static void main(String[] args) throws IOException{ \n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line1 = br.readLine();\n\t\tString[] sp1 = line1.split(\" \");\n\t\tint n = Integer.parseInt(sp1[0]);\n\t\tint m = Integer.parseInt(sp1[1]);\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\tString line = br.readLine();\n\t\t\tString[] str = line.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\tString line = br.readLine();\n\t\t\tb[i] = Integer.parseInt(line);\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 youso : c) {\n\t\t\tSystem.out.println(youso);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException{ \n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line1 = br.readLine();\n\t\tString[] sp1 = line1.split(\" \");\n\t\tint n = Integer.parseInt(sp1[0]);\n\t\tint m = Integer.parseInt(sp1[1]);\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\tString line = br.readLine();\n\t\t\tString[] str = line.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\tString line = br.readLine();\n\t\t\tb[i] = Integer.parseInt(line);\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 youso : c) {\n\t\t\tSystem.out.println(youso);\n\t\t}\n\t}",
"main",
"{ \n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line1 = br.readLine();\n\t\tString[] sp1 = line1.split(\" \");\n\t\tint n = Integer.parseInt(sp1[0]);\n\t\tint m = Integer.parseInt(sp1[1]);\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\tString line = br.readLine();\n\t\t\tString[] str = line.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\tString line = br.readLine();\n\t\t\tb[i] = Integer.parseInt(line);\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 youso : c) {\n\t\t\tSystem.out.println(youso);\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String line1 = br.readLine();",
"line1",
"br.readLine()",
"br.readLine",
"br",
"String[] sp1 = line1.split(\" \");",
"sp1",
"line1.split(\" \")",
"line1.split",
"line1",
"\" \"",
"int n = Integer.parseInt(sp1[0]);",
"n",
"Integer.parseInt(sp1[0])",
"Integer.parseInt",
"Integer",
"sp1[0]",
"sp1",
"0",
"int m = Integer.parseInt(sp1[1]);",
"m",
"Integer.parseInt(sp1[1])",
"Integer.parseInt",
"Integer",
"sp1[1]",
"sp1",
"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\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.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\tString line = br.readLine();\n\t\t\tString[] str = line.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\tString line = br.readLine();\n\t\t\tString[] str = line.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}",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"String[] str = line.split(\" \");",
"str",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"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\tString line = br.readLine();\n\t\t\tb[i] = Integer.parseInt(line);\n\t\t}",
"int i=0 ;",
"int i=0 ;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tString line = br.readLine();\n\t\t\tb[i] = Integer.parseInt(line);\n\t\t}",
"{\n\t\t\tString line = br.readLine();\n\t\t\tb[i] = Integer.parseInt(line);\n\t\t}",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"b[i] = Integer.parseInt(line)",
"b[i]",
"b",
"i",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"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 youso : c) {\n\t\t\tSystem.out.println(youso);\n\t\t}",
"int youso",
"c",
"{\n\t\t\tSystem.out.println(youso);\n\t\t}",
"{\n\t\t\tSystem.out.println(youso);\n\t\t}",
"System.out.println(youso)",
"System.out.println",
"System.out",
"System",
"System.out",
"youso",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) throws IOException{ \n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line1 = br.readLine();\n\t\tString[] sp1 = line1.split(\" \");\n\t\tint n = Integer.parseInt(sp1[0]);\n\t\tint m = Integer.parseInt(sp1[1]);\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\tString line = br.readLine();\n\t\t\tString[] str = line.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\tString line = br.readLine();\n\t\t\tb[i] = Integer.parseInt(line);\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 youso : c) {\n\t\t\tSystem.out.println(youso);\n\t\t}\n\t}\n\n}",
"public class Main{\n\tpublic static void main(String[] args) throws IOException{ \n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line1 = br.readLine();\n\t\tString[] sp1 = line1.split(\" \");\n\t\tint n = Integer.parseInt(sp1[0]);\n\t\tint m = Integer.parseInt(sp1[1]);\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\tString line = br.readLine();\n\t\t\tString[] str = line.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\tString line = br.readLine();\n\t\t\tb[i] = Integer.parseInt(line);\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 youso : c) {\n\t\t\tSystem.out.println(youso);\n\t\t}\n\t}\n\n}",
"Main"
] | import java.io.*;
import java.util.Arrays;
public class Main{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line1 = br.readLine();
String[] sp1 = line1.split(" ");
int n = Integer.parseInt(sp1[0]);
int m = Integer.parseInt(sp1[1]);
int[][] a = new int[n][m];
int[] b = new int[m];
for (int i = 0; i<n ; i++) {
String line = br.readLine();
String[] str = line.split(" ");
for (int j=0; j<m ; j++ ) {
a[i][j] = Integer.parseInt(str[j]);
}
}
for (int i=0 ; i<m ;i++ ) {
String line = br.readLine();
b[i] = Integer.parseInt(line);
}
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 youso : c) {
System.out.println(youso);
}
}
} |
[
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,
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,
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
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
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
]
] | [
"import java.util.*;\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 int ci;\n \n int[][] aij = new int[n][m];\n int[] bj = new int[m];\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n aij[i][j] = sc.nextInt();\n }\n }\n for(int j = 0; j < m; j++){\n bj[j] = sc.nextInt();\n }\n \n for(int i = 0; i < n; i++){\n ci = 0;\n for(int j = 0; j < m; j++){\n ci += aij[i][j]*bj[j];\n }\n System.out.println(ci);\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 \n int n = sc.nextInt();\n int m = sc.nextInt();\n int ci;\n \n int[][] aij = new int[n][m];\n int[] bj = new int[m];\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n aij[i][j] = sc.nextInt();\n }\n }\n for(int j = 0; j < m; j++){\n bj[j] = sc.nextInt();\n }\n \n for(int i = 0; i < n; i++){\n ci = 0;\n for(int j = 0; j < m; j++){\n ci += aij[i][j]*bj[j];\n }\n System.out.println(ci);\n }\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 int ci;\n \n int[][] aij = new int[n][m];\n int[] bj = new int[m];\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n aij[i][j] = sc.nextInt();\n }\n }\n for(int j = 0; j < m; j++){\n bj[j] = sc.nextInt();\n }\n \n for(int i = 0; i < n; i++){\n ci = 0;\n for(int j = 0; j < m; j++){\n ci += aij[i][j]*bj[j];\n }\n System.out.println(ci);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n int m = sc.nextInt();\n int ci;\n \n int[][] aij = new int[n][m];\n int[] bj = new int[m];\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n aij[i][j] = sc.nextInt();\n }\n }\n for(int j = 0; j < m; j++){\n bj[j] = sc.nextInt();\n }\n \n for(int i = 0; i < n; i++){\n ci = 0;\n for(int j = 0; j < m; j++){\n ci += aij[i][j]*bj[j];\n }\n System.out.println(ci);\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 ci;",
"ci",
"int[][] aij = new int[n][m];",
"aij",
"new int[n][m]",
"n",
"m",
"int[] bj = new int[m];",
"bj",
"new int[m]",
"m",
"for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n aij[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 aij[i][j] = sc.nextInt();\n }\n }",
"{\n for(int j = 0; j < m; j++){\n aij[i][j] = sc.nextInt();\n }\n }",
"for(int j = 0; j < m; j++){\n aij[i][j] = sc.nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n aij[i][j] = sc.nextInt();\n }",
"{\n aij[i][j] = sc.nextInt();\n }",
"aij[i][j] = sc.nextInt()",
"aij[i][j]",
"aij[i]",
"aij",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j = 0; j < m; j++){\n bj[j] = sc.nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n bj[j] = sc.nextInt();\n }",
"{\n bj[j] = sc.nextInt();\n }",
"bj[j] = sc.nextInt()",
"bj[j]",
"bj",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < n; i++){\n ci = 0;\n for(int j = 0; j < m; j++){\n ci += aij[i][j]*bj[j];\n }\n System.out.println(ci);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n ci = 0;\n for(int j = 0; j < m; j++){\n ci += aij[i][j]*bj[j];\n }\n System.out.println(ci);\n }",
"{\n ci = 0;\n for(int j = 0; j < m; j++){\n ci += aij[i][j]*bj[j];\n }\n System.out.println(ci);\n }",
"ci = 0",
"ci",
"0",
"for(int j = 0; j < m; j++){\n ci += aij[i][j]*bj[j];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n ci += aij[i][j]*bj[j];\n }",
"{\n ci += aij[i][j]*bj[j];\n }",
"ci += aij[i][j]*bj[j]",
"ci",
"aij[i][j]*bj[j]",
"aij[i][j]",
"aij[i]",
"aij",
"i",
"j",
"bj[j]",
"bj",
"j",
"System.out.println(ci)",
"System.out.println",
"System.out",
"System",
"System.out",
"ci",
"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 int ci;\n \n int[][] aij = new int[n][m];\n int[] bj = new int[m];\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n aij[i][j] = sc.nextInt();\n }\n }\n for(int j = 0; j < m; j++){\n bj[j] = sc.nextInt();\n }\n \n for(int i = 0; i < n; i++){\n ci = 0;\n for(int j = 0; j < m; j++){\n ci += aij[i][j]*bj[j];\n }\n System.out.println(ci);\n }\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 int ci;\n \n int[][] aij = new int[n][m];\n int[] bj = new int[m];\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n aij[i][j] = sc.nextInt();\n }\n }\n for(int j = 0; j < m; j++){\n bj[j] = sc.nextInt();\n }\n \n for(int i = 0; i < n; i++){\n ci = 0;\n for(int j = 0; j < m; j++){\n ci += aij[i][j]*bj[j];\n }\n System.out.println(ci);\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 ci;
int[][] aij = new int[n][m];
int[] bj = new int[m];
for(int i = 0; i < n; i++){
for(int j = 0; j < m; j++){
aij[i][j] = sc.nextInt();
}
}
for(int j = 0; j < m; j++){
bj[j] = sc.nextInt();
}
for(int i = 0; i < n; i++){
ci = 0;
for(int j = 0; j < m; j++){
ci += aij[i][j]*bj[j];
}
System.out.println(ci);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
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,
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
],
[
172,
8
],
[
172,
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
],
[
22,
23
],
[
23,
24
],
[
20,
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
],
[
47,
49
],
[
11,
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
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
66,
71
],
[
63,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
72,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
85,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
94,
96
],
[
11,
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
],
[
11,
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
],
[
9,
169
],
[
169,
170
],
[
0,
171
],
[
171,
172
],
[
171,
173
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args)throws Exception{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n String[] nm = br.readLine().split(\" \");\n int n = Integer.parseInt(nm[0]);\n int m = Integer.parseInt(nm[1]);\n int[][] an = new int[n][m];\n int[] bn = new int[m];\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\tString[] aninput = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t{\n\t\t\t\tan[i][j] = Integer.parseInt(aninput[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++)\n\t\t{\n\t\t\tString bninput = br.readLine();\n\t\t\tbn[i] = Integer.parseInt(bninput);\n\t\t}\n\t\t\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t{\n\t\t\t\tsum += an[i][j] * bn[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t\t\n\t}\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 Exception{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n String[] nm = br.readLine().split(\" \");\n int n = Integer.parseInt(nm[0]);\n int m = Integer.parseInt(nm[1]);\n int[][] an = new int[n][m];\n int[] bn = new int[m];\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\tString[] aninput = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t{\n\t\t\t\tan[i][j] = Integer.parseInt(aninput[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++)\n\t\t{\n\t\t\tString bninput = br.readLine();\n\t\t\tbn[i] = Integer.parseInt(bninput);\n\t\t}\n\t\t\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t{\n\t\t\t\tsum += an[i][j] * bn[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args)throws Exception{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n String[] nm = br.readLine().split(\" \");\n int n = Integer.parseInt(nm[0]);\n int m = Integer.parseInt(nm[1]);\n int[][] an = new int[n][m];\n int[] bn = new int[m];\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\tString[] aninput = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t{\n\t\t\t\tan[i][j] = Integer.parseInt(aninput[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++)\n\t\t{\n\t\t\tString bninput = br.readLine();\n\t\t\tbn[i] = Integer.parseInt(bninput);\n\t\t}\n\t\t\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t{\n\t\t\t\tsum += an[i][j] * bn[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t\t\n\t}",
"main",
"{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n String[] nm = br.readLine().split(\" \");\n int n = Integer.parseInt(nm[0]);\n int m = Integer.parseInt(nm[1]);\n int[][] an = new int[n][m];\n int[] bn = new int[m];\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\tString[] aninput = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t{\n\t\t\t\tan[i][j] = Integer.parseInt(aninput[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++)\n\t\t{\n\t\t\tString bninput = br.readLine();\n\t\t\tbn[i] = Integer.parseInt(bninput);\n\t\t}\n\t\t\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t{\n\t\t\t\tsum += an[i][j] * bn[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t\t\n\t}",
"InputStreamReader isr = new InputStreamReader(System.in);",
"isr",
"new InputStreamReader(System.in)",
"BufferedReader br = new BufferedReader(isr);",
"br",
"new BufferedReader(isr)",
"String[] nm = br.readLine().split(\" \");",
"nm",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"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[][] an = new int[n][m];",
"an",
"new int[n][m]",
"n",
"m",
"int[] bn = new int[m];",
"bn",
"new int[m]",
"m",
"for (int i = 0; i < n; i++)\n\t\t{\n\t\t\tString[] aninput = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t{\n\t\t\t\tan[i][j] = Integer.parseInt(aninput[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[] aninput = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t{\n\t\t\t\tan[i][j] = Integer.parseInt(aninput[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] aninput = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t{\n\t\t\t\tan[i][j] = Integer.parseInt(aninput[j]);\n\t\t\t}\n\t\t}",
"String[] aninput = br.readLine().split(\" \");",
"aninput",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for (int j = 0; j < m; j++)\n\t\t\t{\n\t\t\t\tan[i][j] = Integer.parseInt(aninput[j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tan[i][j] = Integer.parseInt(aninput[j]);\n\t\t\t}",
"{\n\t\t\t\tan[i][j] = Integer.parseInt(aninput[j]);\n\t\t\t}",
"an[i][j] = Integer.parseInt(aninput[j])",
"an[i][j]",
"an[i]",
"an",
"i",
"j",
"Integer.parseInt(aninput[j])",
"Integer.parseInt",
"Integer",
"aninput[j]",
"aninput",
"j",
"for (int i = 0; i < m; i++)\n\t\t{\n\t\t\tString bninput = br.readLine();\n\t\t\tbn[i] = Integer.parseInt(bninput);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tString bninput = br.readLine();\n\t\t\tbn[i] = Integer.parseInt(bninput);\n\t\t}",
"{\n\t\t\tString bninput = br.readLine();\n\t\t\tbn[i] = Integer.parseInt(bninput);\n\t\t}",
"String bninput = br.readLine();",
"bninput",
"br.readLine()",
"br.readLine",
"br",
"bn[i] = Integer.parseInt(bninput)",
"bn[i]",
"bn",
"i",
"Integer.parseInt(bninput)",
"Integer.parseInt",
"Integer",
"bninput",
"for (int i = 0; i < n; i++)\n\t\t{\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t{\n\t\t\t\tsum += an[i][j] * bn[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\tint sum = 0;\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t{\n\t\t\t\tsum += an[i][j] * bn[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}",
"{\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t{\n\t\t\t\tsum += an[i][j] * bn[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}",
"int sum = 0;",
"sum",
"0",
"for (int j = 0; j < m; j++)\n\t\t\t{\n\t\t\t\tsum += an[i][j] * bn[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 += an[i][j] * bn[j];\n\t\t\t}",
"{\n\t\t\t\tsum += an[i][j] * bn[j];\n\t\t\t}",
"sum += an[i][j] * bn[j]",
"sum",
"an[i][j] * bn[j]",
"an[i][j]",
"an[i]",
"an",
"i",
"j",
"bn[j]",
"bn",
"j",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args)throws Exception{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n String[] nm = br.readLine().split(\" \");\n int n = Integer.parseInt(nm[0]);\n int m = Integer.parseInt(nm[1]);\n int[][] an = new int[n][m];\n int[] bn = new int[m];\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\tString[] aninput = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t{\n\t\t\t\tan[i][j] = Integer.parseInt(aninput[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++)\n\t\t{\n\t\t\tString bninput = br.readLine();\n\t\t\tbn[i] = Integer.parseInt(bninput);\n\t\t}\n\t\t\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t{\n\t\t\t\tsum += an[i][j] * bn[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t\t\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args)throws Exception{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n String[] nm = br.readLine().split(\" \");\n int n = Integer.parseInt(nm[0]);\n int m = Integer.parseInt(nm[1]);\n int[][] an = new int[n][m];\n int[] bn = new int[m];\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\tString[] aninput = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t{\n\t\t\t\tan[i][j] = Integer.parseInt(aninput[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < m; i++)\n\t\t{\n\t\t\tString bninput = br.readLine();\n\t\t\tbn[i] = Integer.parseInt(bninput);\n\t\t}\n\t\t\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\tint sum = 0;\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t{\n\t\t\t\tsum += an[i][j] * bn[j];\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\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 Exception{
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
String[] nm = br.readLine().split(" ");
int n = Integer.parseInt(nm[0]);
int m = Integer.parseInt(nm[1]);
int[][] an = new int[n][m];
int[] bn = new int[m];
for (int i = 0; i < n; i++)
{
String[] aninput = br.readLine().split(" ");
for (int j = 0; j < m; j++)
{
an[i][j] = Integer.parseInt(aninput[j]);
}
}
for (int i = 0; i < m; i++)
{
String bninput = br.readLine();
bn[i] = Integer.parseInt(bninput);
}
for (int i = 0; i < n; i++)
{
int sum = 0;
for (int j = 0; j < m; j++)
{
sum += an[i][j] * bn[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,
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 public static void main(String[] args) {\n \n Scanner scanner = new Scanner(System.in);\n \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[] result = new int[n];\n \n // input\n for(int i=0; i<n; i++) {\n for(int j=0; j<m; j++) {\n int num = scanner.nextInt();\n a[i][j] = num;\n }\n }\n for(int j=0; j<m; j++) {\n int num = scanner.nextInt();\n b[j] = num;\n }\n \n // calc\n for (int i=0; i<n; i++) {\n for (int j=0; j<m; j++) {\n result[i] += a[i][j] * b[j];\n }\n }\n \n // display\n for(int i=0; i<result.length; i++) {\n System.out.println(result[i]);\n }\n \n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n \n Scanner scanner = new Scanner(System.in);\n \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[] result = new int[n];\n \n // input\n for(int i=0; i<n; i++) {\n for(int j=0; j<m; j++) {\n int num = scanner.nextInt();\n a[i][j] = num;\n }\n }\n for(int j=0; j<m; j++) {\n int num = scanner.nextInt();\n b[j] = num;\n }\n \n // calc\n for (int i=0; i<n; i++) {\n for (int j=0; j<m; j++) {\n result[i] += a[i][j] * b[j];\n }\n }\n \n // display\n for(int i=0; i<result.length; i++) {\n System.out.println(result[i]);\n }\n \n }\n}",
"Main",
"public static void main(String[] args) {\n \n Scanner scanner = new Scanner(System.in);\n \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[] result = new int[n];\n \n // input\n for(int i=0; i<n; i++) {\n for(int j=0; j<m; j++) {\n int num = scanner.nextInt();\n a[i][j] = num;\n }\n }\n for(int j=0; j<m; j++) {\n int num = scanner.nextInt();\n b[j] = num;\n }\n \n // calc\n for (int i=0; i<n; i++) {\n for (int j=0; j<m; j++) {\n result[i] += a[i][j] * b[j];\n }\n }\n \n // display\n for(int i=0; i<result.length; i++) {\n System.out.println(result[i]);\n }\n \n }",
"main",
"{\n \n Scanner scanner = new Scanner(System.in);\n \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[] result = new int[n];\n \n // input\n for(int i=0; i<n; i++) {\n for(int j=0; j<m; j++) {\n int num = scanner.nextInt();\n a[i][j] = num;\n }\n }\n for(int j=0; j<m; j++) {\n int num = scanner.nextInt();\n b[j] = num;\n }\n \n // calc\n for (int i=0; i<n; i++) {\n for (int j=0; j<m; j++) {\n result[i] += a[i][j] * b[j];\n }\n }\n \n // display\n for(int i=0; i<result.length; i++) {\n System.out.println(result[i]);\n }\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[] result = new int[n];",
"result",
"new int[n]",
"n",
"for(int i=0; i<n; i++) {\n for(int j=0; j<m; j++) {\n int num = scanner.nextInt();\n a[i][j] = num;\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 int num = scanner.nextInt();\n a[i][j] = num;\n }\n }",
"{\n for(int j=0; j<m; j++) {\n int num = scanner.nextInt();\n a[i][j] = num;\n }\n }",
"for(int j=0; j<m; j++) {\n int num = scanner.nextInt();\n a[i][j] = num;\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n int num = scanner.nextInt();\n a[i][j] = num;\n }",
"{\n int num = scanner.nextInt();\n a[i][j] = num;\n }",
"int num = scanner.nextInt();",
"num",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"a[i][j] = num",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"num",
"for(int j=0; j<m; j++) {\n int num = scanner.nextInt();\n b[j] = num;\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n int num = scanner.nextInt();\n b[j] = num;\n }",
"{\n int num = scanner.nextInt();\n b[j] = num;\n }",
"int num = scanner.nextInt();",
"num",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"b[j] = num",
"b[j]",
"b",
"j",
"num",
"for (int i=0; i<n; i++) {\n for (int j=0; j<m; j++) {\n result[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 result[i] += a[i][j] * b[j];\n }\n }",
"{\n for (int j=0; j<m; j++) {\n result[i] += a[i][j] * b[j];\n }\n }",
"for (int j=0; j<m; j++) {\n result[i] += a[i][j] * b[j];\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n result[i] += a[i][j] * b[j];\n }",
"{\n result[i] += a[i][j] * b[j];\n }",
"result[i] += a[i][j] * b[j]",
"result[i]",
"result",
"i",
"a[i][j] * b[j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j]",
"b",
"j",
"for(int i=0; i<result.length; i++) {\n System.out.println(result[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<result.length",
"i",
"result.length",
"result",
"result.length",
"i++",
"i++",
"i",
"{\n System.out.println(result[i]);\n }",
"{\n System.out.println(result[i]);\n }",
"System.out.println(result[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"result[i]",
"result",
"i",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n \n Scanner scanner = new Scanner(System.in);\n \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[] result = new int[n];\n \n // input\n for(int i=0; i<n; i++) {\n for(int j=0; j<m; j++) {\n int num = scanner.nextInt();\n a[i][j] = num;\n }\n }\n for(int j=0; j<m; j++) {\n int num = scanner.nextInt();\n b[j] = num;\n }\n \n // calc\n for (int i=0; i<n; i++) {\n for (int j=0; j<m; j++) {\n result[i] += a[i][j] * b[j];\n }\n }\n \n // display\n for(int i=0; i<result.length; i++) {\n System.out.println(result[i]);\n }\n \n }\n}",
"public class Main {\n public static void main(String[] args) {\n \n Scanner scanner = new Scanner(System.in);\n \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[] result = new int[n];\n \n // input\n for(int i=0; i<n; i++) {\n for(int j=0; j<m; j++) {\n int num = scanner.nextInt();\n a[i][j] = num;\n }\n }\n for(int j=0; j<m; j++) {\n int num = scanner.nextInt();\n b[j] = num;\n }\n \n // calc\n for (int i=0; i<n; i++) {\n for (int j=0; j<m; j++) {\n result[i] += a[i][j] * b[j];\n }\n }\n \n // display\n for(int i=0; i<result.length; i++) {\n System.out.println(result[i]);\n }\n \n }\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[][] a = new int[n][m];
int[] b = new int[m];
int[] result = new int[n];
// input
for(int i=0; i<n; i++) {
for(int j=0; j<m; j++) {
int num = scanner.nextInt();
a[i][j] = num;
}
}
for(int j=0; j<m; j++) {
int num = scanner.nextInt();
b[j] = num;
}
// calc
for (int i=0; i<n; i++) {
for (int j=0; j<m; j++) {
result[i] += a[i][j] * b[j];
}
}
// display
for(int i=0; i<result.length; i++) {
System.out.println(result[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,
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
],
[
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
],
[
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
],
[
100,
100
],
[
100,
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
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
117,
123
],
[
123,
124
],
[
123,
125
],
[
8,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
126,
134
],
[
134,
135
],
[
135,
136
],
[
126,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
143,
144
],
[
143,
145
],
[
6,
146
],
[
146,
147
],
[
0,
148
],
[
148,
149
],
[
148,
150
]
] | [
"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 matrixA[][] = new int[n][m];\n\t\tint matrixB[] = new int[m];\n\t\tint matrixC[] = 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\tmatrixA[i][j] = sc.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++)\n\t\t\tmatrixB[i] = sc.nextInt();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\tmatrixC[i] += matrixA[i][j] * matrixB[j];\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tSystem.out.println(matrixC[i]);\n\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\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint matrixA[][] = new int[n][m];\n\t\tint matrixB[] = new int[m];\n\t\tint matrixC[] = 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\tmatrixA[i][j] = sc.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++)\n\t\t\tmatrixB[i] = sc.nextInt();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\tmatrixC[i] += matrixA[i][j] * matrixB[j];\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tSystem.out.println(matrixC[i]);\n\n\t}\n\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 matrixA[][] = new int[n][m];\n\t\tint matrixB[] = new int[m];\n\t\tint matrixC[] = 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\tmatrixA[i][j] = sc.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++)\n\t\t\tmatrixB[i] = sc.nextInt();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\tmatrixC[i] += matrixA[i][j] * matrixB[j];\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tSystem.out.println(matrixC[i]);\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 matrixA[][] = new int[n][m];\n\t\tint matrixB[] = new int[m];\n\t\tint matrixC[] = 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\tmatrixA[i][j] = sc.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++)\n\t\t\tmatrixB[i] = sc.nextInt();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\tmatrixC[i] += matrixA[i][j] * matrixB[j];\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tSystem.out.println(matrixC[i]);\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 matrixA[][] = new int[n][m];",
"matrixA",
"new int[n][m]",
"n",
"m",
"int matrixB[] = new int[m];",
"matrixB",
"new int[m]",
"m",
"int matrixC[] = new int[n];",
"matrixC",
"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\tmatrixA[i][j] = sc.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\tmatrixA[i][j] = sc.nextInt();\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\tmatrixA[i][j] = sc.nextInt();\n\t\t}",
"for (int j = 0; j < m; j++)\n\t\t\t\tmatrixA[i][j] = sc.nextInt();",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"matrixA[i][j] = sc.nextInt();",
"matrixA[i][j] = sc.nextInt()",
"matrixA[i][j]",
"matrixA[i]",
"matrixA",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < m; i++)\n\t\t\tmatrixB[i] = sc.nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"matrixB[i] = sc.nextInt();",
"matrixB[i] = sc.nextInt()",
"matrixB[i]",
"matrixB",
"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\tmatrixC[i] += matrixA[i][j] * matrixB[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\tmatrixC[i] += matrixA[i][j] * matrixB[j];\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\tmatrixC[i] += matrixA[i][j] * matrixB[j];\n\t\t}",
"for (int j = 0; j < m; j++)\n\t\t\t\tmatrixC[i] += matrixA[i][j] * matrixB[j];",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"matrixC[i] += matrixA[i][j] * matrixB[j];",
"matrixC[i] += matrixA[i][j] * matrixB[j]",
"matrixC[i]",
"matrixC",
"i",
"matrixA[i][j] * matrixB[j]",
"matrixA[i][j]",
"matrixA[i]",
"matrixA",
"i",
"j",
"matrixB[j]",
"matrixB",
"j",
"for (int i = 0; i < n; i++)\n\t\t\tSystem.out.println(matrixC[i]);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"System.out.println(matrixC[i]);",
"System.out.println(matrixC[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"matrixC[i]",
"matrixC",
"i",
"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 matrixA[][] = new int[n][m];\n\t\tint matrixB[] = new int[m];\n\t\tint matrixC[] = 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\tmatrixA[i][j] = sc.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++)\n\t\t\tmatrixB[i] = sc.nextInt();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\tmatrixC[i] += matrixA[i][j] * matrixB[j];\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tSystem.out.println(matrixC[i]);\n\n\t}\n\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 matrixA[][] = new int[n][m];\n\t\tint matrixB[] = new int[m];\n\t\tint matrixC[] = 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\tmatrixA[i][j] = sc.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++)\n\t\t\tmatrixB[i] = sc.nextInt();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\tmatrixC[i] += matrixA[i][j] * matrixB[j];\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tSystem.out.println(matrixC[i]);\n\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 matrixA[][] = new int[n][m];
int matrixB[] = new int[m];
int matrixC[] = new int[n];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++)
matrixA[i][j] = sc.nextInt();
}
for (int i = 0; i < m; i++)
matrixB[i] = sc.nextInt();
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++)
matrixC[i] += matrixA[i][j] * matrixB[j];
}
for (int i = 0; i < n; i++)
System.out.println(matrixC[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,
2,
13,
17,
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,
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,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
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
],
[
127,
5
],
[
127,
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
],
[
25,
26
],
[
25,
27
],
[
8,
29
],
[
29,
30
],
[
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
],
[
68,
70
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
72,
83
],
[
84,
84
],
[
84,
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
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
102,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
84,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
8,
121
],
[
121,
122
],
[
122,
123
],
[
6,
124
],
[
124,
125
],
[
0,
126
],
[
126,
127
],
[
126,
128
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// ?????????????????\\????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// ??????????????\\??????????????ยฐ?????\\???????????ยฐ\n\t\tint lin = sc.nextInt();\n\t\tint col = sc.nextInt();\n\n\t\t// ????ยฌ???????????????????\n\t\tint[][] grid = new int[lin + 1][col];\n\n\t\t// ????ยฌ???????????????????lft:?????????????????????rgt:?????????????????????\n\t\tint lft;\n\t\tint rgt;\n\n\t\t// ??\\??????????????ยฐ?????????????????\\??????\n\t\tfor (lft = 0; lft <= lin; lft++) {\n\n\t\t\tfor (rgt = 0; rgt < col; rgt++) {\n\n\t\t\t\tgrid[lft][rgt] = sc.nextInt();\n\n\t\t\t}\n\t\t}\n\n\t\t// ????ยจ??????\\?????????????????????\n\t\tint[] sum = new int[lin];\n\n\t\t// ???????????????\n\t\tfor (lft = 0; lft < lin; lft++) {\n\n\t\t\tfor (rgt = 0; rgt < col; rgt++) {\n\n\t\t\t\tsum[lft] += grid[lft][rgt] * grid[lin][rgt];\n\n\t\t\t}\n\t\t\tSystem.out.println(sum[lft]);\n\t\t}\n\t\tsc.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// ?????????????????\\????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// ??????????????\\??????????????ยฐ?????\\???????????ยฐ\n\t\tint lin = sc.nextInt();\n\t\tint col = sc.nextInt();\n\n\t\t// ????ยฌ???????????????????\n\t\tint[][] grid = new int[lin + 1][col];\n\n\t\t// ????ยฌ???????????????????lft:?????????????????????rgt:?????????????????????\n\t\tint lft;\n\t\tint rgt;\n\n\t\t// ??\\??????????????ยฐ?????????????????\\??????\n\t\tfor (lft = 0; lft <= lin; lft++) {\n\n\t\t\tfor (rgt = 0; rgt < col; rgt++) {\n\n\t\t\t\tgrid[lft][rgt] = sc.nextInt();\n\n\t\t\t}\n\t\t}\n\n\t\t// ????ยจ??????\\?????????????????????\n\t\tint[] sum = new int[lin];\n\n\t\t// ???????????????\n\t\tfor (lft = 0; lft < lin; lft++) {\n\n\t\t\tfor (rgt = 0; rgt < col; rgt++) {\n\n\t\t\t\tsum[lft] += grid[lft][rgt] * grid[lin][rgt];\n\n\t\t\t}\n\t\t\tSystem.out.println(sum[lft]);\n\t\t}\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\t// ?????????????????\\????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// ??????????????\\??????????????ยฐ?????\\???????????ยฐ\n\t\tint lin = sc.nextInt();\n\t\tint col = sc.nextInt();\n\n\t\t// ????ยฌ???????????????????\n\t\tint[][] grid = new int[lin + 1][col];\n\n\t\t// ????ยฌ???????????????????lft:?????????????????????rgt:?????????????????????\n\t\tint lft;\n\t\tint rgt;\n\n\t\t// ??\\??????????????ยฐ?????????????????\\??????\n\t\tfor (lft = 0; lft <= lin; lft++) {\n\n\t\t\tfor (rgt = 0; rgt < col; rgt++) {\n\n\t\t\t\tgrid[lft][rgt] = sc.nextInt();\n\n\t\t\t}\n\t\t}\n\n\t\t// ????ยจ??????\\?????????????????????\n\t\tint[] sum = new int[lin];\n\n\t\t// ???????????????\n\t\tfor (lft = 0; lft < lin; lft++) {\n\n\t\t\tfor (rgt = 0; rgt < col; rgt++) {\n\n\t\t\t\tsum[lft] += grid[lft][rgt] * grid[lin][rgt];\n\n\t\t\t}\n\t\t\tSystem.out.println(sum[lft]);\n\t\t}\n\t\tsc.close();\n\t}",
"main",
"{\n\n\t\t// ?????????????????\\????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// ??????????????\\??????????????ยฐ?????\\???????????ยฐ\n\t\tint lin = sc.nextInt();\n\t\tint col = sc.nextInt();\n\n\t\t// ????ยฌ???????????????????\n\t\tint[][] grid = new int[lin + 1][col];\n\n\t\t// ????ยฌ???????????????????lft:?????????????????????rgt:?????????????????????\n\t\tint lft;\n\t\tint rgt;\n\n\t\t// ??\\??????????????ยฐ?????????????????\\??????\n\t\tfor (lft = 0; lft <= lin; lft++) {\n\n\t\t\tfor (rgt = 0; rgt < col; rgt++) {\n\n\t\t\t\tgrid[lft][rgt] = sc.nextInt();\n\n\t\t\t}\n\t\t}\n\n\t\t// ????ยจ??????\\?????????????????????\n\t\tint[] sum = new int[lin];\n\n\t\t// ???????????????\n\t\tfor (lft = 0; lft < lin; lft++) {\n\n\t\t\tfor (rgt = 0; rgt < col; rgt++) {\n\n\t\t\t\tsum[lft] += grid[lft][rgt] * grid[lin][rgt];\n\n\t\t\t}\n\t\t\tSystem.out.println(sum[lft]);\n\t\t}\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int lin = sc.nextInt();",
"lin",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int col = sc.nextInt();",
"col",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] grid = new int[lin + 1][col];",
"grid",
"new int[lin + 1][col]",
"lin + 1",
"lin",
"1",
"col",
"int lft;",
"lft",
"int rgt;",
"rgt",
"for (lft = 0; lft <= lin; lft++) {\n\n\t\t\tfor (rgt = 0; rgt < col; rgt++) {\n\n\t\t\t\tgrid[lft][rgt] = sc.nextInt();\n\n\t\t\t}\n\t\t}",
"lft = 0;",
"lft = 0",
"lft",
"0",
"lft <= lin",
"lft",
"lin",
"lft++",
"lft++",
"lft",
"{\n\n\t\t\tfor (rgt = 0; rgt < col; rgt++) {\n\n\t\t\t\tgrid[lft][rgt] = sc.nextInt();\n\n\t\t\t}\n\t\t}",
"{\n\n\t\t\tfor (rgt = 0; rgt < col; rgt++) {\n\n\t\t\t\tgrid[lft][rgt] = sc.nextInt();\n\n\t\t\t}\n\t\t}",
"for (rgt = 0; rgt < col; rgt++) {\n\n\t\t\t\tgrid[lft][rgt] = sc.nextInt();\n\n\t\t\t}",
"rgt = 0;",
"rgt = 0",
"rgt",
"0",
"rgt < col",
"rgt",
"col",
"rgt++",
"rgt++",
"rgt",
"{\n\n\t\t\t\tgrid[lft][rgt] = sc.nextInt();\n\n\t\t\t}",
"{\n\n\t\t\t\tgrid[lft][rgt] = sc.nextInt();\n\n\t\t\t}",
"grid[lft][rgt] = sc.nextInt()",
"grid[lft][rgt]",
"grid[lft]",
"grid",
"lft",
"rgt",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] sum = new int[lin];",
"sum",
"new int[lin]",
"lin",
"for (lft = 0; lft < lin; lft++) {\n\n\t\t\tfor (rgt = 0; rgt < col; rgt++) {\n\n\t\t\t\tsum[lft] += grid[lft][rgt] * grid[lin][rgt];\n\n\t\t\t}\n\t\t\tSystem.out.println(sum[lft]);\n\t\t}",
"lft = 0;",
"lft = 0",
"lft",
"0",
"lft < lin",
"lft",
"lin",
"lft++",
"lft++",
"lft",
"{\n\n\t\t\tfor (rgt = 0; rgt < col; rgt++) {\n\n\t\t\t\tsum[lft] += grid[lft][rgt] * grid[lin][rgt];\n\n\t\t\t}\n\t\t\tSystem.out.println(sum[lft]);\n\t\t}",
"{\n\n\t\t\tfor (rgt = 0; rgt < col; rgt++) {\n\n\t\t\t\tsum[lft] += grid[lft][rgt] * grid[lin][rgt];\n\n\t\t\t}\n\t\t\tSystem.out.println(sum[lft]);\n\t\t}",
"for (rgt = 0; rgt < col; rgt++) {\n\n\t\t\t\tsum[lft] += grid[lft][rgt] * grid[lin][rgt];\n\n\t\t\t}",
"rgt = 0;",
"rgt = 0",
"rgt",
"0",
"rgt < col",
"rgt",
"col",
"rgt++",
"rgt++",
"rgt",
"{\n\n\t\t\t\tsum[lft] += grid[lft][rgt] * grid[lin][rgt];\n\n\t\t\t}",
"{\n\n\t\t\t\tsum[lft] += grid[lft][rgt] * grid[lin][rgt];\n\n\t\t\t}",
"sum[lft] += grid[lft][rgt] * grid[lin][rgt]",
"sum[lft]",
"sum",
"lft",
"grid[lft][rgt] * grid[lin][rgt]",
"grid[lft][rgt]",
"grid[lft]",
"grid",
"lft",
"rgt",
"grid[lin][rgt]",
"grid[lin]",
"grid",
"lin",
"rgt",
"System.out.println(sum[lft])",
"System.out.println",
"System.out",
"System",
"System.out",
"sum[lft]",
"sum",
"lft",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// ?????????????????\\????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// ??????????????\\??????????????ยฐ?????\\???????????ยฐ\n\t\tint lin = sc.nextInt();\n\t\tint col = sc.nextInt();\n\n\t\t// ????ยฌ???????????????????\n\t\tint[][] grid = new int[lin + 1][col];\n\n\t\t// ????ยฌ???????????????????lft:?????????????????????rgt:?????????????????????\n\t\tint lft;\n\t\tint rgt;\n\n\t\t// ??\\??????????????ยฐ?????????????????\\??????\n\t\tfor (lft = 0; lft <= lin; lft++) {\n\n\t\t\tfor (rgt = 0; rgt < col; rgt++) {\n\n\t\t\t\tgrid[lft][rgt] = sc.nextInt();\n\n\t\t\t}\n\t\t}\n\n\t\t// ????ยจ??????\\?????????????????????\n\t\tint[] sum = new int[lin];\n\n\t\t// ???????????????\n\t\tfor (lft = 0; lft < lin; lft++) {\n\n\t\t\tfor (rgt = 0; rgt < col; rgt++) {\n\n\t\t\t\tsum[lft] += grid[lft][rgt] * grid[lin][rgt];\n\n\t\t\t}\n\t\t\tSystem.out.println(sum[lft]);\n\t\t}\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// ?????????????????\\????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// ??????????????\\??????????????ยฐ?????\\???????????ยฐ\n\t\tint lin = sc.nextInt();\n\t\tint col = sc.nextInt();\n\n\t\t// ????ยฌ???????????????????\n\t\tint[][] grid = new int[lin + 1][col];\n\n\t\t// ????ยฌ???????????????????lft:?????????????????????rgt:?????????????????????\n\t\tint lft;\n\t\tint rgt;\n\n\t\t// ??\\??????????????ยฐ?????????????????\\??????\n\t\tfor (lft = 0; lft <= lin; lft++) {\n\n\t\t\tfor (rgt = 0; rgt < col; rgt++) {\n\n\t\t\t\tgrid[lft][rgt] = sc.nextInt();\n\n\t\t\t}\n\t\t}\n\n\t\t// ????ยจ??????\\?????????????????????\n\t\tint[] sum = new int[lin];\n\n\t\t// ???????????????\n\t\tfor (lft = 0; lft < lin; lft++) {\n\n\t\t\tfor (rgt = 0; rgt < col; rgt++) {\n\n\t\t\t\tsum[lft] += grid[lft][rgt] * grid[lin][rgt];\n\n\t\t\t}\n\t\t\tSystem.out.println(sum[lft]);\n\t\t}\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 lin = sc.nextInt();
int col = sc.nextInt();
// ????ยฌ???????????????????
int[][] grid = new int[lin + 1][col];
// ????ยฌ???????????????????lft:?????????????????????rgt:?????????????????????
int lft;
int rgt;
// ??\??????????????ยฐ?????????????????\??????
for (lft = 0; lft <= lin; lft++) {
for (rgt = 0; rgt < col; rgt++) {
grid[lft][rgt] = sc.nextInt();
}
}
// ????ยจ??????\?????????????????????
int[] sum = new int[lin];
// ???????????????
for (lft = 0; lft < lin; lft++) {
for (rgt = 0; rgt < col; rgt++) {
sum[lft] += grid[lft][rgt] * grid[lin][rgt];
}
System.out.println(sum[lft]);
}
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,
0,
13,
20,
13,
13,
41,
13,
20,
13,
41,
13,
20,
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,
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,
2,
18,
18,
13,
13,
13,
18,
13,
13,
13,
0,
13,
18,
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,
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
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
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
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
66,
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
],
[
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
],
[
120,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
126,
132
],
[
132,
133
],
[
132,
134
],
[
125,
135
],
[
120,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
138,
140
],
[
107,
141
],
[
141,
142
],
[
141,
143
],
[
8,
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
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
157,
162
],
[
162,
163
],
[
162,
164
],
[
8,
165
],
[
165,
166
],
[
166,
167
],
[
6,
168
],
[
168,
169
]
] | [
"import java.util.Scanner;\n\nclass Main {\n public static void main(String args[]) {\n\t \tScanner scanner = new Scanner(System.in);\n\t \tint a = scanner.nextInt();\n\t \tint b = scanner.nextInt();\n\t \tint[][] array;//้
ๅ็ขบไฟ\n array = new int[a][b];\n int Vec[] = new int[b]; // ้
ๅ็ขบไฟ\n int sum[] = new int[a];\n int x = 0;\n \n \n // ใใผใฟๅ
ฅๅ\n for (int i = 0; i < a; i++) {\n \tfor (int j = 0; j < b; j++) {\n\t array[i][j]=scanner.nextInt();\n\t }\n }\n for (int i = 0; i < b; i++) {\n\t Vec[i]=scanner.nextInt();\n\t }\n \n for (int i = 0; i < a; i++) {\n \tfor (int j = 0; j < b; j++) {\n\t sum[i] = array[i][j] * Vec[j] + x;\n\t x = sum[i];\n\t }\n\t x = 0;\n }\n for (int i = 0; i < a; i++) {\n\t System.out.println(sum[i]);\n\t }\n \n \n \n scanner.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String args[]) {\n\t \tScanner scanner = new Scanner(System.in);\n\t \tint a = scanner.nextInt();\n\t \tint b = scanner.nextInt();\n\t \tint[][] array;//้
ๅ็ขบไฟ\n array = new int[a][b];\n int Vec[] = new int[b]; // ้
ๅ็ขบไฟ\n int sum[] = new int[a];\n int x = 0;\n \n \n // ใใผใฟๅ
ฅๅ\n for (int i = 0; i < a; i++) {\n \tfor (int j = 0; j < b; j++) {\n\t array[i][j]=scanner.nextInt();\n\t }\n }\n for (int i = 0; i < b; i++) {\n\t Vec[i]=scanner.nextInt();\n\t }\n \n for (int i = 0; i < a; i++) {\n \tfor (int j = 0; j < b; j++) {\n\t sum[i] = array[i][j] * Vec[j] + x;\n\t x = sum[i];\n\t }\n\t x = 0;\n }\n for (int i = 0; i < a; i++) {\n\t System.out.println(sum[i]);\n\t }\n \n \n \n scanner.close();\n }\n}",
"Main",
"public static void main(String args[]) {\n\t \tScanner scanner = new Scanner(System.in);\n\t \tint a = scanner.nextInt();\n\t \tint b = scanner.nextInt();\n\t \tint[][] array;//้
ๅ็ขบไฟ\n array = new int[a][b];\n int Vec[] = new int[b]; // ้
ๅ็ขบไฟ\n int sum[] = new int[a];\n int x = 0;\n \n \n // ใใผใฟๅ
ฅๅ\n for (int i = 0; i < a; i++) {\n \tfor (int j = 0; j < b; j++) {\n\t array[i][j]=scanner.nextInt();\n\t }\n }\n for (int i = 0; i < b; i++) {\n\t Vec[i]=scanner.nextInt();\n\t }\n \n for (int i = 0; i < a; i++) {\n \tfor (int j = 0; j < b; j++) {\n\t sum[i] = array[i][j] * Vec[j] + x;\n\t x = sum[i];\n\t }\n\t x = 0;\n }\n for (int i = 0; i < a; i++) {\n\t System.out.println(sum[i]);\n\t }\n \n \n \n scanner.close();\n }",
"main",
"{\n\t \tScanner scanner = new Scanner(System.in);\n\t \tint a = scanner.nextInt();\n\t \tint b = scanner.nextInt();\n\t \tint[][] array;//้
ๅ็ขบไฟ\n array = new int[a][b];\n int Vec[] = new int[b]; // ้
ๅ็ขบไฟ\n int sum[] = new int[a];\n int x = 0;\n \n \n // ใใผใฟๅ
ฅๅ\n for (int i = 0; i < a; i++) {\n \tfor (int j = 0; j < b; j++) {\n\t array[i][j]=scanner.nextInt();\n\t }\n }\n for (int i = 0; i < b; i++) {\n\t Vec[i]=scanner.nextInt();\n\t }\n \n for (int i = 0; i < a; i++) {\n \tfor (int j = 0; j < b; j++) {\n\t sum[i] = array[i][j] * Vec[j] + x;\n\t x = sum[i];\n\t }\n\t x = 0;\n }\n for (int i = 0; i < a; i++) {\n\t System.out.println(sum[i]);\n\t }\n \n \n \n scanner.close();\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int a = scanner.nextInt();",
"a",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int b = scanner.nextInt();",
"b",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int[][] array;",
"array",
"array = new int[a][b]",
"array",
"new int[a][b]",
"a",
"b",
"int Vec[] = new int[b];",
"Vec",
"new int[b]",
"b",
"int sum[] = new int[a];",
"sum",
"new int[a]",
"a",
"int x = 0;",
"x",
"0",
"for (int i = 0; i < a; i++) {\n \tfor (int j = 0; j < b; j++) {\n\t array[i][j]=scanner.nextInt();\n\t }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a",
"i",
"a",
"i++",
"i++",
"i",
"{\n \tfor (int j = 0; j < b; j++) {\n\t array[i][j]=scanner.nextInt();\n\t }\n }",
"{\n \tfor (int j = 0; j < b; j++) {\n\t array[i][j]=scanner.nextInt();\n\t }\n }",
"for (int j = 0; j < b; j++) {\n\t array[i][j]=scanner.nextInt();\n\t }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < b",
"j",
"b",
"j++",
"j++",
"j",
"{\n\t array[i][j]=scanner.nextInt();\n\t }",
"{\n\t array[i][j]=scanner.nextInt();\n\t }",
"array[i][j]=scanner.nextInt()",
"array[i][j]",
"array[i]",
"array",
"i",
"j",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for (int i = 0; i < b; i++) {\n\t Vec[i]=scanner.nextInt();\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < b",
"i",
"b",
"i++",
"i++",
"i",
"{\n\t Vec[i]=scanner.nextInt();\n\t }",
"{\n\t Vec[i]=scanner.nextInt();\n\t }",
"Vec[i]=scanner.nextInt()",
"Vec[i]",
"Vec",
"i",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for (int i = 0; i < a; i++) {\n \tfor (int j = 0; j < b; j++) {\n\t sum[i] = array[i][j] * Vec[j] + x;\n\t x = sum[i];\n\t }\n\t x = 0;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a",
"i",
"a",
"i++",
"i++",
"i",
"{\n \tfor (int j = 0; j < b; j++) {\n\t sum[i] = array[i][j] * Vec[j] + x;\n\t x = sum[i];\n\t }\n\t x = 0;\n }",
"{\n \tfor (int j = 0; j < b; j++) {\n\t sum[i] = array[i][j] * Vec[j] + x;\n\t x = sum[i];\n\t }\n\t x = 0;\n }",
"for (int j = 0; j < b; j++) {\n\t sum[i] = array[i][j] * Vec[j] + x;\n\t x = sum[i];\n\t }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < b",
"j",
"b",
"j++",
"j++",
"j",
"{\n\t sum[i] = array[i][j] * Vec[j] + x;\n\t x = sum[i];\n\t }",
"{\n\t sum[i] = array[i][j] * Vec[j] + x;\n\t x = sum[i];\n\t }",
"sum[i] = array[i][j] * Vec[j] + x",
"sum[i]",
"sum",
"i",
"array[i][j] * Vec[j] + x",
"array[i][j] * Vec[j]",
"array[i][j]",
"array[i]",
"array",
"i",
"j",
"Vec[j]",
"Vec",
"j",
"x",
"x = sum[i]",
"x",
"sum[i]",
"sum",
"i",
"x = 0",
"x",
"0",
"for (int i = 0; i < a; i++) {\n\t System.out.println(sum[i]);\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a",
"i",
"a",
"i++",
"i++",
"i",
"{\n\t System.out.println(sum[i]);\n\t }",
"{\n\t System.out.println(sum[i]);\n\t }",
"System.out.println(sum[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"sum[i]",
"sum",
"i",
"scanner.close()",
"scanner.close",
"scanner",
"String args[]",
"args"
] | import java.util.Scanner;
class Main {
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int[][] array;//้
ๅ็ขบไฟ
array = new int[a][b];
int Vec[] = new int[b]; // ้
ๅ็ขบไฟ
int sum[] = new int[a];
int x = 0;
// ใใผใฟๅ
ฅๅ
for (int i = 0; i < a; i++) {
for (int j = 0; j < b; j++) {
array[i][j]=scanner.nextInt();
}
}
for (int i = 0; i < b; i++) {
Vec[i]=scanner.nextInt();
}
for (int i = 0; i < a; i++) {
for (int j = 0; j < b; j++) {
sum[i] = array[i][j] * Vec[j] + x;
x = sum[i];
}
x = 0;
}
for (int i = 0; i < a; i++) {
System.out.println(sum[i]);
}
scanner.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,
0,
18,
18,
13,
13,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
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,
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
],
[
141,
8
],
[
141,
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
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
59,
65
],
[
65,
66
],
[
66,
67
],
[
65,
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
],
[
87,
90
],
[
90,
91
],
[
91,
92
],
[
11,
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
],
[
105,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
114,
115
],
[
114,
116
],
[
109,
117
],
[
117,
118
],
[
118,
119
],
[
109,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
123,
129
],
[
129,
130
],
[
129,
131
],
[
105,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
9,
138
],
[
138,
139
],
[
0,
140
],
[
140,
141
],
[
140,
142
]
] | [
"import java.util.*;\nimport java.io.*;\n\npublic class Main{\n public static void main(String args[]){\n Scanner in = new Scanner(System.in);\n \n int n = in.nextInt(), m = in.nextInt();\n int[][] M = new int[n][m];\n int[] V = new int[m];\n\n //input\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++)M[i][j]=Integer.parseInt(in.next());\n }\n\n for(int i = 0; i < m; i++) V[i] = Integer.parseInt(in.next());\n\n //solve and output\n for(int i = 0; i < n; i++){\n int sum = 0;\n for(int j = 0; j < m; j++)sum += M[i][j] * V[j];\n System.out.println(sum);\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 in = new Scanner(System.in);\n \n int n = in.nextInt(), m = in.nextInt();\n int[][] M = new int[n][m];\n int[] V = new int[m];\n\n //input\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++)M[i][j]=Integer.parseInt(in.next());\n }\n\n for(int i = 0; i < m; i++) V[i] = Integer.parseInt(in.next());\n\n //solve and output\n for(int i = 0; i < n; i++){\n int sum = 0;\n for(int j = 0; j < m; j++)sum += M[i][j] * V[j];\n System.out.println(sum);\n }\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner in = new Scanner(System.in);\n \n int n = in.nextInt(), m = in.nextInt();\n int[][] M = new int[n][m];\n int[] V = new int[m];\n\n //input\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++)M[i][j]=Integer.parseInt(in.next());\n }\n\n for(int i = 0; i < m; i++) V[i] = Integer.parseInt(in.next());\n\n //solve and output\n for(int i = 0; i < n; i++){\n int sum = 0;\n for(int j = 0; j < m; j++)sum += M[i][j] * V[j];\n System.out.println(sum);\n }\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n \n int n = in.nextInt(), m = in.nextInt();\n int[][] M = new int[n][m];\n int[] V = new int[m];\n\n //input\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++)M[i][j]=Integer.parseInt(in.next());\n }\n\n for(int i = 0; i < m; i++) V[i] = Integer.parseInt(in.next());\n\n //solve and output\n for(int i = 0; i < n; i++){\n int sum = 0;\n for(int j = 0; j < m; j++)sum += M[i][j] * V[j];\n System.out.println(sum);\n }\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int n = in.nextInt()",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"m = in.nextInt();",
"m",
"in.nextInt()",
"in.nextInt",
"in",
"int[][] M = new int[n][m];",
"M",
"new int[n][m]",
"n",
"m",
"int[] V = new int[m];",
"V",
"new int[m]",
"m",
"for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++)M[i][j]=Integer.parseInt(in.next());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < m; j++)M[i][j]=Integer.parseInt(in.next());\n }",
"{\n for(int j = 0; j < m; j++)M[i][j]=Integer.parseInt(in.next());\n }",
"for(int j = 0; j < m; j++)M[i][j]=Integer.parseInt(in.next());",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"M[i][j]=Integer.parseInt(in.next());",
"M[i][j]=Integer.parseInt(in.next())",
"M[i][j]",
"M[i]",
"M",
"i",
"j",
"Integer.parseInt(in.next())",
"Integer.parseInt",
"Integer",
"in.next()",
"in.next",
"in",
"for(int i = 0; i < m; i++) V[i] = Integer.parseInt(in.next());",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"V[i] = Integer.parseInt(in.next());",
"V[i] = Integer.parseInt(in.next())",
"V[i]",
"V",
"i",
"Integer.parseInt(in.next())",
"Integer.parseInt",
"Integer",
"in.next()",
"in.next",
"in",
"for(int i = 0; i < n; i++){\n int sum = 0;\n for(int j = 0; j < m; j++)sum += M[i][j] * V[j];\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++)sum += M[i][j] * V[j];\n System.out.println(sum);\n }",
"{\n int sum = 0;\n for(int j = 0; j < m; j++)sum += M[i][j] * V[j];\n System.out.println(sum);\n }",
"int sum = 0;",
"sum",
"0",
"for(int j = 0; j < m; j++)sum += M[i][j] * V[j];",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"sum += M[i][j] * V[j];",
"sum += M[i][j] * V[j]",
"sum",
"M[i][j] * V[j]",
"M[i][j]",
"M[i]",
"M",
"i",
"j",
"V[j]",
"V",
"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 in = new Scanner(System.in);\n \n int n = in.nextInt(), m = in.nextInt();\n int[][] M = new int[n][m];\n int[] V = new int[m];\n\n //input\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++)M[i][j]=Integer.parseInt(in.next());\n }\n\n for(int i = 0; i < m; i++) V[i] = Integer.parseInt(in.next());\n\n //solve and output\n for(int i = 0; i < n; i++){\n int sum = 0;\n for(int j = 0; j < m; j++)sum += M[i][j] * V[j];\n System.out.println(sum);\n }\n }\n}",
"public class Main{\n public static void main(String args[]){\n Scanner in = new Scanner(System.in);\n \n int n = in.nextInt(), m = in.nextInt();\n int[][] M = new int[n][m];\n int[] V = new int[m];\n\n //input\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++)M[i][j]=Integer.parseInt(in.next());\n }\n\n for(int i = 0; i < m; i++) V[i] = Integer.parseInt(in.next());\n\n //solve and output\n for(int i = 0; i < n; i++){\n int sum = 0;\n for(int j = 0; j < m; j++)sum += M[i][j] * V[j];\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 in = new Scanner(System.in);
int n = in.nextInt(), m = in.nextInt();
int[][] M = new int[n][m];
int[] V = new int[m];
//input
for(int i = 0; i < n; i++){
for(int j = 0; j < m; j++)M[i][j]=Integer.parseInt(in.next());
}
for(int i = 0; i < m; i++) V[i] = Integer.parseInt(in.next());
//solve and output
for(int i = 0; i < n; i++){
int sum = 0;
for(int j = 0; j < m; j++)sum += M[i][j] * V[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,
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,
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
],
[
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
],
[
102,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
6,
137
],
[
137,
138
]
] | [
"import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \tint n = scan.nextInt();\n \tint m = scan.nextInt();\n \t\n \tint[][] Vec_a = new int[n][m];\n \tint[] Vec_b = new int[m];\n \tint[] c = new int[n];\n\n \tfor(int j = 0; j < n; j++){\n \t\tfor(int i = 0; i < m; i++){\n \t\tVec_a[j][i] = scan.nextInt();\n \t}\n \t}\n \t\n \tfor(int i = 0; i < m; i++){\n \t\tVec_b[i] = scan.nextInt();\n \t}\n \t\n \tfor(int j = 0; j < n; j++){\n \t\tfor(int i = 0; i < m; i++){\n \t\tc[j] += Vec_a[j][i] * Vec_b[i]; \n \t}\n \t\tSystem.out.println(c[j]);\n \t}\n }\n \t\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \tint n = scan.nextInt();\n \tint m = scan.nextInt();\n \t\n \tint[][] Vec_a = new int[n][m];\n \tint[] Vec_b = new int[m];\n \tint[] c = new int[n];\n\n \tfor(int j = 0; j < n; j++){\n \t\tfor(int i = 0; i < m; i++){\n \t\tVec_a[j][i] = scan.nextInt();\n \t}\n \t}\n \t\n \tfor(int i = 0; i < m; i++){\n \t\tVec_b[i] = scan.nextInt();\n \t}\n \t\n \tfor(int j = 0; j < n; j++){\n \t\tfor(int i = 0; i < m; i++){\n \t\tc[j] += Vec_a[j][i] * Vec_b[i]; \n \t}\n \t\tSystem.out.println(c[j]);\n \t}\n }\n \t\n}",
"Main",
"public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \tint n = scan.nextInt();\n \tint m = scan.nextInt();\n \t\n \tint[][] Vec_a = new int[n][m];\n \tint[] Vec_b = new int[m];\n \tint[] c = new int[n];\n\n \tfor(int j = 0; j < n; j++){\n \t\tfor(int i = 0; i < m; i++){\n \t\tVec_a[j][i] = scan.nextInt();\n \t}\n \t}\n \t\n \tfor(int i = 0; i < m; i++){\n \t\tVec_b[i] = scan.nextInt();\n \t}\n \t\n \tfor(int j = 0; j < n; j++){\n \t\tfor(int i = 0; i < m; i++){\n \t\tc[j] += Vec_a[j][i] * Vec_b[i]; \n \t}\n \t\tSystem.out.println(c[j]);\n \t}\n }",
"main",
"{\n \tScanner scan = new Scanner(System.in);\n \tint n = scan.nextInt();\n \tint m = scan.nextInt();\n \t\n \tint[][] Vec_a = new int[n][m];\n \tint[] Vec_b = new int[m];\n \tint[] c = new int[n];\n\n \tfor(int j = 0; j < n; j++){\n \t\tfor(int i = 0; i < m; i++){\n \t\tVec_a[j][i] = scan.nextInt();\n \t}\n \t}\n \t\n \tfor(int i = 0; i < m; i++){\n \t\tVec_b[i] = scan.nextInt();\n \t}\n \t\n \tfor(int j = 0; j < n; j++){\n \t\tfor(int i = 0; i < m; i++){\n \t\tc[j] += Vec_a[j][i] * Vec_b[i]; \n \t}\n \t\tSystem.out.println(c[j]);\n \t}\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[][] Vec_a = new int[n][m];",
"Vec_a",
"new int[n][m]",
"n",
"m",
"int[] Vec_b = new int[m];",
"Vec_b",
"new int[m]",
"m",
"int[] c = new int[n];",
"c",
"new int[n]",
"n",
"for(int j = 0; j < n; j++){\n \t\tfor(int i = 0; i < m; i++){\n \t\tVec_a[j][i] = scan.nextInt();\n \t}\n \t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < n",
"j",
"n",
"j++",
"j++",
"j",
"{\n \t\tfor(int i = 0; i < m; i++){\n \t\tVec_a[j][i] = scan.nextInt();\n \t}\n \t}",
"{\n \t\tfor(int i = 0; i < m; i++){\n \t\tVec_a[j][i] = scan.nextInt();\n \t}\n \t}",
"for(int i = 0; i < m; i++){\n \t\tVec_a[j][i] = scan.nextInt();\n \t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n \t\tVec_a[j][i] = scan.nextInt();\n \t}",
"{\n \t\tVec_a[j][i] = scan.nextInt();\n \t}",
"Vec_a[j][i] = scan.nextInt()",
"Vec_a[j][i]",
"Vec_a[j]",
"Vec_a",
"j",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 0; i < m; i++){\n \t\tVec_b[i] = scan.nextInt();\n \t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n \t\tVec_b[i] = scan.nextInt();\n \t}",
"{\n \t\tVec_b[i] = scan.nextInt();\n \t}",
"Vec_b[i] = scan.nextInt()",
"Vec_b[i]",
"Vec_b",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int j = 0; j < n; j++){\n \t\tfor(int i = 0; i < m; i++){\n \t\tc[j] += Vec_a[j][i] * Vec_b[i]; \n \t}\n \t\tSystem.out.println(c[j]);\n \t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < n",
"j",
"n",
"j++",
"j++",
"j",
"{\n \t\tfor(int i = 0; i < m; i++){\n \t\tc[j] += Vec_a[j][i] * Vec_b[i]; \n \t}\n \t\tSystem.out.println(c[j]);\n \t}",
"{\n \t\tfor(int i = 0; i < m; i++){\n \t\tc[j] += Vec_a[j][i] * Vec_b[i]; \n \t}\n \t\tSystem.out.println(c[j]);\n \t}",
"for(int i = 0; i < m; i++){\n \t\tc[j] += Vec_a[j][i] * Vec_b[i]; \n \t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n \t\tc[j] += Vec_a[j][i] * Vec_b[i]; \n \t}",
"{\n \t\tc[j] += Vec_a[j][i] * Vec_b[i]; \n \t}",
"c[j] += Vec_a[j][i] * Vec_b[i]",
"c[j]",
"c",
"j",
"Vec_a[j][i] * Vec_b[i]",
"Vec_a[j][i]",
"Vec_a[j]",
"Vec_a",
"j",
"i",
"Vec_b[i]",
"Vec_b",
"i",
"System.out.println(c[j])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[j]",
"c",
"j",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int m = scan.nextInt();
int[][] Vec_a = new int[n][m];
int[] Vec_b = new int[m];
int[] c = new int[n];
for(int j = 0; j < n; j++){
for(int i = 0; i < m; i++){
Vec_a[j][i] = scan.nextInt();
}
}
for(int i = 0; i < m; i++){
Vec_b[i] = scan.nextInt();
}
for(int j = 0; j < n; j++){
for(int i = 0; i < m; i++){
c[j] += Vec_a[j][i] * Vec_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,
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,
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,
18,
13,
13,
17,
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,
18,
13,
13,
17,
4,
18,
18,
13,
13,
13,
0,
13,
17,
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,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
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
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
63,
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
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
82,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
88,
94
],
[
8,
95
],
[
95,
96
],
[
95,
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
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
126,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
110,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
110,
143
],
[
143,
144
],
[
143,
145
],
[
6,
146
],
[
146,
147
],
[
0,
148
],
[
148,
149
],
[
148,
150
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int retu = scanner.nextInt();\n int gyou = scanner.nextInt();\n int[][] gyouretu1 = new int[retu][gyou];\n int[][] gyouretu2 = new int[gyou][1];\n for (int i = 0; i < retu; i++) {\n for (int j = 0; j < gyou; j++) {\n int r = scanner.nextInt();\n gyouretu1[i][j] = r;\n }\n }\n for (int j = 0; j < gyou; j++) {\n int b = scanner.nextInt();\n gyouretu2[j][0] = b;\n }\n int goukei = 0;\n for (int i = 0; i < retu; i++) {\n for (int j = 0; j < gyou; j++) {\n goukei += gyouretu1[i][j] * gyouretu2[j][0];\n }\n System.out.println(goukei);\n goukei=0;\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int retu = scanner.nextInt();\n int gyou = scanner.nextInt();\n int[][] gyouretu1 = new int[retu][gyou];\n int[][] gyouretu2 = new int[gyou][1];\n for (int i = 0; i < retu; i++) {\n for (int j = 0; j < gyou; j++) {\n int r = scanner.nextInt();\n gyouretu1[i][j] = r;\n }\n }\n for (int j = 0; j < gyou; j++) {\n int b = scanner.nextInt();\n gyouretu2[j][0] = b;\n }\n int goukei = 0;\n for (int i = 0; i < retu; i++) {\n for (int j = 0; j < gyou; j++) {\n goukei += gyouretu1[i][j] * gyouretu2[j][0];\n }\n System.out.println(goukei);\n goukei=0;\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int retu = scanner.nextInt();\n int gyou = scanner.nextInt();\n int[][] gyouretu1 = new int[retu][gyou];\n int[][] gyouretu2 = new int[gyou][1];\n for (int i = 0; i < retu; i++) {\n for (int j = 0; j < gyou; j++) {\n int r = scanner.nextInt();\n gyouretu1[i][j] = r;\n }\n }\n for (int j = 0; j < gyou; j++) {\n int b = scanner.nextInt();\n gyouretu2[j][0] = b;\n }\n int goukei = 0;\n for (int i = 0; i < retu; i++) {\n for (int j = 0; j < gyou; j++) {\n goukei += gyouretu1[i][j] * gyouretu2[j][0];\n }\n System.out.println(goukei);\n goukei=0;\n }\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int retu = scanner.nextInt();\n int gyou = scanner.nextInt();\n int[][] gyouretu1 = new int[retu][gyou];\n int[][] gyouretu2 = new int[gyou][1];\n for (int i = 0; i < retu; i++) {\n for (int j = 0; j < gyou; j++) {\n int r = scanner.nextInt();\n gyouretu1[i][j] = r;\n }\n }\n for (int j = 0; j < gyou; j++) {\n int b = scanner.nextInt();\n gyouretu2[j][0] = b;\n }\n int goukei = 0;\n for (int i = 0; i < retu; i++) {\n for (int j = 0; j < gyou; j++) {\n goukei += gyouretu1[i][j] * gyouretu2[j][0];\n }\n System.out.println(goukei);\n goukei=0;\n }\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int retu = scanner.nextInt();",
"retu",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int gyou = scanner.nextInt();",
"gyou",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int[][] gyouretu1 = new int[retu][gyou];",
"gyouretu1",
"new int[retu][gyou]",
"retu",
"gyou",
"int[][] gyouretu2 = new int[gyou][1];",
"gyouretu2",
"new int[gyou][1]",
"gyou",
"1",
"for (int i = 0; i < retu; i++) {\n for (int j = 0; j < gyou; j++) {\n int r = scanner.nextInt();\n gyouretu1[i][j] = r;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < retu",
"i",
"retu",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < gyou; j++) {\n int r = scanner.nextInt();\n gyouretu1[i][j] = r;\n }\n }",
"{\n for (int j = 0; j < gyou; j++) {\n int r = scanner.nextInt();\n gyouretu1[i][j] = r;\n }\n }",
"for (int j = 0; j < gyou; j++) {\n int r = scanner.nextInt();\n gyouretu1[i][j] = r;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < gyou",
"j",
"gyou",
"j++",
"j++",
"j",
"{\n int r = scanner.nextInt();\n gyouretu1[i][j] = r;\n }",
"{\n int r = scanner.nextInt();\n gyouretu1[i][j] = r;\n }",
"int r = scanner.nextInt();",
"r",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"gyouretu1[i][j] = r",
"gyouretu1[i][j]",
"gyouretu1[i]",
"gyouretu1",
"i",
"j",
"r",
"for (int j = 0; j < gyou; j++) {\n int b = scanner.nextInt();\n gyouretu2[j][0] = b;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < gyou",
"j",
"gyou",
"j++",
"j++",
"j",
"{\n int b = scanner.nextInt();\n gyouretu2[j][0] = b;\n }",
"{\n int b = scanner.nextInt();\n gyouretu2[j][0] = b;\n }",
"int b = scanner.nextInt();",
"b",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"gyouretu2[j][0] = b",
"gyouretu2[j][0]",
"gyouretu2[j]",
"gyouretu2",
"j",
"0",
"b",
"int goukei = 0;",
"goukei",
"0",
"for (int i = 0; i < retu; i++) {\n for (int j = 0; j < gyou; j++) {\n goukei += gyouretu1[i][j] * gyouretu2[j][0];\n }\n System.out.println(goukei);\n goukei=0;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < retu",
"i",
"retu",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < gyou; j++) {\n goukei += gyouretu1[i][j] * gyouretu2[j][0];\n }\n System.out.println(goukei);\n goukei=0;\n }",
"{\n for (int j = 0; j < gyou; j++) {\n goukei += gyouretu1[i][j] * gyouretu2[j][0];\n }\n System.out.println(goukei);\n goukei=0;\n }",
"for (int j = 0; j < gyou; j++) {\n goukei += gyouretu1[i][j] * gyouretu2[j][0];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < gyou",
"j",
"gyou",
"j++",
"j++",
"j",
"{\n goukei += gyouretu1[i][j] * gyouretu2[j][0];\n }",
"{\n goukei += gyouretu1[i][j] * gyouretu2[j][0];\n }",
"goukei += gyouretu1[i][j] * gyouretu2[j][0]",
"goukei",
"gyouretu1[i][j] * gyouretu2[j][0]",
"gyouretu1[i][j]",
"gyouretu1[i]",
"gyouretu1",
"i",
"j",
"gyouretu2[j][0]",
"gyouretu2[j]",
"gyouretu2",
"j",
"0",
"System.out.println(goukei)",
"System.out.println",
"System.out",
"System",
"System.out",
"goukei",
"goukei=0",
"goukei",
"0",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int retu = scanner.nextInt();\n int gyou = scanner.nextInt();\n int[][] gyouretu1 = new int[retu][gyou];\n int[][] gyouretu2 = new int[gyou][1];\n for (int i = 0; i < retu; i++) {\n for (int j = 0; j < gyou; j++) {\n int r = scanner.nextInt();\n gyouretu1[i][j] = r;\n }\n }\n for (int j = 0; j < gyou; j++) {\n int b = scanner.nextInt();\n gyouretu2[j][0] = b;\n }\n int goukei = 0;\n for (int i = 0; i < retu; i++) {\n for (int j = 0; j < gyou; j++) {\n goukei += gyouretu1[i][j] * gyouretu2[j][0];\n }\n System.out.println(goukei);\n goukei=0;\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int retu = scanner.nextInt();\n int gyou = scanner.nextInt();\n int[][] gyouretu1 = new int[retu][gyou];\n int[][] gyouretu2 = new int[gyou][1];\n for (int i = 0; i < retu; i++) {\n for (int j = 0; j < gyou; j++) {\n int r = scanner.nextInt();\n gyouretu1[i][j] = r;\n }\n }\n for (int j = 0; j < gyou; j++) {\n int b = scanner.nextInt();\n gyouretu2[j][0] = b;\n }\n int goukei = 0;\n for (int i = 0; i < retu; i++) {\n for (int j = 0; j < gyou; j++) {\n goukei += gyouretu1[i][j] * gyouretu2[j][0];\n }\n System.out.println(goukei);\n goukei=0;\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int retu = scanner.nextInt();
int gyou = scanner.nextInt();
int[][] gyouretu1 = new int[retu][gyou];
int[][] gyouretu2 = new int[gyou][1];
for (int i = 0; i < retu; i++) {
for (int j = 0; j < gyou; j++) {
int r = scanner.nextInt();
gyouretu1[i][j] = r;
}
}
for (int j = 0; j < gyou; j++) {
int b = scanner.nextInt();
gyouretu2[j][0] = b;
}
int goukei = 0;
for (int i = 0; i < retu; i++) {
for (int j = 0; j < gyou; j++) {
goukei += gyouretu1[i][j] * gyouretu2[j][0];
}
System.out.println(goukei);
goukei=0;
}
}
} |
[
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,
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,
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
],
[
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,
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
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
66,
71
],
[
63,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
72,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
85,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
94,
96
],
[
14,
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
],
[
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\n/**\n * \n */\n\n/**\n * @author cthanh\n *\n */\npublic class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException\n\t */\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] str = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(str[0]);\n\t\tint m = Integer.parseInt(str[1]);\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[m];\n\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\n\t\t\t\tmatrix[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int k = 0; k < m; k++) {\n\t\t\tString str1 = br.readLine();\n\t\t\tvector[k] = Integer.parseInt(str1);\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint kakezan= 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\n\t\t\t\tkakezan += matrix[i][j] * vector[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(kakezan);\n\t\t}\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 * @param args\n\t * @throws IOException\n\t */\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] str = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(str[0]);\n\t\tint m = Integer.parseInt(str[1]);\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[m];\n\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\n\t\t\t\tmatrix[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int k = 0; k < m; k++) {\n\t\t\tString str1 = br.readLine();\n\t\t\tvector[k] = Integer.parseInt(str1);\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint kakezan= 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\n\t\t\t\tkakezan += matrix[i][j] * vector[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(kakezan);\n\t\t}\n\n\t}\n\n}",
"Main",
"/**\n\t * @param args\n\t * @throws IOException\n\t */\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] str = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(str[0]);\n\t\tint m = Integer.parseInt(str[1]);\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[m];\n\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\n\t\t\t\tmatrix[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int k = 0; k < m; k++) {\n\t\t\tString str1 = br.readLine();\n\t\t\tvector[k] = Integer.parseInt(str1);\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint kakezan= 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\n\t\t\t\tkakezan += matrix[i][j] * vector[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(kakezan);\n\t\t}\n\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] str = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(str[0]);\n\t\tint m = Integer.parseInt(str[1]);\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[m];\n\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\n\t\t\t\tmatrix[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int k = 0; k < m; k++) {\n\t\t\tString str1 = br.readLine();\n\t\t\tvector[k] = Integer.parseInt(str1);\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint kakezan= 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\n\t\t\t\tkakezan += matrix[i][j] * vector[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(kakezan);\n\t\t}\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] str = br.readLine().split(\" \");",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"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[][] 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\t\t\tstr = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\n\t\t\t\tmatrix[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\n\t\t\t\tmatrix[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\n\t\t\t\tmatrix[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\n\t\t\t\tmatrix[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\n\t\t\t\tmatrix[i][j] = Integer.parseInt(str[j]);\n\t\t\t}",
"{\n\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 (int k = 0; k < m; k++) {\n\t\t\tString str1 = br.readLine();\n\t\t\tvector[k] = Integer.parseInt(str1);\n\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"{\n\t\t\tString str1 = br.readLine();\n\t\t\tvector[k] = Integer.parseInt(str1);\n\t\t}",
"{\n\t\t\tString str1 = br.readLine();\n\t\t\tvector[k] = Integer.parseInt(str1);\n\t\t}",
"String str1 = br.readLine();",
"str1",
"br.readLine()",
"br.readLine",
"br",
"vector[k] = Integer.parseInt(str1)",
"vector[k]",
"vector",
"k",
"Integer.parseInt(str1)",
"Integer.parseInt",
"Integer",
"str1",
"for (int i = 0; i < n; i++) {\n\t\t\tint kakezan= 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\n\t\t\t\tkakezan += matrix[i][j] * vector[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(kakezan);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint kakezan= 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\n\t\t\t\tkakezan += matrix[i][j] * vector[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(kakezan);\n\t\t}",
"{\n\t\t\tint kakezan= 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\n\t\t\t\tkakezan += matrix[i][j] * vector[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(kakezan);\n\t\t}",
"int kakezan= 0;",
"kakezan",
"0",
"for (int j = 0; j < m; j++) {\n\t\t\t\t\n\t\t\t\tkakezan += matrix[i][j] * vector[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\t\n\t\t\t\tkakezan += matrix[i][j] * vector[j];\n\n\t\t\t}",
"{\n\t\t\t\t\n\t\t\t\tkakezan += matrix[i][j] * vector[j];\n\n\t\t\t}",
"kakezan += matrix[i][j] * vector[j]",
"kakezan",
"matrix[i][j] * vector[j]",
"matrix[i][j]",
"matrix[i]",
"matrix",
"i",
"j",
"vector[j]",
"vector",
"j",
"System.out.println(kakezan)",
"System.out.println",
"System.out",
"System",
"System.out",
"kakezan",
"String[] args",
"args",
"public class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException\n\t */\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] str = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(str[0]);\n\t\tint m = Integer.parseInt(str[1]);\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[m];\n\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\n\t\t\t\tmatrix[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int k = 0; k < m; k++) {\n\t\t\tString str1 = br.readLine();\n\t\t\tvector[k] = Integer.parseInt(str1);\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint kakezan= 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\n\t\t\t\tkakezan += matrix[i][j] * vector[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(kakezan);\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException\n\t */\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] str = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(str[0]);\n\t\tint m = Integer.parseInt(str[1]);\n\t\tint[][] matrix = new int[n][m];\n\t\tint[] vector = new int[m];\n\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\n\t\t\t\tmatrix[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\t\tfor (int k = 0; k < m; k++) {\n\t\t\tString str1 = br.readLine();\n\t\t\tvector[k] = Integer.parseInt(str1);\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint kakezan= 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\n\t\t\t\tkakezan += matrix[i][j] * vector[j];\n\n\t\t\t}\n\t\t\tSystem.out.println(kakezan);\n\t\t}\n\n\t}\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
*
*/
/**
* @author cthanh
*
*/
public class Main {
/**
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
// TODO ?????????????????????????????????????????????
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] str = br.readLine().split(" ");
int n = Integer.parseInt(str[0]);
int m = Integer.parseInt(str[1]);
int[][] matrix = new int[n][m];
int[] vector = new int[m];
for (int i = 0; i < n; i++) {
str = br.readLine().split(" ");
for (int j = 0; j < m; j++) {
matrix[i][j] = Integer.parseInt(str[j]);
}
}
for (int k = 0; k < m; k++) {
String str1 = br.readLine();
vector[k] = Integer.parseInt(str1);
}
for (int i = 0; i < n; i++) {
int kakezan= 0;
for (int j = 0; j < m; j++) {
kakezan += matrix[i][j] * vector[j];
}
System.out.println(kakezan);
}
}
} |
[
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
] | [
[
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
],
[
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
]
] | [
"import java.util.*;\n\nclass Main{\n \n \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[] retu = new int[m];\n int[] ans = new int[n];\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 retu[i] = sc.nextInt(); \n }\n for(int i = 0; i<n; i++) {\n for(int j =0; j<m; j++) {\n ans[i] += matrix[i][j] * retu[j];\n }\n }\n for (int i = 0; i<n; i++) {\n System.out.println(ans[i]);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n \n \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[] retu = new int[m];\n int[] ans = new int[n];\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 retu[i] = sc.nextInt(); \n }\n for(int i = 0; i<n; i++) {\n for(int j =0; j<m; j++) {\n ans[i] += matrix[i][j] * retu[j];\n }\n }\n for (int i = 0; i<n; i++) {\n System.out.println(ans[i]);\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[] retu = new int[m];\n int[] ans = new int[n];\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 retu[i] = sc.nextInt(); \n }\n for(int i = 0; i<n; i++) {\n for(int j =0; j<m; j++) {\n ans[i] += matrix[i][j] * retu[j];\n }\n }\n for (int i = 0; i<n; i++) {\n System.out.println(ans[i]);\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[] retu = new int[m];\n int[] ans = new int[n];\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 retu[i] = sc.nextInt(); \n }\n for(int i = 0; i<n; i++) {\n for(int j =0; j<m; j++) {\n ans[i] += matrix[i][j] * retu[j];\n }\n }\n for (int i = 0; i<n; i++) {\n System.out.println(ans[i]);\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[] retu = new int[m];",
"retu",
"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 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 retu[i] = sc.nextInt(); \n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n retu[i] = sc.nextInt(); \n }",
"{\n retu[i] = sc.nextInt(); \n }",
"retu[i] = sc.nextInt()",
"retu[i]",
"retu",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i<n; i++) {\n for(int j =0; j<m; j++) {\n ans[i] += matrix[i][j] * retu[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 ans[i] += matrix[i][j] * retu[j];\n }\n }",
"{\n for(int j =0; j<m; j++) {\n ans[i] += matrix[i][j] * retu[j];\n }\n }",
"for(int j =0; j<m; j++) {\n ans[i] += matrix[i][j] * retu[j];\n }",
"int j =0;",
"int j =0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n ans[i] += matrix[i][j] * retu[j];\n }",
"{\n ans[i] += matrix[i][j] * retu[j];\n }",
"ans[i] += matrix[i][j] * retu[j]",
"ans[i]",
"ans",
"i",
"matrix[i][j] * retu[j]",
"matrix[i][j]",
"matrix[i]",
"matrix",
"i",
"j",
"retu[j]",
"retu",
"j",
"for (int i = 0; i<n; i++) {\n System.out.println(ans[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n System.out.println(ans[i]);\n }",
"{\n System.out.println(ans[i]);\n }",
"System.out.println(ans[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"ans[i]",
"ans",
"i",
"String[] args",
"args"
] | import java.util.*;
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[] retu = new int[m];
int[] ans = new int[n];
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++){
retu[i] = sc.nextInt();
}
for(int i = 0; i<n; i++) {
for(int j =0; j<m; j++) {
ans[i] += matrix[i][j] * retu[j];
}
}
for (int i = 0; i<n; i++) {
System.out.println(ans[i]);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
41,
13,
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,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
146,
8
],
[
146,
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
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
11,
32
],
[
32,
33
],
[
32,
34
],
[
11,
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
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
67,
73
],
[
11,
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
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
86,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
11,
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
],
[
109,
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
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
128,
134
],
[
134,
135
],
[
134,
136
],
[
109,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
9,
143
],
[
143,
144
],
[
0,
145
],
[
145,
146
],
[
145,
147
]
] | [
"import java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main (String args[]) throws IOException {\n \tScanner sc = new Scanner(System.in);\n \tint N = sc.nextInt();\n \tint M = sc.nextInt();\n \tint y;\n\n \tint[][] a = new int[N][M];\n \tint[] c = new int[M] ;\n \t//Arrays.fill(c, \"\");\n\n \tfor(int i=0;i<N;i++){\n \t for(int p=0;p<M;p++){\n \t\t int z = sc.nextInt();\n \t a[i][p] = z;\n \t }\n \t}\n\n for(int p=0;p<M;p++){\n \tint z = sc.nextInt();\n \t c[p] = z;\n \t }\n\n for(int i=0;i<N;i++){\n y =0;\n \t for(int p=0;p<M;p++){\n \t y += a[i][p] * c[p];\n\n \t }\n \t System.out.println(y);\n \t}\n }\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main (String args[]) throws IOException {\n \tScanner sc = new Scanner(System.in);\n \tint N = sc.nextInt();\n \tint M = sc.nextInt();\n \tint y;\n\n \tint[][] a = new int[N][M];\n \tint[] c = new int[M] ;\n \t//Arrays.fill(c, \"\");\n\n \tfor(int i=0;i<N;i++){\n \t for(int p=0;p<M;p++){\n \t\t int z = sc.nextInt();\n \t a[i][p] = z;\n \t }\n \t}\n\n for(int p=0;p<M;p++){\n \tint z = sc.nextInt();\n \t c[p] = z;\n \t }\n\n for(int i=0;i<N;i++){\n y =0;\n \t for(int p=0;p<M;p++){\n \t y += a[i][p] * c[p];\n\n \t }\n \t System.out.println(y);\n \t}\n }\n}",
"Main",
"public static void main (String args[]) throws IOException {\n \tScanner sc = new Scanner(System.in);\n \tint N = sc.nextInt();\n \tint M = sc.nextInt();\n \tint y;\n\n \tint[][] a = new int[N][M];\n \tint[] c = new int[M] ;\n \t//Arrays.fill(c, \"\");\n\n \tfor(int i=0;i<N;i++){\n \t for(int p=0;p<M;p++){\n \t\t int z = sc.nextInt();\n \t a[i][p] = z;\n \t }\n \t}\n\n for(int p=0;p<M;p++){\n \tint z = sc.nextInt();\n \t c[p] = z;\n \t }\n\n for(int i=0;i<N;i++){\n y =0;\n \t for(int p=0;p<M;p++){\n \t y += a[i][p] * c[p];\n\n \t }\n \t System.out.println(y);\n \t}\n }",
"main",
"{\n \tScanner sc = new Scanner(System.in);\n \tint N = sc.nextInt();\n \tint M = sc.nextInt();\n \tint y;\n\n \tint[][] a = new int[N][M];\n \tint[] c = new int[M] ;\n \t//Arrays.fill(c, \"\");\n\n \tfor(int i=0;i<N;i++){\n \t for(int p=0;p<M;p++){\n \t\t int z = sc.nextInt();\n \t a[i][p] = z;\n \t }\n \t}\n\n for(int p=0;p<M;p++){\n \tint z = sc.nextInt();\n \t c[p] = z;\n \t }\n\n for(int i=0;i<N;i++){\n y =0;\n \t for(int p=0;p<M;p++){\n \t y += a[i][p] * c[p];\n\n \t }\n \t System.out.println(y);\n \t}\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 y;",
"y",
"int[][] a = new int[N][M];",
"a",
"new int[N][M]",
"N",
"M",
"int[] c = new int[M] ;",
"c",
"new int[M]",
"M",
"for(int i=0;i<N;i++){\n \t for(int p=0;p<M;p++){\n \t\t int z = sc.nextInt();\n \t a[i][p] = z;\n \t }\n \t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n \t for(int p=0;p<M;p++){\n \t\t int z = sc.nextInt();\n \t a[i][p] = z;\n \t }\n \t}",
"{\n \t for(int p=0;p<M;p++){\n \t\t int z = sc.nextInt();\n \t a[i][p] = z;\n \t }\n \t}",
"for(int p=0;p<M;p++){\n \t\t int z = sc.nextInt();\n \t a[i][p] = z;\n \t }",
"int p=0;",
"int p=0;",
"p",
"0",
"p<M",
"p",
"M",
"p++",
"p++",
"p",
"{\n \t\t int z = sc.nextInt();\n \t a[i][p] = z;\n \t }",
"{\n \t\t int z = sc.nextInt();\n \t a[i][p] = z;\n \t }",
"int z = sc.nextInt();",
"z",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a[i][p] = z",
"a[i][p]",
"a[i]",
"a",
"i",
"p",
"z",
"for(int p=0;p<M;p++){\n \tint z = sc.nextInt();\n \t c[p] = z;\n \t }",
"int p=0;",
"int p=0;",
"p",
"0",
"p<M",
"p",
"M",
"p++",
"p++",
"p",
"{\n \tint z = sc.nextInt();\n \t c[p] = z;\n \t }",
"{\n \tint z = sc.nextInt();\n \t c[p] = z;\n \t }",
"int z = sc.nextInt();",
"z",
"sc.nextInt()",
"sc.nextInt",
"sc",
"c[p] = z",
"c[p]",
"c",
"p",
"z",
"for(int i=0;i<N;i++){\n y =0;\n \t for(int p=0;p<M;p++){\n \t y += a[i][p] * c[p];\n\n \t }\n \t System.out.println(y);\n \t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n y =0;\n \t for(int p=0;p<M;p++){\n \t y += a[i][p] * c[p];\n\n \t }\n \t System.out.println(y);\n \t}",
"{\n y =0;\n \t for(int p=0;p<M;p++){\n \t y += a[i][p] * c[p];\n\n \t }\n \t System.out.println(y);\n \t}",
"y =0",
"y",
"0",
"for(int p=0;p<M;p++){\n \t y += a[i][p] * c[p];\n\n \t }",
"int p=0;",
"int p=0;",
"p",
"0",
"p<M",
"p",
"M",
"p++",
"p++",
"p",
"{\n \t y += a[i][p] * c[p];\n\n \t }",
"{\n \t y += a[i][p] * c[p];\n\n \t }",
"y += a[i][p] * c[p]",
"y",
"a[i][p] * c[p]",
"a[i][p]",
"a[i]",
"a",
"i",
"p",
"c[p]",
"c",
"p",
"System.out.println(y)",
"System.out.println",
"System.out",
"System",
"System.out",
"y",
"String args[]",
"args",
"public class Main {\n public static void main (String args[]) throws IOException {\n \tScanner sc = new Scanner(System.in);\n \tint N = sc.nextInt();\n \tint M = sc.nextInt();\n \tint y;\n\n \tint[][] a = new int[N][M];\n \tint[] c = new int[M] ;\n \t//Arrays.fill(c, \"\");\n\n \tfor(int i=0;i<N;i++){\n \t for(int p=0;p<M;p++){\n \t\t int z = sc.nextInt();\n \t a[i][p] = z;\n \t }\n \t}\n\n for(int p=0;p<M;p++){\n \tint z = sc.nextInt();\n \t c[p] = z;\n \t }\n\n for(int i=0;i<N;i++){\n y =0;\n \t for(int p=0;p<M;p++){\n \t y += a[i][p] * c[p];\n\n \t }\n \t System.out.println(y);\n \t}\n }\n}",
"public class Main {\n public static void main (String args[]) throws IOException {\n \tScanner sc = new Scanner(System.in);\n \tint N = sc.nextInt();\n \tint M = sc.nextInt();\n \tint y;\n\n \tint[][] a = new int[N][M];\n \tint[] c = new int[M] ;\n \t//Arrays.fill(c, \"\");\n\n \tfor(int i=0;i<N;i++){\n \t for(int p=0;p<M;p++){\n \t\t int z = sc.nextInt();\n \t a[i][p] = z;\n \t }\n \t}\n\n for(int p=0;p<M;p++){\n \tint z = sc.nextInt();\n \t c[p] = z;\n \t }\n\n for(int i=0;i<N;i++){\n y =0;\n \t for(int p=0;p<M;p++){\n \t y += a[i][p] * c[p];\n\n \t }\n \t System.out.println(y);\n \t}\n }\n}",
"Main"
] | import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main (String args[]) throws IOException {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int M = sc.nextInt();
int y;
int[][] a = new int[N][M];
int[] c = new int[M] ;
//Arrays.fill(c, "");
for(int i=0;i<N;i++){
for(int p=0;p<M;p++){
int z = sc.nextInt();
a[i][p] = z;
}
}
for(int p=0;p<M;p++){
int z = sc.nextInt();
c[p] = z;
}
for(int i=0;i<N;i++){
y =0;
for(int p=0;p<M;p++){
y += a[i][p] * c[p];
}
System.out.println(y);
}
}
} |
[
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,
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,
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,
4,
13,
13,
13,
13,
13,
23,
13,
12,
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,
18,
13,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
17,
13,
23,
13,
23,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
184,
5
],
[
184,
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
],
[
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
],
[
58,
59
],
[
59,
60
],
[
56,
61
],
[
53,
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
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
75,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
84,
85
],
[
84,
86
],
[
8,
87
],
[
87,
88
],
[
87,
89
],
[
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
],
[
108,
111
],
[
111,
112
],
[
112,
113
],
[
8,
114
],
[
114,
115
],
[
114,
116
],
[
114,
117
],
[
114,
118
],
[
114,
119
],
[
6,
120
],
[
120,
121
],
[
184,
122
],
[
122,
123
],
[
122,
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
],
[
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
],
[
170,
171
],
[
171,
172
],
[
170,
173
],
[
170,
174
],
[
122,
175
],
[
175,
176
],
[
122,
177
],
[
177,
178
],
[
122,
179
],
[
179,
180
],
[
122,
181
],
[
181,
182
],
[
0,
183
],
[
183,
184
],
[
183,
185
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n \n public static void main (String... args) {\n \n Scanner scanner = new Scanner(System.in);\n \n String[] nm = scanner.nextLine().split(\" \");\n int n = Integer.parseInt(nm[0]);\n int m = Integer.parseInt(nm[1]);\n \n int[][] matrixA = new int[n][m];\n for (int i = 0; i < n; i++) {\n String[] line = scanner.nextLine().split(\" \");\n \n for (int j = 0; j < m; j++) {\n matrixA[i][j] = Integer.parseInt(line[j]);\n }\n }\n \n int[] matrixB = new int[m];\n for (int i = 0; i < m; i++) {\n matrixB[i] = Integer.parseInt(scanner.nextLine());\n }\n \n calcMatrix(matrixA, matrixB, n, m);\n }\n \n private static void calcMatrix(int[][] a, int[] b, int n, int m) {\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(String.format(\"%d\", sum));\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n \n public static void main (String... args) {\n \n Scanner scanner = new Scanner(System.in);\n \n String[] nm = scanner.nextLine().split(\" \");\n int n = Integer.parseInt(nm[0]);\n int m = Integer.parseInt(nm[1]);\n \n int[][] matrixA = new int[n][m];\n for (int i = 0; i < n; i++) {\n String[] line = scanner.nextLine().split(\" \");\n \n for (int j = 0; j < m; j++) {\n matrixA[i][j] = Integer.parseInt(line[j]);\n }\n }\n \n int[] matrixB = new int[m];\n for (int i = 0; i < m; i++) {\n matrixB[i] = Integer.parseInt(scanner.nextLine());\n }\n \n calcMatrix(matrixA, matrixB, n, m);\n }\n \n private static void calcMatrix(int[][] a, int[] b, int n, int m) {\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(String.format(\"%d\", sum));\n }\n }\n}",
"Main",
"public static void main (String... args) {\n \n Scanner scanner = new Scanner(System.in);\n \n String[] nm = scanner.nextLine().split(\" \");\n int n = Integer.parseInt(nm[0]);\n int m = Integer.parseInt(nm[1]);\n \n int[][] matrixA = new int[n][m];\n for (int i = 0; i < n; i++) {\n String[] line = scanner.nextLine().split(\" \");\n \n for (int j = 0; j < m; j++) {\n matrixA[i][j] = Integer.parseInt(line[j]);\n }\n }\n \n int[] matrixB = new int[m];\n for (int i = 0; i < m; i++) {\n matrixB[i] = Integer.parseInt(scanner.nextLine());\n }\n \n calcMatrix(matrixA, matrixB, n, m);\n }",
"main",
"{\n \n Scanner scanner = new Scanner(System.in);\n \n String[] nm = scanner.nextLine().split(\" \");\n int n = Integer.parseInt(nm[0]);\n int m = Integer.parseInt(nm[1]);\n \n int[][] matrixA = new int[n][m];\n for (int i = 0; i < n; i++) {\n String[] line = scanner.nextLine().split(\" \");\n \n for (int j = 0; j < m; j++) {\n matrixA[i][j] = Integer.parseInt(line[j]);\n }\n }\n \n int[] matrixB = new int[m];\n for (int i = 0; i < m; i++) {\n matrixB[i] = Integer.parseInt(scanner.nextLine());\n }\n \n calcMatrix(matrixA, matrixB, n, m);\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"String[] nm = scanner.nextLine().split(\" \");",
"nm",
"scanner.nextLine().split(\" \")",
"scanner.nextLine().split",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"\" \"",
"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[][] matrixA = new int[n][m];",
"matrixA",
"new int[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++) {\n String[] line = scanner.nextLine().split(\" \");\n \n for (int j = 0; j < m; j++) {\n matrixA[i][j] = Integer.parseInt(line[j]);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String[] line = scanner.nextLine().split(\" \");\n \n for (int j = 0; j < m; j++) {\n matrixA[i][j] = Integer.parseInt(line[j]);\n }\n }",
"{\n String[] line = scanner.nextLine().split(\" \");\n \n for (int j = 0; j < m; j++) {\n matrixA[i][j] = Integer.parseInt(line[j]);\n }\n }",
"String[] line = scanner.nextLine().split(\" \");",
"line",
"scanner.nextLine().split(\" \")",
"scanner.nextLine().split",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"\" \"",
"for (int j = 0; j < m; j++) {\n matrixA[i][j] = Integer.parseInt(line[j]);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n matrixA[i][j] = Integer.parseInt(line[j]);\n }",
"{\n matrixA[i][j] = Integer.parseInt(line[j]);\n }",
"matrixA[i][j] = Integer.parseInt(line[j])",
"matrixA[i][j]",
"matrixA[i]",
"matrixA",
"i",
"j",
"Integer.parseInt(line[j])",
"Integer.parseInt",
"Integer",
"line[j]",
"line",
"j",
"int[] matrixB = new int[m];",
"matrixB",
"new int[m]",
"m",
"for (int i = 0; i < m; i++) {\n matrixB[i] = Integer.parseInt(scanner.nextLine());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n matrixB[i] = Integer.parseInt(scanner.nextLine());\n }",
"{\n matrixB[i] = Integer.parseInt(scanner.nextLine());\n }",
"matrixB[i] = Integer.parseInt(scanner.nextLine())",
"matrixB[i]",
"matrixB",
"i",
"Integer.parseInt(scanner.nextLine())",
"Integer.parseInt",
"Integer",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"calcMatrix(matrixA, matrixB, n, m)",
"calcMatrix",
"matrixA",
"matrixB",
"n",
"m",
"String... args",
"args",
"private static void calcMatrix(int[][] a, int[] b, int n, int m) {\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(String.format(\"%d\", sum));\n }\n }",
"calcMatrix",
"{\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(String.format(\"%d\", sum));\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(String.format(\"%d\", 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(String.format(\"%d\", 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(String.format(\"%d\", 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(String.format(\"%d\", sum))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.format(\"%d\", sum)",
"String.format",
"String",
"\"%d\"",
"sum",
"int[][] a",
"a",
"int[] b",
"b",
"int n",
"n",
"int m",
"m",
"public class Main {\n \n public static void main (String... args) {\n \n Scanner scanner = new Scanner(System.in);\n \n String[] nm = scanner.nextLine().split(\" \");\n int n = Integer.parseInt(nm[0]);\n int m = Integer.parseInt(nm[1]);\n \n int[][] matrixA = new int[n][m];\n for (int i = 0; i < n; i++) {\n String[] line = scanner.nextLine().split(\" \");\n \n for (int j = 0; j < m; j++) {\n matrixA[i][j] = Integer.parseInt(line[j]);\n }\n }\n \n int[] matrixB = new int[m];\n for (int i = 0; i < m; i++) {\n matrixB[i] = Integer.parseInt(scanner.nextLine());\n }\n \n calcMatrix(matrixA, matrixB, n, m);\n }\n \n private static void calcMatrix(int[][] a, int[] b, int n, int m) {\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(String.format(\"%d\", sum));\n }\n }\n}",
"public class Main {\n \n public static void main (String... args) {\n \n Scanner scanner = new Scanner(System.in);\n \n String[] nm = scanner.nextLine().split(\" \");\n int n = Integer.parseInt(nm[0]);\n int m = Integer.parseInt(nm[1]);\n \n int[][] matrixA = new int[n][m];\n for (int i = 0; i < n; i++) {\n String[] line = scanner.nextLine().split(\" \");\n \n for (int j = 0; j < m; j++) {\n matrixA[i][j] = Integer.parseInt(line[j]);\n }\n }\n \n int[] matrixB = new int[m];\n for (int i = 0; i < m; i++) {\n matrixB[i] = Integer.parseInt(scanner.nextLine());\n }\n \n calcMatrix(matrixA, matrixB, n, m);\n }\n \n private static void calcMatrix(int[][] a, int[] b, int n, int m) {\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(String.format(\"%d\", sum));\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main (String... args) {
Scanner scanner = new Scanner(System.in);
String[] nm = scanner.nextLine().split(" ");
int n = Integer.parseInt(nm[0]);
int m = Integer.parseInt(nm[1]);
int[][] matrixA = new int[n][m];
for (int i = 0; i < n; i++) {
String[] line = scanner.nextLine().split(" ");
for (int j = 0; j < m; j++) {
matrixA[i][j] = Integer.parseInt(line[j]);
}
}
int[] matrixB = new int[m];
for (int i = 0; i < m; i++) {
matrixB[i] = Integer.parseInt(scanner.nextLine());
}
calcMatrix(matrixA, matrixB, n, m);
}
private static void calcMatrix(int[][] a, int[] b, int n, int m) {
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(String.format("%d", sum));
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
20,
13,
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,
17,
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,
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
],
[
8,
14
],
[
14,
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,
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
],
[
105,
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
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
124,
130
],
[
130,
131
],
[
130,
132
],
[
105,
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 public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n int maxrow, maxcol;\n\n maxrow = scanner.nextInt();\n maxcol = scanner.nextInt();\n\n int[][] a = new int[maxrow][maxcol];\n\n for(int i = 0; i < maxrow; i++){\n for(int ii = 0; ii < maxcol; ii++){\n a[i][ii] = scanner.nextInt();\n }\n }\n\n int[] b = new int[maxcol];\n\n for(int i = 0; i < maxcol; i++){\n b[i] = scanner.nextInt();\n }\n\n int sum = 0;\n for(int row = 0; row < maxrow; row++){\n sum = 0;\n for(int col = 0; col < maxcol; col++){\n sum += (a[row][col] * b[col]);\n }\n System.out.println(sum);\n }\n\n scanner.close();\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n int maxrow, maxcol;\n\n maxrow = scanner.nextInt();\n maxcol = scanner.nextInt();\n\n int[][] a = new int[maxrow][maxcol];\n\n for(int i = 0; i < maxrow; i++){\n for(int ii = 0; ii < maxcol; ii++){\n a[i][ii] = scanner.nextInt();\n }\n }\n\n int[] b = new int[maxcol];\n\n for(int i = 0; i < maxcol; i++){\n b[i] = scanner.nextInt();\n }\n\n int sum = 0;\n for(int row = 0; row < maxrow; row++){\n sum = 0;\n for(int col = 0; col < maxcol; col++){\n sum += (a[row][col] * b[col]);\n }\n System.out.println(sum);\n }\n\n scanner.close();\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n int maxrow, maxcol;\n\n maxrow = scanner.nextInt();\n maxcol = scanner.nextInt();\n\n int[][] a = new int[maxrow][maxcol];\n\n for(int i = 0; i < maxrow; i++){\n for(int ii = 0; ii < maxcol; ii++){\n a[i][ii] = scanner.nextInt();\n }\n }\n\n int[] b = new int[maxcol];\n\n for(int i = 0; i < maxcol; i++){\n b[i] = scanner.nextInt();\n }\n\n int sum = 0;\n for(int row = 0; row < maxrow; row++){\n sum = 0;\n for(int col = 0; col < maxcol; col++){\n sum += (a[row][col] * b[col]);\n }\n System.out.println(sum);\n }\n\n scanner.close();\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n\n int maxrow, maxcol;\n\n maxrow = scanner.nextInt();\n maxcol = scanner.nextInt();\n\n int[][] a = new int[maxrow][maxcol];\n\n for(int i = 0; i < maxrow; i++){\n for(int ii = 0; ii < maxcol; ii++){\n a[i][ii] = scanner.nextInt();\n }\n }\n\n int[] b = new int[maxcol];\n\n for(int i = 0; i < maxcol; i++){\n b[i] = scanner.nextInt();\n }\n\n int sum = 0;\n for(int row = 0; row < maxrow; row++){\n sum = 0;\n for(int col = 0; col < maxcol; col++){\n sum += (a[row][col] * b[col]);\n }\n System.out.println(sum);\n }\n\n scanner.close();\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int maxrow",
"maxrow",
"maxcol;",
"maxcol",
"maxrow = scanner.nextInt()",
"maxrow",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"maxcol = scanner.nextInt()",
"maxcol",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int[][] a = new int[maxrow][maxcol];",
"a",
"new int[maxrow][maxcol]",
"maxrow",
"maxcol",
"for(int i = 0; i < maxrow; i++){\n for(int ii = 0; ii < maxcol; ii++){\n a[i][ii] = scanner.nextInt();\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < maxrow",
"i",
"maxrow",
"i++",
"i++",
"i",
"{\n for(int ii = 0; ii < maxcol; ii++){\n a[i][ii] = scanner.nextInt();\n }\n }",
"{\n for(int ii = 0; ii < maxcol; ii++){\n a[i][ii] = scanner.nextInt();\n }\n }",
"for(int ii = 0; ii < maxcol; ii++){\n a[i][ii] = scanner.nextInt();\n }",
"int ii = 0;",
"int ii = 0;",
"ii",
"0",
"ii < maxcol",
"ii",
"maxcol",
"ii++",
"ii++",
"ii",
"{\n a[i][ii] = scanner.nextInt();\n }",
"{\n a[i][ii] = scanner.nextInt();\n }",
"a[i][ii] = scanner.nextInt()",
"a[i][ii]",
"a[i]",
"a",
"i",
"ii",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int[] b = new int[maxcol];",
"b",
"new int[maxcol]",
"maxcol",
"for(int i = 0; i < maxcol; i++){\n b[i] = scanner.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < maxcol",
"i",
"maxcol",
"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",
"int sum = 0;",
"sum",
"0",
"for(int row = 0; row < maxrow; row++){\n sum = 0;\n for(int col = 0; col < maxcol; col++){\n sum += (a[row][col] * b[col]);\n }\n System.out.println(sum);\n }",
"int row = 0;",
"int row = 0;",
"row",
"0",
"row < maxrow",
"row",
"maxrow",
"row++",
"row++",
"row",
"{\n sum = 0;\n for(int col = 0; col < maxcol; col++){\n sum += (a[row][col] * b[col]);\n }\n System.out.println(sum);\n }",
"{\n sum = 0;\n for(int col = 0; col < maxcol; col++){\n sum += (a[row][col] * b[col]);\n }\n System.out.println(sum);\n }",
"sum = 0",
"sum",
"0",
"for(int col = 0; col < maxcol; col++){\n sum += (a[row][col] * b[col]);\n }",
"int col = 0;",
"int col = 0;",
"col",
"0",
"col < maxcol",
"col",
"maxcol",
"col++",
"col++",
"col",
"{\n sum += (a[row][col] * b[col]);\n }",
"{\n sum += (a[row][col] * b[col]);\n }",
"sum += (a[row][col] * b[col])",
"sum",
"(a[row][col] * b[col])",
"a[row][col]",
"a[row]",
"a",
"row",
"col",
"b[col]",
"b",
"col",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"scanner.close()",
"scanner.close",
"scanner",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n int maxrow, maxcol;\n\n maxrow = scanner.nextInt();\n maxcol = scanner.nextInt();\n\n int[][] a = new int[maxrow][maxcol];\n\n for(int i = 0; i < maxrow; i++){\n for(int ii = 0; ii < maxcol; ii++){\n a[i][ii] = scanner.nextInt();\n }\n }\n\n int[] b = new int[maxcol];\n\n for(int i = 0; i < maxcol; i++){\n b[i] = scanner.nextInt();\n }\n\n int sum = 0;\n for(int row = 0; row < maxrow; row++){\n sum = 0;\n for(int col = 0; col < maxcol; col++){\n sum += (a[row][col] * b[col]);\n }\n System.out.println(sum);\n }\n\n scanner.close();\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n int maxrow, maxcol;\n\n maxrow = scanner.nextInt();\n maxcol = scanner.nextInt();\n\n int[][] a = new int[maxrow][maxcol];\n\n for(int i = 0; i < maxrow; i++){\n for(int ii = 0; ii < maxcol; ii++){\n a[i][ii] = scanner.nextInt();\n }\n }\n\n int[] b = new int[maxcol];\n\n for(int i = 0; i < maxcol; i++){\n b[i] = scanner.nextInt();\n }\n\n int sum = 0;\n for(int row = 0; row < maxrow; row++){\n sum = 0;\n for(int col = 0; col < maxcol; col++){\n sum += (a[row][col] * b[col]);\n }\n System.out.println(sum);\n }\n\n scanner.close();\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int maxrow, maxcol;
maxrow = scanner.nextInt();
maxcol = scanner.nextInt();
int[][] a = new int[maxrow][maxcol];
for(int i = 0; i < maxrow; i++){
for(int ii = 0; ii < maxcol; ii++){
a[i][ii] = scanner.nextInt();
}
}
int[] b = new int[maxcol];
for(int i = 0; i < maxcol; i++){
b[i] = scanner.nextInt();
}
int sum = 0;
for(int row = 0; row < maxrow; row++){
sum = 0;
for(int col = 0; col < maxcol; col++){
sum += (a[row][col] * b[col]);
}
System.out.println(sum);
}
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,
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,
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,
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,
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,
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
],
[
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
],
[
44,
46
],
[
8,
48
],
[
48,
49
],
[
48,
50
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
52,
62
],
[
62,
63
],
[
63,
64
],
[
52,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
67,
79
],
[
79,
80
],
[
80,
81
],
[
67,
82
],
[
83,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
84,
90
],
[
90,
91
],
[
91,
92
],
[
8,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
93,
103
],
[
103,
104
],
[
104,
105
],
[
93,
106
],
[
107,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
112,
113
],
[
113,
114
],
[
8,
115
],
[
115,
116
],
[
116,
117
],
[
8,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
125,
127
],
[
118,
128
],
[
128,
129
],
[
129,
130
],
[
118,
131
],
[
132,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
133,
145
],
[
145,
146
],
[
146,
147
],
[
133,
148
],
[
149,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
154,
160
],
[
160,
161
],
[
160,
162
],
[
8,
163
],
[
163,
164
],
[
163,
165
],
[
163,
166
],
[
167,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
6,
174
],
[
174,
175
],
[
0,
176
],
[
176,
177
],
[
176,
178
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\t/*\n\t * ๏ผ่ก็ฎใซ n ใจ m ใ็ฉบ็ฝๅบๅใใงไธใใใใพใใ\n\t * ็ถใ n ่กใซ่กๅ A ใฎ่ฆ็ด aij ใ็ฉบ็ฝๅบๅใใงไธใใใใพใใ\n\t * ็ถใ m ่กใซใใฏใใซ b\n\t * ใฎ่ฆ็ด bi ใใใใใ๏ผ่กใซไธใใใใพใใ\n\t */\n\n\t/*\n\t * ci=?j=1maijbj = ai1b1+ai2b2+...+aimbm\n\t */\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString line = sc.nextLine();\n\t\tString[] lineArray = line.split(\"[\\\\s]+\");\n\n\t\tint n = Integer.parseInt(lineArray[0]);\n\t\tint m = Integer.parseInt(lineArray[1]);\n\n\t\tint[][] array = new int[n][m];\n\t\tint[] vector = new int [m];\n\t\tlong[] c = new long[n];\n\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tfor (int j = 0; j < array[i].length; j++) {\n\t\t\t\tarray[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < vector.length; i++) {\n\t\t\tvector[i] = sc.nextInt();\n\t\t}\n\n\t\tsc.close();\n\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tfor (int j = 0; j < array[i].length; j++) {\n\t\t\t\tc[i] += array[i][j] * vector[j]; \n\t\t\t}\n\t\t}\n\n\t\tfor (long l : c) {\n\t\t\tSystem.out.println(l);\n\t\t}\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\t/*\n\t * ๏ผ่ก็ฎใซ n ใจ m ใ็ฉบ็ฝๅบๅใใงไธใใใใพใใ\n\t * ็ถใ n ่กใซ่กๅ A ใฎ่ฆ็ด aij ใ็ฉบ็ฝๅบๅใใงไธใใใใพใใ\n\t * ็ถใ m ่กใซใใฏใใซ b\n\t * ใฎ่ฆ็ด bi ใใใใใ๏ผ่กใซไธใใใใพใใ\n\t */\n\n\t/*\n\t * ci=?j=1maijbj = ai1b1+ai2b2+...+aimbm\n\t */\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString line = sc.nextLine();\n\t\tString[] lineArray = line.split(\"[\\\\s]+\");\n\n\t\tint n = Integer.parseInt(lineArray[0]);\n\t\tint m = Integer.parseInt(lineArray[1]);\n\n\t\tint[][] array = new int[n][m];\n\t\tint[] vector = new int [m];\n\t\tlong[] c = new long[n];\n\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tfor (int j = 0; j < array[i].length; j++) {\n\t\t\t\tarray[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < vector.length; i++) {\n\t\t\tvector[i] = sc.nextInt();\n\t\t}\n\n\t\tsc.close();\n\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tfor (int j = 0; j < array[i].length; j++) {\n\t\t\t\tc[i] += array[i][j] * vector[j]; \n\t\t\t}\n\t\t}\n\n\t\tfor (long l : c) {\n\t\t\tSystem.out.println(l);\n\t\t}\n\n\t}\n\n}",
"Main",
"/*\n\t * ci=?j=1maijbj = ai1b1+ai2b2+...+aimbm\n\t */\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString line = sc.nextLine();\n\t\tString[] lineArray = line.split(\"[\\\\s]+\");\n\n\t\tint n = Integer.parseInt(lineArray[0]);\n\t\tint m = Integer.parseInt(lineArray[1]);\n\n\t\tint[][] array = new int[n][m];\n\t\tint[] vector = new int [m];\n\t\tlong[] c = new long[n];\n\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tfor (int j = 0; j < array[i].length; j++) {\n\t\t\t\tarray[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < vector.length; i++) {\n\t\t\tvector[i] = sc.nextInt();\n\t\t}\n\n\t\tsc.close();\n\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tfor (int j = 0; j < array[i].length; j++) {\n\t\t\t\tc[i] += array[i][j] * vector[j]; \n\t\t\t}\n\t\t}\n\n\t\tfor (long l : c) {\n\t\t\tSystem.out.println(l);\n\t\t}\n\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString line = sc.nextLine();\n\t\tString[] lineArray = line.split(\"[\\\\s]+\");\n\n\t\tint n = Integer.parseInt(lineArray[0]);\n\t\tint m = Integer.parseInt(lineArray[1]);\n\n\t\tint[][] array = new int[n][m];\n\t\tint[] vector = new int [m];\n\t\tlong[] c = new long[n];\n\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tfor (int j = 0; j < array[i].length; j++) {\n\t\t\t\tarray[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < vector.length; i++) {\n\t\t\tvector[i] = sc.nextInt();\n\t\t}\n\n\t\tsc.close();\n\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tfor (int j = 0; j < array[i].length; j++) {\n\t\t\t\tc[i] += array[i][j] * vector[j]; \n\t\t\t}\n\t\t}\n\n\t\tfor (long l : c) {\n\t\t\tSystem.out.println(l);\n\t\t}\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line = sc.nextLine();",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] lineArray = line.split(\"[\\\\s]+\");",
"lineArray",
"line.split(\"[\\\\s]+\")",
"line.split",
"line",
"\"[\\\\s]+\"",
"int n = Integer.parseInt(lineArray[0]);",
"n",
"Integer.parseInt(lineArray[0])",
"Integer.parseInt",
"Integer",
"lineArray[0]",
"lineArray",
"0",
"int m = Integer.parseInt(lineArray[1]);",
"m",
"Integer.parseInt(lineArray[1])",
"Integer.parseInt",
"Integer",
"lineArray[1]",
"lineArray",
"1",
"int[][] array = new int[n][m];",
"array",
"new int[n][m]",
"n",
"m",
"int[] vector = new int [m];",
"vector",
"new int [m]",
"m",
"long[] c = new long[n];",
"c",
"new long[n]",
"n",
"for (int i = 0; i < array.length; i++) {\n\t\t\tfor (int j = 0; j < array[i].length; j++) {\n\t\t\t\tarray[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < array.length",
"i",
"array.length",
"array",
"array.length",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < array[i].length; j++) {\n\t\t\t\tarray[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < array[i].length; j++) {\n\t\t\t\tarray[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for (int j = 0; j < array[i].length; j++) {\n\t\t\t\tarray[i][j] = sc.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < array[i].length",
"j",
"array[i].length",
"array[i]",
"array",
"i",
"array[i].length",
"j++",
"j++",
"j",
"{\n\t\t\t\tarray[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tarray[i][j] = sc.nextInt();\n\t\t\t}",
"array[i][j] = sc.nextInt()",
"array[i][j]",
"array[i]",
"array",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < vector.length; i++) {\n\t\t\tvector[i] = sc.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < vector.length",
"i",
"vector.length",
"vector",
"vector.length",
"i++",
"i++",
"i",
"{\n\t\t\tvector[i] = sc.nextInt();\n\t\t}",
"{\n\t\t\tvector[i] = sc.nextInt();\n\t\t}",
"vector[i] = sc.nextInt()",
"vector[i]",
"vector",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"for (int i = 0; i < array.length; i++) {\n\t\t\tfor (int j = 0; j < array[i].length; j++) {\n\t\t\t\tc[i] += array[i][j] * vector[j]; \n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < array.length",
"i",
"array.length",
"array",
"array.length",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < array[i].length; j++) {\n\t\t\t\tc[i] += array[i][j] * vector[j]; \n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < array[i].length; j++) {\n\t\t\t\tc[i] += array[i][j] * vector[j]; \n\t\t\t}\n\t\t}",
"for (int j = 0; j < array[i].length; j++) {\n\t\t\t\tc[i] += array[i][j] * vector[j]; \n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < array[i].length",
"j",
"array[i].length",
"array[i]",
"array",
"i",
"array[i].length",
"j++",
"j++",
"j",
"{\n\t\t\t\tc[i] += array[i][j] * vector[j]; \n\t\t\t}",
"{\n\t\t\t\tc[i] += array[i][j] * vector[j]; \n\t\t\t}",
"c[i] += array[i][j] * vector[j]",
"c[i]",
"c",
"i",
"array[i][j] * vector[j]",
"array[i][j]",
"array[i]",
"array",
"i",
"j",
"vector[j]",
"vector",
"j",
"for (long l : c) {\n\t\t\tSystem.out.println(l);\n\t\t}",
"long l",
"c",
"{\n\t\t\tSystem.out.println(l);\n\t\t}",
"{\n\t\t\tSystem.out.println(l);\n\t\t}",
"System.out.println(l)",
"System.out.println",
"System.out",
"System",
"System.out",
"l",
"String[] args",
"args",
"public class Main {\n\n\t/*\n\t * ๏ผ่ก็ฎใซ n ใจ m ใ็ฉบ็ฝๅบๅใใงไธใใใใพใใ\n\t * ็ถใ n ่กใซ่กๅ A ใฎ่ฆ็ด aij ใ็ฉบ็ฝๅบๅใใงไธใใใใพใใ\n\t * ็ถใ m ่กใซใใฏใใซ b\n\t * ใฎ่ฆ็ด bi ใใใใใ๏ผ่กใซไธใใใใพใใ\n\t */\n\n\t/*\n\t * ci=?j=1maijbj = ai1b1+ai2b2+...+aimbm\n\t */\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString line = sc.nextLine();\n\t\tString[] lineArray = line.split(\"[\\\\s]+\");\n\n\t\tint n = Integer.parseInt(lineArray[0]);\n\t\tint m = Integer.parseInt(lineArray[1]);\n\n\t\tint[][] array = new int[n][m];\n\t\tint[] vector = new int [m];\n\t\tlong[] c = new long[n];\n\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tfor (int j = 0; j < array[i].length; j++) {\n\t\t\t\tarray[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < vector.length; i++) {\n\t\t\tvector[i] = sc.nextInt();\n\t\t}\n\n\t\tsc.close();\n\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tfor (int j = 0; j < array[i].length; j++) {\n\t\t\t\tc[i] += array[i][j] * vector[j]; \n\t\t\t}\n\t\t}\n\n\t\tfor (long l : c) {\n\t\t\tSystem.out.println(l);\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\n\t/*\n\t * ๏ผ่ก็ฎใซ n ใจ m ใ็ฉบ็ฝๅบๅใใงไธใใใใพใใ\n\t * ็ถใ n ่กใซ่กๅ A ใฎ่ฆ็ด aij ใ็ฉบ็ฝๅบๅใใงไธใใใใพใใ\n\t * ็ถใ m ่กใซใใฏใใซ b\n\t * ใฎ่ฆ็ด bi ใใใใใ๏ผ่กใซไธใใใใพใใ\n\t */\n\n\t/*\n\t * ci=?j=1maijbj = ai1b1+ai2b2+...+aimbm\n\t */\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString line = sc.nextLine();\n\t\tString[] lineArray = line.split(\"[\\\\s]+\");\n\n\t\tint n = Integer.parseInt(lineArray[0]);\n\t\tint m = Integer.parseInt(lineArray[1]);\n\n\t\tint[][] array = new int[n][m];\n\t\tint[] vector = new int [m];\n\t\tlong[] c = new long[n];\n\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tfor (int j = 0; j < array[i].length; j++) {\n\t\t\t\tarray[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < vector.length; i++) {\n\t\t\tvector[i] = sc.nextInt();\n\t\t}\n\n\t\tsc.close();\n\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tfor (int j = 0; j < array[i].length; j++) {\n\t\t\t\tc[i] += array[i][j] * vector[j]; \n\t\t\t}\n\t\t}\n\n\t\tfor (long l : c) {\n\t\t\tSystem.out.println(l);\n\t\t}\n\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
/*
* ๏ผ่ก็ฎใซ n ใจ m ใ็ฉบ็ฝๅบๅใใงไธใใใใพใใ
* ็ถใ n ่กใซ่กๅ A ใฎ่ฆ็ด aij ใ็ฉบ็ฝๅบๅใใงไธใใใใพใใ
* ็ถใ m ่กใซใใฏใใซ b
* ใฎ่ฆ็ด bi ใใใใใ๏ผ่กใซไธใใใใพใใ
*/
/*
* ci=?j=1maijbj = ai1b1+ai2b2+...+aimbm
*/
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
String[] lineArray = line.split("[\\s]+");
int n = Integer.parseInt(lineArray[0]);
int m = Integer.parseInt(lineArray[1]);
int[][] array = new int[n][m];
int[] vector = new int [m];
long[] c = new long[n];
for (int i = 0; i < array.length; i++) {
for (int j = 0; j < array[i].length; j++) {
array[i][j] = sc.nextInt();
}
}
for (int i = 0; i < vector.length; i++) {
vector[i] = sc.nextInt();
}
sc.close();
for (int i = 0; i < array.length; i++) {
for (int j = 0; j < array[i].length; j++) {
c[i] += array[i][j] * vector[j];
}
}
for (long l : c) {
System.out.println(l);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
20,
13,
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,
13,
4,
18,
13,
0,
18,
18,
13,
13,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
18,
13,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
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
] | [
[
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
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
8,
34
],
[
34,
35
],
[
34,
36
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
8,
43
],
[
43,
44
],
[
43,
45
],
[
8,
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
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
72,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
78,
84
],
[
8,
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
],
[
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
],
[
122,
124
],
[
121,
125
],
[
120,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
126,
134
],
[
134,
135
],
[
135,
136
],
[
126,
137
],
[
138,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
143,
149
],
[
149,
150
],
[
149,
151
],
[
8,
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
],
[
167,
168
],
[
167,
169
],
[
165,
170
],
[
170,
171
],
[
170,
172
],
[
6,
173
],
[
173,
174
]
] | [
"import java.util.*;\nclass Main{\n public static void main(String[] args){\n Scanner input=new Scanner(System.in);\n int n,m,i,j,h,k;\n n = input.nextInt();\n\t\tm = input.nextInt();\n int[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tint[] c = new int[n];\n\t\tfor(i=0;i<n;i++) {\n for (j=0;j<m;j++){\n h=input.nextInt();\n a[i][j]=h;\n }\n\t\t}\n for(j=0;j<m;j++){\n k=input.nextInt();\n b[j]=k;\n }\n for (i=0;i<n;i++) {\n c[i]=0;\n for(j=0;j<m;j++){\n c[i]+=a[i][j]*b[j];\n }\n }\n for (i=0;i<n;i++){\n System.out.println(c[i]);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[] args){\n Scanner input=new Scanner(System.in);\n int n,m,i,j,h,k;\n n = input.nextInt();\n\t\tm = input.nextInt();\n int[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tint[] c = new int[n];\n\t\tfor(i=0;i<n;i++) {\n for (j=0;j<m;j++){\n h=input.nextInt();\n a[i][j]=h;\n }\n\t\t}\n for(j=0;j<m;j++){\n k=input.nextInt();\n b[j]=k;\n }\n for (i=0;i<n;i++) {\n c[i]=0;\n for(j=0;j<m;j++){\n c[i]+=a[i][j]*b[j];\n }\n }\n for (i=0;i<n;i++){\n System.out.println(c[i]);\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner input=new Scanner(System.in);\n int n,m,i,j,h,k;\n n = input.nextInt();\n\t\tm = input.nextInt();\n int[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tint[] c = new int[n];\n\t\tfor(i=0;i<n;i++) {\n for (j=0;j<m;j++){\n h=input.nextInt();\n a[i][j]=h;\n }\n\t\t}\n for(j=0;j<m;j++){\n k=input.nextInt();\n b[j]=k;\n }\n for (i=0;i<n;i++) {\n c[i]=0;\n for(j=0;j<m;j++){\n c[i]+=a[i][j]*b[j];\n }\n }\n for (i=0;i<n;i++){\n System.out.println(c[i]);\n }\n }",
"main",
"{\n Scanner input=new Scanner(System.in);\n int n,m,i,j,h,k;\n n = input.nextInt();\n\t\tm = input.nextInt();\n int[][] a = new int[n][m];\n\t\tint[] b = new int[m];\n\t\tint[] c = new int[n];\n\t\tfor(i=0;i<n;i++) {\n for (j=0;j<m;j++){\n h=input.nextInt();\n a[i][j]=h;\n }\n\t\t}\n for(j=0;j<m;j++){\n k=input.nextInt();\n b[j]=k;\n }\n for (i=0;i<n;i++) {\n c[i]=0;\n for(j=0;j<m;j++){\n c[i]+=a[i][j]*b[j];\n }\n }\n for (i=0;i<n;i++){\n System.out.println(c[i]);\n }\n }",
"Scanner input=new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"int n",
"n",
"m",
"m",
"i",
"i",
"j",
"j",
"h",
"h",
"k;",
"k",
"n = input.nextInt()",
"n",
"input.nextInt()",
"input.nextInt",
"input",
"m = input.nextInt()",
"m",
"input.nextInt()",
"input.nextInt",
"input",
"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 for (j=0;j<m;j++){\n h=input.nextInt();\n a[i][j]=h;\n }\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (j=0;j<m;j++){\n h=input.nextInt();\n a[i][j]=h;\n }\n\t\t}",
"{\n for (j=0;j<m;j++){\n h=input.nextInt();\n a[i][j]=h;\n }\n\t\t}",
"for (j=0;j<m;j++){\n h=input.nextInt();\n a[i][j]=h;\n }",
"j=0;",
"j=0",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n h=input.nextInt();\n a[i][j]=h;\n }",
"{\n h=input.nextInt();\n a[i][j]=h;\n }",
"h=input.nextInt()",
"h",
"input.nextInt()",
"input.nextInt",
"input",
"a[i][j]=h",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"h",
"for(j=0;j<m;j++){\n k=input.nextInt();\n b[j]=k;\n }",
"j=0;",
"j=0",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n k=input.nextInt();\n b[j]=k;\n }",
"{\n k=input.nextInt();\n b[j]=k;\n }",
"k=input.nextInt()",
"k",
"input.nextInt()",
"input.nextInt",
"input",
"b[j]=k",
"b[j]",
"b",
"j",
"k",
"for (i=0;i<n;i++) {\n c[i]=0;\n for(j=0;j<m;j++){\n c[i]+=a[i][j]*b[j];\n }\n }",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n c[i]=0;\n for(j=0;j<m;j++){\n c[i]+=a[i][j]*b[j];\n }\n }",
"{\n c[i]=0;\n for(j=0;j<m;j++){\n c[i]+=a[i][j]*b[j];\n }\n }",
"c[i]=0",
"c[i]",
"c",
"i",
"0",
"for(j=0;j<m;j++){\n c[i]+=a[i][j]*b[j];\n }",
"j=0;",
"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 (i=0;i<n;i++){\n System.out.println(c[i]);\n }",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"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"
] | import java.util.*;
class Main{
public static void main(String[] args){
Scanner input=new Scanner(System.in);
int n,m,i,j,h,k;
n = input.nextInt();
m = input.nextInt();
int[][] a = new int[n][m];
int[] b = new int[m];
int[] c = new int[n];
for(i=0;i<n;i++) {
for (j=0;j<m;j++){
h=input.nextInt();
a[i][j]=h;
}
}
for(j=0;j<m;j++){
k=input.nextInt();
b[j]=k;
}
for (i=0;i<n;i++) {
c[i]=0;
for(j=0;j<m;j++){
c[i]+=a[i][j]*b[j];
}
}
for (i=0;i<n;i++){
System.out.println(c[i]);
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.