node_ids
listlengths 4
1.4k
| edge_index
listlengths 1
2.22k
| text
listlengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
13,
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,
0,
18,
13,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
4,
18,
13,
17,
41,
13,
20,
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,
14,
2,
18,
18,
13,
13,
13,
17,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
18,
13,
13,
13,
14,
2,
18,
18,
13,
13,
13,
17,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
18,
13,
13,
13,
0,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
4,
18,
13,
13,
14,
2,
13,
2,
13,
17,
4,
18,
13,
17,
4,
18,
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
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
8,
49
],
[
49,
50
],
[
49,
51
],
[
8,
54
],
[
54,
55
],
[
54,
56
],
[
8,
59
],
[
59,
60
],
[
59,
61
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
64,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
80,
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
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
102,
107
],
[
8,
108
],
[
108,
109
],
[
108,
110
],
[
8,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
111,
119
],
[
119,
120
],
[
120,
121
],
[
111,
122
],
[
123,
123
],
[
123,
124
],
[
124,
125
],
[
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
],
[
137,
139
],
[
136,
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
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
154,
160
],
[
153,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
161,
167
],
[
167,
168
],
[
168,
169
],
[
167,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
152,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
176,
182
],
[
175,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
184,
188
],
[
183,
189
],
[
189,
190
],
[
190,
191
],
[
189,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
192,
196
],
[
152,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
200,
204
],
[
199,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
205,
209
],
[
136,
210
],
[
210,
211
],
[
211,
212
],
[
210,
213
],
[
136,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
217,
219
],
[
214,
220
],
[
220,
221
],
[
221,
222
],
[
220,
223
],
[
123,
224
],
[
224,
225
],
[
225,
226
],
[
224,
227
],
[
8,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
228,
233
],
[
6,
234
],
[
234,
235
]
] | [
"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[] f=br.readLine().split(\" \");\n int n=Integer.parseInt(f[0]);\n int m=Integer.parseInt(f[1]);\n int l=Integer.parseInt(f[2]);\n String[][] As=new String[n][m];\n String[][] Bs=new String[m][l];\n int[][] Ai=new int[n][m];\n int[][] Bi=new int[m][l];\n for(int ni=0;ni<n;ni++) As[ni]=br.readLine().split(\" \");\n for(int mi=0;mi<m;mi++) Bs[mi]=br.readLine().split(\" \");\n \tStringBuilder sb = new StringBuilder();\n for(int ni=0;ni<n;ni++){\n \tfor(int li=0;li<l;li++){\n \t\tlong b=0;\n \tfor(int mi=0;mi<m;mi++){\n \t\tif(Ai[ni][mi]==0) Ai[ni][mi]=Integer.parseInt(As[ni][mi]);\n \t\tif(Bi[mi][li]==0) Bi[mi][li]=Integer.parseInt(Bs[mi][li]);\n \t\tb+=Ai[ni][mi]*Bi[mi][li];\n \t}\n \tsb.append(b);\n \tif(li!=l-1) sb.append(\" \");\n \t}\n \tsb.append(\"\\n\");\n }\n \tSystem.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[] f=br.readLine().split(\" \");\n int n=Integer.parseInt(f[0]);\n int m=Integer.parseInt(f[1]);\n int l=Integer.parseInt(f[2]);\n String[][] As=new String[n][m];\n String[][] Bs=new String[m][l];\n int[][] Ai=new int[n][m];\n int[][] Bi=new int[m][l];\n for(int ni=0;ni<n;ni++) As[ni]=br.readLine().split(\" \");\n for(int mi=0;mi<m;mi++) Bs[mi]=br.readLine().split(\" \");\n \tStringBuilder sb = new StringBuilder();\n for(int ni=0;ni<n;ni++){\n \tfor(int li=0;li<l;li++){\n \t\tlong b=0;\n \tfor(int mi=0;mi<m;mi++){\n \t\tif(Ai[ni][mi]==0) Ai[ni][mi]=Integer.parseInt(As[ni][mi]);\n \t\tif(Bi[mi][li]==0) Bi[mi][li]=Integer.parseInt(Bs[mi][li]);\n \t\tb+=Ai[ni][mi]*Bi[mi][li];\n \t}\n \tsb.append(b);\n \tif(li!=l-1) sb.append(\" \");\n \t}\n \tsb.append(\"\\n\");\n }\n \tSystem.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[] f=br.readLine().split(\" \");\n int n=Integer.parseInt(f[0]);\n int m=Integer.parseInt(f[1]);\n int l=Integer.parseInt(f[2]);\n String[][] As=new String[n][m];\n String[][] Bs=new String[m][l];\n int[][] Ai=new int[n][m];\n int[][] Bi=new int[m][l];\n for(int ni=0;ni<n;ni++) As[ni]=br.readLine().split(\" \");\n for(int mi=0;mi<m;mi++) Bs[mi]=br.readLine().split(\" \");\n \tStringBuilder sb = new StringBuilder();\n for(int ni=0;ni<n;ni++){\n \tfor(int li=0;li<l;li++){\n \t\tlong b=0;\n \tfor(int mi=0;mi<m;mi++){\n \t\tif(Ai[ni][mi]==0) Ai[ni][mi]=Integer.parseInt(As[ni][mi]);\n \t\tif(Bi[mi][li]==0) Bi[mi][li]=Integer.parseInt(Bs[mi][li]);\n \t\tb+=Ai[ni][mi]*Bi[mi][li];\n \t}\n \tsb.append(b);\n \tif(li!=l-1) sb.append(\" \");\n \t}\n \tsb.append(\"\\n\");\n }\n \tSystem.out.print(sb);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] f=br.readLine().split(\" \");\n int n=Integer.parseInt(f[0]);\n int m=Integer.parseInt(f[1]);\n int l=Integer.parseInt(f[2]);\n String[][] As=new String[n][m];\n String[][] Bs=new String[m][l];\n int[][] Ai=new int[n][m];\n int[][] Bi=new int[m][l];\n for(int ni=0;ni<n;ni++) As[ni]=br.readLine().split(\" \");\n for(int mi=0;mi<m;mi++) Bs[mi]=br.readLine().split(\" \");\n \tStringBuilder sb = new StringBuilder();\n for(int ni=0;ni<n;ni++){\n \tfor(int li=0;li<l;li++){\n \t\tlong b=0;\n \tfor(int mi=0;mi<m;mi++){\n \t\tif(Ai[ni][mi]==0) Ai[ni][mi]=Integer.parseInt(As[ni][mi]);\n \t\tif(Bi[mi][li]==0) Bi[mi][li]=Integer.parseInt(Bs[mi][li]);\n \t\tb+=Ai[ni][mi]*Bi[mi][li];\n \t}\n \tsb.append(b);\n \tif(li!=l-1) sb.append(\" \");\n \t}\n \tsb.append(\"\\n\");\n }\n \tSystem.out.print(sb);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] f=br.readLine().split(\" \");",
"f",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int n=Integer.parseInt(f[0]);",
"n",
"Integer.parseInt(f[0])",
"Integer.parseInt",
"Integer",
"f[0]",
"f",
"0",
"int m=Integer.parseInt(f[1]);",
"m",
"Integer.parseInt(f[1])",
"Integer.parseInt",
"Integer",
"f[1]",
"f",
"1",
"int l=Integer.parseInt(f[2]);",
"l",
"Integer.parseInt(f[2])",
"Integer.parseInt",
"Integer",
"f[2]",
"f",
"2",
"String[][] As=new String[n][m];",
"As",
"new String[n][m]",
"n",
"m",
"String[][] Bs=new String[m][l];",
"Bs",
"new String[m][l]",
"m",
"l",
"int[][] Ai=new int[n][m];",
"Ai",
"new int[n][m]",
"n",
"m",
"int[][] Bi=new int[m][l];",
"Bi",
"new int[m][l]",
"m",
"l",
"for(int ni=0;ni<n;ni++) As[ni]=br.readLine().split(\" \");",
"int ni=0;",
"int ni=0;",
"ni",
"0",
"ni<n",
"ni",
"n",
"ni++",
"ni++",
"ni",
"As[ni]=br.readLine().split(\" \");",
"As[ni]=br.readLine().split(\" \")",
"As[ni]",
"As",
"ni",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(int mi=0;mi<m;mi++) Bs[mi]=br.readLine().split(\" \");",
"int mi=0;",
"int mi=0;",
"mi",
"0",
"mi<m",
"mi",
"m",
"mi++",
"mi++",
"mi",
"Bs[mi]=br.readLine().split(\" \");",
"Bs[mi]=br.readLine().split(\" \")",
"Bs[mi]",
"Bs",
"mi",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"for(int ni=0;ni<n;ni++){\n \tfor(int li=0;li<l;li++){\n \t\tlong b=0;\n \tfor(int mi=0;mi<m;mi++){\n \t\tif(Ai[ni][mi]==0) Ai[ni][mi]=Integer.parseInt(As[ni][mi]);\n \t\tif(Bi[mi][li]==0) Bi[mi][li]=Integer.parseInt(Bs[mi][li]);\n \t\tb+=Ai[ni][mi]*Bi[mi][li];\n \t}\n \tsb.append(b);\n \tif(li!=l-1) sb.append(\" \");\n \t}\n \tsb.append(\"\\n\");\n }",
"int ni=0;",
"int ni=0;",
"ni",
"0",
"ni<n",
"ni",
"n",
"ni++",
"ni++",
"ni",
"{\n \tfor(int li=0;li<l;li++){\n \t\tlong b=0;\n \tfor(int mi=0;mi<m;mi++){\n \t\tif(Ai[ni][mi]==0) Ai[ni][mi]=Integer.parseInt(As[ni][mi]);\n \t\tif(Bi[mi][li]==0) Bi[mi][li]=Integer.parseInt(Bs[mi][li]);\n \t\tb+=Ai[ni][mi]*Bi[mi][li];\n \t}\n \tsb.append(b);\n \tif(li!=l-1) sb.append(\" \");\n \t}\n \tsb.append(\"\\n\");\n }",
"{\n \tfor(int li=0;li<l;li++){\n \t\tlong b=0;\n \tfor(int mi=0;mi<m;mi++){\n \t\tif(Ai[ni][mi]==0) Ai[ni][mi]=Integer.parseInt(As[ni][mi]);\n \t\tif(Bi[mi][li]==0) Bi[mi][li]=Integer.parseInt(Bs[mi][li]);\n \t\tb+=Ai[ni][mi]*Bi[mi][li];\n \t}\n \tsb.append(b);\n \tif(li!=l-1) sb.append(\" \");\n \t}\n \tsb.append(\"\\n\");\n }",
"for(int li=0;li<l;li++){\n \t\tlong b=0;\n \tfor(int mi=0;mi<m;mi++){\n \t\tif(Ai[ni][mi]==0) Ai[ni][mi]=Integer.parseInt(As[ni][mi]);\n \t\tif(Bi[mi][li]==0) Bi[mi][li]=Integer.parseInt(Bs[mi][li]);\n \t\tb+=Ai[ni][mi]*Bi[mi][li];\n \t}\n \tsb.append(b);\n \tif(li!=l-1) sb.append(\" \");\n \t}",
"int li=0;",
"int li=0;",
"li",
"0",
"li<l",
"li",
"l",
"li++",
"li++",
"li",
"{\n \t\tlong b=0;\n \tfor(int mi=0;mi<m;mi++){\n \t\tif(Ai[ni][mi]==0) Ai[ni][mi]=Integer.parseInt(As[ni][mi]);\n \t\tif(Bi[mi][li]==0) Bi[mi][li]=Integer.parseInt(Bs[mi][li]);\n \t\tb+=Ai[ni][mi]*Bi[mi][li];\n \t}\n \tsb.append(b);\n \tif(li!=l-1) sb.append(\" \");\n \t}",
"{\n \t\tlong b=0;\n \tfor(int mi=0;mi<m;mi++){\n \t\tif(Ai[ni][mi]==0) Ai[ni][mi]=Integer.parseInt(As[ni][mi]);\n \t\tif(Bi[mi][li]==0) Bi[mi][li]=Integer.parseInt(Bs[mi][li]);\n \t\tb+=Ai[ni][mi]*Bi[mi][li];\n \t}\n \tsb.append(b);\n \tif(li!=l-1) sb.append(\" \");\n \t}",
"long b=0;",
"b",
"0",
"for(int mi=0;mi<m;mi++){\n \t\tif(Ai[ni][mi]==0) Ai[ni][mi]=Integer.parseInt(As[ni][mi]);\n \t\tif(Bi[mi][li]==0) Bi[mi][li]=Integer.parseInt(Bs[mi][li]);\n \t\tb+=Ai[ni][mi]*Bi[mi][li];\n \t}",
"int mi=0;",
"int mi=0;",
"mi",
"0",
"mi<m",
"mi",
"m",
"mi++",
"mi++",
"mi",
"{\n \t\tif(Ai[ni][mi]==0) Ai[ni][mi]=Integer.parseInt(As[ni][mi]);\n \t\tif(Bi[mi][li]==0) Bi[mi][li]=Integer.parseInt(Bs[mi][li]);\n \t\tb+=Ai[ni][mi]*Bi[mi][li];\n \t}",
"{\n \t\tif(Ai[ni][mi]==0) Ai[ni][mi]=Integer.parseInt(As[ni][mi]);\n \t\tif(Bi[mi][li]==0) Bi[mi][li]=Integer.parseInt(Bs[mi][li]);\n \t\tb+=Ai[ni][mi]*Bi[mi][li];\n \t}",
"if(Ai[ni][mi]==0) Ai[ni][mi]=Integer.parseInt(As[ni][mi]);",
"Ai[ni][mi]==0",
"Ai[ni][mi]",
"Ai[ni]",
"Ai",
"ni",
"mi",
"0",
"Ai[ni][mi]=Integer.parseInt(As[ni][mi])",
"Ai[ni][mi]",
"Ai[ni]",
"Ai",
"ni",
"mi",
"Integer.parseInt(As[ni][mi])",
"Integer.parseInt",
"Integer",
"As[ni][mi]",
"As[ni]",
"As",
"ni",
"mi",
"if(Bi[mi][li]==0) Bi[mi][li]=Integer.parseInt(Bs[mi][li]);",
"Bi[mi][li]==0",
"Bi[mi][li]",
"Bi[mi]",
"Bi",
"mi",
"li",
"0",
"Bi[mi][li]=Integer.parseInt(Bs[mi][li])",
"Bi[mi][li]",
"Bi[mi]",
"Bi",
"mi",
"li",
"Integer.parseInt(Bs[mi][li])",
"Integer.parseInt",
"Integer",
"Bs[mi][li]",
"Bs[mi]",
"Bs",
"mi",
"li",
"b+=Ai[ni][mi]*Bi[mi][li]",
"b",
"Ai[ni][mi]*Bi[mi][li]",
"Ai[ni][mi]",
"Ai[ni]",
"Ai",
"ni",
"mi",
"Bi[mi][li]",
"Bi[mi]",
"Bi",
"mi",
"li",
"sb.append(b)",
"sb.append",
"sb",
"b",
"if(li!=l-1) sb.append(\" \");",
"li!=l-1",
"li",
"l-1",
"l",
"1",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"sb.append(\"\\n\")",
"sb.append",
"sb",
"\"\\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[] f=br.readLine().split(" ");
int n=Integer.parseInt(f[0]);
int m=Integer.parseInt(f[1]);
int l=Integer.parseInt(f[2]);
String[][] As=new String[n][m];
String[][] Bs=new String[m][l];
int[][] Ai=new int[n][m];
int[][] Bi=new int[m][l];
for(int ni=0;ni<n;ni++) As[ni]=br.readLine().split(" ");
for(int mi=0;mi<m;mi++) Bs[mi]=br.readLine().split(" ");
StringBuilder sb = new StringBuilder();
for(int ni=0;ni<n;ni++){
for(int li=0;li<l;li++){
long b=0;
for(int mi=0;mi<m;mi++){
if(Ai[ni][mi]==0) Ai[ni][mi]=Integer.parseInt(As[ni][mi]);
if(Bi[mi][li]==0) Bi[mi][li]=Integer.parseInt(Bs[mi][li]);
b+=Ai[ni][mi]*Bi[mi][li];
}
sb.append(b);
if(li!=l-1) sb.append(" ");
}
sb.append("\n");
}
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,
4,
18,
13,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
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,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
18,
18,
13,
13,
13,
17,
30,
4,
18,
18,
13,
13,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
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
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
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
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
112,
120
],
[
120,
121
],
[
121,
122
],
[
112,
123
],
[
124,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
125,
136
],
[
137,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
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
],
[
8,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
173,
174
],
[
173,
175
],
[
168,
176
],
[
176,
177
],
[
177,
178
],
[
168,
179
],
[
180,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
181,
186
],
[
186,
187
],
[
186,
188
],
[
181,
189
],
[
189,
190
],
[
190,
191
],
[
181,
192
],
[
193,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
197,
199
],
[
194,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
201,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
207,
211
],
[
206,
212
],
[
194,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
214,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
219,
223
],
[
6,
224
],
[
224,
225
]
] | [
"\nimport java.util.*;\nclass 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 l = scan.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong[][] C = new long[n][l];\n\t\t\n\t\t//input\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\tfor(int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int v = 0; v < n; v++) {\n\t\t\tfor(int h = 0; h < l; h++) {\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tC[v][h] += A[v][k] * B[k][h];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//output\n\t\tfor(int v = 0; v < n; v++) {\n\t\t\tfor(int h = 0; h < l; h++) {\n\t\t\t\tif(h != l-1) {\n\t\t\t\t\tSystem.out.print(C[v][h] + \" \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(C[v][h]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"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 l = scan.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong[][] C = new long[n][l];\n\t\t\n\t\t//input\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\tfor(int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int v = 0; v < n; v++) {\n\t\t\tfor(int h = 0; h < l; h++) {\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tC[v][h] += A[v][k] * B[k][h];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//output\n\t\tfor(int v = 0; v < n; v++) {\n\t\t\tfor(int h = 0; h < l; h++) {\n\t\t\t\tif(h != l-1) {\n\t\t\t\t\tSystem.out.print(C[v][h] + \" \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(C[v][h]);\n\t\t\t\t}\n\t\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 n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong[][] C = new long[n][l];\n\t\t\n\t\t//input\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\tfor(int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int v = 0; v < n; v++) {\n\t\t\tfor(int h = 0; h < l; h++) {\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tC[v][h] += A[v][k] * B[k][h];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//output\n\t\tfor(int v = 0; v < n; v++) {\n\t\t\tfor(int h = 0; h < l; h++) {\n\t\t\t\tif(h != l-1) {\n\t\t\t\t\tSystem.out.print(C[v][h] + \" \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(C[v][h]);\n\t\t\t\t}\n\t\t\t}\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 l = scan.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong[][] C = new long[n][l];\n\t\t\n\t\t//input\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\tfor(int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int v = 0; v < n; v++) {\n\t\t\tfor(int h = 0; h < l; h++) {\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tC[v][h] += A[v][k] * B[k][h];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//output\n\t\tfor(int v = 0; v < n; v++) {\n\t\t\tfor(int h = 0; h < l; h++) {\n\t\t\t\tif(h != l-1) {\n\t\t\t\t\tSystem.out.print(C[v][h] + \" \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(C[v][h]);\n\t\t\t\t}\n\t\t\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 l = scan.nextInt();",
"l",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[][] A = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int[][] B = new int[m][l];",
"B",
"new int[m][l]",
"m",
"l",
"long[][] C = new long[n][l];",
"C",
"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\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\tfor(int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}",
"B[i][j] = scan.nextInt()",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int v = 0; v < n; v++) {\n\t\t\tfor(int h = 0; h < l; h++) {\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tC[v][h] += A[v][k] * B[k][h];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int v = 0;",
"int v = 0;",
"v",
"0",
"v < n",
"v",
"n",
"v++",
"v++",
"v",
"{\n\t\t\tfor(int h = 0; h < l; h++) {\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tC[v][h] += A[v][k] * B[k][h];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int h = 0; h < l; h++) {\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tC[v][h] += A[v][k] * B[k][h];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int h = 0; h < l; h++) {\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tC[v][h] += A[v][k] * B[k][h];\n\t\t\t\t}\n\t\t\t}",
"int h = 0;",
"int h = 0;",
"h",
"0",
"h < l",
"h",
"l",
"h++",
"h++",
"h",
"{\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tC[v][h] += A[v][k] * B[k][h];\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tC[v][h] += A[v][k] * B[k][h];\n\t\t\t\t}\n\t\t\t}",
"for(int k = 0; k < m; k++) {\n\t\t\t\t\tC[v][h] += A[v][k] * B[k][h];\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\tC[v][h] += A[v][k] * B[k][h];\n\t\t\t\t}",
"{\n\t\t\t\t\tC[v][h] += A[v][k] * B[k][h];\n\t\t\t\t}",
"C[v][h] += A[v][k] * B[k][h]",
"C[v][h]",
"C[v]",
"C",
"v",
"h",
"A[v][k] * B[k][h]",
"A[v][k]",
"A[v]",
"A",
"v",
"k",
"B[k][h]",
"B[k]",
"B",
"k",
"h",
"for(int v = 0; v < n; v++) {\n\t\t\tfor(int h = 0; h < l; h++) {\n\t\t\t\tif(h != l-1) {\n\t\t\t\t\tSystem.out.print(C[v][h] + \" \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(C[v][h]);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int v = 0;",
"int v = 0;",
"v",
"0",
"v < n",
"v",
"n",
"v++",
"v++",
"v",
"{\n\t\t\tfor(int h = 0; h < l; h++) {\n\t\t\t\tif(h != l-1) {\n\t\t\t\t\tSystem.out.print(C[v][h] + \" \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(C[v][h]);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int h = 0; h < l; h++) {\n\t\t\t\tif(h != l-1) {\n\t\t\t\t\tSystem.out.print(C[v][h] + \" \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(C[v][h]);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int h = 0; h < l; h++) {\n\t\t\t\tif(h != l-1) {\n\t\t\t\t\tSystem.out.print(C[v][h] + \" \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(C[v][h]);\n\t\t\t\t}\n\t\t\t}",
"int h = 0;",
"int h = 0;",
"h",
"0",
"h < l",
"h",
"l",
"h++",
"h++",
"h",
"{\n\t\t\t\tif(h != l-1) {\n\t\t\t\t\tSystem.out.print(C[v][h] + \" \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(C[v][h]);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(h != l-1) {\n\t\t\t\t\tSystem.out.print(C[v][h] + \" \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(C[v][h]);\n\t\t\t\t}\n\t\t\t}",
"if(h != l-1) {\n\t\t\t\t\tSystem.out.print(C[v][h] + \" \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(C[v][h]);\n\t\t\t\t}",
"h != l-1",
"h",
"l-1",
"l",
"1",
"{\n\t\t\t\t\tSystem.out.print(C[v][h] + \" \");\n\t\t\t\t}",
"System.out.print(C[v][h] + \" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"C[v][h] + \" \"",
"C[v][h]",
"C[v]",
"C",
"v",
"h",
"\" \"",
"{\n\t\t\t\t\tSystem.out.println(C[v][h]);\n\t\t\t\t}",
"System.out.println(C[v][h])",
"System.out.println",
"System.out",
"System",
"System.out",
"C[v][h]",
"C[v]",
"C",
"v",
"h",
"String...args",
"args"
] |
import java.util.*;
class Main {
public static void main(String...args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int m = scan.nextInt();
int l = scan.nextInt();
int[][] A = new int[n][m];
int[][] B = new int[m][l];
long[][] C = new long[n][l];
//input
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++) {
for(int j = 0; j < l; j++) {
B[i][j] = scan.nextInt();
}
}
for(int v = 0; v < n; v++) {
for(int h = 0; h < l; h++) {
for(int k = 0; k < m; k++) {
C[v][h] += A[v][k] * B[k][h];
}
}
}
//output
for(int v = 0; v < n; v++) {
for(int h = 0; h < l; h++) {
if(h != l-1) {
System.out.print(C[v][h] + " ");
} else {
System.out.println(C[v][h]);
}
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
18,
18,
13,
13,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
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,
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,
13,
2,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
0,
18,
18,
13,
13,
13,
13,
0,
13,
17,
14,
2,
13,
2,
13,
17,
3,
4,
18,
18,
13,
13,
2,
18,
18,
13,
13,
13,
17,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
231,
5
],
[
231,
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
],
[
8,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
8,
46
],
[
46,
47
],
[
46,
48
],
[
8,
51
],
[
51,
52
],
[
51,
53
],
[
8,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
56,
64
],
[
64,
65
],
[
65,
66
],
[
56,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
69,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
87,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
94,
102
],
[
102,
103
],
[
103,
104
],
[
94,
105
],
[
106,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
107,
115
],
[
115,
116
],
[
116,
117
],
[
107,
118
],
[
119,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
119,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
125,
131
],
[
8,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
137,
138
],
[
137,
139
],
[
132,
140
],
[
140,
141
],
[
141,
142
],
[
132,
143
],
[
144,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
153,
154
],
[
153,
155
],
[
148,
156
],
[
156,
157
],
[
157,
158
],
[
148,
159
],
[
160,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
161,
166
],
[
166,
167
],
[
166,
168
],
[
161,
169
],
[
169,
170
],
[
170,
171
],
[
161,
172
],
[
173,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
178,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
184,
188
],
[
160,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
190,
194
],
[
189,
195
],
[
160,
196
],
[
196,
197
],
[
196,
198
],
[
160,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
202,
204
],
[
199,
205
],
[
160,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
206,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
212,
216
],
[
211,
217
],
[
144,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
218,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
223,
227
],
[
6,
228
],
[
228,
229
],
[
0,
230
],
[
230,
231
],
[
230,
232
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tint n,m,l;\n\t\tlong cal;\n\t\tint i,j,k;\n\t\tScanner scan = new Scanner(System.in);\n\t\tn=scan.nextInt();\n\t\tm=scan.nextInt();\n\t\tl=scan.nextInt();\n\t\tlong[][] yousoA =new long[n][m];\n\t\tlong[][] yousoB =new long[m][l];\n\t\tlong[][] yousoC =new long[n][l];\n\t\tfor(i=0;i<n;i++)\n\t\t{\n\t\t\tfor(j=0;j<m;j++) {\n\t\t\tcal=scan.nextInt();\n\t\t\tyousoA[i][j]=cal;\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<m;i++)\n\t\t{\n\t\t\tfor(j=0;j<l;j++) {\n\t\t\t\tcal=scan.nextInt();\n\t\t\t\tyousoB[i][j]=cal;\n\t\t\t\t}\n\t\t}\n\t\tfor(i=0;i<n;i++)\n\t\t{\n\t\t\tcal=0;\n\t\t\tfor(j=0;j<l;j++) {\n\t\t\t\tfor(k=0;k<m;k++) {\n\t\t\t\tcal=cal+yousoA[i][k]*yousoB[k][j];\n\t\t\t\t}\n\t\t\t\tyousoC[i][j]=cal;\n\t\t\t\tcal=0;\n\t\t\t\tif(j==l-1)\n\t\t\t\t\tbreak;\n\t\t\t\tSystem.out.print(yousoC[i][j]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(yousoC[i][j]);\n\t\t\t\n\t\t}\n\t\t\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tint n,m,l;\n\t\tlong cal;\n\t\tint i,j,k;\n\t\tScanner scan = new Scanner(System.in);\n\t\tn=scan.nextInt();\n\t\tm=scan.nextInt();\n\t\tl=scan.nextInt();\n\t\tlong[][] yousoA =new long[n][m];\n\t\tlong[][] yousoB =new long[m][l];\n\t\tlong[][] yousoC =new long[n][l];\n\t\tfor(i=0;i<n;i++)\n\t\t{\n\t\t\tfor(j=0;j<m;j++) {\n\t\t\tcal=scan.nextInt();\n\t\t\tyousoA[i][j]=cal;\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<m;i++)\n\t\t{\n\t\t\tfor(j=0;j<l;j++) {\n\t\t\t\tcal=scan.nextInt();\n\t\t\t\tyousoB[i][j]=cal;\n\t\t\t\t}\n\t\t}\n\t\tfor(i=0;i<n;i++)\n\t\t{\n\t\t\tcal=0;\n\t\t\tfor(j=0;j<l;j++) {\n\t\t\t\tfor(k=0;k<m;k++) {\n\t\t\t\tcal=cal+yousoA[i][k]*yousoB[k][j];\n\t\t\t\t}\n\t\t\t\tyousoC[i][j]=cal;\n\t\t\t\tcal=0;\n\t\t\t\tif(j==l-1)\n\t\t\t\t\tbreak;\n\t\t\t\tSystem.out.print(yousoC[i][j]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(yousoC[i][j]);\n\t\t\t\n\t\t}\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tint n,m,l;\n\t\tlong cal;\n\t\tint i,j,k;\n\t\tScanner scan = new Scanner(System.in);\n\t\tn=scan.nextInt();\n\t\tm=scan.nextInt();\n\t\tl=scan.nextInt();\n\t\tlong[][] yousoA =new long[n][m];\n\t\tlong[][] yousoB =new long[m][l];\n\t\tlong[][] yousoC =new long[n][l];\n\t\tfor(i=0;i<n;i++)\n\t\t{\n\t\t\tfor(j=0;j<m;j++) {\n\t\t\tcal=scan.nextInt();\n\t\t\tyousoA[i][j]=cal;\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<m;i++)\n\t\t{\n\t\t\tfor(j=0;j<l;j++) {\n\t\t\t\tcal=scan.nextInt();\n\t\t\t\tyousoB[i][j]=cal;\n\t\t\t\t}\n\t\t}\n\t\tfor(i=0;i<n;i++)\n\t\t{\n\t\t\tcal=0;\n\t\t\tfor(j=0;j<l;j++) {\n\t\t\t\tfor(k=0;k<m;k++) {\n\t\t\t\tcal=cal+yousoA[i][k]*yousoB[k][j];\n\t\t\t\t}\n\t\t\t\tyousoC[i][j]=cal;\n\t\t\t\tcal=0;\n\t\t\t\tif(j==l-1)\n\t\t\t\t\tbreak;\n\t\t\t\tSystem.out.print(yousoC[i][j]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(yousoC[i][j]);\n\t\t\t\n\t\t}\n\t\t\n\t}",
"main",
"{\n\t\tint n,m,l;\n\t\tlong cal;\n\t\tint i,j,k;\n\t\tScanner scan = new Scanner(System.in);\n\t\tn=scan.nextInt();\n\t\tm=scan.nextInt();\n\t\tl=scan.nextInt();\n\t\tlong[][] yousoA =new long[n][m];\n\t\tlong[][] yousoB =new long[m][l];\n\t\tlong[][] yousoC =new long[n][l];\n\t\tfor(i=0;i<n;i++)\n\t\t{\n\t\t\tfor(j=0;j<m;j++) {\n\t\t\tcal=scan.nextInt();\n\t\t\tyousoA[i][j]=cal;\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<m;i++)\n\t\t{\n\t\t\tfor(j=0;j<l;j++) {\n\t\t\t\tcal=scan.nextInt();\n\t\t\t\tyousoB[i][j]=cal;\n\t\t\t\t}\n\t\t}\n\t\tfor(i=0;i<n;i++)\n\t\t{\n\t\t\tcal=0;\n\t\t\tfor(j=0;j<l;j++) {\n\t\t\t\tfor(k=0;k<m;k++) {\n\t\t\t\tcal=cal+yousoA[i][k]*yousoB[k][j];\n\t\t\t\t}\n\t\t\t\tyousoC[i][j]=cal;\n\t\t\t\tcal=0;\n\t\t\t\tif(j==l-1)\n\t\t\t\t\tbreak;\n\t\t\t\tSystem.out.print(yousoC[i][j]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(yousoC[i][j]);\n\t\t\t\n\t\t}\n\t\t\n\t}",
"int n",
"n",
"m",
"m",
"l;",
"l",
"long cal;",
"cal",
"int i",
"i",
"j",
"j",
"k;",
"k",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"n=scan.nextInt()",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"m=scan.nextInt()",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"l=scan.nextInt()",
"l",
"scan.nextInt()",
"scan.nextInt",
"scan",
"long[][] yousoA =new long[n][m];",
"yousoA",
"new long[n][m]",
"n",
"m",
"long[][] yousoB =new long[m][l];",
"yousoB",
"new long[m][l]",
"m",
"l",
"long[][] yousoC =new long[n][l];",
"yousoC",
"new long[n][l]",
"n",
"l",
"for(i=0;i<n;i++)\n\t\t{\n\t\t\tfor(j=0;j<m;j++) {\n\t\t\tcal=scan.nextInt();\n\t\t\tyousoA[i][j]=cal;\n\t\t\t}\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(j=0;j<m;j++) {\n\t\t\tcal=scan.nextInt();\n\t\t\tyousoA[i][j]=cal;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(j=0;j<m;j++) {\n\t\t\tcal=scan.nextInt();\n\t\t\tyousoA[i][j]=cal;\n\t\t\t}\n\t\t}",
"for(j=0;j<m;j++) {\n\t\t\tcal=scan.nextInt();\n\t\t\tyousoA[i][j]=cal;\n\t\t\t}",
"j=0;",
"j=0",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\tcal=scan.nextInt();\n\t\t\tyousoA[i][j]=cal;\n\t\t\t}",
"{\n\t\t\tcal=scan.nextInt();\n\t\t\tyousoA[i][j]=cal;\n\t\t\t}",
"cal=scan.nextInt()",
"cal",
"scan.nextInt()",
"scan.nextInt",
"scan",
"yousoA[i][j]=cal",
"yousoA[i][j]",
"yousoA[i]",
"yousoA",
"i",
"j",
"cal",
"for(i=0;i<m;i++)\n\t\t{\n\t\t\tfor(j=0;j<l;j++) {\n\t\t\t\tcal=scan.nextInt();\n\t\t\t\tyousoB[i][j]=cal;\n\t\t\t\t}\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tfor(j=0;j<l;j++) {\n\t\t\t\tcal=scan.nextInt();\n\t\t\t\tyousoB[i][j]=cal;\n\t\t\t\t}\n\t\t}",
"{\n\t\t\tfor(j=0;j<l;j++) {\n\t\t\t\tcal=scan.nextInt();\n\t\t\t\tyousoB[i][j]=cal;\n\t\t\t\t}\n\t\t}",
"for(j=0;j<l;j++) {\n\t\t\t\tcal=scan.nextInt();\n\t\t\t\tyousoB[i][j]=cal;\n\t\t\t\t}",
"j=0;",
"j=0",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tcal=scan.nextInt();\n\t\t\t\tyousoB[i][j]=cal;\n\t\t\t\t}",
"{\n\t\t\t\tcal=scan.nextInt();\n\t\t\t\tyousoB[i][j]=cal;\n\t\t\t\t}",
"cal=scan.nextInt()",
"cal",
"scan.nextInt()",
"scan.nextInt",
"scan",
"yousoB[i][j]=cal",
"yousoB[i][j]",
"yousoB[i]",
"yousoB",
"i",
"j",
"cal",
"for(i=0;i<n;i++)\n\t\t{\n\t\t\tcal=0;\n\t\t\tfor(j=0;j<l;j++) {\n\t\t\t\tfor(k=0;k<m;k++) {\n\t\t\t\tcal=cal+yousoA[i][k]*yousoB[k][j];\n\t\t\t\t}\n\t\t\t\tyousoC[i][j]=cal;\n\t\t\t\tcal=0;\n\t\t\t\tif(j==l-1)\n\t\t\t\t\tbreak;\n\t\t\t\tSystem.out.print(yousoC[i][j]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(yousoC[i][j]);\n\t\t\t\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tcal=0;\n\t\t\tfor(j=0;j<l;j++) {\n\t\t\t\tfor(k=0;k<m;k++) {\n\t\t\t\tcal=cal+yousoA[i][k]*yousoB[k][j];\n\t\t\t\t}\n\t\t\t\tyousoC[i][j]=cal;\n\t\t\t\tcal=0;\n\t\t\t\tif(j==l-1)\n\t\t\t\t\tbreak;\n\t\t\t\tSystem.out.print(yousoC[i][j]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(yousoC[i][j]);\n\t\t\t\n\t\t}",
"{\n\t\t\tcal=0;\n\t\t\tfor(j=0;j<l;j++) {\n\t\t\t\tfor(k=0;k<m;k++) {\n\t\t\t\tcal=cal+yousoA[i][k]*yousoB[k][j];\n\t\t\t\t}\n\t\t\t\tyousoC[i][j]=cal;\n\t\t\t\tcal=0;\n\t\t\t\tif(j==l-1)\n\t\t\t\t\tbreak;\n\t\t\t\tSystem.out.print(yousoC[i][j]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(yousoC[i][j]);\n\t\t\t\n\t\t}",
"cal=0",
"cal",
"0",
"for(j=0;j<l;j++) {\n\t\t\t\tfor(k=0;k<m;k++) {\n\t\t\t\tcal=cal+yousoA[i][k]*yousoB[k][j];\n\t\t\t\t}\n\t\t\t\tyousoC[i][j]=cal;\n\t\t\t\tcal=0;\n\t\t\t\tif(j==l-1)\n\t\t\t\t\tbreak;\n\t\t\t\tSystem.out.print(yousoC[i][j]+\" \");\n\t\t\t}",
"j=0;",
"j=0",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(k=0;k<m;k++) {\n\t\t\t\tcal=cal+yousoA[i][k]*yousoB[k][j];\n\t\t\t\t}\n\t\t\t\tyousoC[i][j]=cal;\n\t\t\t\tcal=0;\n\t\t\t\tif(j==l-1)\n\t\t\t\t\tbreak;\n\t\t\t\tSystem.out.print(yousoC[i][j]+\" \");\n\t\t\t}",
"{\n\t\t\t\tfor(k=0;k<m;k++) {\n\t\t\t\tcal=cal+yousoA[i][k]*yousoB[k][j];\n\t\t\t\t}\n\t\t\t\tyousoC[i][j]=cal;\n\t\t\t\tcal=0;\n\t\t\t\tif(j==l-1)\n\t\t\t\t\tbreak;\n\t\t\t\tSystem.out.print(yousoC[i][j]+\" \");\n\t\t\t}",
"for(k=0;k<m;k++) {\n\t\t\t\tcal=cal+yousoA[i][k]*yousoB[k][j];\n\t\t\t\t}",
"k=0;",
"k=0",
"k",
"0",
"k<m",
"k",
"m",
"k++",
"k++",
"k",
"{\n\t\t\t\tcal=cal+yousoA[i][k]*yousoB[k][j];\n\t\t\t\t}",
"{\n\t\t\t\tcal=cal+yousoA[i][k]*yousoB[k][j];\n\t\t\t\t}",
"cal=cal+yousoA[i][k]*yousoB[k][j]",
"cal",
"cal+yousoA[i][k]*yousoB[k][j]",
"cal",
"yousoA[i][k]*yousoB[k][j]",
"yousoA[i][k]",
"yousoA[i]",
"yousoA",
"i",
"k",
"yousoB[k][j]",
"yousoB[k]",
"yousoB",
"k",
"j",
"yousoC[i][j]=cal",
"yousoC[i][j]",
"yousoC[i]",
"yousoC",
"i",
"j",
"cal",
"cal=0",
"cal",
"0",
"if(j==l-1)\n\t\t\t\t\tbreak;",
"j==l-1",
"j",
"l-1",
"l",
"1",
"break;",
"System.out.print(yousoC[i][j]+\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"yousoC[i][j]+\" \"",
"yousoC[i][j]",
"yousoC[i]",
"yousoC",
"i",
"j",
"\" \"",
"System.out.println(yousoC[i][j])",
"System.out.println",
"System.out",
"System",
"System.out",
"yousoC[i][j]",
"yousoC[i]",
"yousoC",
"i",
"j",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tint n,m,l;\n\t\tlong cal;\n\t\tint i,j,k;\n\t\tScanner scan = new Scanner(System.in);\n\t\tn=scan.nextInt();\n\t\tm=scan.nextInt();\n\t\tl=scan.nextInt();\n\t\tlong[][] yousoA =new long[n][m];\n\t\tlong[][] yousoB =new long[m][l];\n\t\tlong[][] yousoC =new long[n][l];\n\t\tfor(i=0;i<n;i++)\n\t\t{\n\t\t\tfor(j=0;j<m;j++) {\n\t\t\tcal=scan.nextInt();\n\t\t\tyousoA[i][j]=cal;\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<m;i++)\n\t\t{\n\t\t\tfor(j=0;j<l;j++) {\n\t\t\t\tcal=scan.nextInt();\n\t\t\t\tyousoB[i][j]=cal;\n\t\t\t\t}\n\t\t}\n\t\tfor(i=0;i<n;i++)\n\t\t{\n\t\t\tcal=0;\n\t\t\tfor(j=0;j<l;j++) {\n\t\t\t\tfor(k=0;k<m;k++) {\n\t\t\t\tcal=cal+yousoA[i][k]*yousoB[k][j];\n\t\t\t\t}\n\t\t\t\tyousoC[i][j]=cal;\n\t\t\t\tcal=0;\n\t\t\t\tif(j==l-1)\n\t\t\t\t\tbreak;\n\t\t\t\tSystem.out.print(yousoC[i][j]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(yousoC[i][j]);\n\t\t\t\n\t\t}\n\t\t\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tint n,m,l;\n\t\tlong cal;\n\t\tint i,j,k;\n\t\tScanner scan = new Scanner(System.in);\n\t\tn=scan.nextInt();\n\t\tm=scan.nextInt();\n\t\tl=scan.nextInt();\n\t\tlong[][] yousoA =new long[n][m];\n\t\tlong[][] yousoB =new long[m][l];\n\t\tlong[][] yousoC =new long[n][l];\n\t\tfor(i=0;i<n;i++)\n\t\t{\n\t\t\tfor(j=0;j<m;j++) {\n\t\t\tcal=scan.nextInt();\n\t\t\tyousoA[i][j]=cal;\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<m;i++)\n\t\t{\n\t\t\tfor(j=0;j<l;j++) {\n\t\t\t\tcal=scan.nextInt();\n\t\t\t\tyousoB[i][j]=cal;\n\t\t\t\t}\n\t\t}\n\t\tfor(i=0;i<n;i++)\n\t\t{\n\t\t\tcal=0;\n\t\t\tfor(j=0;j<l;j++) {\n\t\t\t\tfor(k=0;k<m;k++) {\n\t\t\t\tcal=cal+yousoA[i][k]*yousoB[k][j];\n\t\t\t\t}\n\t\t\t\tyousoC[i][j]=cal;\n\t\t\t\tcal=0;\n\t\t\t\tif(j==l-1)\n\t\t\t\t\tbreak;\n\t\t\t\tSystem.out.print(yousoC[i][j]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(yousoC[i][j]);\n\t\t\t\n\t\t}\n\t\t\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int n,m,l;
long cal;
int i,j,k;
Scanner scan = new Scanner(System.in);
n=scan.nextInt();
m=scan.nextInt();
l=scan.nextInt();
long[][] yousoA =new long[n][m];
long[][] yousoB =new long[m][l];
long[][] yousoC =new long[n][l];
for(i=0;i<n;i++)
{
for(j=0;j<m;j++) {
cal=scan.nextInt();
yousoA[i][j]=cal;
}
}
for(i=0;i<m;i++)
{
for(j=0;j<l;j++) {
cal=scan.nextInt();
yousoB[i][j]=cal;
}
}
for(i=0;i<n;i++)
{
cal=0;
for(j=0;j<l;j++) {
for(k=0;k<m;k++) {
cal=cal+yousoA[i][k]*yousoB[k][j];
}
yousoC[i][j]=cal;
cal=0;
if(j==l-1)
break;
System.out.print(yousoC[i][j]+" ");
}
System.out.println(yousoC[i][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,
4,
18,
13,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
228,
5
],
[
228,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
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
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
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
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
112,
120
],
[
120,
121
],
[
121,
122
],
[
112,
123
],
[
124,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
125,
136
],
[
137,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
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
],
[
8,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
173,
174
],
[
173,
175
],
[
168,
176
],
[
176,
177
],
[
177,
178
],
[
168,
179
],
[
180,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
181,
186
],
[
181,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
180,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
192,
197
],
[
197,
198
],
[
197,
199
],
[
192,
200
],
[
200,
201
],
[
201,
202
],
[
192,
203
],
[
204,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
205,
210
],
[
205,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
211,
215
],
[
180,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
216,
221
],
[
8,
222
],
[
222,
223
],
[
223,
224
],
[
6,
225
],
[
225,
226
],
[
0,
227
],
[
227,
228
],
[
227,
229
]
] | [
"import java.util.Scanner;\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 int l = scn.nextInt();\n\n long[][] a = new long[n][m];\n long[][] b = new long[m][l];\n long[][] c = new long[n][l];\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\n for(int i=0;i<m;i++){\n for(int j=0;j<l;j++){\n b[i][j]=scn.nextInt();\n }\n }\n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n for(int k=0;k<m;k++){\n c[i][j]+= (a[i][k] * b[k][j]);\n }\n }\n }\n for(int i=0;i<n;i++){\n System.out.printf(\"%d\",c[i][0]);\n for(int j=1;j<l;j++){\n System.out.printf(\" %d\",c[i][j]);\n }\n System.out.printf(\"%n\");\n }\n\n\n scn.close();\n\n\n }\n\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"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 int l = scn.nextInt();\n\n long[][] a = new long[n][m];\n long[][] b = new long[m][l];\n long[][] c = new long[n][l];\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\n for(int i=0;i<m;i++){\n for(int j=0;j<l;j++){\n b[i][j]=scn.nextInt();\n }\n }\n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n for(int k=0;k<m;k++){\n c[i][j]+= (a[i][k] * b[k][j]);\n }\n }\n }\n for(int i=0;i<n;i++){\n System.out.printf(\"%d\",c[i][0]);\n for(int j=1;j<l;j++){\n System.out.printf(\" %d\",c[i][j]);\n }\n System.out.printf(\"%n\");\n }\n\n\n scn.close();\n\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 int l = scn.nextInt();\n\n long[][] a = new long[n][m];\n long[][] b = new long[m][l];\n long[][] c = new long[n][l];\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\n for(int i=0;i<m;i++){\n for(int j=0;j<l;j++){\n b[i][j]=scn.nextInt();\n }\n }\n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n for(int k=0;k<m;k++){\n c[i][j]+= (a[i][k] * b[k][j]);\n }\n }\n }\n for(int i=0;i<n;i++){\n System.out.printf(\"%d\",c[i][0]);\n for(int j=1;j<l;j++){\n System.out.printf(\" %d\",c[i][j]);\n }\n System.out.printf(\"%n\");\n }\n\n\n scn.close();\n\n\n }",
"main",
"{\n Scanner scn = new Scanner(System.in);\n int n = scn.nextInt();\n int m = scn.nextInt();\n int l = scn.nextInt();\n\n long[][] a = new long[n][m];\n long[][] b = new long[m][l];\n long[][] c = new long[n][l];\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\n for(int i=0;i<m;i++){\n for(int j=0;j<l;j++){\n b[i][j]=scn.nextInt();\n }\n }\n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n for(int k=0;k<m;k++){\n c[i][j]+= (a[i][k] * b[k][j]);\n }\n }\n }\n for(int i=0;i<n;i++){\n System.out.printf(\"%d\",c[i][0]);\n for(int j=1;j<l;j++){\n System.out.printf(\" %d\",c[i][j]);\n }\n System.out.printf(\"%n\");\n }\n\n\n scn.close();\n\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 l = scn.nextInt();",
"l",
"scn.nextInt()",
"scn.nextInt",
"scn",
"long[][] a = new long[n][m];",
"a",
"new long[n][m]",
"n",
"m",
"long[][] b = new long[m][l];",
"b",
"new long[m][l]",
"m",
"l",
"long[][] c = new long[n][l];",
"c",
"new long[n][l]",
"n",
"l",
"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 for(int j=0;j<l;j++){\n b[i][j]=scn.nextInt();\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n for(int j=0;j<l;j++){\n b[i][j]=scn.nextInt();\n }\n }",
"{\n for(int j=0;j<l;j++){\n b[i][j]=scn.nextInt();\n }\n }",
"for(int j=0;j<l;j++){\n b[i][j]=scn.nextInt();\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n b[i][j]=scn.nextInt();\n }",
"{\n b[i][j]=scn.nextInt();\n }",
"b[i][j]=scn.nextInt()",
"b[i][j]",
"b[i]",
"b",
"i",
"j",
"scn.nextInt()",
"scn.nextInt",
"scn",
"for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n for(int k=0;k<m;k++){\n c[i][j]+= (a[i][k] * b[k][j]);\n }\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j=0;j<l;j++){\n for(int k=0;k<m;k++){\n c[i][j]+= (a[i][k] * b[k][j]);\n }\n }\n }",
"{\n for(int j=0;j<l;j++){\n for(int k=0;k<m;k++){\n c[i][j]+= (a[i][k] * b[k][j]);\n }\n }\n }",
"for(int j=0;j<l;j++){\n for(int k=0;k<m;k++){\n c[i][j]+= (a[i][k] * b[k][j]);\n }\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n for(int k=0;k<m;k++){\n c[i][j]+= (a[i][k] * b[k][j]);\n }\n }",
"{\n for(int k=0;k<m;k++){\n c[i][j]+= (a[i][k] * b[k][j]);\n }\n }",
"for(int k=0;k<m;k++){\n c[i][j]+= (a[i][k] * b[k][j]);\n }",
"int k=0;",
"int k=0;",
"k",
"0",
"k<m",
"k",
"m",
"k++",
"k++",
"k",
"{\n c[i][j]+= (a[i][k] * b[k][j]);\n }",
"{\n c[i][j]+= (a[i][k] * b[k][j]);\n }",
"c[i][j]+= (a[i][k] * b[k][j])",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"(a[i][k] * b[k][j])",
"a[i][k]",
"a[i]",
"a",
"i",
"k",
"b[k][j]",
"b[k]",
"b",
"k",
"j",
"for(int i=0;i<n;i++){\n System.out.printf(\"%d\",c[i][0]);\n for(int j=1;j<l;j++){\n System.out.printf(\" %d\",c[i][j]);\n }\n System.out.printf(\"%n\");\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n System.out.printf(\"%d\",c[i][0]);\n for(int j=1;j<l;j++){\n System.out.printf(\" %d\",c[i][j]);\n }\n System.out.printf(\"%n\");\n }",
"{\n System.out.printf(\"%d\",c[i][0]);\n for(int j=1;j<l;j++){\n System.out.printf(\" %d\",c[i][j]);\n }\n System.out.printf(\"%n\");\n }",
"System.out.printf(\"%d\",c[i][0])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d\"",
"c[i][0]",
"c[i]",
"c",
"i",
"0",
"for(int j=1;j<l;j++){\n System.out.printf(\" %d\",c[i][j]);\n }",
"int j=1;",
"int j=1;",
"j",
"1",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n System.out.printf(\" %d\",c[i][j]);\n }",
"{\n System.out.printf(\" %d\",c[i][j]);\n }",
"System.out.printf(\" %d\",c[i][j])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"System.out.printf(\"%n\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%n\"",
"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 int l = scn.nextInt();\n\n long[][] a = new long[n][m];\n long[][] b = new long[m][l];\n long[][] c = new long[n][l];\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\n for(int i=0;i<m;i++){\n for(int j=0;j<l;j++){\n b[i][j]=scn.nextInt();\n }\n }\n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n for(int k=0;k<m;k++){\n c[i][j]+= (a[i][k] * b[k][j]);\n }\n }\n }\n for(int i=0;i<n;i++){\n System.out.printf(\"%d\",c[i][0]);\n for(int j=1;j<l;j++){\n System.out.printf(\" %d\",c[i][j]);\n }\n System.out.printf(\"%n\");\n }\n\n\n scn.close();\n\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 int l = scn.nextInt();\n\n long[][] a = new long[n][m];\n long[][] b = new long[m][l];\n long[][] c = new long[n][l];\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\n for(int i=0;i<m;i++){\n for(int j=0;j<l;j++){\n b[i][j]=scn.nextInt();\n }\n }\n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n for(int k=0;k<m;k++){\n c[i][j]+= (a[i][k] * b[k][j]);\n }\n }\n }\n for(int i=0;i<n;i++){\n System.out.printf(\"%d\",c[i][0]);\n for(int j=1;j<l;j++){\n System.out.printf(\" %d\",c[i][j]);\n }\n System.out.printf(\"%n\");\n }\n\n\n scn.close();\n\n\n }\n\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scn = new Scanner(System.in);
int n = scn.nextInt();
int m = scn.nextInt();
int l = scn.nextInt();
long[][] a = new long[n][m];
long[][] b = new long[m][l];
long[][] c = new long[n][l];
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++){
for(int j=0;j<l;j++){
b[i][j]=scn.nextInt();
}
}
for(int i=0;i<n;i++){
for(int j=0;j<l;j++){
for(int k=0;k<m;k++){
c[i][j]+= (a[i][k] * b[k][j]);
}
}
}
for(int i=0;i<n;i++){
System.out.printf("%d",c[i][0]);
for(int j=1;j<l;j++){
System.out.printf(" %d",c[i][j]);
}
System.out.printf("%n");
}
scn.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,
4,
18,
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,
14,
2,
13,
17,
30,
4,
18,
18,
13,
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,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
187,
5
],
[
187,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
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
],
[
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
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
98,
104
],
[
104,
105
],
[
105,
106
],
[
8,
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
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
132,
144
],
[
144,
145
],
[
144,
146
],
[
132,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
147,
152
],
[
152,
153
],
[
152,
154
],
[
147,
155
],
[
155,
156
],
[
156,
157
],
[
147,
158
],
[
159,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
163,
167
],
[
162,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
132,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
173,
178
],
[
119,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
6,
184
],
[
184,
185
],
[
0,
186
],
[
186,
187
],
[
186,
188
]
] | [
"\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\t\tlong[][] mtx1 = new long[n][m];\n\t\tlong[][] mtx2 = new long[m][l];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\tmtx1[i][k] = sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tfor(int k = 0; k < l; k++){\n\t\t\t\tmtx2[i][k] = sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int k = 0; k < l; k++) {\n\t\t\t\tif(k != 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int p = 0; p < m; p++){\n\t\t\t\t\tsum += mtx1[i][p] * mtx2[p][k];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(sum);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\t\tlong[][] mtx1 = new long[n][m];\n\t\tlong[][] mtx2 = new long[m][l];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\tmtx1[i][k] = sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tfor(int k = 0; k < l; k++){\n\t\t\t\tmtx2[i][k] = sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int k = 0; k < l; k++) {\n\t\t\t\tif(k != 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int p = 0; p < m; p++){\n\t\t\t\t\tsum += mtx1[i][p] * mtx2[p][k];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(sum);\n\t\t\t}\n\t\t\tSystem.out.println();\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 = sc.nextInt();\n\t\tlong[][] mtx1 = new long[n][m];\n\t\tlong[][] mtx2 = new long[m][l];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\tmtx1[i][k] = sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tfor(int k = 0; k < l; k++){\n\t\t\t\tmtx2[i][k] = sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int k = 0; k < l; k++) {\n\t\t\t\tif(k != 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int p = 0; p < m; p++){\n\t\t\t\t\tsum += mtx1[i][p] * mtx2[p][k];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(sum);\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = sc.nextInt();\n\t\tlong[][] mtx1 = new long[n][m];\n\t\tlong[][] mtx2 = new long[m][l];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\tmtx1[i][k] = sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tfor(int k = 0; k < l; k++){\n\t\t\t\tmtx2[i][k] = sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int k = 0; k < l; k++) {\n\t\t\t\tif(k != 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int p = 0; p < m; p++){\n\t\t\t\t\tsum += mtx1[i][p] * mtx2[p][k];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(sum);\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long[][] mtx1 = new long[n][m];",
"mtx1",
"new long[n][m]",
"n",
"m",
"long[][] mtx2 = new long[m][l];",
"mtx2",
"new long[m][l]",
"m",
"l",
"for(int i = 0; i < n; i++){\n\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\tmtx1[i][k] = 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 k = 0; k < m; k++){\n\t\t\t\tmtx1[i][k] = sc.nextLong();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\tmtx1[i][k] = sc.nextLong();\n\t\t\t}\n\t\t}",
"for(int k = 0; k < m; k++){\n\t\t\t\tmtx1[i][k] = sc.nextLong();\n\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"{\n\t\t\t\tmtx1[i][k] = sc.nextLong();\n\t\t\t}",
"{\n\t\t\t\tmtx1[i][k] = sc.nextLong();\n\t\t\t}",
"mtx1[i][k] = sc.nextLong()",
"mtx1[i][k]",
"mtx1[i]",
"mtx1",
"i",
"k",
"sc.nextLong()",
"sc.nextLong",
"sc",
"for(int i = 0; i < m; i++){\n\t\t\tfor(int k = 0; k < l; k++){\n\t\t\t\tmtx2[i][k] = 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 k = 0; k < l; k++){\n\t\t\t\tmtx2[i][k] = sc.nextLong();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int k = 0; k < l; k++){\n\t\t\t\tmtx2[i][k] = sc.nextLong();\n\t\t\t}\n\t\t}",
"for(int k = 0; k < l; k++){\n\t\t\t\tmtx2[i][k] = sc.nextLong();\n\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < l",
"k",
"l",
"k++",
"k++",
"k",
"{\n\t\t\t\tmtx2[i][k] = sc.nextLong();\n\t\t\t}",
"{\n\t\t\t\tmtx2[i][k] = sc.nextLong();\n\t\t\t}",
"mtx2[i][k] = sc.nextLong()",
"mtx2[i][k]",
"mtx2[i]",
"mtx2",
"i",
"k",
"sc.nextLong()",
"sc.nextLong",
"sc",
"for(int i = 0; i < n; i++){\n\t\t\tfor(int k = 0; k < l; k++) {\n\t\t\t\tif(k != 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int p = 0; p < m; p++){\n\t\t\t\t\tsum += mtx1[i][p] * mtx2[p][k];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(sum);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int k = 0; k < l; k++) {\n\t\t\t\tif(k != 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int p = 0; p < m; p++){\n\t\t\t\t\tsum += mtx1[i][p] * mtx2[p][k];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(sum);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor(int k = 0; k < l; k++) {\n\t\t\t\tif(k != 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int p = 0; p < m; p++){\n\t\t\t\t\tsum += mtx1[i][p] * mtx2[p][k];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(sum);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for(int k = 0; k < l; k++) {\n\t\t\t\tif(k != 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int p = 0; p < m; p++){\n\t\t\t\t\tsum += mtx1[i][p] * mtx2[p][k];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(sum);\n\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < l",
"k",
"l",
"k++",
"k++",
"k",
"{\n\t\t\t\tif(k != 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int p = 0; p < m; p++){\n\t\t\t\t\tsum += mtx1[i][p] * mtx2[p][k];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(sum);\n\t\t\t}",
"{\n\t\t\t\tif(k != 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int p = 0; p < m; p++){\n\t\t\t\t\tsum += mtx1[i][p] * mtx2[p][k];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(sum);\n\t\t\t}",
"if(k != 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"k != 0",
"k",
"0",
"{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"long sum = 0;",
"sum",
"0",
"for(int p = 0; p < m; p++){\n\t\t\t\t\tsum += mtx1[i][p] * mtx2[p][k];\n\t\t\t\t}",
"int p = 0;",
"int p = 0;",
"p",
"0",
"p < m",
"p",
"m",
"p++",
"p++",
"p",
"{\n\t\t\t\t\tsum += mtx1[i][p] * mtx2[p][k];\n\t\t\t\t}",
"{\n\t\t\t\t\tsum += mtx1[i][p] * mtx2[p][k];\n\t\t\t\t}",
"sum += mtx1[i][p] * mtx2[p][k]",
"sum",
"mtx1[i][p] * mtx2[p][k]",
"mtx1[i][p]",
"mtx1[i]",
"mtx1",
"i",
"p",
"mtx2[p][k]",
"mtx2[p]",
"mtx2",
"p",
"k",
"System.out.print(sum)",
"System.out.print",
"System.out",
"System",
"System.out",
"sum",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"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 l = sc.nextInt();\n\t\tlong[][] mtx1 = new long[n][m];\n\t\tlong[][] mtx2 = new long[m][l];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\tmtx1[i][k] = sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tfor(int k = 0; k < l; k++){\n\t\t\t\tmtx2[i][k] = sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int k = 0; k < l; k++) {\n\t\t\t\tif(k != 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int p = 0; p < m; p++){\n\t\t\t\t\tsum += mtx1[i][p] * mtx2[p][k];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(sum);\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = sc.nextInt();\n\t\tlong[][] mtx1 = new long[n][m];\n\t\tlong[][] mtx2 = new long[m][l];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\tmtx1[i][k] = sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < m; i++){\n\t\t\tfor(int k = 0; k < l; k++){\n\t\t\t\tmtx2[i][k] = sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int k = 0; k < l; k++) {\n\t\t\t\tif(k != 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int p = 0; p < m; p++){\n\t\t\t\t\tsum += mtx1[i][p] * mtx2[p][k];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(sum);\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = sc.nextInt();
long[][] mtx1 = new long[n][m];
long[][] mtx2 = new long[m][l];
for(int i = 0; i < n; i++){
for(int k = 0; k < m; k++){
mtx1[i][k] = sc.nextLong();
}
}
for(int i = 0; i < m; i++){
for(int k = 0; k < l; k++){
mtx2[i][k] = sc.nextLong();
}
}
for(int i = 0; i < n; i++){
for(int k = 0; k < l; k++) {
if(k != 0) {
System.out.print(" ");
}
long sum = 0;
for(int p = 0; p < m; p++){
sum += mtx1[i][p] * mtx2[p][k];
}
System.out.print(sum);
}
System.out.println();
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
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,
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,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
17,
30,
4,
18,
13,
17,
4,
18,
13,
18,
18,
13,
13,
13,
4,
18,
13,
17,
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
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
32,
33
],
[
11,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
40,
41
],
[
11,
42
],
[
42,
43
],
[
42,
44
],
[
11,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
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
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
73,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
83,
84
],
[
11,
85
],
[
85,
86
],
[
85,
87
],
[
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
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
116,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
125,
126
],
[
126,
127
],
[
11,
128
],
[
128,
129
],
[
128,
130
],
[
11,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
138,
139
],
[
138,
140
],
[
133,
141
],
[
141,
142
],
[
142,
143
],
[
133,
144
],
[
145,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
146,
151
],
[
151,
152
],
[
151,
153
],
[
146,
154
],
[
154,
155
],
[
155,
156
],
[
146,
157
],
[
158,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
159,
164
],
[
164,
165
],
[
164,
166
],
[
159,
167
],
[
167,
168
],
[
168,
169
],
[
159,
170
],
[
171,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
173,
177
],
[
172,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
178,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
184,
188
],
[
158,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
189,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
194,
197
],
[
158,
198
],
[
198,
199
],
[
199,
200
],
[
198,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
145,
206
],
[
206,
207
],
[
207,
208
],
[
206,
209
],
[
11,
210
],
[
210,
211
],
[
211,
212
],
[
9,
213
],
[
213,
214
]
] | [
"import java.util.*;\nimport java.io.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n\n int n = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n int l = Integer.parseInt(sc.next());\n\n int[][] A = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n int[][] B = new int[m][l];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n long[][] C = new long[n][l];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n for (int k = 0; k < m; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n if (j != 0) {\n out.print(\" \");\n }\n out.print(C[i][j]);\n }\n out.printf(\"\\n\");\n }\n\n out.flush();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n\n int n = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n int l = Integer.parseInt(sc.next());\n\n int[][] A = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n int[][] B = new int[m][l];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n long[][] C = new long[n][l];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n for (int k = 0; k < m; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n if (j != 0) {\n out.print(\" \");\n }\n out.print(C[i][j]);\n }\n out.printf(\"\\n\");\n }\n\n out.flush();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n\n int n = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n int l = Integer.parseInt(sc.next());\n\n int[][] A = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n int[][] B = new int[m][l];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n long[][] C = new long[n][l];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n for (int k = 0; k < m; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n if (j != 0) {\n out.print(\" \");\n }\n out.print(C[i][j]);\n }\n out.printf(\"\\n\");\n }\n\n out.flush();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n\n int n = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n int l = Integer.parseInt(sc.next());\n\n int[][] A = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n int[][] B = new int[m][l];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n long[][] C = new long[n][l];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n for (int k = 0; k < m; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n if (j != 0) {\n out.print(\" \");\n }\n out.print(C[i][j]);\n }\n out.printf(\"\\n\");\n }\n\n out.flush();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"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 l = Integer.parseInt(sc.next());",
"l",
"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++) {\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",
"int[][] B = new int[m][l];",
"B",
"new int[m][l]",
"m",
"l",
"for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(sc.next());\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(sc.next());\n }\n }",
"{\n for (int j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(sc.next());\n }\n }",
"for (int j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(sc.next());\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n B[i][j] = Integer.parseInt(sc.next());\n }",
"{\n B[i][j] = Integer.parseInt(sc.next());\n }",
"B[i][j] = Integer.parseInt(sc.next())",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"long[][] C = new long[n][l];",
"C",
"new long[n][l]",
"n",
"l",
"for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n for (int k = 0; k < m; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n if (j != 0) {\n out.print(\" \");\n }\n out.print(C[i][j]);\n }\n out.printf(\"\\n\");\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < l; j++) {\n for (int k = 0; k < m; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n if (j != 0) {\n out.print(\" \");\n }\n out.print(C[i][j]);\n }\n out.printf(\"\\n\");\n }",
"{\n for (int j = 0; j < l; j++) {\n for (int k = 0; k < m; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n if (j != 0) {\n out.print(\" \");\n }\n out.print(C[i][j]);\n }\n out.printf(\"\\n\");\n }",
"for (int j = 0; j < l; j++) {\n for (int k = 0; k < m; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n if (j != 0) {\n out.print(\" \");\n }\n out.print(C[i][j]);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n for (int k = 0; k < m; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n if (j != 0) {\n out.print(\" \");\n }\n out.print(C[i][j]);\n }",
"{\n for (int k = 0; k < m; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n if (j != 0) {\n out.print(\" \");\n }\n out.print(C[i][j]);\n }",
"for (int k = 0; k < m; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"{\n C[i][j] += A[i][k] * B[k][j];\n }",
"{\n C[i][j] += A[i][k] * B[k][j];\n }",
"C[i][j] += A[i][k] * B[k][j]",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"A[i][k] * B[k][j]",
"A[i][k]",
"A[i]",
"A",
"i",
"k",
"B[k][j]",
"B[k]",
"B",
"k",
"j",
"if (j != 0) {\n out.print(\" \");\n }",
"j != 0",
"j",
"0",
"{\n out.print(\" \");\n }",
"out.print(\" \")",
"out.print",
"out",
"\" \"",
"out.print(C[i][j])",
"out.print",
"out",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"out.printf(\"\\n\")",
"out.printf",
"out",
"\"\\n\"",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args"
] | import java.util.*;
import java.io.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
PrintWriter out = new PrintWriter(System.out);
int n = Integer.parseInt(sc.next());
int m = Integer.parseInt(sc.next());
int l = 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][l];
for (int i = 0; i < m; i++) {
for (int j = 0; j < l; j++) {
B[i][j] = Integer.parseInt(sc.next());
}
}
long[][] C = new long[n][l];
for (int i = 0; i < n; i++) {
for (int j = 0; j < l; j++) {
for (int k = 0; k < m; k++) {
C[i][j] += A[i][k] * B[k][j];
}
if (j != 0) {
out.print(" ");
}
out.print(C[i][j]);
}
out.printf("\n");
}
out.flush();
}
}
|
[
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,
0,
13,
4,
18,
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,
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,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
200,
5
],
[
200,
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
],
[
32,
33
],
[
33,
34
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
8,
40
],
[
40,
41
],
[
40,
42
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
58,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
8,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
80,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
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
],
[
107,
111
],
[
106,
112
],
[
112,
113
],
[
113,
114
],
[
8,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
120,
121
],
[
120,
122
],
[
115,
123
],
[
123,
124
],
[
124,
125
],
[
115,
126
],
[
127,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
133,
134
],
[
133,
135
],
[
128,
136
],
[
136,
137
],
[
137,
138
],
[
128,
139
],
[
140,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
144,
149
],
[
149,
150
],
[
149,
151
],
[
144,
152
],
[
152,
153
],
[
153,
154
],
[
144,
155
],
[
156,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
159,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
140,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
170,
175
],
[
140,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
179,
181
],
[
176,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
182,
187
],
[
127,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
188,
193
],
[
8,
194
],
[
194,
195
],
[
195,
196
],
[
6,
197
],
[
197,
198
],
[
0,
199
],
[
199,
200
],
[
199,
201
]
] | [
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n,m,l;\n long c;\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n for(int i=0;i < n;i++){\n for(int j=0;j < m;j++){\n a[i][j] = sc.nextInt();\n }\n }\n for(int i=0;i < m;i++){\n for(int j=0;j < l;j++){\n b[i][j] = sc.nextInt();\n }\n }\n\n for(int i=0;i < n;i++){\n for(int j=0;j < l;j++){\n c = 0L;\n for(int k=0;k < m;k++){\n c += a[i][k]*b[k][j];\n }\n System.out.print(c);\n if(j != l-1)System.out.print(\" \");\n }\n System.out.println(\"\");\n }\n sc.close();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n,m,l;\n long c;\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n for(int i=0;i < n;i++){\n for(int j=0;j < m;j++){\n a[i][j] = sc.nextInt();\n }\n }\n for(int i=0;i < m;i++){\n for(int j=0;j < l;j++){\n b[i][j] = sc.nextInt();\n }\n }\n\n for(int i=0;i < n;i++){\n for(int j=0;j < l;j++){\n c = 0L;\n for(int k=0;k < m;k++){\n c += a[i][k]*b[k][j];\n }\n System.out.print(c);\n if(j != l-1)System.out.print(\" \");\n }\n System.out.println(\"\");\n }\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n,m,l;\n long c;\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n for(int i=0;i < n;i++){\n for(int j=0;j < m;j++){\n a[i][j] = sc.nextInt();\n }\n }\n for(int i=0;i < m;i++){\n for(int j=0;j < l;j++){\n b[i][j] = sc.nextInt();\n }\n }\n\n for(int i=0;i < n;i++){\n for(int j=0;j < l;j++){\n c = 0L;\n for(int k=0;k < m;k++){\n c += a[i][k]*b[k][j];\n }\n System.out.print(c);\n if(j != l-1)System.out.print(\" \");\n }\n System.out.println(\"\");\n }\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n,m,l;\n long c;\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n for(int i=0;i < n;i++){\n for(int j=0;j < m;j++){\n a[i][j] = sc.nextInt();\n }\n }\n for(int i=0;i < m;i++){\n for(int j=0;j < l;j++){\n b[i][j] = sc.nextInt();\n }\n }\n\n for(int i=0;i < n;i++){\n for(int j=0;j < l;j++){\n c = 0L;\n for(int k=0;k < m;k++){\n c += a[i][k]*b[k][j];\n }\n System.out.print(c);\n if(j != l-1)System.out.print(\" \");\n }\n System.out.println(\"\");\n }\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n",
"n",
"m",
"m",
"l;",
"l",
"long c;",
"c",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"m = sc.nextInt()",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"l = sc.nextInt()",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] a = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[][] b = new int[m][l];",
"b",
"new int[m][l]",
"m",
"l",
"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 for(int j=0;j < l;j++){\n b[i][j] = sc.nextInt();\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n for(int j=0;j < l;j++){\n b[i][j] = sc.nextInt();\n }\n }",
"{\n for(int j=0;j < l;j++){\n b[i][j] = sc.nextInt();\n }\n }",
"for(int j=0;j < l;j++){\n b[i][j] = sc.nextInt();\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n b[i][j] = sc.nextInt();\n }",
"{\n b[i][j] = sc.nextInt();\n }",
"b[i][j] = sc.nextInt()",
"b[i][j]",
"b[i]",
"b",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i < n;i++){\n for(int j=0;j < l;j++){\n c = 0L;\n for(int k=0;k < m;k++){\n c += a[i][k]*b[k][j];\n }\n System.out.print(c);\n if(j != l-1)System.out.print(\" \");\n }\n System.out.println(\"\");\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j=0;j < l;j++){\n c = 0L;\n for(int k=0;k < m;k++){\n c += a[i][k]*b[k][j];\n }\n System.out.print(c);\n if(j != l-1)System.out.print(\" \");\n }\n System.out.println(\"\");\n }",
"{\n for(int j=0;j < l;j++){\n c = 0L;\n for(int k=0;k < m;k++){\n c += a[i][k]*b[k][j];\n }\n System.out.print(c);\n if(j != l-1)System.out.print(\" \");\n }\n System.out.println(\"\");\n }",
"for(int j=0;j < l;j++){\n c = 0L;\n for(int k=0;k < m;k++){\n c += a[i][k]*b[k][j];\n }\n System.out.print(c);\n if(j != l-1)System.out.print(\" \");\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n c = 0L;\n for(int k=0;k < m;k++){\n c += a[i][k]*b[k][j];\n }\n System.out.print(c);\n if(j != l-1)System.out.print(\" \");\n }",
"{\n c = 0L;\n for(int k=0;k < m;k++){\n c += a[i][k]*b[k][j];\n }\n System.out.print(c);\n if(j != l-1)System.out.print(\" \");\n }",
"c = 0L",
"c",
"0L",
"for(int k=0;k < m;k++){\n c += a[i][k]*b[k][j];\n }",
"int k=0;",
"int k=0;",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"{\n c += a[i][k]*b[k][j];\n }",
"{\n c += a[i][k]*b[k][j];\n }",
"c += a[i][k]*b[k][j]",
"c",
"a[i][k]*b[k][j]",
"a[i][k]",
"a[i]",
"a",
"i",
"k",
"b[k][j]",
"b[k]",
"b",
"k",
"j",
"System.out.print(c)",
"System.out.print",
"System.out",
"System",
"System.out",
"c",
"if(j != l-1)System.out.print(\" \");",
"j != l-1",
"j",
"l-1",
"l",
"1",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n,m,l;\n long c;\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n for(int i=0;i < n;i++){\n for(int j=0;j < m;j++){\n a[i][j] = sc.nextInt();\n }\n }\n for(int i=0;i < m;i++){\n for(int j=0;j < l;j++){\n b[i][j] = sc.nextInt();\n }\n }\n\n for(int i=0;i < n;i++){\n for(int j=0;j < l;j++){\n c = 0L;\n for(int k=0;k < m;k++){\n c += a[i][k]*b[k][j];\n }\n System.out.print(c);\n if(j != l-1)System.out.print(\" \");\n }\n System.out.println(\"\");\n }\n sc.close();\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n,m,l;\n long c;\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n for(int i=0;i < n;i++){\n for(int j=0;j < m;j++){\n a[i][j] = sc.nextInt();\n }\n }\n for(int i=0;i < m;i++){\n for(int j=0;j < l;j++){\n b[i][j] = sc.nextInt();\n }\n }\n\n for(int i=0;i < n;i++){\n for(int j=0;j < l;j++){\n c = 0L;\n for(int k=0;k < m;k++){\n c += a[i][k]*b[k][j];\n }\n System.out.print(c);\n if(j != l-1)System.out.print(\" \");\n }\n System.out.println(\"\");\n }\n sc.close();\n }\n}",
"Main"
] | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n,m,l;
long c;
n = sc.nextInt();
m = sc.nextInt();
l = sc.nextInt();
int[][] a = new int[n][m];
int[][] b = new int[m][l];
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++){
for(int j=0;j < l;j++){
b[i][j] = sc.nextInt();
}
}
for(int i=0;i < n;i++){
for(int j=0;j < l;j++){
c = 0L;
for(int k=0;k < m;k++){
c += a[i][k]*b[k][j];
}
System.out.print(c);
if(j != l-1)System.out.print(" ");
}
System.out.println("");
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
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,
41,
13,
20,
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,
4,
18,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
13,
17,
30,
4,
18,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
198,
5
],
[
198,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
10,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
10,
29
],
[
29,
30
],
[
29,
31
],
[
10,
34
],
[
34,
35
],
[
34,
36
],
[
10,
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
],
[
10,
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
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
87,
95
],
[
95,
96
],
[
96,
97
],
[
87,
98
],
[
99,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
100,
106
],
[
106,
107
],
[
107,
108
],
[
10,
109
],
[
109,
110
],
[
109,
111
],
[
10,
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
],
[
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
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
137,
167
],
[
167,
168
],
[
168,
169
],
[
167,
170
],
[
137,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
174,
176
],
[
171,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
178,
181
],
[
171,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
183,
186
],
[
10,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
187,
192
],
[
192,
193
],
[
193,
194
],
[
6,
195
],
[
195,
196
],
[
0,
197
],
[
197,
198
],
[
197,
199
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\ttry (Scanner sc = new Scanner(System.in);) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\tint m = sc.nextInt();\n\t\t\tint l = sc.nextInt();\n\t\t\t\n\t\t\tlong a[][] = new long[n][m];\n\t\t\tlong b[][] = new long[m][l];\n\t\t\t\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\ta[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tif(j < l - 1) {\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(sb.toString());\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\ttry (Scanner sc = new Scanner(System.in);) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\tint m = sc.nextInt();\n\t\t\tint l = sc.nextInt();\n\t\t\t\n\t\t\tlong a[][] = new long[n][m];\n\t\t\tlong b[][] = new long[m][l];\n\t\t\t\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\ta[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tif(j < l - 1) {\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(sb.toString());\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\ttry (Scanner sc = new Scanner(System.in);) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\tint m = sc.nextInt();\n\t\t\tint l = sc.nextInt();\n\t\t\t\n\t\t\tlong a[][] = new long[n][m];\n\t\t\tlong b[][] = new long[m][l];\n\t\t\t\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\ta[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tif(j < l - 1) {\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(sb.toString());\n\t\t}\n\t}",
"main",
"{\n\n\t\ttry (Scanner sc = new Scanner(System.in);) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\tint m = sc.nextInt();\n\t\t\tint l = sc.nextInt();\n\t\t\t\n\t\t\tlong a[][] = new long[n][m];\n\t\t\tlong b[][] = new long[m][l];\n\t\t\t\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\ta[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tif(j < l - 1) {\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(sb.toString());\n\t\t}\n\t}",
"try (Scanner sc = new Scanner(System.in);) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\tint m = sc.nextInt();\n\t\t\tint l = sc.nextInt();\n\t\t\t\n\t\t\tlong a[][] = new long[n][m];\n\t\t\tlong b[][] = new long[m][l];\n\t\t\t\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\ta[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tif(j < l - 1) {\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(sb.toString());\n\t\t}",
"{\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\tint m = sc.nextInt();\n\t\t\tint l = sc.nextInt();\n\t\t\t\n\t\t\tlong a[][] = new long[n][m];\n\t\t\tlong b[][] = new long[m][l];\n\t\t\t\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\ta[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tif(j < l - 1) {\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(sb.toString());\n\t\t}",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int l = sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long a[][] = new long[n][m];",
"a",
"new long[n][m]",
"n",
"m",
"long b[][] = new long[m][l];",
"b",
"new long[m][l]",
"m",
"l",
"for(int i = 0; i < n; i++) {\n\t\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(int j = 0; j < m; 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(int j = 0; j < m; j++) {\n\t\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}",
"for(int j = 0; j < m; j++) {\n\t\t\t\t\ta[i][j] = sc.nextInt();\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] = 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(int i = 0; i < m; i++) {\n\t\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}",
"for(int j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t\t}",
"{\n\t\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t\t}",
"b[i][j] = sc.nextInt()",
"b[i][j]",
"b[i]",
"b",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"for(int i = 0; i < n; i++) {\n\t\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tif(j < l - 1) {\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tif(j < l - 1) {\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tif(j < l - 1) {\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"for(int j = 0; j < l; j++) {\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tif(j < l - 1) {\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tif(j < l - 1) {\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tif(j < l - 1) {\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}",
"long c = 0;",
"c",
"0",
"for(int k = 0; k < m; k++) {\n\t\t\t\t\t\tc += a[i][k] * b[k][j];\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\tc += a[i][k] * b[k][j];\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t\t}",
"c += a[i][k] * b[k][j]",
"c",
"a[i][k] * b[k][j]",
"a[i][k]",
"a[i]",
"a",
"i",
"k",
"b[k][j]",
"b[k]",
"b",
"k",
"j",
"sb.append(c)",
"sb.append",
"sb",
"c",
"if(j < l - 1) {\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}",
"j < l - 1",
"j",
"l - 1",
"l",
"1",
"{\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t}",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"{\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}",
"sb.append(\"\\n\")",
"sb.append",
"sb",
"\"\\n\"",
"System.out.print(sb.toString())",
"System.out.print",
"System.out",
"System",
"System.out",
"sb.toString()",
"sb.toString",
"sb",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\ttry (Scanner sc = new Scanner(System.in);) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\tint m = sc.nextInt();\n\t\t\tint l = sc.nextInt();\n\t\t\t\n\t\t\tlong a[][] = new long[n][m];\n\t\t\tlong b[][] = new long[m][l];\n\t\t\t\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\ta[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tif(j < l - 1) {\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(sb.toString());\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\ttry (Scanner sc = new Scanner(System.in);) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\tint m = sc.nextInt();\n\t\t\tint l = sc.nextInt();\n\t\t\t\n\t\t\tlong a[][] = new long[n][m];\n\t\t\tlong b[][] = new long[m][l];\n\t\t\t\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\ta[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tif(j < l - 1) {\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(sb.toString());\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner sc = new Scanner(System.in);) {
int n = sc.nextInt();
int m = sc.nextInt();
int l = sc.nextInt();
long a[][] = new long[n][m];
long b[][] = new long[m][l];
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++) {
for(int j = 0; j < l; j++) {
b[i][j] = sc.nextInt();
}
}
StringBuilder sb = new StringBuilder();
for(int i = 0; i < n; i++) {
for(int j = 0; j < l; j++) {
long c = 0;
for(int k = 0; k < m; k++) {
c += a[i][k] * b[k][j];
}
sb.append(c);
if(j < l - 1) {
sb.append(" ");
} else {
sb.append("\n");
}
}
}
System.out.print(sb.toString());
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
200,
5
],
[
200,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
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
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
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
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
112,
120
],
[
120,
121
],
[
121,
122
],
[
112,
123
],
[
124,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
125,
136
],
[
137,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
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
],
[
137,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
168,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
174,
178
],
[
137,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
182,
184
],
[
179,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
186,
191
],
[
124,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
6,
197
],
[
197,
198
],
[
0,
199
],
[
199,
200
],
[
199,
201
]
] | [
"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 l = sc.nextInt();\n\t\t\n\t\tlong[][] A = new long[n][m];\n\t\tlong[][] B = new long[m][l];\n\t\tlong[][] C = new long[n][l];\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] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int j = 0; j < m; j++) {\n\t\t\tfor(int i = 0; i < l; i++) {\n\t\t\t\tB[j][i] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] += (A[i][k] * B[k][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"%d\", C[i][j]);\n\t\t\t\tif(j != (l-1)) {\n\t\t\t\t\tSystem.out.printf(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\t\t\n\t\tlong[][] A = new long[n][m];\n\t\tlong[][] B = new long[m][l];\n\t\tlong[][] C = new long[n][l];\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] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int j = 0; j < m; j++) {\n\t\t\tfor(int i = 0; i < l; i++) {\n\t\t\t\tB[j][i] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] += (A[i][k] * B[k][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"%d\", C[i][j]);\n\t\t\t\tif(j != (l-1)) {\n\t\t\t\t\tSystem.out.printf(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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 = sc.nextInt();\n\t\t\n\t\tlong[][] A = new long[n][m];\n\t\tlong[][] B = new long[m][l];\n\t\tlong[][] C = new long[n][l];\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] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int j = 0; j < m; j++) {\n\t\t\tfor(int i = 0; i < l; i++) {\n\t\t\t\tB[j][i] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] += (A[i][k] * B[k][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"%d\", C[i][j]);\n\t\t\t\tif(j != (l-1)) {\n\t\t\t\t\tSystem.out.printf(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = sc.nextInt();\n\t\t\n\t\tlong[][] A = new long[n][m];\n\t\tlong[][] B = new long[m][l];\n\t\tlong[][] C = new long[n][l];\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] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int j = 0; j < m; j++) {\n\t\t\tfor(int i = 0; i < l; i++) {\n\t\t\t\tB[j][i] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] += (A[i][k] * B[k][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"%d\", C[i][j]);\n\t\t\t\tif(j != (l-1)) {\n\t\t\t\t\tSystem.out.printf(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long[][] A = new long[n][m];",
"A",
"new long[n][m]",
"n",
"m",
"long[][] B = new long[m][l];",
"B",
"new long[m][l]",
"m",
"l",
"long[][] C = new long[n][l];",
"C",
"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\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tA[i][j] = sc.nextInt();\n\t\t\t}",
"A[i][j] = sc.nextInt()",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j = 0; j < m; j++) {\n\t\t\tfor(int i = 0; i < l; i++) {\n\t\t\t\tB[j][i] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\tfor(int i = 0; i < l; i++) {\n\t\t\t\tB[j][i] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int i = 0; i < l; i++) {\n\t\t\t\tB[j][i] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int i = 0; i < l; i++) {\n\t\t\t\tB[j][i] = sc.nextInt();\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < l",
"i",
"l",
"i++",
"i++",
"i",
"{\n\t\t\t\tB[j][i] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tB[j][i] = sc.nextInt();\n\t\t\t}",
"B[j][i] = sc.nextInt()",
"B[j][i]",
"B[j]",
"B",
"j",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] += (A[i][k] * B[k][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"%d\", C[i][j]);\n\t\t\t\tif(j != (l-1)) {\n\t\t\t\t\tSystem.out.printf(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] += (A[i][k] * B[k][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"%d\", C[i][j]);\n\t\t\t\tif(j != (l-1)) {\n\t\t\t\t\tSystem.out.printf(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] += (A[i][k] * B[k][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"%d\", C[i][j]);\n\t\t\t\tif(j != (l-1)) {\n\t\t\t\t\tSystem.out.printf(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for(int j = 0; j < l; j++) {\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] += (A[i][k] * B[k][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"%d\", C[i][j]);\n\t\t\t\tif(j != (l-1)) {\n\t\t\t\t\tSystem.out.printf(\" \");\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] += (A[i][k] * B[k][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"%d\", C[i][j]);\n\t\t\t\tif(j != (l-1)) {\n\t\t\t\t\tSystem.out.printf(\" \");\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] += (A[i][k] * B[k][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"%d\", C[i][j]);\n\t\t\t\tif(j != (l-1)) {\n\t\t\t\t\tSystem.out.printf(\" \");\n\t\t\t\t}\n\t\t\t}",
"for(int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] += (A[i][k] * B[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\tC[i][j] += (A[i][k] * B[k][j]);\n\t\t\t\t}",
"{\n\t\t\t\t\tC[i][j] += (A[i][k] * B[k][j]);\n\t\t\t\t}",
"C[i][j] += (A[i][k] * B[k][j])",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"(A[i][k] * B[k][j])",
"A[i][k]",
"A[i]",
"A",
"i",
"k",
"B[k][j]",
"B[k]",
"B",
"k",
"j",
"System.out.printf(\"%d\", C[i][j])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d\"",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"if(j != (l-1)) {\n\t\t\t\t\tSystem.out.printf(\" \");\n\t\t\t\t}",
"j != (l-1)",
"j",
"(l-1)",
"l",
"1",
"{\n\t\t\t\t\tSystem.out.printf(\" \");\n\t\t\t\t}",
"System.out.printf(\" \")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"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 l = sc.nextInt();\n\t\t\n\t\tlong[][] A = new long[n][m];\n\t\tlong[][] B = new long[m][l];\n\t\tlong[][] C = new long[n][l];\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] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int j = 0; j < m; j++) {\n\t\t\tfor(int i = 0; i < l; i++) {\n\t\t\t\tB[j][i] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] += (A[i][k] * B[k][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"%d\", C[i][j]);\n\t\t\t\tif(j != (l-1)) {\n\t\t\t\t\tSystem.out.printf(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\t\t\n\t\tlong[][] A = new long[n][m];\n\t\tlong[][] B = new long[m][l];\n\t\tlong[][] C = new long[n][l];\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] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int j = 0; j < m; j++) {\n\t\t\tfor(int i = 0; i < l; i++) {\n\t\t\t\tB[j][i] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] += (A[i][k] * B[k][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"%d\", C[i][j]);\n\t\t\t\tif(j != (l-1)) {\n\t\t\t\t\tSystem.out.printf(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = sc.nextInt();
long[][] A = new long[n][m];
long[][] B = new long[m][l];
long[][] C = new long[n][l];
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++) {
for(int i = 0; i < l; i++) {
B[j][i] = sc.nextInt();
}
}
for(int i = 0; i < n; i++) {
for(int j = 0; j < l; j++) {
for(int k = 0; k < m; k++) {
C[i][j] += (A[i][k] * B[k][j]);
}
System.out.printf("%d", C[i][j]);
if(j != (l-1)) {
System.out.printf(" ");
}
}
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,
4,
18,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
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,
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,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
194,
5
],
[
194,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
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
],
[
86,
86
],
[
86,
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
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
100,
106
],
[
106,
107
],
[
107,
108
],
[
8,
109
],
[
109,
110
],
[
110,
111
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
112,
120
],
[
120,
121
],
[
121,
122
],
[
112,
123
],
[
124,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
125,
136
],
[
137,
137
],
[
137,
138
],
[
138,
139
],
[
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
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
137,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
137,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
176,
178
],
[
173,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
180,
185
],
[
124,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
6,
191
],
[
191,
192
],
[
0,
193
],
[
193,
194
],
[
193,
195
]
] | [
"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 l = scan.nextInt();\n\t\tint mat1[][] = new int[n][m];\n\t\tint mat2[][] = new int[m][l];\n\t\tlong res;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tmat1[i][j] = scan.nextInt();\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\tmat2[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tres = 0;\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tres += mat1[i][k] * mat2[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(res);\n\t\t\t\tif(j != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = scan.nextInt();\n\t\tint mat1[][] = new int[n][m];\n\t\tint mat2[][] = new int[m][l];\n\t\tlong res;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tmat1[i][j] = scan.nextInt();\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\tmat2[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tres = 0;\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tres += mat1[i][k] * mat2[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(res);\n\t\t\t\tif(j != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = scan.nextInt();\n\t\tint mat1[][] = new int[n][m];\n\t\tint mat2[][] = new int[m][l];\n\t\tlong res;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tmat1[i][j] = scan.nextInt();\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\tmat2[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tres = 0;\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tres += mat1[i][k] * mat2[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(res);\n\t\t\t\tif(j != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = scan.nextInt();\n\t\tint mat1[][] = new int[n][m];\n\t\tint mat2[][] = new int[m][l];\n\t\tlong res;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tmat1[i][j] = scan.nextInt();\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\tmat2[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tres = 0;\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tres += mat1[i][k] * mat2[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(res);\n\t\t\t\tif(j != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = scan.nextInt();",
"l",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int mat1[][] = new int[n][m];",
"mat1",
"new int[n][m]",
"n",
"m",
"int mat2[][] = new int[m][l];",
"mat2",
"new int[m][l]",
"m",
"l",
"long res;",
"res",
"for(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tmat1[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\tmat1[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\tmat1[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0; j < m; j++){\n\t\t\t\tmat1[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\tmat1[i][j] = scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\tmat1[i][j] = scan.nextInt();\n\t\t\t}",
"mat1[i][j] = scan.nextInt()",
"mat1[i][j]",
"mat1[i]",
"mat1",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 0; i < m; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tmat2[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tmat2[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tmat2[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0; j < l; j++){\n\t\t\t\tmat2[i][j] = scan.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tmat2[i][j] = scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\tmat2[i][j] = scan.nextInt();\n\t\t\t}",
"mat2[i][j] = scan.nextInt()",
"mat2[i][j]",
"mat2[i]",
"mat2",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"scan.close()",
"scan.close",
"scan",
"for(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tres = 0;\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tres += mat1[i][k] * mat2[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(res);\n\t\t\t\tif(j != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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\tres = 0;\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tres += mat1[i][k] * mat2[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(res);\n\t\t\t\tif(j != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tres = 0;\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tres += mat1[i][k] * mat2[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(res);\n\t\t\t\tif(j != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for(int j = 0; j < l; j++){\n\t\t\t\tres = 0;\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tres += mat1[i][k] * mat2[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(res);\n\t\t\t\tif(j != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tres = 0;\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tres += mat1[i][k] * mat2[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(res);\n\t\t\t\tif(j != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tres = 0;\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tres += mat1[i][k] * mat2[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(res);\n\t\t\t\tif(j != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"res = 0",
"res",
"0",
"for(int k = 0; k < m; k++){\n\t\t\t\t\tres += mat1[i][k] * mat2[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\tres += mat1[i][k] * mat2[k][j];\n\t\t\t\t}",
"{\n\t\t\t\t\tres += mat1[i][k] * mat2[k][j];\n\t\t\t\t}",
"res += mat1[i][k] * mat2[k][j]",
"res",
"mat1[i][k] * mat2[k][j]",
"mat1[i][k]",
"mat1[i]",
"mat1",
"i",
"k",
"mat2[k][j]",
"mat2[k]",
"mat2",
"k",
"j",
"System.out.print(res)",
"System.out.print",
"System.out",
"System",
"System.out",
"res",
"if(j != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"j != l - 1",
"j",
"l - 1",
"l",
"1",
"{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"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 l = scan.nextInt();\n\t\tint mat1[][] = new int[n][m];\n\t\tint mat2[][] = new int[m][l];\n\t\tlong res;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tmat1[i][j] = scan.nextInt();\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\tmat2[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tres = 0;\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tres += mat1[i][k] * mat2[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(res);\n\t\t\t\tif(j != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = scan.nextInt();\n\t\tint mat1[][] = new int[n][m];\n\t\tint mat2[][] = new int[m][l];\n\t\tlong res;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < m; j++){\n\t\t\t\tmat1[i][j] = scan.nextInt();\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\tmat2[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tres = 0;\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tres += mat1[i][k] * mat2[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(res);\n\t\t\t\tif(j != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = scan.nextInt();
int mat1[][] = new int[n][m];
int mat2[][] = new int[m][l];
long res;
for(int i = 0; i < n; i++){
for(int j = 0; j < m; j++){
mat1[i][j] = scan.nextInt();
}
}
for(int i = 0; i < m; i++){
for(int j = 0; j < l; j++){
mat2[i][j] = scan.nextInt();
}
}
scan.close();
for(int i = 0; i < n; i++){
for(int j = 0; j < l; j++){
res = 0;
for(int k = 0; k < m; k++){
res += mat1[i][k] * mat2[k][j];
}
System.out.print(res);
if(j != l - 1){
System.out.print(" ");
}
}
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,
4,
18,
13,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
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
],
[
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
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
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
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
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
112,
120
],
[
120,
121
],
[
121,
122
],
[
112,
123
],
[
124,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
125,
136
],
[
137,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
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
],
[
137,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
173,
177
],
[
137,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
181,
183
],
[
178,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
185,
190
],
[
124,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
6,
196
],
[
196,
197
],
[
0,
198
],
[
198,
199
],
[
198,
200
]
] | [
"/**\nn×m の行列 A と m×l の行列 B を入力し、それらの積である n×l の\n を出力するプログラムを作成してください。行列 C の各要素 c ij は次の式で得られます:\n\n 1行目に n 、m 、l が空白区切りで与えられます。\n\n続く行に n×m の行列 A と m×l の行列 B が与えられます。\n\n */\n\n//スキャナつかうため\n\nimport java.util.Scanner;\n\npublic class Main {\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 3つの数値を受け取る\n\t\tint intN = sc.nextInt();\n\t\tint intM = sc.nextInt();\n\t\tint intL = sc.nextInt();\n\t\t// 受け取った数値で配列をつくる\n\t\t// Aの行列\n\t\tint[][] gyoua = new int[intN][intM];\n\t\t// Bの行列\n\t\tint[][] gyoub = new int[intM][intL];\n\t\t// Cの行列\n\t\tlong[][] gyouc = new long[intN][intL];\n\t\t// 数値をAの配列の数受け取る\n\t\tfor (int i = 0; i < intN; i++) {\n\t\t\tfor (int j = 0; j < intM; j++) {\n\t\t\t\tgyoua[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t// Bの配列の数数値を受け取る\n\t\tfor (int i = 0; i < intM; i++) {\n\t\t\tfor (int j = 0; j < intL; j++) {\n\t\t\t\tgyoub[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t// 計算\n\t\tfor (int i = 0; i < intN; i++) {\n\t\t\tfor (int j = 0; j < intL; j++) {\n\n\t\t\t\tfor (int k = 0; k < intM; k++) {\n\t\t\t\t\t// Cの配列に計算結果を入れていく\n\t\t\t\t\tgyouc[i][j] += gyoua[i][k] * gyoub[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(gyouc[i][j]);\n\t\t\t\tif (j != intL - 1) {\n\t\t\t\t\t// 空白\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// 改行\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 3つの数値を受け取る\n\t\tint intN = sc.nextInt();\n\t\tint intM = sc.nextInt();\n\t\tint intL = sc.nextInt();\n\t\t// 受け取った数値で配列をつくる\n\t\t// Aの行列\n\t\tint[][] gyoua = new int[intN][intM];\n\t\t// Bの行列\n\t\tint[][] gyoub = new int[intM][intL];\n\t\t// Cの行列\n\t\tlong[][] gyouc = new long[intN][intL];\n\t\t// 数値をAの配列の数受け取る\n\t\tfor (int i = 0; i < intN; i++) {\n\t\t\tfor (int j = 0; j < intM; j++) {\n\t\t\t\tgyoua[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t// Bの配列の数数値を受け取る\n\t\tfor (int i = 0; i < intM; i++) {\n\t\t\tfor (int j = 0; j < intL; j++) {\n\t\t\t\tgyoub[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t// 計算\n\t\tfor (int i = 0; i < intN; i++) {\n\t\t\tfor (int j = 0; j < intL; j++) {\n\n\t\t\t\tfor (int k = 0; k < intM; k++) {\n\t\t\t\t\t// Cの配列に計算結果を入れていく\n\t\t\t\t\tgyouc[i][j] += gyoua[i][k] * gyoub[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(gyouc[i][j]);\n\t\t\t\tif (j != intL - 1) {\n\t\t\t\t\t// 空白\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// 改行\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}\n}",
"Main",
"// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 3つの数値を受け取る\n\t\tint intN = sc.nextInt();\n\t\tint intM = sc.nextInt();\n\t\tint intL = sc.nextInt();\n\t\t// 受け取った数値で配列をつくる\n\t\t// Aの行列\n\t\tint[][] gyoua = new int[intN][intM];\n\t\t// Bの行列\n\t\tint[][] gyoub = new int[intM][intL];\n\t\t// Cの行列\n\t\tlong[][] gyouc = new long[intN][intL];\n\t\t// 数値をAの配列の数受け取る\n\t\tfor (int i = 0; i < intN; i++) {\n\t\t\tfor (int j = 0; j < intM; j++) {\n\t\t\t\tgyoua[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t// Bの配列の数数値を受け取る\n\t\tfor (int i = 0; i < intM; i++) {\n\t\t\tfor (int j = 0; j < intL; j++) {\n\t\t\t\tgyoub[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t// 計算\n\t\tfor (int i = 0; i < intN; i++) {\n\t\t\tfor (int j = 0; j < intL; j++) {\n\n\t\t\t\tfor (int k = 0; k < intM; k++) {\n\t\t\t\t\t// Cの配列に計算結果を入れていく\n\t\t\t\t\tgyouc[i][j] += gyoua[i][k] * gyoub[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(gyouc[i][j]);\n\t\t\t\tif (j != intL - 1) {\n\t\t\t\t\t// 空白\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// 改行\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}",
"main",
"{\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 3つの数値を受け取る\n\t\tint intN = sc.nextInt();\n\t\tint intM = sc.nextInt();\n\t\tint intL = sc.nextInt();\n\t\t// 受け取った数値で配列をつくる\n\t\t// Aの行列\n\t\tint[][] gyoua = new int[intN][intM];\n\t\t// Bの行列\n\t\tint[][] gyoub = new int[intM][intL];\n\t\t// Cの行列\n\t\tlong[][] gyouc = new long[intN][intL];\n\t\t// 数値をAの配列の数受け取る\n\t\tfor (int i = 0; i < intN; i++) {\n\t\t\tfor (int j = 0; j < intM; j++) {\n\t\t\t\tgyoua[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t// Bの配列の数数値を受け取る\n\t\tfor (int i = 0; i < intM; i++) {\n\t\t\tfor (int j = 0; j < intL; j++) {\n\t\t\t\tgyoub[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t// 計算\n\t\tfor (int i = 0; i < intN; i++) {\n\t\t\tfor (int j = 0; j < intL; j++) {\n\n\t\t\t\tfor (int k = 0; k < intM; k++) {\n\t\t\t\t\t// Cの配列に計算結果を入れていく\n\t\t\t\t\tgyouc[i][j] += gyoua[i][k] * gyoub[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(gyouc[i][j]);\n\t\t\t\tif (j != intL - 1) {\n\t\t\t\t\t// 空白\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// 改行\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int intN = sc.nextInt();",
"intN",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int intM = sc.nextInt();",
"intM",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int intL = sc.nextInt();",
"intL",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] gyoua = new int[intN][intM];",
"gyoua",
"new int[intN][intM]",
"intN",
"intM",
"int[][] gyoub = new int[intM][intL];",
"gyoub",
"new int[intM][intL]",
"intM",
"intL",
"long[][] gyouc = new long[intN][intL];",
"gyouc",
"new long[intN][intL]",
"intN",
"intL",
"for (int i = 0; i < intN; i++) {\n\t\t\tfor (int j = 0; j < intM; j++) {\n\t\t\t\tgyoua[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < intN",
"i",
"intN",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < intM; j++) {\n\t\t\t\tgyoua[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < intM; j++) {\n\t\t\t\tgyoua[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for (int j = 0; j < intM; j++) {\n\t\t\t\tgyoua[i][j] = sc.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < intM",
"j",
"intM",
"j++",
"j++",
"j",
"{\n\t\t\t\tgyoua[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tgyoua[i][j] = sc.nextInt();\n\t\t\t}",
"gyoua[i][j] = sc.nextInt()",
"gyoua[i][j]",
"gyoua[i]",
"gyoua",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < intM; i++) {\n\t\t\tfor (int j = 0; j < intL; j++) {\n\t\t\t\tgyoub[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < intM",
"i",
"intM",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < intL; j++) {\n\t\t\t\tgyoub[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < intL; j++) {\n\t\t\t\tgyoub[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for (int j = 0; j < intL; j++) {\n\t\t\t\tgyoub[i][j] = sc.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < intL",
"j",
"intL",
"j++",
"j++",
"j",
"{\n\t\t\t\tgyoub[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tgyoub[i][j] = sc.nextInt();\n\t\t\t}",
"gyoub[i][j] = sc.nextInt()",
"gyoub[i][j]",
"gyoub[i]",
"gyoub",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < intN; i++) {\n\t\t\tfor (int j = 0; j < intL; j++) {\n\n\t\t\t\tfor (int k = 0; k < intM; k++) {\n\t\t\t\t\t// Cの配列に計算結果を入れていく\n\t\t\t\t\tgyouc[i][j] += gyoua[i][k] * gyoub[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(gyouc[i][j]);\n\t\t\t\tif (j != intL - 1) {\n\t\t\t\t\t// 空白\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// 改行\n\t\t\tSystem.out.println();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < intN",
"i",
"intN",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < intL; j++) {\n\n\t\t\t\tfor (int k = 0; k < intM; k++) {\n\t\t\t\t\t// Cの配列に計算結果を入れていく\n\t\t\t\t\tgyouc[i][j] += gyoua[i][k] * gyoub[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(gyouc[i][j]);\n\t\t\t\tif (j != intL - 1) {\n\t\t\t\t\t// 空白\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// 改行\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < intL; j++) {\n\n\t\t\t\tfor (int k = 0; k < intM; k++) {\n\t\t\t\t\t// Cの配列に計算結果を入れていく\n\t\t\t\t\tgyouc[i][j] += gyoua[i][k] * gyoub[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(gyouc[i][j]);\n\t\t\t\tif (j != intL - 1) {\n\t\t\t\t\t// 空白\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// 改行\n\t\t\tSystem.out.println();\n\t\t}",
"for (int j = 0; j < intL; j++) {\n\n\t\t\t\tfor (int k = 0; k < intM; k++) {\n\t\t\t\t\t// Cの配列に計算結果を入れていく\n\t\t\t\t\tgyouc[i][j] += gyoua[i][k] * gyoub[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(gyouc[i][j]);\n\t\t\t\tif (j != intL - 1) {\n\t\t\t\t\t// 空白\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < intL",
"j",
"intL",
"j++",
"j++",
"j",
"{\n\n\t\t\t\tfor (int k = 0; k < intM; k++) {\n\t\t\t\t\t// Cの配列に計算結果を入れていく\n\t\t\t\t\tgyouc[i][j] += gyoua[i][k] * gyoub[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(gyouc[i][j]);\n\t\t\t\tif (j != intL - 1) {\n\t\t\t\t\t// 空白\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"{\n\n\t\t\t\tfor (int k = 0; k < intM; k++) {\n\t\t\t\t\t// Cの配列に計算結果を入れていく\n\t\t\t\t\tgyouc[i][j] += gyoua[i][k] * gyoub[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(gyouc[i][j]);\n\t\t\t\tif (j != intL - 1) {\n\t\t\t\t\t// 空白\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"for (int k = 0; k < intM; k++) {\n\t\t\t\t\t// Cの配列に計算結果を入れていく\n\t\t\t\t\tgyouc[i][j] += gyoua[i][k] * gyoub[k][j];\n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < intM",
"k",
"intM",
"k++",
"k++",
"k",
"{\n\t\t\t\t\t// Cの配列に計算結果を入れていく\n\t\t\t\t\tgyouc[i][j] += gyoua[i][k] * gyoub[k][j];\n\t\t\t\t}",
"{\n\t\t\t\t\t// Cの配列に計算結果を入れていく\n\t\t\t\t\tgyouc[i][j] += gyoua[i][k] * gyoub[k][j];\n\t\t\t\t}",
"gyouc[i][j] += gyoua[i][k] * gyoub[k][j]",
"gyouc[i][j]",
"gyouc[i]",
"gyouc",
"i",
"j",
"gyoua[i][k] * gyoub[k][j]",
"gyoua[i][k]",
"gyoua[i]",
"gyoua",
"i",
"k",
"gyoub[k][j]",
"gyoub[k]",
"gyoub",
"k",
"j",
"System.out.print(gyouc[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"gyouc[i][j]",
"gyouc[i]",
"gyouc",
"i",
"j",
"if (j != intL - 1) {\n\t\t\t\t\t// 空白\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"j != intL - 1",
"j",
"intL - 1",
"intL",
"1",
"{\n\t\t\t\t\t// 空白\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 3つの数値を受け取る\n\t\tint intN = sc.nextInt();\n\t\tint intM = sc.nextInt();\n\t\tint intL = sc.nextInt();\n\t\t// 受け取った数値で配列をつくる\n\t\t// Aの行列\n\t\tint[][] gyoua = new int[intN][intM];\n\t\t// Bの行列\n\t\tint[][] gyoub = new int[intM][intL];\n\t\t// Cの行列\n\t\tlong[][] gyouc = new long[intN][intL];\n\t\t// 数値をAの配列の数受け取る\n\t\tfor (int i = 0; i < intN; i++) {\n\t\t\tfor (int j = 0; j < intM; j++) {\n\t\t\t\tgyoua[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t// Bの配列の数数値を受け取る\n\t\tfor (int i = 0; i < intM; i++) {\n\t\t\tfor (int j = 0; j < intL; j++) {\n\t\t\t\tgyoub[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t// 計算\n\t\tfor (int i = 0; i < intN; i++) {\n\t\t\tfor (int j = 0; j < intL; j++) {\n\n\t\t\t\tfor (int k = 0; k < intM; k++) {\n\t\t\t\t\t// Cの配列に計算結果を入れていく\n\t\t\t\t\tgyouc[i][j] += gyoua[i][k] * gyoub[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(gyouc[i][j]);\n\t\t\t\tif (j != intL - 1) {\n\t\t\t\t\t// 空白\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// 改行\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}\n}",
"public class Main {\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 3つの数値を受け取る\n\t\tint intN = sc.nextInt();\n\t\tint intM = sc.nextInt();\n\t\tint intL = sc.nextInt();\n\t\t// 受け取った数値で配列をつくる\n\t\t// Aの行列\n\t\tint[][] gyoua = new int[intN][intM];\n\t\t// Bの行列\n\t\tint[][] gyoub = new int[intM][intL];\n\t\t// Cの行列\n\t\tlong[][] gyouc = new long[intN][intL];\n\t\t// 数値をAの配列の数受け取る\n\t\tfor (int i = 0; i < intN; i++) {\n\t\t\tfor (int j = 0; j < intM; j++) {\n\t\t\t\tgyoua[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t// Bの配列の数数値を受け取る\n\t\tfor (int i = 0; i < intM; i++) {\n\t\t\tfor (int j = 0; j < intL; j++) {\n\t\t\t\tgyoub[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t// 計算\n\t\tfor (int i = 0; i < intN; i++) {\n\t\t\tfor (int j = 0; j < intL; j++) {\n\n\t\t\t\tfor (int k = 0; k < intM; k++) {\n\t\t\t\t\t// Cの配列に計算結果を入れていく\n\t\t\t\t\tgyouc[i][j] += gyoua[i][k] * gyoub[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(gyouc[i][j]);\n\t\t\t\tif (j != intL - 1) {\n\t\t\t\t\t// 空白\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// 改行\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}\n}",
"Main"
] | /**
n×m の行列 A と m×l の行列 B を入力し、それらの積である n×l の
を出力するプログラムを作成してください。行列 C の各要素 c ij は次の式で得られます:
1行目に n 、m 、l が空白区切りで与えられます。
続く行に n×m の行列 A と m×l の行列 B が与えられます。
*/
//スキャナつかうため
import java.util.Scanner;
public class Main {
// プログラムのエントリポイント
public static void main(String[] args) {
// 入力ストリームの生成
Scanner sc = new Scanner(System.in);
// 3つの数値を受け取る
int intN = sc.nextInt();
int intM = sc.nextInt();
int intL = sc.nextInt();
// 受け取った数値で配列をつくる
// Aの行列
int[][] gyoua = new int[intN][intM];
// Bの行列
int[][] gyoub = new int[intM][intL];
// Cの行列
long[][] gyouc = new long[intN][intL];
// 数値をAの配列の数受け取る
for (int i = 0; i < intN; i++) {
for (int j = 0; j < intM; j++) {
gyoua[i][j] = sc.nextInt();
}
}
// Bの配列の数数値を受け取る
for (int i = 0; i < intM; i++) {
for (int j = 0; j < intL; j++) {
gyoub[i][j] = sc.nextInt();
}
}
// 計算
for (int i = 0; i < intN; i++) {
for (int j = 0; j < intL; j++) {
for (int k = 0; k < intM; k++) {
// Cの配列に計算結果を入れていく
gyouc[i][j] += gyoua[i][k] * gyoub[k][j];
}
System.out.print(gyouc[i][j]);
if (j != intL - 1) {
// 空白
System.out.print(" ");
}
}
// 改行
System.out.println();
}
}
} |
[
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,
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,
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,
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,
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,
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,
14,
2,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
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
],
[
232,
11
],
[
232,
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
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
47,
49
],
[
14,
50
],
[
50,
51
],
[
50,
52
],
[
14,
55
],
[
55,
56
],
[
55,
57
],
[
14,
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
],
[
14,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
106,
114
],
[
114,
115
],
[
115,
116
],
[
106,
117
],
[
118,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
121,
126
],
[
118,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
127,
135
],
[
135,
136
],
[
136,
137
],
[
127,
138
],
[
139,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
140,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
149,
150
],
[
149,
151
],
[
14,
152
],
[
152,
153
],
[
14,
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
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
167,
175
],
[
175,
176
],
[
176,
177
],
[
167,
178
],
[
179,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
183,
188
],
[
188,
189
],
[
188,
190
],
[
183,
191
],
[
191,
192
],
[
192,
193
],
[
183,
194
],
[
195,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
199,
203
],
[
198,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
204,
208
],
[
179,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
212,
213
],
[
212,
214
],
[
209,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
215,
220
],
[
220,
221
],
[
220,
222
],
[
209,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
223,
228
],
[
12,
229
],
[
229,
230
],
[
0,
231
],
[
231,
232
],
[
231,
233
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str[] = br.readLine().split(\" \");\n int n = Integer.parseInt(str[0]);\n int m = Integer.parseInt(str[1]);\n int l = Integer.parseInt(str[2]);\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n for(int i=0;i<n;i++){\n str = br.readLine().split(\" \");\n for(int j=0;j<m;j++){\n a[i][j] = Integer.parseInt(str[j]);\n }\n }\n for(int i=0;i<m;i++){\n str = br.readLine().split(\" \");\n for(int j=0;j<l;j++){\n b[i][j] = Integer.parseInt(str[j]);\n }\n }\n long result;\n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n result = 0;\n for(int k=0;k<m;k++){\n result += a[i][k] * b[k][j];\n }\n if(j<l-1) System.out.print(result+\" \");\n else System.out.println(result);\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",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str[] = br.readLine().split(\" \");\n int n = Integer.parseInt(str[0]);\n int m = Integer.parseInt(str[1]);\n int l = Integer.parseInt(str[2]);\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n for(int i=0;i<n;i++){\n str = br.readLine().split(\" \");\n for(int j=0;j<m;j++){\n a[i][j] = Integer.parseInt(str[j]);\n }\n }\n for(int i=0;i<m;i++){\n str = br.readLine().split(\" \");\n for(int j=0;j<l;j++){\n b[i][j] = Integer.parseInt(str[j]);\n }\n }\n long result;\n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n result = 0;\n for(int k=0;k<m;k++){\n result += a[i][k] * b[k][j];\n }\n if(j<l-1) System.out.print(result+\" \");\n else System.out.println(result);\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str[] = br.readLine().split(\" \");\n int n = Integer.parseInt(str[0]);\n int m = Integer.parseInt(str[1]);\n int l = Integer.parseInt(str[2]);\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n for(int i=0;i<n;i++){\n str = br.readLine().split(\" \");\n for(int j=0;j<m;j++){\n a[i][j] = Integer.parseInt(str[j]);\n }\n }\n for(int i=0;i<m;i++){\n str = br.readLine().split(\" \");\n for(int j=0;j<l;j++){\n b[i][j] = Integer.parseInt(str[j]);\n }\n }\n long result;\n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n result = 0;\n for(int k=0;k<m;k++){\n result += a[i][k] * b[k][j];\n }\n if(j<l-1) System.out.print(result+\" \");\n else System.out.println(result);\n }\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str[] = br.readLine().split(\" \");\n int n = Integer.parseInt(str[0]);\n int m = Integer.parseInt(str[1]);\n int l = Integer.parseInt(str[2]);\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n for(int i=0;i<n;i++){\n str = br.readLine().split(\" \");\n for(int j=0;j<m;j++){\n a[i][j] = Integer.parseInt(str[j]);\n }\n }\n for(int i=0;i<m;i++){\n str = br.readLine().split(\" \");\n for(int j=0;j<l;j++){\n b[i][j] = Integer.parseInt(str[j]);\n }\n }\n long result;\n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n result = 0;\n for(int k=0;k<m;k++){\n result += a[i][k] * b[k][j];\n }\n if(j<l-1) System.out.print(result+\" \");\n else System.out.println(result);\n }\n }\n }",
"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 l = Integer.parseInt(str[2]);",
"l",
"Integer.parseInt(str[2])",
"Integer.parseInt",
"Integer",
"str[2]",
"str",
"2",
"int[][] a = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[][] b = new int[m][l];",
"b",
"new int[m][l]",
"m",
"l",
"for(int i=0;i<n;i++){\n str = br.readLine().split(\" \");\n for(int j=0;j<m;j++){\n a[i][j] = Integer.parseInt(str[j]);\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n str = br.readLine().split(\" \");\n for(int j=0;j<m;j++){\n a[i][j] = Integer.parseInt(str[j]);\n }\n }",
"{\n str = br.readLine().split(\" \");\n for(int j=0;j<m;j++){\n a[i][j] = Integer.parseInt(str[j]);\n }\n }",
"str = br.readLine().split(\" \")",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(int j=0;j<m;j++){\n a[i][j] = Integer.parseInt(str[j]);\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n a[i][j] = Integer.parseInt(str[j]);\n }",
"{\n a[i][j] = Integer.parseInt(str[j]);\n }",
"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 str = br.readLine().split(\" \");\n for(int j=0;j<l;j++){\n b[i][j] = Integer.parseInt(str[j]);\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n str = br.readLine().split(\" \");\n for(int j=0;j<l;j++){\n b[i][j] = Integer.parseInt(str[j]);\n }\n }",
"{\n str = br.readLine().split(\" \");\n for(int j=0;j<l;j++){\n b[i][j] = Integer.parseInt(str[j]);\n }\n }",
"str = br.readLine().split(\" \")",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(int j=0;j<l;j++){\n b[i][j] = Integer.parseInt(str[j]);\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n b[i][j] = Integer.parseInt(str[j]);\n }",
"{\n b[i][j] = Integer.parseInt(str[j]);\n }",
"b[i][j] = Integer.parseInt(str[j])",
"b[i][j]",
"b[i]",
"b",
"i",
"j",
"Integer.parseInt(str[j])",
"Integer.parseInt",
"Integer",
"str[j]",
"str",
"j",
"long result;",
"result",
"for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n result = 0;\n for(int k=0;k<m;k++){\n result += a[i][k] * b[k][j];\n }\n if(j<l-1) System.out.print(result+\" \");\n else System.out.println(result);\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j=0;j<l;j++){\n result = 0;\n for(int k=0;k<m;k++){\n result += a[i][k] * b[k][j];\n }\n if(j<l-1) System.out.print(result+\" \");\n else System.out.println(result);\n }\n }",
"{\n for(int j=0;j<l;j++){\n result = 0;\n for(int k=0;k<m;k++){\n result += a[i][k] * b[k][j];\n }\n if(j<l-1) System.out.print(result+\" \");\n else System.out.println(result);\n }\n }",
"for(int j=0;j<l;j++){\n result = 0;\n for(int k=0;k<m;k++){\n result += a[i][k] * b[k][j];\n }\n if(j<l-1) System.out.print(result+\" \");\n else System.out.println(result);\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n result = 0;\n for(int k=0;k<m;k++){\n result += a[i][k] * b[k][j];\n }\n if(j<l-1) System.out.print(result+\" \");\n else System.out.println(result);\n }",
"{\n result = 0;\n for(int k=0;k<m;k++){\n result += a[i][k] * b[k][j];\n }\n if(j<l-1) System.out.print(result+\" \");\n else System.out.println(result);\n }",
"result = 0",
"result",
"0",
"for(int k=0;k<m;k++){\n result += a[i][k] * b[k][j];\n }",
"int k=0;",
"int k=0;",
"k",
"0",
"k<m",
"k",
"m",
"k++",
"k++",
"k",
"{\n result += a[i][k] * b[k][j];\n }",
"{\n result += a[i][k] * b[k][j];\n }",
"result += a[i][k] * b[k][j]",
"result",
"a[i][k] * b[k][j]",
"a[i][k]",
"a[i]",
"a",
"i",
"k",
"b[k][j]",
"b[k]",
"b",
"k",
"j",
"if(j<l-1) System.out.print(result+\" \");\n else System.out.println(result);",
"j<l-1",
"j",
"l-1",
"l",
"1",
"System.out.print(result+\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"result+\" \"",
"result",
"\" \"",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str[] = br.readLine().split(\" \");\n int n = Integer.parseInt(str[0]);\n int m = Integer.parseInt(str[1]);\n int l = Integer.parseInt(str[2]);\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n for(int i=0;i<n;i++){\n str = br.readLine().split(\" \");\n for(int j=0;j<m;j++){\n a[i][j] = Integer.parseInt(str[j]);\n }\n }\n for(int i=0;i<m;i++){\n str = br.readLine().split(\" \");\n for(int j=0;j<l;j++){\n b[i][j] = Integer.parseInt(str[j]);\n }\n }\n long result;\n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n result = 0;\n for(int k=0;k<m;k++){\n result += a[i][k] * b[k][j];\n }\n if(j<l-1) System.out.print(result+\" \");\n else System.out.println(result);\n }\n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str[] = br.readLine().split(\" \");\n int n = Integer.parseInt(str[0]);\n int m = Integer.parseInt(str[1]);\n int l = Integer.parseInt(str[2]);\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n for(int i=0;i<n;i++){\n str = br.readLine().split(\" \");\n for(int j=0;j<m;j++){\n a[i][j] = Integer.parseInt(str[j]);\n }\n }\n for(int i=0;i<m;i++){\n str = br.readLine().split(\" \");\n for(int j=0;j<l;j++){\n b[i][j] = Integer.parseInt(str[j]);\n }\n }\n long result;\n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n result = 0;\n for(int k=0;k<m;k++){\n result += a[i][k] * b[k][j];\n }\n if(j<l-1) System.out.print(result+\" \");\n else System.out.println(result);\n }\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 str[] = br.readLine().split(" ");
int n = Integer.parseInt(str[0]);
int m = Integer.parseInt(str[1]);
int l = Integer.parseInt(str[2]);
int[][] a = new int[n][m];
int[][] b = new int[m][l];
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++){
str = br.readLine().split(" ");
for(int j=0;j<l;j++){
b[i][j] = Integer.parseInt(str[j]);
}
}
long result;
for(int i=0;i<n;i++){
for(int j=0;j<l;j++){
result = 0;
for(int k=0;k<m;k++){
result += a[i][k] * b[k][j];
}
if(j<l-1) System.out.print(result+" ");
else System.out.println(result);
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
20,
0,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
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,
4,
18,
13,
13,
13,
4,
18,
13,
4,
18,
13,
0,
13,
4,
18,
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,
4,
18,
18,
13,
13,
4,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
191,
5
],
[
191,
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
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
38,
39
],
[
8,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
46,
47
],
[
8,
48
],
[
48,
49
],
[
48,
50
],
[
8,
51
],
[
51,
52
],
[
51,
53
],
[
8,
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
],
[
80,
83
],
[
80,
84
],
[
80,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
89,
90
],
[
8,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
91,
99
],
[
99,
100
],
[
100,
101
],
[
91,
102
],
[
103,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
109,
110
],
[
109,
111
],
[
104,
112
],
[
112,
113
],
[
113,
114
],
[
104,
115
],
[
116,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
117,
121
],
[
117,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
125,
126
],
[
126,
127
],
[
8,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
130,
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
],
[
147,
155
],
[
155,
156
],
[
156,
157
],
[
147,
158
],
[
159,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
160,
165
],
[
165,
166
],
[
166,
167
],
[
165,
168
],
[
165,
169
],
[
159,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
173,
175
],
[
170,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
176,
181
],
[
146,
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\n public static void main(String[] args) {\n class Matrix {\n private int x, y;\n private long[][] mat;\n public Matrix(int inX, int inY) {\n x = inX;\n y = inY;\n mat = new long[inX][inY];\n }\n public void set(int x, int y, long num) {\n mat[x][y] = num;\n }\n public long get(int x, int y) {\n return mat[x][y];\n }\n public int getX() { return x;}\n public int getY() { return y;}\n public Matrix mult(Matrix matB) {\n int ax = this.getX(), ay = this.getY();\n int bx = matB.getX(), by = matB.getY();\n Matrix ans = new Matrix(ax, by);\n\n for (int i = 0; i < ax; i++) {\n for (int j = 0; j < by; j++) {\n long sum = 0;\n for (int k = 0; k < ay; k++) {\n sum += this.get(i, k) * matB.get(k, j);\n }\n ans.set(i, j, sum);\n }\n }\n\n return ans;\n }\n }\n Scanner scan = new Scanner(System.in);\n Matrix matA, matB, ans;\n int n, m, l;\n n = Integer.parseInt(scan.next());\n m = Integer.parseInt(scan.next());\n l = Integer.parseInt(scan.next());\n\n matA = new Matrix(n, m);\n matB = new Matrix(m, l);\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n matA.set(i, j, Long.parseLong(scan.next()));\n }\n }\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n matB.set(i, j, Long.parseLong(scan.next()));\n }\n }\n ans = matA.mult(matB);\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n System.out.print(ans.get(i, j));\n if (j != l - 1) System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }\n\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n class Matrix {\n private int x, y;\n private long[][] mat;\n public Matrix(int inX, int inY) {\n x = inX;\n y = inY;\n mat = new long[inX][inY];\n }\n public void set(int x, int y, long num) {\n mat[x][y] = num;\n }\n public long get(int x, int y) {\n return mat[x][y];\n }\n public int getX() { return x;}\n public int getY() { return y;}\n public Matrix mult(Matrix matB) {\n int ax = this.getX(), ay = this.getY();\n int bx = matB.getX(), by = matB.getY();\n Matrix ans = new Matrix(ax, by);\n\n for (int i = 0; i < ax; i++) {\n for (int j = 0; j < by; j++) {\n long sum = 0;\n for (int k = 0; k < ay; k++) {\n sum += this.get(i, k) * matB.get(k, j);\n }\n ans.set(i, j, sum);\n }\n }\n\n return ans;\n }\n }\n Scanner scan = new Scanner(System.in);\n Matrix matA, matB, ans;\n int n, m, l;\n n = Integer.parseInt(scan.next());\n m = Integer.parseInt(scan.next());\n l = Integer.parseInt(scan.next());\n\n matA = new Matrix(n, m);\n matB = new Matrix(m, l);\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n matA.set(i, j, Long.parseLong(scan.next()));\n }\n }\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n matB.set(i, j, Long.parseLong(scan.next()));\n }\n }\n ans = matA.mult(matB);\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n System.out.print(ans.get(i, j));\n if (j != l - 1) System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n class Matrix {\n private int x, y;\n private long[][] mat;\n public Matrix(int inX, int inY) {\n x = inX;\n y = inY;\n mat = new long[inX][inY];\n }\n public void set(int x, int y, long num) {\n mat[x][y] = num;\n }\n public long get(int x, int y) {\n return mat[x][y];\n }\n public int getX() { return x;}\n public int getY() { return y;}\n public Matrix mult(Matrix matB) {\n int ax = this.getX(), ay = this.getY();\n int bx = matB.getX(), by = matB.getY();\n Matrix ans = new Matrix(ax, by);\n\n for (int i = 0; i < ax; i++) {\n for (int j = 0; j < by; j++) {\n long sum = 0;\n for (int k = 0; k < ay; k++) {\n sum += this.get(i, k) * matB.get(k, j);\n }\n ans.set(i, j, sum);\n }\n }\n\n return ans;\n }\n }\n Scanner scan = new Scanner(System.in);\n Matrix matA, matB, ans;\n int n, m, l;\n n = Integer.parseInt(scan.next());\n m = Integer.parseInt(scan.next());\n l = Integer.parseInt(scan.next());\n\n matA = new Matrix(n, m);\n matB = new Matrix(m, l);\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n matA.set(i, j, Long.parseLong(scan.next()));\n }\n }\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n matB.set(i, j, Long.parseLong(scan.next()));\n }\n }\n ans = matA.mult(matB);\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n System.out.print(ans.get(i, j));\n if (j != l - 1) System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }\n\n }",
"main",
"{\n class Matrix {\n private int x, y;\n private long[][] mat;\n public Matrix(int inX, int inY) {\n x = inX;\n y = inY;\n mat = new long[inX][inY];\n }\n public void set(int x, int y, long num) {\n mat[x][y] = num;\n }\n public long get(int x, int y) {\n return mat[x][y];\n }\n public int getX() { return x;}\n public int getY() { return y;}\n public Matrix mult(Matrix matB) {\n int ax = this.getX(), ay = this.getY();\n int bx = matB.getX(), by = matB.getY();\n Matrix ans = new Matrix(ax, by);\n\n for (int i = 0; i < ax; i++) {\n for (int j = 0; j < by; j++) {\n long sum = 0;\n for (int k = 0; k < ay; k++) {\n sum += this.get(i, k) * matB.get(k, j);\n }\n ans.set(i, j, sum);\n }\n }\n\n return ans;\n }\n }\n Scanner scan = new Scanner(System.in);\n Matrix matA, matB, ans;\n int n, m, l;\n n = Integer.parseInt(scan.next());\n m = Integer.parseInt(scan.next());\n l = Integer.parseInt(scan.next());\n\n matA = new Matrix(n, m);\n matB = new Matrix(m, l);\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n matA.set(i, j, Long.parseLong(scan.next()));\n }\n }\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n matB.set(i, j, Long.parseLong(scan.next()));\n }\n }\n ans = matA.mult(matB);\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n System.out.print(ans.get(i, j));\n if (j != l - 1) System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }\n\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"Matrix matA",
"matA",
"matB",
"matB",
"ans;",
"ans",
"int n",
"n",
"m",
"m",
"l;",
"l",
"n = Integer.parseInt(scan.next())",
"n",
"Integer.parseInt(scan.next())",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"scan",
"m = Integer.parseInt(scan.next())",
"m",
"Integer.parseInt(scan.next())",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"scan",
"l = Integer.parseInt(scan.next())",
"l",
"Integer.parseInt(scan.next())",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"scan",
"matA = new Matrix(n, m)",
"matA",
"new Matrix(n, m)",
"matB = new Matrix(m, l)",
"matB",
"new Matrix(m, l)",
"for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n matA.set(i, j, Long.parseLong(scan.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 matA.set(i, j, Long.parseLong(scan.next()));\n }\n }",
"{\n for (int j = 0; j < m; j++) {\n matA.set(i, j, Long.parseLong(scan.next()));\n }\n }",
"for (int j = 0; j < m; j++) {\n matA.set(i, j, Long.parseLong(scan.next()));\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n matA.set(i, j, Long.parseLong(scan.next()));\n }",
"{\n matA.set(i, j, Long.parseLong(scan.next()));\n }",
"matA.set(i, j, Long.parseLong(scan.next()))",
"matA.set",
"matA",
"i",
"j",
"Long.parseLong(scan.next())",
"Long.parseLong",
"Long",
"scan.next()",
"scan.next",
"scan",
"for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n matB.set(i, j, Long.parseLong(scan.next()));\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < l; j++) {\n matB.set(i, j, Long.parseLong(scan.next()));\n }\n }",
"{\n for (int j = 0; j < l; j++) {\n matB.set(i, j, Long.parseLong(scan.next()));\n }\n }",
"for (int j = 0; j < l; j++) {\n matB.set(i, j, Long.parseLong(scan.next()));\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n matB.set(i, j, Long.parseLong(scan.next()));\n }",
"{\n matB.set(i, j, Long.parseLong(scan.next()));\n }",
"matB.set(i, j, Long.parseLong(scan.next()))",
"matB.set",
"matB",
"i",
"j",
"Long.parseLong(scan.next())",
"Long.parseLong",
"Long",
"scan.next()",
"scan.next",
"scan",
"ans = matA.mult(matB)",
"ans",
"matA.mult(matB)",
"matA.mult",
"matA",
"matB",
"for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n System.out.print(ans.get(i, j));\n if (j != l - 1) System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < l; j++) {\n System.out.print(ans.get(i, j));\n if (j != l - 1) System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }",
"{\n for (int j = 0; j < l; j++) {\n System.out.print(ans.get(i, j));\n if (j != l - 1) System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }",
"for (int j = 0; j < l; j++) {\n System.out.print(ans.get(i, j));\n if (j != l - 1) System.out.print(\" \");\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n System.out.print(ans.get(i, j));\n if (j != l - 1) System.out.print(\" \");\n }",
"{\n System.out.print(ans.get(i, j));\n if (j != l - 1) System.out.print(\" \");\n }",
"System.out.print(ans.get(i, j))",
"System.out.print",
"System.out",
"System",
"System.out",
"ans.get(i, j)",
"ans.get",
"ans",
"i",
"j",
"if (j != l - 1) System.out.print(\" \");",
"j != l - 1",
"j",
"l - 1",
"l",
"1",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.print(\"\\n\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"\\n\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n class Matrix {\n private int x, y;\n private long[][] mat;\n public Matrix(int inX, int inY) {\n x = inX;\n y = inY;\n mat = new long[inX][inY];\n }\n public void set(int x, int y, long num) {\n mat[x][y] = num;\n }\n public long get(int x, int y) {\n return mat[x][y];\n }\n public int getX() { return x;}\n public int getY() { return y;}\n public Matrix mult(Matrix matB) {\n int ax = this.getX(), ay = this.getY();\n int bx = matB.getX(), by = matB.getY();\n Matrix ans = new Matrix(ax, by);\n\n for (int i = 0; i < ax; i++) {\n for (int j = 0; j < by; j++) {\n long sum = 0;\n for (int k = 0; k < ay; k++) {\n sum += this.get(i, k) * matB.get(k, j);\n }\n ans.set(i, j, sum);\n }\n }\n\n return ans;\n }\n }\n Scanner scan = new Scanner(System.in);\n Matrix matA, matB, ans;\n int n, m, l;\n n = Integer.parseInt(scan.next());\n m = Integer.parseInt(scan.next());\n l = Integer.parseInt(scan.next());\n\n matA = new Matrix(n, m);\n matB = new Matrix(m, l);\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n matA.set(i, j, Long.parseLong(scan.next()));\n }\n }\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n matB.set(i, j, Long.parseLong(scan.next()));\n }\n }\n ans = matA.mult(matB);\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n System.out.print(ans.get(i, j));\n if (j != l - 1) System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }\n\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n class Matrix {\n private int x, y;\n private long[][] mat;\n public Matrix(int inX, int inY) {\n x = inX;\n y = inY;\n mat = new long[inX][inY];\n }\n public void set(int x, int y, long num) {\n mat[x][y] = num;\n }\n public long get(int x, int y) {\n return mat[x][y];\n }\n public int getX() { return x;}\n public int getY() { return y;}\n public Matrix mult(Matrix matB) {\n int ax = this.getX(), ay = this.getY();\n int bx = matB.getX(), by = matB.getY();\n Matrix ans = new Matrix(ax, by);\n\n for (int i = 0; i < ax; i++) {\n for (int j = 0; j < by; j++) {\n long sum = 0;\n for (int k = 0; k < ay; k++) {\n sum += this.get(i, k) * matB.get(k, j);\n }\n ans.set(i, j, sum);\n }\n }\n\n return ans;\n }\n }\n Scanner scan = new Scanner(System.in);\n Matrix matA, matB, ans;\n int n, m, l;\n n = Integer.parseInt(scan.next());\n m = Integer.parseInt(scan.next());\n l = Integer.parseInt(scan.next());\n\n matA = new Matrix(n, m);\n matB = new Matrix(m, l);\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n matA.set(i, j, Long.parseLong(scan.next()));\n }\n }\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n matB.set(i, j, Long.parseLong(scan.next()));\n }\n }\n ans = matA.mult(matB);\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n System.out.print(ans.get(i, j));\n if (j != l - 1) System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }\n\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
class Matrix {
private int x, y;
private long[][] mat;
public Matrix(int inX, int inY) {
x = inX;
y = inY;
mat = new long[inX][inY];
}
public void set(int x, int y, long num) {
mat[x][y] = num;
}
public long get(int x, int y) {
return mat[x][y];
}
public int getX() { return x;}
public int getY() { return y;}
public Matrix mult(Matrix matB) {
int ax = this.getX(), ay = this.getY();
int bx = matB.getX(), by = matB.getY();
Matrix ans = new Matrix(ax, by);
for (int i = 0; i < ax; i++) {
for (int j = 0; j < by; j++) {
long sum = 0;
for (int k = 0; k < ay; k++) {
sum += this.get(i, k) * matB.get(k, j);
}
ans.set(i, j, sum);
}
}
return ans;
}
}
Scanner scan = new Scanner(System.in);
Matrix matA, matB, ans;
int n, m, l;
n = Integer.parseInt(scan.next());
m = Integer.parseInt(scan.next());
l = Integer.parseInt(scan.next());
matA = new Matrix(n, m);
matB = new Matrix(m, l);
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
matA.set(i, j, Long.parseLong(scan.next()));
}
}
for (int i = 0; i < m; i++) {
for (int j = 0; j < l; j++) {
matB.set(i, j, Long.parseLong(scan.next()));
}
}
ans = matA.mult(matB);
for (int i = 0; i < n; i++) {
for (int j = 0; j < l; j++) {
System.out.print(ans.get(i, j));
if (j != l - 1) System.out.print(" ");
}
System.out.print("\n");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
41,
13,
0,
13,
20,
13,
13,
0,
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,
4,
18,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
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,
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,
14,
2,
13,
17,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
243,
5
],
[
243,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
8,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
59,
70
],
[
71,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
72,
78
],
[
78,
79
],
[
79,
80
],
[
8,
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
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
94,
102
],
[
102,
103
],
[
103,
104
],
[
94,
105
],
[
106,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
107,
113
],
[
113,
114
],
[
114,
115
],
[
8,
116
],
[
116,
117
],
[
117,
118
],
[
8,
119
],
[
119,
120
],
[
8,
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
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
139,
140
],
[
139,
141
],
[
134,
142
],
[
142,
143
],
[
143,
144
],
[
134,
145
],
[
146,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
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
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
165,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
146,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
176,
182
],
[
8,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
183,
188
],
[
188,
189
],
[
188,
190
],
[
183,
191
],
[
191,
192
],
[
192,
193
],
[
183,
194
],
[
195,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
196,
201
],
[
201,
202
],
[
201,
203
],
[
196,
204
],
[
204,
205
],
[
205,
206
],
[
196,
207
],
[
208,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
209,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
213,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
218,
222
],
[
209,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
223,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
231,
232
],
[
231,
233
],
[
230,
234
],
[
195,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
237,
239
],
[
6,
240
],
[
240,
241
],
[
0,
242
],
[
242,
243
],
[
242,
244
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// 入力導入部\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\n\t\t// /////////////////////////////////////////////////////////////////\n\t\t// 計算部 x=n+n-i+n-l\n\t\tint[][] a, b;\n\t\ta = new int[n][m];\n\t\tb = new int[m][l];\n\t\tlong[][] c = new long[n][l];\n\n\t\tfor (int s = 0; s < n; s++) {\n\t\t\tfor (int t = 0; t < m; t++) {\n\t\t\t\ta[s][t] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int s = 0; s < m; s++) {\n\t\t\tfor (int t = 0; t < l; t++) {\n\t\t\t\tb[s][t] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t\t// ////配列Cを作成する\n\t\tlong sum;\n\t\tfor (int x = 0; x < n; x++) {\n\t\t\tfor (int y = 0; y < l; y++) {\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\tsum += a[x][i] * b[i][y];\n\t\t\t\t}\n\t\t\t\tc[x][y] = sum;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int s = 0; s < l; s++) {\n\t\t\t\tif (s == 0)\n\t\t\t\t\tSystem.out.print(c[i][s]);\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\" \" + c[i][s]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// 入力導入部\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\n\t\t// /////////////////////////////////////////////////////////////////\n\t\t// 計算部 x=n+n-i+n-l\n\t\tint[][] a, b;\n\t\ta = new int[n][m];\n\t\tb = new int[m][l];\n\t\tlong[][] c = new long[n][l];\n\n\t\tfor (int s = 0; s < n; s++) {\n\t\t\tfor (int t = 0; t < m; t++) {\n\t\t\t\ta[s][t] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int s = 0; s < m; s++) {\n\t\t\tfor (int t = 0; t < l; t++) {\n\t\t\t\tb[s][t] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t\t// ////配列Cを作成する\n\t\tlong sum;\n\t\tfor (int x = 0; x < n; x++) {\n\t\t\tfor (int y = 0; y < l; y++) {\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\tsum += a[x][i] * b[i][y];\n\t\t\t\t}\n\t\t\t\tc[x][y] = sum;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int s = 0; s < l; s++) {\n\t\t\t\tif (s == 0)\n\t\t\t\t\tSystem.out.print(c[i][s]);\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\" \" + c[i][s]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// 入力導入部\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\n\t\t// /////////////////////////////////////////////////////////////////\n\t\t// 計算部 x=n+n-i+n-l\n\t\tint[][] a, b;\n\t\ta = new int[n][m];\n\t\tb = new int[m][l];\n\t\tlong[][] c = new long[n][l];\n\n\t\tfor (int s = 0; s < n; s++) {\n\t\t\tfor (int t = 0; t < m; t++) {\n\t\t\t\ta[s][t] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int s = 0; s < m; s++) {\n\t\t\tfor (int t = 0; t < l; t++) {\n\t\t\t\tb[s][t] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t\t// ////配列Cを作成する\n\t\tlong sum;\n\t\tfor (int x = 0; x < n; x++) {\n\t\t\tfor (int y = 0; y < l; y++) {\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\tsum += a[x][i] * b[i][y];\n\t\t\t\t}\n\t\t\t\tc[x][y] = sum;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int s = 0; s < l; s++) {\n\t\t\t\tif (s == 0)\n\t\t\t\t\tSystem.out.print(c[i][s]);\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\" \" + c[i][s]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"main",
"{\n\t\t// 入力導入部\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\n\t\t// /////////////////////////////////////////////////////////////////\n\t\t// 計算部 x=n+n-i+n-l\n\t\tint[][] a, b;\n\t\ta = new int[n][m];\n\t\tb = new int[m][l];\n\t\tlong[][] c = new long[n][l];\n\n\t\tfor (int s = 0; s < n; s++) {\n\t\t\tfor (int t = 0; t < m; t++) {\n\t\t\t\ta[s][t] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int s = 0; s < m; s++) {\n\t\t\tfor (int t = 0; t < l; t++) {\n\t\t\t\tb[s][t] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t\t// ////配列Cを作成する\n\t\tlong sum;\n\t\tfor (int x = 0; x < n; x++) {\n\t\t\tfor (int y = 0; y < l; y++) {\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\tsum += a[x][i] * b[i][y];\n\t\t\t\t}\n\t\t\t\tc[x][y] = sum;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int s = 0; s < l; s++) {\n\t\t\t\tif (s == 0)\n\t\t\t\t\tSystem.out.print(c[i][s]);\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\" \" + c[i][s]);\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] a",
"a",
"b;",
"b",
"a = new int[n][m]",
"a",
"new int[n][m]",
"n",
"m",
"b = new int[m][l]",
"b",
"new int[m][l]",
"m",
"l",
"long[][] c = new long[n][l];",
"c",
"new long[n][l]",
"n",
"l",
"for (int s = 0; s < n; s++) {\n\t\t\tfor (int t = 0; t < m; t++) {\n\t\t\t\ta[s][t] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int s = 0;",
"int s = 0;",
"s",
"0",
"s < n",
"s",
"n",
"s++",
"s++",
"s",
"{\n\t\t\tfor (int t = 0; t < m; t++) {\n\t\t\t\ta[s][t] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int t = 0; t < m; t++) {\n\t\t\t\ta[s][t] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for (int t = 0; t < m; t++) {\n\t\t\t\ta[s][t] = sc.nextInt();\n\t\t\t}",
"int t = 0;",
"int t = 0;",
"t",
"0",
"t < m",
"t",
"m",
"t++",
"t++",
"t",
"{\n\t\t\t\ta[s][t] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\ta[s][t] = sc.nextInt();\n\t\t\t}",
"a[s][t] = sc.nextInt()",
"a[s][t]",
"a[s]",
"a",
"s",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int s = 0; s < m; s++) {\n\t\t\tfor (int t = 0; t < l; t++) {\n\t\t\t\tb[s][t] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int s = 0;",
"int s = 0;",
"s",
"0",
"s < m",
"s",
"m",
"s++",
"s++",
"s",
"{\n\t\t\tfor (int t = 0; t < l; t++) {\n\t\t\t\tb[s][t] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int t = 0; t < l; t++) {\n\t\t\t\tb[s][t] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for (int t = 0; t < l; t++) {\n\t\t\t\tb[s][t] = sc.nextInt();\n\t\t\t}",
"int t = 0;",
"int t = 0;",
"t",
"0",
"t < l",
"t",
"l",
"t++",
"t++",
"t",
"{\n\t\t\t\tb[s][t] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tb[s][t] = sc.nextInt();\n\t\t\t}",
"b[s][t] = sc.nextInt()",
"b[s][t]",
"b[s]",
"b",
"s",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"long sum;",
"sum",
"for (int x = 0; x < n; x++) {\n\t\t\tfor (int y = 0; y < l; y++) {\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\tsum += a[x][i] * b[i][y];\n\t\t\t\t}\n\t\t\t\tc[x][y] = sum;\n\t\t\t}\n\t\t}",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < n",
"x",
"n",
"x++",
"x++",
"x",
"{\n\t\t\tfor (int y = 0; y < l; y++) {\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\tsum += a[x][i] * b[i][y];\n\t\t\t\t}\n\t\t\t\tc[x][y] = sum;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int y = 0; y < l; y++) {\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\tsum += a[x][i] * b[i][y];\n\t\t\t\t}\n\t\t\t\tc[x][y] = sum;\n\t\t\t}\n\t\t}",
"for (int y = 0; y < l; y++) {\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\tsum += a[x][i] * b[i][y];\n\t\t\t\t}\n\t\t\t\tc[x][y] = sum;\n\t\t\t}",
"int y = 0;",
"int y = 0;",
"y",
"0",
"y < l",
"y",
"l",
"y++",
"y++",
"y",
"{\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\tsum += a[x][i] * b[i][y];\n\t\t\t\t}\n\t\t\t\tc[x][y] = sum;\n\t\t\t}",
"{\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\tsum += a[x][i] * b[i][y];\n\t\t\t\t}\n\t\t\t\tc[x][y] = sum;\n\t\t\t}",
"sum = 0",
"sum",
"0",
"for (int i = 0; i < m; i++) {\n\t\t\t\t\tsum += a[x][i] * b[i][y];\n\t\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\t\t\tsum += a[x][i] * b[i][y];\n\t\t\t\t}",
"{\n\t\t\t\t\tsum += a[x][i] * b[i][y];\n\t\t\t\t}",
"sum += a[x][i] * b[i][y]",
"sum",
"a[x][i] * b[i][y]",
"a[x][i]",
"a[x]",
"a",
"x",
"i",
"b[i][y]",
"b[i]",
"b",
"i",
"y",
"c[x][y] = sum",
"c[x][y]",
"c[x]",
"c",
"x",
"y",
"sum",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int s = 0; s < l; s++) {\n\t\t\t\tif (s == 0)\n\t\t\t\t\tSystem.out.print(c[i][s]);\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\" \" + c[i][s]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int s = 0; s < l; s++) {\n\t\t\t\tif (s == 0)\n\t\t\t\t\tSystem.out.print(c[i][s]);\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\" \" + c[i][s]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor (int s = 0; s < l; s++) {\n\t\t\t\tif (s == 0)\n\t\t\t\t\tSystem.out.print(c[i][s]);\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\" \" + c[i][s]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for (int s = 0; s < l; s++) {\n\t\t\t\tif (s == 0)\n\t\t\t\t\tSystem.out.print(c[i][s]);\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\" \" + c[i][s]);\n\t\t\t}",
"int s = 0;",
"int s = 0;",
"s",
"0",
"s < l",
"s",
"l",
"s++",
"s++",
"s",
"{\n\t\t\t\tif (s == 0)\n\t\t\t\t\tSystem.out.print(c[i][s]);\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\" \" + c[i][s]);\n\t\t\t}",
"{\n\t\t\t\tif (s == 0)\n\t\t\t\t\tSystem.out.print(c[i][s]);\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\" \" + c[i][s]);\n\t\t\t}",
"if (s == 0)\n\t\t\t\t\tSystem.out.print(c[i][s]);\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\" \" + c[i][s]);",
"s == 0",
"s",
"0",
"System.out.print(c[i][s])",
"System.out.print",
"System.out",
"System",
"System.out",
"c[i][s]",
"c[i]",
"c",
"i",
"s",
"System.out.print(\" \" + c[i][s])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + c[i][s]",
"\" \"",
"c[i][s]",
"c[i]",
"c",
"i",
"s",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// 入力導入部\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\n\t\t// /////////////////////////////////////////////////////////////////\n\t\t// 計算部 x=n+n-i+n-l\n\t\tint[][] a, b;\n\t\ta = new int[n][m];\n\t\tb = new int[m][l];\n\t\tlong[][] c = new long[n][l];\n\n\t\tfor (int s = 0; s < n; s++) {\n\t\t\tfor (int t = 0; t < m; t++) {\n\t\t\t\ta[s][t] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int s = 0; s < m; s++) {\n\t\t\tfor (int t = 0; t < l; t++) {\n\t\t\t\tb[s][t] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t\t// ////配列Cを作成する\n\t\tlong sum;\n\t\tfor (int x = 0; x < n; x++) {\n\t\t\tfor (int y = 0; y < l; y++) {\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\tsum += a[x][i] * b[i][y];\n\t\t\t\t}\n\t\t\t\tc[x][y] = sum;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int s = 0; s < l; s++) {\n\t\t\t\tif (s == 0)\n\t\t\t\t\tSystem.out.print(c[i][s]);\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\" \" + c[i][s]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// 入力導入部\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\n\t\t// /////////////////////////////////////////////////////////////////\n\t\t// 計算部 x=n+n-i+n-l\n\t\tint[][] a, b;\n\t\ta = new int[n][m];\n\t\tb = new int[m][l];\n\t\tlong[][] c = new long[n][l];\n\n\t\tfor (int s = 0; s < n; s++) {\n\t\t\tfor (int t = 0; t < m; t++) {\n\t\t\t\ta[s][t] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int s = 0; s < m; s++) {\n\t\t\tfor (int t = 0; t < l; t++) {\n\t\t\t\tb[s][t] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t\t// ////配列Cを作成する\n\t\tlong sum;\n\t\tfor (int x = 0; x < n; x++) {\n\t\t\tfor (int y = 0; y < l; y++) {\n\t\t\t\tsum = 0;\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\tsum += a[x][i] * b[i][y];\n\t\t\t\t}\n\t\t\t\tc[x][y] = sum;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int s = 0; s < l; s++) {\n\t\t\t\tif (s == 0)\n\t\t\t\t\tSystem.out.print(c[i][s]);\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\" \" + c[i][s]);\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = sc.nextInt();
// /////////////////////////////////////////////////////////////////
// 計算部 x=n+n-i+n-l
int[][] a, b;
a = new int[n][m];
b = new int[m][l];
long[][] c = new long[n][l];
for (int s = 0; s < n; s++) {
for (int t = 0; t < m; t++) {
a[s][t] = sc.nextInt();
}
}
for (int s = 0; s < m; s++) {
for (int t = 0; t < l; t++) {
b[s][t] = sc.nextInt();
}
}
sc.close();
// ////配列Cを作成する
long sum;
for (int x = 0; x < n; x++) {
for (int y = 0; y < l; y++) {
sum = 0;
for (int i = 0; i < m; i++) {
sum += a[x][i] * b[i][y];
}
c[x][y] = sum;
}
}
for (int i = 0; i < n; i++) {
for (int s = 0; s < l; s++) {
if (s == 0)
System.out.print(c[i][s]);
else
System.out.print(" " + c[i][s]);
}
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,
4,
18,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
13,
41,
13,
41,
13,
41,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
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,
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,
18,
13,
13,
13,
4,
18,
18,
13,
13,
8,
2,
13,
2,
13,
17,
17,
17,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
37
],
[
37,
38
],
[
8,
39
],
[
39,
40
],
[
8,
41
],
[
41,
42
],
[
8,
43
],
[
43,
44
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
58,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
8,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
80,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
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
],
[
107,
111
],
[
106,
112
],
[
112,
113
],
[
113,
114
],
[
8,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
120,
121
],
[
120,
122
],
[
115,
123
],
[
123,
124
],
[
124,
125
],
[
115,
126
],
[
127,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
133,
134
],
[
133,
135
],
[
128,
136
],
[
136,
137
],
[
137,
138
],
[
128,
139
],
[
140,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
144,
149
],
[
149,
150
],
[
149,
151
],
[
144,
152
],
[
152,
153
],
[
153,
154
],
[
144,
155
],
[
156,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
159,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
140,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
170,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
178,
180
],
[
175,
181
],
[
175,
182
],
[
170,
183
],
[
6,
184
],
[
184,
185
]
] | [
"import java.util.*;\n\nclass Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n long a[][] = new long[n][m];\n long b[][] = new long[m][l];\n int i, j, k;\n long sum;\n for (i = 0; i < n; i++) {\n for (j = 0; j < m; j++) {\n a[i][j] = sc.nextInt();\n }\n }\n for (i = 0; i < m; i++) {\n for (j = 0; j < l; j++) {\n b[i][j] = sc.nextInt();\n }\n }\n for (i = 0; i < n; i++) {\n for (j = 0; j < l; j++) {\n sum = 0;\n for (k = 0; k < m; k++) {\n sum += a[i][k] * b[k][j];\n }\n System.out.printf(j == l - 1 ? \"%d%n\" : \"%d \", sum);\n }\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n long a[][] = new long[n][m];\n long b[][] = new long[m][l];\n int i, j, k;\n long sum;\n for (i = 0; i < n; i++) {\n for (j = 0; j < m; j++) {\n a[i][j] = sc.nextInt();\n }\n }\n for (i = 0; i < m; i++) {\n for (j = 0; j < l; j++) {\n b[i][j] = sc.nextInt();\n }\n }\n for (i = 0; i < n; i++) {\n for (j = 0; j < l; j++) {\n sum = 0;\n for (k = 0; k < m; k++) {\n sum += a[i][k] * b[k][j];\n }\n System.out.printf(j == l - 1 ? \"%d%n\" : \"%d \", sum);\n }\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 l = sc.nextInt();\n long a[][] = new long[n][m];\n long b[][] = new long[m][l];\n int i, j, k;\n long sum;\n for (i = 0; i < n; i++) {\n for (j = 0; j < m; j++) {\n a[i][j] = sc.nextInt();\n }\n }\n for (i = 0; i < m; i++) {\n for (j = 0; j < l; j++) {\n b[i][j] = sc.nextInt();\n }\n }\n for (i = 0; i < n; i++) {\n for (j = 0; j < l; j++) {\n sum = 0;\n for (k = 0; k < m; k++) {\n sum += a[i][k] * b[k][j];\n }\n System.out.printf(j == l - 1 ? \"%d%n\" : \"%d \", sum);\n }\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n long a[][] = new long[n][m];\n long b[][] = new long[m][l];\n int i, j, k;\n long sum;\n for (i = 0; i < n; i++) {\n for (j = 0; j < m; j++) {\n a[i][j] = sc.nextInt();\n }\n }\n for (i = 0; i < m; i++) {\n for (j = 0; j < l; j++) {\n b[i][j] = sc.nextInt();\n }\n }\n for (i = 0; i < n; i++) {\n for (j = 0; j < l; j++) {\n sum = 0;\n for (k = 0; k < m; k++) {\n sum += a[i][k] * b[k][j];\n }\n System.out.printf(j == l - 1 ? \"%d%n\" : \"%d \", sum);\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 l = sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long a[][] = new long[n][m];",
"a",
"new long[n][m]",
"n",
"m",
"long b[][] = new long[m][l];",
"b",
"new long[m][l]",
"m",
"l",
"int i",
"i",
"j",
"j",
"k;",
"k",
"long sum;",
"sum",
"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 (i = 0; i < m; i++) {\n for (j = 0; j < l; j++) {\n b[i][j] = sc.nextInt();\n }\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n for (j = 0; j < l; j++) {\n b[i][j] = sc.nextInt();\n }\n }",
"{\n for (j = 0; j < l; j++) {\n b[i][j] = sc.nextInt();\n }\n }",
"for (j = 0; j < l; j++) {\n b[i][j] = sc.nextInt();\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n b[i][j] = sc.nextInt();\n }",
"{\n b[i][j] = sc.nextInt();\n }",
"b[i][j] = sc.nextInt()",
"b[i][j]",
"b[i]",
"b",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (i = 0; i < n; i++) {\n for (j = 0; j < l; j++) {\n sum = 0;\n for (k = 0; k < m; k++) {\n sum += a[i][k] * b[k][j];\n }\n System.out.printf(j == l - 1 ? \"%d%n\" : \"%d \", sum);\n }\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (j = 0; j < l; j++) {\n sum = 0;\n for (k = 0; k < m; k++) {\n sum += a[i][k] * b[k][j];\n }\n System.out.printf(j == l - 1 ? \"%d%n\" : \"%d \", sum);\n }\n }",
"{\n for (j = 0; j < l; j++) {\n sum = 0;\n for (k = 0; k < m; k++) {\n sum += a[i][k] * b[k][j];\n }\n System.out.printf(j == l - 1 ? \"%d%n\" : \"%d \", sum);\n }\n }",
"for (j = 0; j < l; j++) {\n sum = 0;\n for (k = 0; k < m; k++) {\n sum += a[i][k] * b[k][j];\n }\n System.out.printf(j == l - 1 ? \"%d%n\" : \"%d \", sum);\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n sum = 0;\n for (k = 0; k < m; k++) {\n sum += a[i][k] * b[k][j];\n }\n System.out.printf(j == l - 1 ? \"%d%n\" : \"%d \", sum);\n }",
"{\n sum = 0;\n for (k = 0; k < m; k++) {\n sum += a[i][k] * b[k][j];\n }\n System.out.printf(j == l - 1 ? \"%d%n\" : \"%d \", sum);\n }",
"sum = 0",
"sum",
"0",
"for (k = 0; k < m; k++) {\n sum += a[i][k] * b[k][j];\n }",
"k = 0;",
"k = 0",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"{\n sum += a[i][k] * b[k][j];\n }",
"{\n sum += a[i][k] * b[k][j];\n }",
"sum += a[i][k] * b[k][j]",
"sum",
"a[i][k] * b[k][j]",
"a[i][k]",
"a[i]",
"a",
"i",
"k",
"b[k][j]",
"b[k]",
"b",
"k",
"j",
"System.out.printf(j == l - 1 ? \"%d%n\" : \"%d \", sum)",
"System.out.printf",
"System.out",
"System",
"System.out",
"j == l - 1 ? \"%d%n\" : \"%d \"",
"j == l - 1",
"j",
"l - 1",
"l",
"1",
"\"%d%n\"",
"\"%d \"",
"sum",
"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 l = sc.nextInt();
long a[][] = new long[n][m];
long b[][] = new long[m][l];
int i, j, k;
long sum;
for (i = 0; i < n; i++) {
for (j = 0; j < m; j++) {
a[i][j] = sc.nextInt();
}
}
for (i = 0; i < m; i++) {
for (j = 0; j < l; j++) {
b[i][j] = sc.nextInt();
}
}
for (i = 0; i < n; i++) {
for (j = 0; j < l; j++) {
sum = 0;
for (k = 0; k < m; k++) {
sum += a[i][k] * b[k][j];
}
System.out.printf(j == l - 1 ? "%d%n" : "%d ", sum);
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
13,
30,
38,
5,
13,
30,
30,
14,
2,
13,
17,
30,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
13,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
41,
13,
20,
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,
4,
18,
13,
13,
4,
18,
13,
8,
2,
13,
2,
13,
17,
17,
17,
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
],
[
267,
11
],
[
267,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
18,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
18,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
39,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
56,
58
],
[
39,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
64,
66
],
[
39,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
72,
74
],
[
39,
75
],
[
75,
76
],
[
75,
77
],
[
39,
80
],
[
80,
81
],
[
80,
82
],
[
39,
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
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
97,
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
],
[
128,
131
],
[
131,
132
],
[
131,
133
],
[
39,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
139,
140
],
[
139,
141
],
[
134,
142
],
[
142,
143
],
[
143,
144
],
[
134,
145
],
[
146,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
146,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
154,
157
],
[
146,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
158,
163
],
[
163,
164
],
[
163,
165
],
[
158,
166
],
[
166,
167
],
[
167,
168
],
[
158,
169
],
[
170,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
171,
177
],
[
177,
178
],
[
178,
179
],
[
177,
180
],
[
180,
181
],
[
180,
182
],
[
39,
183
],
[
183,
184
],
[
183,
185
],
[
39,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
186,
191
],
[
191,
192
],
[
191,
193
],
[
186,
194
],
[
194,
195
],
[
195,
196
],
[
186,
197
],
[
198,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
199,
204
],
[
204,
205
],
[
204,
206
],
[
199,
207
],
[
207,
208
],
[
208,
209
],
[
199,
210
],
[
211,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
211,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
215,
220
],
[
220,
221
],
[
220,
222
],
[
215,
223
],
[
223,
224
],
[
224,
225
],
[
215,
226
],
[
227,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
231,
235
],
[
230,
236
],
[
236,
237
],
[
237,
238
],
[
237,
239
],
[
236,
240
],
[
211,
241
],
[
241,
242
],
[
242,
243
],
[
241,
244
],
[
211,
245
],
[
245,
246
],
[
246,
247
],
[
245,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
251,
252
],
[
251,
253
],
[
248,
254
],
[
248,
255
],
[
39,
256
],
[
256,
257
],
[
257,
258
],
[
258,
259
],
[
258,
260
],
[
256,
261
],
[
261,
262
],
[
262,
263
],
[
12,
264
],
[
264,
265
],
[
0,
266
],
[
266,
267
],
[
266,
268
]
] | [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\tString str = br.readLine();\n\t\t\tString[] strArr = str.split(\" \");\n\n\t\t\tint n = Integer.parseInt(strArr[0]);\n\t\t\tint m = Integer.parseInt(strArr[1]);\n\t\t\tint l = Integer.parseInt(strArr[2]);\n\n\t\t\tint[][] nm = new int[n][m];\n\t\t\tint[][] ml = new int[m][l];\n\n\t\t\t// create array (n * m)\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tnm[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// create array (m * l)\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tml[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// calculate\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc += nm[i][k] * ml[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tsb.append(j<(l-1)?' ':'\\n');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.print(sb.toString());\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t}\n\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\tString str = br.readLine();\n\t\t\tString[] strArr = str.split(\" \");\n\n\t\t\tint n = Integer.parseInt(strArr[0]);\n\t\t\tint m = Integer.parseInt(strArr[1]);\n\t\t\tint l = Integer.parseInt(strArr[2]);\n\n\t\t\tint[][] nm = new int[n][m];\n\t\t\tint[][] ml = new int[m][l];\n\n\t\t\t// create array (n * m)\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tnm[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// create array (m * l)\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tml[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// calculate\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc += nm[i][k] * ml[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tsb.append(j<(l-1)?' ':'\\n');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.print(sb.toString());\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t}\n\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\tString str = br.readLine();\n\t\t\tString[] strArr = str.split(\" \");\n\n\t\t\tint n = Integer.parseInt(strArr[0]);\n\t\t\tint m = Integer.parseInt(strArr[1]);\n\t\t\tint l = Integer.parseInt(strArr[2]);\n\n\t\t\tint[][] nm = new int[n][m];\n\t\t\tint[][] ml = new int[m][l];\n\n\t\t\t// create array (n * m)\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tnm[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// create array (m * l)\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tml[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// calculate\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc += nm[i][k] * ml[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tsb.append(j<(l-1)?' ':'\\n');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.print(sb.toString());\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t}\n\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\tString str = br.readLine();\n\t\t\tString[] strArr = str.split(\" \");\n\n\t\t\tint n = Integer.parseInt(strArr[0]);\n\t\t\tint m = Integer.parseInt(strArr[1]);\n\t\t\tint l = Integer.parseInt(strArr[2]);\n\n\t\t\tint[][] nm = new int[n][m];\n\t\t\tint[][] ml = new int[m][l];\n\n\t\t\t// create array (n * m)\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tnm[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// create array (m * l)\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tml[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// calculate\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc += nm[i][k] * ml[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tsb.append(j<(l-1)?' ':'\\n');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.print(sb.toString());\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t}\n\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"try {\n\n\t\t\tString str = br.readLine();\n\t\t\tString[] strArr = str.split(\" \");\n\n\t\t\tint n = Integer.parseInt(strArr[0]);\n\t\t\tint m = Integer.parseInt(strArr[1]);\n\t\t\tint l = Integer.parseInt(strArr[2]);\n\n\t\t\tint[][] nm = new int[n][m];\n\t\t\tint[][] ml = new int[m][l];\n\n\t\t\t// create array (n * m)\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tnm[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// create array (m * l)\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tml[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// calculate\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc += nm[i][k] * ml[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tsb.append(j<(l-1)?' ':'\\n');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.print(sb.toString());\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t}\n\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\ttry {\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t}\n\n\t\t}",
"try {\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t}",
"catch (IOException ioe) {\n\t\t\t}",
"IOException ioe",
"{\n\t\t\t}",
"{\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t}",
"if (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}",
"br != null",
"br",
"null",
"{\n\t\t\t\t\tbr.close();\n\t\t\t\t}",
"br.close()",
"br.close",
"br",
"{\n\n\t\t\tString str = br.readLine();\n\t\t\tString[] strArr = str.split(\" \");\n\n\t\t\tint n = Integer.parseInt(strArr[0]);\n\t\t\tint m = Integer.parseInt(strArr[1]);\n\t\t\tint l = Integer.parseInt(strArr[2]);\n\n\t\t\tint[][] nm = new int[n][m];\n\t\t\tint[][] ml = new int[m][l];\n\n\t\t\t// create array (n * m)\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tnm[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// create array (m * l)\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tml[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// calculate\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc += nm[i][k] * ml[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tsb.append(j<(l-1)?' ':'\\n');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.print(sb.toString());\n\n\t\t}",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"String[] strArr = str.split(\" \");",
"strArr",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"int n = Integer.parseInt(strArr[0]);",
"n",
"Integer.parseInt(strArr[0])",
"Integer.parseInt",
"Integer",
"strArr[0]",
"strArr",
"0",
"int m = Integer.parseInt(strArr[1]);",
"m",
"Integer.parseInt(strArr[1])",
"Integer.parseInt",
"Integer",
"strArr[1]",
"strArr",
"1",
"int l = Integer.parseInt(strArr[2]);",
"l",
"Integer.parseInt(strArr[2])",
"Integer.parseInt",
"Integer",
"strArr[2]",
"strArr",
"2",
"int[][] nm = new int[n][m];",
"nm",
"new int[n][m]",
"n",
"m",
"int[][] ml = new int[m][l];",
"ml",
"new int[m][l]",
"m",
"l",
"for(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tnm[i][j] = Integer.parseInt(strArr[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\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tnm[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tnm[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}\n\t\t\t}",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"strArr = str.split(\" \")",
"strArr",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"for(int j=0;j<m;j++){\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tnm[i][j] = Integer.parseInt(strArr[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\t// ???????????????????????????\n\t\t\t\t\tnm[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}",
"{\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tnm[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}",
"nm[i][j] = Integer.parseInt(strArr[j])",
"nm[i][j]",
"nm[i]",
"nm",
"i",
"j",
"Integer.parseInt(strArr[j])",
"Integer.parseInt",
"Integer",
"strArr[j]",
"strArr",
"j",
"for(int i=0;i<m;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tml[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tml[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tml[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}\n\t\t\t}",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"strArr = str.split(\" \")",
"strArr",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"for(int j=0;j<l;j++){\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tml[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tml[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}",
"{\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tml[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}",
"ml[i][j] = Integer.parseInt(strArr[j])",
"ml[i][j]",
"ml[i]",
"ml",
"i",
"j",
"Integer.parseInt(strArr[j])",
"Integer.parseInt",
"Integer",
"strArr[j]",
"strArr",
"j",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"for(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc += nm[i][k] * ml[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tsb.append(j<(l-1)?' ':'\\n');\n\t\t\t\t}\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc += nm[i][k] * ml[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tsb.append(j<(l-1)?' ':'\\n');\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc += nm[i][k] * ml[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tsb.append(j<(l-1)?' ':'\\n');\n\t\t\t\t}\n\t\t\t}",
"for(int j=0;j<l;j++){\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc += nm[i][k] * ml[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tsb.append(j<(l-1)?' ':'\\n');\n\t\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc += nm[i][k] * ml[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tsb.append(j<(l-1)?' ':'\\n');\n\t\t\t\t}",
"{\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc += nm[i][k] * ml[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tsb.append(j<(l-1)?' ':'\\n');\n\t\t\t\t}",
"long c = 0;",
"c",
"0",
"for(int k=0;k<m;k++){\n\t\t\t\t\t\tc += nm[i][k] * ml[k][j];\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\tc += nm[i][k] * ml[k][j];\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tc += nm[i][k] * ml[k][j];\n\t\t\t\t\t}",
"c += nm[i][k] * ml[k][j]",
"c",
"nm[i][k] * ml[k][j]",
"nm[i][k]",
"nm[i]",
"nm",
"i",
"k",
"ml[k][j]",
"ml[k]",
"ml",
"k",
"j",
"sb.append(c)",
"sb.append",
"sb",
"c",
"sb.append(j<(l-1)?' ':'\\n')",
"sb.append",
"sb",
"j<(l-1)?' ':'\\n'",
"j<(l-1)",
"j",
"(l-1)",
"l",
"1",
"' '",
"'\\n'",
"System.out.print(sb.toString())",
"System.out.print",
"System.out",
"System",
"System.out",
"sb.toString()",
"sb.toString",
"sb",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\tString str = br.readLine();\n\t\t\tString[] strArr = str.split(\" \");\n\n\t\t\tint n = Integer.parseInt(strArr[0]);\n\t\t\tint m = Integer.parseInt(strArr[1]);\n\t\t\tint l = Integer.parseInt(strArr[2]);\n\n\t\t\tint[][] nm = new int[n][m];\n\t\t\tint[][] ml = new int[m][l];\n\n\t\t\t// create array (n * m)\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tnm[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// create array (m * l)\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tml[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// calculate\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc += nm[i][k] * ml[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tsb.append(j<(l-1)?' ':'\\n');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.print(sb.toString());\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t}\n\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\tString str = br.readLine();\n\t\t\tString[] strArr = str.split(\" \");\n\n\t\t\tint n = Integer.parseInt(strArr[0]);\n\t\t\tint m = Integer.parseInt(strArr[1]);\n\t\t\tint l = Integer.parseInt(strArr[2]);\n\n\t\t\tint[][] nm = new int[n][m];\n\t\t\tint[][] ml = new int[m][l];\n\n\t\t\t// create array (n * m)\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tnm[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// create array (m * l)\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\t// ???????????????????????????\n\t\t\t\t\tml[i][j] = Integer.parseInt(strArr[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// calculate\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tlong c = 0;\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc += nm[i][k] * ml[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t\tsb.append(j<(l-1)?' ':'\\n');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.print(sb.toString());\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t}\n\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) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
String str = br.readLine();
String[] strArr = str.split(" ");
int n = Integer.parseInt(strArr[0]);
int m = Integer.parseInt(strArr[1]);
int l = Integer.parseInt(strArr[2]);
int[][] nm = new int[n][m];
int[][] ml = new int[m][l];
// create array (n * m)
for(int i=0;i<n;i++){
str = br.readLine();
strArr = str.split(" ");
for(int j=0;j<m;j++){
// ???????????????????????????
nm[i][j] = Integer.parseInt(strArr[j]);
}
}
// create array (m * l)
for(int i=0;i<m;i++){
str = br.readLine();
strArr = str.split(" ");
for(int j=0;j<l;j++){
// ???????????????????????????
ml[i][j] = Integer.parseInt(strArr[j]);
}
}
// calculate
StringBuilder sb = new StringBuilder();
for(int i=0;i<n;i++){
for(int j=0;j<l;j++){
long c = 0;
for(int k=0;k<m;k++){
c += nm[i][k] * ml[k][j];
}
sb.append(c);
sb.append(j<(l-1)?' ':'\n');
}
}
System.out.print(sb.toString());
} catch (IOException e) {
e.printStackTrace();
} finally {
try {
if (br != null) {
br.close();
}
} catch (IOException ioe) {
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
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,
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,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
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,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
237,
5
],
[
237,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
8,
40
],
[
40,
41
],
[
40,
42
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
58,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
57,
80
],
[
80,
81
],
[
81,
82
],
[
8,
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
],
[
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
],
[
110,
114
],
[
109,
115
],
[
115,
116
],
[
116,
117
],
[
95,
118
],
[
118,
119
],
[
119,
120
],
[
8,
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
],
[
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
],
[
147,
155
],
[
155,
156
],
[
156,
157
],
[
147,
158
],
[
159,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
160,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
166,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
8,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
182,
183
],
[
182,
184
],
[
177,
185
],
[
185,
186
],
[
186,
187
],
[
177,
188
],
[
189,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
190,
195
],
[
195,
196
],
[
195,
197
],
[
190,
198
],
[
198,
199
],
[
199,
200
],
[
190,
201
],
[
202,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
203,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
212
],
[
202,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
216,
218
],
[
213,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
220,
225
],
[
189,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
8,
231
],
[
231,
232
],
[
232,
233
],
[
6,
234
],
[
234,
235
],
[
0,
236
],
[
236,
237
],
[
236,
238
]
] | [
"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\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\tscan.nextLine();\n\n\t\tlong[][] mat1 = new long[n][m];\n\t\tlong[][] mat2 = new long[m][l];\n\t\tlong[][] mat3 = new long[n][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmat1[i][j] = scan.nextInt();\n\t\t\t}\n\t\t\tscan.nextLine();\n\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\tmat2[i][j] = scan.nextInt();\n\t\t\t}\n\t\t\tscan.nextLine();\n\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\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tmat3[i][j] += mat1[i][k] * mat2[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\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\tSystem.out.print(mat3[i][j]);\n\t\t\t\tif(j!=l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\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\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\tscan.nextLine();\n\n\t\tlong[][] mat1 = new long[n][m];\n\t\tlong[][] mat2 = new long[m][l];\n\t\tlong[][] mat3 = new long[n][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmat1[i][j] = scan.nextInt();\n\t\t\t}\n\t\t\tscan.nextLine();\n\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\tmat2[i][j] = scan.nextInt();\n\t\t\t}\n\t\t\tscan.nextLine();\n\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\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tmat3[i][j] += mat1[i][k] * mat2[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\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\tSystem.out.print(mat3[i][j]);\n\t\t\t\tif(j!=l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tscan.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\tscan.nextLine();\n\n\t\tlong[][] mat1 = new long[n][m];\n\t\tlong[][] mat2 = new long[m][l];\n\t\tlong[][] mat3 = new long[n][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmat1[i][j] = scan.nextInt();\n\t\t\t}\n\t\t\tscan.nextLine();\n\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\tmat2[i][j] = scan.nextInt();\n\t\t\t}\n\t\t\tscan.nextLine();\n\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\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tmat3[i][j] += mat1[i][k] * mat2[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\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\tSystem.out.print(mat3[i][j]);\n\t\t\t\tif(j!=l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tscan.close();\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 l = scan.nextInt();\n\t\tscan.nextLine();\n\n\t\tlong[][] mat1 = new long[n][m];\n\t\tlong[][] mat2 = new long[m][l];\n\t\tlong[][] mat3 = new long[n][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmat1[i][j] = scan.nextInt();\n\t\t\t}\n\t\t\tscan.nextLine();\n\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\tmat2[i][j] = scan.nextInt();\n\t\t\t}\n\t\t\tscan.nextLine();\n\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\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tmat3[i][j] += mat1[i][k] * mat2[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\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\tSystem.out.print(mat3[i][j]);\n\t\t\t\tif(j!=l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = scan.nextInt();",
"l",
"scan.nextInt()",
"scan.nextInt",
"scan",
"scan.nextLine()",
"scan.nextLine",
"scan",
"long[][] mat1 = new long[n][m];",
"mat1",
"new long[n][m]",
"n",
"m",
"long[][] mat2 = new long[m][l];",
"mat2",
"new long[m][l]",
"m",
"l",
"long[][] mat3 = new long[n][l];",
"mat3",
"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\tmat1[i][j] = scan.nextInt();\n\t\t\t}\n\t\t\tscan.nextLine();\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\tmat1[i][j] = scan.nextInt();\n\t\t\t}\n\t\t\tscan.nextLine();\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmat1[i][j] = scan.nextInt();\n\t\t\t}\n\t\t\tscan.nextLine();\n\t\t}",
"for (int j = 0; j < m; j++) {\n\t\t\t\tmat1[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\tmat1[i][j] = scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\tmat1[i][j] = scan.nextInt();\n\t\t\t}",
"mat1[i][j] = scan.nextInt()",
"mat1[i][j]",
"mat1[i]",
"mat1",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"scan.nextLine()",
"scan.nextLine",
"scan",
"for (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tmat2[i][j] = scan.nextInt();\n\t\t\t}\n\t\t\tscan.nextLine();\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\tmat2[i][j] = scan.nextInt();\n\t\t\t}\n\t\t\tscan.nextLine();\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tmat2[i][j] = scan.nextInt();\n\t\t\t}\n\t\t\tscan.nextLine();\n\t\t}",
"for (int j = 0; j < l; j++) {\n\t\t\t\tmat2[i][j] = scan.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tmat2[i][j] = scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\tmat2[i][j] = scan.nextInt();\n\t\t\t}",
"mat2[i][j] = scan.nextInt()",
"mat2[i][j]",
"mat2[i]",
"mat2",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"scan.nextLine()",
"scan.nextLine",
"scan",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tmat3[i][j] += mat1[i][k] * mat2[k][j];\n\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 < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tmat3[i][j] += mat1[i][k] * mat2[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tmat3[i][j] += mat1[i][k] * mat2[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tmat3[i][j] += mat1[i][k] * mat2[k][j];\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tmat3[i][j] += mat1[i][k] * mat2[k][j];\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tmat3[i][j] += mat1[i][k] * mat2[k][j];\n\t\t\t\t}\n\t\t\t}",
"for (int k = 0; k < m; k++) {\n\t\t\t\t\tmat3[i][j] += mat1[i][k] * mat2[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\tmat3[i][j] += mat1[i][k] * mat2[k][j];\n\t\t\t\t}",
"{\n\t\t\t\t\tmat3[i][j] += mat1[i][k] * mat2[k][j];\n\t\t\t\t}",
"mat3[i][j] += mat1[i][k] * mat2[k][j]",
"mat3[i][j]",
"mat3[i]",
"mat3",
"i",
"j",
"mat1[i][k] * mat2[k][j]",
"mat1[i][k]",
"mat1[i]",
"mat1",
"i",
"k",
"mat2[k][j]",
"mat2[k]",
"mat2",
"k",
"j",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tSystem.out.print(mat3[i][j]);\n\t\t\t\tif(j!=l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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\tSystem.out.print(mat3[i][j]);\n\t\t\t\tif(j!=l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tSystem.out.print(mat3[i][j]);\n\t\t\t\tif(j!=l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for (int j = 0; j < l; j++) {\n\t\t\t\tSystem.out.print(mat3[i][j]);\n\t\t\t\tif(j!=l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(mat3[i][j]);\n\t\t\t\tif(j!=l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(mat3[i][j]);\n\t\t\t\tif(j!=l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"System.out.print(mat3[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"mat3[i][j]",
"mat3[i]",
"mat3",
"i",
"j",
"if(j!=l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"j!=l-1",
"j",
"l-1",
"l",
"1",
"{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"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\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\tscan.nextLine();\n\n\t\tlong[][] mat1 = new long[n][m];\n\t\tlong[][] mat2 = new long[m][l];\n\t\tlong[][] mat3 = new long[n][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmat1[i][j] = scan.nextInt();\n\t\t\t}\n\t\t\tscan.nextLine();\n\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\tmat2[i][j] = scan.nextInt();\n\t\t\t}\n\t\t\tscan.nextLine();\n\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\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tmat3[i][j] += mat1[i][k] * mat2[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\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\tSystem.out.print(mat3[i][j]);\n\t\t\t\tif(j!=l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tscan.close();\n\t}\n}",
"public class Main {\n\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 l = scan.nextInt();\n\t\tscan.nextLine();\n\n\t\tlong[][] mat1 = new long[n][m];\n\t\tlong[][] mat2 = new long[m][l];\n\t\tlong[][] mat3 = new long[n][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmat1[i][j] = scan.nextInt();\n\t\t\t}\n\t\t\tscan.nextLine();\n\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\tmat2[i][j] = scan.nextInt();\n\t\t\t}\n\t\t\tscan.nextLine();\n\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\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tmat3[i][j] += mat1[i][k] * mat2[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\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\tSystem.out.print(mat3[i][j]);\n\t\t\t\tif(j!=l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tscan.close();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int m = scan.nextInt();
int l = scan.nextInt();
scan.nextLine();
long[][] mat1 = new long[n][m];
long[][] mat2 = new long[m][l];
long[][] mat3 = new long[n][l];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
mat1[i][j] = scan.nextInt();
}
scan.nextLine();
}
for (int i = 0; i < m; i++) {
for (int j = 0; j < l; j++) {
mat2[i][j] = scan.nextInt();
}
scan.nextLine();
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < l; j++) {
for (int k = 0; k < m; k++) {
mat3[i][j] += mat1[i][k] * mat2[k][j];
}
}
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < l; j++) {
System.out.print(mat3[i][j]);
if(j!=l-1) {
System.out.print(" ");
}
}
System.out.println();
}
scan.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
4,
18,
13,
13,
41,
13,
4,
18,
13,
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,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
13,
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,
13,
4,
18,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
41,
13,
20,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
4,
18,
13,
13,
14,
2,
13,
2,
13,
17,
4,
18,
13,
13,
4,
18,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
17,
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
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
8,
52
],
[
52,
53
],
[
52,
54
],
[
8,
57
],
[
57,
58
],
[
8,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
59,
70
],
[
71,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
74,
79
],
[
71,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
80,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
92,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
101,
102
],
[
101,
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
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
119,
124
],
[
116,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
125,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
137,
143
],
[
143,
144
],
[
144,
145
],
[
143,
146
],
[
146,
147
],
[
146,
148
],
[
8,
149
],
[
149,
150
],
[
149,
151
],
[
8,
152
],
[
152,
153
],
[
8,
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
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
167,
175
],
[
175,
176
],
[
176,
177
],
[
167,
178
],
[
179,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
183,
188
],
[
188,
189
],
[
188,
190
],
[
183,
191
],
[
191,
192
],
[
192,
193
],
[
183,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
202
],
[
197,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
203,
207
],
[
179,
208
],
[
208,
209
],
[
209,
210
],
[
208,
211
],
[
179,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
215,
217
],
[
212,
218
],
[
218,
219
],
[
219,
220
],
[
218,
221
],
[
166,
222
],
[
222,
223
],
[
223,
224
],
[
222,
225
],
[
8,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
226,
231
],
[
6,
232
],
[
232,
233
]
] | [
"import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString sp=\" \";\n String[] f=br.readLine().split(sp);\n int n=Integer.parseInt(f[0]);\n int m=Integer.parseInt(f[1]);\n int l=Integer.parseInt(f[2]);\n int[][] A=new int[n][m];\n int[][] B=new int[m][l];\n String[] s;\n for(int i=0;i<n;i++){\n \ts=br.readLine().split(sp);\n \tfor(int j=0;j<m;j++) A[i][j]=Integer.parseInt(s[j]);\n }\n for(int i=0;i<m;i++){\n \ts=br.readLine().split(sp);\n \tfor(int j=0;j<l;j++) B[i][j]=Integer.parseInt(s[j]);\n }\n \tStringBuilder sb = new StringBuilder();\n \tlong b;\n for(int ni=0;ni<n;ni++){\n \tfor(int li=0;li<l;li++){\n \t\tb=0;\n \tfor(int mi=0;mi<m;mi++) b+=A[ni][mi]*B[mi][li];\n \tsb.append(b);\n \tif(li!=l-1) sb.append(sp);\n \t}\n \tsb.append(\"\\n\");\n }\n \tSystem.out.print(sb);\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString sp=\" \";\n String[] f=br.readLine().split(sp);\n int n=Integer.parseInt(f[0]);\n int m=Integer.parseInt(f[1]);\n int l=Integer.parseInt(f[2]);\n int[][] A=new int[n][m];\n int[][] B=new int[m][l];\n String[] s;\n for(int i=0;i<n;i++){\n \ts=br.readLine().split(sp);\n \tfor(int j=0;j<m;j++) A[i][j]=Integer.parseInt(s[j]);\n }\n for(int i=0;i<m;i++){\n \ts=br.readLine().split(sp);\n \tfor(int j=0;j<l;j++) B[i][j]=Integer.parseInt(s[j]);\n }\n \tStringBuilder sb = new StringBuilder();\n \tlong b;\n for(int ni=0;ni<n;ni++){\n \tfor(int li=0;li<l;li++){\n \t\tb=0;\n \tfor(int mi=0;mi<m;mi++) b+=A[ni][mi]*B[mi][li];\n \tsb.append(b);\n \tif(li!=l-1) sb.append(sp);\n \t}\n \tsb.append(\"\\n\");\n }\n \tSystem.out.print(sb);\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString sp=\" \";\n String[] f=br.readLine().split(sp);\n int n=Integer.parseInt(f[0]);\n int m=Integer.parseInt(f[1]);\n int l=Integer.parseInt(f[2]);\n int[][] A=new int[n][m];\n int[][] B=new int[m][l];\n String[] s;\n for(int i=0;i<n;i++){\n \ts=br.readLine().split(sp);\n \tfor(int j=0;j<m;j++) A[i][j]=Integer.parseInt(s[j]);\n }\n for(int i=0;i<m;i++){\n \ts=br.readLine().split(sp);\n \tfor(int j=0;j<l;j++) B[i][j]=Integer.parseInt(s[j]);\n }\n \tStringBuilder sb = new StringBuilder();\n \tlong b;\n for(int ni=0;ni<n;ni++){\n \tfor(int li=0;li<l;li++){\n \t\tb=0;\n \tfor(int mi=0;mi<m;mi++) b+=A[ni][mi]*B[mi][li];\n \tsb.append(b);\n \tif(li!=l-1) sb.append(sp);\n \t}\n \tsb.append(\"\\n\");\n }\n \tSystem.out.print(sb);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString sp=\" \";\n String[] f=br.readLine().split(sp);\n int n=Integer.parseInt(f[0]);\n int m=Integer.parseInt(f[1]);\n int l=Integer.parseInt(f[2]);\n int[][] A=new int[n][m];\n int[][] B=new int[m][l];\n String[] s;\n for(int i=0;i<n;i++){\n \ts=br.readLine().split(sp);\n \tfor(int j=0;j<m;j++) A[i][j]=Integer.parseInt(s[j]);\n }\n for(int i=0;i<m;i++){\n \ts=br.readLine().split(sp);\n \tfor(int j=0;j<l;j++) B[i][j]=Integer.parseInt(s[j]);\n }\n \tStringBuilder sb = new StringBuilder();\n \tlong b;\n for(int ni=0;ni<n;ni++){\n \tfor(int li=0;li<l;li++){\n \t\tb=0;\n \tfor(int mi=0;mi<m;mi++) b+=A[ni][mi]*B[mi][li];\n \tsb.append(b);\n \tif(li!=l-1) sb.append(sp);\n \t}\n \tsb.append(\"\\n\");\n }\n \tSystem.out.print(sb);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String sp=\" \";",
"sp",
"\" \"",
"String[] f=br.readLine().split(sp);",
"f",
"br.readLine().split(sp)",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"sp",
"int n=Integer.parseInt(f[0]);",
"n",
"Integer.parseInt(f[0])",
"Integer.parseInt",
"Integer",
"f[0]",
"f",
"0",
"int m=Integer.parseInt(f[1]);",
"m",
"Integer.parseInt(f[1])",
"Integer.parseInt",
"Integer",
"f[1]",
"f",
"1",
"int l=Integer.parseInt(f[2]);",
"l",
"Integer.parseInt(f[2])",
"Integer.parseInt",
"Integer",
"f[2]",
"f",
"2",
"int[][] A=new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int[][] B=new int[m][l];",
"B",
"new int[m][l]",
"m",
"l",
"String[] s;",
"s",
"for(int i=0;i<n;i++){\n \ts=br.readLine().split(sp);\n \tfor(int j=0;j<m;j++) A[i][j]=Integer.parseInt(s[j]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \ts=br.readLine().split(sp);\n \tfor(int j=0;j<m;j++) A[i][j]=Integer.parseInt(s[j]);\n }",
"{\n \ts=br.readLine().split(sp);\n \tfor(int j=0;j<m;j++) A[i][j]=Integer.parseInt(s[j]);\n }",
"s=br.readLine().split(sp)",
"s",
"br.readLine().split(sp)",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"sp",
"for(int j=0;j<m;j++) A[i][j]=Integer.parseInt(s[j]);",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"A[i][j]=Integer.parseInt(s[j]);",
"A[i][j]=Integer.parseInt(s[j])",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"Integer.parseInt(s[j])",
"Integer.parseInt",
"Integer",
"s[j]",
"s",
"j",
"for(int i=0;i<m;i++){\n \ts=br.readLine().split(sp);\n \tfor(int j=0;j<l;j++) B[i][j]=Integer.parseInt(s[j]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n \ts=br.readLine().split(sp);\n \tfor(int j=0;j<l;j++) B[i][j]=Integer.parseInt(s[j]);\n }",
"{\n \ts=br.readLine().split(sp);\n \tfor(int j=0;j<l;j++) B[i][j]=Integer.parseInt(s[j]);\n }",
"s=br.readLine().split(sp)",
"s",
"br.readLine().split(sp)",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"sp",
"for(int j=0;j<l;j++) B[i][j]=Integer.parseInt(s[j]);",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"B[i][j]=Integer.parseInt(s[j]);",
"B[i][j]=Integer.parseInt(s[j])",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"Integer.parseInt(s[j])",
"Integer.parseInt",
"Integer",
"s[j]",
"s",
"j",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"long b;",
"b",
"for(int ni=0;ni<n;ni++){\n \tfor(int li=0;li<l;li++){\n \t\tb=0;\n \tfor(int mi=0;mi<m;mi++) b+=A[ni][mi]*B[mi][li];\n \tsb.append(b);\n \tif(li!=l-1) sb.append(sp);\n \t}\n \tsb.append(\"\\n\");\n }",
"int ni=0;",
"int ni=0;",
"ni",
"0",
"ni<n",
"ni",
"n",
"ni++",
"ni++",
"ni",
"{\n \tfor(int li=0;li<l;li++){\n \t\tb=0;\n \tfor(int mi=0;mi<m;mi++) b+=A[ni][mi]*B[mi][li];\n \tsb.append(b);\n \tif(li!=l-1) sb.append(sp);\n \t}\n \tsb.append(\"\\n\");\n }",
"{\n \tfor(int li=0;li<l;li++){\n \t\tb=0;\n \tfor(int mi=0;mi<m;mi++) b+=A[ni][mi]*B[mi][li];\n \tsb.append(b);\n \tif(li!=l-1) sb.append(sp);\n \t}\n \tsb.append(\"\\n\");\n }",
"for(int li=0;li<l;li++){\n \t\tb=0;\n \tfor(int mi=0;mi<m;mi++) b+=A[ni][mi]*B[mi][li];\n \tsb.append(b);\n \tif(li!=l-1) sb.append(sp);\n \t}",
"int li=0;",
"int li=0;",
"li",
"0",
"li<l",
"li",
"l",
"li++",
"li++",
"li",
"{\n \t\tb=0;\n \tfor(int mi=0;mi<m;mi++) b+=A[ni][mi]*B[mi][li];\n \tsb.append(b);\n \tif(li!=l-1) sb.append(sp);\n \t}",
"{\n \t\tb=0;\n \tfor(int mi=0;mi<m;mi++) b+=A[ni][mi]*B[mi][li];\n \tsb.append(b);\n \tif(li!=l-1) sb.append(sp);\n \t}",
"b=0",
"b",
"0",
"for(int mi=0;mi<m;mi++) b+=A[ni][mi]*B[mi][li];",
"int mi=0;",
"int mi=0;",
"mi",
"0",
"mi<m",
"mi",
"m",
"mi++",
"mi++",
"mi",
"b+=A[ni][mi]*B[mi][li];",
"b+=A[ni][mi]*B[mi][li]",
"b",
"A[ni][mi]*B[mi][li]",
"A[ni][mi]",
"A[ni]",
"A",
"ni",
"mi",
"B[mi][li]",
"B[mi]",
"B",
"mi",
"li",
"sb.append(b)",
"sb.append",
"sb",
"b",
"if(li!=l-1) sb.append(sp);",
"li!=l-1",
"li",
"l-1",
"l",
"1",
"sb.append(sp)",
"sb.append",
"sb",
"sp",
"sb.append(\"\\n\")",
"sb.append",
"sb",
"\"\\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 sp=" ";
String[] f=br.readLine().split(sp);
int n=Integer.parseInt(f[0]);
int m=Integer.parseInt(f[1]);
int l=Integer.parseInt(f[2]);
int[][] A=new int[n][m];
int[][] B=new int[m][l];
String[] s;
for(int i=0;i<n;i++){
s=br.readLine().split(sp);
for(int j=0;j<m;j++) A[i][j]=Integer.parseInt(s[j]);
}
for(int i=0;i<m;i++){
s=br.readLine().split(sp);
for(int j=0;j<l;j++) B[i][j]=Integer.parseInt(s[j]);
}
StringBuilder sb = new StringBuilder();
long b;
for(int ni=0;ni<n;ni++){
for(int li=0;li<l;li++){
b=0;
for(int mi=0;mi<m;mi++) b+=A[ni][mi]*B[mi][li];
sb.append(b);
if(li!=l-1) sb.append(sp);
}
sb.append("\n");
}
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,
4,
18,
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,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
13,
4,
18,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
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
],
[
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
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
98,
104
],
[
104,
105
],
[
105,
106
],
[
8,
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
],
[
133,
135
],
[
132,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
141,
142
],
[
141,
143
],
[
136,
144
],
[
144,
145
],
[
145,
146
],
[
136,
147
],
[
148,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
151,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
132,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
132,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
173,
178
],
[
119,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
6,
184
],
[
184,
185
]
] | [
"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 = sc.nextInt();\n\t\t\n\t\tint[][] a = new int[n][m];\n\t\tint[][] b = new int[m][l];\n\t\t\n\t\tfor(int ar = 0; ar < n; ar++) {\n\t\t\tfor(int ac = 0; ac < m; ac++) {\n\t\t\t\ta[ar][ac] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int br = 0; br < m; br++) {\n\t\t\tfor(int bc = 0; bc < l; bc++) {\n\t\t\t\tb[br][bc] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int cr = 0; cr < n; cr++) {\n\t\t\tfor(int cc = 0; cc < l; cc++) {\n\t\t\t\tlong i = 0;\n\t\t\t\tfor(int ca = 0; ca < m; ca++) {\n\t\t\t\t\ti += a[cr][ca] * b[ca][cc];\n\t\t\t\t}\n\t\t\t\tif(cc != 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(i);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}\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 = sc.nextInt();\n\t\t\n\t\tint[][] a = new int[n][m];\n\t\tint[][] b = new int[m][l];\n\t\t\n\t\tfor(int ar = 0; ar < n; ar++) {\n\t\t\tfor(int ac = 0; ac < m; ac++) {\n\t\t\t\ta[ar][ac] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int br = 0; br < m; br++) {\n\t\t\tfor(int bc = 0; bc < l; bc++) {\n\t\t\t\tb[br][bc] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int cr = 0; cr < n; cr++) {\n\t\t\tfor(int cc = 0; cc < l; cc++) {\n\t\t\t\tlong i = 0;\n\t\t\t\tfor(int ca = 0; ca < m; ca++) {\n\t\t\t\t\ti += a[cr][ca] * b[ca][cc];\n\t\t\t\t}\n\t\t\t\tif(cc != 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(i);\n\t\t\t}\n\t\t\tSystem.out.println();\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 = sc.nextInt();\n\t\t\n\t\tint[][] a = new int[n][m];\n\t\tint[][] b = new int[m][l];\n\t\t\n\t\tfor(int ar = 0; ar < n; ar++) {\n\t\t\tfor(int ac = 0; ac < m; ac++) {\n\t\t\t\ta[ar][ac] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int br = 0; br < m; br++) {\n\t\t\tfor(int bc = 0; bc < l; bc++) {\n\t\t\t\tb[br][bc] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int cr = 0; cr < n; cr++) {\n\t\t\tfor(int cc = 0; cc < l; cc++) {\n\t\t\t\tlong i = 0;\n\t\t\t\tfor(int ca = 0; ca < m; ca++) {\n\t\t\t\t\ti += a[cr][ca] * b[ca][cc];\n\t\t\t\t}\n\t\t\t\tif(cc != 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(i);\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = sc.nextInt();\n\t\t\n\t\tint[][] a = new int[n][m];\n\t\tint[][] b = new int[m][l];\n\t\t\n\t\tfor(int ar = 0; ar < n; ar++) {\n\t\t\tfor(int ac = 0; ac < m; ac++) {\n\t\t\t\ta[ar][ac] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int br = 0; br < m; br++) {\n\t\t\tfor(int bc = 0; bc < l; bc++) {\n\t\t\t\tb[br][bc] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int cr = 0; cr < n; cr++) {\n\t\t\tfor(int cc = 0; cc < l; cc++) {\n\t\t\t\tlong i = 0;\n\t\t\t\tfor(int ca = 0; ca < m; ca++) {\n\t\t\t\t\ti += a[cr][ca] * b[ca][cc];\n\t\t\t\t}\n\t\t\t\tif(cc != 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(i);\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] a = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[][] b = new int[m][l];",
"b",
"new int[m][l]",
"m",
"l",
"for(int ar = 0; ar < n; ar++) {\n\t\t\tfor(int ac = 0; ac < m; ac++) {\n\t\t\t\ta[ar][ac] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int ar = 0;",
"int ar = 0;",
"ar",
"0",
"ar < n",
"ar",
"n",
"ar++",
"ar++",
"ar",
"{\n\t\t\tfor(int ac = 0; ac < m; ac++) {\n\t\t\t\ta[ar][ac] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int ac = 0; ac < m; ac++) {\n\t\t\t\ta[ar][ac] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int ac = 0; ac < m; ac++) {\n\t\t\t\ta[ar][ac] = sc.nextInt();\n\t\t\t}",
"int ac = 0;",
"int ac = 0;",
"ac",
"0",
"ac < m",
"ac",
"m",
"ac++",
"ac++",
"ac",
"{\n\t\t\t\ta[ar][ac] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\ta[ar][ac] = sc.nextInt();\n\t\t\t}",
"a[ar][ac] = sc.nextInt()",
"a[ar][ac]",
"a[ar]",
"a",
"ar",
"ac",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int br = 0; br < m; br++) {\n\t\t\tfor(int bc = 0; bc < l; bc++) {\n\t\t\t\tb[br][bc] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int br = 0;",
"int br = 0;",
"br",
"0",
"br < m",
"br",
"m",
"br++",
"br++",
"br",
"{\n\t\t\tfor(int bc = 0; bc < l; bc++) {\n\t\t\t\tb[br][bc] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int bc = 0; bc < l; bc++) {\n\t\t\t\tb[br][bc] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int bc = 0; bc < l; bc++) {\n\t\t\t\tb[br][bc] = sc.nextInt();\n\t\t\t}",
"int bc = 0;",
"int bc = 0;",
"bc",
"0",
"bc < l",
"bc",
"l",
"bc++",
"bc++",
"bc",
"{\n\t\t\t\tb[br][bc] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tb[br][bc] = sc.nextInt();\n\t\t\t}",
"b[br][bc] = sc.nextInt()",
"b[br][bc]",
"b[br]",
"b",
"br",
"bc",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int cr = 0; cr < n; cr++) {\n\t\t\tfor(int cc = 0; cc < l; cc++) {\n\t\t\t\tlong i = 0;\n\t\t\t\tfor(int ca = 0; ca < m; ca++) {\n\t\t\t\t\ti += a[cr][ca] * b[ca][cc];\n\t\t\t\t}\n\t\t\t\tif(cc != 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(i);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"int cr = 0;",
"int cr = 0;",
"cr",
"0",
"cr < n",
"cr",
"n",
"cr++",
"cr++",
"cr",
"{\n\t\t\tfor(int cc = 0; cc < l; cc++) {\n\t\t\t\tlong i = 0;\n\t\t\t\tfor(int ca = 0; ca < m; ca++) {\n\t\t\t\t\ti += a[cr][ca] * b[ca][cc];\n\t\t\t\t}\n\t\t\t\tif(cc != 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(i);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor(int cc = 0; cc < l; cc++) {\n\t\t\t\tlong i = 0;\n\t\t\t\tfor(int ca = 0; ca < m; ca++) {\n\t\t\t\t\ti += a[cr][ca] * b[ca][cc];\n\t\t\t\t}\n\t\t\t\tif(cc != 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(i);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for(int cc = 0; cc < l; cc++) {\n\t\t\t\tlong i = 0;\n\t\t\t\tfor(int ca = 0; ca < m; ca++) {\n\t\t\t\t\ti += a[cr][ca] * b[ca][cc];\n\t\t\t\t}\n\t\t\t\tif(cc != 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(i);\n\t\t\t}",
"int cc = 0;",
"int cc = 0;",
"cc",
"0",
"cc < l",
"cc",
"l",
"cc++",
"cc++",
"cc",
"{\n\t\t\t\tlong i = 0;\n\t\t\t\tfor(int ca = 0; ca < m; ca++) {\n\t\t\t\t\ti += a[cr][ca] * b[ca][cc];\n\t\t\t\t}\n\t\t\t\tif(cc != 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(i);\n\t\t\t}",
"{\n\t\t\t\tlong i = 0;\n\t\t\t\tfor(int ca = 0; ca < m; ca++) {\n\t\t\t\t\ti += a[cr][ca] * b[ca][cc];\n\t\t\t\t}\n\t\t\t\tif(cc != 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(i);\n\t\t\t}",
"long i = 0;",
"i",
"0",
"for(int ca = 0; ca < m; ca++) {\n\t\t\t\t\ti += a[cr][ca] * b[ca][cc];\n\t\t\t\t}",
"int ca = 0;",
"int ca = 0;",
"ca",
"0",
"ca < m",
"ca",
"m",
"ca++",
"ca++",
"ca",
"{\n\t\t\t\t\ti += a[cr][ca] * b[ca][cc];\n\t\t\t\t}",
"{\n\t\t\t\t\ti += a[cr][ca] * b[ca][cc];\n\t\t\t\t}",
"i += a[cr][ca] * b[ca][cc]",
"i",
"a[cr][ca] * b[ca][cc]",
"a[cr][ca]",
"a[cr]",
"a",
"cr",
"ca",
"b[ca][cc]",
"b[ca]",
"b",
"ca",
"cc",
"if(cc != 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"cc != 0",
"cc",
"0",
"{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.print(i)",
"System.out.print",
"System.out",
"System",
"System.out",
"i",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String args[]",
"args"
] | import java.util.Scanner;
class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
int l = sc.nextInt();
int[][] a = new int[n][m];
int[][] b = new int[m][l];
for(int ar = 0; ar < n; ar++) {
for(int ac = 0; ac < m; ac++) {
a[ar][ac] = sc.nextInt();
}
}
for(int br = 0; br < m; br++) {
for(int bc = 0; bc < l; bc++) {
b[br][bc] = sc.nextInt();
}
}
for(int cr = 0; cr < n; cr++) {
for(int cc = 0; cc < l; cc++) {
long i = 0;
for(int ca = 0; ca < m; ca++) {
i += a[cr][ca] * b[ca][cc];
}
if(cc != 0) {
System.out.print(" ");
}
System.out.print(i);
}
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,
4,
18,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
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,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
185,
5
],
[
185,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
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
],
[
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
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
82,
90
],
[
90,
91
],
[
91,
92
],
[
82,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
94,
100
],
[
100,
101
],
[
101,
102
],
[
8,
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
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
121,
122
],
[
121,
123
],
[
116,
124
],
[
124,
125
],
[
125,
126
],
[
116,
127
],
[
128,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
128,
139
],
[
139,
140
],
[
139,
141
],
[
128,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
142,
147
],
[
147,
148
],
[
147,
149
],
[
142,
150
],
[
150,
151
],
[
151,
152
],
[
142,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
156,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
128,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
115,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
8,
178
],
[
178,
179
],
[
179,
180
],
[
178,
181
],
[
6,
182
],
[
182,
183
],
[
0,
184
],
[
184,
185
],
[
184,
186
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\n\t\tint[][] a = new int[n][m];\n\t\tint[][] b = new int[m][l];\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\tfor (int i = 0; i < m; i++)\n\t\t\tfor (int j = 0; j < l; j++)\n\t\t\t\tb[i][j] = scan.nextInt();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tif (j > 0)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tlong ans = 0;\n\t\t\t\tfor (int w = 0; w < m; w++)\n\t\t\t\t\tans += (a[i][w] * b[w][j]);\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t\tSystem.out.println();\n\n\t\t}\n\t\tSystem.exit(0);\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@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\n\t\tint[][] a = new int[n][m];\n\t\tint[][] b = new int[m][l];\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\tfor (int i = 0; i < m; i++)\n\t\t\tfor (int j = 0; j < l; j++)\n\t\t\t\tb[i][j] = scan.nextInt();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tif (j > 0)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tlong ans = 0;\n\t\t\t\tfor (int w = 0; w < m; w++)\n\t\t\t\t\tans += (a[i][w] * b[w][j]);\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t\tSystem.out.println();\n\n\t\t}\n\t\tSystem.exit(0);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\n\t\tint[][] a = new int[n][m];\n\t\tint[][] b = new int[m][l];\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\tfor (int i = 0; i < m; i++)\n\t\t\tfor (int j = 0; j < l; j++)\n\t\t\t\tb[i][j] = scan.nextInt();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tif (j > 0)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tlong ans = 0;\n\t\t\t\tfor (int w = 0; w < m; w++)\n\t\t\t\t\tans += (a[i][w] * b[w][j]);\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t\tSystem.out.println();\n\n\t\t}\n\t\tSystem.exit(0);\n\t}",
"main",
"{\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\n\t\tint[][] a = new int[n][m];\n\t\tint[][] b = new int[m][l];\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\tfor (int i = 0; i < m; i++)\n\t\t\tfor (int j = 0; j < l; j++)\n\t\t\t\tb[i][j] = scan.nextInt();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tif (j > 0)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tlong ans = 0;\n\t\t\t\tfor (int w = 0; w < m; w++)\n\t\t\t\t\tans += (a[i][w] * b[w][j]);\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t\tSystem.out.println();\n\n\t\t}\n\t\tSystem.exit(0);\n\t}",
"@SuppressWarnings(\"resource\")\n\t\tScanner 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 l = scan.nextInt();",
"l",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[][] a = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[][] b = new int[m][l];",
"b",
"new int[m][l]",
"m",
"l",
"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();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"for (int j = 0; j < m; j++)\n\t\t\t\ta[i][j] = scan.nextInt();",
"for (int j = 0; j < m; j++)\n\t\t\t\ta[i][j] = scan.nextInt();",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"a[i][j] = scan.nextInt();",
"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\tfor (int j = 0; j < l; j++)\n\t\t\t\tb[i][j] = scan.nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"for (int j = 0; j < l; j++)\n\t\t\t\tb[i][j] = scan.nextInt();",
"for (int j = 0; j < l; j++)\n\t\t\t\tb[i][j] = scan.nextInt();",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"b[i][j] = scan.nextInt();",
"b[i][j] = scan.nextInt()",
"b[i][j]",
"b[i]",
"b",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tif (j > 0)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tlong ans = 0;\n\t\t\t\tfor (int w = 0; w < m; w++)\n\t\t\t\t\tans += (a[i][w] * b[w][j]);\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t\tSystem.out.println();\n\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\tif (j > 0)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tlong ans = 0;\n\t\t\t\tfor (int w = 0; w < m; w++)\n\t\t\t\t\tans += (a[i][w] * b[w][j]);\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t\tSystem.out.println();\n\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tif (j > 0)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tlong ans = 0;\n\t\t\t\tfor (int w = 0; w < m; w++)\n\t\t\t\t\tans += (a[i][w] * b[w][j]);\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t\tSystem.out.println();\n\n\t\t}",
"for (int j = 0; j < l; j++) {\n\t\t\t\tif (j > 0)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tlong ans = 0;\n\t\t\t\tfor (int w = 0; w < m; w++)\n\t\t\t\t\tans += (a[i][w] * b[w][j]);\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tif (j > 0)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tlong ans = 0;\n\t\t\t\tfor (int w = 0; w < m; w++)\n\t\t\t\t\tans += (a[i][w] * b[w][j]);\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}",
"{\n\t\t\t\tif (j > 0)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tlong ans = 0;\n\t\t\t\tfor (int w = 0; w < m; w++)\n\t\t\t\t\tans += (a[i][w] * b[w][j]);\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}",
"if (j > 0)\n\t\t\t\t\tSystem.out.print(\" \");",
"j > 0",
"j",
"0",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"long ans = 0;",
"ans",
"0",
"for (int w = 0; w < m; w++)\n\t\t\t\t\tans += (a[i][w] * b[w][j]);",
"int w = 0;",
"int w = 0;",
"w",
"0",
"w < m",
"w",
"m",
"w++",
"w++",
"w",
"ans += (a[i][w] * b[w][j]);",
"ans += (a[i][w] * b[w][j])",
"ans",
"(a[i][w] * b[w][j])",
"a[i][w]",
"a[i]",
"a",
"i",
"w",
"b[w][j]",
"b[w]",
"b",
"w",
"j",
"System.out.print(ans)",
"System.out.print",
"System.out",
"System",
"System.out",
"ans",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"System.exit(0)",
"System.exit",
"System",
"0",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\n\t\tint[][] a = new int[n][m];\n\t\tint[][] b = new int[m][l];\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\tfor (int i = 0; i < m; i++)\n\t\t\tfor (int j = 0; j < l; j++)\n\t\t\t\tb[i][j] = scan.nextInt();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tif (j > 0)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tlong ans = 0;\n\t\t\t\tfor (int w = 0; w < m; w++)\n\t\t\t\t\tans += (a[i][w] * b[w][j]);\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t\tSystem.out.println();\n\n\t\t}\n\t\tSystem.exit(0);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\n\t\tint[][] a = new int[n][m];\n\t\tint[][] b = new int[m][l];\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\tfor (int i = 0; i < m; i++)\n\t\t\tfor (int j = 0; j < l; j++)\n\t\t\t\tb[i][j] = scan.nextInt();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tif (j > 0)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tlong ans = 0;\n\t\t\t\tfor (int w = 0; w < m; w++)\n\t\t\t\t\tans += (a[i][w] * b[w][j]);\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t\tSystem.out.println();\n\n\t\t}\n\t\tSystem.exit(0);\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
@SuppressWarnings("resource")
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int m = scan.nextInt();
int l = scan.nextInt();
int[][] a = new int[n][m];
int[][] b = new int[m][l];
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++)
for (int j = 0; j < l; j++)
b[i][j] = scan.nextInt();
for (int i = 0; i < n; i++) {
for (int j = 0; j < l; j++) {
if (j > 0)
System.out.print(" ");
long ans = 0;
for (int w = 0; w < m; w++)
ans += (a[i][w] * b[w][j]);
System.out.print(ans);
}
System.out.println();
}
System.exit(0);
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
13,
13,
13,
41,
13,
4,
13,
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,
18,
13,
13,
18,
18,
13,
17,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
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,
2,
18,
18,
13,
13,
13,
18,
18,
13,
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,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
17,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
248,
5
],
[
248,
6
],
[
6,
7
],
[
6,
8
],
[
248,
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
],
[
25,
26
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
29,
32
],
[
11,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
35,
38
],
[
11,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
41,
44
],
[
11,
45
],
[
45,
46
],
[
45,
47
],
[
9,
48
],
[
48,
49
],
[
248,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
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
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
71,
82
],
[
83,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
84,
90
],
[
90,
91
],
[
91,
92
],
[
52,
93
],
[
93,
94
],
[
50,
95
],
[
95,
96
],
[
50,
97
],
[
97,
98
],
[
248,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
105,
106
],
[
105,
107
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
101,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
120,
122
],
[
113,
123
],
[
123,
124
],
[
124,
125
],
[
113,
126
],
[
127,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
135,
137
],
[
128,
138
],
[
138,
139
],
[
139,
140
],
[
128,
141
],
[
142,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
143,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
143,
155
],
[
155,
156
],
[
156,
157
],
[
143,
158
],
[
159,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
160,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
166,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
101,
177
],
[
177,
178
],
[
99,
179
],
[
179,
180
],
[
99,
181
],
[
181,
182
],
[
248,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
186,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
193,
195
],
[
186,
196
],
[
196,
197
],
[
197,
198
],
[
186,
199
],
[
200,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
201,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
206,
210
],
[
200,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
211,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
218,
222
],
[
211,
223
],
[
223,
224
],
[
224,
225
],
[
211,
226
],
[
227,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
228,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
235,
239
],
[
200,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
183,
245
],
[
245,
246
],
[
0,
247
],
[
247,
248
],
[
247,
249
]
] | [
"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\n\t\t// 1行目入力\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\n\t\t// 行列の生成と行列内容入力\n\t\tlong[][] A = CreateMatrix(n, m);\n\t\tlong[][] B = CreateMatrix(m, l);\n\n\t\t// 行列の積計算\n\t\tlong[][] C = MatrixMultiplication(A, B);\n\n\t\t// 表示処理\n\t\tPrint(C);\n\n\t}\n\n\t// 行列生成と行列内容入力、行列(long2次元配列)を返す\n\tstatic long[][] CreateMatrix(int y, int x) {\n\t\tlong[][] Matrix = new long[y][x];\n\t\tfor (int i = 0; i < y; i++) {\n\n\t\t\tfor (int k = 0; k < x; k++) {\n\n\t\t\t\t// 入力\n\t\t\t\tMatrix[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\treturn Matrix;\n\t}\n\n\t// 行列の積計算し、計算結果の行列(long二次元配列)を返す\n\tstatic long[][] MatrixMultiplication(long[][] A, long[][] B) {\n\t\tlong[][] C = new long[A.length][B[0].length];\n\t\tfor (int k = 0; k < B.length; k++) {\n\n\t\t\tfor (int i = 0; i < A.length; i++) {\n\n\t\t\t\tfor (int j = 0; j < B[0].length; j++) {\n\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\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\t// System.out.println(C.length);\n\t\tfor (int i = 0; i < C.length; i++) {\n\t\t\tSystem.out.print(C[i][0]);\n\t\t\tfor (int j = 1; j < C[0].length; j++) {\n\t\t\t\t// 数字の間にスペースを入れる\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\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\n\t\t// 1行目入力\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\n\t\t// 行列の生成と行列内容入力\n\t\tlong[][] A = CreateMatrix(n, m);\n\t\tlong[][] B = CreateMatrix(m, l);\n\n\t\t// 行列の積計算\n\t\tlong[][] C = MatrixMultiplication(A, B);\n\n\t\t// 表示処理\n\t\tPrint(C);\n\n\t}\n\n\t// 行列生成と行列内容入力、行列(long2次元配列)を返す\n\tstatic long[][] CreateMatrix(int y, int x) {\n\t\tlong[][] Matrix = new long[y][x];\n\t\tfor (int i = 0; i < y; i++) {\n\n\t\t\tfor (int k = 0; k < x; k++) {\n\n\t\t\t\t// 入力\n\t\t\t\tMatrix[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\treturn Matrix;\n\t}\n\n\t// 行列の積計算し、計算結果の行列(long二次元配列)を返す\n\tstatic long[][] MatrixMultiplication(long[][] A, long[][] B) {\n\t\tlong[][] C = new long[A.length][B[0].length];\n\t\tfor (int k = 0; k < B.length; k++) {\n\n\t\t\tfor (int i = 0; i < A.length; i++) {\n\n\t\t\t\tfor (int j = 0; j < B[0].length; j++) {\n\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\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\t// System.out.println(C.length);\n\t\tfor (int i = 0; i < C.length; i++) {\n\t\t\tSystem.out.print(C[i][0]);\n\t\t\tfor (int j = 1; j < C[0].length; j++) {\n\t\t\t\t// 数字の間にスペースを入れる\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\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\n\t\t// 1行目入力\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\n\t\t// 行列の生成と行列内容入力\n\t\tlong[][] A = CreateMatrix(n, m);\n\t\tlong[][] B = CreateMatrix(m, l);\n\n\t\t// 行列の積計算\n\t\tlong[][] C = MatrixMultiplication(A, B);\n\n\t\t// 表示処理\n\t\tPrint(C);\n\n\t}",
"main",
"{\n\n\t\t// 1行目入力\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\n\t\t// 行列の生成と行列内容入力\n\t\tlong[][] A = CreateMatrix(n, m);\n\t\tlong[][] B = CreateMatrix(m, l);\n\n\t\t// 行列の積計算\n\t\tlong[][] C = MatrixMultiplication(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",
"int l = sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long[][] A = CreateMatrix(n, m);",
"A",
"CreateMatrix(n, m)",
"CreateMatrix",
"n",
"m",
"long[][] B = CreateMatrix(m, l);",
"B",
"CreateMatrix(m, l)",
"CreateMatrix",
"m",
"l",
"long[][] C = MatrixMultiplication(A, B);",
"C",
"MatrixMultiplication(A, B)",
"MatrixMultiplication",
"A",
"B",
"Print(C)",
"Print",
"C",
"String[] args",
"args",
"// 行列生成と行列内容入力、行列(long2次元配列)を返す\n\tstatic long[][] CreateMatrix(int y, int x) {\n\t\tlong[][] Matrix = new long[y][x];\n\t\tfor (int i = 0; i < y; i++) {\n\n\t\t\tfor (int k = 0; k < x; k++) {\n\n\t\t\t\t// 入力\n\t\t\t\tMatrix[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\treturn Matrix;\n\t}",
"CreateMatrix",
"{\n\t\tlong[][] Matrix = new long[y][x];\n\t\tfor (int i = 0; i < y; i++) {\n\n\t\t\tfor (int k = 0; k < x; k++) {\n\n\t\t\t\t// 入力\n\t\t\t\tMatrix[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\treturn Matrix;\n\t}",
"long[][] Matrix = new long[y][x];",
"Matrix",
"new long[y][x]",
"y",
"x",
"for (int i = 0; i < y; i++) {\n\n\t\t\tfor (int k = 0; k < x; k++) {\n\n\t\t\t\t// 入力\n\t\t\t\tMatrix[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < y",
"i",
"y",
"i++",
"i++",
"i",
"{\n\n\t\t\tfor (int k = 0; k < x; k++) {\n\n\t\t\t\t// 入力\n\t\t\t\tMatrix[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\n\t\t\tfor (int k = 0; k < x; k++) {\n\n\t\t\t\t// 入力\n\t\t\t\tMatrix[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for (int k = 0; k < x; k++) {\n\n\t\t\t\t// 入力\n\t\t\t\tMatrix[i][k] = sc.nextInt();\n\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < x",
"k",
"x",
"k++",
"k++",
"k",
"{\n\n\t\t\t\t// 入力\n\t\t\t\tMatrix[i][k] = sc.nextInt();\n\t\t\t}",
"{\n\n\t\t\t\t// 入力\n\t\t\t\tMatrix[i][k] = sc.nextInt();\n\t\t\t}",
"Matrix[i][k] = sc.nextInt()",
"Matrix[i][k]",
"Matrix[i]",
"Matrix",
"i",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"return Matrix;",
"Matrix",
"int y",
"y",
"int x",
"x",
"// 行列の積計算し、計算結果の行列(long二次元配列)を返す\n\tstatic long[][] MatrixMultiplication(long[][] A, long[][] B) {\n\t\tlong[][] C = new long[A.length][B[0].length];\n\t\tfor (int k = 0; k < B.length; k++) {\n\n\t\t\tfor (int i = 0; i < A.length; i++) {\n\n\t\t\t\tfor (int j = 0; j < B[0].length; j++) {\n\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn C;\n\t}",
"MatrixMultiplication",
"{\n\t\tlong[][] C = new long[A.length][B[0].length];\n\t\tfor (int k = 0; k < B.length; k++) {\n\n\t\t\tfor (int i = 0; i < A.length; i++) {\n\n\t\t\t\tfor (int j = 0; j < B[0].length; j++) {\n\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn C;\n\t}",
"long[][] C = new long[A.length][B[0].length];",
"C",
"new long[A.length][B[0].length]",
"A.length",
"A",
"A.length",
"B[0].length",
"B[0]",
"B",
"0",
"B[0].length",
"for (int k = 0; k < B.length; k++) {\n\n\t\t\tfor (int i = 0; i < A.length; i++) {\n\n\t\t\t\tfor (int j = 0; j < B[0].length; j++) {\n\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < B.length",
"k",
"B.length",
"B",
"B.length",
"k++",
"k++",
"k",
"{\n\n\t\t\tfor (int i = 0; i < A.length; i++) {\n\n\t\t\t\tfor (int j = 0; j < B[0].length; j++) {\n\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\n\t\t\tfor (int i = 0; i < A.length; i++) {\n\n\t\t\t\tfor (int j = 0; j < B[0].length; j++) {\n\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int i = 0; i < A.length; i++) {\n\n\t\t\t\tfor (int j = 0; j < B[0].length; j++) {\n\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < A.length",
"i",
"A.length",
"A",
"A.length",
"i++",
"i++",
"i",
"{\n\n\t\t\t\tfor (int j = 0; j < B[0].length; j++) {\n\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}",
"{\n\n\t\t\t\tfor (int j = 0; j < B[0].length; j++) {\n\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}",
"for (int j = 0; j < B[0].length; j++) {\n\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < B[0].length",
"j",
"B[0].length",
"B[0]",
"B",
"0",
"B[0].length",
"j++",
"j++",
"j",
"{\n\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}",
"{\n\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}",
"C[i][j] += A[i][k] * B[k][j]",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"A[i][k] * B[k][j]",
"A[i][k]",
"A[i]",
"A",
"i",
"k",
"B[k][j]",
"B[k]",
"B",
"k",
"j",
"return C;",
"C",
"long[][] A",
"A",
"long[][] B",
"B",
"// 表示処理\n\tstatic void Print(long[][] C) {\n\t\t// System.out.println(C.length);\n\t\tfor (int i = 0; i < C.length; i++) {\n\t\t\tSystem.out.print(C[i][0]);\n\t\t\tfor (int j = 1; j < C[0].length; j++) {\n\t\t\t\t// 数字の間にスペースを入れる\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\n\t\t}\n\t}",
"Print",
"{\n\t\t// System.out.println(C.length);\n\t\tfor (int i = 0; i < C.length; i++) {\n\t\t\tSystem.out.print(C[i][0]);\n\t\t\tfor (int j = 1; j < C[0].length; j++) {\n\t\t\t\t// 数字の間にスペースを入れる\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\n\t\t}\n\t}",
"for (int i = 0; i < C.length; i++) {\n\t\t\tSystem.out.print(C[i][0]);\n\t\t\tfor (int j = 1; j < C[0].length; j++) {\n\t\t\t\t// 数字の間にスペースを入れる\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < C.length",
"i",
"C.length",
"C",
"C.length",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.print(C[i][0]);\n\t\t\tfor (int j = 1; j < C[0].length; j++) {\n\t\t\t\t// 数字の間にスペースを入れる\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\n\t\t}",
"{\n\t\t\tSystem.out.print(C[i][0]);\n\t\t\tfor (int j = 1; j < C[0].length; j++) {\n\t\t\t\t// 数字の間にスペースを入れる\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\n\t\t}",
"System.out.print(C[i][0])",
"System.out.print",
"System.out",
"System",
"System.out",
"C[i][0]",
"C[i]",
"C",
"i",
"0",
"for (int j = 1; j < C[0].length; j++) {\n\t\t\t\t// 数字の間にスペースを入れる\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j < C[0].length",
"j",
"C[0].length",
"C[0]",
"C",
"0",
"C[0].length",
"j++",
"j++",
"j",
"{\n\t\t\t\t// 数字の間にスペースを入れる\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}",
"{\n\t\t\t\t// 数字の間にスペースを入れる\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}",
"System.out.print(\" \" + C[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + C[i][j]",
"\" \"",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"long[][] C",
"C",
"public class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\t// 1行目入力\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\n\t\t// 行列の生成と行列内容入力\n\t\tlong[][] A = CreateMatrix(n, m);\n\t\tlong[][] B = CreateMatrix(m, l);\n\n\t\t// 行列の積計算\n\t\tlong[][] C = MatrixMultiplication(A, B);\n\n\t\t// 表示処理\n\t\tPrint(C);\n\n\t}\n\n\t// 行列生成と行列内容入力、行列(long2次元配列)を返す\n\tstatic long[][] CreateMatrix(int y, int x) {\n\t\tlong[][] Matrix = new long[y][x];\n\t\tfor (int i = 0; i < y; i++) {\n\n\t\t\tfor (int k = 0; k < x; k++) {\n\n\t\t\t\t// 入力\n\t\t\t\tMatrix[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\treturn Matrix;\n\t}\n\n\t// 行列の積計算し、計算結果の行列(long二次元配列)を返す\n\tstatic long[][] MatrixMultiplication(long[][] A, long[][] B) {\n\t\tlong[][] C = new long[A.length][B[0].length];\n\t\tfor (int k = 0; k < B.length; k++) {\n\n\t\t\tfor (int i = 0; i < A.length; i++) {\n\n\t\t\t\tfor (int j = 0; j < B[0].length; j++) {\n\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\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\t// System.out.println(C.length);\n\t\tfor (int i = 0; i < C.length; i++) {\n\t\t\tSystem.out.print(C[i][0]);\n\t\t\tfor (int j = 1; j < C[0].length; j++) {\n\t\t\t\t// 数字の間にスペースを入れる\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\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\n\t\t// 1行目入力\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\n\t\t// 行列の生成と行列内容入力\n\t\tlong[][] A = CreateMatrix(n, m);\n\t\tlong[][] B = CreateMatrix(m, l);\n\n\t\t// 行列の積計算\n\t\tlong[][] C = MatrixMultiplication(A, B);\n\n\t\t// 表示処理\n\t\tPrint(C);\n\n\t}\n\n\t// 行列生成と行列内容入力、行列(long2次元配列)を返す\n\tstatic long[][] CreateMatrix(int y, int x) {\n\t\tlong[][] Matrix = new long[y][x];\n\t\tfor (int i = 0; i < y; i++) {\n\n\t\t\tfor (int k = 0; k < x; k++) {\n\n\t\t\t\t// 入力\n\t\t\t\tMatrix[i][k] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\treturn Matrix;\n\t}\n\n\t// 行列の積計算し、計算結果の行列(long二次元配列)を返す\n\tstatic long[][] MatrixMultiplication(long[][] A, long[][] B) {\n\t\tlong[][] C = new long[A.length][B[0].length];\n\t\tfor (int k = 0; k < B.length; k++) {\n\n\t\t\tfor (int i = 0; i < A.length; i++) {\n\n\t\t\t\tfor (int j = 0; j < B[0].length; j++) {\n\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\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\t// System.out.println(C.length);\n\t\tfor (int i = 0; i < C.length; i++) {\n\t\t\tSystem.out.print(C[i][0]);\n\t\t\tfor (int j = 1; j < C[0].length; j++) {\n\t\t\t\t// 数字の間にスペースを入れる\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\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) {
// 1行目入力
int n = sc.nextInt();
int m = sc.nextInt();
int l = sc.nextInt();
// 行列の生成と行列内容入力
long[][] A = CreateMatrix(n, m);
long[][] B = CreateMatrix(m, l);
// 行列の積計算
long[][] C = MatrixMultiplication(A, B);
// 表示処理
Print(C);
}
// 行列生成と行列内容入力、行列(long2次元配列)を返す
static long[][] CreateMatrix(int y, int x) {
long[][] Matrix = new long[y][x];
for (int i = 0; i < y; i++) {
for (int k = 0; k < x; k++) {
// 入力
Matrix[i][k] = sc.nextInt();
}
}
return Matrix;
}
// 行列の積計算し、計算結果の行列(long二次元配列)を返す
static long[][] MatrixMultiplication(long[][] A, long[][] B) {
long[][] C = new long[A.length][B[0].length];
for (int k = 0; k < B.length; k++) {
for (int i = 0; i < A.length; i++) {
for (int j = 0; j < B[0].length; j++) {
C[i][j] += A[i][k] * B[k][j];
}
}
}
return C;
}
// 表示処理
static void Print(long[][] C) {
// System.out.println(C.length);
for (int i = 0; i < C.length; i++) {
System.out.print(C[i][0]);
for (int j = 1; j < C[0].length; j++) {
// 数字の間にスペースを入れる
System.out.print(" " + C[i][j]);
}
System.out.println();
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
18,
18,
13,
13,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
18,
18,
13,
13,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
18,
18,
13,
13,
13,
17,
30,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
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
],
[
4,
16
],
[
16,
17
],
[
4,
18
],
[
18,
19
],
[
4,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
22,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
22,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
22,
41
],
[
41,
42
],
[
41,
43
],
[
22,
46
],
[
46,
47
],
[
46,
48
],
[
22,
51
],
[
51,
52
],
[
51,
53
],
[
22,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
56,
64
],
[
64,
65
],
[
65,
66
],
[
56,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
69,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
87,
93
],
[
22,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
94,
102
],
[
102,
103
],
[
103,
104
],
[
94,
105
],
[
106,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
107,
115
],
[
115,
116
],
[
116,
117
],
[
107,
118
],
[
119,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
119,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
125,
131
],
[
22,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
137,
138
],
[
137,
139
],
[
132,
140
],
[
140,
141
],
[
141,
142
],
[
132,
143
],
[
144,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
145,
150
],
[
150,
151
],
[
150,
152
],
[
145,
153
],
[
153,
154
],
[
154,
155
],
[
145,
156
],
[
157,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
158,
163
],
[
163,
164
],
[
163,
165
],
[
158,
166
],
[
166,
167
],
[
167,
168
],
[
158,
169
],
[
170,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
171,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
182
],
[
177,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
183,
187
],
[
22,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
188,
193
],
[
193,
194
],
[
193,
195
],
[
188,
196
],
[
196,
197
],
[
197,
198
],
[
188,
199
],
[
200,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
201,
206
],
[
206,
207
],
[
206,
208
],
[
201,
209
],
[
209,
210
],
[
210,
211
],
[
201,
212
],
[
213,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
217,
219
],
[
214,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
221,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
227,
231
],
[
226,
232
],
[
214,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
234,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
239,
243
],
[
20,
244
],
[
244,
245
]
] | [
"import java.util.*;\n\nclass Main{\n static int n,m,l,a,i,j,k;\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n long[][] matrixa = new long[n][m];\n long[][] matrixb = new long[m][l];\n long[][] matrixc = new long[n][l]; \n for (i= 0; i<n; i++) {\n for (j= 0; j<m; j++) {\n a = sc.nextInt();\n matrixa[i][j] = a;\n }\n } \n for (i= 0; i<m; i++) {\n for (j= 0; j<l; j++) {\n a = sc.nextInt();\n matrixb[i][j] = a;\n }\n }\n for (i= 0; i<n; i++) {\n for (j= 0; j<l; j++) {\n for (k= 0; k<m ; k++) {\n matrixc[i][j] += matrixa[i][k] * matrixb[k][j];\n }\n }\n }\n for (i= 0; i<n; i++) {\n for (j= 0; j<l; j++) {\n if (j != l-1) {\n System.out.print(matrixc[i][j] + \" \");\n } else {\n System.out.println(matrixc[i][j]);\n }\n }\n }\n } \n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n static int n,m,l,a,i,j,k;\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n long[][] matrixa = new long[n][m];\n long[][] matrixb = new long[m][l];\n long[][] matrixc = new long[n][l]; \n for (i= 0; i<n; i++) {\n for (j= 0; j<m; j++) {\n a = sc.nextInt();\n matrixa[i][j] = a;\n }\n } \n for (i= 0; i<m; i++) {\n for (j= 0; j<l; j++) {\n a = sc.nextInt();\n matrixb[i][j] = a;\n }\n }\n for (i= 0; i<n; i++) {\n for (j= 0; j<l; j++) {\n for (k= 0; k<m ; k++) {\n matrixc[i][j] += matrixa[i][k] * matrixb[k][j];\n }\n }\n }\n for (i= 0; i<n; i++) {\n for (j= 0; j<l; j++) {\n if (j != l-1) {\n System.out.print(matrixc[i][j] + \" \");\n } else {\n System.out.println(matrixc[i][j]);\n }\n }\n }\n } \n}",
"Main",
"static int n",
"n",
"m",
"m",
"l",
"l",
"a",
"a",
"i",
"i",
"j",
"j",
"k;",
"k",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n long[][] matrixa = new long[n][m];\n long[][] matrixb = new long[m][l];\n long[][] matrixc = new long[n][l]; \n for (i= 0; i<n; i++) {\n for (j= 0; j<m; j++) {\n a = sc.nextInt();\n matrixa[i][j] = a;\n }\n } \n for (i= 0; i<m; i++) {\n for (j= 0; j<l; j++) {\n a = sc.nextInt();\n matrixb[i][j] = a;\n }\n }\n for (i= 0; i<n; i++) {\n for (j= 0; j<l; j++) {\n for (k= 0; k<m ; k++) {\n matrixc[i][j] += matrixa[i][k] * matrixb[k][j];\n }\n }\n }\n for (i= 0; i<n; i++) {\n for (j= 0; j<l; j++) {\n if (j != l-1) {\n System.out.print(matrixc[i][j] + \" \");\n } else {\n System.out.println(matrixc[i][j]);\n }\n }\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n long[][] matrixa = new long[n][m];\n long[][] matrixb = new long[m][l];\n long[][] matrixc = new long[n][l]; \n for (i= 0; i<n; i++) {\n for (j= 0; j<m; j++) {\n a = sc.nextInt();\n matrixa[i][j] = a;\n }\n } \n for (i= 0; i<m; i++) {\n for (j= 0; j<l; j++) {\n a = sc.nextInt();\n matrixb[i][j] = a;\n }\n }\n for (i= 0; i<n; i++) {\n for (j= 0; j<l; j++) {\n for (k= 0; k<m ; k++) {\n matrixc[i][j] += matrixa[i][k] * matrixb[k][j];\n }\n }\n }\n for (i= 0; i<n; i++) {\n for (j= 0; j<l; j++) {\n if (j != l-1) {\n System.out.print(matrixc[i][j] + \" \");\n } else {\n System.out.println(matrixc[i][j]);\n }\n }\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"m = sc.nextInt()",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"l = sc.nextInt()",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long[][] matrixa = new long[n][m];",
"matrixa",
"new long[n][m]",
"n",
"m",
"long[][] matrixb = new long[m][l];",
"matrixb",
"new long[m][l]",
"m",
"l",
"long[][] matrixc = new long[n][l];",
"matrixc",
"new long[n][l]",
"n",
"l",
"for (i= 0; i<n; i++) {\n for (j= 0; j<m; j++) {\n a = sc.nextInt();\n matrixa[i][j] = a;\n }\n }",
"i= 0;",
"i= 0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (j= 0; j<m; j++) {\n a = sc.nextInt();\n matrixa[i][j] = a;\n }\n }",
"{\n for (j= 0; j<m; j++) {\n a = sc.nextInt();\n matrixa[i][j] = a;\n }\n }",
"for (j= 0; j<m; j++) {\n a = sc.nextInt();\n matrixa[i][j] = a;\n }",
"j= 0;",
"j= 0",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n a = sc.nextInt();\n matrixa[i][j] = a;\n }",
"{\n a = sc.nextInt();\n matrixa[i][j] = a;\n }",
"a = sc.nextInt()",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"matrixa[i][j] = a",
"matrixa[i][j]",
"matrixa[i]",
"matrixa",
"i",
"j",
"a",
"for (i= 0; i<m; i++) {\n for (j= 0; j<l; j++) {\n a = sc.nextInt();\n matrixb[i][j] = a;\n }\n }",
"i= 0;",
"i= 0",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n for (j= 0; j<l; j++) {\n a = sc.nextInt();\n matrixb[i][j] = a;\n }\n }",
"{\n for (j= 0; j<l; j++) {\n a = sc.nextInt();\n matrixb[i][j] = a;\n }\n }",
"for (j= 0; j<l; j++) {\n a = sc.nextInt();\n matrixb[i][j] = a;\n }",
"j= 0;",
"j= 0",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n a = sc.nextInt();\n matrixb[i][j] = a;\n }",
"{\n a = sc.nextInt();\n matrixb[i][j] = a;\n }",
"a = sc.nextInt()",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"matrixb[i][j] = a",
"matrixb[i][j]",
"matrixb[i]",
"matrixb",
"i",
"j",
"a",
"for (i= 0; i<n; i++) {\n for (j= 0; j<l; j++) {\n for (k= 0; k<m ; k++) {\n matrixc[i][j] += matrixa[i][k] * matrixb[k][j];\n }\n }\n }",
"i= 0;",
"i= 0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (j= 0; j<l; j++) {\n for (k= 0; k<m ; k++) {\n matrixc[i][j] += matrixa[i][k] * matrixb[k][j];\n }\n }\n }",
"{\n for (j= 0; j<l; j++) {\n for (k= 0; k<m ; k++) {\n matrixc[i][j] += matrixa[i][k] * matrixb[k][j];\n }\n }\n }",
"for (j= 0; j<l; j++) {\n for (k= 0; k<m ; k++) {\n matrixc[i][j] += matrixa[i][k] * matrixb[k][j];\n }\n }",
"j= 0;",
"j= 0",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n for (k= 0; k<m ; k++) {\n matrixc[i][j] += matrixa[i][k] * matrixb[k][j];\n }\n }",
"{\n for (k= 0; k<m ; k++) {\n matrixc[i][j] += matrixa[i][k] * matrixb[k][j];\n }\n }",
"for (k= 0; k<m ; k++) {\n matrixc[i][j] += matrixa[i][k] * matrixb[k][j];\n }",
"k= 0;",
"k= 0",
"k",
"0",
"k<m",
"k",
"m",
"k++",
"k++",
"k",
"{\n matrixc[i][j] += matrixa[i][k] * matrixb[k][j];\n }",
"{\n matrixc[i][j] += matrixa[i][k] * matrixb[k][j];\n }",
"matrixc[i][j] += matrixa[i][k] * matrixb[k][j]",
"matrixc[i][j]",
"matrixc[i]",
"matrixc",
"i",
"j",
"matrixa[i][k] * matrixb[k][j]",
"matrixa[i][k]",
"matrixa[i]",
"matrixa",
"i",
"k",
"matrixb[k][j]",
"matrixb[k]",
"matrixb",
"k",
"j",
"for (i= 0; i<n; i++) {\n for (j= 0; j<l; j++) {\n if (j != l-1) {\n System.out.print(matrixc[i][j] + \" \");\n } else {\n System.out.println(matrixc[i][j]);\n }\n }\n }",
"i= 0;",
"i= 0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (j= 0; j<l; j++) {\n if (j != l-1) {\n System.out.print(matrixc[i][j] + \" \");\n } else {\n System.out.println(matrixc[i][j]);\n }\n }\n }",
"{\n for (j= 0; j<l; j++) {\n if (j != l-1) {\n System.out.print(matrixc[i][j] + \" \");\n } else {\n System.out.println(matrixc[i][j]);\n }\n }\n }",
"for (j= 0; j<l; j++) {\n if (j != l-1) {\n System.out.print(matrixc[i][j] + \" \");\n } else {\n System.out.println(matrixc[i][j]);\n }\n }",
"j= 0;",
"j= 0",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n if (j != l-1) {\n System.out.print(matrixc[i][j] + \" \");\n } else {\n System.out.println(matrixc[i][j]);\n }\n }",
"{\n if (j != l-1) {\n System.out.print(matrixc[i][j] + \" \");\n } else {\n System.out.println(matrixc[i][j]);\n }\n }",
"if (j != l-1) {\n System.out.print(matrixc[i][j] + \" \");\n } else {\n System.out.println(matrixc[i][j]);\n }",
"j != l-1",
"j",
"l-1",
"l",
"1",
"{\n System.out.print(matrixc[i][j] + \" \");\n }",
"System.out.print(matrixc[i][j] + \" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"matrixc[i][j] + \" \"",
"matrixc[i][j]",
"matrixc[i]",
"matrixc",
"i",
"j",
"\" \"",
"{\n System.out.println(matrixc[i][j]);\n }",
"System.out.println(matrixc[i][j])",
"System.out.println",
"System.out",
"System",
"System.out",
"matrixc[i][j]",
"matrixc[i]",
"matrixc",
"i",
"j",
"String[] args",
"args"
] | import java.util.*;
class Main{
static int n,m,l,a,i,j,k;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
n = sc.nextInt();
m = sc.nextInt();
l = sc.nextInt();
long[][] matrixa = new long[n][m];
long[][] matrixb = new long[m][l];
long[][] matrixc = new long[n][l];
for (i= 0; i<n; i++) {
for (j= 0; j<m; j++) {
a = sc.nextInt();
matrixa[i][j] = a;
}
}
for (i= 0; i<m; i++) {
for (j= 0; j<l; j++) {
a = sc.nextInt();
matrixb[i][j] = a;
}
}
for (i= 0; i<n; i++) {
for (j= 0; j<l; j++) {
for (k= 0; k<m ; k++) {
matrixc[i][j] += matrixa[i][k] * matrixb[k][j];
}
}
}
for (i= 0; i<n; i++) {
for (j= 0; j<l; j++) {
if (j != l-1) {
System.out.print(matrixc[i][j] + " ");
} else {
System.out.println(matrixc[i][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,
4,
18,
13,
41,
13,
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,
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,
18,
13,
13,
13,
0,
18,
18,
13,
13,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
18,
18,
13,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
209,
5
],
[
209,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
34
],
[
34,
35
],
[
34,
36
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
57,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
70,
76
],
[
76,
77
],
[
77,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
79,
87
],
[
87,
88
],
[
88,
89
],
[
79,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
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
],
[
106,
110
],
[
105,
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
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
127,
135
],
[
135,
136
],
[
136,
137
],
[
127,
138
],
[
139,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
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
],
[
156,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
158,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
139,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
169,
175
],
[
139,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
179,
181
],
[
176,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
183,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
188,
192
],
[
176,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
194,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
200,
204
],
[
199,
205
],
[
6,
206
],
[
206,
207
],
[
0,
208
],
[
208,
209
],
[
208,
210
]
] | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n long sum;\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n long[][] c = new long[n][l];\n for(int i = 0; i < n; i++) {\n for(int j = 0; j < m; j++) {\n a[i][j] = sc.nextInt();\n }\n }\n for(int i = 0; i < m; i++) {\n for(int j = 0; j < l; j++) {\n b[i][j] = sc.nextInt();\n }\n }\n for(int i = 0; i < n; i++) {\n for(int j = 0; j < l; j++) {\n sum = 0;\n for(int k = 0; k < m; k++) {\n sum += a[i][k] * b[k][j];\n }\n c[i][j] = sum;\n if(j == l - 1) {\n System.out.println(c[i][j]);\n } else {\n System.out.print(c[i][j] + \" \");\n }\n }\n }\n }\n}\n",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n long sum;\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n long[][] c = new long[n][l];\n for(int i = 0; i < n; i++) {\n for(int j = 0; j < m; j++) {\n a[i][j] = sc.nextInt();\n }\n }\n for(int i = 0; i < m; i++) {\n for(int j = 0; j < l; j++) {\n b[i][j] = sc.nextInt();\n }\n }\n for(int i = 0; i < n; i++) {\n for(int j = 0; j < l; j++) {\n sum = 0;\n for(int k = 0; k < m; k++) {\n sum += a[i][k] * b[k][j];\n }\n c[i][j] = sum;\n if(j == l - 1) {\n System.out.println(c[i][j]);\n } else {\n System.out.print(c[i][j] + \" \");\n }\n }\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 l = sc.nextInt();\n long sum;\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n long[][] c = new long[n][l];\n for(int i = 0; i < n; i++) {\n for(int j = 0; j < m; j++) {\n a[i][j] = sc.nextInt();\n }\n }\n for(int i = 0; i < m; i++) {\n for(int j = 0; j < l; j++) {\n b[i][j] = sc.nextInt();\n }\n }\n for(int i = 0; i < n; i++) {\n for(int j = 0; j < l; j++) {\n sum = 0;\n for(int k = 0; k < m; k++) {\n sum += a[i][k] * b[k][j];\n }\n c[i][j] = sum;\n if(j == l - 1) {\n System.out.println(c[i][j]);\n } else {\n System.out.print(c[i][j] + \" \");\n }\n }\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n long sum;\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n long[][] c = new long[n][l];\n for(int i = 0; i < n; i++) {\n for(int j = 0; j < m; j++) {\n a[i][j] = sc.nextInt();\n }\n }\n for(int i = 0; i < m; i++) {\n for(int j = 0; j < l; j++) {\n b[i][j] = sc.nextInt();\n }\n }\n for(int i = 0; i < n; i++) {\n for(int j = 0; j < l; j++) {\n sum = 0;\n for(int k = 0; k < m; k++) {\n sum += a[i][k] * b[k][j];\n }\n c[i][j] = sum;\n if(j == l - 1) {\n System.out.println(c[i][j]);\n } else {\n System.out.print(c[i][j] + \" \");\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 l = sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long sum;",
"sum",
"int[][] a = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[][] b = new int[m][l];",
"b",
"new int[m][l]",
"m",
"l",
"long[][] c = new long[n][l];",
"c",
"new long[n][l]",
"n",
"l",
"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 for(int j = 0; j < l; j++) {\n b[i][j] = sc.nextInt();\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < l; j++) {\n b[i][j] = sc.nextInt();\n }\n }",
"{\n for(int j = 0; j < l; j++) {\n b[i][j] = sc.nextInt();\n }\n }",
"for(int j = 0; j < l; j++) {\n b[i][j] = sc.nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n b[i][j] = sc.nextInt();\n }",
"{\n b[i][j] = sc.nextInt();\n }",
"b[i][j] = sc.nextInt()",
"b[i][j]",
"b[i]",
"b",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < n; i++) {\n for(int j = 0; j < l; j++) {\n sum = 0;\n for(int k = 0; k < m; k++) {\n sum += a[i][k] * b[k][j];\n }\n c[i][j] = sum;\n if(j == l - 1) {\n System.out.println(c[i][j]);\n } else {\n System.out.print(c[i][j] + \" \");\n }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < l; j++) {\n sum = 0;\n for(int k = 0; k < m; k++) {\n sum += a[i][k] * b[k][j];\n }\n c[i][j] = sum;\n if(j == l - 1) {\n System.out.println(c[i][j]);\n } else {\n System.out.print(c[i][j] + \" \");\n }\n }\n }",
"{\n for(int j = 0; j < l; j++) {\n sum = 0;\n for(int k = 0; k < m; k++) {\n sum += a[i][k] * b[k][j];\n }\n c[i][j] = sum;\n if(j == l - 1) {\n System.out.println(c[i][j]);\n } else {\n System.out.print(c[i][j] + \" \");\n }\n }\n }",
"for(int j = 0; j < l; j++) {\n sum = 0;\n for(int k = 0; k < m; k++) {\n sum += a[i][k] * b[k][j];\n }\n c[i][j] = sum;\n if(j == l - 1) {\n System.out.println(c[i][j]);\n } else {\n System.out.print(c[i][j] + \" \");\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n sum = 0;\n for(int k = 0; k < m; k++) {\n sum += a[i][k] * b[k][j];\n }\n c[i][j] = sum;\n if(j == l - 1) {\n System.out.println(c[i][j]);\n } else {\n System.out.print(c[i][j] + \" \");\n }\n }",
"{\n sum = 0;\n for(int k = 0; k < m; k++) {\n sum += a[i][k] * b[k][j];\n }\n c[i][j] = sum;\n if(j == l - 1) {\n System.out.println(c[i][j]);\n } else {\n System.out.print(c[i][j] + \" \");\n }\n }",
"sum = 0",
"sum",
"0",
"for(int k = 0; k < m; k++) {\n sum += a[i][k] * b[k][j];\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"{\n sum += a[i][k] * b[k][j];\n }",
"{\n sum += a[i][k] * b[k][j];\n }",
"sum += a[i][k] * b[k][j]",
"sum",
"a[i][k] * b[k][j]",
"a[i][k]",
"a[i]",
"a",
"i",
"k",
"b[k][j]",
"b[k]",
"b",
"k",
"j",
"c[i][j] = sum",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"sum",
"if(j == l - 1) {\n System.out.println(c[i][j]);\n } else {\n System.out.print(c[i][j] + \" \");\n }",
"j == l - 1",
"j",
"l - 1",
"l",
"1",
"{\n System.out.println(c[i][j]);\n }",
"System.out.println(c[i][j])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"{\n System.out.print(c[i][j] + \" \");\n }",
"System.out.print(c[i][j] + \" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"c[i][j] + \" \"",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"\" \"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n long sum;\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n long[][] c = new long[n][l];\n for(int i = 0; i < n; i++) {\n for(int j = 0; j < m; j++) {\n a[i][j] = sc.nextInt();\n }\n }\n for(int i = 0; i < m; i++) {\n for(int j = 0; j < l; j++) {\n b[i][j] = sc.nextInt();\n }\n }\n for(int i = 0; i < n; i++) {\n for(int j = 0; j < l; j++) {\n sum = 0;\n for(int k = 0; k < m; k++) {\n sum += a[i][k] * b[k][j];\n }\n c[i][j] = sum;\n if(j == l - 1) {\n System.out.println(c[i][j]);\n } else {\n System.out.print(c[i][j] + \" \");\n }\n }\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n long sum;\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n long[][] c = new long[n][l];\n for(int i = 0; i < n; i++) {\n for(int j = 0; j < m; j++) {\n a[i][j] = sc.nextInt();\n }\n }\n for(int i = 0; i < m; i++) {\n for(int j = 0; j < l; j++) {\n b[i][j] = sc.nextInt();\n }\n }\n for(int i = 0; i < n; i++) {\n for(int j = 0; j < l; j++) {\n sum = 0;\n for(int k = 0; k < m; k++) {\n sum += a[i][k] * b[k][j];\n }\n c[i][j] = sum;\n if(j == l - 1) {\n System.out.println(c[i][j]);\n } else {\n System.out.print(c[i][j] + \" \");\n }\n }\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 l = sc.nextInt();
long sum;
int[][] a = new int[n][m];
int[][] b = new int[m][l];
long[][] c = new long[n][l];
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++) {
for(int j = 0; j < l; j++) {
b[i][j] = sc.nextInt();
}
}
for(int i = 0; i < n; i++) {
for(int j = 0; j < l; j++) {
sum = 0;
for(int k = 0; k < m; k++) {
sum += a[i][k] * b[k][j];
}
c[i][j] = sum;
if(j == l - 1) {
System.out.println(c[i][j]);
} else {
System.out.print(c[i][j] + " ");
}
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
0,
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,
4,
18,
13,
18,
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,
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,
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,
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,
2,
18,
18,
13,
13,
13,
18,
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,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
278,
8
],
[
278,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
17,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
30,
35
],
[
27,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
41,
43
],
[
27,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
49,
51
],
[
27,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
57,
59
],
[
27,
60
],
[
60,
61
],
[
60,
62
],
[
27,
65
],
[
65,
66
],
[
65,
67
],
[
27,
70
],
[
70,
71
],
[
70,
72
],
[
27,
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
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
90,
95
],
[
87,
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
],
[
110,
114
],
[
109,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
118,
119
],
[
118,
120
],
[
27,
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
],
[
139,
140
],
[
136,
141
],
[
133,
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
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
155,
161
],
[
161,
162
],
[
162,
163
],
[
161,
164
],
[
164,
165
],
[
164,
166
],
[
27,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
167,
175
],
[
175,
176
],
[
176,
177
],
[
167,
178
],
[
179,
179
],
[
179,
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
],
[
195,
196
],
[
195,
197
],
[
193,
198
],
[
198,
199
],
[
198,
200
],
[
193,
201
],
[
201,
202
],
[
202,
203
],
[
193,
204
],
[
205,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
207,
211
],
[
206,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
213,
217
],
[
212,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
218,
222
],
[
27,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
223,
228
],
[
228,
229
],
[
228,
230
],
[
223,
231
],
[
231,
232
],
[
232,
233
],
[
223,
234
],
[
235,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
236,
241
],
[
241,
242
],
[
241,
243
],
[
236,
244
],
[
244,
245
],
[
245,
246
],
[
236,
247
],
[
248,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
249,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
254,
259
],
[
248,
260
],
[
260,
261
],
[
261,
262
],
[
262,
263
],
[
262,
264
],
[
260,
265
],
[
265,
266
],
[
266,
267
],
[
266,
268
],
[
265,
269
],
[
235,
270
],
[
270,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
9,
275
],
[
275,
276
],
[
0,
277
],
[
277,
278
],
[
277,
279
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str[];\n\t\ttry {\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tint n = Integer.parseInt(str[0]);\n\t\t\tint m = Integer.parseInt(str[1]);\n\t\t\tint l = Integer.parseInt(str[2]);\n\t\t\tint a[][] = new int[n][m];\n\t\t\tint b[][] = new int[m][l];\n\t\t\tlong c[][] = new long[n][l];\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine().split(\" \");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\ta[i][j]=Integer.parseInt(str[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tstr = br.readLine().split(\" \");\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tb[i][j]=Integer.parseInt(str[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc[i][j]+=a[i][k]*b[k][j];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tif(j != 0){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\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){\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str[];\n\t\ttry {\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tint n = Integer.parseInt(str[0]);\n\t\t\tint m = Integer.parseInt(str[1]);\n\t\t\tint l = Integer.parseInt(str[2]);\n\t\t\tint a[][] = new int[n][m];\n\t\t\tint b[][] = new int[m][l];\n\t\t\tlong c[][] = new long[n][l];\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine().split(\" \");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\ta[i][j]=Integer.parseInt(str[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tstr = br.readLine().split(\" \");\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tb[i][j]=Integer.parseInt(str[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc[i][j]+=a[i][k]*b[k][j];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tif(j != 0){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\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\tString str[];\n\t\ttry {\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tint n = Integer.parseInt(str[0]);\n\t\t\tint m = Integer.parseInt(str[1]);\n\t\t\tint l = Integer.parseInt(str[2]);\n\t\t\tint a[][] = new int[n][m];\n\t\t\tint b[][] = new int[m][l];\n\t\t\tlong c[][] = new long[n][l];\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine().split(\" \");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\ta[i][j]=Integer.parseInt(str[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tstr = br.readLine().split(\" \");\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tb[i][j]=Integer.parseInt(str[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc[i][j]+=a[i][k]*b[k][j];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tif(j != 0){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str[];\n\t\ttry {\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tint n = Integer.parseInt(str[0]);\n\t\t\tint m = Integer.parseInt(str[1]);\n\t\t\tint l = Integer.parseInt(str[2]);\n\t\t\tint a[][] = new int[n][m];\n\t\t\tint b[][] = new int[m][l];\n\t\t\tlong c[][] = new long[n][l];\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine().split(\" \");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\ta[i][j]=Integer.parseInt(str[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tstr = br.readLine().split(\" \");\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tb[i][j]=Integer.parseInt(str[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc[i][j]+=a[i][k]*b[k][j];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tif(j != 0){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str[];",
"str",
"try {\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tint n = Integer.parseInt(str[0]);\n\t\t\tint m = Integer.parseInt(str[1]);\n\t\t\tint l = Integer.parseInt(str[2]);\n\t\t\tint a[][] = new int[n][m];\n\t\t\tint b[][] = new int[m][l];\n\t\t\tlong c[][] = new long[n][l];\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine().split(\" \");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\ta[i][j]=Integer.parseInt(str[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tstr = br.readLine().split(\" \");\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tb[i][j]=Integer.parseInt(str[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc[i][j]+=a[i][k]*b[k][j];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tif(j != 0){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}",
"catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}",
"Exception e",
"{\n\t\t\tSystem.err.println(e);\n\t\t}",
"System.err.println(e)",
"System.err.println",
"System.err",
"System",
"System.err",
"e",
"{\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tint n = Integer.parseInt(str[0]);\n\t\t\tint m = Integer.parseInt(str[1]);\n\t\t\tint l = Integer.parseInt(str[2]);\n\t\t\tint a[][] = new int[n][m];\n\t\t\tint b[][] = new int[m][l];\n\t\t\tlong c[][] = new long[n][l];\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine().split(\" \");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\ta[i][j]=Integer.parseInt(str[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tstr = br.readLine().split(\" \");\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tb[i][j]=Integer.parseInt(str[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc[i][j]+=a[i][k]*b[k][j];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tif(j != 0){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}",
"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 l = Integer.parseInt(str[2]);",
"l",
"Integer.parseInt(str[2])",
"Integer.parseInt",
"Integer",
"str[2]",
"str",
"2",
"int a[][] = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int b[][] = new int[m][l];",
"b",
"new int[m][l]",
"m",
"l",
"long c[][] = new long[n][l];",
"c",
"new long[n][l]",
"n",
"l",
"for(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine().split(\" \");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\ta[i][j]=Integer.parseInt(str[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\tstr = br.readLine().split(\" \");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\ta[i][j]=Integer.parseInt(str[j]);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tstr = br.readLine().split(\" \");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\ta[i][j]=Integer.parseInt(str[j]);\n\t\t\t\t}\n\t\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\t\ta[i][j]=Integer.parseInt(str[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(str[j]);\n\t\t\t\t}",
"{\n\t\t\t\t\ta[i][j]=Integer.parseInt(str[j]);\n\t\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\t\tstr = br.readLine().split(\" \");\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tb[i][j]=Integer.parseInt(str[j]);\n\t\t\t\t}\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\t\tstr = br.readLine().split(\" \");\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tb[i][j]=Integer.parseInt(str[j]);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tstr = br.readLine().split(\" \");\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tb[i][j]=Integer.parseInt(str[j]);\n\t\t\t\t}\n\t\t\t}",
"str = br.readLine().split(\" \")",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(int j=0;j<l;j++){\n\t\t\t\t\tb[i][j]=Integer.parseInt(str[j]);\n\t\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tb[i][j]=Integer.parseInt(str[j]);\n\t\t\t\t}",
"{\n\t\t\t\t\tb[i][j]=Integer.parseInt(str[j]);\n\t\t\t\t}",
"b[i][j]=Integer.parseInt(str[j])",
"b[i][j]",
"b[i]",
"b",
"i",
"j",
"Integer.parseInt(str[j])",
"Integer.parseInt",
"Integer",
"str[j]",
"str",
"j",
"for(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc[i][j]+=a[i][k]*b[k][j];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc[i][j]+=a[i][k]*b[k][j];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc[i][j]+=a[i][k]*b[k][j];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"for(int j=0;j<l;j++){\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc[i][j]+=a[i][k]*b[k][j];\n\t\t\t\t\t}\n\t\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc[i][j]+=a[i][k]*b[k][j];\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc[i][j]+=a[i][k]*b[k][j];\n\t\t\t\t\t}\n\t\t\t\t}",
"for(int k=0;k<m;k++){\n\t\t\t\t\t\tc[i][j]+=a[i][k]*b[k][j];\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\tc[i][j]+=a[i][k]*b[k][j];\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tc[i][j]+=a[i][k]*b[k][j];\n\t\t\t\t\t}",
"c[i][j]+=a[i][k]*b[k][j]",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"a[i][k]*b[k][j]",
"a[i][k]",
"a[i]",
"a",
"i",
"k",
"b[k][j]",
"b[k]",
"b",
"k",
"j",
"for(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tif(j != 0){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\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<l;j++){\n\t\t\t\t\tif(j != 0){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"{\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tif(j != 0){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"for(int j=0;j<l;j++){\n\t\t\t\t\tif(j != 0){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tif(j != 0){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t}",
"{\n\t\t\t\t\tif(j != 0){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t}",
"if(j != 0){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}",
"j != 0",
"j",
"0",
"{\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.print(c[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str[];\n\t\ttry {\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tint n = Integer.parseInt(str[0]);\n\t\t\tint m = Integer.parseInt(str[1]);\n\t\t\tint l = Integer.parseInt(str[2]);\n\t\t\tint a[][] = new int[n][m];\n\t\t\tint b[][] = new int[m][l];\n\t\t\tlong c[][] = new long[n][l];\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine().split(\" \");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\ta[i][j]=Integer.parseInt(str[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tstr = br.readLine().split(\" \");\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tb[i][j]=Integer.parseInt(str[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc[i][j]+=a[i][k]*b[k][j];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tif(j != 0){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str[];\n\t\ttry {\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tint n = Integer.parseInt(str[0]);\n\t\t\tint m = Integer.parseInt(str[1]);\n\t\t\tint l = Integer.parseInt(str[2]);\n\t\t\tint a[][] = new int[n][m];\n\t\t\tint b[][] = new int[m][l];\n\t\t\tlong c[][] = new long[n][l];\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tstr = br.readLine().split(\" \");\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\ta[i][j]=Integer.parseInt(str[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tstr = br.readLine().split(\" \");\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tb[i][j]=Integer.parseInt(str[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\t\tc[i][j]+=a[i][k]*b[k][j];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\t\tif(j != 0){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\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 br = new BufferedReader(new InputStreamReader(System.in));
String str[];
try {
str = br.readLine().split(" ");
int n = Integer.parseInt(str[0]);
int m = Integer.parseInt(str[1]);
int l = Integer.parseInt(str[2]);
int a[][] = new int[n][m];
int b[][] = new int[m][l];
long c[][] = new long[n][l];
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++){
str = br.readLine().split(" ");
for(int j=0;j<l;j++){
b[i][j]=Integer.parseInt(str[j]);
}
}
for(int i=0;i<n;i++){
for(int j=0;j<l;j++){
for(int k=0;k<m;k++){
c[i][j]+=a[i][k]*b[k][j];
}
}
}
for(int i=0;i<n;i++){
for(int j=0;j<l;j++){
if(j != 0){
System.out.print(" ");
}
System.out.print(c[i][j]);
}
System.out.println();
}
} catch (Exception e) {
System.err.println(e);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
0,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
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,
4,
18,
13,
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,
4,
18,
13,
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,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
219,
5
],
[
219,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
11,
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
],
[
26,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
34
],
[
34,
35
],
[
34,
36
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
56,
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
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
73,
79
],
[
79,
80
],
[
80,
81
],
[
8,
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
],
[
94,
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
],
[
112,
116
],
[
111,
117
],
[
117,
118
],
[
118,
119
],
[
8,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
125,
126
],
[
125,
127
],
[
120,
128
],
[
128,
129
],
[
129,
130
],
[
120,
131
],
[
132,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
138,
139
],
[
138,
140
],
[
133,
141
],
[
141,
142
],
[
142,
143
],
[
133,
144
],
[
145,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
146,
152
],
[
145,
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
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
166,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
173,
177
],
[
172,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
182
],
[
145,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
183,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
188,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
193,
197
],
[
183,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
199,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
206,
210
],
[
132,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
6,
216
],
[
216,
217
],
[
0,
218
],
[
218,
219
],
[
218,
220
]
] | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc;// = new Scanner(System.in);\n sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n int A[][] = new int[n][m];\n int B[][] = new int[m][l];\n long C[][] = new long[n][l];\n for(int x = 0;x<n;x++){\n sc.nextLine();\n for(int y = 0;y<m;y++){\n A[x][y] = sc.nextInt();\n }\n }\n\n for(int x = 0;x<m;x++){\n sc.nextLine();\n for(int y = 0;y<l;y++){\n B[x][y] = sc.nextInt();\n }\n }\n\n for(int x = 0;x<n;x++){\n for(int y = 0;y<l;y++){\n C[x][y] = 0;\n for(int z = 0;z<m;z++){\n C[x][y] += A[x][z]*B[z][y];\n }\n if(y == 0){\n System.out.print(C[x][y]);\n }else{\n System.out.print(\" \"+C[x][y]);\n }\n }\n System.out.println();\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 sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n int A[][] = new int[n][m];\n int B[][] = new int[m][l];\n long C[][] = new long[n][l];\n for(int x = 0;x<n;x++){\n sc.nextLine();\n for(int y = 0;y<m;y++){\n A[x][y] = sc.nextInt();\n }\n }\n\n for(int x = 0;x<m;x++){\n sc.nextLine();\n for(int y = 0;y<l;y++){\n B[x][y] = sc.nextInt();\n }\n }\n\n for(int x = 0;x<n;x++){\n for(int y = 0;y<l;y++){\n C[x][y] = 0;\n for(int z = 0;z<m;z++){\n C[x][y] += A[x][z]*B[z][y];\n }\n if(y == 0){\n System.out.print(C[x][y]);\n }else{\n System.out.print(\" \"+C[x][y]);\n }\n }\n System.out.println();\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc;// = new Scanner(System.in);\n sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n int A[][] = new int[n][m];\n int B[][] = new int[m][l];\n long C[][] = new long[n][l];\n for(int x = 0;x<n;x++){\n sc.nextLine();\n for(int y = 0;y<m;y++){\n A[x][y] = sc.nextInt();\n }\n }\n\n for(int x = 0;x<m;x++){\n sc.nextLine();\n for(int y = 0;y<l;y++){\n B[x][y] = sc.nextInt();\n }\n }\n\n for(int x = 0;x<n;x++){\n for(int y = 0;y<l;y++){\n C[x][y] = 0;\n for(int z = 0;z<m;z++){\n C[x][y] += A[x][z]*B[z][y];\n }\n if(y == 0){\n System.out.print(C[x][y]);\n }else{\n System.out.print(\" \"+C[x][y]);\n }\n }\n System.out.println();\n }\n }",
"main",
"{\n Scanner sc;// = new Scanner(System.in);\n sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n int A[][] = new int[n][m];\n int B[][] = new int[m][l];\n long C[][] = new long[n][l];\n for(int x = 0;x<n;x++){\n sc.nextLine();\n for(int y = 0;y<m;y++){\n A[x][y] = sc.nextInt();\n }\n }\n\n for(int x = 0;x<m;x++){\n sc.nextLine();\n for(int y = 0;y<l;y++){\n B[x][y] = sc.nextInt();\n }\n }\n\n for(int x = 0;x<n;x++){\n for(int y = 0;y<l;y++){\n C[x][y] = 0;\n for(int z = 0;z<m;z++){\n C[x][y] += A[x][z]*B[z][y];\n }\n if(y == 0){\n System.out.print(C[x][y]);\n }else{\n System.out.print(\" \"+C[x][y]);\n }\n }\n System.out.println();\n }\n }",
"Scanner sc;",
"sc",
"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 = sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A[][] = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int B[][] = new int[m][l];",
"B",
"new int[m][l]",
"m",
"l",
"long C[][] = new long[n][l];",
"C",
"new long[n][l]",
"n",
"l",
"for(int x = 0;x<n;x++){\n sc.nextLine();\n for(int y = 0;y<m;y++){\n A[x][y] = sc.nextInt();\n }\n }",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x<n",
"x",
"n",
"x++",
"x++",
"x",
"{\n sc.nextLine();\n for(int y = 0;y<m;y++){\n A[x][y] = sc.nextInt();\n }\n }",
"{\n sc.nextLine();\n for(int y = 0;y<m;y++){\n A[x][y] = sc.nextInt();\n }\n }",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for(int y = 0;y<m;y++){\n A[x][y] = sc.nextInt();\n }",
"int y = 0;",
"int 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(int x = 0;x<m;x++){\n sc.nextLine();\n for(int y = 0;y<l;y++){\n B[x][y] = sc.nextInt();\n }\n }",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x<m",
"x",
"m",
"x++",
"x++",
"x",
"{\n sc.nextLine();\n for(int y = 0;y<l;y++){\n B[x][y] = sc.nextInt();\n }\n }",
"{\n sc.nextLine();\n for(int y = 0;y<l;y++){\n B[x][y] = sc.nextInt();\n }\n }",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for(int y = 0;y<l;y++){\n B[x][y] = sc.nextInt();\n }",
"int y = 0;",
"int y = 0;",
"y",
"0",
"y<l",
"y",
"l",
"y++",
"y++",
"y",
"{\n B[x][y] = sc.nextInt();\n }",
"{\n B[x][y] = sc.nextInt();\n }",
"B[x][y] = sc.nextInt()",
"B[x][y]",
"B[x]",
"B",
"x",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int x = 0;x<n;x++){\n for(int y = 0;y<l;y++){\n C[x][y] = 0;\n for(int z = 0;z<m;z++){\n C[x][y] += A[x][z]*B[z][y];\n }\n if(y == 0){\n System.out.print(C[x][y]);\n }else{\n System.out.print(\" \"+C[x][y]);\n }\n }\n System.out.println();\n }",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x<n",
"x",
"n",
"x++",
"x++",
"x",
"{\n for(int y = 0;y<l;y++){\n C[x][y] = 0;\n for(int z = 0;z<m;z++){\n C[x][y] += A[x][z]*B[z][y];\n }\n if(y == 0){\n System.out.print(C[x][y]);\n }else{\n System.out.print(\" \"+C[x][y]);\n }\n }\n System.out.println();\n }",
"{\n for(int y = 0;y<l;y++){\n C[x][y] = 0;\n for(int z = 0;z<m;z++){\n C[x][y] += A[x][z]*B[z][y];\n }\n if(y == 0){\n System.out.print(C[x][y]);\n }else{\n System.out.print(\" \"+C[x][y]);\n }\n }\n System.out.println();\n }",
"for(int y = 0;y<l;y++){\n C[x][y] = 0;\n for(int z = 0;z<m;z++){\n C[x][y] += A[x][z]*B[z][y];\n }\n if(y == 0){\n System.out.print(C[x][y]);\n }else{\n System.out.print(\" \"+C[x][y]);\n }\n }",
"int y = 0;",
"int y = 0;",
"y",
"0",
"y<l",
"y",
"l",
"y++",
"y++",
"y",
"{\n C[x][y] = 0;\n for(int z = 0;z<m;z++){\n C[x][y] += A[x][z]*B[z][y];\n }\n if(y == 0){\n System.out.print(C[x][y]);\n }else{\n System.out.print(\" \"+C[x][y]);\n }\n }",
"{\n C[x][y] = 0;\n for(int z = 0;z<m;z++){\n C[x][y] += A[x][z]*B[z][y];\n }\n if(y == 0){\n System.out.print(C[x][y]);\n }else{\n System.out.print(\" \"+C[x][y]);\n }\n }",
"C[x][y] = 0",
"C[x][y]",
"C[x]",
"C",
"x",
"y",
"0",
"for(int z = 0;z<m;z++){\n C[x][y] += A[x][z]*B[z][y];\n }",
"int z = 0;",
"int z = 0;",
"z",
"0",
"z<m",
"z",
"m",
"z++",
"z++",
"z",
"{\n C[x][y] += A[x][z]*B[z][y];\n }",
"{\n C[x][y] += A[x][z]*B[z][y];\n }",
"C[x][y] += A[x][z]*B[z][y]",
"C[x][y]",
"C[x]",
"C",
"x",
"y",
"A[x][z]*B[z][y]",
"A[x][z]",
"A[x]",
"A",
"x",
"z",
"B[z][y]",
"B[z]",
"B",
"z",
"y",
"if(y == 0){\n System.out.print(C[x][y]);\n }else{\n System.out.print(\" \"+C[x][y]);\n }",
"y == 0",
"y",
"0",
"{\n System.out.print(C[x][y]);\n }",
"System.out.print(C[x][y])",
"System.out.print",
"System.out",
"System",
"System.out",
"C[x][y]",
"C[x]",
"C",
"x",
"y",
"{\n System.out.print(\" \"+C[x][y]);\n }",
"System.out.print(\" \"+C[x][y])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+C[x][y]",
"\" \"",
"C[x][y]",
"C[x]",
"C",
"x",
"y",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc;// = new Scanner(System.in);\n sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n int A[][] = new int[n][m];\n int B[][] = new int[m][l];\n long C[][] = new long[n][l];\n for(int x = 0;x<n;x++){\n sc.nextLine();\n for(int y = 0;y<m;y++){\n A[x][y] = sc.nextInt();\n }\n }\n\n for(int x = 0;x<m;x++){\n sc.nextLine();\n for(int y = 0;y<l;y++){\n B[x][y] = sc.nextInt();\n }\n }\n\n for(int x = 0;x<n;x++){\n for(int y = 0;y<l;y++){\n C[x][y] = 0;\n for(int z = 0;z<m;z++){\n C[x][y] += A[x][z]*B[z][y];\n }\n if(y == 0){\n System.out.print(C[x][y]);\n }else{\n System.out.print(\" \"+C[x][y]);\n }\n }\n System.out.println();\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc;// = new Scanner(System.in);\n sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n int A[][] = new int[n][m];\n int B[][] = new int[m][l];\n long C[][] = new long[n][l];\n for(int x = 0;x<n;x++){\n sc.nextLine();\n for(int y = 0;y<m;y++){\n A[x][y] = sc.nextInt();\n }\n }\n\n for(int x = 0;x<m;x++){\n sc.nextLine();\n for(int y = 0;y<l;y++){\n B[x][y] = sc.nextInt();\n }\n }\n\n for(int x = 0;x<n;x++){\n for(int y = 0;y<l;y++){\n C[x][y] = 0;\n for(int z = 0;z<m;z++){\n C[x][y] += A[x][z]*B[z][y];\n }\n if(y == 0){\n System.out.print(C[x][y]);\n }else{\n System.out.print(\" \"+C[x][y]);\n }\n }\n System.out.println();\n }\n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc;// = new Scanner(System.in);
sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
int l = sc.nextInt();
int A[][] = new int[n][m];
int B[][] = new int[m][l];
long C[][] = new long[n][l];
for(int x = 0;x<n;x++){
sc.nextLine();
for(int y = 0;y<m;y++){
A[x][y] = sc.nextInt();
}
}
for(int x = 0;x<m;x++){
sc.nextLine();
for(int y = 0;y<l;y++){
B[x][y] = sc.nextInt();
}
}
for(int x = 0;x<n;x++){
for(int y = 0;y<l;y++){
C[x][y] = 0;
for(int z = 0;z<m;z++){
C[x][y] += A[x][z]*B[z][y];
}
if(y == 0){
System.out.print(C[x][y]);
}else{
System.out.print(" "+C[x][y]);
}
}
System.out.println();
}
}
}
|
[
7,
15,
13,
17,
6,
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,
0,
13,
4,
18,
13,
41,
13,
20,
2,
13,
17,
2,
13,
17,
41,
13,
20,
2,
13,
17,
2,
13,
17,
41,
13,
20,
2,
13,
17,
2,
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,
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,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
18,
18,
13,
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
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
19,
20
],
[
18,
21
],
[
14,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
14,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
14,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
14,
37
],
[
37,
38
],
[
37,
39
],
[
40,
41
],
[
40,
42
],
[
43,
44
],
[
43,
45
],
[
14,
46
],
[
46,
47
],
[
46,
48
],
[
49,
50
],
[
49,
51
],
[
52,
53
],
[
52,
54
],
[
14,
55
],
[
55,
56
],
[
55,
57
],
[
58,
59
],
[
58,
60
],
[
61,
62
],
[
61,
63
],
[
14,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
64,
75
],
[
76,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
90,
96
],
[
96,
97
],
[
97,
98
],
[
14,
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
],
[
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
],
[
126,
130
],
[
125,
131
],
[
131,
132
],
[
132,
133
],
[
14,
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
],
[
147,
155
],
[
155,
156
],
[
156,
157
],
[
147,
158
],
[
159,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
160,
166
],
[
14,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
167,
175
],
[
175,
176
],
[
176,
177
],
[
167,
178
],
[
179,
179
],
[
179,
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
],
[
195,
196
],
[
195,
197
],
[
193,
198
],
[
198,
199
],
[
198,
200
],
[
193,
201
],
[
201,
202
],
[
202,
203
],
[
193,
204
],
[
205,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
207,
211
],
[
206,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
213,
217
],
[
212,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
219,
223
],
[
218,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
224,
228
],
[
192,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
232,
234
],
[
229,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
236,
241
],
[
236,
242
],
[
242,
243
],
[
243,
244
],
[
243,
245
],
[
242,
246
],
[
235,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
229,
252
],
[
252,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
253,
258
],
[
253,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
259,
263
],
[
4,
264
],
[
264,
265
],
[
264,
266
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
264,
270
],
[
270,
271
]
] | [
"import java.util.Scanner;\nclass Main {\n int n,m,l;\n public void solve(){\n Scanner sc = new Scanner(System.in);\n sc.useDelimiter(\"\\\\s\");\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n int [][] a = new int [n+1][m+1];\n int [][] b = new int [m+1][l+1];\n long [][] c = new long [n+1][l+1];\n for(int x = 0; x < n; x++){\n for(int y = 0; y < m; y++){\n a[x][y] = sc.nextInt();\n }\n }\n for(int x = 0; x < m; x++){\n for(int y = 0; y < l; y++){\n b[x][y] = sc.nextInt();\n }\n }\n for(int x = 0; x < n; x++){\n for(int y = 0; y < l; y++){\n c[x][y] = 0;\n }\n }\n for(int x = 0; x < n; x++){\n for(int y = 0; y < l; y++){\n for(int r = 0; r < m; r++){\n c[x][y] = c[x][y] + a[x][r] * b[r][y];\n }\n if(y==l-1){\n System.out.printf(\"%d\",c[x][y]);\n System.out.println();\n }else{\n System.out.printf(\"%d \",c[x][y]);\n }\n }\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,l;\n public void solve(){\n Scanner sc = new Scanner(System.in);\n sc.useDelimiter(\"\\\\s\");\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n int [][] a = new int [n+1][m+1];\n int [][] b = new int [m+1][l+1];\n long [][] c = new long [n+1][l+1];\n for(int x = 0; x < n; x++){\n for(int y = 0; y < m; y++){\n a[x][y] = sc.nextInt();\n }\n }\n for(int x = 0; x < m; x++){\n for(int y = 0; y < l; y++){\n b[x][y] = sc.nextInt();\n }\n }\n for(int x = 0; x < n; x++){\n for(int y = 0; y < l; y++){\n c[x][y] = 0;\n }\n }\n for(int x = 0; x < n; x++){\n for(int y = 0; y < l; y++){\n for(int r = 0; r < m; r++){\n c[x][y] = c[x][y] + a[x][r] * b[r][y];\n }\n if(y==l-1){\n System.out.printf(\"%d\",c[x][y]);\n System.out.println();\n }else{\n System.out.printf(\"%d \",c[x][y]);\n }\n }\n }\n }\n public static void main(String[] args){\n new Main().solve();\n }\n}",
"Main",
"int n",
"n",
"m",
"m",
"l;",
"l",
"public void solve(){\n Scanner sc = new Scanner(System.in);\n sc.useDelimiter(\"\\\\s\");\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n int [][] a = new int [n+1][m+1];\n int [][] b = new int [m+1][l+1];\n long [][] c = new long [n+1][l+1];\n for(int x = 0; x < n; x++){\n for(int y = 0; y < m; y++){\n a[x][y] = sc.nextInt();\n }\n }\n for(int x = 0; x < m; x++){\n for(int y = 0; y < l; y++){\n b[x][y] = sc.nextInt();\n }\n }\n for(int x = 0; x < n; x++){\n for(int y = 0; y < l; y++){\n c[x][y] = 0;\n }\n }\n for(int x = 0; x < n; x++){\n for(int y = 0; y < l; y++){\n for(int r = 0; r < m; r++){\n c[x][y] = c[x][y] + a[x][r] * b[r][y];\n }\n if(y==l-1){\n System.out.printf(\"%d\",c[x][y]);\n System.out.println();\n }else{\n System.out.printf(\"%d \",c[x][y]);\n }\n }\n }\n }",
"solve",
"{\n Scanner sc = new Scanner(System.in);\n sc.useDelimiter(\"\\\\s\");\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n int [][] a = new int [n+1][m+1];\n int [][] b = new int [m+1][l+1];\n long [][] c = new long [n+1][l+1];\n for(int x = 0; x < n; x++){\n for(int y = 0; y < m; y++){\n a[x][y] = sc.nextInt();\n }\n }\n for(int x = 0; x < m; x++){\n for(int y = 0; y < l; y++){\n b[x][y] = sc.nextInt();\n }\n }\n for(int x = 0; x < n; x++){\n for(int y = 0; y < l; y++){\n c[x][y] = 0;\n }\n }\n for(int x = 0; x < n; x++){\n for(int y = 0; y < l; y++){\n for(int r = 0; r < m; r++){\n c[x][y] = c[x][y] + a[x][r] * b[r][y];\n }\n if(y==l-1){\n System.out.printf(\"%d\",c[x][y]);\n System.out.println();\n }else{\n System.out.printf(\"%d \",c[x][y]);\n }\n }\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",
"l = sc.nextInt()",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int [][] a = new int [n+1][m+1];",
"a",
"new int [n+1][m+1]",
"n+1",
"n",
"1",
"m+1",
"m",
"1",
"int [][] b = new int [m+1][l+1];",
"b",
"new int [m+1][l+1]",
"m+1",
"m",
"1",
"l+1",
"l",
"1",
"long [][] c = new long [n+1][l+1];",
"c",
"new long [n+1][l+1]",
"n+1",
"n",
"1",
"l+1",
"l",
"1",
"for(int x = 0; x < n; x++){\n for(int y = 0; y < m; y++){\n a[x][y] = sc.nextInt();\n }\n }",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < n",
"x",
"n",
"x++",
"x++",
"x",
"{\n for(int y = 0; y < m; y++){\n a[x][y] = sc.nextInt();\n }\n }",
"{\n for(int y = 0; y < m; y++){\n a[x][y] = sc.nextInt();\n }\n }",
"for(int y = 0; y < m; y++){\n a[x][y] = sc.nextInt();\n }",
"int y = 0;",
"int 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(int x = 0; x < m; x++){\n for(int y = 0; y < l; y++){\n b[x][y] = sc.nextInt();\n }\n }",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < m",
"x",
"m",
"x++",
"x++",
"x",
"{\n for(int y = 0; y < l; y++){\n b[x][y] = sc.nextInt();\n }\n }",
"{\n for(int y = 0; y < l; y++){\n b[x][y] = sc.nextInt();\n }\n }",
"for(int y = 0; y < l; y++){\n b[x][y] = sc.nextInt();\n }",
"int y = 0;",
"int y = 0;",
"y",
"0",
"y < l",
"y",
"l",
"y++",
"y++",
"y",
"{\n b[x][y] = sc.nextInt();\n }",
"{\n b[x][y] = sc.nextInt();\n }",
"b[x][y] = sc.nextInt()",
"b[x][y]",
"b[x]",
"b",
"x",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int x = 0; x < n; x++){\n for(int y = 0; y < l; y++){\n c[x][y] = 0;\n }\n }",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < n",
"x",
"n",
"x++",
"x++",
"x",
"{\n for(int y = 0; y < l; y++){\n c[x][y] = 0;\n }\n }",
"{\n for(int y = 0; y < l; y++){\n c[x][y] = 0;\n }\n }",
"for(int y = 0; y < l; y++){\n c[x][y] = 0;\n }",
"int y = 0;",
"int y = 0;",
"y",
"0",
"y < l",
"y",
"l",
"y++",
"y++",
"y",
"{\n c[x][y] = 0;\n }",
"{\n c[x][y] = 0;\n }",
"c[x][y] = 0",
"c[x][y]",
"c[x]",
"c",
"x",
"y",
"0",
"for(int x = 0; x < n; x++){\n for(int y = 0; y < l; y++){\n for(int r = 0; r < m; r++){\n c[x][y] = c[x][y] + a[x][r] * b[r][y];\n }\n if(y==l-1){\n System.out.printf(\"%d\",c[x][y]);\n System.out.println();\n }else{\n System.out.printf(\"%d \",c[x][y]);\n }\n }\n }",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < n",
"x",
"n",
"x++",
"x++",
"x",
"{\n for(int y = 0; y < l; y++){\n for(int r = 0; r < m; r++){\n c[x][y] = c[x][y] + a[x][r] * b[r][y];\n }\n if(y==l-1){\n System.out.printf(\"%d\",c[x][y]);\n System.out.println();\n }else{\n System.out.printf(\"%d \",c[x][y]);\n }\n }\n }",
"{\n for(int y = 0; y < l; y++){\n for(int r = 0; r < m; r++){\n c[x][y] = c[x][y] + a[x][r] * b[r][y];\n }\n if(y==l-1){\n System.out.printf(\"%d\",c[x][y]);\n System.out.println();\n }else{\n System.out.printf(\"%d \",c[x][y]);\n }\n }\n }",
"for(int y = 0; y < l; y++){\n for(int r = 0; r < m; r++){\n c[x][y] = c[x][y] + a[x][r] * b[r][y];\n }\n if(y==l-1){\n System.out.printf(\"%d\",c[x][y]);\n System.out.println();\n }else{\n System.out.printf(\"%d \",c[x][y]);\n }\n }",
"int y = 0;",
"int y = 0;",
"y",
"0",
"y < l",
"y",
"l",
"y++",
"y++",
"y",
"{\n for(int r = 0; r < m; r++){\n c[x][y] = c[x][y] + a[x][r] * b[r][y];\n }\n if(y==l-1){\n System.out.printf(\"%d\",c[x][y]);\n System.out.println();\n }else{\n System.out.printf(\"%d \",c[x][y]);\n }\n }",
"{\n for(int r = 0; r < m; r++){\n c[x][y] = c[x][y] + a[x][r] * b[r][y];\n }\n if(y==l-1){\n System.out.printf(\"%d\",c[x][y]);\n System.out.println();\n }else{\n System.out.printf(\"%d \",c[x][y]);\n }\n }",
"for(int r = 0; r < m; r++){\n c[x][y] = c[x][y] + a[x][r] * b[r][y];\n }",
"int r = 0;",
"int r = 0;",
"r",
"0",
"r < m",
"r",
"m",
"r++",
"r++",
"r",
"{\n c[x][y] = c[x][y] + a[x][r] * b[r][y];\n }",
"{\n c[x][y] = c[x][y] + a[x][r] * b[r][y];\n }",
"c[x][y] = c[x][y] + a[x][r] * b[r][y]",
"c[x][y]",
"c[x]",
"c",
"x",
"y",
"c[x][y] + a[x][r] * b[r][y]",
"c[x][y]",
"c[x]",
"c",
"x",
"y",
"a[x][r] * b[r][y]",
"a[x][r]",
"a[x]",
"a",
"x",
"r",
"b[r][y]",
"b[r]",
"b",
"r",
"y",
"if(y==l-1){\n System.out.printf(\"%d\",c[x][y]);\n System.out.println();\n }else{\n System.out.printf(\"%d \",c[x][y]);\n }",
"y==l-1",
"y",
"l-1",
"l",
"1",
"{\n System.out.printf(\"%d\",c[x][y]);\n System.out.println();\n }",
"System.out.printf(\"%d\",c[x][y])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d\"",
"c[x][y]",
"c[x]",
"c",
"x",
"y",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"{\n System.out.printf(\"%d \",c[x][y]);\n }",
"System.out.printf(\"%d \",c[x][y])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d \"",
"c[x][y]",
"c[x]",
"c",
"x",
"y",
"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,l;
public void solve(){
Scanner sc = new Scanner(System.in);
sc.useDelimiter("\\s");
n = sc.nextInt();
m = sc.nextInt();
l = sc.nextInt();
int [][] a = new int [n+1][m+1];
int [][] b = new int [m+1][l+1];
long [][] c = new long [n+1][l+1];
for(int x = 0; x < n; x++){
for(int y = 0; y < m; y++){
a[x][y] = sc.nextInt();
}
}
for(int x = 0; x < m; x++){
for(int y = 0; y < l; y++){
b[x][y] = sc.nextInt();
}
}
for(int x = 0; x < n; x++){
for(int y = 0; y < l; y++){
c[x][y] = 0;
}
}
for(int x = 0; x < n; x++){
for(int y = 0; y < l; y++){
for(int r = 0; r < m; r++){
c[x][y] = c[x][y] + a[x][r] * b[r][y];
}
if(y==l-1){
System.out.printf("%d",c[x][y]);
System.out.println();
}else{
System.out.printf("%d ",c[x][y]);
}
}
}
}
public static void main(String[] args){
new Main().solve();
}
} |
[
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,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
13,
41,
13,
20,
13,
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,
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,
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,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
2,
13,
8,
2,
13,
2,
13,
17,
17,
17,
4,
18,
18,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
14,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
8,
49
],
[
49,
50
],
[
49,
51
],
[
8,
54
],
[
54,
55
],
[
8,
56
],
[
56,
57
],
[
8,
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
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
73,
78
],
[
70,
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
],
[
101,
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
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
119,
124
],
[
116,
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
],
[
139,
143
],
[
138,
144
],
[
144,
145
],
[
145,
146
],
[
144,
147
],
[
147,
148
],
[
147,
149
],
[
8,
150
],
[
150,
151
],
[
8,
152
],
[
152,
153
],
[
8,
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
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
167,
175
],
[
175,
176
],
[
176,
177
],
[
167,
178
],
[
179,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
183,
188
],
[
188,
189
],
[
188,
190
],
[
183,
191
],
[
191,
192
],
[
192,
193
],
[
183,
194
],
[
195,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
199,
203
],
[
198,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
204,
208
],
[
179,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
209,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
219,
221
],
[
216,
222
],
[
216,
223
],
[
166,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
6,
229
],
[
229,
230
]
] | [
"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[] input = br.readLine().split(\" \");\n int n = Integer.parseInt(input[0]);\n int m = Integer.parseInt(input[1]);\n int l = Integer.parseInt(input[2]);\n int[][] A = new int[n][m];\n int[][] B = new int[m][l];\n\n int i, j;\n for (i = 0; i < n; i++) {\n input = br.readLine().split(\" \");\n for (j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(input[j]);\n }\n }\n for (i = 0; i < m; i++) {\n input = br.readLine().split(\" \");\n for (j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(input[j]);\n }\n }\n\n int k;\n long sum;\n for (i = 0; i < n; i++) {\n for (j = 0; j < l; j++) {\n sum = 0;\n for (k = 0; k < m; k++) {\n sum += A[i][k] * B[k][j];\n }\n System.out.print(sum + ((j == l - 1) ? \"\" : \" \"));\n }\n System.out.println();\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[] input = br.readLine().split(\" \");\n int n = Integer.parseInt(input[0]);\n int m = Integer.parseInt(input[1]);\n int l = Integer.parseInt(input[2]);\n int[][] A = new int[n][m];\n int[][] B = new int[m][l];\n\n int i, j;\n for (i = 0; i < n; i++) {\n input = br.readLine().split(\" \");\n for (j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(input[j]);\n }\n }\n for (i = 0; i < m; i++) {\n input = br.readLine().split(\" \");\n for (j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(input[j]);\n }\n }\n\n int k;\n long sum;\n for (i = 0; i < n; i++) {\n for (j = 0; j < l; j++) {\n sum = 0;\n for (k = 0; k < m; k++) {\n sum += A[i][k] * B[k][j];\n }\n System.out.print(sum + ((j == l - 1) ? \"\" : \" \"));\n }\n System.out.println();\n }\n }\n}",
"Main",
"public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] input = br.readLine().split(\" \");\n int n = Integer.parseInt(input[0]);\n int m = Integer.parseInt(input[1]);\n int l = Integer.parseInt(input[2]);\n int[][] A = new int[n][m];\n int[][] B = new int[m][l];\n\n int i, j;\n for (i = 0; i < n; i++) {\n input = br.readLine().split(\" \");\n for (j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(input[j]);\n }\n }\n for (i = 0; i < m; i++) {\n input = br.readLine().split(\" \");\n for (j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(input[j]);\n }\n }\n\n int k;\n long sum;\n for (i = 0; i < n; i++) {\n for (j = 0; j < l; j++) {\n sum = 0;\n for (k = 0; k < m; k++) {\n sum += A[i][k] * B[k][j];\n }\n System.out.print(sum + ((j == l - 1) ? \"\" : \" \"));\n }\n System.out.println();\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] input = br.readLine().split(\" \");\n int n = Integer.parseInt(input[0]);\n int m = Integer.parseInt(input[1]);\n int l = Integer.parseInt(input[2]);\n int[][] A = new int[n][m];\n int[][] B = new int[m][l];\n\n int i, j;\n for (i = 0; i < n; i++) {\n input = br.readLine().split(\" \");\n for (j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(input[j]);\n }\n }\n for (i = 0; i < m; i++) {\n input = br.readLine().split(\" \");\n for (j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(input[j]);\n }\n }\n\n int k;\n long sum;\n for (i = 0; i < n; i++) {\n for (j = 0; j < l; j++) {\n sum = 0;\n for (k = 0; k < m; k++) {\n sum += A[i][k] * B[k][j];\n }\n System.out.print(sum + ((j == l - 1) ? \"\" : \" \"));\n }\n System.out.println();\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] input = br.readLine().split(\" \");",
"input",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int n = Integer.parseInt(input[0]);",
"n",
"Integer.parseInt(input[0])",
"Integer.parseInt",
"Integer",
"input[0]",
"input",
"0",
"int m = Integer.parseInt(input[1]);",
"m",
"Integer.parseInt(input[1])",
"Integer.parseInt",
"Integer",
"input[1]",
"input",
"1",
"int l = Integer.parseInt(input[2]);",
"l",
"Integer.parseInt(input[2])",
"Integer.parseInt",
"Integer",
"input[2]",
"input",
"2",
"int[][] A = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int[][] B = new int[m][l];",
"B",
"new int[m][l]",
"m",
"l",
"int i",
"i",
"j;",
"j",
"for (i = 0; i < n; i++) {\n input = br.readLine().split(\" \");\n for (j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(input[j]);\n }\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n input = br.readLine().split(\" \");\n for (j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(input[j]);\n }\n }",
"{\n input = br.readLine().split(\" \");\n for (j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(input[j]);\n }\n }",
"input = br.readLine().split(\" \")",
"input",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for (j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(input[j]);\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n A[i][j] = Integer.parseInt(input[j]);\n }",
"{\n A[i][j] = Integer.parseInt(input[j]);\n }",
"A[i][j] = Integer.parseInt(input[j])",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"Integer.parseInt(input[j])",
"Integer.parseInt",
"Integer",
"input[j]",
"input",
"j",
"for (i = 0; i < m; i++) {\n input = br.readLine().split(\" \");\n for (j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(input[j]);\n }\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n input = br.readLine().split(\" \");\n for (j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(input[j]);\n }\n }",
"{\n input = br.readLine().split(\" \");\n for (j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(input[j]);\n }\n }",
"input = br.readLine().split(\" \")",
"input",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for (j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(input[j]);\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n B[i][j] = Integer.parseInt(input[j]);\n }",
"{\n B[i][j] = Integer.parseInt(input[j]);\n }",
"B[i][j] = Integer.parseInt(input[j])",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"Integer.parseInt(input[j])",
"Integer.parseInt",
"Integer",
"input[j]",
"input",
"j",
"int k;",
"k",
"long sum;",
"sum",
"for (i = 0; i < n; i++) {\n for (j = 0; j < l; j++) {\n sum = 0;\n for (k = 0; k < m; k++) {\n sum += A[i][k] * B[k][j];\n }\n System.out.print(sum + ((j == l - 1) ? \"\" : \" \"));\n }\n System.out.println();\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (j = 0; j < l; j++) {\n sum = 0;\n for (k = 0; k < m; k++) {\n sum += A[i][k] * B[k][j];\n }\n System.out.print(sum + ((j == l - 1) ? \"\" : \" \"));\n }\n System.out.println();\n }",
"{\n for (j = 0; j < l; j++) {\n sum = 0;\n for (k = 0; k < m; k++) {\n sum += A[i][k] * B[k][j];\n }\n System.out.print(sum + ((j == l - 1) ? \"\" : \" \"));\n }\n System.out.println();\n }",
"for (j = 0; j < l; j++) {\n sum = 0;\n for (k = 0; k < m; k++) {\n sum += A[i][k] * B[k][j];\n }\n System.out.print(sum + ((j == l - 1) ? \"\" : \" \"));\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n sum = 0;\n for (k = 0; k < m; k++) {\n sum += A[i][k] * B[k][j];\n }\n System.out.print(sum + ((j == l - 1) ? \"\" : \" \"));\n }",
"{\n sum = 0;\n for (k = 0; k < m; k++) {\n sum += A[i][k] * B[k][j];\n }\n System.out.print(sum + ((j == l - 1) ? \"\" : \" \"));\n }",
"sum = 0",
"sum",
"0",
"for (k = 0; k < m; k++) {\n sum += A[i][k] * B[k][j];\n }",
"k = 0;",
"k = 0",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"{\n sum += A[i][k] * B[k][j];\n }",
"{\n sum += A[i][k] * B[k][j];\n }",
"sum += A[i][k] * B[k][j]",
"sum",
"A[i][k] * B[k][j]",
"A[i][k]",
"A[i]",
"A",
"i",
"k",
"B[k][j]",
"B[k]",
"B",
"k",
"j",
"System.out.print(sum + ((j == l - 1) ? \"\" : \" \"))",
"System.out.print",
"System.out",
"System",
"System.out",
"sum + ((j == l - 1) ? \"\" : \" \")",
"sum",
"((j == l - 1) ? \"\" : \" \")",
"(j == l - 1)",
"j",
"l - 1",
"l",
"1",
"\"\"",
"\" \"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"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[] input = br.readLine().split(" ");
int n = Integer.parseInt(input[0]);
int m = Integer.parseInt(input[1]);
int l = Integer.parseInt(input[2]);
int[][] A = new int[n][m];
int[][] B = new int[m][l];
int i, j;
for (i = 0; i < n; i++) {
input = br.readLine().split(" ");
for (j = 0; j < m; j++) {
A[i][j] = Integer.parseInt(input[j]);
}
}
for (i = 0; i < m; i++) {
input = br.readLine().split(" ");
for (j = 0; j < l; j++) {
B[i][j] = Integer.parseInt(input[j]);
}
}
int k;
long sum;
for (i = 0; i < n; i++) {
for (j = 0; j < l; j++) {
sum = 0;
for (k = 0; k < m; k++) {
sum += A[i][k] * B[k][j];
}
System.out.print(sum + ((j == l - 1) ? "" : " "));
}
System.out.println();
}
}
} |
[
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,
4,
18,
13,
18,
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,
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,
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,
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,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
4,
18,
13,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
247,
11
],
[
247,
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
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
50,
52
],
[
14,
53
],
[
53,
54
],
[
53,
55
],
[
14,
58
],
[
58,
59
],
[
58,
60
],
[
14,
63
],
[
63,
64
],
[
63,
65
],
[
14,
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
],
[
14,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
119,
120
],
[
119,
121
],
[
114,
122
],
[
122,
123
],
[
123,
124
],
[
114,
125
],
[
126,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
129,
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
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
148,
154
],
[
154,
155
],
[
155,
156
],
[
154,
157
],
[
157,
158
],
[
157,
159
],
[
14,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
160,
165
],
[
165,
166
],
[
165,
167
],
[
160,
168
],
[
168,
169
],
[
169,
170
],
[
160,
171
],
[
172,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
173,
178
],
[
178,
179
],
[
178,
180
],
[
173,
181
],
[
181,
182
],
[
182,
183
],
[
173,
184
],
[
185,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
186,
191
],
[
191,
192
],
[
191,
193
],
[
186,
194
],
[
194,
195
],
[
195,
196
],
[
186,
197
],
[
198,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
200,
204
],
[
199,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
206,
210
],
[
205,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
211,
215
],
[
185,
216
],
[
216,
217
],
[
217,
218
],
[
216,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
219,
223
],
[
185,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
227,
228
],
[
227,
229
],
[
224,
230
],
[
230,
231
],
[
231,
232
],
[
230,
233
],
[
172,
234
],
[
234,
235
],
[
235,
236
],
[
234,
237
],
[
14,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
238,
243
],
[
12,
244
],
[
244,
245
],
[
0,
246
],
[
246,
247
],
[
246,
248
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\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\t\tString[] elm = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(elm[0]);\n\t\tint m = Integer.parseInt(elm[1]);\n\t\tint l = Integer.parseInt(elm[2]);\n\t\tint[][] mata = new int[n][m];\n\t\tint[][] matb = new int[m][l];\n\t\tlong[][] ans = new long[n][l];\n\t\tfor(int i = 0; i < n ; i++){\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < m ; j++){\n\t\t\t\tmata[i][j] = Integer.parseInt(line[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < m ; i++){\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < l ; j++){\n\t\t\t\tmatb[i][j] = Integer.parseInt(line[j]);\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\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tans[i][j] += mata[i][k] * matb[k][j];\n\t\t\t\t}\n\t\t\t\tsb.append(ans[i][j]);\n\t\t\t\tif( j != l-1) sb.append(\" \");\n\t\t\t\t//System.out.print(ans[i][j]+\" \");\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t\t//System.out.println();\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"public class Main{\n\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\t\tString[] elm = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(elm[0]);\n\t\tint m = Integer.parseInt(elm[1]);\n\t\tint l = Integer.parseInt(elm[2]);\n\t\tint[][] mata = new int[n][m];\n\t\tint[][] matb = new int[m][l];\n\t\tlong[][] ans = new long[n][l];\n\t\tfor(int i = 0; i < n ; i++){\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < m ; j++){\n\t\t\t\tmata[i][j] = Integer.parseInt(line[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < m ; i++){\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < l ; j++){\n\t\t\t\tmatb[i][j] = Integer.parseInt(line[j]);\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\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tans[i][j] += mata[i][k] * matb[k][j];\n\t\t\t\t}\n\t\t\t\tsb.append(ans[i][j]);\n\t\t\t\tif( j != l-1) sb.append(\" \");\n\t\t\t\t//System.out.print(ans[i][j]+\" \");\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t\t//System.out.println();\n\t\t}\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\t\tString[] elm = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(elm[0]);\n\t\tint m = Integer.parseInt(elm[1]);\n\t\tint l = Integer.parseInt(elm[2]);\n\t\tint[][] mata = new int[n][m];\n\t\tint[][] matb = new int[m][l];\n\t\tlong[][] ans = new long[n][l];\n\t\tfor(int i = 0; i < n ; i++){\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < m ; j++){\n\t\t\t\tmata[i][j] = Integer.parseInt(line[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < m ; i++){\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < l ; j++){\n\t\t\t\tmatb[i][j] = Integer.parseInt(line[j]);\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\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tans[i][j] += mata[i][k] * matb[k][j];\n\t\t\t\t}\n\t\t\t\tsb.append(ans[i][j]);\n\t\t\t\tif( j != l-1) sb.append(\" \");\n\t\t\t\t//System.out.print(ans[i][j]+\" \");\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t\t//System.out.println();\n\t\t}\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\t\tString[] elm = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(elm[0]);\n\t\tint m = Integer.parseInt(elm[1]);\n\t\tint l = Integer.parseInt(elm[2]);\n\t\tint[][] mata = new int[n][m];\n\t\tint[][] matb = new int[m][l];\n\t\tlong[][] ans = new long[n][l];\n\t\tfor(int i = 0; i < n ; i++){\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < m ; j++){\n\t\t\t\tmata[i][j] = Integer.parseInt(line[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < m ; i++){\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < l ; j++){\n\t\t\t\tmatb[i][j] = Integer.parseInt(line[j]);\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\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tans[i][j] += mata[i][k] * matb[k][j];\n\t\t\t\t}\n\t\t\t\tsb.append(ans[i][j]);\n\t\t\t\tif( j != l-1) sb.append(\" \");\n\t\t\t\t//System.out.print(ans[i][j]+\" \");\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t\t//System.out.println();\n\t\t}\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[] elm = br.readLine().split(\" \");",
"elm",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int n = Integer.parseInt(elm[0]);",
"n",
"Integer.parseInt(elm[0])",
"Integer.parseInt",
"Integer",
"elm[0]",
"elm",
"0",
"int m = Integer.parseInt(elm[1]);",
"m",
"Integer.parseInt(elm[1])",
"Integer.parseInt",
"Integer",
"elm[1]",
"elm",
"1",
"int l = Integer.parseInt(elm[2]);",
"l",
"Integer.parseInt(elm[2])",
"Integer.parseInt",
"Integer",
"elm[2]",
"elm",
"2",
"int[][] mata = new int[n][m];",
"mata",
"new int[n][m]",
"n",
"m",
"int[][] matb = new int[m][l];",
"matb",
"new int[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\tString[] line = br.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < m ; j++){\n\t\t\t\tmata[i][j] = Integer.parseInt(line[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().split(\" \");\n\t\t\tfor(int j = 0; j < m ; j++){\n\t\t\t\tmata[i][j] = Integer.parseInt(line[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < m ; j++){\n\t\t\t\tmata[i][j] = Integer.parseInt(line[j]);\n\t\t\t}\n\t\t}",
"String[] 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\t\tmata[i][j] = Integer.parseInt(line[j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tmata[i][j] = Integer.parseInt(line[j]);\n\t\t\t}",
"{\n\t\t\t\tmata[i][j] = Integer.parseInt(line[j]);\n\t\t\t}",
"mata[i][j] = Integer.parseInt(line[j])",
"mata[i][j]",
"mata[i]",
"mata",
"i",
"j",
"Integer.parseInt(line[j])",
"Integer.parseInt",
"Integer",
"line[j]",
"line",
"j",
"for(int i = 0; i < m ; i++){\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < l ; j++){\n\t\t\t\tmatb[i][j] = Integer.parseInt(line[j]);\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\tString[] line = br.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < l ; j++){\n\t\t\t\tmatb[i][j] = Integer.parseInt(line[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < l ; j++){\n\t\t\t\tmatb[i][j] = Integer.parseInt(line[j]);\n\t\t\t}\n\t\t}",
"String[] line = br.readLine().split(\" \");",
"line",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(int j = 0; j < l ; j++){\n\t\t\t\tmatb[i][j] = Integer.parseInt(line[j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tmatb[i][j] = Integer.parseInt(line[j]);\n\t\t\t}",
"{\n\t\t\t\tmatb[i][j] = Integer.parseInt(line[j]);\n\t\t\t}",
"matb[i][j] = Integer.parseInt(line[j])",
"matb[i][j]",
"matb[i]",
"matb",
"i",
"j",
"Integer.parseInt(line[j])",
"Integer.parseInt",
"Integer",
"line[j]",
"line",
"j",
"for(int i = 0; i < n ; i++){\n\t\t\tfor(int j = 0; j < l ; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tans[i][j] += mata[i][k] * matb[k][j];\n\t\t\t\t}\n\t\t\t\tsb.append(ans[i][j]);\n\t\t\t\tif( j != l-1) sb.append(\" \");\n\t\t\t\t//System.out.print(ans[i][j]+\" \");\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t\t//System.out.println();\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\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tans[i][j] += mata[i][k] * matb[k][j];\n\t\t\t\t}\n\t\t\t\tsb.append(ans[i][j]);\n\t\t\t\tif( j != l-1) sb.append(\" \");\n\t\t\t\t//System.out.print(ans[i][j]+\" \");\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t\t//System.out.println();\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < l ; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tans[i][j] += mata[i][k] * matb[k][j];\n\t\t\t\t}\n\t\t\t\tsb.append(ans[i][j]);\n\t\t\t\tif( j != l-1) sb.append(\" \");\n\t\t\t\t//System.out.print(ans[i][j]+\" \");\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t\t//System.out.println();\n\t\t}",
"for(int j = 0; j < l ; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tans[i][j] += mata[i][k] * matb[k][j];\n\t\t\t\t}\n\t\t\t\tsb.append(ans[i][j]);\n\t\t\t\tif( j != l-1) sb.append(\" \");\n\t\t\t\t//System.out.print(ans[i][j]+\" \");\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tans[i][j] += mata[i][k] * matb[k][j];\n\t\t\t\t}\n\t\t\t\tsb.append(ans[i][j]);\n\t\t\t\tif( j != l-1) sb.append(\" \");\n\t\t\t\t//System.out.print(ans[i][j]+\" \");\n\t\t\t}",
"{\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tans[i][j] += mata[i][k] * matb[k][j];\n\t\t\t\t}\n\t\t\t\tsb.append(ans[i][j]);\n\t\t\t\tif( j != l-1) sb.append(\" \");\n\t\t\t\t//System.out.print(ans[i][j]+\" \");\n\t\t\t}",
"for(int k = 0; k < m; k++){\n\t\t\t\t\tans[i][j] += mata[i][k] * matb[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\tans[i][j] += mata[i][k] * matb[k][j];\n\t\t\t\t}",
"{\n\t\t\t\t\tans[i][j] += mata[i][k] * matb[k][j];\n\t\t\t\t}",
"ans[i][j] += mata[i][k] * matb[k][j]",
"ans[i][j]",
"ans[i]",
"ans",
"i",
"j",
"mata[i][k] * matb[k][j]",
"mata[i][k]",
"mata[i]",
"mata",
"i",
"k",
"matb[k][j]",
"matb[k]",
"matb",
"k",
"j",
"sb.append(ans[i][j])",
"sb.append",
"sb",
"ans[i][j]",
"ans[i]",
"ans",
"i",
"j",
"if( j != l-1) sb.append(\" \");",
"j != l-1",
"j",
"l-1",
"l",
"1",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"sb.append(\"\\n\")",
"sb.append",
"sb",
"\"\\n\"",
"System.out.print(sb)",
"System.out.print",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args",
"public class Main{\n\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\t\tString[] elm = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(elm[0]);\n\t\tint m = Integer.parseInt(elm[1]);\n\t\tint l = Integer.parseInt(elm[2]);\n\t\tint[][] mata = new int[n][m];\n\t\tint[][] matb = new int[m][l];\n\t\tlong[][] ans = new long[n][l];\n\t\tfor(int i = 0; i < n ; i++){\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < m ; j++){\n\t\t\t\tmata[i][j] = Integer.parseInt(line[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < m ; i++){\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < l ; j++){\n\t\t\t\tmatb[i][j] = Integer.parseInt(line[j]);\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\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tans[i][j] += mata[i][k] * matb[k][j];\n\t\t\t\t}\n\t\t\t\tsb.append(ans[i][j]);\n\t\t\t\tif( j != l-1) sb.append(\" \");\n\t\t\t\t//System.out.print(ans[i][j]+\" \");\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t\t//System.out.println();\n\t\t}\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\t\tString[] elm = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(elm[0]);\n\t\tint m = Integer.parseInt(elm[1]);\n\t\tint l = Integer.parseInt(elm[2]);\n\t\tint[][] mata = new int[n][m];\n\t\tint[][] matb = new int[m][l];\n\t\tlong[][] ans = new long[n][l];\n\t\tfor(int i = 0; i < n ; i++){\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < m ; j++){\n\t\t\t\tmata[i][j] = Integer.parseInt(line[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < m ; i++){\n\t\t\tString[] line = br.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < l ; j++){\n\t\t\t\tmatb[i][j] = Integer.parseInt(line[j]);\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\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tans[i][j] += mata[i][k] * matb[k][j];\n\t\t\t\t}\n\t\t\t\tsb.append(ans[i][j]);\n\t\t\t\tif( j != l-1) sb.append(\" \");\n\t\t\t\t//System.out.print(ans[i][j]+\" \");\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t\t//System.out.println();\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class Main{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
String[] elm = br.readLine().split(" ");
int n = Integer.parseInt(elm[0]);
int m = Integer.parseInt(elm[1]);
int l = Integer.parseInt(elm[2]);
int[][] mata = new int[n][m];
int[][] matb = new int[m][l];
long[][] ans = new long[n][l];
for(int i = 0; i < n ; i++){
String[] line = br.readLine().split(" ");
for(int j = 0; j < m ; j++){
mata[i][j] = Integer.parseInt(line[j]);
}
}
for(int i = 0; i < m ; i++){
String[] line = br.readLine().split(" ");
for(int j = 0; j < l ; j++){
matb[i][j] = Integer.parseInt(line[j]);
}
}
for(int i = 0; i < n ; i++){
for(int j = 0; j < l ; j++){
for(int k = 0; k < m; k++){
ans[i][j] += mata[i][k] * matb[k][j];
}
sb.append(ans[i][j]);
if( j != l-1) sb.append(" ");
//System.out.print(ans[i][j]+" ");
}
sb.append("\n");
//System.out.println();
}
System.out.print(sb);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
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,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
38
],
[
38,
39
],
[
38,
40
],
[
8,
43
],
[
43,
44
],
[
43,
45
],
[
8,
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
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
61,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
74,
80
],
[
80,
81
],
[
81,
82
],
[
8,
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
],
[
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
],
[
110,
114
],
[
109,
115
],
[
115,
116
],
[
116,
117
],
[
8,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
118,
126
],
[
126,
127
],
[
127,
128
],
[
118,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
136,
137
],
[
136,
138
],
[
131,
139
],
[
139,
140
],
[
140,
141
],
[
131,
142
],
[
143,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
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
],
[
158,
162
],
[
157,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
163,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
8,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
174,
179
],
[
179,
180
],
[
179,
181
],
[
174,
182
],
[
182,
183
],
[
183,
184
],
[
174,
185
],
[
186,
186
],
[
186,
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
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
200,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
205,
209
],
[
199,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
213,
215
],
[
210,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
217,
222
],
[
186,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
6,
228
],
[
228,
229
]
] | [
"import java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint n, m, l;\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tn = stdIn.nextInt();\n\t\tm = stdIn.nextInt();\n\t\tl = stdIn.nextInt();\n\n\t\tint[][] matrixA = new int[n][m];\n\t\tint[][] matrixB = new int[m][l];\n\t\tlong[][] matrixC = new long[n][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tmatrixB[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tmatrixC[i][j] += matrixA[i][k] * matrixB[k][j];\n//\t\t\t\t\tSystem.out.println(\"i:\" + i + \" j:\" + j + \" k:\" + k + \" \" + matrixA[i][k] + \" * \" + matrixB[k][j] + \" C : \" + matrixC[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tSystem.out.print(matrixC[i][j]);\n\t\t\t\tif (j < l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint n, m, l;\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tn = stdIn.nextInt();\n\t\tm = stdIn.nextInt();\n\t\tl = stdIn.nextInt();\n\n\t\tint[][] matrixA = new int[n][m];\n\t\tint[][] matrixB = new int[m][l];\n\t\tlong[][] matrixC = new long[n][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tmatrixB[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tmatrixC[i][j] += matrixA[i][k] * matrixB[k][j];\n//\t\t\t\t\tSystem.out.println(\"i:\" + i + \" j:\" + j + \" k:\" + k + \" \" + matrixA[i][k] + \" * \" + matrixB[k][j] + \" C : \" + matrixC[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tSystem.out.print(matrixC[i][j]);\n\t\t\t\tif (j < l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tint n, m, l;\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tn = stdIn.nextInt();\n\t\tm = stdIn.nextInt();\n\t\tl = stdIn.nextInt();\n\n\t\tint[][] matrixA = new int[n][m];\n\t\tint[][] matrixB = new int[m][l];\n\t\tlong[][] matrixC = new long[n][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tmatrixB[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tmatrixC[i][j] += matrixA[i][k] * matrixB[k][j];\n//\t\t\t\t\tSystem.out.println(\"i:\" + i + \" j:\" + j + \" k:\" + k + \" \" + matrixA[i][k] + \" * \" + matrixB[k][j] + \" C : \" + matrixC[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tSystem.out.print(matrixC[i][j]);\n\t\t\t\tif (j < l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t\n\t\t}\n\t}",
"main",
"{\n\n\t\tint n, m, l;\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tn = stdIn.nextInt();\n\t\tm = stdIn.nextInt();\n\t\tl = stdIn.nextInt();\n\n\t\tint[][] matrixA = new int[n][m];\n\t\tint[][] matrixB = new int[m][l];\n\t\tlong[][] matrixC = new long[n][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tmatrixB[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tmatrixC[i][j] += matrixA[i][k] * matrixB[k][j];\n//\t\t\t\t\tSystem.out.println(\"i:\" + i + \" j:\" + j + \" k:\" + k + \" \" + matrixA[i][k] + \" * \" + matrixB[k][j] + \" C : \" + matrixC[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tSystem.out.print(matrixC[i][j]);\n\t\t\t\tif (j < l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t\n\t\t}\n\t}",
"int n",
"n",
"m",
"m",
"l;",
"l",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"n = stdIn.nextInt()",
"n",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"m = stdIn.nextInt()",
"m",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"l = stdIn.nextInt()",
"l",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int[][] matrixA = new int[n][m];",
"matrixA",
"new int[n][m]",
"n",
"m",
"int[][] matrixB = new int[m][l];",
"matrixB",
"new int[m][l]",
"m",
"l",
"long[][] matrixC = new long[n][l];",
"matrixC",
"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\tmatrixA[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t}",
"for (int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = stdIn.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tmatrixA[i][j] = stdIn.nextInt();\n\t\t\t}",
"{\n\t\t\t\tmatrixA[i][j] = stdIn.nextInt();\n\t\t\t}",
"matrixA[i][j] = stdIn.nextInt()",
"matrixA[i][j]",
"matrixA[i]",
"matrixA",
"i",
"j",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"for (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tmatrixB[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tmatrixB[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tmatrixB[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t}",
"for (int j = 0; j < l; j++) {\n\t\t\t\tmatrixB[i][j] = stdIn.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tmatrixB[i][j] = stdIn.nextInt();\n\t\t\t}",
"{\n\t\t\t\tmatrixB[i][j] = stdIn.nextInt();\n\t\t\t}",
"matrixB[i][j] = stdIn.nextInt()",
"matrixB[i][j]",
"matrixB[i]",
"matrixB",
"i",
"j",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tmatrixC[i][j] += matrixA[i][k] * matrixB[k][j];\n//\t\t\t\t\tSystem.out.println(\"i:\" + i + \" j:\" + j + \" k:\" + k + \" \" + matrixA[i][k] + \" * \" + matrixB[k][j] + \" C : \" + matrixC[i][j]);\n\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 < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tmatrixC[i][j] += matrixA[i][k] * matrixB[k][j];\n//\t\t\t\t\tSystem.out.println(\"i:\" + i + \" j:\" + j + \" k:\" + k + \" \" + matrixA[i][k] + \" * \" + matrixB[k][j] + \" C : \" + matrixC[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tmatrixC[i][j] += matrixA[i][k] * matrixB[k][j];\n//\t\t\t\t\tSystem.out.println(\"i:\" + i + \" j:\" + j + \" k:\" + k + \" \" + matrixA[i][k] + \" * \" + matrixB[k][j] + \" C : \" + matrixC[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tmatrixC[i][j] += matrixA[i][k] * matrixB[k][j];\n//\t\t\t\t\tSystem.out.println(\"i:\" + i + \" j:\" + j + \" k:\" + k + \" \" + matrixA[i][k] + \" * \" + matrixB[k][j] + \" C : \" + matrixC[i][j]);\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tmatrixC[i][j] += matrixA[i][k] * matrixB[k][j];\n//\t\t\t\t\tSystem.out.println(\"i:\" + i + \" j:\" + j + \" k:\" + k + \" \" + matrixA[i][k] + \" * \" + matrixB[k][j] + \" C : \" + matrixC[i][j]);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tmatrixC[i][j] += matrixA[i][k] * matrixB[k][j];\n//\t\t\t\t\tSystem.out.println(\"i:\" + i + \" j:\" + j + \" k:\" + k + \" \" + matrixA[i][k] + \" * \" + matrixB[k][j] + \" C : \" + matrixC[i][j]);\n\t\t\t\t}\n\t\t\t}",
"for (int k = 0; k < m; k++) {\n\t\t\t\t\tmatrixC[i][j] += matrixA[i][k] * matrixB[k][j];\n//\t\t\t\t\tSystem.out.println(\"i:\" + i + \" j:\" + j + \" k:\" + k + \" \" + matrixA[i][k] + \" * \" + matrixB[k][j] + \" C : \" + matrixC[i][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\tmatrixC[i][j] += matrixA[i][k] * matrixB[k][j];\n//\t\t\t\t\tSystem.out.println(\"i:\" + i + \" j:\" + j + \" k:\" + k + \" \" + matrixA[i][k] + \" * \" + matrixB[k][j] + \" C : \" + matrixC[i][j]);\n\t\t\t\t}",
"{\n\t\t\t\t\tmatrixC[i][j] += matrixA[i][k] * matrixB[k][j];\n//\t\t\t\t\tSystem.out.println(\"i:\" + i + \" j:\" + j + \" k:\" + k + \" \" + matrixA[i][k] + \" * \" + matrixB[k][j] + \" C : \" + matrixC[i][j]);\n\t\t\t\t}",
"matrixC[i][j] += matrixA[i][k] * matrixB[k][j]",
"matrixC[i][j]",
"matrixC[i]",
"matrixC",
"i",
"j",
"matrixA[i][k] * matrixB[k][j]",
"matrixA[i][k]",
"matrixA[i]",
"matrixA",
"i",
"k",
"matrixB[k][j]",
"matrixB[k]",
"matrixB",
"k",
"j",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tSystem.out.print(matrixC[i][j]);\n\t\t\t\tif (j < l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\tSystem.out.println();\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\tSystem.out.print(matrixC[i][j]);\n\t\t\t\tif (j < l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tSystem.out.print(matrixC[i][j]);\n\t\t\t\tif (j < l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t\n\t\t}",
"for (int j = 0; j < l; j++) {\n\t\t\t\tSystem.out.print(matrixC[i][j]);\n\t\t\t\tif (j < l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(matrixC[i][j]);\n\t\t\t\tif (j < l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(matrixC[i][j]);\n\t\t\t\tif (j < l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"System.out.print(matrixC[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"matrixC[i][j]",
"matrixC[i]",
"matrixC",
"i",
"j",
"if (j < l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"j < l-1",
"j",
"l-1",
"l",
"1",
"{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args"
] | import java.util.Scanner;
class Main {
public static void main(String[] args) {
int n, m, l;
Scanner stdIn = new Scanner(System.in);
n = stdIn.nextInt();
m = stdIn.nextInt();
l = stdIn.nextInt();
int[][] matrixA = new int[n][m];
int[][] matrixB = new int[m][l];
long[][] matrixC = new long[n][l];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
matrixA[i][j] = stdIn.nextInt();
}
}
for (int i = 0; i < m; i++) {
for (int j = 0; j < l; j++) {
matrixB[i][j] = stdIn.nextInt();
}
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < l; j++) {
for (int k = 0; k < m; k++) {
matrixC[i][j] += matrixA[i][k] * matrixB[k][j];
// System.out.println("i:" + i + " j:" + j + " k:" + k + " " + matrixA[i][k] + " * " + matrixB[k][j] + " C : " + matrixC[i][j]);
}
}
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < l; j++) {
System.out.print(matrixC[i][j]);
if (j < l-1) {
System.out.print(" ");
}
}
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,
4,
18,
13,
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,
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,
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,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
240,
5
],
[
240,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
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
],
[
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
],
[
67,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
73,
79
],
[
8,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
80,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
98,
100
],
[
93,
101
],
[
101,
102
],
[
102,
103
],
[
93,
104
],
[
105,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
105,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
111,
117
],
[
8,
118
],
[
118,
119
],
[
119,
120
],
[
8,
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
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
139,
140
],
[
139,
141
],
[
134,
142
],
[
142,
143
],
[
143,
144
],
[
134,
145
],
[
146,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
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
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
165,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
146,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
176,
182
],
[
8,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
183,
188
],
[
188,
189
],
[
188,
190
],
[
183,
191
],
[
191,
192
],
[
192,
193
],
[
183,
194
],
[
195,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
196,
201
],
[
201,
202
],
[
201,
203
],
[
196,
204
],
[
204,
205
],
[
205,
206
],
[
196,
207
],
[
208,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
209,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
214,
218
],
[
208,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
222,
224
],
[
219,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
227,
229
],
[
225,
230
],
[
195,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
231,
236
],
[
6,
237
],
[
237,
238
],
[
0,
239
],
[
239,
240
],
[
239,
241
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t//System.out.prlong(\"2x3行列と3x2行列の積を求めます\\n\");\n\n\t\tint n = sc.nextInt(); // 3\n\t\tint m = sc.nextInt(); // 2\n\t\tint l = sc.nextInt(); // 3\n\n\t\tlong a[][]=new long[n][m];\n\t\tlong b[][]=new long[m][l];\n\t\tlong c[][]=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\tlong num=sc.nextInt();\n\t\t\t\ta[i][j]=num;\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\tlong num=sc.nextInt();\n\t\t\t\tb[i][j]=num;\n\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\tlong sum=0;\n\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\tsum+=a[i][k]*b[k][j];\n\t\t\t\t}\n\t\t\t\tc[i][j]=sum;\n\n\t\t\t}\n\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\tSystem.out.print(c[i][j]);\n\t\t\t\tif(j != l-1) System.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t//System.out.prlong(\"2x3行列と3x2行列の積を求めます\\n\");\n\n\t\tint n = sc.nextInt(); // 3\n\t\tint m = sc.nextInt(); // 2\n\t\tint l = sc.nextInt(); // 3\n\n\t\tlong a[][]=new long[n][m];\n\t\tlong b[][]=new long[m][l];\n\t\tlong c[][]=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\tlong num=sc.nextInt();\n\t\t\t\ta[i][j]=num;\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\tlong num=sc.nextInt();\n\t\t\t\tb[i][j]=num;\n\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\tlong sum=0;\n\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\tsum+=a[i][k]*b[k][j];\n\t\t\t\t}\n\t\t\t\tc[i][j]=sum;\n\n\t\t\t}\n\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\tSystem.out.print(c[i][j]);\n\t\t\t\tif(j != l-1) System.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t//System.out.prlong(\"2x3行列と3x2行列の積を求めます\\n\");\n\n\t\tint n = sc.nextInt(); // 3\n\t\tint m = sc.nextInt(); // 2\n\t\tint l = sc.nextInt(); // 3\n\n\t\tlong a[][]=new long[n][m];\n\t\tlong b[][]=new long[m][l];\n\t\tlong c[][]=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\tlong num=sc.nextInt();\n\t\t\t\ta[i][j]=num;\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\tlong num=sc.nextInt();\n\t\t\t\tb[i][j]=num;\n\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\tlong sum=0;\n\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\tsum+=a[i][k]*b[k][j];\n\t\t\t\t}\n\t\t\t\tc[i][j]=sum;\n\n\t\t\t}\n\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\tSystem.out.print(c[i][j]);\n\t\t\t\tif(j != l-1) System.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t//System.out.prlong(\"2x3行列と3x2行列の積を求めます\\n\");\n\n\t\tint n = sc.nextInt(); // 3\n\t\tint m = sc.nextInt(); // 2\n\t\tint l = sc.nextInt(); // 3\n\n\t\tlong a[][]=new long[n][m];\n\t\tlong b[][]=new long[m][l];\n\t\tlong c[][]=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\tlong num=sc.nextInt();\n\t\t\t\ta[i][j]=num;\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\tlong num=sc.nextInt();\n\t\t\t\tb[i][j]=num;\n\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\tlong sum=0;\n\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\tsum+=a[i][k]*b[k][j];\n\t\t\t\t}\n\t\t\t\tc[i][j]=sum;\n\n\t\t\t}\n\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\tSystem.out.print(c[i][j]);\n\t\t\t\tif(j != l-1) System.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\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 l = sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long a[][]=new long[n][m];",
"a",
"new long[n][m]",
"n",
"m",
"long b[][]=new long[m][l];",
"b",
"new long[m][l]",
"m",
"l",
"long c[][]=new long[n][l];",
"c",
"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\tlong num=sc.nextInt();\n\t\t\t\ta[i][j]=num;\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\tlong num=sc.nextInt();\n\t\t\t\ta[i][j]=num;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\tlong num=sc.nextInt();\n\t\t\t\ta[i][j]=num;\n\t\t\t}\n\t\t}",
"for(int j=0;j<m;j++){\n\t\t\t\tlong num=sc.nextInt();\n\t\t\t\ta[i][j]=num;\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tlong num=sc.nextInt();\n\t\t\t\ta[i][j]=num;\n\t\t\t}",
"{\n\t\t\t\tlong num=sc.nextInt();\n\t\t\t\ta[i][j]=num;\n\t\t\t}",
"long num=sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a[i][j]=num",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"num",
"for(int i=0;i<m;i++){\n\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\tlong num=sc.nextInt();\n\t\t\t\tb[i][j]=num;\n\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\tlong num=sc.nextInt();\n\t\t\t\tb[i][j]=num;\n\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\tlong num=sc.nextInt();\n\t\t\t\tb[i][j]=num;\n\n\t\t\t}\n\t\t}",
"for(int j=0;j<l;j++){\n\t\t\t\tlong num=sc.nextInt();\n\t\t\t\tb[i][j]=num;\n\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tlong num=sc.nextInt();\n\t\t\t\tb[i][j]=num;\n\n\t\t\t}",
"{\n\t\t\t\tlong num=sc.nextInt();\n\t\t\t\tb[i][j]=num;\n\n\t\t\t}",
"long num=sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"b[i][j]=num",
"b[i][j]",
"b[i]",
"b",
"i",
"j",
"num",
"sc.close()",
"sc.close",
"sc",
"for(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\tlong sum=0;\n\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\tsum+=a[i][k]*b[k][j];\n\t\t\t\t}\n\t\t\t\tc[i][j]=sum;\n\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\tfor(int j=0;j<l;j++){\n\t\t\t\tlong sum=0;\n\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\tsum+=a[i][k]*b[k][j];\n\t\t\t\t}\n\t\t\t\tc[i][j]=sum;\n\n\t\t\t}\n\n\t\t}",
"{\n\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\tlong sum=0;\n\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\tsum+=a[i][k]*b[k][j];\n\t\t\t\t}\n\t\t\t\tc[i][j]=sum;\n\n\t\t\t}\n\n\t\t}",
"for(int j=0;j<l;j++){\n\t\t\t\tlong sum=0;\n\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\tsum+=a[i][k]*b[k][j];\n\t\t\t\t}\n\t\t\t\tc[i][j]=sum;\n\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tlong sum=0;\n\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\tsum+=a[i][k]*b[k][j];\n\t\t\t\t}\n\t\t\t\tc[i][j]=sum;\n\n\t\t\t}",
"{\n\t\t\t\tlong sum=0;\n\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\tsum+=a[i][k]*b[k][j];\n\t\t\t\t}\n\t\t\t\tc[i][j]=sum;\n\n\t\t\t}",
"long sum=0;",
"sum",
"0",
"for(int k=0;k<m;k++){\n\t\t\t\t\tsum+=a[i][k]*b[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\tsum+=a[i][k]*b[k][j];\n\t\t\t\t}",
"{\n\t\t\t\t\tsum+=a[i][k]*b[k][j];\n\t\t\t\t}",
"sum+=a[i][k]*b[k][j]",
"sum",
"a[i][k]*b[k][j]",
"a[i][k]",
"a[i]",
"a",
"i",
"k",
"b[k][j]",
"b[k]",
"b",
"k",
"j",
"c[i][j]=sum",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"sum",
"for(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\tif(j != l-1) System.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\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\tSystem.out.print(c[i][j]);\n\t\t\t\tif(j != l-1) System.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"{\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\tif(j != l-1) System.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"for(int j=0;j<l;j++) {\n\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\tif(j != l-1) System.out.print(\" \");\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\tif(j != l-1) System.out.print(\" \");\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\tif(j != l-1) System.out.print(\" \");\n\t\t\t}",
"System.out.print(c[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"if(j != l-1) System.out.print(\" \");",
"j != l-1",
"j",
"l-1",
"l",
"1",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t//System.out.prlong(\"2x3行列と3x2行列の積を求めます\\n\");\n\n\t\tint n = sc.nextInt(); // 3\n\t\tint m = sc.nextInt(); // 2\n\t\tint l = sc.nextInt(); // 3\n\n\t\tlong a[][]=new long[n][m];\n\t\tlong b[][]=new long[m][l];\n\t\tlong c[][]=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\tlong num=sc.nextInt();\n\t\t\t\ta[i][j]=num;\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\tlong num=sc.nextInt();\n\t\t\t\tb[i][j]=num;\n\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\tlong sum=0;\n\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\tsum+=a[i][k]*b[k][j];\n\t\t\t\t}\n\t\t\t\tc[i][j]=sum;\n\n\t\t\t}\n\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\tSystem.out.print(c[i][j]);\n\t\t\t\tif(j != l-1) System.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t//System.out.prlong(\"2x3行列と3x2行列の積を求めます\\n\");\n\n\t\tint n = sc.nextInt(); // 3\n\t\tint m = sc.nextInt(); // 2\n\t\tint l = sc.nextInt(); // 3\n\n\t\tlong a[][]=new long[n][m];\n\t\tlong b[][]=new long[m][l];\n\t\tlong c[][]=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\tlong num=sc.nextInt();\n\t\t\t\ta[i][j]=num;\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\tlong num=sc.nextInt();\n\t\t\t\tb[i][j]=num;\n\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\tlong sum=0;\n\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\tsum+=a[i][k]*b[k][j];\n\t\t\t\t}\n\t\t\t\tc[i][j]=sum;\n\n\t\t\t}\n\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\tSystem.out.print(c[i][j]);\n\t\t\t\tif(j != l-1) System.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\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);
//System.out.prlong("2x3行列と3x2行列の積を求めます\n");
int n = sc.nextInt(); // 3
int m = sc.nextInt(); // 2
int l = sc.nextInt(); // 3
long a[][]=new long[n][m];
long b[][]=new long[m][l];
long c[][]=new long[n][l];
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
long num=sc.nextInt();
a[i][j]=num;
}
}
for(int i=0;i<m;i++){
for(int j=0;j<l;j++){
long num=sc.nextInt();
b[i][j]=num;
}
}
sc.close();
for(int i=0;i<n;i++){
for(int j=0;j<l;j++){
long sum=0;
for(int k=0;k<m;k++){
sum+=a[i][k]*b[k][j];
}
c[i][j]=sum;
}
}
for(int i=0;i<n;i++){
for(int j=0;j<l;j++) {
System.out.print(c[i][j]);
if(j != l-1) System.out.print(" ");
}
System.out.println("");
}
}
}
|
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
20,
13,
13,
0,
13,
20,
13,
13,
0,
13,
20,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
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,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
23,
13,
12,
13,
30,
4,
18,
20,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
268,
2
],
[
268,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
5,
11
],
[
11,
12
],
[
5,
13
],
[
13,
14
],
[
5,
15
],
[
15,
16
],
[
5,
17
],
[
17,
18
],
[
5,
19
],
[
19,
20
],
[
5,
21
],
[
21,
22
],
[
5,
23
],
[
23,
24
],
[
5,
25
],
[
25,
26
],
[
5,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
5,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
5,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
5,
42
],
[
42,
43
],
[
42,
44
],
[
5,
47
],
[
47,
48
],
[
47,
49
],
[
5,
52
],
[
52,
53
],
[
52,
54
],
[
5,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
57,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
83,
89
],
[
89,
90
],
[
90,
91
],
[
5,
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
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
118,
124
],
[
124,
125
],
[
125,
126
],
[
5,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
127,
135
],
[
135,
136
],
[
136,
137
],
[
127,
138
],
[
139,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
140,
145
],
[
145,
146
],
[
145,
147
],
[
140,
148
],
[
148,
149
],
[
149,
150
],
[
140,
151
],
[
152,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
153,
159
],
[
152,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
160,
165
],
[
165,
166
],
[
165,
167
],
[
160,
168
],
[
168,
169
],
[
169,
170
],
[
160,
171
],
[
172,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
174,
178
],
[
173,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
180,
184
],
[
179,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
185,
189
],
[
5,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
190,
195
],
[
195,
196
],
[
195,
197
],
[
190,
198
],
[
198,
199
],
[
199,
200
],
[
190,
201
],
[
202,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
202,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
206,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
211,
215
],
[
202,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
216,
221
],
[
221,
222
],
[
221,
223
],
[
216,
224
],
[
224,
225
],
[
225,
226
],
[
216,
227
],
[
228,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
231,
233
],
[
229,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
237,
238
],
[
237,
239
],
[
236,
240
],
[
202,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
243,
245
],
[
5,
246
],
[
246,
247
],
[
247,
248
],
[
3,
249
],
[
249,
250
],
[
3,
251
],
[
251,
252
],
[
268,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
256,
257
],
[
257,
258
],
[
256,
259
],
[
259,
260
],
[
259,
261
],
[
256,
262
],
[
262,
263
],
[
262,
264
],
[
253,
265
],
[
265,
266
],
[
0,
267
],
[
267,
268
],
[
267,
269
]
] | [
"public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int n, m, l;\n int[][] a, b;\n int i, j, k;\n long[][] c;\n\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n a = new int[n][m];\n b = new int[m][l];\n c = new long[n][l];\n\n for(i = 0;i < n;i++){\n for(j = 0;j < m;j++){\n a[i][j] = sc.nextInt();\n }\n }\n for(i = 0;i < m;i++){\n for(j = 0;j < l;j++){\n b[i][j] = sc.nextInt();\n }\n }\n\n for(i = 0;i < n;i++){\n for(j = 0;j < l;j++){\n c[i][j] = 0;\n for(k = 0;k < m;k++){\n c[i][j] += (a[i][k] * b[k][j]);\n }\n }\n }\n\n for(i = 0;i < n;i++){\n j = 0;\n System.out.print(c[i][j]);\n for(j = 1;j < l;j++){\n System.out.print(\" \" + c[i][j]);\n }\n System.out.println();\n }\n\n/*fin*/\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}",
"public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int n, m, l;\n int[][] a, b;\n int i, j, k;\n long[][] c;\n\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n a = new int[n][m];\n b = new int[m][l];\n c = new long[n][l];\n\n for(i = 0;i < n;i++){\n for(j = 0;j < m;j++){\n a[i][j] = sc.nextInt();\n }\n }\n for(i = 0;i < m;i++){\n for(j = 0;j < l;j++){\n b[i][j] = sc.nextInt();\n }\n }\n\n for(i = 0;i < n;i++){\n for(j = 0;j < l;j++){\n c[i][j] = 0;\n for(k = 0;k < m;k++){\n c[i][j] += (a[i][k] * b[k][j]);\n }\n }\n }\n\n for(i = 0;i < n;i++){\n j = 0;\n System.out.print(c[i][j]);\n for(j = 1;j < l;j++){\n System.out.print(\" \" + c[i][j]);\n }\n System.out.println();\n }\n\n/*fin*/\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}",
"Main",
"public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int n, m, l;\n int[][] a, b;\n int i, j, k;\n long[][] c;\n\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n a = new int[n][m];\n b = new int[m][l];\n c = new long[n][l];\n\n for(i = 0;i < n;i++){\n for(j = 0;j < m;j++){\n a[i][j] = sc.nextInt();\n }\n }\n for(i = 0;i < m;i++){\n for(j = 0;j < l;j++){\n b[i][j] = sc.nextInt();\n }\n }\n\n for(i = 0;i < n;i++){\n for(j = 0;j < l;j++){\n c[i][j] = 0;\n for(k = 0;k < m;k++){\n c[i][j] += (a[i][k] * b[k][j]);\n }\n }\n }\n\n for(i = 0;i < n;i++){\n j = 0;\n System.out.print(c[i][j]);\n for(j = 1;j < l;j++){\n System.out.print(\" \" + c[i][j]);\n }\n System.out.println();\n }\n\n/*fin*/\n sc.close();\n }",
"run",
"{\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int n, m, l;\n int[][] a, b;\n int i, j, k;\n long[][] c;\n\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n a = new int[n][m];\n b = new int[m][l];\n c = new long[n][l];\n\n for(i = 0;i < n;i++){\n for(j = 0;j < m;j++){\n a[i][j] = sc.nextInt();\n }\n }\n for(i = 0;i < m;i++){\n for(j = 0;j < l;j++){\n b[i][j] = sc.nextInt();\n }\n }\n\n for(i = 0;i < n;i++){\n for(j = 0;j < l;j++){\n c[i][j] = 0;\n for(k = 0;k < m;k++){\n c[i][j] += (a[i][k] * b[k][j]);\n }\n }\n }\n\n for(i = 0;i < n;i++){\n j = 0;\n System.out.print(c[i][j]);\n for(j = 1;j < l;j++){\n System.out.print(\" \" + c[i][j]);\n }\n System.out.println();\n }\n\n/*fin*/\n sc.close();\n }",
"java.util.Scanner sc = new java.util.Scanner(in);",
"sc",
"new java.util.Scanner(in)",
"int n",
"n",
"m",
"m",
"l;",
"l",
"int[][] a",
"a",
"b;",
"b",
"int i",
"i",
"j",
"j",
"k;",
"k",
"long[][] c;",
"c",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"m = sc.nextInt()",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"l = sc.nextInt()",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a = new int[n][m]",
"a",
"new int[n][m]",
"n",
"m",
"b = new int[m][l]",
"b",
"new int[m][l]",
"m",
"l",
"c = new long[n][l]",
"c",
"new long[n][l]",
"n",
"l",
"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(i = 0;i < m;i++){\n for(j = 0;j < l;j++){\n b[i][j] = sc.nextInt();\n }\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n for(j = 0;j < l;j++){\n b[i][j] = sc.nextInt();\n }\n }",
"{\n for(j = 0;j < l;j++){\n b[i][j] = sc.nextInt();\n }\n }",
"for(j = 0;j < l;j++){\n b[i][j] = sc.nextInt();\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n b[i][j] = sc.nextInt();\n }",
"{\n b[i][j] = sc.nextInt();\n }",
"b[i][j] = sc.nextInt()",
"b[i][j]",
"b[i]",
"b",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(i = 0;i < n;i++){\n for(j = 0;j < l;j++){\n c[i][j] = 0;\n for(k = 0;k < m;k++){\n c[i][j] += (a[i][k] * b[k][j]);\n }\n }\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(j = 0;j < l;j++){\n c[i][j] = 0;\n for(k = 0;k < m;k++){\n c[i][j] += (a[i][k] * b[k][j]);\n }\n }\n }",
"{\n for(j = 0;j < l;j++){\n c[i][j] = 0;\n for(k = 0;k < m;k++){\n c[i][j] += (a[i][k] * b[k][j]);\n }\n }\n }",
"for(j = 0;j < l;j++){\n c[i][j] = 0;\n for(k = 0;k < m;k++){\n c[i][j] += (a[i][k] * b[k][j]);\n }\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n c[i][j] = 0;\n for(k = 0;k < m;k++){\n c[i][j] += (a[i][k] * b[k][j]);\n }\n }",
"{\n c[i][j] = 0;\n for(k = 0;k < m;k++){\n c[i][j] += (a[i][k] * b[k][j]);\n }\n }",
"c[i][j] = 0",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"0",
"for(k = 0;k < m;k++){\n c[i][j] += (a[i][k] * b[k][j]);\n }",
"k = 0;",
"k = 0",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"{\n c[i][j] += (a[i][k] * b[k][j]);\n }",
"{\n c[i][j] += (a[i][k] * b[k][j]);\n }",
"c[i][j] += (a[i][k] * b[k][j])",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"(a[i][k] * b[k][j])",
"a[i][k]",
"a[i]",
"a",
"i",
"k",
"b[k][j]",
"b[k]",
"b",
"k",
"j",
"for(i = 0;i < n;i++){\n j = 0;\n System.out.print(c[i][j]);\n for(j = 1;j < l;j++){\n System.out.print(\" \" + c[i][j]);\n }\n System.out.println();\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n j = 0;\n System.out.print(c[i][j]);\n for(j = 1;j < l;j++){\n System.out.print(\" \" + c[i][j]);\n }\n System.out.println();\n }",
"{\n j = 0;\n System.out.print(c[i][j]);\n for(j = 1;j < l;j++){\n System.out.print(\" \" + c[i][j]);\n }\n System.out.println();\n }",
"j = 0",
"j",
"0",
"System.out.print(c[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"for(j = 1;j < l;j++){\n System.out.print(\" \" + c[i][j]);\n }",
"j = 1;",
"j = 1",
"j",
"1",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n System.out.print(\" \" + c[i][j]);\n }",
"{\n System.out.print(\" \" + c[i][j]);\n }",
"System.out.print(\" \" + c[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + c[i][j]",
"\" \"",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"sc.close()",
"sc.close",
"sc",
"java.io.InputStream in",
"in",
"java.io.PrintStream out",
"out",
"public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }",
"main",
"{\n (new Main()).run(System.in, System.out);\n }",
"(new Main()).run(System.in, System.out)",
"(new Main()).run",
"(new Main())",
"System.in",
"System",
"System.in",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int n, m, l;\n int[][] a, b;\n int i, j, k;\n long[][] c;\n\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n a = new int[n][m];\n b = new int[m][l];\n c = new long[n][l];\n\n for(i = 0;i < n;i++){\n for(j = 0;j < m;j++){\n a[i][j] = sc.nextInt();\n }\n }\n for(i = 0;i < m;i++){\n for(j = 0;j < l;j++){\n b[i][j] = sc.nextInt();\n }\n }\n\n for(i = 0;i < n;i++){\n for(j = 0;j < l;j++){\n c[i][j] = 0;\n for(k = 0;k < m;k++){\n c[i][j] += (a[i][k] * b[k][j]);\n }\n }\n }\n\n for(i = 0;i < n;i++){\n j = 0;\n System.out.print(c[i][j]);\n for(j = 1;j < l;j++){\n System.out.print(\" \" + c[i][j]);\n }\n System.out.println();\n }\n\n/*fin*/\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}",
"public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int n, m, l;\n int[][] a, b;\n int i, j, k;\n long[][] c;\n\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n a = new int[n][m];\n b = new int[m][l];\n c = new long[n][l];\n\n for(i = 0;i < n;i++){\n for(j = 0;j < m;j++){\n a[i][j] = sc.nextInt();\n }\n }\n for(i = 0;i < m;i++){\n for(j = 0;j < l;j++){\n b[i][j] = sc.nextInt();\n }\n }\n\n for(i = 0;i < n;i++){\n for(j = 0;j < l;j++){\n c[i][j] = 0;\n for(k = 0;k < m;k++){\n c[i][j] += (a[i][k] * b[k][j]);\n }\n }\n }\n\n for(i = 0;i < n;i++){\n j = 0;\n System.out.print(c[i][j]);\n for(j = 1;j < l;j++){\n System.out.print(\" \" + c[i][j]);\n }\n System.out.println();\n }\n\n/*fin*/\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}",
"Main"
] | public class Main{
public void run(java.io.InputStream in, java.io.PrintStream out){
java.util.Scanner sc = new java.util.Scanner(in);
/*answer*/
int n, m, l;
int[][] a, b;
int i, j, k;
long[][] c;
n = sc.nextInt();
m = sc.nextInt();
l = sc.nextInt();
a = new int[n][m];
b = new int[m][l];
c = new long[n][l];
for(i = 0;i < n;i++){
for(j = 0;j < m;j++){
a[i][j] = sc.nextInt();
}
}
for(i = 0;i < m;i++){
for(j = 0;j < l;j++){
b[i][j] = sc.nextInt();
}
}
for(i = 0;i < n;i++){
for(j = 0;j < l;j++){
c[i][j] = 0;
for(k = 0;k < m;k++){
c[i][j] += (a[i][k] * b[k][j]);
}
}
}
for(i = 0;i < n;i++){
j = 0;
System.out.print(c[i][j]);
for(j = 1;j < l;j++){
System.out.print(" " + c[i][j]);
}
System.out.println();
}
/*fin*/
sc.close();
}
public static void main(String[] args){
(new Main()).run(System.in, System.out);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
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,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
0,
18,
18,
13,
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,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
233,
5
],
[
233,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
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
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
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
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
112,
120
],
[
120,
121
],
[
121,
122
],
[
112,
123
],
[
124,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
125,
136
],
[
137,
137
],
[
137,
138
],
[
138,
139
],
[
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
],
[
156,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
158,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
153,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
169,
175
],
[
8,
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
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
202,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
207,
211
],
[
201,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
215,
217
],
[
212,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
219,
224
],
[
188,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
227,
229
],
[
6,
230
],
[
230,
231
],
[
0,
232
],
[
232,
233
],
[
232,
234
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\t\n\t\tlong a[][] = new long[n][m];\n\t\tlong b[][] = new long[m][l];\n\t\tlong c[][] = new long[n][l];\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.nextLong();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int h = 0; h < m; h++){\n\t\t\tfor(int k = 0; k < l; k++){\n\t\t\t\tb[h][k] = scan.nextLong();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int p = 0; p < n; p++){\n\t\t\tfor(int q = 0; q < l; q++){\n\t\t\t\tlong s = 0;\n\t\t\t\tfor(int r = 0; r < m; r++){\n\t\t\t\t\ts = s + a[p][r] * b[r][q];\n\t\t\t\t\tc[p][q] = s;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int s = 0; s < n; s++){\n\t\t\tfor(int t = 0; t < l; t++){\n\t\t\t\tSystem.out.print(c[s][t]);\n\t\t\t\tif(t != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\t\n\t\tlong a[][] = new long[n][m];\n\t\tlong b[][] = new long[m][l];\n\t\tlong c[][] = new long[n][l];\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.nextLong();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int h = 0; h < m; h++){\n\t\t\tfor(int k = 0; k < l; k++){\n\t\t\t\tb[h][k] = scan.nextLong();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int p = 0; p < n; p++){\n\t\t\tfor(int q = 0; q < l; q++){\n\t\t\t\tlong s = 0;\n\t\t\t\tfor(int r = 0; r < m; r++){\n\t\t\t\t\ts = s + a[p][r] * b[r][q];\n\t\t\t\t\tc[p][q] = s;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int s = 0; s < n; s++){\n\t\t\tfor(int t = 0; t < l; t++){\n\t\t\t\tSystem.out.print(c[s][t]);\n\t\t\t\tif(t != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\t\n\t\tlong a[][] = new long[n][m];\n\t\tlong b[][] = new long[m][l];\n\t\tlong c[][] = new long[n][l];\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.nextLong();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int h = 0; h < m; h++){\n\t\t\tfor(int k = 0; k < l; k++){\n\t\t\t\tb[h][k] = scan.nextLong();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int p = 0; p < n; p++){\n\t\t\tfor(int q = 0; q < l; q++){\n\t\t\t\tlong s = 0;\n\t\t\t\tfor(int r = 0; r < m; r++){\n\t\t\t\t\ts = s + a[p][r] * b[r][q];\n\t\t\t\t\tc[p][q] = s;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int s = 0; s < n; s++){\n\t\t\tfor(int t = 0; t < l; t++){\n\t\t\t\tSystem.out.print(c[s][t]);\n\t\t\t\tif(t != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\t\n\t\tlong a[][] = new long[n][m];\n\t\tlong b[][] = new long[m][l];\n\t\tlong c[][] = new long[n][l];\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.nextLong();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int h = 0; h < m; h++){\n\t\t\tfor(int k = 0; k < l; k++){\n\t\t\t\tb[h][k] = scan.nextLong();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int p = 0; p < n; p++){\n\t\t\tfor(int q = 0; q < l; q++){\n\t\t\t\tlong s = 0;\n\t\t\t\tfor(int r = 0; r < m; r++){\n\t\t\t\t\ts = s + a[p][r] * b[r][q];\n\t\t\t\t\tc[p][q] = s;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int s = 0; s < n; s++){\n\t\t\tfor(int t = 0; t < l; t++){\n\t\t\t\tSystem.out.print(c[s][t]);\n\t\t\t\tif(t != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = scan.nextInt();",
"l",
"scan.nextInt()",
"scan.nextInt",
"scan",
"long a[][] = new long[n][m];",
"a",
"new long[n][m]",
"n",
"m",
"long b[][] = new long[m][l];",
"b",
"new long[m][l]",
"m",
"l",
"long c[][] = new long[n][l];",
"c",
"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\ta[i][j] = scan.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\ta[i][j] = scan.nextLong();\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.nextLong();\n\t\t\t}\n\t\t}",
"for(int j = 0; j < m; j++){\n\t\t\t\ta[i][j] = scan.nextLong();\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.nextLong();\n\t\t\t}",
"{\n\t\t\t\ta[i][j] = scan.nextLong();\n\t\t\t}",
"a[i][j] = scan.nextLong()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"scan.nextLong()",
"scan.nextLong",
"scan",
"for(int h = 0; h < m; h++){\n\t\t\tfor(int k = 0; k < l; k++){\n\t\t\t\tb[h][k] = scan.nextLong();\n\t\t\t}\n\t\t}",
"int h = 0;",
"int h = 0;",
"h",
"0",
"h < m",
"h",
"m",
"h++",
"h++",
"h",
"{\n\t\t\tfor(int k = 0; k < l; k++){\n\t\t\t\tb[h][k] = scan.nextLong();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int k = 0; k < l; k++){\n\t\t\t\tb[h][k] = scan.nextLong();\n\t\t\t}\n\t\t}",
"for(int k = 0; k < l; k++){\n\t\t\t\tb[h][k] = scan.nextLong();\n\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < l",
"k",
"l",
"k++",
"k++",
"k",
"{\n\t\t\t\tb[h][k] = scan.nextLong();\n\t\t\t}",
"{\n\t\t\t\tb[h][k] = scan.nextLong();\n\t\t\t}",
"b[h][k] = scan.nextLong()",
"b[h][k]",
"b[h]",
"b",
"h",
"k",
"scan.nextLong()",
"scan.nextLong",
"scan",
"for(int p = 0; p < n; p++){\n\t\t\tfor(int q = 0; q < l; q++){\n\t\t\t\tlong s = 0;\n\t\t\t\tfor(int r = 0; r < m; r++){\n\t\t\t\t\ts = s + a[p][r] * b[r][q];\n\t\t\t\t\tc[p][q] = s;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int p = 0;",
"int p = 0;",
"p",
"0",
"p < n",
"p",
"n",
"p++",
"p++",
"p",
"{\n\t\t\tfor(int q = 0; q < l; q++){\n\t\t\t\tlong s = 0;\n\t\t\t\tfor(int r = 0; r < m; r++){\n\t\t\t\t\ts = s + a[p][r] * b[r][q];\n\t\t\t\t\tc[p][q] = s;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int q = 0; q < l; q++){\n\t\t\t\tlong s = 0;\n\t\t\t\tfor(int r = 0; r < m; r++){\n\t\t\t\t\ts = s + a[p][r] * b[r][q];\n\t\t\t\t\tc[p][q] = s;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int q = 0; q < l; q++){\n\t\t\t\tlong s = 0;\n\t\t\t\tfor(int r = 0; r < m; r++){\n\t\t\t\t\ts = s + a[p][r] * b[r][q];\n\t\t\t\t\tc[p][q] = s;\n\t\t\t\t}\n\t\t\t}",
"int q = 0;",
"int q = 0;",
"q",
"0",
"q < l",
"q",
"l",
"q++",
"q++",
"q",
"{\n\t\t\t\tlong s = 0;\n\t\t\t\tfor(int r = 0; r < m; r++){\n\t\t\t\t\ts = s + a[p][r] * b[r][q];\n\t\t\t\t\tc[p][q] = s;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tlong s = 0;\n\t\t\t\tfor(int r = 0; r < m; r++){\n\t\t\t\t\ts = s + a[p][r] * b[r][q];\n\t\t\t\t\tc[p][q] = s;\n\t\t\t\t}\n\t\t\t}",
"long s = 0;",
"s",
"0",
"for(int r = 0; r < m; r++){\n\t\t\t\t\ts = s + a[p][r] * b[r][q];\n\t\t\t\t\tc[p][q] = s;\n\t\t\t\t}",
"int r = 0;",
"int r = 0;",
"r",
"0",
"r < m",
"r",
"m",
"r++",
"r++",
"r",
"{\n\t\t\t\t\ts = s + a[p][r] * b[r][q];\n\t\t\t\t\tc[p][q] = s;\n\t\t\t\t}",
"{\n\t\t\t\t\ts = s + a[p][r] * b[r][q];\n\t\t\t\t\tc[p][q] = s;\n\t\t\t\t}",
"s = s + a[p][r] * b[r][q]",
"s",
"s + a[p][r] * b[r][q]",
"s",
"a[p][r] * b[r][q]",
"a[p][r]",
"a[p]",
"a",
"p",
"r",
"b[r][q]",
"b[r]",
"b",
"r",
"q",
"c[p][q] = s",
"c[p][q]",
"c[p]",
"c",
"p",
"q",
"s",
"for(int s = 0; s < n; s++){\n\t\t\tfor(int t = 0; t < l; t++){\n\t\t\t\tSystem.out.print(c[s][t]);\n\t\t\t\tif(t != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"int s = 0;",
"int s = 0;",
"s",
"0",
"s < n",
"s",
"n",
"s++",
"s++",
"s",
"{\n\t\t\tfor(int t = 0; t < l; t++){\n\t\t\t\tSystem.out.print(c[s][t]);\n\t\t\t\tif(t != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor(int t = 0; t < l; t++){\n\t\t\t\tSystem.out.print(c[s][t]);\n\t\t\t\tif(t != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for(int t = 0; t < l; t++){\n\t\t\t\tSystem.out.print(c[s][t]);\n\t\t\t\tif(t != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"int t = 0;",
"int t = 0;",
"t",
"0",
"t < l",
"t",
"l",
"t++",
"t++",
"t",
"{\n\t\t\t\tSystem.out.print(c[s][t]);\n\t\t\t\tif(t != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(c[s][t]);\n\t\t\t\tif(t != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"System.out.print(c[s][t])",
"System.out.print",
"System.out",
"System",
"System.out",
"c[s][t]",
"c[s]",
"c",
"s",
"t",
"if(t != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"t != l - 1",
"t",
"l - 1",
"l",
"1",
"{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\t\n\t\tlong a[][] = new long[n][m];\n\t\tlong b[][] = new long[m][l];\n\t\tlong c[][] = new long[n][l];\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.nextLong();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int h = 0; h < m; h++){\n\t\t\tfor(int k = 0; k < l; k++){\n\t\t\t\tb[h][k] = scan.nextLong();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int p = 0; p < n; p++){\n\t\t\tfor(int q = 0; q < l; q++){\n\t\t\t\tlong s = 0;\n\t\t\t\tfor(int r = 0; r < m; r++){\n\t\t\t\t\ts = s + a[p][r] * b[r][q];\n\t\t\t\t\tc[p][q] = s;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int s = 0; s < n; s++){\n\t\t\tfor(int t = 0; t < l; t++){\n\t\t\t\tSystem.out.print(c[s][t]);\n\t\t\t\tif(t != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\t\n\t\tlong a[][] = new long[n][m];\n\t\tlong b[][] = new long[m][l];\n\t\tlong c[][] = new long[n][l];\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.nextLong();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int h = 0; h < m; h++){\n\t\t\tfor(int k = 0; k < l; k++){\n\t\t\t\tb[h][k] = scan.nextLong();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int p = 0; p < n; p++){\n\t\t\tfor(int q = 0; q < l; q++){\n\t\t\t\tlong s = 0;\n\t\t\t\tfor(int r = 0; r < m; r++){\n\t\t\t\t\ts = s + a[p][r] * b[r][q];\n\t\t\t\t\tc[p][q] = s;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int s = 0; s < n; s++){\n\t\t\tfor(int t = 0; t < l; t++){\n\t\t\t\tSystem.out.print(c[s][t]);\n\t\t\t\tif(t != l - 1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int m = scan.nextInt();
int l = scan.nextInt();
long a[][] = new long[n][m];
long b[][] = new long[m][l];
long c[][] = new long[n][l];
for(int i = 0; i < n; i++){
for(int j = 0; j < m; j++){
a[i][j] = scan.nextLong();
}
}
for(int h = 0; h < m; h++){
for(int k = 0; k < l; k++){
b[h][k] = scan.nextLong();
}
}
for(int p = 0; p < n; p++){
for(int q = 0; q < l; q++){
long s = 0;
for(int r = 0; r < m; r++){
s = s + a[p][r] * b[r][q];
c[p][q] = s;
}
}
}
for(int s = 0; s < n; s++){
for(int t = 0; t < l; t++){
System.out.print(c[s][t]);
if(t != l - 1){
System.out.print(" ");
}
}
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,
4,
18,
13,
41,
13,
20,
13,
13,
41,
13,
20,
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,
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,
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,
4,
18,
18,
13,
13,
13,
14,
2,
2,
13,
17,
13,
4,
18,
18,
13,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
192,
5
],
[
192,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
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
],
[
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
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
141,
142
],
[
141,
143
],
[
136,
144
],
[
144,
145
],
[
145,
146
],
[
136,
147
],
[
148,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
151,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
135,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
135,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
168,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
174,
179
],
[
135,
180
],
[
180,
181
],
[
180,
182
],
[
122,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
183,
188
],
[
6,
189
],
[
189,
190
],
[
0,
191
],
[
191,
192
],
[
191,
193
]
] | [
"import java.util.Scanner;\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int m = scan.nextInt();\n int n = scan.nextInt();\n int l = scan.nextInt();\n int[][] data = new int[m][n];\n int[][] datac = new int[n][l];\n long sum = 0;\n for(int i = 0 ; i < m ; i++){\n for(int j = 0 ; j < n ; j++){\n data[i][j]=scan.nextInt();\n }\n }\n for(int i = 0 ; i < n; i ++){\n for(int j = 0 ; j < l ; j++){\n datac[i][j]=scan.nextInt();\n }\n }\n for(int i = 0 ; i < m ; i++){\n for(int k = 0 ; k < l ; k++){\n for(int j = 0 ; j <n; j++){\n sum+=data[i][j]*datac[j][k];\n }\n System.out.print(sum);\n if(k+1<l) System.out.print(\" \");\n sum=0;\n }\n System.out.println(\"\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int m = scan.nextInt();\n int n = scan.nextInt();\n int l = scan.nextInt();\n int[][] data = new int[m][n];\n int[][] datac = new int[n][l];\n long sum = 0;\n for(int i = 0 ; i < m ; i++){\n for(int j = 0 ; j < n ; j++){\n data[i][j]=scan.nextInt();\n }\n }\n for(int i = 0 ; i < n; i ++){\n for(int j = 0 ; j < l ; j++){\n datac[i][j]=scan.nextInt();\n }\n }\n for(int i = 0 ; i < m ; i++){\n for(int k = 0 ; k < l ; k++){\n for(int j = 0 ; j <n; j++){\n sum+=data[i][j]*datac[j][k];\n }\n System.out.print(sum);\n if(k+1<l) System.out.print(\" \");\n sum=0;\n }\n System.out.println(\"\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int m = scan.nextInt();\n int n = scan.nextInt();\n int l = scan.nextInt();\n int[][] data = new int[m][n];\n int[][] datac = new int[n][l];\n long sum = 0;\n for(int i = 0 ; i < m ; i++){\n for(int j = 0 ; j < n ; j++){\n data[i][j]=scan.nextInt();\n }\n }\n for(int i = 0 ; i < n; i ++){\n for(int j = 0 ; j < l ; j++){\n datac[i][j]=scan.nextInt();\n }\n }\n for(int i = 0 ; i < m ; i++){\n for(int k = 0 ; k < l ; k++){\n for(int j = 0 ; j <n; j++){\n sum+=data[i][j]*datac[j][k];\n }\n System.out.print(sum);\n if(k+1<l) System.out.print(\" \");\n sum=0;\n }\n System.out.println(\"\");\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int m = scan.nextInt();\n int n = scan.nextInt();\n int l = scan.nextInt();\n int[][] data = new int[m][n];\n int[][] datac = new int[n][l];\n long sum = 0;\n for(int i = 0 ; i < m ; i++){\n for(int j = 0 ; j < n ; j++){\n data[i][j]=scan.nextInt();\n }\n }\n for(int i = 0 ; i < n; i ++){\n for(int j = 0 ; j < l ; j++){\n datac[i][j]=scan.nextInt();\n }\n }\n for(int i = 0 ; i < m ; i++){\n for(int k = 0 ; k < l ; k++){\n for(int j = 0 ; j <n; j++){\n sum+=data[i][j]*datac[j][k];\n }\n System.out.print(sum);\n if(k+1<l) System.out.print(\" \");\n sum=0;\n }\n System.out.println(\"\");\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int l = scan.nextInt();",
"l",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[][] data = new int[m][n];",
"data",
"new int[m][n]",
"m",
"n",
"int[][] datac = new int[n][l];",
"datac",
"new int[n][l]",
"n",
"l",
"long sum = 0;",
"sum",
"0",
"for(int i = 0 ; i < m ; i++){\n for(int j = 0 ; j < n ; j++){\n data[i][j]=scan.nextInt();\n }\n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n for(int j = 0 ; j < n ; j++){\n data[i][j]=scan.nextInt();\n }\n }",
"{\n for(int j = 0 ; j < n ; j++){\n data[i][j]=scan.nextInt();\n }\n }",
"for(int j = 0 ; j < n ; j++){\n data[i][j]=scan.nextInt();\n }",
"int j = 0 ;",
"int j = 0 ;",
"j",
"0",
"j < n",
"j",
"n",
"j++",
"j++",
"j",
"{\n data[i][j]=scan.nextInt();\n }",
"{\n data[i][j]=scan.nextInt();\n }",
"data[i][j]=scan.nextInt()",
"data[i][j]",
"data[i]",
"data",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 0 ; i < n; i ++){\n for(int j = 0 ; j < l ; j++){\n datac[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 < l ; j++){\n datac[i][j]=scan.nextInt();\n }\n }",
"{\n for(int j = 0 ; j < l ; j++){\n datac[i][j]=scan.nextInt();\n }\n }",
"for(int j = 0 ; j < l ; j++){\n datac[i][j]=scan.nextInt();\n }",
"int j = 0 ;",
"int j = 0 ;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n datac[i][j]=scan.nextInt();\n }",
"{\n datac[i][j]=scan.nextInt();\n }",
"datac[i][j]=scan.nextInt()",
"datac[i][j]",
"datac[i]",
"datac",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 0 ; i < m ; i++){\n for(int k = 0 ; k < l ; k++){\n for(int j = 0 ; j <n; j++){\n sum+=data[i][j]*datac[j][k];\n }\n System.out.print(sum);\n if(k+1<l) System.out.print(\" \");\n sum=0;\n }\n System.out.println(\"\");\n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n for(int k = 0 ; k < l ; k++){\n for(int j = 0 ; j <n; j++){\n sum+=data[i][j]*datac[j][k];\n }\n System.out.print(sum);\n if(k+1<l) System.out.print(\" \");\n sum=0;\n }\n System.out.println(\"\");\n }",
"{\n for(int k = 0 ; k < l ; k++){\n for(int j = 0 ; j <n; j++){\n sum+=data[i][j]*datac[j][k];\n }\n System.out.print(sum);\n if(k+1<l) System.out.print(\" \");\n sum=0;\n }\n System.out.println(\"\");\n }",
"for(int k = 0 ; k < l ; k++){\n for(int j = 0 ; j <n; j++){\n sum+=data[i][j]*datac[j][k];\n }\n System.out.print(sum);\n if(k+1<l) System.out.print(\" \");\n sum=0;\n }",
"int k = 0 ;",
"int k = 0 ;",
"k",
"0",
"k < l",
"k",
"l",
"k++",
"k++",
"k",
"{\n for(int j = 0 ; j <n; j++){\n sum+=data[i][j]*datac[j][k];\n }\n System.out.print(sum);\n if(k+1<l) System.out.print(\" \");\n sum=0;\n }",
"{\n for(int j = 0 ; j <n; j++){\n sum+=data[i][j]*datac[j][k];\n }\n System.out.print(sum);\n if(k+1<l) System.out.print(\" \");\n sum=0;\n }",
"for(int j = 0 ; j <n; j++){\n sum+=data[i][j]*datac[j][k];\n }",
"int j = 0 ;",
"int j = 0 ;",
"j",
"0",
"j <n",
"j",
"n",
"j++",
"j++",
"j",
"{\n sum+=data[i][j]*datac[j][k];\n }",
"{\n sum+=data[i][j]*datac[j][k];\n }",
"sum+=data[i][j]*datac[j][k]",
"sum",
"data[i][j]*datac[j][k]",
"data[i][j]",
"data[i]",
"data",
"i",
"j",
"datac[j][k]",
"datac[j]",
"datac",
"j",
"k",
"System.out.print(sum)",
"System.out.print",
"System.out",
"System",
"System.out",
"sum",
"if(k+1<l) System.out.print(\" \");",
"k+1<l",
"k+1",
"k",
"1",
"l",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"sum=0",
"sum",
"0",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int m = scan.nextInt();\n int n = scan.nextInt();\n int l = scan.nextInt();\n int[][] data = new int[m][n];\n int[][] datac = new int[n][l];\n long sum = 0;\n for(int i = 0 ; i < m ; i++){\n for(int j = 0 ; j < n ; j++){\n data[i][j]=scan.nextInt();\n }\n }\n for(int i = 0 ; i < n; i ++){\n for(int j = 0 ; j < l ; j++){\n datac[i][j]=scan.nextInt();\n }\n }\n for(int i = 0 ; i < m ; i++){\n for(int k = 0 ; k < l ; k++){\n for(int j = 0 ; j <n; j++){\n sum+=data[i][j]*datac[j][k];\n }\n System.out.print(sum);\n if(k+1<l) System.out.print(\" \");\n sum=0;\n }\n System.out.println(\"\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int m = scan.nextInt();\n int n = scan.nextInt();\n int l = scan.nextInt();\n int[][] data = new int[m][n];\n int[][] datac = new int[n][l];\n long sum = 0;\n for(int i = 0 ; i < m ; i++){\n for(int j = 0 ; j < n ; j++){\n data[i][j]=scan.nextInt();\n }\n }\n for(int i = 0 ; i < n; i ++){\n for(int j = 0 ; j < l ; j++){\n datac[i][j]=scan.nextInt();\n }\n }\n for(int i = 0 ; i < m ; i++){\n for(int k = 0 ; k < l ; k++){\n for(int j = 0 ; j <n; j++){\n sum+=data[i][j]*datac[j][k];\n }\n System.out.print(sum);\n if(k+1<l) System.out.print(\" \");\n sum=0;\n }\n System.out.println(\"\");\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int m = scan.nextInt();
int n = scan.nextInt();
int l = scan.nextInt();
int[][] data = new int[m][n];
int[][] datac = new int[n][l];
long sum = 0;
for(int i = 0 ; i < m ; i++){
for(int j = 0 ; j < n ; j++){
data[i][j]=scan.nextInt();
}
}
for(int i = 0 ; i < n; i ++){
for(int j = 0 ; j < l ; j++){
datac[i][j]=scan.nextInt();
}
}
for(int i = 0 ; i < m ; i++){
for(int k = 0 ; k < l ; k++){
for(int j = 0 ; j <n; j++){
sum+=data[i][j]*datac[j][k];
}
System.out.print(sum);
if(k+1<l) System.out.print(" ");
sum=0;
}
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,
4,
18,
13,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
198,
5
],
[
198,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
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
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
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
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
112,
120
],
[
120,
121
],
[
121,
122
],
[
112,
123
],
[
124,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
125,
136
],
[
137,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
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
],
[
137,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
173,
177
],
[
137,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
181,
183
],
[
178,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
184,
189
],
[
178,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
6,
195
],
[
195,
196
],
[
0,
197
],
[
197,
198
],
[
197,
199
]
] | [
"import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //ArrayList<Integer> A = new ArrayList<Integer>();\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n int[][] A = new int[n][m];\n int[][] B = new int[m][l];\n long[][] C = new long[n][l];\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 for (int j=0; j<l; j++) {\n B[i][j] = sc.nextInt();\n }\n }\n\n for (int i=0; i<n; i++) {\n for (int j=0; j<l; j++) {\n for (int k=0; k<m ; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n System.out.print(C[i][j]);\n if (j != l-1)\n System.out.print(\" \");\n else\n System.out.println();\n }\n }\n\n\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //ArrayList<Integer> A = new ArrayList<Integer>();\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n int[][] A = new int[n][m];\n int[][] B = new int[m][l];\n long[][] C = new long[n][l];\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 for (int j=0; j<l; j++) {\n B[i][j] = sc.nextInt();\n }\n }\n\n for (int i=0; i<n; i++) {\n for (int j=0; j<l; j++) {\n for (int k=0; k<m ; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n System.out.print(C[i][j]);\n if (j != l-1)\n System.out.print(\" \");\n else\n System.out.println();\n }\n }\n\n\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //ArrayList<Integer> A = new ArrayList<Integer>();\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n int[][] A = new int[n][m];\n int[][] B = new int[m][l];\n long[][] C = new long[n][l];\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 for (int j=0; j<l; j++) {\n B[i][j] = sc.nextInt();\n }\n }\n\n for (int i=0; i<n; i++) {\n for (int j=0; j<l; j++) {\n for (int k=0; k<m ; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n System.out.print(C[i][j]);\n if (j != l-1)\n System.out.print(\" \");\n else\n System.out.println();\n }\n }\n\n\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n //ArrayList<Integer> A = new ArrayList<Integer>();\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n int[][] A = new int[n][m];\n int[][] B = new int[m][l];\n long[][] C = new long[n][l];\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 for (int j=0; j<l; j++) {\n B[i][j] = sc.nextInt();\n }\n }\n\n for (int i=0; i<n; i++) {\n for (int j=0; j<l; j++) {\n for (int k=0; k<m ; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n System.out.print(C[i][j]);\n if (j != l-1)\n System.out.print(\" \");\n else\n System.out.println();\n }\n }\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 l = sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] A = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int[][] B = new int[m][l];",
"B",
"new int[m][l]",
"m",
"l",
"long[][] C = new long[n][l];",
"C",
"new long[n][l]",
"n",
"l",
"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 for (int j=0; j<l; j++) {\n B[i][j] = sc.nextInt();\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n for (int j=0; j<l; j++) {\n B[i][j] = sc.nextInt();\n }\n }",
"{\n for (int j=0; j<l; j++) {\n B[i][j] = sc.nextInt();\n }\n }",
"for (int j=0; j<l; j++) {\n B[i][j] = sc.nextInt();\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n B[i][j] = sc.nextInt();\n }",
"{\n B[i][j] = sc.nextInt();\n }",
"B[i][j] = sc.nextInt()",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i=0; i<n; i++) {\n for (int j=0; j<l; j++) {\n for (int k=0; k<m ; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n System.out.print(C[i][j]);\n if (j != l-1)\n System.out.print(\" \");\n else\n System.out.println();\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j=0; j<l; j++) {\n for (int k=0; k<m ; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n System.out.print(C[i][j]);\n if (j != l-1)\n System.out.print(\" \");\n else\n System.out.println();\n }\n }",
"{\n for (int j=0; j<l; j++) {\n for (int k=0; k<m ; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n System.out.print(C[i][j]);\n if (j != l-1)\n System.out.print(\" \");\n else\n System.out.println();\n }\n }",
"for (int j=0; j<l; j++) {\n for (int k=0; k<m ; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n System.out.print(C[i][j]);\n if (j != l-1)\n System.out.print(\" \");\n else\n System.out.println();\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n for (int k=0; k<m ; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n System.out.print(C[i][j]);\n if (j != l-1)\n System.out.print(\" \");\n else\n System.out.println();\n }",
"{\n for (int k=0; k<m ; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n System.out.print(C[i][j]);\n if (j != l-1)\n System.out.print(\" \");\n else\n System.out.println();\n }",
"for (int k=0; k<m ; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }",
"int k=0;",
"int k=0;",
"k",
"0",
"k<m",
"k",
"m",
"k++",
"k++",
"k",
"{\n C[i][j] += A[i][k] * B[k][j];\n }",
"{\n C[i][j] += A[i][k] * B[k][j];\n }",
"C[i][j] += A[i][k] * B[k][j]",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"A[i][k] * B[k][j]",
"A[i][k]",
"A[i]",
"A",
"i",
"k",
"B[k][j]",
"B[k]",
"B",
"k",
"j",
"System.out.print(C[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"if (j != l-1)\n System.out.print(\" \");\n else\n System.out.println();",
"j != l-1",
"j",
"l-1",
"l",
"1",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //ArrayList<Integer> A = new ArrayList<Integer>();\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n int[][] A = new int[n][m];\n int[][] B = new int[m][l];\n long[][] C = new long[n][l];\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 for (int j=0; j<l; j++) {\n B[i][j] = sc.nextInt();\n }\n }\n\n for (int i=0; i<n; i++) {\n for (int j=0; j<l; j++) {\n for (int k=0; k<m ; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n System.out.print(C[i][j]);\n if (j != l-1)\n System.out.print(\" \");\n else\n System.out.println();\n }\n }\n\n\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //ArrayList<Integer> A = new ArrayList<Integer>();\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n int[][] A = new int[n][m];\n int[][] B = new int[m][l];\n long[][] C = new long[n][l];\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 for (int j=0; j<l; j++) {\n B[i][j] = sc.nextInt();\n }\n }\n\n for (int i=0; i<n; i++) {\n for (int j=0; j<l; j++) {\n for (int k=0; k<m ; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n System.out.print(C[i][j]);\n if (j != l-1)\n System.out.print(\" \");\n else\n System.out.println();\n }\n }\n\n\n\n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
//ArrayList<Integer> A = new ArrayList<Integer>();
int n = sc.nextInt();
int m = sc.nextInt();
int l = sc.nextInt();
int[][] A = new int[n][m];
int[][] B = new int[m][l];
long[][] C = new long[n][l];
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++) {
for (int j=0; j<l; j++) {
B[i][j] = sc.nextInt();
}
}
for (int i=0; i<n; i++) {
for (int j=0; j<l; j++) {
for (int k=0; k<m ; k++) {
C[i][j] += A[i][k] * B[k][j];
}
System.out.print(C[i][j]);
if (j != l-1)
System.out.print(" ");
else
System.out.println();
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
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,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
20,
13,
13,
0,
13,
20,
13,
13,
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,
13,
13,
4,
13,
4,
18,
4,
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,
4,
18,
18,
13,
13,
4,
13,
13,
13,
14,
2,
13,
2,
13,
17,
30,
3,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
23,
13,
12,
13,
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,
29,
13,
23,
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
],
[
253,
11
],
[
253,
12
],
[
12,
13
],
[
253,
14
],
[
14,
15
],
[
253,
16
],
[
16,
17
],
[
253,
18
],
[
18,
19
],
[
253,
20
],
[
20,
21
],
[
253,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
30,
35
],
[
24,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
41,
43
],
[
24,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
49,
51
],
[
24,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
57,
59
],
[
24,
60
],
[
60,
61
],
[
60,
62
],
[
24,
65
],
[
65,
66
],
[
65,
67
],
[
24,
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
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
89,
94
],
[
24,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
95,
103
],
[
103,
104
],
[
104,
105
],
[
95,
106
],
[
107,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
114,
119
],
[
24,
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
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
138,
139
],
[
138,
140
],
[
133,
141
],
[
141,
142
],
[
142,
143
],
[
133,
144
],
[
145,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
146,
151
],
[
151,
152
],
[
151,
153
],
[
151,
154
],
[
145,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
158,
160
],
[
155,
161
],
[
161,
162
],
[
145,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
132,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
22,
174
],
[
174,
175
],
[
253,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
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
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
202
],
[
197,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
203,
207
],
[
178,
208
],
[
208,
209
],
[
176,
210
],
[
210,
211
],
[
176,
212
],
[
212,
213
],
[
253,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
220,
221
],
[
220,
222
],
[
216,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
223,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
230,
232
],
[
223,
233
],
[
233,
234
],
[
234,
235
],
[
223,
236
],
[
237,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
238,
242
],
[
242,
243
],
[
243,
244
],
[
242,
245
],
[
245,
246
],
[
245,
247
],
[
216,
248
],
[
248,
249
],
[
214,
250
],
[
250,
251
],
[
0,
252
],
[
252,
253
],
[
252,
254
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\t\n\tprivate static int n, m, l;\n\tprivate static long[][] a, b;\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strArr = br.readLine().split(\" \");\n\t\tn = Integer.parseInt(strArr[0]);\n\t\tm = Integer.parseInt(strArr[1]);\n\t\tl = Integer.parseInt(strArr[2]);\n\t\t\n\t\ta = new long[n][m];\n\t\tb = new long[m][l];\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\ta[i] = toLongArray(br.readLine().split(\" \"));\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tb[i] = toLongArray(br.readLine().split(\" \"));\n\t\t}\n\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\tSystem.out.print(get(i, j));\n\t\t\t\tif(j == l - 1){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\t\n\tprivate static long get(int r, int c){\n\t\tlong sum = 0;\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tsum += a[r][i] * b[i][c];\n\t\t}\n\t\treturn sum;\n\t}\n\t\n\tprivate static long[] toLongArray(String[] strArray){\n\t\tlong[] arr = new long[strArray.length];\n\t\tfor(int i = 0;i < arr.length;i++){\n\t\t\tarr[i] = Long.parseLong(strArray[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",
"public class Main {\n\t\n\tprivate static int n, m, l;\n\tprivate static long[][] a, b;\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strArr = br.readLine().split(\" \");\n\t\tn = Integer.parseInt(strArr[0]);\n\t\tm = Integer.parseInt(strArr[1]);\n\t\tl = Integer.parseInt(strArr[2]);\n\t\t\n\t\ta = new long[n][m];\n\t\tb = new long[m][l];\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\ta[i] = toLongArray(br.readLine().split(\" \"));\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tb[i] = toLongArray(br.readLine().split(\" \"));\n\t\t}\n\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\tSystem.out.print(get(i, j));\n\t\t\t\tif(j == l - 1){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\t\n\tprivate static long get(int r, int c){\n\t\tlong sum = 0;\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tsum += a[r][i] * b[i][c];\n\t\t}\n\t\treturn sum;\n\t}\n\t\n\tprivate static long[] toLongArray(String[] strArray){\n\t\tlong[] arr = new long[strArray.length];\n\t\tfor(int i = 0;i < arr.length;i++){\n\t\t\tarr[i] = Long.parseLong(strArray[i]);\n\t\t}\n\t\treturn arr;\n\t}\n}",
"Main",
"private static int n",
"n",
"m",
"m",
"l;",
"l",
"private static long[][] a",
"a",
"b;",
"b",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strArr = br.readLine().split(\" \");\n\t\tn = Integer.parseInt(strArr[0]);\n\t\tm = Integer.parseInt(strArr[1]);\n\t\tl = Integer.parseInt(strArr[2]);\n\t\t\n\t\ta = new long[n][m];\n\t\tb = new long[m][l];\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\ta[i] = toLongArray(br.readLine().split(\" \"));\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tb[i] = toLongArray(br.readLine().split(\" \"));\n\t\t}\n\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\tSystem.out.print(get(i, j));\n\t\t\t\tif(j == l - 1){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \");\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\tString[] strArr = br.readLine().split(\" \");\n\t\tn = Integer.parseInt(strArr[0]);\n\t\tm = Integer.parseInt(strArr[1]);\n\t\tl = Integer.parseInt(strArr[2]);\n\t\t\n\t\ta = new long[n][m];\n\t\tb = new long[m][l];\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\ta[i] = toLongArray(br.readLine().split(\" \"));\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tb[i] = toLongArray(br.readLine().split(\" \"));\n\t\t}\n\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\tSystem.out.print(get(i, j));\n\t\t\t\tif(j == l - 1){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \");\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))",
"String[] strArr = br.readLine().split(\" \");",
"strArr",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"n = Integer.parseInt(strArr[0])",
"n",
"Integer.parseInt(strArr[0])",
"Integer.parseInt",
"Integer",
"strArr[0]",
"strArr",
"0",
"m = Integer.parseInt(strArr[1])",
"m",
"Integer.parseInt(strArr[1])",
"Integer.parseInt",
"Integer",
"strArr[1]",
"strArr",
"1",
"l = Integer.parseInt(strArr[2])",
"l",
"Integer.parseInt(strArr[2])",
"Integer.parseInt",
"Integer",
"strArr[2]",
"strArr",
"2",
"a = new long[n][m]",
"a",
"new long[n][m]",
"n",
"m",
"b = new long[m][l]",
"b",
"new long[m][l]",
"m",
"l",
"for(int i = 0;i < n;i++){\n\t\t\ta[i] = toLongArray(br.readLine().split(\" \"));\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ta[i] = toLongArray(br.readLine().split(\" \"));\n\t\t}",
"{\n\t\t\ta[i] = toLongArray(br.readLine().split(\" \"));\n\t\t}",
"a[i] = toLongArray(br.readLine().split(\" \"))",
"a[i]",
"a",
"i",
"toLongArray(br.readLine().split(\" \"))",
"toLongArray",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(int i = 0;i < m;i++){\n\t\t\tb[i] = toLongArray(br.readLine().split(\" \"));\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tb[i] = toLongArray(br.readLine().split(\" \"));\n\t\t}",
"{\n\t\t\tb[i] = toLongArray(br.readLine().split(\" \"));\n\t\t}",
"b[i] = toLongArray(br.readLine().split(\" \"))",
"b[i]",
"b",
"i",
"toLongArray(br.readLine().split(\" \"))",
"toLongArray",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(int i = 0;i < n;i++){\n\t\t\tfor(int j = 0;j < l;j++){\n\t\t\t\tSystem.out.print(get(i, j));\n\t\t\t\tif(j == l - 1){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\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\tSystem.out.print(get(i, j));\n\t\t\t\tif(j == l - 1){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor(int j = 0;j < l;j++){\n\t\t\t\tSystem.out.print(get(i, j));\n\t\t\t\tif(j == l - 1){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for(int j = 0;j < l;j++){\n\t\t\t\tSystem.out.print(get(i, j));\n\t\t\t\tif(j == l - 1){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(get(i, j));\n\t\t\t\tif(j == l - 1){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(get(i, j));\n\t\t\t\tif(j == l - 1){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}",
"System.out.print(get(i, j))",
"System.out.print",
"System.out",
"System",
"System.out",
"get(i, j)",
"get",
"i",
"j",
"if(j == l - 1){\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"j == l - 1",
"j",
"l - 1",
"l",
"1",
"{\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"break;",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"private static long get(int r, int c){\n\t\tlong sum = 0;\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tsum += a[r][i] * b[i][c];\n\t\t}\n\t\treturn sum;\n\t}",
"get",
"{\n\t\tlong sum = 0;\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tsum += a[r][i] * b[i][c];\n\t\t}\n\t\treturn sum;\n\t}",
"long sum = 0;",
"sum",
"0",
"for(int i = 0;i < m;i++){\n\t\t\tsum += a[r][i] * b[i][c];\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tsum += a[r][i] * b[i][c];\n\t\t}",
"{\n\t\t\tsum += a[r][i] * b[i][c];\n\t\t}",
"sum += a[r][i] * b[i][c]",
"sum",
"a[r][i] * b[i][c]",
"a[r][i]",
"a[r]",
"a",
"r",
"i",
"b[i][c]",
"b[i]",
"b",
"i",
"c",
"return sum;",
"sum",
"int r",
"r",
"int c",
"c",
"private static long[] toLongArray(String[] strArray){\n\t\tlong[] arr = new long[strArray.length];\n\t\tfor(int i = 0;i < arr.length;i++){\n\t\t\tarr[i] = Long.parseLong(strArray[i]);\n\t\t}\n\t\treturn arr;\n\t}",
"toLongArray",
"{\n\t\tlong[] arr = new long[strArray.length];\n\t\tfor(int i = 0;i < arr.length;i++){\n\t\t\tarr[i] = Long.parseLong(strArray[i]);\n\t\t}\n\t\treturn arr;\n\t}",
"long[] arr = new long[strArray.length];",
"arr",
"new long[strArray.length]",
"strArray.length",
"strArray",
"strArray.length",
"for(int i = 0;i < arr.length;i++){\n\t\t\tarr[i] = Long.parseLong(strArray[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] = Long.parseLong(strArray[i]);\n\t\t}",
"{\n\t\t\tarr[i] = Long.parseLong(strArray[i]);\n\t\t}",
"arr[i] = Long.parseLong(strArray[i])",
"arr[i]",
"arr",
"i",
"Long.parseLong(strArray[i])",
"Long.parseLong",
"Long",
"strArray[i]",
"strArray",
"i",
"return arr;",
"arr",
"String[] strArray",
"strArray",
"public class Main {\n\t\n\tprivate static int n, m, l;\n\tprivate static long[][] a, b;\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strArr = br.readLine().split(\" \");\n\t\tn = Integer.parseInt(strArr[0]);\n\t\tm = Integer.parseInt(strArr[1]);\n\t\tl = Integer.parseInt(strArr[2]);\n\t\t\n\t\ta = new long[n][m];\n\t\tb = new long[m][l];\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\ta[i] = toLongArray(br.readLine().split(\" \"));\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tb[i] = toLongArray(br.readLine().split(\" \"));\n\t\t}\n\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\tSystem.out.print(get(i, j));\n\t\t\t\tif(j == l - 1){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\t\n\tprivate static long get(int r, int c){\n\t\tlong sum = 0;\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tsum += a[r][i] * b[i][c];\n\t\t}\n\t\treturn sum;\n\t}\n\t\n\tprivate static long[] toLongArray(String[] strArray){\n\t\tlong[] arr = new long[strArray.length];\n\t\tfor(int i = 0;i < arr.length;i++){\n\t\t\tarr[i] = Long.parseLong(strArray[i]);\n\t\t}\n\t\treturn arr;\n\t}\n}",
"public class Main {\n\t\n\tprivate static int n, m, l;\n\tprivate static long[][] a, b;\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strArr = br.readLine().split(\" \");\n\t\tn = Integer.parseInt(strArr[0]);\n\t\tm = Integer.parseInt(strArr[1]);\n\t\tl = Integer.parseInt(strArr[2]);\n\t\t\n\t\ta = new long[n][m];\n\t\tb = new long[m][l];\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\ta[i] = toLongArray(br.readLine().split(\" \"));\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tb[i] = toLongArray(br.readLine().split(\" \"));\n\t\t}\n\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\tSystem.out.print(get(i, j));\n\t\t\t\tif(j == l - 1){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\t\n\tprivate static long get(int r, int c){\n\t\tlong sum = 0;\n\t\tfor(int i = 0;i < m;i++){\n\t\t\tsum += a[r][i] * b[i][c];\n\t\t}\n\t\treturn sum;\n\t}\n\t\n\tprivate static long[] toLongArray(String[] strArray){\n\t\tlong[] arr = new long[strArray.length];\n\t\tfor(int i = 0;i < arr.length;i++){\n\t\t\tarr[i] = Long.parseLong(strArray[i]);\n\t\t}\n\t\treturn arr;\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
private static int n, m, l;
private static long[][] a, b;
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] strArr = br.readLine().split(" ");
n = Integer.parseInt(strArr[0]);
m = Integer.parseInt(strArr[1]);
l = Integer.parseInt(strArr[2]);
a = new long[n][m];
b = new long[m][l];
for(int i = 0;i < n;i++){
a[i] = toLongArray(br.readLine().split(" "));
}
for(int i = 0;i < m;i++){
b[i] = toLongArray(br.readLine().split(" "));
}
for(int i = 0;i < n;i++){
for(int j = 0;j < l;j++){
System.out.print(get(i, j));
if(j == l - 1){
break;
}
System.out.print(" ");
}
System.out.println();
}
}
private static long get(int r, int c){
long sum = 0;
for(int i = 0;i < m;i++){
sum += a[r][i] * b[i][c];
}
return sum;
}
private static long[] toLongArray(String[] strArray){
long[] arr = new long[strArray.length];
for(int i = 0;i < arr.length;i++){
arr[i] = Long.parseLong(strArray[i]);
}
return arr;
}
} |
[
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,
18,
13,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
17,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
201,
5
],
[
201,
6
],
[
6,
7
],
[
6,
8
],
[
201,
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
],
[
25,
26
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
11,
32
],
[
32,
33
],
[
32,
34
],
[
11,
37
],
[
37,
38
],
[
37,
39
],
[
11,
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
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
11,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
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
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
11,
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
],
[
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
],
[
137,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
171,
173
],
[
168,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
175,
180
],
[
175,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
168,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
187,
192
],
[
187,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
193,
197
],
[
9,
198
],
[
198,
199
],
[
0,
200
],
[
200,
201
],
[
200,
202
]
] | [
"import java.util.*;\n\npublic class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong[][] C = 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\tA[i][j] = scan.nextInt();\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\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tC[i][j] += (long) A[i][k] * (long) B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j != l -1){\n\t\t\t\t\tSystem.out.printf(\"%d \", C[i][j]);\n\t\t\t\t} else{\n\t\t\t\t\tSystem.out.printf(\"%d\\n\", C[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong[][] C = 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\tA[i][j] = scan.nextInt();\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\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tC[i][j] += (long) A[i][k] * (long) B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j != l -1){\n\t\t\t\t\tSystem.out.printf(\"%d \", C[i][j]);\n\t\t\t\t} else{\n\t\t\t\t\tSystem.out.printf(\"%d\\n\", C[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"private static final Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"public static void main(String[] args){\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong[][] C = 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\tA[i][j] = scan.nextInt();\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\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tC[i][j] += (long) A[i][k] * (long) B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j != l -1){\n\t\t\t\t\tSystem.out.printf(\"%d \", C[i][j]);\n\t\t\t\t} else{\n\t\t\t\t\tSystem.out.printf(\"%d\\n\", C[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong[][] C = 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\tA[i][j] = scan.nextInt();\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\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tC[i][j] += (long) A[i][k] * (long) B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j != l -1){\n\t\t\t\t\tSystem.out.printf(\"%d \", C[i][j]);\n\t\t\t\t} else{\n\t\t\t\t\tSystem.out.printf(\"%d\\n\", C[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int l = scan.nextInt();",
"l",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[][] A = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int[][] B = new int[m][l];",
"B",
"new int[m][l]",
"m",
"l",
"long[][] C = new long[n][l];",
"C",
"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\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\tfor(int j = 0; j < l; j++){\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0; j < l; j++){\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}",
"B[i][j] = scan.nextInt()",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tC[i][j] += (long) A[i][k] * (long) B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j != l -1){\n\t\t\t\t\tSystem.out.printf(\"%d \", C[i][j]);\n\t\t\t\t} else{\n\t\t\t\t\tSystem.out.printf(\"%d\\n\", C[i][j]);\n\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 < l; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tC[i][j] += (long) A[i][k] * (long) B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j != l -1){\n\t\t\t\t\tSystem.out.printf(\"%d \", C[i][j]);\n\t\t\t\t} else{\n\t\t\t\t\tSystem.out.printf(\"%d\\n\", C[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tC[i][j] += (long) A[i][k] * (long) B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j != l -1){\n\t\t\t\t\tSystem.out.printf(\"%d \", C[i][j]);\n\t\t\t\t} else{\n\t\t\t\t\tSystem.out.printf(\"%d\\n\", C[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int j = 0; j < l; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tC[i][j] += (long) A[i][k] * (long) B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j != l -1){\n\t\t\t\t\tSystem.out.printf(\"%d \", C[i][j]);\n\t\t\t\t} else{\n\t\t\t\t\tSystem.out.printf(\"%d\\n\", C[i][j]);\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tC[i][j] += (long) A[i][k] * (long) B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j != l -1){\n\t\t\t\t\tSystem.out.printf(\"%d \", C[i][j]);\n\t\t\t\t} else{\n\t\t\t\t\tSystem.out.printf(\"%d\\n\", C[i][j]);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tC[i][j] += (long) A[i][k] * (long) B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j != l -1){\n\t\t\t\t\tSystem.out.printf(\"%d \", C[i][j]);\n\t\t\t\t} else{\n\t\t\t\t\tSystem.out.printf(\"%d\\n\", C[i][j]);\n\t\t\t\t}\n\t\t\t}",
"for(int k = 0; k < m; k++){\n\t\t\t\t\tC[i][j] += (long) A[i][k] * (long) B[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\tC[i][j] += (long) A[i][k] * (long) B[k][j];\n\t\t\t\t}",
"{\n\t\t\t\t\tC[i][j] += (long) A[i][k] * (long) B[k][j];\n\t\t\t\t}",
"C[i][j] += (long) A[i][k] * (long) B[k][j]",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"(long) A[i][k] * (long) B[k][j]",
"(long) A[i][k]",
"A[i]",
"A",
"i",
"k",
"(long) B[k][j]",
"B[k]",
"B",
"k",
"j",
"if(j != l -1){\n\t\t\t\t\tSystem.out.printf(\"%d \", C[i][j]);\n\t\t\t\t} else{\n\t\t\t\t\tSystem.out.printf(\"%d\\n\", C[i][j]);\n\t\t\t\t}",
"j != l -1",
"j",
"l -1",
"l",
"1",
"{\n\t\t\t\t\tSystem.out.printf(\"%d \", C[i][j]);\n\t\t\t\t}",
"System.out.printf(\"%d \", C[i][j])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d \"",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"{\n\t\t\t\t\tSystem.out.printf(\"%d\\n\", C[i][j]);\n\t\t\t\t}",
"System.out.printf(\"%d\\n\", C[i][j])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d\\n\"",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"String[] args",
"args",
"public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong[][] C = 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\tA[i][j] = scan.nextInt();\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\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tC[i][j] += (long) A[i][k] * (long) B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j != l -1){\n\t\t\t\t\tSystem.out.printf(\"%d \", C[i][j]);\n\t\t\t\t} else{\n\t\t\t\t\tSystem.out.printf(\"%d\\n\", C[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong[][] C = 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\tA[i][j] = scan.nextInt();\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\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tC[i][j] += (long) A[i][k] * (long) B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j != l -1){\n\t\t\t\t\tSystem.out.printf(\"%d \", C[i][j]);\n\t\t\t\t} else{\n\t\t\t\t\tSystem.out.printf(\"%d\\n\", C[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] | import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in);
public static void main(String[] args){
int n = scan.nextInt();
int m = scan.nextInt();
int l = scan.nextInt();
int[][] A = new int[n][m];
int[][] B = new int[m][l];
long[][] C = new long[n][l];
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++){
for(int j = 0; j < l; j++){
B[i][j] = scan.nextInt();
}
}
for(int i = 0; i < n; i++){
for(int j = 0; j < l; j++){
for(int k = 0; k < m; k++){
C[i][j] += (long) A[i][k] * (long) B[k][j];
}
if(j != l -1){
System.out.printf("%d ", C[i][j]);
} else{
System.out.printf("%d\n", C[i][j]);
}
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
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,
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,
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,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
18,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
4,
18,
13,
17,
18,
18,
13,
13,
13,
4,
18,
13,
17,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
241,
5
],
[
241,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
8,
40
],
[
40,
41
],
[
40,
42
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
58,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
8,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
80,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
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
],
[
107,
111
],
[
106,
112
],
[
112,
113
],
[
113,
114
],
[
8,
115
],
[
115,
116
],
[
115,
117
],
[
8,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
118,
126
],
[
126,
127
],
[
127,
128
],
[
118,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
136,
137
],
[
136,
138
],
[
131,
139
],
[
139,
140
],
[
140,
141
],
[
131,
142
],
[
143,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
144,
149
],
[
149,
150
],
[
149,
151
],
[
144,
152
],
[
152,
153
],
[
153,
154
],
[
144,
155
],
[
156,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
159,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
143,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
170,
176
],
[
143,
177
],
[
177,
178
],
[
177,
179
],
[
8,
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
],
[
193,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
196,
200
],
[
192,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
201,
206
],
[
206,
207
],
[
206,
208
],
[
201,
209
],
[
209,
210
],
[
210,
211
],
[
201,
212
],
[
213,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
216,
219
],
[
214,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
220,
224
],
[
192,
225
],
[
225,
226
],
[
226,
227
],
[
225,
228
],
[
8,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
231,
233
],
[
229,
234
],
[
8,
235
],
[
235,
236
],
[
236,
237
],
[
6,
238
],
[
238,
239
],
[
0,
240
],
[
240,
241
],
[
240,
242
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder output = new StringBuilder();\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong[][] AB = new long[n][l];\n\t\t\n\t\t// A,Bの成分を代入\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\tfor (int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// ABの成分の計算\n\t\tlong sum_ij = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum_ij += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tAB[i][j] = sum_ij;\n\t\t\t\tsum_ij = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 出力\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\toutput.append(AB[i][0]);\n\t\t\tfor (int j = 1; j < l; j++) {\n\t\t\t\toutput.append(\" \").append(AB[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\tSystem.out.print(output);\n\t\tscan.close();\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder output = new StringBuilder();\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong[][] AB = new long[n][l];\n\t\t\n\t\t// A,Bの成分を代入\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\tfor (int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// ABの成分の計算\n\t\tlong sum_ij = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum_ij += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tAB[i][j] = sum_ij;\n\t\t\t\tsum_ij = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 出力\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\toutput.append(AB[i][0]);\n\t\t\tfor (int j = 1; j < l; j++) {\n\t\t\t\toutput.append(\" \").append(AB[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\tSystem.out.print(output);\n\t\tscan.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder output = new StringBuilder();\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong[][] AB = new long[n][l];\n\t\t\n\t\t// A,Bの成分を代入\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\tfor (int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// ABの成分の計算\n\t\tlong sum_ij = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum_ij += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tAB[i][j] = sum_ij;\n\t\t\t\tsum_ij = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 出力\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\toutput.append(AB[i][0]);\n\t\t\tfor (int j = 1; j < l; j++) {\n\t\t\t\toutput.append(\" \").append(AB[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\tSystem.out.print(output);\n\t\tscan.close();\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder output = new StringBuilder();\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong[][] AB = new long[n][l];\n\t\t\n\t\t// A,Bの成分を代入\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\tfor (int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// ABの成分の計算\n\t\tlong sum_ij = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum_ij += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tAB[i][j] = sum_ij;\n\t\t\t\tsum_ij = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 出力\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\toutput.append(AB[i][0]);\n\t\t\tfor (int j = 1; j < l; j++) {\n\t\t\t\toutput.append(\" \").append(AB[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\tSystem.out.print(output);\n\t\tscan.close();\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"StringBuilder output = new StringBuilder();",
"output",
"new StringBuilder()",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int l = scan.nextInt();",
"l",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[][] A = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int[][] B = new int[m][l];",
"B",
"new int[m][l]",
"m",
"l",
"long[][] AB = new long[n][l];",
"AB",
"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\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\tfor (int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"for (int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}",
"B[i][j] = scan.nextInt()",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"long sum_ij = 0;",
"sum_ij",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum_ij += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tAB[i][j] = sum_ij;\n\t\t\t\tsum_ij = 0;\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\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum_ij += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tAB[i][j] = sum_ij;\n\t\t\t\tsum_ij = 0;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum_ij += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tAB[i][j] = sum_ij;\n\t\t\t\tsum_ij = 0;\n\t\t\t}\n\t\t}",
"for (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum_ij += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tAB[i][j] = sum_ij;\n\t\t\t\tsum_ij = 0;\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum_ij += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tAB[i][j] = sum_ij;\n\t\t\t\tsum_ij = 0;\n\t\t\t}",
"{\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum_ij += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tAB[i][j] = sum_ij;\n\t\t\t\tsum_ij = 0;\n\t\t\t}",
"for (int k = 0; k < m; k++) {\n\t\t\t\t\tsum_ij += A[i][k] * B[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\tsum_ij += A[i][k] * B[k][j];\n\t\t\t\t}",
"{\n\t\t\t\t\tsum_ij += A[i][k] * B[k][j];\n\t\t\t\t}",
"sum_ij += A[i][k] * B[k][j]",
"sum_ij",
"A[i][k] * B[k][j]",
"A[i][k]",
"A[i]",
"A",
"i",
"k",
"B[k][j]",
"B[k]",
"B",
"k",
"j",
"AB[i][j] = sum_ij",
"AB[i][j]",
"AB[i]",
"AB",
"i",
"j",
"sum_ij",
"sum_ij = 0",
"sum_ij",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\toutput.append(AB[i][0]);\n\t\t\tfor (int j = 1; j < l; j++) {\n\t\t\t\toutput.append(\" \").append(AB[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\toutput.append(AB[i][0]);\n\t\t\tfor (int j = 1; j < l; j++) {\n\t\t\t\toutput.append(\" \").append(AB[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}",
"{\n\t\t\toutput.append(AB[i][0]);\n\t\t\tfor (int j = 1; j < l; j++) {\n\t\t\t\toutput.append(\" \").append(AB[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}",
"output.append(AB[i][0])",
"output.append",
"output",
"AB[i][0]",
"AB[i]",
"AB",
"i",
"0",
"for (int j = 1; j < l; j++) {\n\t\t\t\toutput.append(\" \").append(AB[i][j]);\n\t\t\t}",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\toutput.append(\" \").append(AB[i][j]);\n\t\t\t}",
"{\n\t\t\t\toutput.append(\" \").append(AB[i][j]);\n\t\t\t}",
"output.append(\" \").append(AB[i][j])",
"output.append(\" \").append",
"output.append(\" \")",
"output.append",
"output",
"\" \"",
"AB[i][j]",
"AB[i]",
"AB",
"i",
"j",
"output.append('\\n')",
"output.append",
"output",
"'\\n'",
"System.out.print(output)",
"System.out.print",
"System.out",
"System",
"System.out",
"output",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder output = new StringBuilder();\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong[][] AB = new long[n][l];\n\t\t\n\t\t// A,Bの成分を代入\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\tfor (int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// ABの成分の計算\n\t\tlong sum_ij = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum_ij += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tAB[i][j] = sum_ij;\n\t\t\t\tsum_ij = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 出力\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\toutput.append(AB[i][0]);\n\t\t\tfor (int j = 1; j < l; j++) {\n\t\t\t\toutput.append(\" \").append(AB[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\tSystem.out.print(output);\n\t\tscan.close();\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder output = new StringBuilder();\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong[][] AB = new long[n][l];\n\t\t\n\t\t// A,Bの成分を代入\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\tfor (int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// ABの成分の計算\n\t\tlong sum_ij = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum_ij += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tAB[i][j] = sum_ij;\n\t\t\t\tsum_ij = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 出力\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\toutput.append(AB[i][0]);\n\t\t\tfor (int j = 1; j < l; j++) {\n\t\t\t\toutput.append(\" \").append(AB[i][j]);\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t}\n\t\tSystem.out.print(output);\n\t\tscan.close();\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
StringBuilder output = new StringBuilder();
int n = scan.nextInt();
int m = scan.nextInt();
int l = scan.nextInt();
int[][] A = new int[n][m];
int[][] B = new int[m][l];
long[][] AB = new long[n][l];
// A,Bの成分を代入
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++) {
for (int j = 0; j < l; j++) {
B[i][j] = scan.nextInt();
}
}
// ABの成分の計算
long sum_ij = 0;
for (int i = 0; i < n; i++) {
for (int j = 0; j < l; j++) {
for (int k = 0; k < m; k++) {
sum_ij += A[i][k] * B[k][j];
}
AB[i][j] = sum_ij;
sum_ij = 0;
}
}
// 出力
for (int i = 0; i < n; i++) {
output.append(AB[i][0]);
for (int j = 1; j < l; j++) {
output.append(" ").append(AB[i][j]);
}
output.append('\n');
}
System.out.print(output);
scan.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
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,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
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,
4,
18,
18,
13,
13,
2,
18,
18,
13,
13,
13,
17,
4,
18,
18,
13,
13,
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
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
8,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
8,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
8,
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
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
61,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
74,
80
],
[
80,
81
],
[
81,
82
],
[
8,
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
],
[
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
],
[
110,
114
],
[
109,
115
],
[
115,
116
],
[
116,
117
],
[
8,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
118,
126
],
[
126,
127
],
[
127,
128
],
[
118,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
136,
137
],
[
136,
138
],
[
131,
139
],
[
139,
140
],
[
140,
141
],
[
131,
142
],
[
143,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
144,
150
],
[
143,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
156,
157
],
[
156,
158
],
[
151,
159
],
[
159,
160
],
[
160,
161
],
[
151,
162
],
[
163,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
164,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
170,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
176,
180
],
[
8,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
181,
186
],
[
186,
187
],
[
186,
188
],
[
181,
189
],
[
189,
190
],
[
190,
191
],
[
181,
192
],
[
193,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
194,
199
],
[
199,
200
],
[
199,
201
],
[
194,
202
],
[
202,
203
],
[
203,
204
],
[
194,
205
],
[
206,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
207,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
213,
217
],
[
212,
218
],
[
193,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
219,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
224,
228
],
[
6,
229
],
[
229,
230
]
] | [
"import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n,m,l;\n\t\tint[][] A=new int[101][101];\n\t\tint[][] B=new int[101][101];\n\t\tlong [][] C=new long[101][101];\n\t\tn=sc.nextInt();\n\t\tm=sc.nextInt();\n\t\tl=sc.nextInt();\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=m;j++){\n\t\t\t\tA[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i=1;i<=m;i++){\n\t\t\tfor(int j=1;j<=l;j++){\n\t\t\t\tB[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=l;j++){\n\t\t\t\tC[i][j]=0;\n\t\t\t\tfor(int k=1;k<=m;k++){\n\t\t\t\t\tC[i][j]+=(A[i][k]*B[k][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<l;j++){\n\t\t\t\tSystem.out.print(C[i][j]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(C[i][l]);\n\t\t}\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n,m,l;\n\t\tint[][] A=new int[101][101];\n\t\tint[][] B=new int[101][101];\n\t\tlong [][] C=new long[101][101];\n\t\tn=sc.nextInt();\n\t\tm=sc.nextInt();\n\t\tl=sc.nextInt();\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=m;j++){\n\t\t\t\tA[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i=1;i<=m;i++){\n\t\t\tfor(int j=1;j<=l;j++){\n\t\t\t\tB[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=l;j++){\n\t\t\t\tC[i][j]=0;\n\t\t\t\tfor(int k=1;k<=m;k++){\n\t\t\t\t\tC[i][j]+=(A[i][k]*B[k][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<l;j++){\n\t\t\t\tSystem.out.print(C[i][j]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(C[i][l]);\n\t\t}\n }\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n,m,l;\n\t\tint[][] A=new int[101][101];\n\t\tint[][] B=new int[101][101];\n\t\tlong [][] C=new long[101][101];\n\t\tn=sc.nextInt();\n\t\tm=sc.nextInt();\n\t\tl=sc.nextInt();\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=m;j++){\n\t\t\t\tA[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i=1;i<=m;i++){\n\t\t\tfor(int j=1;j<=l;j++){\n\t\t\t\tB[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=l;j++){\n\t\t\t\tC[i][j]=0;\n\t\t\t\tfor(int k=1;k<=m;k++){\n\t\t\t\t\tC[i][j]+=(A[i][k]*B[k][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<l;j++){\n\t\t\t\tSystem.out.print(C[i][j]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(C[i][l]);\n\t\t}\n }",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n,m,l;\n\t\tint[][] A=new int[101][101];\n\t\tint[][] B=new int[101][101];\n\t\tlong [][] C=new long[101][101];\n\t\tn=sc.nextInt();\n\t\tm=sc.nextInt();\n\t\tl=sc.nextInt();\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=m;j++){\n\t\t\t\tA[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i=1;i<=m;i++){\n\t\t\tfor(int j=1;j<=l;j++){\n\t\t\t\tB[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=l;j++){\n\t\t\t\tC[i][j]=0;\n\t\t\t\tfor(int k=1;k<=m;k++){\n\t\t\t\t\tC[i][j]+=(A[i][k]*B[k][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<l;j++){\n\t\t\t\tSystem.out.print(C[i][j]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(C[i][l]);\n\t\t}\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n",
"n",
"m",
"m",
"l;",
"l",
"int[][] A=new int[101][101];",
"A",
"new int[101][101]",
"101",
"101",
"int[][] B=new int[101][101];",
"B",
"new int[101][101]",
"101",
"101",
"long [][] C=new long[101][101];",
"C",
"new long[101][101]",
"101",
"101",
"n=sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"m=sc.nextInt()",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"l=sc.nextInt()",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=m;j++){\n\t\t\t\tA[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=1;j<=m;j++){\n\t\t\t\tA[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=1;j<=m;j++){\n\t\t\t\tA[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int j=1;j<=m;j++){\n\t\t\t\tA[i][j]=sc.nextInt();\n\t\t\t}",
"int j=1;",
"int j=1;",
"j",
"1",
"j<=m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tA[i][j]=sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tA[i][j]=sc.nextInt();\n\t\t\t}",
"A[i][j]=sc.nextInt()",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=1;i<=m;i++){\n\t\t\tfor(int j=1;j<=l;j++){\n\t\t\t\tB[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=1;j<=l;j++){\n\t\t\t\tB[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=1;j<=l;j++){\n\t\t\t\tB[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int j=1;j<=l;j++){\n\t\t\t\tB[i][j]=sc.nextInt();\n\t\t\t}",
"int j=1;",
"int j=1;",
"j",
"1",
"j<=l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tB[i][j]=sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tB[i][j]=sc.nextInt();\n\t\t\t}",
"B[i][j]=sc.nextInt()",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=l;j++){\n\t\t\t\tC[i][j]=0;\n\t\t\t\tfor(int k=1;k<=m;k++){\n\t\t\t\t\tC[i][j]+=(A[i][k]*B[k][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=1;j<=l;j++){\n\t\t\t\tC[i][j]=0;\n\t\t\t\tfor(int k=1;k<=m;k++){\n\t\t\t\t\tC[i][j]+=(A[i][k]*B[k][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=1;j<=l;j++){\n\t\t\t\tC[i][j]=0;\n\t\t\t\tfor(int k=1;k<=m;k++){\n\t\t\t\t\tC[i][j]+=(A[i][k]*B[k][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int j=1;j<=l;j++){\n\t\t\t\tC[i][j]=0;\n\t\t\t\tfor(int k=1;k<=m;k++){\n\t\t\t\t\tC[i][j]+=(A[i][k]*B[k][j]);\n\t\t\t\t}\n\t\t\t}",
"int j=1;",
"int j=1;",
"j",
"1",
"j<=l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tC[i][j]=0;\n\t\t\t\tfor(int k=1;k<=m;k++){\n\t\t\t\t\tC[i][j]+=(A[i][k]*B[k][j]);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tC[i][j]=0;\n\t\t\t\tfor(int k=1;k<=m;k++){\n\t\t\t\t\tC[i][j]+=(A[i][k]*B[k][j]);\n\t\t\t\t}\n\t\t\t}",
"C[i][j]=0",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"0",
"for(int k=1;k<=m;k++){\n\t\t\t\t\tC[i][j]+=(A[i][k]*B[k][j]);\n\t\t\t\t}",
"int k=1;",
"int k=1;",
"k",
"1",
"k<=m",
"k",
"m",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tC[i][j]+=(A[i][k]*B[k][j]);\n\t\t\t\t}",
"{\n\t\t\t\t\tC[i][j]+=(A[i][k]*B[k][j]);\n\t\t\t\t}",
"C[i][j]+=(A[i][k]*B[k][j])",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"(A[i][k]*B[k][j])",
"A[i][k]",
"A[i]",
"A",
"i",
"k",
"B[k][j]",
"B[k]",
"B",
"k",
"j",
"for(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<l;j++){\n\t\t\t\tSystem.out.print(C[i][j]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(C[i][l]);\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=1;j<l;j++){\n\t\t\t\tSystem.out.print(C[i][j]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(C[i][l]);\n\t\t}",
"{\n\t\t\tfor(int j=1;j<l;j++){\n\t\t\t\tSystem.out.print(C[i][j]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(C[i][l]);\n\t\t}",
"for(int j=1;j<l;j++){\n\t\t\t\tSystem.out.print(C[i][j]+\" \");\n\t\t\t}",
"int j=1;",
"int j=1;",
"j",
"1",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(C[i][j]+\" \");\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(C[i][j]+\" \");\n\t\t\t}",
"System.out.print(C[i][j]+\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"C[i][j]+\" \"",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"\" \"",
"System.out.println(C[i][l])",
"System.out.println",
"System.out",
"System",
"System.out",
"C[i][l]",
"C[i]",
"C",
"i",
"l",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int n,m,l;
int[][] A=new int[101][101];
int[][] B=new int[101][101];
long [][] C=new long[101][101];
n=sc.nextInt();
m=sc.nextInt();
l=sc.nextInt();
for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++){
A[i][j]=sc.nextInt();
}
}
for(int i=1;i<=m;i++){
for(int j=1;j<=l;j++){
B[i][j]=sc.nextInt();
}
}
for(int i=1;i<=n;i++){
for(int j=1;j<=l;j++){
C[i][j]=0;
for(int k=1;k<=m;k++){
C[i][j]+=(A[i][k]*B[k][j]);
}
}
}
for(int i=1;i<=n;i++){
for(int j=1;j<l;j++){
System.out.print(C[i][j]+" ");
}
System.out.println(C[i][l]);
}
}
}
|
[
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,
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,
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,
13,
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,
4,
18,
13,
2,
8,
2,
13,
17,
17,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
18,
13,
17,
13,
41,
13,
18,
13,
13,
41,
13,
18,
18,
13,
17,
13,
41,
13,
17,
14,
2,
4,
18,
13,
17,
4,
18,
13,
17,
30,
0,
13,
20,
13,
13,
14,
4,
18,
13,
17,
30,
0,
13,
20,
13,
13,
14,
4,
18,
13,
17,
30,
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,
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,
29,
13,
23,
13,
23,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
4,
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
],
[
25,
26
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
11,
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
],
[
11,
67
],
[
67,
68
],
[
67,
69
],
[
11,
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
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
98,
104
],
[
104,
105
],
[
105,
106
],
[
11,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
109,
111
],
[
109,
112
],
[
109,
113
],
[
11,
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
],
[
144,
145
],
[
143,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
147,
152
],
[
146,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
126,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
158,
163
],
[
9,
164
],
[
164,
165
],
[
4,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
171,
173
],
[
168,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
176,
180
],
[
168,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
183,
185
],
[
168,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
188,
192
],
[
168,
193
],
[
193,
194
],
[
193,
195
],
[
168,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
198,
201
],
[
197,
202
],
[
202,
203
],
[
203,
204
],
[
202,
205
],
[
196,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
196,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
213,
216
],
[
212,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
212,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
224,
227
],
[
223,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
228,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
234,
239
],
[
239,
240
],
[
239,
241
],
[
234,
242
],
[
242,
243
],
[
243,
244
],
[
234,
245
],
[
246,
246
],
[
246,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
247,
252
],
[
252,
253
],
[
252,
254
],
[
247,
255
],
[
255,
256
],
[
256,
257
],
[
247,
258
],
[
259,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
259,
263
],
[
263,
264
],
[
264,
265
],
[
265,
266
],
[
265,
267
],
[
263,
268
],
[
268,
269
],
[
268,
270
],
[
263,
271
],
[
271,
272
],
[
272,
273
],
[
263,
274
],
[
275,
275
],
[
275,
276
],
[
276,
277
],
[
276,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
280,
282
],
[
279,
283
],
[
278,
284
],
[
284,
285
],
[
285,
286
],
[
285,
287
],
[
284,
288
],
[
259,
289
],
[
289,
290
],
[
290,
291
],
[
291,
292
],
[
291,
293
],
[
290,
294
],
[
289,
295
],
[
168,
296
],
[
296,
297
],
[
166,
298
],
[
298,
299
],
[
166,
300
],
[
300,
301
],
[
166,
302
],
[
302,
303
]
] | [
"import java.util.*;\n\nclass Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\n\t\tint n = sc.nextInt(); int m = sc.nextInt(); int l = sc.nextInt();\n\t\tint[][] row = 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\trow[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[][] column = new int[m][l];\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tfor (int j=0; j<l; j++) {\n\t\t\t\tcolumn[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tlong[][] ans = calcMatrix(row, column, \"*\");\n\t\t\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor (int j=0; j<l; j++) {\n\t\t\t\tsb.append((j==0?\"\":\" \")+(ans[i][j]));\n\t\t\t}\n\t\t\tSystem.out.println(sb);\n\t\t}\n\t\t\n\t}\n\n\tstatic long[][] calcMatrix(int[][] row, int[][] column, String operator) {\n\t\t//計算が正常におこなえない行・列を受け取った場合のエラー処理は施してません\n\n\t\tint rowH = row.length; int rowW = row[0].length;\n\t\tint columnH = column.length; int columnW = column[0].length;\n\t\tlong[][] result = null;\n\n\t\tif (operator.equals(\"+\") || operator.equals(\"-\")) {\n\t\t\tresult = new long[rowH][rowW];\n\t\t}\n\t\telse if (operator.equals(\"-\")) {\n\t\t\tresult = new long[rowH][rowW];\n\t\t}\n\t\telse if (operator.equals(\"*\")) {\n\t\t\tresult = new long[rowH][columnW];\n\t\t\tfor (int i=0; i<rowH; i++) {\n\t\t\t\tfor (int j=0; j<columnW; j++) {\n\t\t\t\t\tlong sum = 0;\n\t\t\t\t\tfor (int k=0; k<rowW; k++) {\n\t\t\t\t\t\tsum += row[i][k] * column[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tresult[i][j] = sum;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t\t\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\n\t\tint n = sc.nextInt(); int m = sc.nextInt(); int l = sc.nextInt();\n\t\tint[][] row = 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\trow[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[][] column = new int[m][l];\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tfor (int j=0; j<l; j++) {\n\t\t\t\tcolumn[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tlong[][] ans = calcMatrix(row, column, \"*\");\n\t\t\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor (int j=0; j<l; j++) {\n\t\t\t\tsb.append((j==0?\"\":\" \")+(ans[i][j]));\n\t\t\t}\n\t\t\tSystem.out.println(sb);\n\t\t}\n\t\t\n\t}\n\n\tstatic long[][] calcMatrix(int[][] row, int[][] column, String operator) {\n\t\t//計算が正常におこなえない行・列を受け取った場合のエラー処理は施してません\n\n\t\tint rowH = row.length; int rowW = row[0].length;\n\t\tint columnH = column.length; int columnW = column[0].length;\n\t\tlong[][] result = null;\n\n\t\tif (operator.equals(\"+\") || operator.equals(\"-\")) {\n\t\t\tresult = new long[rowH][rowW];\n\t\t}\n\t\telse if (operator.equals(\"-\")) {\n\t\t\tresult = new long[rowH][rowW];\n\t\t}\n\t\telse if (operator.equals(\"*\")) {\n\t\t\tresult = new long[rowH][columnW];\n\t\t\tfor (int i=0; i<rowH; i++) {\n\t\t\t\tfor (int j=0; j<columnW; j++) {\n\t\t\t\t\tlong sum = 0;\n\t\t\t\t\tfor (int k=0; k<rowW; k++) {\n\t\t\t\t\t\tsum += row[i][k] * column[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tresult[i][j] = sum;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\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\n\t\tint n = sc.nextInt(); int m = sc.nextInt(); int l = sc.nextInt();\n\t\tint[][] row = 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\trow[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[][] column = new int[m][l];\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tfor (int j=0; j<l; j++) {\n\t\t\t\tcolumn[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tlong[][] ans = calcMatrix(row, column, \"*\");\n\t\t\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor (int j=0; j<l; j++) {\n\t\t\t\tsb.append((j==0?\"\":\" \")+(ans[i][j]));\n\t\t\t}\n\t\t\tSystem.out.println(sb);\n\t\t}\n\t\t\n\t}",
"main",
"{\n\n\t\tint n = sc.nextInt(); int m = sc.nextInt(); int l = sc.nextInt();\n\t\tint[][] row = 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\trow[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[][] column = new int[m][l];\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tfor (int j=0; j<l; j++) {\n\t\t\t\tcolumn[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tlong[][] ans = calcMatrix(row, column, \"*\");\n\t\t\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor (int j=0; j<l; j++) {\n\t\t\t\tsb.append((j==0?\"\":\" \")+(ans[i][j]));\n\t\t\t}\n\t\t\tSystem.out.println(sb);\n\t\t}\n\t\t\n\t}",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int l = sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] row = new int[n][m];",
"row",
"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\trow[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\trow[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\trow[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for (int j=0; j<m; j++) {\n\t\t\t\trow[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\trow[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\trow[i][j] = sc.nextInt();\n\t\t\t}",
"row[i][j] = sc.nextInt()",
"row[i][j]",
"row[i]",
"row",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] column = new int[m][l];",
"column",
"new int[m][l]",
"m",
"l",
"for (int i=0; i<m; i++) {\n\t\t\tfor (int j=0; j<l; j++) {\n\t\t\t\tcolumn[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j=0; j<l; j++) {\n\t\t\t\tcolumn[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j=0; j<l; j++) {\n\t\t\t\tcolumn[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for (int j=0; j<l; j++) {\n\t\t\t\tcolumn[i][j] = sc.nextInt();\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tcolumn[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tcolumn[i][j] = sc.nextInt();\n\t\t\t}",
"column[i][j] = sc.nextInt()",
"column[i][j]",
"column[i]",
"column",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long[][] ans = calcMatrix(row, column, \"*\");",
"ans",
"calcMatrix(row, column, \"*\")",
"calcMatrix",
"row",
"column",
"\"*\"",
"for (int i=0; i<n; i++) {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor (int j=0; j<l; j++) {\n\t\t\t\tsb.append((j==0?\"\":\" \")+(ans[i][j]));\n\t\t\t}\n\t\t\tSystem.out.println(sb);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor (int j=0; j<l; j++) {\n\t\t\t\tsb.append((j==0?\"\":\" \")+(ans[i][j]));\n\t\t\t}\n\t\t\tSystem.out.println(sb);\n\t\t}",
"{\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor (int j=0; j<l; j++) {\n\t\t\t\tsb.append((j==0?\"\":\" \")+(ans[i][j]));\n\t\t\t}\n\t\t\tSystem.out.println(sb);\n\t\t}",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"for (int j=0; j<l; j++) {\n\t\t\t\tsb.append((j==0?\"\":\" \")+(ans[i][j]));\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tsb.append((j==0?\"\":\" \")+(ans[i][j]));\n\t\t\t}",
"{\n\t\t\t\tsb.append((j==0?\"\":\" \")+(ans[i][j]));\n\t\t\t}",
"sb.append((j==0?\"\":\" \")+(ans[i][j]))",
"sb.append",
"sb",
"(j==0?\"\":\" \")+(ans[i][j])",
"(j==0?\"\":\" \")",
"j==0",
"j",
"0",
"\"\"",
"\" \"",
"(ans[i][j])",
"ans[i]",
"ans",
"i",
"j",
"System.out.println(sb)",
"System.out.println",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args",
"static long[][] calcMatrix(int[][] row, int[][] column, String operator) {\n\t\t//計算が正常におこなえない行・列を受け取った場合のエラー処理は施してません\n\n\t\tint rowH = row.length; int rowW = row[0].length;\n\t\tint columnH = column.length; int columnW = column[0].length;\n\t\tlong[][] result = null;\n\n\t\tif (operator.equals(\"+\") || operator.equals(\"-\")) {\n\t\t\tresult = new long[rowH][rowW];\n\t\t}\n\t\telse if (operator.equals(\"-\")) {\n\t\t\tresult = new long[rowH][rowW];\n\t\t}\n\t\telse if (operator.equals(\"*\")) {\n\t\t\tresult = new long[rowH][columnW];\n\t\t\tfor (int i=0; i<rowH; i++) {\n\t\t\t\tfor (int j=0; j<columnW; j++) {\n\t\t\t\t\tlong sum = 0;\n\t\t\t\t\tfor (int k=0; k<rowW; k++) {\n\t\t\t\t\t\tsum += row[i][k] * column[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tresult[i][j] = sum;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t\t\n\t}",
"calcMatrix",
"{\n\t\t//計算が正常におこなえない行・列を受け取った場合のエラー処理は施してません\n\n\t\tint rowH = row.length; int rowW = row[0].length;\n\t\tint columnH = column.length; int columnW = column[0].length;\n\t\tlong[][] result = null;\n\n\t\tif (operator.equals(\"+\") || operator.equals(\"-\")) {\n\t\t\tresult = new long[rowH][rowW];\n\t\t}\n\t\telse if (operator.equals(\"-\")) {\n\t\t\tresult = new long[rowH][rowW];\n\t\t}\n\t\telse if (operator.equals(\"*\")) {\n\t\t\tresult = new long[rowH][columnW];\n\t\t\tfor (int i=0; i<rowH; i++) {\n\t\t\t\tfor (int j=0; j<columnW; j++) {\n\t\t\t\t\tlong sum = 0;\n\t\t\t\t\tfor (int k=0; k<rowW; k++) {\n\t\t\t\t\t\tsum += row[i][k] * column[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tresult[i][j] = sum;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t\t\n\t}",
"int rowH = row.length;",
"rowH",
"row.length",
"row",
"row.length",
"int rowW = row[0].length;",
"rowW",
"row[0].length",
"row[0]",
"row",
"0",
"row[0].length",
"int columnH = column.length;",
"columnH",
"column.length",
"column",
"column.length",
"int columnW = column[0].length;",
"columnW",
"column[0].length",
"column[0]",
"column",
"0",
"column[0].length",
"long[][] result = null;",
"result",
"null",
"if (operator.equals(\"+\") || operator.equals(\"-\")) {\n\t\t\tresult = new long[rowH][rowW];\n\t\t}\n\t\telse if (operator.equals(\"-\")) {\n\t\t\tresult = new long[rowH][rowW];\n\t\t}\n\t\telse if (operator.equals(\"*\")) {\n\t\t\tresult = new long[rowH][columnW];\n\t\t\tfor (int i=0; i<rowH; i++) {\n\t\t\t\tfor (int j=0; j<columnW; j++) {\n\t\t\t\t\tlong sum = 0;\n\t\t\t\t\tfor (int k=0; k<rowW; k++) {\n\t\t\t\t\t\tsum += row[i][k] * column[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tresult[i][j] = sum;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"operator.equals(\"+\") || operator.equals(\"-\")",
"operator.equals(\"+\")",
"operator.equals",
"operator",
"\"+\"",
"operator.equals(\"-\")",
"operator.equals",
"operator",
"\"-\"",
"{\n\t\t\tresult = new long[rowH][rowW];\n\t\t}",
"result = new long[rowH][rowW]",
"result",
"new long[rowH][rowW]",
"rowH",
"rowW",
"if (operator.equals(\"-\")) {\n\t\t\tresult = new long[rowH][rowW];\n\t\t}\n\t\telse if (operator.equals(\"*\")) {\n\t\t\tresult = new long[rowH][columnW];\n\t\t\tfor (int i=0; i<rowH; i++) {\n\t\t\t\tfor (int j=0; j<columnW; j++) {\n\t\t\t\t\tlong sum = 0;\n\t\t\t\t\tfor (int k=0; k<rowW; k++) {\n\t\t\t\t\t\tsum += row[i][k] * column[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tresult[i][j] = sum;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"operator.equals(\"-\")",
"operator.equals",
"operator",
"\"-\"",
"{\n\t\t\tresult = new long[rowH][rowW];\n\t\t}",
"result = new long[rowH][rowW]",
"result",
"new long[rowH][rowW]",
"rowH",
"rowW",
"if (operator.equals(\"*\")) {\n\t\t\tresult = new long[rowH][columnW];\n\t\t\tfor (int i=0; i<rowH; i++) {\n\t\t\t\tfor (int j=0; j<columnW; j++) {\n\t\t\t\t\tlong sum = 0;\n\t\t\t\t\tfor (int k=0; k<rowW; k++) {\n\t\t\t\t\t\tsum += row[i][k] * column[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tresult[i][j] = sum;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"operator.equals(\"*\")",
"operator.equals",
"operator",
"\"*\"",
"{\n\t\t\tresult = new long[rowH][columnW];\n\t\t\tfor (int i=0; i<rowH; i++) {\n\t\t\t\tfor (int j=0; j<columnW; j++) {\n\t\t\t\t\tlong sum = 0;\n\t\t\t\t\tfor (int k=0; k<rowW; k++) {\n\t\t\t\t\t\tsum += row[i][k] * column[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tresult[i][j] = sum;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"result = new long[rowH][columnW]",
"result",
"new long[rowH][columnW]",
"rowH",
"columnW",
"for (int i=0; i<rowH; i++) {\n\t\t\t\tfor (int j=0; j<columnW; j++) {\n\t\t\t\t\tlong sum = 0;\n\t\t\t\t\tfor (int k=0; k<rowW; k++) {\n\t\t\t\t\t\tsum += row[i][k] * column[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tresult[i][j] = sum;\n\t\t\t\t}\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<rowH",
"i",
"rowH",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor (int j=0; j<columnW; j++) {\n\t\t\t\t\tlong sum = 0;\n\t\t\t\t\tfor (int k=0; k<rowW; k++) {\n\t\t\t\t\t\tsum += row[i][k] * column[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tresult[i][j] = sum;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor (int j=0; j<columnW; j++) {\n\t\t\t\t\tlong sum = 0;\n\t\t\t\t\tfor (int k=0; k<rowW; k++) {\n\t\t\t\t\t\tsum += row[i][k] * column[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tresult[i][j] = sum;\n\t\t\t\t}\n\t\t\t}",
"for (int j=0; j<columnW; j++) {\n\t\t\t\t\tlong sum = 0;\n\t\t\t\t\tfor (int k=0; k<rowW; k++) {\n\t\t\t\t\t\tsum += row[i][k] * column[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tresult[i][j] = sum;\n\t\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<columnW",
"j",
"columnW",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tlong sum = 0;\n\t\t\t\t\tfor (int k=0; k<rowW; k++) {\n\t\t\t\t\t\tsum += row[i][k] * column[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tresult[i][j] = sum;\n\t\t\t\t}",
"{\n\t\t\t\t\tlong sum = 0;\n\t\t\t\t\tfor (int k=0; k<rowW; k++) {\n\t\t\t\t\t\tsum += row[i][k] * column[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tresult[i][j] = sum;\n\t\t\t\t}",
"long sum = 0;",
"sum",
"0",
"for (int k=0; k<rowW; k++) {\n\t\t\t\t\t\tsum += row[i][k] * column[k][j];\n\t\t\t\t\t}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<rowW",
"k",
"rowW",
"k++",
"k++",
"k",
"{\n\t\t\t\t\t\tsum += row[i][k] * column[k][j];\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tsum += row[i][k] * column[k][j];\n\t\t\t\t\t}",
"sum += row[i][k] * column[k][j]",
"sum",
"row[i][k] * column[k][j]",
"row[i][k]",
"row[i]",
"row",
"i",
"k",
"column[k][j]",
"column[k]",
"column",
"k",
"j",
"result[i][j] = sum",
"result[i][j]",
"result[i]",
"result",
"i",
"j",
"sum",
"return result;",
"result",
"int[][] row",
"row",
"int[][] column",
"column",
"String operator",
"operator"
] | import java.util.*;
class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int n = sc.nextInt(); int m = sc.nextInt(); int l = sc.nextInt();
int[][] row = new int[n][m];
for (int i=0; i<n; i++) {
for (int j=0; j<m; j++) {
row[i][j] = sc.nextInt();
}
}
int[][] column = new int[m][l];
for (int i=0; i<m; i++) {
for (int j=0; j<l; j++) {
column[i][j] = sc.nextInt();
}
}
long[][] ans = calcMatrix(row, column, "*");
for (int i=0; i<n; i++) {
StringBuilder sb = new StringBuilder();
for (int j=0; j<l; j++) {
sb.append((j==0?"":" ")+(ans[i][j]));
}
System.out.println(sb);
}
}
static long[][] calcMatrix(int[][] row, int[][] column, String operator) {
//計算が正常におこなえない行・列を受け取った場合のエラー処理は施してません
int rowH = row.length; int rowW = row[0].length;
int columnH = column.length; int columnW = column[0].length;
long[][] result = null;
if (operator.equals("+") || operator.equals("-")) {
result = new long[rowH][rowW];
}
else if (operator.equals("-")) {
result = new long[rowH][rowW];
}
else if (operator.equals("*")) {
result = new long[rowH][columnW];
for (int i=0; i<rowH; i++) {
for (int j=0; j<columnW; j++) {
long sum = 0;
for (int k=0; k<rowW; k++) {
sum += row[i][k] * column[k][j];
}
result[i][j] = sum;
}
}
}
return result;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
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,
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,
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,
18,
13,
13,
13,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
200,
5
],
[
200,
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
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
34,
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
],
[
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
],
[
68,
72
],
[
67,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
77,
78
],
[
8,
79
],
[
79,
80
],
[
79,
81
],
[
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
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
97,
105
],
[
105,
106
],
[
106,
107
],
[
97,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
110,
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
],
[
150,
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
],
[
167,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
169,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
150,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
180,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
150,
188
],
[
188,
189
],
[
188,
190
],
[
134,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
191,
196
],
[
6,
197
],
[
197,
198
],
[
0,
199
],
[
199,
200
],
[
199,
201
]
] | [
"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\t\tint l = Integer.parseInt(std.next());\n\n\t\tint mat_a[][] = new int[n][m];\n\t\tfor(int i=0; i<n; i++){\n\t\t\tfor (int j=0; j<m; j++){\n\t\t\t\tmat_a[i][j] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}\n\n\t\tint mat_b[][] = new int[m][l];\n\t\tfor(int j=0; j<m; j++){\n\t\t\tfor (int k=0; k<l; k++){\n\t\t\t\tmat_b[j][k] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}\n\n//\t\tint mat_c[][] = new int[n][l];\n\t\tfor(int i=0; i<n; i++){\n\t\t\tString line = \"\";\n\t\t\tfor (int k=0; k<l; k++){\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\t\tsum += mat_a[i][j] * mat_b[j][k];\n\t\t\t\t}\n\t\t\t\tif(k!=0){line += \" \";}\n\t\t\t\tline += sum;\n\t\t\t}\n\t\t\tSystem.out.println(line);\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\t\tint l = Integer.parseInt(std.next());\n\n\t\tint mat_a[][] = new int[n][m];\n\t\tfor(int i=0; i<n; i++){\n\t\t\tfor (int j=0; j<m; j++){\n\t\t\t\tmat_a[i][j] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}\n\n\t\tint mat_b[][] = new int[m][l];\n\t\tfor(int j=0; j<m; j++){\n\t\t\tfor (int k=0; k<l; k++){\n\t\t\t\tmat_b[j][k] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}\n\n//\t\tint mat_c[][] = new int[n][l];\n\t\tfor(int i=0; i<n; i++){\n\t\t\tString line = \"\";\n\t\t\tfor (int k=0; k<l; k++){\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\t\tsum += mat_a[i][j] * mat_b[j][k];\n\t\t\t\t}\n\t\t\t\tif(k!=0){line += \" \";}\n\t\t\t\tline += sum;\n\t\t\t}\n\t\t\tSystem.out.println(line);\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\t\tint l = Integer.parseInt(std.next());\n\n\t\tint mat_a[][] = new int[n][m];\n\t\tfor(int i=0; i<n; i++){\n\t\t\tfor (int j=0; j<m; j++){\n\t\t\t\tmat_a[i][j] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}\n\n\t\tint mat_b[][] = new int[m][l];\n\t\tfor(int j=0; j<m; j++){\n\t\t\tfor (int k=0; k<l; k++){\n\t\t\t\tmat_b[j][k] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}\n\n//\t\tint mat_c[][] = new int[n][l];\n\t\tfor(int i=0; i<n; i++){\n\t\t\tString line = \"\";\n\t\t\tfor (int k=0; k<l; k++){\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\t\tsum += mat_a[i][j] * mat_b[j][k];\n\t\t\t\t}\n\t\t\t\tif(k!=0){line += \" \";}\n\t\t\t\tline += sum;\n\t\t\t}\n\t\t\tSystem.out.println(line);\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\t\tint l = Integer.parseInt(std.next());\n\n\t\tint mat_a[][] = new int[n][m];\n\t\tfor(int i=0; i<n; i++){\n\t\t\tfor (int j=0; j<m; j++){\n\t\t\t\tmat_a[i][j] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}\n\n\t\tint mat_b[][] = new int[m][l];\n\t\tfor(int j=0; j<m; j++){\n\t\t\tfor (int k=0; k<l; k++){\n\t\t\t\tmat_b[j][k] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}\n\n//\t\tint mat_c[][] = new int[n][l];\n\t\tfor(int i=0; i<n; i++){\n\t\t\tString line = \"\";\n\t\t\tfor (int k=0; k<l; k++){\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\t\tsum += mat_a[i][j] * mat_b[j][k];\n\t\t\t\t}\n\t\t\t\tif(k!=0){line += \" \";}\n\t\t\t\tline += sum;\n\t\t\t}\n\t\t\tSystem.out.println(line);\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 l = Integer.parseInt(std.next());",
"l",
"Integer.parseInt(std.next())",
"Integer.parseInt",
"Integer",
"std.next()",
"std.next",
"std",
"int mat_a[][] = new int[n][m];",
"mat_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\tmat_a[i][j] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j=0; j<m; j++){\n\t\t\t\tmat_a[i][j] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j=0; j<m; j++){\n\t\t\t\tmat_a[i][j] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}",
"for (int j=0; j<m; j++){\n\t\t\t\tmat_a[i][j] = Integer.parseInt(std.next());\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tmat_a[i][j] = Integer.parseInt(std.next());\n\t\t\t}",
"{\n\t\t\t\tmat_a[i][j] = Integer.parseInt(std.next());\n\t\t\t}",
"mat_a[i][j] = Integer.parseInt(std.next())",
"mat_a[i][j]",
"mat_a[i]",
"mat_a",
"i",
"j",
"Integer.parseInt(std.next())",
"Integer.parseInt",
"Integer",
"std.next()",
"std.next",
"std",
"int mat_b[][] = new int[m][l];",
"mat_b",
"new int[m][l]",
"m",
"l",
"for(int j=0; j<m; j++){\n\t\t\tfor (int k=0; k<l; k++){\n\t\t\t\tmat_b[j][k] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\tfor (int k=0; k<l; k++){\n\t\t\t\tmat_b[j][k] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int k=0; k<l; k++){\n\t\t\t\tmat_b[j][k] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}",
"for (int k=0; k<l; k++){\n\t\t\t\tmat_b[j][k] = Integer.parseInt(std.next());\n\t\t\t}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<l",
"k",
"l",
"k++",
"k++",
"k",
"{\n\t\t\t\tmat_b[j][k] = Integer.parseInt(std.next());\n\t\t\t}",
"{\n\t\t\t\tmat_b[j][k] = Integer.parseInt(std.next());\n\t\t\t}",
"mat_b[j][k] = Integer.parseInt(std.next())",
"mat_b[j][k]",
"mat_b[j]",
"mat_b",
"j",
"k",
"Integer.parseInt(std.next())",
"Integer.parseInt",
"Integer",
"std.next()",
"std.next",
"std",
"for(int i=0; i<n; i++){\n\t\t\tString line = \"\";\n\t\t\tfor (int k=0; k<l; k++){\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\t\tsum += mat_a[i][j] * mat_b[j][k];\n\t\t\t\t}\n\t\t\t\tif(k!=0){line += \" \";}\n\t\t\t\tline += sum;\n\t\t\t}\n\t\t\tSystem.out.println(line);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString line = \"\";\n\t\t\tfor (int k=0; k<l; k++){\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\t\tsum += mat_a[i][j] * mat_b[j][k];\n\t\t\t\t}\n\t\t\t\tif(k!=0){line += \" \";}\n\t\t\t\tline += sum;\n\t\t\t}\n\t\t\tSystem.out.println(line);\n\t\t}",
"{\n\t\t\tString line = \"\";\n\t\t\tfor (int k=0; k<l; k++){\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\t\tsum += mat_a[i][j] * mat_b[j][k];\n\t\t\t\t}\n\t\t\t\tif(k!=0){line += \" \";}\n\t\t\t\tline += sum;\n\t\t\t}\n\t\t\tSystem.out.println(line);\n\t\t}",
"String line = \"\";",
"line",
"\"\"",
"for (int k=0; k<l; k++){\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\t\tsum += mat_a[i][j] * mat_b[j][k];\n\t\t\t\t}\n\t\t\t\tif(k!=0){line += \" \";}\n\t\t\t\tline += sum;\n\t\t\t}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<l",
"k",
"l",
"k++",
"k++",
"k",
"{\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\t\tsum += mat_a[i][j] * mat_b[j][k];\n\t\t\t\t}\n\t\t\t\tif(k!=0){line += \" \";}\n\t\t\t\tline += sum;\n\t\t\t}",
"{\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\t\tsum += mat_a[i][j] * mat_b[j][k];\n\t\t\t\t}\n\t\t\t\tif(k!=0){line += \" \";}\n\t\t\t\tline += sum;\n\t\t\t}",
"long sum = 0;",
"sum",
"0",
"for(int j=0; j<m; j++){\n\t\t\t\t\tsum += mat_a[i][j] * mat_b[j][k];\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 += mat_a[i][j] * mat_b[j][k];\n\t\t\t\t}",
"{\n\t\t\t\t\tsum += mat_a[i][j] * mat_b[j][k];\n\t\t\t\t}",
"sum += mat_a[i][j] * mat_b[j][k]",
"sum",
"mat_a[i][j] * mat_b[j][k]",
"mat_a[i][j]",
"mat_a[i]",
"mat_a",
"i",
"j",
"mat_b[j][k]",
"mat_b[j]",
"mat_b",
"j",
"k",
"if(k!=0){line += \" \";}",
"k!=0",
"k",
"0",
"{line += \" \";}",
"line += \" \"",
"line",
"\" \"",
"line += sum",
"line",
"sum",
"System.out.println(line)",
"System.out.println",
"System.out",
"System",
"System.out",
"line",
"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\t\tint l = Integer.parseInt(std.next());\n\n\t\tint mat_a[][] = new int[n][m];\n\t\tfor(int i=0; i<n; i++){\n\t\t\tfor (int j=0; j<m; j++){\n\t\t\t\tmat_a[i][j] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}\n\n\t\tint mat_b[][] = new int[m][l];\n\t\tfor(int j=0; j<m; j++){\n\t\t\tfor (int k=0; k<l; k++){\n\t\t\t\tmat_b[j][k] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}\n\n//\t\tint mat_c[][] = new int[n][l];\n\t\tfor(int i=0; i<n; i++){\n\t\t\tString line = \"\";\n\t\t\tfor (int k=0; k<l; k++){\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\t\tsum += mat_a[i][j] * mat_b[j][k];\n\t\t\t\t}\n\t\t\t\tif(k!=0){line += \" \";}\n\t\t\t\tline += sum;\n\t\t\t}\n\t\t\tSystem.out.println(line);\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\t\tint l = Integer.parseInt(std.next());\n\n\t\tint mat_a[][] = new int[n][m];\n\t\tfor(int i=0; i<n; i++){\n\t\t\tfor (int j=0; j<m; j++){\n\t\t\t\tmat_a[i][j] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}\n\n\t\tint mat_b[][] = new int[m][l];\n\t\tfor(int j=0; j<m; j++){\n\t\t\tfor (int k=0; k<l; k++){\n\t\t\t\tmat_b[j][k] = Integer.parseInt(std.next());\n\t\t\t}\n\t\t}\n\n//\t\tint mat_c[][] = new int[n][l];\n\t\tfor(int i=0; i<n; i++){\n\t\t\tString line = \"\";\n\t\t\tfor (int k=0; k<l; k++){\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\t\tsum += mat_a[i][j] * mat_b[j][k];\n\t\t\t\t}\n\t\t\t\tif(k!=0){line += \" \";}\n\t\t\t\tline += sum;\n\t\t\t}\n\t\t\tSystem.out.println(line);\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 l = Integer.parseInt(std.next());
int mat_a[][] = new int[n][m];
for(int i=0; i<n; i++){
for (int j=0; j<m; j++){
mat_a[i][j] = Integer.parseInt(std.next());
}
}
int mat_b[][] = new int[m][l];
for(int j=0; j<m; j++){
for (int k=0; k<l; k++){
mat_b[j][k] = Integer.parseInt(std.next());
}
}
// int mat_c[][] = new int[n][l];
for(int i=0; i<n; i++){
String line = "";
for (int k=0; k<l; k++){
long sum = 0;
for(int j=0; j<m; j++){
sum += mat_a[i][j] * mat_b[j][k];
}
if(k!=0){line += " ";}
line += sum;
}
System.out.println(line);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
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,
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,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
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
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
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
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
112,
120
],
[
120,
121
],
[
121,
122
],
[
112,
123
],
[
124,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
125,
136
],
[
137,
137
],
[
137,
138
],
[
138,
139
],
[
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
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
137,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
167,
173
],
[
8,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
174,
179
],
[
179,
180
],
[
179,
181
],
[
174,
182
],
[
182,
183
],
[
183,
184
],
[
174,
185
],
[
186,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
187,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
194,
196
],
[
187,
197
],
[
197,
198
],
[
198,
199
],
[
187,
200
],
[
201,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
202,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
207,
211
],
[
201,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
215,
217
],
[
212,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
219,
224
],
[
186,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
227,
229
],
[
6,
230
],
[
230,
231
]
] | [
"import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int m=sc.nextInt();\n int l=sc.nextInt();\n int[][] nm=new int[n][m];\n int[][] ml=new int[m][l];\n Long[][] nl=new Long[n][l];\n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n nm[i][j]=sc.nextInt();\n }\n }\n for(int k=0;k<m;k++){\n for(int p=0;p<l;p++){\n ml[k][p]=sc.nextInt();\n }\n }for(int a=0;a<n;a++){\n for(int b=0;b<l;b++){\n Long sum=0L;\n for(int c=0;c<m;c++){\n sum+=nm[a][c]*ml[c][b];\n }\n nl[a][b]=sum;\n }\n }\n for(int d=0;d<n;d++){\n for(int e=0;e<=l-1;e++){\n System.out.print(nl[d][e]);\n if(e!=l-1){\n System.out.print(\" \");\n }\n }\n System.out.println();\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int m=sc.nextInt();\n int l=sc.nextInt();\n int[][] nm=new int[n][m];\n int[][] ml=new int[m][l];\n Long[][] nl=new Long[n][l];\n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n nm[i][j]=sc.nextInt();\n }\n }\n for(int k=0;k<m;k++){\n for(int p=0;p<l;p++){\n ml[k][p]=sc.nextInt();\n }\n }for(int a=0;a<n;a++){\n for(int b=0;b<l;b++){\n Long sum=0L;\n for(int c=0;c<m;c++){\n sum+=nm[a][c]*ml[c][b];\n }\n nl[a][b]=sum;\n }\n }\n for(int d=0;d<n;d++){\n for(int e=0;e<=l-1;e++){\n System.out.print(nl[d][e]);\n if(e!=l-1){\n System.out.print(\" \");\n }\n }\n System.out.println();\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 l=sc.nextInt();\n int[][] nm=new int[n][m];\n int[][] ml=new int[m][l];\n Long[][] nl=new Long[n][l];\n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n nm[i][j]=sc.nextInt();\n }\n }\n for(int k=0;k<m;k++){\n for(int p=0;p<l;p++){\n ml[k][p]=sc.nextInt();\n }\n }for(int a=0;a<n;a++){\n for(int b=0;b<l;b++){\n Long sum=0L;\n for(int c=0;c<m;c++){\n sum+=nm[a][c]*ml[c][b];\n }\n nl[a][b]=sum;\n }\n }\n for(int d=0;d<n;d++){\n for(int e=0;e<=l-1;e++){\n System.out.print(nl[d][e]);\n if(e!=l-1){\n System.out.print(\" \");\n }\n }\n System.out.println();\n }\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int m=sc.nextInt();\n int l=sc.nextInt();\n int[][] nm=new int[n][m];\n int[][] ml=new int[m][l];\n Long[][] nl=new Long[n][l];\n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n nm[i][j]=sc.nextInt();\n }\n }\n for(int k=0;k<m;k++){\n for(int p=0;p<l;p++){\n ml[k][p]=sc.nextInt();\n }\n }for(int a=0;a<n;a++){\n for(int b=0;b<l;b++){\n Long sum=0L;\n for(int c=0;c<m;c++){\n sum+=nm[a][c]*ml[c][b];\n }\n nl[a][b]=sum;\n }\n }\n for(int d=0;d<n;d++){\n for(int e=0;e<=l-1;e++){\n System.out.print(nl[d][e]);\n if(e!=l-1){\n System.out.print(\" \");\n }\n }\n System.out.println();\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 l=sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] nm=new int[n][m];",
"nm",
"new int[n][m]",
"n",
"m",
"int[][] ml=new int[m][l];",
"ml",
"new int[m][l]",
"m",
"l",
"Long[][] nl=new Long[n][l];",
"nl",
"new Long[n][l]",
"n",
"l",
"for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n nm[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 nm[i][j]=sc.nextInt();\n }\n }",
"{\n for(int j=0;j<m;j++){\n nm[i][j]=sc.nextInt();\n }\n }",
"for(int j=0;j<m;j++){\n nm[i][j]=sc.nextInt();\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n nm[i][j]=sc.nextInt();\n }",
"{\n nm[i][j]=sc.nextInt();\n }",
"nm[i][j]=sc.nextInt()",
"nm[i][j]",
"nm[i]",
"nm",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int k=0;k<m;k++){\n for(int p=0;p<l;p++){\n ml[k][p]=sc.nextInt();\n }\n }",
"int k=0;",
"int k=0;",
"k",
"0",
"k<m",
"k",
"m",
"k++",
"k++",
"k",
"{\n for(int p=0;p<l;p++){\n ml[k][p]=sc.nextInt();\n }\n }",
"{\n for(int p=0;p<l;p++){\n ml[k][p]=sc.nextInt();\n }\n }",
"for(int p=0;p<l;p++){\n ml[k][p]=sc.nextInt();\n }",
"int p=0;",
"int p=0;",
"p",
"0",
"p<l",
"p",
"l",
"p++",
"p++",
"p",
"{\n ml[k][p]=sc.nextInt();\n }",
"{\n ml[k][p]=sc.nextInt();\n }",
"ml[k][p]=sc.nextInt()",
"ml[k][p]",
"ml[k]",
"ml",
"k",
"p",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int a=0;a<n;a++){\n for(int b=0;b<l;b++){\n Long sum=0L;\n for(int c=0;c<m;c++){\n sum+=nm[a][c]*ml[c][b];\n }\n nl[a][b]=sum;\n }\n }",
"int a=0;",
"int a=0;",
"a",
"0",
"a<n",
"a",
"n",
"a++",
"a++",
"a",
"{\n for(int b=0;b<l;b++){\n Long sum=0L;\n for(int c=0;c<m;c++){\n sum+=nm[a][c]*ml[c][b];\n }\n nl[a][b]=sum;\n }\n }",
"{\n for(int b=0;b<l;b++){\n Long sum=0L;\n for(int c=0;c<m;c++){\n sum+=nm[a][c]*ml[c][b];\n }\n nl[a][b]=sum;\n }\n }",
"for(int b=0;b<l;b++){\n Long sum=0L;\n for(int c=0;c<m;c++){\n sum+=nm[a][c]*ml[c][b];\n }\n nl[a][b]=sum;\n }",
"int b=0;",
"int b=0;",
"b",
"0",
"b<l",
"b",
"l",
"b++",
"b++",
"b",
"{\n Long sum=0L;\n for(int c=0;c<m;c++){\n sum+=nm[a][c]*ml[c][b];\n }\n nl[a][b]=sum;\n }",
"{\n Long sum=0L;\n for(int c=0;c<m;c++){\n sum+=nm[a][c]*ml[c][b];\n }\n nl[a][b]=sum;\n }",
"Long sum=0L;",
"sum",
"0L",
"for(int c=0;c<m;c++){\n sum+=nm[a][c]*ml[c][b];\n }",
"int c=0;",
"int c=0;",
"c",
"0",
"c<m",
"c",
"m",
"c++",
"c++",
"c",
"{\n sum+=nm[a][c]*ml[c][b];\n }",
"{\n sum+=nm[a][c]*ml[c][b];\n }",
"sum+=nm[a][c]*ml[c][b]",
"sum",
"nm[a][c]*ml[c][b]",
"nm[a][c]",
"nm[a]",
"nm",
"a",
"c",
"ml[c][b]",
"ml[c]",
"ml",
"c",
"b",
"nl[a][b]=sum",
"nl[a][b]",
"nl[a]",
"nl",
"a",
"b",
"sum",
"for(int d=0;d<n;d++){\n for(int e=0;e<=l-1;e++){\n System.out.print(nl[d][e]);\n if(e!=l-1){\n System.out.print(\" \");\n }\n }\n System.out.println();\n }",
"int d=0;",
"int d=0;",
"d",
"0",
"d<n",
"d",
"n",
"d++",
"d++",
"d",
"{\n for(int e=0;e<=l-1;e++){\n System.out.print(nl[d][e]);\n if(e!=l-1){\n System.out.print(\" \");\n }\n }\n System.out.println();\n }",
"{\n for(int e=0;e<=l-1;e++){\n System.out.print(nl[d][e]);\n if(e!=l-1){\n System.out.print(\" \");\n }\n }\n System.out.println();\n }",
"for(int e=0;e<=l-1;e++){\n System.out.print(nl[d][e]);\n if(e!=l-1){\n System.out.print(\" \");\n }\n }",
"int e=0;",
"int e=0;",
"e",
"0",
"e<=l-1",
"e",
"l-1",
"l",
"1",
"e++",
"e++",
"e",
"{\n System.out.print(nl[d][e]);\n if(e!=l-1){\n System.out.print(\" \");\n }\n }",
"{\n System.out.print(nl[d][e]);\n if(e!=l-1){\n System.out.print(\" \");\n }\n }",
"System.out.print(nl[d][e])",
"System.out.print",
"System.out",
"System",
"System.out",
"nl[d][e]",
"nl[d]",
"nl",
"d",
"e",
"if(e!=l-1){\n System.out.print(\" \");\n }",
"e!=l-1",
"e",
"l-1",
"l",
"1",
"{\n System.out.print(\" \");\n }",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int m=sc.nextInt();
int l=sc.nextInt();
int[][] nm=new int[n][m];
int[][] ml=new int[m][l];
Long[][] nl=new Long[n][l];
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
nm[i][j]=sc.nextInt();
}
}
for(int k=0;k<m;k++){
for(int p=0;p<l;p++){
ml[k][p]=sc.nextInt();
}
}for(int a=0;a<n;a++){
for(int b=0;b<l;b++){
Long sum=0L;
for(int c=0;c<m;c++){
sum+=nm[a][c]*ml[c][b];
}
nl[a][b]=sum;
}
}
for(int d=0;d<n;d++){
for(int e=0;e<=l-1;e++){
System.out.print(nl[d][e]);
if(e!=l-1){
System.out.print(" ");
}
}
System.out.println();
}
}
}
|
[
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,
4,
18,
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,
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,
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,
4,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
0,
13,
17,
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
],
[
198,
8
],
[
198,
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
],
[
27,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
11,
35
],
[
35,
36
],
[
35,
37
],
[
11,
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
],
[
11,
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
],
[
11,
110
],
[
110,
111
],
[
110,
112
],
[
11,
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
],
[
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
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
138,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
165,
170
],
[
138,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
174,
176
],
[
171,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
178,
183
],
[
138,
184
],
[
184,
185
],
[
184,
186
],
[
125,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
11,
192
],
[
192,
193
],
[
193,
194
],
[
9,
195
],
[
195,
196
],
[
0,
197
],
[
197,
198
],
[
197,
199
]
] | [
"import java.io.IOException;\nimport java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tint z = sc.nextInt();\n\n\t\tint[][] a = new int[x][y];\n\t\tint[][] b = new int[y][z];\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<y;j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<y;i++) {\n\t\t\tfor(int j=0;j<z;j++) {\n\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tlong tmp = 0;\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<z;j++) {\n\t\t\t\tfor(int k=0;k<y;k++) {\n\t\t\t\t\ttmp += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(tmp);\n\t\t\t\tif(j!=z-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\ttmp = 0;\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\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\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tint z = sc.nextInt();\n\n\t\tint[][] a = new int[x][y];\n\t\tint[][] b = new int[y][z];\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<y;j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<y;i++) {\n\t\t\tfor(int j=0;j<z;j++) {\n\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tlong tmp = 0;\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<z;j++) {\n\t\t\t\tfor(int k=0;k<y;k++) {\n\t\t\t\t\ttmp += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(tmp);\n\t\t\t\tif(j!=z-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\ttmp = 0;\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tint z = sc.nextInt();\n\n\t\tint[][] a = new int[x][y];\n\t\tint[][] b = new int[y][z];\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<y;j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<y;i++) {\n\t\t\tfor(int j=0;j<z;j++) {\n\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tlong tmp = 0;\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<z;j++) {\n\t\t\t\tfor(int k=0;k<y;k++) {\n\t\t\t\t\ttmp += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(tmp);\n\t\t\t\tif(j!=z-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\ttmp = 0;\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tsc.close();\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tint z = sc.nextInt();\n\n\t\tint[][] a = new int[x][y];\n\t\tint[][] b = new int[y][z];\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<y;j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<y;i++) {\n\t\t\tfor(int j=0;j<z;j++) {\n\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tlong tmp = 0;\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<z;j++) {\n\t\t\t\tfor(int k=0;k<y;k++) {\n\t\t\t\t\ttmp += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(tmp);\n\t\t\t\tif(j!=z-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\ttmp = 0;\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\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 z = sc.nextInt();",
"z",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] a = new int[x][y];",
"a",
"new int[x][y]",
"x",
"y",
"int[][] b = new int[y][z];",
"b",
"new int[y][z]",
"y",
"z",
"for(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<y;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<x",
"i",
"x",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<y;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<y;j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int j=0;j<y;j++) {\n\t\t\t\ta[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\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<y;i++) {\n\t\t\tfor(int j=0;j<z;j++) {\n\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<y",
"i",
"y",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<z;j++) {\n\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<z;j++) {\n\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int j=0;j<z;j++) {\n\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<z",
"j",
"z",
"j++",
"j++",
"j",
"{\n\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t}",
"b[i][j] = sc.nextInt()",
"b[i][j]",
"b[i]",
"b",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long tmp = 0;",
"tmp",
"0",
"for(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<z;j++) {\n\t\t\t\tfor(int k=0;k<y;k++) {\n\t\t\t\t\ttmp += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(tmp);\n\t\t\t\tif(j!=z-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\ttmp = 0;\n\t\t\t}\n\t\t\tSystem.out.println();\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<z;j++) {\n\t\t\t\tfor(int k=0;k<y;k++) {\n\t\t\t\t\ttmp += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(tmp);\n\t\t\t\tif(j!=z-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\ttmp = 0;\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor(int j=0;j<z;j++) {\n\t\t\t\tfor(int k=0;k<y;k++) {\n\t\t\t\t\ttmp += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(tmp);\n\t\t\t\tif(j!=z-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\ttmp = 0;\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for(int j=0;j<z;j++) {\n\t\t\t\tfor(int k=0;k<y;k++) {\n\t\t\t\t\ttmp += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(tmp);\n\t\t\t\tif(j!=z-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\ttmp = 0;\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<z",
"j",
"z",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k=0;k<y;k++) {\n\t\t\t\t\ttmp += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(tmp);\n\t\t\t\tif(j!=z-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\ttmp = 0;\n\t\t\t}",
"{\n\t\t\t\tfor(int k=0;k<y;k++) {\n\t\t\t\t\ttmp += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(tmp);\n\t\t\t\tif(j!=z-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\ttmp = 0;\n\t\t\t}",
"for(int k=0;k<y;k++) {\n\t\t\t\t\ttmp += a[i][k] * b[k][j];\n\t\t\t\t}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<y",
"k",
"y",
"k++",
"k++",
"k",
"{\n\t\t\t\t\ttmp += a[i][k] * b[k][j];\n\t\t\t\t}",
"{\n\t\t\t\t\ttmp += a[i][k] * b[k][j];\n\t\t\t\t}",
"tmp += a[i][k] * b[k][j]",
"tmp",
"a[i][k] * b[k][j]",
"a[i][k]",
"a[i]",
"a",
"i",
"k",
"b[k][j]",
"b[k]",
"b",
"k",
"j",
"System.out.print(tmp)",
"System.out.print",
"System.out",
"System",
"System.out",
"tmp",
"if(j!=z-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"j!=z-1",
"j",
"z-1",
"z",
"1",
"{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"tmp = 0",
"tmp",
"0",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tint z = sc.nextInt();\n\n\t\tint[][] a = new int[x][y];\n\t\tint[][] b = new int[y][z];\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<y;j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<y;i++) {\n\t\t\tfor(int j=0;j<z;j++) {\n\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tlong tmp = 0;\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<z;j++) {\n\t\t\t\tfor(int k=0;k<y;k++) {\n\t\t\t\t\ttmp += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(tmp);\n\t\t\t\tif(j!=z-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\ttmp = 0;\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tint z = sc.nextInt();\n\n\t\tint[][] a = new int[x][y];\n\t\tint[][] b = new int[y][z];\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<y;j++) {\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<y;i++) {\n\t\t\tfor(int j=0;j<z;j++) {\n\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tlong tmp = 0;\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tfor(int j=0;j<z;j++) {\n\t\t\t\tfor(int k=0;k<y;k++) {\n\t\t\t\t\ttmp += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(tmp);\n\t\t\t\tif(j!=z-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\ttmp = 0;\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\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 z = sc.nextInt();
int[][] a = new int[x][y];
int[][] b = new int[y][z];
for(int i=0;i<x;i++) {
for(int j=0;j<y;j++) {
a[i][j] = sc.nextInt();
}
}
for(int i=0;i<y;i++) {
for(int j=0;j<z;j++) {
b[i][j] = sc.nextInt();
}
}
long tmp = 0;
for(int i=0;i<x;i++) {
for(int j=0;j<z;j++) {
for(int k=0;k<y;k++) {
tmp += a[i][k] * b[k][j];
}
System.out.print(tmp);
if(j!=z-1) {
System.out.print(" ");
}
tmp = 0;
}
System.out.println();
}
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,
4,
18,
13,
41,
13,
20,
13,
13,
41,
13,
20,
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,
18,
13,
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,
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,
4,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
9,
4,
18,
18,
13,
13,
17,
4,
18,
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
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
37,
47
],
[
47,
48
],
[
48,
49
],
[
37,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
52,
64
],
[
64,
65
],
[
65,
66
],
[
52,
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
],
[
85,
86
],
[
85,
87
],
[
78,
88
],
[
88,
89
],
[
89,
90
],
[
78,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
93,
105
],
[
105,
106
],
[
106,
107
],
[
93,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
110,
116
],
[
116,
117
],
[
117,
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
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
137,
138
],
[
137,
139
],
[
132,
140
],
[
140,
141
],
[
141,
142
],
[
132,
143
],
[
144,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
153,
154
],
[
153,
155
],
[
148,
156
],
[
156,
157
],
[
157,
158
],
[
148,
159
],
[
160,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
163,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
144,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
174,
179
],
[
144,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
183,
185
],
[
180,
186
],
[
144,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
187,
192
],
[
131,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
8,
198
],
[
198,
199
],
[
199,
200
],
[
6,
201
],
[
201,
202
]
] | [
"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 l = scan.nextInt();\n\t\tint[][] detA = new int[n][m];\n\t\tint[][] detB = new int[m][l];\n\n\t\tfor (int i = 0; i < detA.length; i++) {\n\t\t\tfor (int j = 0; j < detA[i].length; j++) {\n\t\t\t\tdetA[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < detB.length; i++) {\n\t\t\tfor (int j = 0; j < detB[i].length; j++) {\n\t\t\t\tdetB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum += detA[i][k] * detB[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(sum);\n\t\t\t\tif (j == l - 1)\n\t\t\t\t\tcontinue;\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tscan.close();\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 l = scan.nextInt();\n\t\tint[][] detA = new int[n][m];\n\t\tint[][] detB = new int[m][l];\n\n\t\tfor (int i = 0; i < detA.length; i++) {\n\t\t\tfor (int j = 0; j < detA[i].length; j++) {\n\t\t\t\tdetA[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < detB.length; i++) {\n\t\t\tfor (int j = 0; j < detB[i].length; j++) {\n\t\t\t\tdetB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum += detA[i][k] * detB[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(sum);\n\t\t\t\tif (j == l - 1)\n\t\t\t\t\tcontinue;\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tscan.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\tint[][] detA = new int[n][m];\n\t\tint[][] detB = new int[m][l];\n\n\t\tfor (int i = 0; i < detA.length; i++) {\n\t\t\tfor (int j = 0; j < detA[i].length; j++) {\n\t\t\t\tdetA[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < detB.length; i++) {\n\t\t\tfor (int j = 0; j < detB[i].length; j++) {\n\t\t\t\tdetB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum += detA[i][k] * detB[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(sum);\n\t\t\t\tif (j == l - 1)\n\t\t\t\t\tcontinue;\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tscan.close();\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 l = scan.nextInt();\n\t\tint[][] detA = new int[n][m];\n\t\tint[][] detB = new int[m][l];\n\n\t\tfor (int i = 0; i < detA.length; i++) {\n\t\t\tfor (int j = 0; j < detA[i].length; j++) {\n\t\t\t\tdetA[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < detB.length; i++) {\n\t\t\tfor (int j = 0; j < detB[i].length; j++) {\n\t\t\t\tdetB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum += detA[i][k] * detB[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(sum);\n\t\t\t\tif (j == l - 1)\n\t\t\t\t\tcontinue;\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = scan.nextInt();",
"l",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[][] detA = new int[n][m];",
"detA",
"new int[n][m]",
"n",
"m",
"int[][] detB = new int[m][l];",
"detB",
"new int[m][l]",
"m",
"l",
"for (int i = 0; i < detA.length; i++) {\n\t\t\tfor (int j = 0; j < detA[i].length; j++) {\n\t\t\t\tdetA[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < detA.length",
"i",
"detA.length",
"detA",
"detA.length",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < detA[i].length; j++) {\n\t\t\t\tdetA[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < detA[i].length; j++) {\n\t\t\t\tdetA[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"for (int j = 0; j < detA[i].length; j++) {\n\t\t\t\tdetA[i][j] = scan.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < detA[i].length",
"j",
"detA[i].length",
"detA[i]",
"detA",
"i",
"detA[i].length",
"j++",
"j++",
"j",
"{\n\t\t\t\tdetA[i][j] = scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\tdetA[i][j] = scan.nextInt();\n\t\t\t}",
"detA[i][j] = scan.nextInt()",
"detA[i][j]",
"detA[i]",
"detA",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int i = 0; i < detB.length; i++) {\n\t\t\tfor (int j = 0; j < detB[i].length; j++) {\n\t\t\t\tdetB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < detB.length",
"i",
"detB.length",
"detB",
"detB.length",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < detB[i].length; j++) {\n\t\t\t\tdetB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < detB[i].length; j++) {\n\t\t\t\tdetB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"for (int j = 0; j < detB[i].length; j++) {\n\t\t\t\tdetB[i][j] = scan.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < detB[i].length",
"j",
"detB[i].length",
"detB[i]",
"detB",
"i",
"detB[i].length",
"j++",
"j++",
"j",
"{\n\t\t\t\tdetB[i][j] = scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\tdetB[i][j] = scan.nextInt();\n\t\t\t}",
"detB[i][j] = scan.nextInt()",
"detB[i][j]",
"detB[i]",
"detB",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum += detA[i][k] * detB[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(sum);\n\t\t\t\tif (j == l - 1)\n\t\t\t\t\tcontinue;\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\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 sum = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum += detA[i][k] * detB[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(sum);\n\t\t\t\tif (j == l - 1)\n\t\t\t\t\tcontinue;\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum += detA[i][k] * detB[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(sum);\n\t\t\t\tif (j == l - 1)\n\t\t\t\t\tcontinue;\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for (int j = 0; j < l; j++) {\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum += detA[i][k] * detB[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(sum);\n\t\t\t\tif (j == l - 1)\n\t\t\t\t\tcontinue;\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum += detA[i][k] * detB[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(sum);\n\t\t\t\tif (j == l - 1)\n\t\t\t\t\tcontinue;\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}",
"{\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum += detA[i][k] * detB[k][j];\n\t\t\t\t}\n\t\t\t\tSystem.out.print(sum);\n\t\t\t\tif (j == l - 1)\n\t\t\t\t\tcontinue;\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}",
"long sum = 0;",
"sum",
"0",
"for (int k = 0; k < m; k++) {\n\t\t\t\t\tsum += detA[i][k] * detB[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\tsum += detA[i][k] * detB[k][j];\n\t\t\t\t}",
"{\n\t\t\t\t\tsum += detA[i][k] * detB[k][j];\n\t\t\t\t}",
"sum += detA[i][k] * detB[k][j]",
"sum",
"detA[i][k] * detB[k][j]",
"detA[i][k]",
"detA[i]",
"detA",
"i",
"k",
"detB[k][j]",
"detB[k]",
"detB",
"k",
"j",
"System.out.print(sum)",
"System.out.print",
"System.out",
"System",
"System.out",
"sum",
"if (j == l - 1)\n\t\t\t\t\tcontinue;",
"j == l - 1",
"j",
"l - 1",
"l",
"1",
"continue;",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"scan.close()",
"scan.close",
"scan",
"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 l = scan.nextInt();
int[][] detA = new int[n][m];
int[][] detB = new int[m][l];
for (int i = 0; i < detA.length; i++) {
for (int j = 0; j < detA[i].length; j++) {
detA[i][j] = scan.nextInt();
}
}
for (int i = 0; i < detB.length; i++) {
for (int j = 0; j < detB[i].length; j++) {
detB[i][j] = scan.nextInt();
}
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < l; j++) {
long sum = 0;
for (int k = 0; k < m; k++) {
sum += detA[i][k] * detB[k][j];
}
System.out.print(sum);
if (j == l - 1)
continue;
System.out.print(" ");
}
System.out.println();
}
scan.close();
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
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,
4,
18,
18,
13,
13,
8,
2,
13,
2,
13,
17,
17,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
184,
5
],
[
184,
6
],
[
6,
7
],
[
6,
8
],
[
184,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
12,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
16,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
16,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
16,
32
],
[
32,
33
],
[
32,
34
],
[
16,
37
],
[
37,
38
],
[
37,
39
],
[
16,
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
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
16,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
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
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
16,
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
],
[
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
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
137,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
175,
177
],
[
172,
178
],
[
172,
179
],
[
167,
180
],
[
9,
181
],
[
181,
182
],
[
0,
183
],
[
183,
184
],
[
183,
185
]
] | [
"import java.util.*;\n\npublic class Main {\n\tprivate static Scanner sc=new Scanner(System.in);;\n\n\tpublic static void main(String args[]) {\n\t\twhile(sc.hasNextInt()){\n\t\t\tint n = sc.nextInt();\n\t\t\tint m = sc.nextInt();\n\t\t\tint l = sc.nextInt();\n\t\t\tlong temp1[][] = new long[n][m];\n\t\t\tlong temp2[][] = new long[m][l];\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\ttemp1[i][j] = sc.nextLong();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i=0;i<m;i++){\n\t\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\t\ttemp2[i][j]=sc.nextLong();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\t\tlong ans=0;\n\t\t\t\t\tfor (int k=0;k<m;k++) {\n\t\t\t\t\t\tans+=temp1[i][k]*temp2[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(j==l-1?\"%d%n\":\"%d \",ans);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tprivate static Scanner sc=new Scanner(System.in);;\n\n\tpublic static void main(String args[]) {\n\t\twhile(sc.hasNextInt()){\n\t\t\tint n = sc.nextInt();\n\t\t\tint m = sc.nextInt();\n\t\t\tint l = sc.nextInt();\n\t\t\tlong temp1[][] = new long[n][m];\n\t\t\tlong temp2[][] = new long[m][l];\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\ttemp1[i][j] = sc.nextLong();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i=0;i<m;i++){\n\t\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\t\ttemp2[i][j]=sc.nextLong();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\t\tlong ans=0;\n\t\t\t\t\tfor (int k=0;k<m;k++) {\n\t\t\t\t\t\tans+=temp1[i][k]*temp2[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(j==l-1?\"%d%n\":\"%d \",ans);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"private static Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String args[]) {\n\t\twhile(sc.hasNextInt()){\n\t\t\tint n = sc.nextInt();\n\t\t\tint m = sc.nextInt();\n\t\t\tint l = sc.nextInt();\n\t\t\tlong temp1[][] = new long[n][m];\n\t\t\tlong temp2[][] = new long[m][l];\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\ttemp1[i][j] = sc.nextLong();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i=0;i<m;i++){\n\t\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\t\ttemp2[i][j]=sc.nextLong();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\t\tlong ans=0;\n\t\t\t\t\tfor (int k=0;k<m;k++) {\n\t\t\t\t\t\tans+=temp1[i][k]*temp2[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(j==l-1?\"%d%n\":\"%d \",ans);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\twhile(sc.hasNextInt()){\n\t\t\tint n = sc.nextInt();\n\t\t\tint m = sc.nextInt();\n\t\t\tint l = sc.nextInt();\n\t\t\tlong temp1[][] = new long[n][m];\n\t\t\tlong temp2[][] = new long[m][l];\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\ttemp1[i][j] = sc.nextLong();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i=0;i<m;i++){\n\t\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\t\ttemp2[i][j]=sc.nextLong();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\t\tlong ans=0;\n\t\t\t\t\tfor (int k=0;k<m;k++) {\n\t\t\t\t\t\tans+=temp1[i][k]*temp2[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(j==l-1?\"%d%n\":\"%d \",ans);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"while(sc.hasNextInt()){\n\t\t\tint n = sc.nextInt();\n\t\t\tint m = sc.nextInt();\n\t\t\tint l = sc.nextInt();\n\t\t\tlong temp1[][] = new long[n][m];\n\t\t\tlong temp2[][] = new long[m][l];\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\ttemp1[i][j] = sc.nextLong();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i=0;i<m;i++){\n\t\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\t\ttemp2[i][j]=sc.nextLong();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\t\tlong ans=0;\n\t\t\t\t\tfor (int k=0;k<m;k++) {\n\t\t\t\t\t\tans+=temp1[i][k]*temp2[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(j==l-1?\"%d%n\":\"%d \",ans);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"sc.hasNextInt()",
"sc.hasNextInt",
"sc",
"{\n\t\t\tint n = sc.nextInt();\n\t\t\tint m = sc.nextInt();\n\t\t\tint l = sc.nextInt();\n\t\t\tlong temp1[][] = new long[n][m];\n\t\t\tlong temp2[][] = new long[m][l];\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\ttemp1[i][j] = sc.nextLong();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i=0;i<m;i++){\n\t\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\t\ttemp2[i][j]=sc.nextLong();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\t\tlong ans=0;\n\t\t\t\t\tfor (int k=0;k<m;k++) {\n\t\t\t\t\t\tans+=temp1[i][k]*temp2[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(j==l-1?\"%d%n\":\"%d \",ans);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int l = sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long temp1[][] = new long[n][m];",
"temp1",
"new long[n][m]",
"n",
"m",
"long temp2[][] = new long[m][l];",
"temp2",
"new long[m][l]",
"m",
"l",
"for (int i=0;i<n;i++) {\n\t\t\t\tfor (int j=0;j<m;j++) {\n\t\t\t\t\ttemp1[i][j] = sc.nextLong();\n\t\t\t\t}\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor (int j=0;j<m;j++) {\n\t\t\t\t\ttemp1[i][j] = sc.nextLong();\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor (int j=0;j<m;j++) {\n\t\t\t\t\ttemp1[i][j] = sc.nextLong();\n\t\t\t\t}\n\t\t\t}",
"for (int j=0;j<m;j++) {\n\t\t\t\t\ttemp1[i][j] = sc.nextLong();\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\ttemp1[i][j] = sc.nextLong();\n\t\t\t\t}",
"{\n\t\t\t\t\ttemp1[i][j] = sc.nextLong();\n\t\t\t\t}",
"temp1[i][j] = sc.nextLong()",
"temp1[i][j]",
"temp1[i]",
"temp1",
"i",
"j",
"sc.nextLong()",
"sc.nextLong",
"sc",
"for (int i=0;i<m;i++){\n\t\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\t\ttemp2[i][j]=sc.nextLong();\n\t\t\t\t}\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\t\ttemp2[i][j]=sc.nextLong();\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\t\ttemp2[i][j]=sc.nextLong();\n\t\t\t\t}\n\t\t\t}",
"for(int j=0;j<l;j++) {\n\t\t\t\t\ttemp2[i][j]=sc.nextLong();\n\t\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\t\ttemp2[i][j]=sc.nextLong();\n\t\t\t\t}",
"{\n\t\t\t\t\ttemp2[i][j]=sc.nextLong();\n\t\t\t\t}",
"temp2[i][j]=sc.nextLong()",
"temp2[i][j]",
"temp2[i]",
"temp2",
"i",
"j",
"sc.nextLong()",
"sc.nextLong",
"sc",
"for(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\t\tlong ans=0;\n\t\t\t\t\tfor (int k=0;k<m;k++) {\n\t\t\t\t\t\tans+=temp1[i][k]*temp2[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(j==l-1?\"%d%n\":\"%d \",ans);\n\t\t\t\t}\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\t\tlong ans=0;\n\t\t\t\t\tfor (int k=0;k<m;k++) {\n\t\t\t\t\t\tans+=temp1[i][k]*temp2[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(j==l-1?\"%d%n\":\"%d \",ans);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\t\tlong ans=0;\n\t\t\t\t\tfor (int k=0;k<m;k++) {\n\t\t\t\t\t\tans+=temp1[i][k]*temp2[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(j==l-1?\"%d%n\":\"%d \",ans);\n\t\t\t\t}\n\t\t\t}",
"for(int j=0;j<l;j++) {\n\t\t\t\t\tlong ans=0;\n\t\t\t\t\tfor (int k=0;k<m;k++) {\n\t\t\t\t\t\tans+=temp1[i][k]*temp2[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(j==l-1?\"%d%n\":\"%d \",ans);\n\t\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tlong ans=0;\n\t\t\t\t\tfor (int k=0;k<m;k++) {\n\t\t\t\t\t\tans+=temp1[i][k]*temp2[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(j==l-1?\"%d%n\":\"%d \",ans);\n\t\t\t\t}",
"{\n\t\t\t\t\tlong ans=0;\n\t\t\t\t\tfor (int k=0;k<m;k++) {\n\t\t\t\t\t\tans+=temp1[i][k]*temp2[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(j==l-1?\"%d%n\":\"%d \",ans);\n\t\t\t\t}",
"long ans=0;",
"ans",
"0",
"for (int k=0;k<m;k++) {\n\t\t\t\t\t\tans+=temp1[i][k]*temp2[k][j];\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\tans+=temp1[i][k]*temp2[k][j];\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tans+=temp1[i][k]*temp2[k][j];\n\t\t\t\t\t}",
"ans+=temp1[i][k]*temp2[k][j]",
"ans",
"temp1[i][k]*temp2[k][j]",
"temp1[i][k]",
"temp1[i]",
"temp1",
"i",
"k",
"temp2[k][j]",
"temp2[k]",
"temp2",
"k",
"j",
"System.out.printf(j==l-1?\"%d%n\":\"%d \",ans)",
"System.out.printf",
"System.out",
"System",
"System.out",
"j==l-1?\"%d%n\":\"%d \"",
"j==l-1",
"j",
"l-1",
"l",
"1",
"\"%d%n\"",
"\"%d \"",
"ans",
"String args[]",
"args",
"public class Main {\n\tprivate static Scanner sc=new Scanner(System.in);;\n\n\tpublic static void main(String args[]) {\n\t\twhile(sc.hasNextInt()){\n\t\t\tint n = sc.nextInt();\n\t\t\tint m = sc.nextInt();\n\t\t\tint l = sc.nextInt();\n\t\t\tlong temp1[][] = new long[n][m];\n\t\t\tlong temp2[][] = new long[m][l];\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\ttemp1[i][j] = sc.nextLong();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i=0;i<m;i++){\n\t\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\t\ttemp2[i][j]=sc.nextLong();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\t\tlong ans=0;\n\t\t\t\t\tfor (int k=0;k<m;k++) {\n\t\t\t\t\t\tans+=temp1[i][k]*temp2[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(j==l-1?\"%d%n\":\"%d \",ans);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main {\n\tprivate static Scanner sc=new Scanner(System.in);;\n\n\tpublic static void main(String args[]) {\n\t\twhile(sc.hasNextInt()){\n\t\t\tint n = sc.nextInt();\n\t\t\tint m = sc.nextInt();\n\t\t\tint l = sc.nextInt();\n\t\t\tlong temp1[][] = new long[n][m];\n\t\t\tlong temp2[][] = new long[m][l];\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\ttemp1[i][j] = sc.nextLong();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i=0;i<m;i++){\n\t\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\t\ttemp2[i][j]=sc.nextLong();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\t\tlong ans=0;\n\t\t\t\t\tfor (int k=0;k<m;k++) {\n\t\t\t\t\t\tans+=temp1[i][k]*temp2[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(j==l-1?\"%d%n\":\"%d \",ans);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] | import java.util.*;
public class Main {
private static Scanner sc=new Scanner(System.in);;
public static void main(String args[]) {
while(sc.hasNextInt()){
int n = sc.nextInt();
int m = sc.nextInt();
int l = sc.nextInt();
long temp1[][] = new long[n][m];
long temp2[][] = new long[m][l];
for (int i=0;i<n;i++) {
for (int j=0;j<m;j++) {
temp1[i][j] = sc.nextLong();
}
}
for (int i=0;i<m;i++){
for(int j=0;j<l;j++) {
temp2[i][j]=sc.nextLong();
}
}
for(int i=0;i<n;i++){
for(int j=0;j<l;j++) {
long ans=0;
for (int k=0;k<m;k++) {
ans+=temp1[i][k]*temp2[k][j];
}
System.out.printf(j==l-1?"%d%n":"%d ",ans);
}
}
}
}
} |
[
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,
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,
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,
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,
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,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
13,
17,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
278,
5
],
[
278,
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
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
8,
52
],
[
52,
53
],
[
52,
54
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
57,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
69,
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
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
87,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
94,
100
],
[
100,
101
],
[
100,
102
],
[
87,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
8,
117
],
[
117,
118
],
[
117,
119
],
[
8,
122
],
[
122,
123
],
[
122,
124
],
[
8,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
127,
135
],
[
135,
136
],
[
136,
137
],
[
127,
138
],
[
139,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
139,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
145,
150
],
[
150,
151
],
[
150,
152
],
[
145,
153
],
[
153,
154
],
[
154,
155
],
[
145,
156
],
[
157,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
161,
162
],
[
160,
163
],
[
157,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
164,
170
],
[
170,
171
],
[
170,
172
],
[
157,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
174,
178
],
[
173,
179
],
[
179,
180
],
[
180,
181
],
[
179,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
182,
186
],
[
8,
187
],
[
187,
188
],
[
187,
189
],
[
8,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
190,
195
],
[
195,
196
],
[
195,
197
],
[
190,
198
],
[
198,
199
],
[
199,
200
],
[
190,
201
],
[
202,
202
],
[
202,
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
],
[
215,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
219,
224
],
[
224,
225
],
[
224,
226
],
[
219,
227
],
[
227,
228
],
[
228,
229
],
[
219,
230
],
[
231,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
235,
239
],
[
234,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
240,
244
],
[
231,
245
],
[
245,
246
],
[
245,
247
],
[
215,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
251,
252
],
[
251,
253
],
[
248,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
257,
258
],
[
257,
259
],
[
255,
260
],
[
248,
261
],
[
261,
262
],
[
262,
263
],
[
263,
264
],
[
264,
265
],
[
264,
266
],
[
262,
267
],
[
267,
268
],
[
267,
269
],
[
202,
270
],
[
270,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
6,
275
],
[
275,
276
],
[
0,
277
],
[
277,
278
],
[
277,
279
]
] | [
"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\t\tint l = Integer.parseInt(string1[2]);\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[][] gyouB = new String[m][l];\n\t\tint[][] B = new int[m][l];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tString line3 = sc.nextLine();\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tString[] string = line3.split(\" \");\n\t\t\t\tgyouB[i][j] = string[j];\n\t\t\t\tB[i][j] = Integer.parseInt(gyouB[i][j]);\n\t\t\t}\n\n\t\t}\n\n\t\tlong AB = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlong C = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tAB = A[i][k] * B[k][j];\n\t\t\t\t\tC += AB;\n\t\t\t\t}\n\t\t\t\tif (j == l - 1) {\n\t\t\t\t\tSystem.out.print(C);\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(C + \" \");\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\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\t\tint l = Integer.parseInt(string1[2]);\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[][] gyouB = new String[m][l];\n\t\tint[][] B = new int[m][l];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tString line3 = sc.nextLine();\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tString[] string = line3.split(\" \");\n\t\t\t\tgyouB[i][j] = string[j];\n\t\t\t\tB[i][j] = Integer.parseInt(gyouB[i][j]);\n\t\t\t}\n\n\t\t}\n\n\t\tlong AB = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlong C = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tAB = A[i][k] * B[k][j];\n\t\t\t\t\tC += AB;\n\t\t\t\t}\n\t\t\t\tif (j == l - 1) {\n\t\t\t\t\tSystem.out.print(C);\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(C + \" \");\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\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\t\tint l = Integer.parseInt(string1[2]);\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[][] gyouB = new String[m][l];\n\t\tint[][] B = new int[m][l];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tString line3 = sc.nextLine();\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tString[] string = line3.split(\" \");\n\t\t\t\tgyouB[i][j] = string[j];\n\t\t\t\tB[i][j] = Integer.parseInt(gyouB[i][j]);\n\t\t\t}\n\n\t\t}\n\n\t\tlong AB = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlong C = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tAB = A[i][k] * B[k][j];\n\t\t\t\t\tC += AB;\n\t\t\t\t}\n\t\t\t\tif (j == l - 1) {\n\t\t\t\t\tSystem.out.print(C);\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(C + \" \");\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\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\t\tint l = Integer.parseInt(string1[2]);\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[][] gyouB = new String[m][l];\n\t\tint[][] B = new int[m][l];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tString line3 = sc.nextLine();\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tString[] string = line3.split(\" \");\n\t\t\t\tgyouB[i][j] = string[j];\n\t\t\t\tB[i][j] = Integer.parseInt(gyouB[i][j]);\n\t\t\t}\n\n\t\t}\n\n\t\tlong AB = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlong C = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tAB = A[i][k] * B[k][j];\n\t\t\t\t\tC += AB;\n\t\t\t\t}\n\t\t\t\tif (j == l - 1) {\n\t\t\t\t\tSystem.out.print(C);\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(C + \" \");\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line1 = sc.nextLine();",
"line1",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] 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",
"int l = Integer.parseInt(string1[2]);",
"l",
"Integer.parseInt(string1[2])",
"Integer.parseInt",
"Integer",
"string1[2]",
"string1",
"2",
"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[][] gyouB = new String[m][l];",
"gyouB",
"new String[m][l]",
"m",
"l",
"int[][] B = new int[m][l];",
"B",
"new int[m][l]",
"m",
"l",
"for (int i = 0; i < m; i++) {\n\t\t\tString line3 = sc.nextLine();\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tString[] string = line3.split(\" \");\n\t\t\t\tgyouB[i][j] = string[j];\n\t\t\t\tB[i][j] = Integer.parseInt(gyouB[i][j]);\n\t\t\t}\n\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\tfor (int j = 0; j < l; j++) {\n\t\t\t\tString[] string = line3.split(\" \");\n\t\t\t\tgyouB[i][j] = string[j];\n\t\t\t\tB[i][j] = Integer.parseInt(gyouB[i][j]);\n\t\t\t}\n\n\t\t}",
"{\n\t\t\tString line3 = sc.nextLine();\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tString[] string = line3.split(\" \");\n\t\t\t\tgyouB[i][j] = string[j];\n\t\t\t\tB[i][j] = Integer.parseInt(gyouB[i][j]);\n\t\t\t}\n\n\t\t}",
"String line3 = sc.nextLine();",
"line3",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for (int j = 0; j < l; j++) {\n\t\t\t\tString[] string = line3.split(\" \");\n\t\t\t\tgyouB[i][j] = string[j];\n\t\t\t\tB[i][j] = Integer.parseInt(gyouB[i][j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tString[] string = line3.split(\" \");\n\t\t\t\tgyouB[i][j] = string[j];\n\t\t\t\tB[i][j] = Integer.parseInt(gyouB[i][j]);\n\t\t\t}",
"{\n\t\t\t\tString[] string = line3.split(\" \");\n\t\t\t\tgyouB[i][j] = string[j];\n\t\t\t\tB[i][j] = Integer.parseInt(gyouB[i][j]);\n\t\t\t}",
"String[] string = line3.split(\" \");",
"string",
"line3.split(\" \")",
"line3.split",
"line3",
"\" \"",
"gyouB[i][j] = string[j]",
"gyouB[i][j]",
"gyouB[i]",
"gyouB",
"i",
"j",
"string[j]",
"string",
"j",
"B[i][j] = Integer.parseInt(gyouB[i][j])",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"Integer.parseInt(gyouB[i][j])",
"Integer.parseInt",
"Integer",
"gyouB[i][j]",
"gyouB[i]",
"gyouB",
"i",
"j",
"long AB = 0;",
"AB",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlong C = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tAB = A[i][k] * B[k][j];\n\t\t\t\t\tC += AB;\n\t\t\t\t}\n\t\t\t\tif (j == l - 1) {\n\t\t\t\t\tSystem.out.print(C);\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(C + \" \");\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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 C = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tAB = A[i][k] * B[k][j];\n\t\t\t\t\tC += AB;\n\t\t\t\t}\n\t\t\t\tif (j == l - 1) {\n\t\t\t\t\tSystem.out.print(C);\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(C + \" \");\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlong C = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tAB = A[i][k] * B[k][j];\n\t\t\t\t\tC += AB;\n\t\t\t\t}\n\t\t\t\tif (j == l - 1) {\n\t\t\t\t\tSystem.out.print(C);\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(C + \" \");\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for (int j = 0; j < l; j++) {\n\t\t\t\tlong C = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tAB = A[i][k] * B[k][j];\n\t\t\t\t\tC += AB;\n\t\t\t\t}\n\t\t\t\tif (j == l - 1) {\n\t\t\t\t\tSystem.out.print(C);\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(C + \" \");\n\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tlong C = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tAB = A[i][k] * B[k][j];\n\t\t\t\t\tC += AB;\n\t\t\t\t}\n\t\t\t\tif (j == l - 1) {\n\t\t\t\t\tSystem.out.print(C);\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(C + \" \");\n\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tlong C = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tAB = A[i][k] * B[k][j];\n\t\t\t\t\tC += AB;\n\t\t\t\t}\n\t\t\t\tif (j == l - 1) {\n\t\t\t\t\tSystem.out.print(C);\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(C + \" \");\n\n\t\t\t\t}\n\t\t\t}",
"long C = 0;",
"C",
"0",
"for (int k = 0; k < m; k++) {\n\t\t\t\t\tAB = A[i][k] * B[k][j];\n\t\t\t\t\tC += AB;\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\tAB = A[i][k] * B[k][j];\n\t\t\t\t\tC += AB;\n\t\t\t\t}",
"{\n\t\t\t\t\tAB = A[i][k] * B[k][j];\n\t\t\t\t\tC += AB;\n\t\t\t\t}",
"AB = A[i][k] * B[k][j]",
"AB",
"A[i][k] * B[k][j]",
"A[i][k]",
"A[i]",
"A",
"i",
"k",
"B[k][j]",
"B[k]",
"B",
"k",
"j",
"C += AB",
"C",
"AB",
"if (j == l - 1) {\n\t\t\t\t\tSystem.out.print(C);\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(C + \" \");\n\n\t\t\t\t}",
"j == l - 1",
"j",
"l - 1",
"l",
"1",
"{\n\t\t\t\t\tSystem.out.print(C);\n\n\t\t\t\t}",
"System.out.print(C)",
"System.out.print",
"System.out",
"System",
"System.out",
"C",
"{\n\t\t\t\t\tSystem.out.print(C + \" \");\n\n\t\t\t\t}",
"System.out.print(C + \" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"C + \" \"",
"C",
"\" \"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"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\t\tint l = Integer.parseInt(string1[2]);\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[][] gyouB = new String[m][l];\n\t\tint[][] B = new int[m][l];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tString line3 = sc.nextLine();\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tString[] string = line3.split(\" \");\n\t\t\t\tgyouB[i][j] = string[j];\n\t\t\t\tB[i][j] = Integer.parseInt(gyouB[i][j]);\n\t\t\t}\n\n\t\t}\n\n\t\tlong AB = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlong C = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tAB = A[i][k] * B[k][j];\n\t\t\t\t\tC += AB;\n\t\t\t\t}\n\t\t\t\tif (j == l - 1) {\n\t\t\t\t\tSystem.out.print(C);\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(C + \" \");\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\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\t\tint l = Integer.parseInt(string1[2]);\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[][] gyouB = new String[m][l];\n\t\tint[][] B = new int[m][l];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tString line3 = sc.nextLine();\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tString[] string = line3.split(\" \");\n\t\t\t\tgyouB[i][j] = string[j];\n\t\t\t\tB[i][j] = Integer.parseInt(gyouB[i][j]);\n\t\t\t}\n\n\t\t}\n\n\t\tlong AB = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlong C = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tAB = A[i][k] * B[k][j];\n\t\t\t\t\tC += AB;\n\t\t\t\t}\n\t\t\t\tif (j == l - 1) {\n\t\t\t\t\tSystem.out.print(C);\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(C + \" \");\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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);
String line1 = sc.nextLine();
String[] string1 = line1.split(" ");
int n = Integer.parseInt(string1[0]);
int m = Integer.parseInt(string1[1]);
int l = Integer.parseInt(string1[2]);
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[][] gyouB = new String[m][l];
int[][] B = new int[m][l];
for (int i = 0; i < m; i++) {
String line3 = sc.nextLine();
for (int j = 0; j < l; j++) {
String[] string = line3.split(" ");
gyouB[i][j] = string[j];
B[i][j] = Integer.parseInt(gyouB[i][j]);
}
}
long AB = 0;
for (int i = 0; i < n; i++) {
for (int j = 0; j < l; j++) {
long C = 0;
for (int k = 0; k < m; k++) {
AB = A[i][k] * B[k][j];
C += AB;
}
if (j == l - 1) {
System.out.print(C);
} else {
System.out.print(C + " ");
}
}
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,
4,
18,
13,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
4,
18,
18,
13,
13,
2,
18,
18,
13,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
211,
5
],
[
211,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
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
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
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
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
112,
120
],
[
120,
121
],
[
121,
122
],
[
112,
123
],
[
124,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
125,
136
],
[
137,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
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
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
163,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
137,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
177,
179
],
[
174,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
181,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
186,
190
],
[
180,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
174,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
196,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
202,
206
],
[
201,
207
],
[
6,
208
],
[
208,
209
],
[
0,
210
],
[
210,
211
],
[
210,
212
]
] | [
"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(),m=sc.nextInt(),l=sc.nextInt();\n\t\tlong[][] A=new long[n][m],B=new long[m][l],C=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\tA[i][j]=sc.nextInt();\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\tB[i][j]=sc.nextInt();\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\tfor(int k=0;k<m;k++){\n\t\t\t\t\tC[i][j]=C[i][j]+A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j==l-1){\n\t\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else\n\t\t\t\t\tSystem.out.print(C[i][j]+\" \");\n\t\t\t}\n\t\t}\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[]args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt(),m=sc.nextInt(),l=sc.nextInt();\n\t\tlong[][] A=new long[n][m],B=new long[m][l],C=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\tA[i][j]=sc.nextInt();\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\tB[i][j]=sc.nextInt();\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\tfor(int k=0;k<m;k++){\n\t\t\t\t\tC[i][j]=C[i][j]+A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j==l-1){\n\t\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else\n\t\t\t\t\tSystem.out.print(C[i][j]+\" \");\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(),m=sc.nextInt(),l=sc.nextInt();\n\t\tlong[][] A=new long[n][m],B=new long[m][l],C=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\tA[i][j]=sc.nextInt();\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\tB[i][j]=sc.nextInt();\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\tfor(int k=0;k<m;k++){\n\t\t\t\t\tC[i][j]=C[i][j]+A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j==l-1){\n\t\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else\n\t\t\t\t\tSystem.out.print(C[i][j]+\" \");\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt(),m=sc.nextInt(),l=sc.nextInt();\n\t\tlong[][] A=new long[n][m],B=new long[m][l],C=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\tA[i][j]=sc.nextInt();\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\tB[i][j]=sc.nextInt();\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\tfor(int k=0;k<m;k++){\n\t\t\t\t\tC[i][j]=C[i][j]+A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j==l-1){\n\t\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else\n\t\t\t\t\tSystem.out.print(C[i][j]+\" \");\n\t\t\t}\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",
"m=sc.nextInt()",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"l=sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long[][] A=new long[n][m]",
"A",
"new long[n][m]",
"n",
"m",
"B=new long[m][l]",
"B",
"new long[m][l]",
"m",
"l",
"C=new long[n][l];",
"C",
"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\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\tfor(int j=0;j<l;j++){\n\t\t\t\tB[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\tB[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\tB[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int j=0;j<l;j++){\n\t\t\t\tB[i][j]=sc.nextInt();\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tB[i][j]=sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tB[i][j]=sc.nextInt();\n\t\t\t}",
"B[i][j]=sc.nextInt()",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\tC[i][j]=C[i][j]+A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j==l-1){\n\t\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else\n\t\t\t\t\tSystem.out.print(C[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<l;j++){\n\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\tC[i][j]=C[i][j]+A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j==l-1){\n\t\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else\n\t\t\t\t\tSystem.out.print(C[i][j]+\" \");\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\tC[i][j]=C[i][j]+A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j==l-1){\n\t\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else\n\t\t\t\t\tSystem.out.print(C[i][j]+\" \");\n\t\t\t}\n\t\t}",
"for(int j=0;j<l;j++){\n\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\tC[i][j]=C[i][j]+A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j==l-1){\n\t\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else\n\t\t\t\t\tSystem.out.print(C[i][j]+\" \");\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\tC[i][j]=C[i][j]+A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j==l-1){\n\t\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else\n\t\t\t\t\tSystem.out.print(C[i][j]+\" \");\n\t\t\t}",
"{\n\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\tC[i][j]=C[i][j]+A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j==l-1){\n\t\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else\n\t\t\t\t\tSystem.out.print(C[i][j]+\" \");\n\t\t\t}",
"for(int k=0;k<m;k++){\n\t\t\t\t\tC[i][j]=C[i][j]+A[i][k]*B[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\tC[i][j]=C[i][j]+A[i][k]*B[k][j];\n\t\t\t\t}",
"{\n\t\t\t\t\tC[i][j]=C[i][j]+A[i][k]*B[k][j];\n\t\t\t\t}",
"C[i][j]=C[i][j]+A[i][k]*B[k][j]",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"C[i][j]+A[i][k]*B[k][j]",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"A[i][k]*B[k][j]",
"A[i][k]",
"A[i]",
"A",
"i",
"k",
"B[k][j]",
"B[k]",
"B",
"k",
"j",
"if(j==l-1){\n\t\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else\n\t\t\t\t\tSystem.out.print(C[i][j]+\" \");",
"j==l-1",
"j",
"l-1",
"l",
"1",
"{\n\t\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}",
"System.out.print(C[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"System.out.print(C[i][j]+\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"C[i][j]+\" \"",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"\" \"",
"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(),m=sc.nextInt(),l=sc.nextInt();\n\t\tlong[][] A=new long[n][m],B=new long[m][l],C=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\tA[i][j]=sc.nextInt();\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\tB[i][j]=sc.nextInt();\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\tfor(int k=0;k<m;k++){\n\t\t\t\t\tC[i][j]=C[i][j]+A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j==l-1){\n\t\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else\n\t\t\t\t\tSystem.out.print(C[i][j]+\" \");\n\t\t\t}\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(),m=sc.nextInt(),l=sc.nextInt();\n\t\tlong[][] A=new long[n][m],B=new long[m][l],C=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\tA[i][j]=sc.nextInt();\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\tB[i][j]=sc.nextInt();\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\tfor(int k=0;k<m;k++){\n\t\t\t\t\tC[i][j]=C[i][j]+A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j==l-1){\n\t\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else\n\t\t\t\t\tSystem.out.print(C[i][j]+\" \");\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[]args){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt(),m=sc.nextInt(),l=sc.nextInt();
long[][] A=new long[n][m],B=new long[m][l],C=new long[n][l];
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++){
for(int j=0;j<l;j++){
B[i][j]=sc.nextInt();
}
}
for(int i=0;i<n;i++){
for(int j=0;j<l;j++){
for(int k=0;k<m;k++){
C[i][j]=C[i][j]+A[i][k]*B[k][j];
}
if(j==l-1){
System.out.print(C[i][j]);
System.out.println();
}else
System.out.print(C[i][j]+" ");
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
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,
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,
4,
13,
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,
4,
18,
18,
13,
13,
18,
18,
13,
13,
2,
13,
17,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
228,
5
],
[
228,
6
],
[
6,
7
],
[
6,
8
],
[
228,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
228,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
228,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
228,
24
],
[
24,
25
],
[
24,
26
],
[
228,
29
],
[
29,
30
],
[
29,
31
],
[
228,
34
],
[
34,
35
],
[
34,
36
],
[
228,
39
],
[
39,
40
],
[
39,
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
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
41,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
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
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
41,
112
],
[
112,
113
],
[
41,
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
],
[
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
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
148,
152
],
[
147,
153
],
[
126,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
163,
164
],
[
163,
165
],
[
39,
166
],
[
166,
167
],
[
228,
168
],
[
168,
169
],
[
168,
170
],
[
170,
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
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
184,
189
],
[
189,
190
],
[
189,
191
],
[
184,
192
],
[
192,
193
],
[
193,
194
],
[
184,
195
],
[
196,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
197,
202
],
[
202,
203
],
[
202,
204
],
[
197,
205
],
[
205,
206
],
[
206,
207
],
[
197,
208
],
[
209,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
211,
215
],
[
210,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
217,
221
],
[
216,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
222,
226
],
[
0,
227
],
[
227,
228
],
[
227,
229
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tprivate static Scanner sc=new Scanner(System.in);\n\tprivate static int n=sc.nextInt();\n\tprivate static int m=sc.nextInt();\n\tprivate static int l=sc.nextInt();\n\tprivate static int[][] a=new int[n][m];\n\tprivate static int[][] b=new int[m][l];\n\tprivate static long[][] c=new long[n][l];\n\tpublic static void main(String[] args){\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\ta[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<m;i++){\n\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\tb[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tmultiply();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int k=0;k<l-1;k++){\n\t\t\t\tSystem.out.print(c[i][k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(c[i][l-1]);\n\t\t}\n\t}\n\tprivate static void multiply(){\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int k=0;k<l;k++){\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tc[i][k]+=a[i][j]*b[j][k];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tprivate static Scanner sc=new Scanner(System.in);\n\tprivate static int n=sc.nextInt();\n\tprivate static int m=sc.nextInt();\n\tprivate static int l=sc.nextInt();\n\tprivate static int[][] a=new int[n][m];\n\tprivate static int[][] b=new int[m][l];\n\tprivate static long[][] c=new long[n][l];\n\tpublic static void main(String[] args){\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\ta[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<m;i++){\n\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\tb[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tmultiply();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int k=0;k<l-1;k++){\n\t\t\t\tSystem.out.print(c[i][k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(c[i][l-1]);\n\t\t}\n\t}\n\tprivate static void multiply(){\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int k=0;k<l;k++){\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tc[i][k]+=a[i][j]*b[j][k];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"private static Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"private static int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"private static int m=sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"private static int l=sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"private static int[][] a=new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"private static int[][] b=new int[m][l];",
"b",
"new int[m][l]",
"m",
"l",
"private static long[][] c=new long[n][l];",
"c",
"new long[n][l]",
"n",
"l",
"public static void main(String[] args){\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\ta[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<m;i++){\n\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\tb[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tmultiply();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int k=0;k<l-1;k++){\n\t\t\t\tSystem.out.print(c[i][k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(c[i][l-1]);\n\t\t}\n\t}",
"main",
"{\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\ta[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<m;i++){\n\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\tb[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tmultiply();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int k=0;k<l-1;k++){\n\t\t\t\tSystem.out.print(c[i][k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(c[i][l-1]);\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\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\tfor(int j=0;j<l;j++){\n\t\t\t\tb[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\tb[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\tb[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int j=0;j<l;j++){\n\t\t\t\tb[i][j]=sc.nextInt();\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tb[i][j]=sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tb[i][j]=sc.nextInt();\n\t\t\t}",
"b[i][j]=sc.nextInt()",
"b[i][j]",
"b[i]",
"b",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"multiply()",
"multiply",
"for(int i=0;i<n;i++){\n\t\t\tfor(int k=0;k<l-1;k++){\n\t\t\t\tSystem.out.print(c[i][k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(c[i][l-1]);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int k=0;k<l-1;k++){\n\t\t\t\tSystem.out.print(c[i][k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(c[i][l-1]);\n\t\t}",
"{\n\t\t\tfor(int k=0;k<l-1;k++){\n\t\t\t\tSystem.out.print(c[i][k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(c[i][l-1]);\n\t\t}",
"for(int k=0;k<l-1;k++){\n\t\t\t\tSystem.out.print(c[i][k]+\" \");\n\t\t\t}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<l-1",
"k",
"l-1",
"l",
"1",
"k++",
"k++",
"k",
"{\n\t\t\t\tSystem.out.print(c[i][k]+\" \");\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(c[i][k]+\" \");\n\t\t\t}",
"System.out.print(c[i][k]+\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"c[i][k]+\" \"",
"c[i][k]",
"c[i]",
"c",
"i",
"k",
"\" \"",
"System.out.println(c[i][l-1])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[i][l-1]",
"c[i]",
"c",
"i",
"l-1",
"l",
"1",
"String[] args",
"args",
"private static void multiply(){\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int k=0;k<l;k++){\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tc[i][k]+=a[i][j]*b[j][k];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"multiply",
"{\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int k=0;k<l;k++){\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tc[i][k]+=a[i][j]*b[j][k];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"for(int i=0;i<n;i++){\n\t\t\tfor(int k=0;k<l;k++){\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tc[i][k]+=a[i][j]*b[j][k];\n\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 k=0;k<l;k++){\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tc[i][k]+=a[i][j]*b[j][k];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int k=0;k<l;k++){\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tc[i][k]+=a[i][j]*b[j][k];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int k=0;k<l;k++){\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tc[i][k]+=a[i][j]*b[j][k];\n\t\t\t\t}\n\t\t\t}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<l",
"k",
"l",
"k++",
"k++",
"k",
"{\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tc[i][k]+=a[i][j]*b[j][k];\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tc[i][k]+=a[i][j]*b[j][k];\n\t\t\t\t}\n\t\t\t}",
"for(int j=0;j<m;j++){\n\t\t\t\t\tc[i][k]+=a[i][j]*b[j][k];\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[i][k]+=a[i][j]*b[j][k];\n\t\t\t\t}",
"{\n\t\t\t\t\tc[i][k]+=a[i][j]*b[j][k];\n\t\t\t\t}",
"c[i][k]+=a[i][j]*b[j][k]",
"c[i][k]",
"c[i]",
"c",
"i",
"k",
"a[i][j]*b[j][k]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j][k]",
"b[j]",
"b",
"j",
"k",
"public class Main {\n\tprivate static Scanner sc=new Scanner(System.in);\n\tprivate static int n=sc.nextInt();\n\tprivate static int m=sc.nextInt();\n\tprivate static int l=sc.nextInt();\n\tprivate static int[][] a=new int[n][m];\n\tprivate static int[][] b=new int[m][l];\n\tprivate static long[][] c=new long[n][l];\n\tpublic static void main(String[] args){\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\ta[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<m;i++){\n\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\tb[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tmultiply();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int k=0;k<l-1;k++){\n\t\t\t\tSystem.out.print(c[i][k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(c[i][l-1]);\n\t\t}\n\t}\n\tprivate static void multiply(){\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int k=0;k<l;k++){\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tc[i][k]+=a[i][j]*b[j][k];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main {\n\tprivate static Scanner sc=new Scanner(System.in);\n\tprivate static int n=sc.nextInt();\n\tprivate static int m=sc.nextInt();\n\tprivate static int l=sc.nextInt();\n\tprivate static int[][] a=new int[n][m];\n\tprivate static int[][] b=new int[m][l];\n\tprivate static long[][] c=new long[n][l];\n\tpublic static void main(String[] args){\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\ta[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<m;i++){\n\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\tb[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tmultiply();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int k=0;k<l-1;k++){\n\t\t\t\tSystem.out.print(c[i][k]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(c[i][l-1]);\n\t\t}\n\t}\n\tprivate static void multiply(){\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int k=0;k<l;k++){\n\t\t\t\tfor(int j=0;j<m;j++){\n\t\t\t\t\tc[i][k]+=a[i][j]*b[j][k];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
private static Scanner sc=new Scanner(System.in);
private static int n=sc.nextInt();
private static int m=sc.nextInt();
private static int l=sc.nextInt();
private static int[][] a=new int[n][m];
private static int[][] b=new int[m][l];
private static long[][] c=new long[n][l];
public static void main(String[] args){
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++){
for(int j=0;j<l;j++){
b[i][j]=sc.nextInt();
}
}
multiply();
for(int i=0;i<n;i++){
for(int k=0;k<l-1;k++){
System.out.print(c[i][k]+" ");
}
System.out.println(c[i][l-1]);
}
}
private static void multiply(){
for(int i=0;i<n;i++){
for(int k=0;k<l;k++){
for(int j=0;j<m;j++){
c[i][k]+=a[i][j]*b[j][k];
}
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
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,
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,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
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,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
14,
2,
2,
13,
17,
13,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
267,
8
],
[
267,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
11,
19
],
[
19,
20
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
11,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
11,
36
],
[
36,
37
],
[
36,
38
],
[
11,
41
],
[
41,
42
],
[
41,
43
],
[
11,
46
],
[
46,
47
],
[
46,
48
],
[
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
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
64,
75
],
[
76,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
77,
83
],
[
11,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
84,
92
],
[
92,
93
],
[
93,
94
],
[
84,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
97,
105
],
[
105,
106
],
[
106,
107
],
[
97,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
110,
116
],
[
116,
117
],
[
117,
118
],
[
11,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
119,
127
],
[
127,
128
],
[
128,
129
],
[
119,
130
],
[
131,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
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
],
[
146,
150
],
[
145,
151
],
[
151,
152
],
[
152,
153
],
[
11,
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
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
167,
175
],
[
175,
176
],
[
176,
177
],
[
167,
178
],
[
179,
179
],
[
179,
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
],
[
195,
196
],
[
195,
197
],
[
194,
198
],
[
193,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
200,
204
],
[
199,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
205,
209
],
[
11,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
210,
215
],
[
215,
216
],
[
215,
217
],
[
210,
218
],
[
218,
219
],
[
219,
220
],
[
210,
221
],
[
222,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
223,
228
],
[
228,
229
],
[
228,
230
],
[
223,
231
],
[
231,
232
],
[
232,
233
],
[
223,
234
],
[
235,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
236,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
241,
245
],
[
235,
246
],
[
246,
247
],
[
247,
248
],
[
248,
249
],
[
248,
250
],
[
247,
251
],
[
246,
252
],
[
252,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
253,
258
],
[
222,
259
],
[
259,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
9,
264
],
[
264,
265
],
[
0,
266
],
[
266,
267
],
[
266,
268
]
] | [
"import java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n,m,l;\n\t\tn = sc.nextInt();\n\t\tm = sc.nextInt();\n\t\tl = sc.nextInt();\n\t\tlong matrix_a[][] = new long[n][m];\n\t\tlong matrix_b[][] = new long[m][l];\n\t\tlong matrix_c[][] = new long[n][l];\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tmatrix_c[i][j] = 0;\n\t\t\t}\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_a[i][j] = sc.nextInt();\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\tmatrix_b[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tmatrix_c[i][j] += matrix_a[i][k] * matrix_b[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tSystem.out.print(matrix_c[i][j]);\n\t\t\t\tif(j + 1 != l){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\n\t}\n\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 IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n,m,l;\n\t\tn = sc.nextInt();\n\t\tm = sc.nextInt();\n\t\tl = sc.nextInt();\n\t\tlong matrix_a[][] = new long[n][m];\n\t\tlong matrix_b[][] = new long[m][l];\n\t\tlong matrix_c[][] = new long[n][l];\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tmatrix_c[i][j] = 0;\n\t\t\t}\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_a[i][j] = sc.nextInt();\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\tmatrix_b[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tmatrix_c[i][j] += matrix_a[i][k] * matrix_b[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tSystem.out.print(matrix_c[i][j]);\n\t\t\t\tif(j + 1 != l){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n,m,l;\n\t\tn = sc.nextInt();\n\t\tm = sc.nextInt();\n\t\tl = sc.nextInt();\n\t\tlong matrix_a[][] = new long[n][m];\n\t\tlong matrix_b[][] = new long[m][l];\n\t\tlong matrix_c[][] = new long[n][l];\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tmatrix_c[i][j] = 0;\n\t\t\t}\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_a[i][j] = sc.nextInt();\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\tmatrix_b[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tmatrix_c[i][j] += matrix_a[i][k] * matrix_b[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tSystem.out.print(matrix_c[i][j]);\n\t\t\t\tif(j + 1 != l){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n,m,l;\n\t\tn = sc.nextInt();\n\t\tm = sc.nextInt();\n\t\tl = sc.nextInt();\n\t\tlong matrix_a[][] = new long[n][m];\n\t\tlong matrix_b[][] = new long[m][l];\n\t\tlong matrix_c[][] = new long[n][l];\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tmatrix_c[i][j] = 0;\n\t\t\t}\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_a[i][j] = sc.nextInt();\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\tmatrix_b[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tmatrix_c[i][j] += matrix_a[i][k] * matrix_b[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tSystem.out.print(matrix_c[i][j]);\n\t\t\t\tif(j + 1 != l){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n",
"n",
"m",
"m",
"l;",
"l",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"m = sc.nextInt()",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"l = sc.nextInt()",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long matrix_a[][] = new long[n][m];",
"matrix_a",
"new long[n][m]",
"n",
"m",
"long matrix_b[][] = new long[m][l];",
"matrix_b",
"new long[m][l]",
"m",
"l",
"long matrix_c[][] = new long[n][l];",
"matrix_c",
"new long[n][l]",
"n",
"l",
"for(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tmatrix_c[i][j] = 0;\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\tmatrix_c[i][j] = 0;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tmatrix_c[i][j] = 0;\n\t\t\t}\n\t\t}",
"for(int j = 0; j < l; j++){\n\t\t\t\tmatrix_c[i][j] = 0;\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tmatrix_c[i][j] = 0;\n\t\t\t}",
"{\n\t\t\t\tmatrix_c[i][j] = 0;\n\t\t\t}",
"matrix_c[i][j] = 0",
"matrix_c[i][j]",
"matrix_c[i]",
"matrix_c",
"i",
"j",
"0",
"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] = 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\tmatrix_a[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\tmatrix_a[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0; j < m; j++){\n\t\t\t\tmatrix_a[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\tmatrix_a[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tmatrix_a[i][j] = sc.nextInt();\n\t\t\t}",
"matrix_a[i][j] = sc.nextInt()",
"matrix_a[i][j]",
"matrix_a[i]",
"matrix_a",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < m; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tmatrix_b[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tmatrix_b[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tmatrix_b[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0; j < l; j++){\n\t\t\t\tmatrix_b[i][j] = sc.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tmatrix_b[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tmatrix_b[i][j] = sc.nextInt();\n\t\t\t}",
"matrix_b[i][j] = sc.nextInt()",
"matrix_b[i][j]",
"matrix_b[i]",
"matrix_b",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tmatrix_c[i][j] += matrix_a[i][k] * matrix_b[k][j];\n\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 < l; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tmatrix_c[i][j] += matrix_a[i][k] * matrix_b[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tmatrix_c[i][j] += matrix_a[i][k] * matrix_b[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int j = 0; j < l; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tmatrix_c[i][j] += matrix_a[i][k] * matrix_b[k][j];\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tmatrix_c[i][j] += matrix_a[i][k] * matrix_b[k][j];\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tmatrix_c[i][j] += matrix_a[i][k] * matrix_b[k][j];\n\t\t\t\t}\n\t\t\t}",
"for(int k = 0; k < m; k++){\n\t\t\t\t\tmatrix_c[i][j] += matrix_a[i][k] * matrix_b[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\tmatrix_c[i][j] += matrix_a[i][k] * matrix_b[k][j];\n\t\t\t\t}",
"{\n\t\t\t\t\tmatrix_c[i][j] += matrix_a[i][k] * matrix_b[k][j];\n\t\t\t\t}",
"matrix_c[i][j] += matrix_a[i][k] * matrix_b[k][j]",
"matrix_c[i][j]",
"matrix_c[i]",
"matrix_c",
"i",
"j",
"matrix_a[i][k] * matrix_b[k][j]",
"matrix_a[i][k]",
"matrix_a[i]",
"matrix_a",
"i",
"k",
"matrix_b[k][j]",
"matrix_b[k]",
"matrix_b",
"k",
"j",
"for(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tSystem.out.print(matrix_c[i][j]);\n\t\t\t\tif(j + 1 != l){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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\tSystem.out.print(matrix_c[i][j]);\n\t\t\t\tif(j + 1 != l){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tSystem.out.print(matrix_c[i][j]);\n\t\t\t\tif(j + 1 != l){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for(int j = 0; j < l; j++){\n\t\t\t\tSystem.out.print(matrix_c[i][j]);\n\t\t\t\tif(j + 1 != l){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(matrix_c[i][j]);\n\t\t\t\tif(j + 1 != l){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(matrix_c[i][j]);\n\t\t\t\tif(j + 1 != l){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"System.out.print(matrix_c[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"matrix_c[i][j]",
"matrix_c[i]",
"matrix_c",
"i",
"j",
"if(j + 1 != l){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"j + 1 != l",
"j + 1",
"j",
"1",
"l",
"{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n,m,l;\n\t\tn = sc.nextInt();\n\t\tm = sc.nextInt();\n\t\tl = sc.nextInt();\n\t\tlong matrix_a[][] = new long[n][m];\n\t\tlong matrix_b[][] = new long[m][l];\n\t\tlong matrix_c[][] = new long[n][l];\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tmatrix_c[i][j] = 0;\n\t\t\t}\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_a[i][j] = sc.nextInt();\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\tmatrix_b[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tmatrix_c[i][j] += matrix_a[i][k] * matrix_b[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tSystem.out.print(matrix_c[i][j]);\n\t\t\t\tif(j + 1 != l){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n,m,l;\n\t\tn = sc.nextInt();\n\t\tm = sc.nextInt();\n\t\tl = sc.nextInt();\n\t\tlong matrix_a[][] = new long[n][m];\n\t\tlong matrix_b[][] = new long[m][l];\n\t\tlong matrix_c[][] = new long[n][l];\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tmatrix_c[i][j] = 0;\n\t\t\t}\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_a[i][j] = sc.nextInt();\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\tmatrix_b[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tmatrix_c[i][j] += matrix_a[i][k] * matrix_b[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tSystem.out.print(matrix_c[i][j]);\n\t\t\t\tif(j + 1 != l){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\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,m,l;
n = sc.nextInt();
m = sc.nextInt();
l = sc.nextInt();
long matrix_a[][] = new long[n][m];
long matrix_b[][] = new long[m][l];
long matrix_c[][] = new long[n][l];
for(int i = 0; i < n; i++){
for(int j = 0; j < l; j++){
matrix_c[i][j] = 0;
}
}
for(int i = 0; i < n; i++){
for(int j = 0; j < m; j++){
matrix_a[i][j] = sc.nextInt();
}
}
for(int i = 0; i < m; i++){
for(int j = 0; j < l; j++){
matrix_b[i][j] = sc.nextInt();
}
}
for(int i = 0; i < n; i++){
for(int j = 0; j < l; j++){
for(int k = 0; k < m; k++){
matrix_c[i][j] += matrix_a[i][k] * matrix_b[k][j];
}
}
}
for(int i = 0; i < n; i++){
for(int j = 0; j < l; j++){
System.out.print(matrix_c[i][j]);
if(j + 1 != l){
System.out.print(" ");
}
}
System.out.println();
}
}
} |
[
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,
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,
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,
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,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
13,
30,
4,
18,
18,
13,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
202,
5
],
[
202,
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
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
34,
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
],
[
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
],
[
68,
72
],
[
67,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
77,
78
],
[
8,
79
],
[
79,
80
],
[
79,
81
],
[
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
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
97,
105
],
[
105,
106
],
[
106,
107
],
[
97,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
110,
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
],
[
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
],
[
148,
150
],
[
147,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
156,
157
],
[
156,
158
],
[
151,
159
],
[
159,
160
],
[
160,
161
],
[
151,
162
],
[
163,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
166,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
147,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
180,
182
],
[
177,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
184,
189
],
[
184,
190
],
[
177,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
192,
197
],
[
192,
198
],
[
6,
199
],
[
199,
200
],
[
0,
201
],
[
201,
202
],
[
201,
203
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n int l = Integer.parseInt(sc.next());\n\n int[][] A = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n int[][] B = new int[m][l];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long tmp = 0;\n for (int k = 0; k < m; k++) {\n tmp += A[i][k] * B[k][j];\n }\n\n if (j == l - 1) {\n System.out.printf(\"%d\\n\", tmp);\n } else {\n System.out.printf(\"%d \", tmp);\n }\n }\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n int l = Integer.parseInt(sc.next());\n\n int[][] A = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n int[][] B = new int[m][l];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long tmp = 0;\n for (int k = 0; k < m; k++) {\n tmp += A[i][k] * B[k][j];\n }\n\n if (j == l - 1) {\n System.out.printf(\"%d\\n\", tmp);\n } else {\n System.out.printf(\"%d \", tmp);\n }\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n int l = Integer.parseInt(sc.next());\n\n int[][] A = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n int[][] B = new int[m][l];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long tmp = 0;\n for (int k = 0; k < m; k++) {\n tmp += A[i][k] * B[k][j];\n }\n\n if (j == l - 1) {\n System.out.printf(\"%d\\n\", tmp);\n } else {\n System.out.printf(\"%d \", tmp);\n }\n }\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n int l = Integer.parseInt(sc.next());\n\n int[][] A = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n int[][] B = new int[m][l];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long tmp = 0;\n for (int k = 0; k < m; k++) {\n tmp += A[i][k] * B[k][j];\n }\n\n if (j == l - 1) {\n System.out.printf(\"%d\\n\", tmp);\n } else {\n System.out.printf(\"%d \", tmp);\n }\n }\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.next());",
"n",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int m = Integer.parseInt(sc.next());",
"m",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int l = Integer.parseInt(sc.next());",
"l",
"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++) {\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",
"int[][] B = new int[m][l];",
"B",
"new int[m][l]",
"m",
"l",
"for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(sc.next());\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(sc.next());\n }\n }",
"{\n for (int j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(sc.next());\n }\n }",
"for (int j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(sc.next());\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n B[i][j] = Integer.parseInt(sc.next());\n }",
"{\n B[i][j] = Integer.parseInt(sc.next());\n }",
"B[i][j] = Integer.parseInt(sc.next())",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long tmp = 0;\n for (int k = 0; k < m; k++) {\n tmp += A[i][k] * B[k][j];\n }\n\n if (j == l - 1) {\n System.out.printf(\"%d\\n\", tmp);\n } else {\n System.out.printf(\"%d \", tmp);\n }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < l; j++) {\n long tmp = 0;\n for (int k = 0; k < m; k++) {\n tmp += A[i][k] * B[k][j];\n }\n\n if (j == l - 1) {\n System.out.printf(\"%d\\n\", tmp);\n } else {\n System.out.printf(\"%d \", tmp);\n }\n }\n }",
"{\n for (int j = 0; j < l; j++) {\n long tmp = 0;\n for (int k = 0; k < m; k++) {\n tmp += A[i][k] * B[k][j];\n }\n\n if (j == l - 1) {\n System.out.printf(\"%d\\n\", tmp);\n } else {\n System.out.printf(\"%d \", tmp);\n }\n }\n }",
"for (int j = 0; j < l; j++) {\n long tmp = 0;\n for (int k = 0; k < m; k++) {\n tmp += A[i][k] * B[k][j];\n }\n\n if (j == l - 1) {\n System.out.printf(\"%d\\n\", tmp);\n } else {\n System.out.printf(\"%d \", tmp);\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n long tmp = 0;\n for (int k = 0; k < m; k++) {\n tmp += A[i][k] * B[k][j];\n }\n\n if (j == l - 1) {\n System.out.printf(\"%d\\n\", tmp);\n } else {\n System.out.printf(\"%d \", tmp);\n }\n }",
"{\n long tmp = 0;\n for (int k = 0; k < m; k++) {\n tmp += A[i][k] * B[k][j];\n }\n\n if (j == l - 1) {\n System.out.printf(\"%d\\n\", tmp);\n } else {\n System.out.printf(\"%d \", tmp);\n }\n }",
"long tmp = 0;",
"tmp",
"0",
"for (int k = 0; k < m; k++) {\n tmp += A[i][k] * B[k][j];\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"{\n tmp += A[i][k] * B[k][j];\n }",
"{\n tmp += A[i][k] * B[k][j];\n }",
"tmp += A[i][k] * B[k][j]",
"tmp",
"A[i][k] * B[k][j]",
"A[i][k]",
"A[i]",
"A",
"i",
"k",
"B[k][j]",
"B[k]",
"B",
"k",
"j",
"if (j == l - 1) {\n System.out.printf(\"%d\\n\", tmp);\n } else {\n System.out.printf(\"%d \", tmp);\n }",
"j == l - 1",
"j",
"l - 1",
"l",
"1",
"{\n System.out.printf(\"%d\\n\", tmp);\n }",
"System.out.printf(\"%d\\n\", tmp)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d\\n\"",
"tmp",
"{\n System.out.printf(\"%d \", tmp);\n }",
"System.out.printf(\"%d \", tmp)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d \"",
"tmp",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n int l = Integer.parseInt(sc.next());\n\n int[][] A = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n int[][] B = new int[m][l];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long tmp = 0;\n for (int k = 0; k < m; k++) {\n tmp += A[i][k] * B[k][j];\n }\n\n if (j == l - 1) {\n System.out.printf(\"%d\\n\", tmp);\n } else {\n System.out.printf(\"%d \", tmp);\n }\n }\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n int l = Integer.parseInt(sc.next());\n\n int[][] A = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n A[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n int[][] B = new int[m][l];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n B[i][j] = Integer.parseInt(sc.next());\n }\n }\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long tmp = 0;\n for (int k = 0; k < m; k++) {\n tmp += A[i][k] * B[k][j];\n }\n\n if (j == l - 1) {\n System.out.printf(\"%d\\n\", tmp);\n } else {\n System.out.printf(\"%d \", tmp);\n }\n }\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.next());
int m = Integer.parseInt(sc.next());
int l = 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][l];
for (int i = 0; i < m; i++) {
for (int j = 0; j < l; j++) {
B[i][j] = Integer.parseInt(sc.next());
}
}
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 += A[i][k] * B[k][j];
}
if (j == l - 1) {
System.out.printf("%d\n", tmp);
} else {
System.out.printf("%d ", tmp);
}
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
18,
18,
13,
13,
13,
17,
30,
4,
18,
18,
13,
13,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
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
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
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
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
112,
120
],
[
120,
121
],
[
121,
122
],
[
112,
123
],
[
124,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
125,
136
],
[
137,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
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
],
[
137,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
171,
173
],
[
168,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
175,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
180,
186
],
[
168,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
188,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
193,
197
],
[
6,
198
],
[
198,
199
]
] | [
"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 \tint l = scan.nextInt();\n \t\n \tint[][] Vec_A = new int[n][m];\n \tint[][] Vec_B = new int[m][l];\n \tlong[][] Vec_C = new long[n][l];\n \t\n \tfor(int i = 0; i < n; i++){\n \t\tfor(int j = 0; j < m; j++){\n \t\tVec_A[i][j] = scan.nextInt();\n \t}\n \t}\n \tfor(int i = 0; i < m; i++){\n \t\tfor(int j = 0; j < l; j++){\n \t\tVec_B[i][j] = scan.nextInt();\n \t}\n \t}\n \t\n \tfor(int i = 0; i < n; i++){\n \t\tfor(int j = 0; j < l; j++){\n \t\t\tfor(int k = 0; k < m; k++){\n \t\tVec_C[i][j] += Vec_A[i][k] * Vec_B[k][j]; \n \t}\n \t\t\t\n \t\t\tif(j != l - 1){\n \t\t\t\tSystem.out.print(Vec_C[i][j] + \" \");\n \t\t\t}else{\n \t\t\t\tSystem.out.println(Vec_C[i][j]);\n \t\t\t}\n \t}\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 \tint l = scan.nextInt();\n \t\n \tint[][] Vec_A = new int[n][m];\n \tint[][] Vec_B = new int[m][l];\n \tlong[][] Vec_C = new long[n][l];\n \t\n \tfor(int i = 0; i < n; i++){\n \t\tfor(int j = 0; j < m; j++){\n \t\tVec_A[i][j] = scan.nextInt();\n \t}\n \t}\n \tfor(int i = 0; i < m; i++){\n \t\tfor(int j = 0; j < l; j++){\n \t\tVec_B[i][j] = scan.nextInt();\n \t}\n \t}\n \t\n \tfor(int i = 0; i < n; i++){\n \t\tfor(int j = 0; j < l; j++){\n \t\t\tfor(int k = 0; k < m; k++){\n \t\tVec_C[i][j] += Vec_A[i][k] * Vec_B[k][j]; \n \t}\n \t\t\t\n \t\t\tif(j != l - 1){\n \t\t\t\tSystem.out.print(Vec_C[i][j] + \" \");\n \t\t\t}else{\n \t\t\t\tSystem.out.println(Vec_C[i][j]);\n \t\t\t}\n \t}\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 \tint l = scan.nextInt();\n \t\n \tint[][] Vec_A = new int[n][m];\n \tint[][] Vec_B = new int[m][l];\n \tlong[][] Vec_C = new long[n][l];\n \t\n \tfor(int i = 0; i < n; i++){\n \t\tfor(int j = 0; j < m; j++){\n \t\tVec_A[i][j] = scan.nextInt();\n \t}\n \t}\n \tfor(int i = 0; i < m; i++){\n \t\tfor(int j = 0; j < l; j++){\n \t\tVec_B[i][j] = scan.nextInt();\n \t}\n \t}\n \t\n \tfor(int i = 0; i < n; i++){\n \t\tfor(int j = 0; j < l; j++){\n \t\t\tfor(int k = 0; k < m; k++){\n \t\tVec_C[i][j] += Vec_A[i][k] * Vec_B[k][j]; \n \t}\n \t\t\t\n \t\t\tif(j != l - 1){\n \t\t\t\tSystem.out.print(Vec_C[i][j] + \" \");\n \t\t\t}else{\n \t\t\t\tSystem.out.println(Vec_C[i][j]);\n \t\t\t}\n \t}\n \t}\n }",
"main",
"{\n \tScanner scan = new Scanner(System.in);\n \tint n = scan.nextInt();\n \tint m = scan.nextInt();\n \tint l = scan.nextInt();\n \t\n \tint[][] Vec_A = new int[n][m];\n \tint[][] Vec_B = new int[m][l];\n \tlong[][] Vec_C = new long[n][l];\n \t\n \tfor(int i = 0; i < n; i++){\n \t\tfor(int j = 0; j < m; j++){\n \t\tVec_A[i][j] = scan.nextInt();\n \t}\n \t}\n \tfor(int i = 0; i < m; i++){\n \t\tfor(int j = 0; j < l; j++){\n \t\tVec_B[i][j] = scan.nextInt();\n \t}\n \t}\n \t\n \tfor(int i = 0; i < n; i++){\n \t\tfor(int j = 0; j < l; j++){\n \t\t\tfor(int k = 0; k < m; k++){\n \t\tVec_C[i][j] += Vec_A[i][k] * Vec_B[k][j]; \n \t}\n \t\t\t\n \t\t\tif(j != l - 1){\n \t\t\t\tSystem.out.print(Vec_C[i][j] + \" \");\n \t\t\t}else{\n \t\t\t\tSystem.out.println(Vec_C[i][j]);\n \t\t\t}\n \t}\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 l = scan.nextInt();",
"l",
"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][l];",
"Vec_B",
"new int[m][l]",
"m",
"l",
"long[][] Vec_C = new long[n][l];",
"Vec_C",
"new long[n][l]",
"n",
"l",
"for(int i = 0; i < n; i++){\n \t\tfor(int j = 0; j < m; j++){\n \t\tVec_A[i][j] = scan.nextInt();\n \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\tVec_A[i][j] = scan.nextInt();\n \t}\n \t}",
"{\n \t\tfor(int j = 0; j < m; j++){\n \t\tVec_A[i][j] = scan.nextInt();\n \t}\n \t}",
"for(int j = 0; j < m; j++){\n \t\tVec_A[i][j] = scan.nextInt();\n \t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n \t\tVec_A[i][j] = scan.nextInt();\n \t}",
"{\n \t\tVec_A[i][j] = scan.nextInt();\n \t}",
"Vec_A[i][j] = scan.nextInt()",
"Vec_A[i][j]",
"Vec_A[i]",
"Vec_A",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 0; i < m; i++){\n \t\tfor(int j = 0; j < l; j++){\n \t\tVec_B[i][j] = scan.nextInt();\n \t}\n \t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n \t\tfor(int j = 0; j < l; j++){\n \t\tVec_B[i][j] = scan.nextInt();\n \t}\n \t}",
"{\n \t\tfor(int j = 0; j < l; j++){\n \t\tVec_B[i][j] = scan.nextInt();\n \t}\n \t}",
"for(int j = 0; j < l; j++){\n \t\tVec_B[i][j] = scan.nextInt();\n \t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n \t\tVec_B[i][j] = scan.nextInt();\n \t}",
"{\n \t\tVec_B[i][j] = scan.nextInt();\n \t}",
"Vec_B[i][j] = scan.nextInt()",
"Vec_B[i][j]",
"Vec_B[i]",
"Vec_B",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 0; i < n; i++){\n \t\tfor(int j = 0; j < l; j++){\n \t\t\tfor(int k = 0; k < m; k++){\n \t\tVec_C[i][j] += Vec_A[i][k] * Vec_B[k][j]; \n \t}\n \t\t\t\n \t\t\tif(j != l - 1){\n \t\t\t\tSystem.out.print(Vec_C[i][j] + \" \");\n \t\t\t}else{\n \t\t\t\tSystem.out.println(Vec_C[i][j]);\n \t\t\t}\n \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 < l; j++){\n \t\t\tfor(int k = 0; k < m; k++){\n \t\tVec_C[i][j] += Vec_A[i][k] * Vec_B[k][j]; \n \t}\n \t\t\t\n \t\t\tif(j != l - 1){\n \t\t\t\tSystem.out.print(Vec_C[i][j] + \" \");\n \t\t\t}else{\n \t\t\t\tSystem.out.println(Vec_C[i][j]);\n \t\t\t}\n \t}\n \t}",
"{\n \t\tfor(int j = 0; j < l; j++){\n \t\t\tfor(int k = 0; k < m; k++){\n \t\tVec_C[i][j] += Vec_A[i][k] * Vec_B[k][j]; \n \t}\n \t\t\t\n \t\t\tif(j != l - 1){\n \t\t\t\tSystem.out.print(Vec_C[i][j] + \" \");\n \t\t\t}else{\n \t\t\t\tSystem.out.println(Vec_C[i][j]);\n \t\t\t}\n \t}\n \t}",
"for(int j = 0; j < l; j++){\n \t\t\tfor(int k = 0; k < m; k++){\n \t\tVec_C[i][j] += Vec_A[i][k] * Vec_B[k][j]; \n \t}\n \t\t\t\n \t\t\tif(j != l - 1){\n \t\t\t\tSystem.out.print(Vec_C[i][j] + \" \");\n \t\t\t}else{\n \t\t\t\tSystem.out.println(Vec_C[i][j]);\n \t\t\t}\n \t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n \t\t\tfor(int k = 0; k < m; k++){\n \t\tVec_C[i][j] += Vec_A[i][k] * Vec_B[k][j]; \n \t}\n \t\t\t\n \t\t\tif(j != l - 1){\n \t\t\t\tSystem.out.print(Vec_C[i][j] + \" \");\n \t\t\t}else{\n \t\t\t\tSystem.out.println(Vec_C[i][j]);\n \t\t\t}\n \t}",
"{\n \t\t\tfor(int k = 0; k < m; k++){\n \t\tVec_C[i][j] += Vec_A[i][k] * Vec_B[k][j]; \n \t}\n \t\t\t\n \t\t\tif(j != l - 1){\n \t\t\t\tSystem.out.print(Vec_C[i][j] + \" \");\n \t\t\t}else{\n \t\t\t\tSystem.out.println(Vec_C[i][j]);\n \t\t\t}\n \t}",
"for(int k = 0; k < m; k++){\n \t\tVec_C[i][j] += Vec_A[i][k] * Vec_B[k][j]; \n \t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"{\n \t\tVec_C[i][j] += Vec_A[i][k] * Vec_B[k][j]; \n \t}",
"{\n \t\tVec_C[i][j] += Vec_A[i][k] * Vec_B[k][j]; \n \t}",
"Vec_C[i][j] += Vec_A[i][k] * Vec_B[k][j]",
"Vec_C[i][j]",
"Vec_C[i]",
"Vec_C",
"i",
"j",
"Vec_A[i][k] * Vec_B[k][j]",
"Vec_A[i][k]",
"Vec_A[i]",
"Vec_A",
"i",
"k",
"Vec_B[k][j]",
"Vec_B[k]",
"Vec_B",
"k",
"j",
"if(j != l - 1){\n \t\t\t\tSystem.out.print(Vec_C[i][j] + \" \");\n \t\t\t}else{\n \t\t\t\tSystem.out.println(Vec_C[i][j]);\n \t\t\t}",
"j != l - 1",
"j",
"l - 1",
"l",
"1",
"{\n \t\t\t\tSystem.out.print(Vec_C[i][j] + \" \");\n \t\t\t}",
"System.out.print(Vec_C[i][j] + \" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"Vec_C[i][j] + \" \"",
"Vec_C[i][j]",
"Vec_C[i]",
"Vec_C",
"i",
"j",
"\" \"",
"{\n \t\t\t\tSystem.out.println(Vec_C[i][j]);\n \t\t\t}",
"System.out.println(Vec_C[i][j])",
"System.out.println",
"System.out",
"System",
"System.out",
"Vec_C[i][j]",
"Vec_C[i]",
"Vec_C",
"i",
"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 l = scan.nextInt();
int[][] Vec_A = new int[n][m];
int[][] Vec_B = new int[m][l];
long[][] Vec_C = new long[n][l];
for(int i = 0; i < n; i++){
for(int j = 0; j < m; j++){
Vec_A[i][j] = scan.nextInt();
}
}
for(int i = 0; i < m; i++){
for(int j = 0; j < l; j++){
Vec_B[i][j] = scan.nextInt();
}
}
for(int i = 0; i < n; i++){
for(int j = 0; j < l; j++){
for(int k = 0; k < m; k++){
Vec_C[i][j] += Vec_A[i][k] * Vec_B[k][j];
}
if(j != l - 1){
System.out.print(Vec_C[i][j] + " ");
}else{
System.out.println(Vec_C[i][j]);
}
}
}
}
} |
[
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,
4,
18,
13,
18,
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,
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,
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,
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,
2,
18,
18,
13,
13,
13,
18,
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,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
274,
5
],
[
274,
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
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
8,
52
],
[
52,
53
],
[
52,
54
],
[
8,
57
],
[
57,
58
],
[
57,
59
],
[
8,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
62,
70
],
[
70,
71
],
[
71,
72
],
[
62,
73
],
[
74,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
74,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
74,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
86,
94
],
[
94,
95
],
[
95,
96
],
[
86,
97
],
[
98,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
99,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
108,
109
],
[
108,
110
],
[
8,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
111,
119
],
[
119,
120
],
[
120,
121
],
[
111,
122
],
[
123,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
123,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
123,
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
],
[
149,
153
],
[
148,
154
],
[
154,
155
],
[
155,
156
],
[
154,
157
],
[
157,
158
],
[
157,
159
],
[
8,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
160,
165
],
[
165,
166
],
[
165,
167
],
[
160,
168
],
[
168,
169
],
[
169,
170
],
[
160,
171
],
[
172,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
173,
178
],
[
178,
179
],
[
178,
180
],
[
173,
181
],
[
181,
182
],
[
182,
183
],
[
173,
184
],
[
185,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
186,
191
],
[
191,
192
],
[
191,
193
],
[
186,
194
],
[
194,
195
],
[
195,
196
],
[
186,
197
],
[
198,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
200,
204
],
[
199,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
206,
210
],
[
205,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
211,
215
],
[
8,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
216,
221
],
[
221,
222
],
[
221,
223
],
[
216,
224
],
[
224,
225
],
[
225,
226
],
[
216,
227
],
[
228,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
231,
233
],
[
229,
234
],
[
234,
235
],
[
234,
236
],
[
229,
237
],
[
237,
238
],
[
238,
239
],
[
229,
240
],
[
241,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
244,
245
],
[
244,
246
],
[
242,
247
],
[
247,
248
],
[
248,
249
],
[
248,
250
],
[
247,
251
],
[
241,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
255,
257
],
[
252,
258
],
[
258,
259
],
[
259,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
259,
264
],
[
228,
265
],
[
265,
266
],
[
266,
267
],
[
267,
268
],
[
267,
269
],
[
265,
270
],
[
6,
271
],
[
271,
272
],
[
0,
273
],
[
273,
274
],
[
273,
275
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tString[] line1b = line1.split(\" \");\n\t\tint n = Integer.parseInt(line1b[0]);\n\t\tint m = Integer.parseInt(line1b[1]);\n\t\tint l = Integer.parseInt(line1b[2]);\n\n\t\tint[][] matA = new int[n][m];\n\t\tint[][] matB = new int[m][l];\n\t\t\n\t\tlong[][] matC = new long[n][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString kari = sc.nextLine();\n\t\t\tString[] strA = kari.split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatA[i][j] = Integer.parseInt(strA[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tString kari = sc.nextLine();\n\t\t\tString[] strB = kari.split(\" \");\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tmatB[i][j] = Integer.parseInt(strB[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tmatC[i][k] += matA[i][j]*matB[j][k];\n\t\t\t\t}\n\t\t\t}\n\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\tSystem.out.print(matC[i][j]);\n\t\t\t\tif (j != l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\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\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tString[] line1b = line1.split(\" \");\n\t\tint n = Integer.parseInt(line1b[0]);\n\t\tint m = Integer.parseInt(line1b[1]);\n\t\tint l = Integer.parseInt(line1b[2]);\n\n\t\tint[][] matA = new int[n][m];\n\t\tint[][] matB = new int[m][l];\n\t\t\n\t\tlong[][] matC = new long[n][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString kari = sc.nextLine();\n\t\t\tString[] strA = kari.split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatA[i][j] = Integer.parseInt(strA[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tString kari = sc.nextLine();\n\t\t\tString[] strB = kari.split(\" \");\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tmatB[i][j] = Integer.parseInt(strB[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tmatC[i][k] += matA[i][j]*matB[j][k];\n\t\t\t\t}\n\t\t\t}\n\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\tSystem.out.print(matC[i][j]);\n\t\t\t\tif (j != l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tString[] line1b = line1.split(\" \");\n\t\tint n = Integer.parseInt(line1b[0]);\n\t\tint m = Integer.parseInt(line1b[1]);\n\t\tint l = Integer.parseInt(line1b[2]);\n\n\t\tint[][] matA = new int[n][m];\n\t\tint[][] matB = new int[m][l];\n\t\t\n\t\tlong[][] matC = new long[n][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString kari = sc.nextLine();\n\t\t\tString[] strA = kari.split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatA[i][j] = Integer.parseInt(strA[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tString kari = sc.nextLine();\n\t\t\tString[] strB = kari.split(\" \");\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tmatB[i][j] = Integer.parseInt(strB[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tmatC[i][k] += matA[i][j]*matB[j][k];\n\t\t\t\t}\n\t\t\t}\n\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\tSystem.out.print(matC[i][j]);\n\t\t\t\tif (j != l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tString[] line1b = line1.split(\" \");\n\t\tint n = Integer.parseInt(line1b[0]);\n\t\tint m = Integer.parseInt(line1b[1]);\n\t\tint l = Integer.parseInt(line1b[2]);\n\n\t\tint[][] matA = new int[n][m];\n\t\tint[][] matB = new int[m][l];\n\t\t\n\t\tlong[][] matC = new long[n][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString kari = sc.nextLine();\n\t\t\tString[] strA = kari.split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatA[i][j] = Integer.parseInt(strA[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tString kari = sc.nextLine();\n\t\t\tString[] strB = kari.split(\" \");\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tmatB[i][j] = Integer.parseInt(strB[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tmatC[i][k] += matA[i][j]*matB[j][k];\n\t\t\t\t}\n\t\t\t}\n\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\tSystem.out.print(matC[i][j]);\n\t\t\t\tif (j != l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\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[] line1b = line1.split(\" \");",
"line1b",
"line1.split(\" \")",
"line1.split",
"line1",
"\" \"",
"int n = Integer.parseInt(line1b[0]);",
"n",
"Integer.parseInt(line1b[0])",
"Integer.parseInt",
"Integer",
"line1b[0]",
"line1b",
"0",
"int m = Integer.parseInt(line1b[1]);",
"m",
"Integer.parseInt(line1b[1])",
"Integer.parseInt",
"Integer",
"line1b[1]",
"line1b",
"1",
"int l = Integer.parseInt(line1b[2]);",
"l",
"Integer.parseInt(line1b[2])",
"Integer.parseInt",
"Integer",
"line1b[2]",
"line1b",
"2",
"int[][] matA = new int[n][m];",
"matA",
"new int[n][m]",
"n",
"m",
"int[][] matB = new int[m][l];",
"matB",
"new int[m][l]",
"m",
"l",
"long[][] matC = new long[n][l];",
"matC",
"new long[n][l]",
"n",
"l",
"for (int i = 0; i < n; i++) {\n\t\t\tString kari = sc.nextLine();\n\t\t\tString[] strA = kari.split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatA[i][j] = Integer.parseInt(strA[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 kari = sc.nextLine();\n\t\t\tString[] strA = kari.split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatA[i][j] = Integer.parseInt(strA[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tString kari = sc.nextLine();\n\t\t\tString[] strA = kari.split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatA[i][j] = Integer.parseInt(strA[j]);\n\t\t\t}\n\t\t}",
"String kari = sc.nextLine();",
"kari",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] strA = kari.split(\" \");",
"strA",
"kari.split(\" \")",
"kari.split",
"kari",
"\" \"",
"for (int j = 0; j < m; j++) {\n\t\t\t\tmatA[i][j] = Integer.parseInt(strA[j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tmatA[i][j] = Integer.parseInt(strA[j]);\n\t\t\t}",
"{\n\t\t\t\tmatA[i][j] = Integer.parseInt(strA[j]);\n\t\t\t}",
"matA[i][j] = Integer.parseInt(strA[j])",
"matA[i][j]",
"matA[i]",
"matA",
"i",
"j",
"Integer.parseInt(strA[j])",
"Integer.parseInt",
"Integer",
"strA[j]",
"strA",
"j",
"for (int i = 0; i < m; i++) {\n\t\t\tString kari = sc.nextLine();\n\t\t\tString[] strB = kari.split(\" \");\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tmatB[i][j] = Integer.parseInt(strB[j]);\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\tString kari = sc.nextLine();\n\t\t\tString[] strB = kari.split(\" \");\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tmatB[i][j] = Integer.parseInt(strB[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tString kari = sc.nextLine();\n\t\t\tString[] strB = kari.split(\" \");\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tmatB[i][j] = Integer.parseInt(strB[j]);\n\t\t\t}\n\t\t}",
"String kari = sc.nextLine();",
"kari",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] strB = kari.split(\" \");",
"strB",
"kari.split(\" \")",
"kari.split",
"kari",
"\" \"",
"for (int j = 0; j < l; j++) {\n\t\t\t\tmatB[i][j] = Integer.parseInt(strB[j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tmatB[i][j] = Integer.parseInt(strB[j]);\n\t\t\t}",
"{\n\t\t\t\tmatB[i][j] = Integer.parseInt(strB[j]);\n\t\t\t}",
"matB[i][j] = Integer.parseInt(strB[j])",
"matB[i][j]",
"matB[i]",
"matB",
"i",
"j",
"Integer.parseInt(strB[j])",
"Integer.parseInt",
"Integer",
"strB[j]",
"strB",
"j",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tmatC[i][k] += matA[i][j]*matB[j][k];\n\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\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tmatC[i][k] += matA[i][j]*matB[j][k];\n\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\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tmatC[i][k] += matA[i][j]*matB[j][k];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int j = 0; j < m; j++) {\n\t\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tmatC[i][k] += matA[i][j]*matB[j][k];\n\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\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tmatC[i][k] += matA[i][j]*matB[j][k];\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tmatC[i][k] += matA[i][j]*matB[j][k];\n\t\t\t\t}\n\t\t\t}",
"for (int k = 0; k < l; k++) {\n\t\t\t\t\tmatC[i][k] += matA[i][j]*matB[j][k];\n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < l",
"k",
"l",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tmatC[i][k] += matA[i][j]*matB[j][k];\n\t\t\t\t}",
"{\n\t\t\t\t\tmatC[i][k] += matA[i][j]*matB[j][k];\n\t\t\t\t}",
"matC[i][k] += matA[i][j]*matB[j][k]",
"matC[i][k]",
"matC[i]",
"matC",
"i",
"k",
"matA[i][j]*matB[j][k]",
"matA[i][j]",
"matA[i]",
"matA",
"i",
"j",
"matB[j][k]",
"matB[j]",
"matB",
"j",
"k",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tSystem.out.print(matC[i][j]);\n\t\t\t\tif (j != l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\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\tSystem.out.print(matC[i][j]);\n\t\t\t\tif (j != l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tSystem.out.print(matC[i][j]);\n\t\t\t\tif (j != l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"for (int j = 0; j < l; j++) {\n\t\t\t\tSystem.out.print(matC[i][j]);\n\t\t\t\tif (j != l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(matC[i][j]);\n\t\t\t\tif (j != l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(matC[i][j]);\n\t\t\t\tif (j != l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"System.out.print(matC[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"matC[i][j]",
"matC[i]",
"matC",
"i",
"j",
"if (j != l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"j != l-1",
"j",
"l-1",
"l",
"1",
"{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tString[] line1b = line1.split(\" \");\n\t\tint n = Integer.parseInt(line1b[0]);\n\t\tint m = Integer.parseInt(line1b[1]);\n\t\tint l = Integer.parseInt(line1b[2]);\n\n\t\tint[][] matA = new int[n][m];\n\t\tint[][] matB = new int[m][l];\n\t\t\n\t\tlong[][] matC = new long[n][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString kari = sc.nextLine();\n\t\t\tString[] strA = kari.split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatA[i][j] = Integer.parseInt(strA[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tString kari = sc.nextLine();\n\t\t\tString[] strB = kari.split(\" \");\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tmatB[i][j] = Integer.parseInt(strB[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tmatC[i][k] += matA[i][j]*matB[j][k];\n\t\t\t\t}\n\t\t\t}\n\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\tSystem.out.print(matC[i][j]);\n\t\t\t\tif (j != l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tString[] line1b = line1.split(\" \");\n\t\tint n = Integer.parseInt(line1b[0]);\n\t\tint m = Integer.parseInt(line1b[1]);\n\t\tint l = Integer.parseInt(line1b[2]);\n\n\t\tint[][] matA = new int[n][m];\n\t\tint[][] matB = new int[m][l];\n\t\t\n\t\tlong[][] matC = new long[n][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString kari = sc.nextLine();\n\t\t\tString[] strA = kari.split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatA[i][j] = Integer.parseInt(strA[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tString kari = sc.nextLine();\n\t\t\tString[] strB = kari.split(\" \");\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tmatB[i][j] = Integer.parseInt(strB[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tmatC[i][k] += matA[i][j]*matB[j][k];\n\t\t\t\t}\n\t\t\t}\n\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\tSystem.out.print(matC[i][j]);\n\t\t\t\tif (j != l-1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
String line1 = sc.nextLine();
String[] line1b = line1.split(" ");
int n = Integer.parseInt(line1b[0]);
int m = Integer.parseInt(line1b[1]);
int l = Integer.parseInt(line1b[2]);
int[][] matA = new int[n][m];
int[][] matB = new int[m][l];
long[][] matC = new long[n][l];
for (int i = 0; i < n; i++) {
String kari = sc.nextLine();
String[] strA = kari.split(" ");
for (int j = 0; j < m; j++) {
matA[i][j] = Integer.parseInt(strA[j]);
}
}
for (int i = 0; i < m; i++) {
String kari = sc.nextLine();
String[] strB = kari.split(" ");
for (int j = 0; j < l; j++) {
matB[i][j] = Integer.parseInt(strB[j]);
}
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
for (int k = 0; k < l; k++) {
matC[i][k] += matA[i][j]*matB[j][k];
}
}
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < l; j++) {
System.out.print(matC[i][j]);
if (j != l-1) {
System.out.print(" ");
}
}
System.out.println("");
}
}
} |
[
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,
4,
18,
13,
18,
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,
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,
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,
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,
2,
18,
18,
13,
13,
13,
18,
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,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
14,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
8,
49
],
[
49,
50
],
[
49,
51
],
[
8,
54
],
[
54,
55
],
[
54,
56
],
[
8,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
59,
70
],
[
71,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
74,
79
],
[
71,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
80,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
93,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
102,
103
],
[
102,
104
],
[
8,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
105,
113
],
[
113,
114
],
[
114,
115
],
[
105,
116
],
[
117,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
120,
125
],
[
117,
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
],
[
140,
144
],
[
139,
145
],
[
145,
146
],
[
146,
147
],
[
145,
148
],
[
148,
149
],
[
148,
150
],
[
8,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
156,
157
],
[
156,
158
],
[
151,
159
],
[
159,
160
],
[
160,
161
],
[
151,
162
],
[
163,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
164,
169
],
[
169,
170
],
[
169,
171
],
[
164,
172
],
[
172,
173
],
[
173,
174
],
[
164,
175
],
[
176,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
182,
183
],
[
182,
184
],
[
177,
185
],
[
185,
186
],
[
186,
187
],
[
177,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
190,
194
],
[
189,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
196,
200
],
[
195,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
8,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
206,
211
],
[
211,
212
],
[
211,
213
],
[
206,
214
],
[
214,
215
],
[
215,
216
],
[
206,
217
],
[
218,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
219,
224
],
[
224,
225
],
[
224,
226
],
[
219,
227
],
[
227,
228
],
[
228,
229
],
[
219,
230
],
[
231,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
232,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
237,
241
],
[
231,
242
],
[
242,
243
],
[
243,
244
],
[
243,
245
],
[
245,
246
],
[
245,
247
],
[
242,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
248,
253
],
[
218,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
6,
259
],
[
259,
260
]
] | [
"import java.io.*;\n\nclass Main{\n\tpublic static void main(String args[]) throws IOException{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] str = buf.readLine().split(\" \");\n\t\tint n = Integer.parseInt(str[0]);\n\t\tint m = Integer.parseInt(str[1]);\n\t\tint l = Integer.parseInt(str[2]);\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong[][] C = new long[n][l];\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<m; i++){\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tfor(int j=0; j<l; j++){\n\t\t\t\tB[i][j] = Integer.parseInt(str[j]);\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\tfor(int k=0; k<m; k++)\n\t\t\t\t\tC[i][j] += A[i][k]*B[k][j];\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\tSystem.out.print(C[i][j]);\n\t\t\t\tif(j!=(l-1))\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"class Main{\n\tpublic static void main(String args[]) throws IOException{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] str = buf.readLine().split(\" \");\n\t\tint n = Integer.parseInt(str[0]);\n\t\tint m = Integer.parseInt(str[1]);\n\t\tint l = Integer.parseInt(str[2]);\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong[][] C = new long[n][l];\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<m; i++){\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tfor(int j=0; j<l; j++){\n\t\t\t\tB[i][j] = Integer.parseInt(str[j]);\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\tfor(int k=0; k<m; k++)\n\t\t\t\t\tC[i][j] += A[i][k]*B[k][j];\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\tSystem.out.print(C[i][j]);\n\t\t\t\tif(j!=(l-1))\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String args[]) throws IOException{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] str = buf.readLine().split(\" \");\n\t\tint n = Integer.parseInt(str[0]);\n\t\tint m = Integer.parseInt(str[1]);\n\t\tint l = Integer.parseInt(str[2]);\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong[][] C = new long[n][l];\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<m; i++){\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tfor(int j=0; j<l; j++){\n\t\t\t\tB[i][j] = Integer.parseInt(str[j]);\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\tfor(int k=0; k<m; k++)\n\t\t\t\t\tC[i][j] += A[i][k]*B[k][j];\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\tSystem.out.print(C[i][j]);\n\t\t\t\tif(j!=(l-1))\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] str = buf.readLine().split(\" \");\n\t\tint n = Integer.parseInt(str[0]);\n\t\tint m = Integer.parseInt(str[1]);\n\t\tint l = Integer.parseInt(str[2]);\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong[][] C = new long[n][l];\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<m; i++){\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tfor(int j=0; j<l; j++){\n\t\t\t\tB[i][j] = Integer.parseInt(str[j]);\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\tfor(int k=0; k<m; k++)\n\t\t\t\t\tC[i][j] += A[i][k]*B[k][j];\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\tSystem.out.print(C[i][j]);\n\t\t\t\tif(j!=(l-1))\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));",
"buf",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] str = buf.readLine().split(\" \");",
"str",
"buf.readLine().split(\" \")",
"buf.readLine().split",
"buf.readLine()",
"buf.readLine",
"buf",
"\" \"",
"int n = Integer.parseInt(str[0]);",
"n",
"Integer.parseInt(str[0])",
"Integer.parseInt",
"Integer",
"str[0]",
"str",
"0",
"int m = Integer.parseInt(str[1]);",
"m",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"int l = Integer.parseInt(str[2]);",
"l",
"Integer.parseInt(str[2])",
"Integer.parseInt",
"Integer",
"str[2]",
"str",
"2",
"int[][] A = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int[][] B = new int[m][l];",
"B",
"new int[m][l]",
"m",
"l",
"long[][] C = new long[n][l];",
"C",
"new long[n][l]",
"n",
"l",
"for(int i=0; i<n; i++){\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tfor(int j=0; j<m; j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}",
"str = buf.readLine().split(\" \")",
"str",
"buf.readLine().split(\" \")",
"buf.readLine().split",
"buf.readLine()",
"buf.readLine",
"buf",
"\" \"",
"for(int j=0; j<m; j++){\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}",
"{\n\t\t\t\tA[i][j] = Integer.parseInt(str[j]);\n\t\t\t}",
"A[i][j] = Integer.parseInt(str[j])",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"Integer.parseInt(str[j])",
"Integer.parseInt",
"Integer",
"str[j]",
"str",
"j",
"for(int i=0; i<m; i++){\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tfor(int j=0; j<l; j++){\n\t\t\t\tB[i][j] = Integer.parseInt(str[j]);\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\tstr = buf.readLine().split(\" \");\n\t\t\tfor(int j=0; j<l; j++){\n\t\t\t\tB[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tfor(int j=0; j<l; j++){\n\t\t\t\tB[i][j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}",
"str = buf.readLine().split(\" \")",
"str",
"buf.readLine().split(\" \")",
"buf.readLine().split",
"buf.readLine()",
"buf.readLine",
"buf",
"\" \"",
"for(int j=0; j<l; j++){\n\t\t\t\tB[i][j] = Integer.parseInt(str[j]);\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tB[i][j] = Integer.parseInt(str[j]);\n\t\t\t}",
"{\n\t\t\t\tB[i][j] = Integer.parseInt(str[j]);\n\t\t\t}",
"B[i][j] = Integer.parseInt(str[j])",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"Integer.parseInt(str[j])",
"Integer.parseInt",
"Integer",
"str[j]",
"str",
"j",
"for(int i=0; i<n; i++){\n\t\t\tfor(int j=0; j<l; j++){\n\t\t\t\tfor(int k=0; k<m; k++)\n\t\t\t\t\tC[i][j] += A[i][k]*B[k][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<l; j++){\n\t\t\t\tfor(int k=0; k<m; k++)\n\t\t\t\t\tC[i][j] += A[i][k]*B[k][j];\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0; j<l; j++){\n\t\t\t\tfor(int k=0; k<m; k++)\n\t\t\t\t\tC[i][j] += A[i][k]*B[k][j];\n\t\t\t}\n\t\t}",
"for(int j=0; j<l; j++){\n\t\t\t\tfor(int k=0; k<m; k++)\n\t\t\t\t\tC[i][j] += A[i][k]*B[k][j];\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k=0; k<m; k++)\n\t\t\t\t\tC[i][j] += A[i][k]*B[k][j];\n\t\t\t}",
"{\n\t\t\t\tfor(int k=0; k<m; k++)\n\t\t\t\t\tC[i][j] += A[i][k]*B[k][j];\n\t\t\t}",
"for(int k=0; k<m; k++)\n\t\t\t\t\tC[i][j] += A[i][k]*B[k][j];",
"int k=0;",
"int k=0;",
"k",
"0",
"k<m",
"k",
"m",
"k++",
"k++",
"k",
"C[i][j] += A[i][k]*B[k][j];",
"C[i][j] += A[i][k]*B[k][j]",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"A[i][k]*B[k][j]",
"A[i][k]",
"A[i]",
"A",
"i",
"k",
"B[k][j]",
"B[k]",
"B",
"k",
"j",
"for(int i=0; i<n; i++){\n\t\t\tfor(int j=0; j<l; j++){\n\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\tif(j!=(l-1))\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\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\tSystem.out.print(C[i][j]);\n\t\t\t\tif(j!=(l-1))\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor(int j=0; j<l; j++){\n\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\tif(j!=(l-1))\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for(int j=0; j<l; j++){\n\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\tif(j!=(l-1))\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\tif(j!=(l-1))\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\tif(j!=(l-1))\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t}",
"System.out.print(C[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"if(j!=(l-1))\n\t\t\t\t\tSystem.out.print(\" \");",
"j!=(l-1)",
"j",
"(l-1)",
"l",
"1",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String args[]",
"args"
] | import java.io.*;
class Main{
public static void main(String args[]) throws IOException{
BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
String[] str = buf.readLine().split(" ");
int n = Integer.parseInt(str[0]);
int m = Integer.parseInt(str[1]);
int l = Integer.parseInt(str[2]);
int[][] A = new int[n][m];
int[][] B = new int[m][l];
long[][] C = new long[n][l];
for(int i=0; i<n; i++){
str = buf.readLine().split(" ");
for(int j=0; j<m; j++){
A[i][j] = Integer.parseInt(str[j]);
}
}
for(int i=0; i<m; i++){
str = buf.readLine().split(" ");
for(int j=0; j<l; j++){
B[i][j] = Integer.parseInt(str[j]);
}
}
for(int i=0; i<n; i++){
for(int j=0; j<l; j++){
for(int k=0; k<m; k++)
C[i][j] += A[i][k]*B[k][j];
}
}
for(int i=0; i<n; i++){
for(int j=0; j<l; j++){
System.out.print(C[i][j]);
if(j!=(l-1))
System.out.print(" ");
}
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,
4,
18,
13,
41,
13,
0,
13,
20,
13,
13,
41,
13,
0,
13,
20,
13,
13,
41,
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,
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,
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,
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,
2,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
14,
40,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
34
],
[
34,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
8,
41
],
[
41,
42
],
[
8,
43
],
[
43,
44
],
[
43,
45
],
[
8,
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
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
61,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
73,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
79,
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
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
99,
110
],
[
111,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
111,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
117,
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
],
[
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
],
[
164,
168
],
[
163,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
169,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
176,
180
],
[
175,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
149,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
186,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
195
],
[
149,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
200,
202
],
[
196,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
204,
209
],
[
136,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
210,
215
],
[
8,
216
],
[
216,
217
],
[
217,
218
],
[
6,
219
],
[
219,
220
]
] | [
"import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint n = scanner.nextInt();\n\t\tint m = scanner.nextInt();\n\t\tint l = scanner.nextInt();\n\t\t\n\t\tint[][] A; \n\t\tA = new int[n][m];\n\t\tint[][] B;\n\t\tB =new int[m][l];\n\t\tlong[][]C;\n\t\tC = new long[n][l];\n\t\t\n\t\t\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int f=0;f<m;f++){\n\t\t\t\tint a = scanner.nextInt();\n\t\t\t\tA[i][f]=a;\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<m;i++){\n\t\t\tfor(int f=0;f<l;f++){\n\t\t\t\tint b = scanner.nextInt();\n\t\t\t\tB[i][f]= b;\t\n\t\t\t}\n\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\tfor(int k=0;k<m;k++){\n\t\t\t\t\tC[i][j]=C[i][j]+(A[i][k]*B[k][j]);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\tif(!(j == l-1)){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\n\t\tscanner.close();\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint n = scanner.nextInt();\n\t\tint m = scanner.nextInt();\n\t\tint l = scanner.nextInt();\n\t\t\n\t\tint[][] A; \n\t\tA = new int[n][m];\n\t\tint[][] B;\n\t\tB =new int[m][l];\n\t\tlong[][]C;\n\t\tC = new long[n][l];\n\t\t\n\t\t\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int f=0;f<m;f++){\n\t\t\t\tint a = scanner.nextInt();\n\t\t\t\tA[i][f]=a;\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<m;i++){\n\t\t\tfor(int f=0;f<l;f++){\n\t\t\t\tint b = scanner.nextInt();\n\t\t\t\tB[i][f]= b;\t\n\t\t\t}\n\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\tfor(int k=0;k<m;k++){\n\t\t\t\t\tC[i][j]=C[i][j]+(A[i][k]*B[k][j]);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\tif(!(j == l-1)){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\n\t\tscanner.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint n = scanner.nextInt();\n\t\tint m = scanner.nextInt();\n\t\tint l = scanner.nextInt();\n\t\t\n\t\tint[][] A; \n\t\tA = new int[n][m];\n\t\tint[][] B;\n\t\tB =new int[m][l];\n\t\tlong[][]C;\n\t\tC = new long[n][l];\n\t\t\n\t\t\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int f=0;f<m;f++){\n\t\t\t\tint a = scanner.nextInt();\n\t\t\t\tA[i][f]=a;\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<m;i++){\n\t\t\tfor(int f=0;f<l;f++){\n\t\t\t\tint b = scanner.nextInt();\n\t\t\t\tB[i][f]= b;\t\n\t\t\t}\n\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\tfor(int k=0;k<m;k++){\n\t\t\t\t\tC[i][j]=C[i][j]+(A[i][k]*B[k][j]);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\tif(!(j == l-1)){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\n\t\tscanner.close();\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint n = scanner.nextInt();\n\t\tint m = scanner.nextInt();\n\t\tint l = scanner.nextInt();\n\t\t\n\t\tint[][] A; \n\t\tA = new int[n][m];\n\t\tint[][] B;\n\t\tB =new int[m][l];\n\t\tlong[][]C;\n\t\tC = new long[n][l];\n\t\t\n\t\t\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int f=0;f<m;f++){\n\t\t\t\tint a = scanner.nextInt();\n\t\t\t\tA[i][f]=a;\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<m;i++){\n\t\t\tfor(int f=0;f<l;f++){\n\t\t\t\tint b = scanner.nextInt();\n\t\t\t\tB[i][f]= b;\t\n\t\t\t}\n\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\tfor(int k=0;k<m;k++){\n\t\t\t\t\tC[i][j]=C[i][j]+(A[i][k]*B[k][j]);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\tif(!(j == l-1)){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\n\t\tscanner.close();\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int m = scanner.nextInt();",
"m",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int l = scanner.nextInt();",
"l",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int[][] A;",
"A",
"A = new int[n][m]",
"A",
"new int[n][m]",
"n",
"m",
"int[][] B;",
"B",
"B =new int[m][l]",
"B",
"new int[m][l]",
"m",
"l",
"long[][]C;",
"C",
"C = new long[n][l]",
"C",
"new long[n][l]",
"n",
"l",
"for(int i=0;i<n;i++){\n\t\t\tfor(int f=0;f<m;f++){\n\t\t\t\tint a = scanner.nextInt();\n\t\t\t\tA[i][f]=a;\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 f=0;f<m;f++){\n\t\t\t\tint a = scanner.nextInt();\n\t\t\t\tA[i][f]=a;\t\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int f=0;f<m;f++){\n\t\t\t\tint a = scanner.nextInt();\n\t\t\t\tA[i][f]=a;\t\n\t\t\t}\n\t\t}",
"for(int f=0;f<m;f++){\n\t\t\t\tint a = scanner.nextInt();\n\t\t\t\tA[i][f]=a;\t\n\t\t\t}",
"int f=0;",
"int f=0;",
"f",
"0",
"f<m",
"f",
"m",
"f++",
"f++",
"f",
"{\n\t\t\t\tint a = scanner.nextInt();\n\t\t\t\tA[i][f]=a;\t\n\t\t\t}",
"{\n\t\t\t\tint a = scanner.nextInt();\n\t\t\t\tA[i][f]=a;\t\n\t\t\t}",
"int a = scanner.nextInt();",
"a",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"A[i][f]=a",
"A[i][f]",
"A[i]",
"A",
"i",
"f",
"a",
"for(int i=0;i<m;i++){\n\t\t\tfor(int f=0;f<l;f++){\n\t\t\t\tint b = scanner.nextInt();\n\t\t\t\tB[i][f]= b;\t\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 f=0;f<l;f++){\n\t\t\t\tint b = scanner.nextInt();\n\t\t\t\tB[i][f]= b;\t\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int f=0;f<l;f++){\n\t\t\t\tint b = scanner.nextInt();\n\t\t\t\tB[i][f]= b;\t\n\t\t\t}\n\t\t}",
"for(int f=0;f<l;f++){\n\t\t\t\tint b = scanner.nextInt();\n\t\t\t\tB[i][f]= b;\t\n\t\t\t}",
"int f=0;",
"int f=0;",
"f",
"0",
"f<l",
"f",
"l",
"f++",
"f++",
"f",
"{\n\t\t\t\tint b = scanner.nextInt();\n\t\t\t\tB[i][f]= b;\t\n\t\t\t}",
"{\n\t\t\t\tint b = scanner.nextInt();\n\t\t\t\tB[i][f]= b;\t\n\t\t\t}",
"int b = scanner.nextInt();",
"b",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"B[i][f]= b",
"B[i][f]",
"B[i]",
"B",
"i",
"f",
"b",
"for(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\tC[i][j]=C[i][j]+(A[i][k]*B[k][j]);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\tif(!(j == l-1)){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\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\tfor(int k=0;k<m;k++){\n\t\t\t\t\tC[i][j]=C[i][j]+(A[i][k]*B[k][j]);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\tif(!(j == l-1)){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"{\n\t\t\tfor(int j=0;j<l;j++){\n\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\tC[i][j]=C[i][j]+(A[i][k]*B[k][j]);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\tif(!(j == l-1)){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"for(int j=0;j<l;j++){\n\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\tC[i][j]=C[i][j]+(A[i][k]*B[k][j]);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\tif(!(j == l-1)){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\tC[i][j]=C[i][j]+(A[i][k]*B[k][j]);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\tif(!(j == l-1)){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int k=0;k<m;k++){\n\t\t\t\t\tC[i][j]=C[i][j]+(A[i][k]*B[k][j]);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\tif(!(j == l-1)){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"for(int k=0;k<m;k++){\n\t\t\t\t\tC[i][j]=C[i][j]+(A[i][k]*B[k][j]);\n\t\t\t\t\t\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\tC[i][j]=C[i][j]+(A[i][k]*B[k][j]);\n\t\t\t\t\t\n\t\t\t\t}",
"{\n\t\t\t\t\tC[i][j]=C[i][j]+(A[i][k]*B[k][j]);\n\t\t\t\t\t\n\t\t\t\t}",
"C[i][j]=C[i][j]+(A[i][k]*B[k][j])",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"C[i][j]+(A[i][k]*B[k][j])",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"(A[i][k]*B[k][j])",
"A[i][k]",
"A[i]",
"A",
"i",
"k",
"B[k][j]",
"B[k]",
"B",
"k",
"j",
"System.out.print(C[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"if(!(j == l-1)){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"!(j == l-1)",
"(j == l-1)",
"j",
"l-1",
"l",
"1",
"{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"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 n = scanner.nextInt();
int m = scanner.nextInt();
int l = scanner.nextInt();
int[][] A;
A = new int[n][m];
int[][] B;
B =new int[m][l];
long[][]C;
C = new long[n][l];
for(int i=0;i<n;i++){
for(int f=0;f<m;f++){
int a = scanner.nextInt();
A[i][f]=a;
}
}
for(int i=0;i<m;i++){
for(int f=0;f<l;f++){
int b = scanner.nextInt();
B[i][f]= b;
}
}
for(int i=0;i<n;i++){
for(int j=0;j<l;j++){
for(int k=0;k<m;k++){
C[i][j]=C[i][j]+(A[i][k]*B[k][j]);
}
System.out.print(C[i][j]);
if(!(j == l-1)){
System.out.print(" ");
}
}
System.out.println("");
}
scanner.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
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,
4,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
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
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
10,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
10,
29
],
[
29,
30
],
[
29,
31
],
[
10,
34
],
[
34,
35
],
[
34,
36
],
[
10,
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
],
[
10,
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
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
87,
95
],
[
95,
96
],
[
96,
97
],
[
87,
98
],
[
99,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
100,
106
],
[
106,
107
],
[
107,
108
],
[
10,
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
],
[
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
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
134,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
164,
169
],
[
134,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
173,
175
],
[
170,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
170,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
184,
189
],
[
6,
190
],
[
190,
191
]
] | [
"import java.util.*;\n\nclass Main {\n public static void main(String args[]) {\n try (Scanner sc = new Scanner(System.in)) {\n int n = sc.nextInt(), m = sc.nextInt(), l = sc.nextInt();\n long[][] A = new long[n][m];\n long[][] B = new long[m][l];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n A[i][j] = sc.nextLong();\n }\n }\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n B[i][j] = sc.nextLong();\n }\n }\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long num = 0;\n for (int k = 0; k < m; k++) {\n num += A[i][k] * B[k][j];\n }\n System.out.print(num);\n if (j != l - 1) {\n System.out.print(\" \");\n } else {\n System.out.print(\"\\n\");\n }\n }\n }\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String args[]) {\n try (Scanner sc = new Scanner(System.in)) {\n int n = sc.nextInt(), m = sc.nextInt(), l = sc.nextInt();\n long[][] A = new long[n][m];\n long[][] B = new long[m][l];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n A[i][j] = sc.nextLong();\n }\n }\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n B[i][j] = sc.nextLong();\n }\n }\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long num = 0;\n for (int k = 0; k < m; k++) {\n num += A[i][k] * B[k][j];\n }\n System.out.print(num);\n if (j != l - 1) {\n System.out.print(\" \");\n } else {\n System.out.print(\"\\n\");\n }\n }\n }\n }\n }\n}",
"Main",
"public static void main(String args[]) {\n try (Scanner sc = new Scanner(System.in)) {\n int n = sc.nextInt(), m = sc.nextInt(), l = sc.nextInt();\n long[][] A = new long[n][m];\n long[][] B = new long[m][l];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n A[i][j] = sc.nextLong();\n }\n }\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n B[i][j] = sc.nextLong();\n }\n }\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long num = 0;\n for (int k = 0; k < m; k++) {\n num += A[i][k] * B[k][j];\n }\n System.out.print(num);\n if (j != l - 1) {\n System.out.print(\" \");\n } else {\n System.out.print(\"\\n\");\n }\n }\n }\n }\n }",
"main",
"{\n try (Scanner sc = new Scanner(System.in)) {\n int n = sc.nextInt(), m = sc.nextInt(), l = sc.nextInt();\n long[][] A = new long[n][m];\n long[][] B = new long[m][l];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n A[i][j] = sc.nextLong();\n }\n }\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n B[i][j] = sc.nextLong();\n }\n }\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long num = 0;\n for (int k = 0; k < m; k++) {\n num += A[i][k] * B[k][j];\n }\n System.out.print(num);\n if (j != l - 1) {\n System.out.print(\" \");\n } else {\n System.out.print(\"\\n\");\n }\n }\n }\n }\n }",
"try (Scanner sc = new Scanner(System.in)) {\n int n = sc.nextInt(), m = sc.nextInt(), l = sc.nextInt();\n long[][] A = new long[n][m];\n long[][] B = new long[m][l];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n A[i][j] = sc.nextLong();\n }\n }\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n B[i][j] = sc.nextLong();\n }\n }\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long num = 0;\n for (int k = 0; k < m; k++) {\n num += A[i][k] * B[k][j];\n }\n System.out.print(num);\n if (j != l - 1) {\n System.out.print(\" \");\n } else {\n System.out.print(\"\\n\");\n }\n }\n }\n }",
"{\n int n = sc.nextInt(), m = sc.nextInt(), l = sc.nextInt();\n long[][] A = new long[n][m];\n long[][] B = new long[m][l];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n A[i][j] = sc.nextLong();\n }\n }\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n B[i][j] = sc.nextLong();\n }\n }\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long num = 0;\n for (int k = 0; k < m; k++) {\n num += A[i][k] * B[k][j];\n }\n System.out.print(num);\n if (j != l - 1) {\n System.out.print(\" \");\n } else {\n System.out.print(\"\\n\");\n }\n }\n }\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"int n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"m = sc.nextInt()",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"l = sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long[][] A = new long[n][m];",
"A",
"new long[n][m]",
"n",
"m",
"long[][] B = new long[m][l];",
"B",
"new long[m][l]",
"m",
"l",
"for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n A[i][j] = sc.nextLong();\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.nextLong();\n }\n }",
"{\n for (int j = 0; j < m; j++) {\n A[i][j] = sc.nextLong();\n }\n }",
"for (int j = 0; j < m; j++) {\n A[i][j] = sc.nextLong();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n A[i][j] = sc.nextLong();\n }",
"{\n A[i][j] = sc.nextLong();\n }",
"A[i][j] = sc.nextLong()",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"sc.nextLong()",
"sc.nextLong",
"sc",
"for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n B[i][j] = sc.nextLong();\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < l; j++) {\n B[i][j] = sc.nextLong();\n }\n }",
"{\n for (int j = 0; j < l; j++) {\n B[i][j] = sc.nextLong();\n }\n }",
"for (int j = 0; j < l; j++) {\n B[i][j] = sc.nextLong();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n B[i][j] = sc.nextLong();\n }",
"{\n B[i][j] = sc.nextLong();\n }",
"B[i][j] = sc.nextLong()",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"sc.nextLong()",
"sc.nextLong",
"sc",
"for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long num = 0;\n for (int k = 0; k < m; k++) {\n num += A[i][k] * B[k][j];\n }\n System.out.print(num);\n if (j != l - 1) {\n System.out.print(\" \");\n } else {\n System.out.print(\"\\n\");\n }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < l; j++) {\n long num = 0;\n for (int k = 0; k < m; k++) {\n num += A[i][k] * B[k][j];\n }\n System.out.print(num);\n if (j != l - 1) {\n System.out.print(\" \");\n } else {\n System.out.print(\"\\n\");\n }\n }\n }",
"{\n for (int j = 0; j < l; j++) {\n long num = 0;\n for (int k = 0; k < m; k++) {\n num += A[i][k] * B[k][j];\n }\n System.out.print(num);\n if (j != l - 1) {\n System.out.print(\" \");\n } else {\n System.out.print(\"\\n\");\n }\n }\n }",
"for (int j = 0; j < l; j++) {\n long num = 0;\n for (int k = 0; k < m; k++) {\n num += A[i][k] * B[k][j];\n }\n System.out.print(num);\n if (j != l - 1) {\n System.out.print(\" \");\n } else {\n System.out.print(\"\\n\");\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n long num = 0;\n for (int k = 0; k < m; k++) {\n num += A[i][k] * B[k][j];\n }\n System.out.print(num);\n if (j != l - 1) {\n System.out.print(\" \");\n } else {\n System.out.print(\"\\n\");\n }\n }",
"{\n long num = 0;\n for (int k = 0; k < m; k++) {\n num += A[i][k] * B[k][j];\n }\n System.out.print(num);\n if (j != l - 1) {\n System.out.print(\" \");\n } else {\n System.out.print(\"\\n\");\n }\n }",
"long num = 0;",
"num",
"0",
"for (int k = 0; k < m; k++) {\n num += A[i][k] * B[k][j];\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"{\n num += A[i][k] * B[k][j];\n }",
"{\n num += A[i][k] * B[k][j];\n }",
"num += A[i][k] * B[k][j]",
"num",
"A[i][k] * B[k][j]",
"A[i][k]",
"A[i]",
"A",
"i",
"k",
"B[k][j]",
"B[k]",
"B",
"k",
"j",
"System.out.print(num)",
"System.out.print",
"System.out",
"System",
"System.out",
"num",
"if (j != l - 1) {\n System.out.print(\" \");\n } else {\n System.out.print(\"\\n\");\n }",
"j != l - 1",
"j",
"l - 1",
"l",
"1",
"{\n System.out.print(\" \");\n }",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"{\n System.out.print(\"\\n\");\n }",
"System.out.print(\"\\n\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"\\n\"",
"String args[]",
"args"
] | import java.util.*;
class Main {
public static void main(String args[]) {
try (Scanner sc = new Scanner(System.in)) {
int n = sc.nextInt(), m = sc.nextInt(), l = sc.nextInt();
long[][] A = new long[n][m];
long[][] B = new long[m][l];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
A[i][j] = sc.nextLong();
}
}
for (int i = 0; i < m; i++) {
for (int j = 0; j < l; j++) {
B[i][j] = sc.nextLong();
}
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < l; j++) {
long num = 0;
for (int k = 0; k < m; k++) {
num += A[i][k] * B[k][j];
}
System.out.print(num);
if (j != l - 1) {
System.out.print(" ");
} else {
System.out.print("\n");
}
}
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
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,
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,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
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,
13,
2,
18,
18,
13,
13,
13,
17,
4,
18,
13,
18,
18,
13,
13,
2,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
234,
8
],
[
234,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
11,
33
],
[
33,
34
],
[
33,
35
],
[
11,
38
],
[
38,
39
],
[
38,
40
],
[
11,
43
],
[
43,
44
],
[
43,
45
],
[
11,
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
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
61,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
74,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
84,
85
],
[
11,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
86,
94
],
[
94,
95
],
[
95,
96
],
[
86,
97
],
[
98,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
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
],
[
113,
117
],
[
112,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
121,
122
],
[
122,
123
],
[
11,
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
],
[
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
],
[
164,
168
],
[
163,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
169,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
11,
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
],
[
195,
196
],
[
195,
197
],
[
193,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
200,
202
],
[
193,
203
],
[
203,
204
],
[
204,
205
],
[
193,
206
],
[
207,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
208,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
212,
216
],
[
211,
217
],
[
192,
218
],
[
218,
219
],
[
219,
220
],
[
218,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
221,
225
],
[
225,
226
],
[
225,
227
],
[
11,
228
],
[
228,
229
],
[
229,
230
],
[
9,
231
],
[
231,
232
],
[
0,
233
],
[
233,
234
],
[
233,
235
]
] | [
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=in.nextInt(),m=in.nextInt(),l=in.nextInt();\n\t\tlong A[][]=new long[n][m],B[][]=new long[m][l],C[][]=new long[n][l];\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]=Integer.parseInt(in.next());\n\t\t\t}\n\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\tB[i][j]=Integer.parseInt(in.next());\n\t\t\t}\n\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\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tC[i][j]+=A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<l-1;j++) {\n\t\t\t\tout.print(C[i][j]+\" \");\n\t\t\t}\n\t\t\tout.println(C[i][l-1]);\n\t\t}\n\t\tout.flush();\n\t}\n\n}\n",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=in.nextInt(),m=in.nextInt(),l=in.nextInt();\n\t\tlong A[][]=new long[n][m],B[][]=new long[m][l],C[][]=new long[n][l];\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]=Integer.parseInt(in.next());\n\t\t\t}\n\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\tB[i][j]=Integer.parseInt(in.next());\n\t\t\t}\n\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\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tC[i][j]+=A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<l-1;j++) {\n\t\t\t\tout.print(C[i][j]+\" \");\n\t\t\t}\n\t\t\tout.println(C[i][l-1]);\n\t\t}\n\t\tout.flush();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=in.nextInt(),m=in.nextInt(),l=in.nextInt();\n\t\tlong A[][]=new long[n][m],B[][]=new long[m][l],C[][]=new long[n][l];\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]=Integer.parseInt(in.next());\n\t\t\t}\n\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\tB[i][j]=Integer.parseInt(in.next());\n\t\t\t}\n\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\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tC[i][j]+=A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<l-1;j++) {\n\t\t\t\tout.print(C[i][j]+\" \");\n\t\t\t}\n\t\t\tout.println(C[i][l-1]);\n\t\t}\n\t\tout.flush();\n\t}",
"main",
"{\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=in.nextInt(),m=in.nextInt(),l=in.nextInt();\n\t\tlong A[][]=new long[n][m],B[][]=new long[m][l],C[][]=new long[n][l];\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]=Integer.parseInt(in.next());\n\t\t\t}\n\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\tB[i][j]=Integer.parseInt(in.next());\n\t\t\t}\n\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\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tC[i][j]+=A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<l-1;j++) {\n\t\t\t\tout.print(C[i][j]+\" \");\n\t\t\t}\n\t\t\tout.println(C[i][l-1]);\n\t\t}\n\t\tout.flush();\n\t}",
"Scanner in=new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"PrintWriter out=new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"int n=in.nextInt()",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"m=in.nextInt()",
"m",
"in.nextInt()",
"in.nextInt",
"in",
"l=in.nextInt();",
"l",
"in.nextInt()",
"in.nextInt",
"in",
"long A[][]=new long[n][m]",
"A",
"new long[n][m]",
"n",
"m",
"B[][]=new long[m][l]",
"B",
"new long[m][l]",
"m",
"l",
"C[][]=new long[n][l];",
"C",
"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\tA[i][j]=Integer.parseInt(in.next());\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]=Integer.parseInt(in.next());\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tA[i][j]=Integer.parseInt(in.next());\n\t\t\t}\n\t\t}",
"for(int j=0;j<m;j++) {\n\t\t\t\tA[i][j]=Integer.parseInt(in.next());\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(in.next());\n\t\t\t}",
"{\n\t\t\t\tA[i][j]=Integer.parseInt(in.next());\n\t\t\t}",
"A[i][j]=Integer.parseInt(in.next())",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"Integer.parseInt(in.next())",
"Integer.parseInt",
"Integer",
"in.next()",
"in.next",
"in",
"for(int i=0;i<m;i++) {\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\tB[i][j]=Integer.parseInt(in.next());\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\tB[i][j]=Integer.parseInt(in.next());\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\tB[i][j]=Integer.parseInt(in.next());\n\t\t\t}\n\t\t}",
"for(int j=0;j<l;j++) {\n\t\t\t\tB[i][j]=Integer.parseInt(in.next());\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tB[i][j]=Integer.parseInt(in.next());\n\t\t\t}",
"{\n\t\t\t\tB[i][j]=Integer.parseInt(in.next());\n\t\t\t}",
"B[i][j]=Integer.parseInt(in.next())",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"Integer.parseInt(in.next())",
"Integer.parseInt",
"Integer",
"in.next()",
"in.next",
"in",
"for(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tC[i][j]+=A[i][k]*B[k][j];\n\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<l;j++) {\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tC[i][j]+=A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tC[i][j]+=A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int j=0;j<l;j++) {\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tC[i][j]+=A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tC[i][j]+=A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tC[i][j]+=A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t}",
"for(int k=0;k<m;k++) {\n\t\t\t\t\tC[i][j]+=A[i][k]*B[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\tC[i][j]+=A[i][k]*B[k][j];\n\t\t\t\t}",
"{\n\t\t\t\t\tC[i][j]+=A[i][k]*B[k][j];\n\t\t\t\t}",
"C[i][j]+=A[i][k]*B[k][j]",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"A[i][k]*B[k][j]",
"A[i][k]",
"A[i]",
"A",
"i",
"k",
"B[k][j]",
"B[k]",
"B",
"k",
"j",
"for(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<l-1;j++) {\n\t\t\t\tout.print(C[i][j]+\" \");\n\t\t\t}\n\t\t\tout.println(C[i][l-1]);\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-1;j++) {\n\t\t\t\tout.print(C[i][j]+\" \");\n\t\t\t}\n\t\t\tout.println(C[i][l-1]);\n\t\t}",
"{\n\t\t\tfor(int j=0;j<l-1;j++) {\n\t\t\t\tout.print(C[i][j]+\" \");\n\t\t\t}\n\t\t\tout.println(C[i][l-1]);\n\t\t}",
"for(int j=0;j<l-1;j++) {\n\t\t\t\tout.print(C[i][j]+\" \");\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l-1",
"j",
"l-1",
"l",
"1",
"j++",
"j++",
"j",
"{\n\t\t\t\tout.print(C[i][j]+\" \");\n\t\t\t}",
"{\n\t\t\t\tout.print(C[i][j]+\" \");\n\t\t\t}",
"out.print(C[i][j]+\" \")",
"out.print",
"out",
"C[i][j]+\" \"",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"\" \"",
"out.println(C[i][l-1])",
"out.println",
"out",
"C[i][l-1]",
"C[i]",
"C",
"i",
"l-1",
"l",
"1",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=in.nextInt(),m=in.nextInt(),l=in.nextInt();\n\t\tlong A[][]=new long[n][m],B[][]=new long[m][l],C[][]=new long[n][l];\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]=Integer.parseInt(in.next());\n\t\t\t}\n\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\tB[i][j]=Integer.parseInt(in.next());\n\t\t\t}\n\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\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tC[i][j]+=A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<l-1;j++) {\n\t\t\t\tout.print(C[i][j]+\" \");\n\t\t\t}\n\t\t\tout.println(C[i][l-1]);\n\t\t}\n\t\tout.flush();\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=in.nextInt(),m=in.nextInt(),l=in.nextInt();\n\t\tlong A[][]=new long[n][m],B[][]=new long[m][l],C[][]=new long[n][l];\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]=Integer.parseInt(in.next());\n\t\t\t}\n\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\tB[i][j]=Integer.parseInt(in.next());\n\t\t\t}\n\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\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tC[i][j]+=A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<l-1;j++) {\n\t\t\t\tout.print(C[i][j]+\" \");\n\t\t\t}\n\t\t\tout.println(C[i][l-1]);\n\t\t}\n\t\tout.flush();\n\t}\n\n}",
"Main"
] | import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
PrintWriter out=new PrintWriter(System.out);
int n=in.nextInt(),m=in.nextInt(),l=in.nextInt();
long A[][]=new long[n][m],B[][]=new long[m][l],C[][]=new long[n][l];
for(int i=0;i<n;i++) {
for(int j=0;j<m;j++) {
A[i][j]=Integer.parseInt(in.next());
}
}
for(int i=0;i<m;i++) {
for(int j=0;j<l;j++) {
B[i][j]=Integer.parseInt(in.next());
}
}
for(int i=0;i<n;i++) {
for(int j=0;j<l;j++) {
for(int k=0;k<m;k++) {
C[i][j]+=A[i][k]*B[k][j];
}
}
}
for(int i=0;i<n;i++) {
for(int j=0;j<l-1;j++) {
out.print(C[i][j]+" ");
}
out.println(C[i][l-1]);
}
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,
4,
18,
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,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
18,
18,
13,
13,
13,
17,
30,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
220,
5
],
[
220,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
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
],
[
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
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
98,
104
],
[
104,
105
],
[
105,
106
],
[
8,
107
],
[
107,
108
],
[
107,
109
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
112,
120
],
[
120,
121
],
[
121,
122
],
[
112,
123
],
[
124,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
125,
136
],
[
137,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
138,
144
],
[
137,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
145,
150
],
[
150,
151
],
[
150,
152
],
[
145,
153
],
[
153,
154
],
[
154,
155
],
[
145,
156
],
[
157,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
158,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
164,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
170,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
176,
180
],
[
137,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
184,
186
],
[
181,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
188,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
194,
198
],
[
193,
199
],
[
181,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
201,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
206,
210
],
[
124,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
211,
216
],
[
6,
217
],
[
217,
218
],
[
0,
219
],
[
219,
220
],
[
219,
221
]
] | [
"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 l = sc.nextInt();\n\n\t\tlong[][] A = new long[n][m];\n\t\tlong[][] B = new long[m][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < m; j++) {\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tB[j][k] = sc.nextLong();\n\t\t\t}\n\t\t}\n\n\t\tlong[][] sum = new long[n][l];\n\n\t\tfor (int p = 0; p < n; p++) {\n\t\t\tfor (int q = 0; q < l; q++) {\n\t\t\t\tsum[p][q] = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum[p][q] = sum[p][q] + A[p][k] * B[k][q];\n\t\t\t\t}\n\t\t\t\tif (q != l - 1) {\n\t\t\t\t\tSystem.out.print(sum[p][q] + \" \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(sum[p][q]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\n\t}\n\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\n\t\tlong[][] A = new long[n][m];\n\t\tlong[][] B = new long[m][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < m; j++) {\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tB[j][k] = sc.nextLong();\n\t\t\t}\n\t\t}\n\n\t\tlong[][] sum = new long[n][l];\n\n\t\tfor (int p = 0; p < n; p++) {\n\t\t\tfor (int q = 0; q < l; q++) {\n\t\t\t\tsum[p][q] = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum[p][q] = sum[p][q] + A[p][k] * B[k][q];\n\t\t\t\t}\n\t\t\t\tif (q != l - 1) {\n\t\t\t\t\tSystem.out.print(sum[p][q] + \" \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(sum[p][q]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\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 n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\n\t\tlong[][] A = new long[n][m];\n\t\tlong[][] B = new long[m][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < m; j++) {\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tB[j][k] = sc.nextLong();\n\t\t\t}\n\t\t}\n\n\t\tlong[][] sum = new long[n][l];\n\n\t\tfor (int p = 0; p < n; p++) {\n\t\t\tfor (int q = 0; q < l; q++) {\n\t\t\t\tsum[p][q] = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum[p][q] = sum[p][q] + A[p][k] * B[k][q];\n\t\t\t\t}\n\t\t\t\tif (q != l - 1) {\n\t\t\t\t\tSystem.out.print(sum[p][q] + \" \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(sum[p][q]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\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 l = sc.nextInt();\n\n\t\tlong[][] A = new long[n][m];\n\t\tlong[][] B = new long[m][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < m; j++) {\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tB[j][k] = sc.nextLong();\n\t\t\t}\n\t\t}\n\n\t\tlong[][] sum = new long[n][l];\n\n\t\tfor (int p = 0; p < n; p++) {\n\t\t\tfor (int q = 0; q < l; q++) {\n\t\t\t\tsum[p][q] = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum[p][q] = sum[p][q] + A[p][k] * B[k][q];\n\t\t\t\t}\n\t\t\t\tif (q != l - 1) {\n\t\t\t\t\tSystem.out.print(sum[p][q] + \" \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(sum[p][q]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\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 l = sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long[][] A = new long[n][m];",
"A",
"new long[n][m]",
"n",
"m",
"long[][] B = new long[m][l];",
"B",
"new long[m][l]",
"m",
"l",
"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.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\tA[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\tA[i][j] = sc.nextLong();\n\t\t\t}\n\t\t}",
"for (int j = 0; j < m; j++) {\n\t\t\t\tA[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\tA[i][j] = sc.nextLong();\n\t\t\t}",
"{\n\t\t\t\tA[i][j] = sc.nextLong();\n\t\t\t}",
"A[i][j] = sc.nextLong()",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"sc.nextLong()",
"sc.nextLong",
"sc",
"for (int j = 0; j < m; j++) {\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tB[j][k] = sc.nextLong();\n\t\t\t}\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tB[j][k] = sc.nextLong();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tB[j][k] = sc.nextLong();\n\t\t\t}\n\t\t}",
"for (int k = 0; k < l; k++) {\n\t\t\t\tB[j][k] = sc.nextLong();\n\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < l",
"k",
"l",
"k++",
"k++",
"k",
"{\n\t\t\t\tB[j][k] = sc.nextLong();\n\t\t\t}",
"{\n\t\t\t\tB[j][k] = sc.nextLong();\n\t\t\t}",
"B[j][k] = sc.nextLong()",
"B[j][k]",
"B[j]",
"B",
"j",
"k",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long[][] sum = new long[n][l];",
"sum",
"new long[n][l]",
"n",
"l",
"for (int p = 0; p < n; p++) {\n\t\t\tfor (int q = 0; q < l; q++) {\n\t\t\t\tsum[p][q] = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum[p][q] = sum[p][q] + A[p][k] * B[k][q];\n\t\t\t\t}\n\t\t\t\tif (q != l - 1) {\n\t\t\t\t\tSystem.out.print(sum[p][q] + \" \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(sum[p][q]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"int p = 0;",
"int p = 0;",
"p",
"0",
"p < n",
"p",
"n",
"p++",
"p++",
"p",
"{\n\t\t\tfor (int q = 0; q < l; q++) {\n\t\t\t\tsum[p][q] = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum[p][q] = sum[p][q] + A[p][k] * B[k][q];\n\t\t\t\t}\n\t\t\t\tif (q != l - 1) {\n\t\t\t\t\tSystem.out.print(sum[p][q] + \" \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(sum[p][q]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"{\n\t\t\tfor (int q = 0; q < l; q++) {\n\t\t\t\tsum[p][q] = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum[p][q] = sum[p][q] + A[p][k] * B[k][q];\n\t\t\t\t}\n\t\t\t\tif (q != l - 1) {\n\t\t\t\t\tSystem.out.print(sum[p][q] + \" \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(sum[p][q]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"for (int q = 0; q < l; q++) {\n\t\t\t\tsum[p][q] = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum[p][q] = sum[p][q] + A[p][k] * B[k][q];\n\t\t\t\t}\n\t\t\t\tif (q != l - 1) {\n\t\t\t\t\tSystem.out.print(sum[p][q] + \" \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(sum[p][q]);\n\t\t\t\t}\n\t\t\t}",
"int q = 0;",
"int q = 0;",
"q",
"0",
"q < l",
"q",
"l",
"q++",
"q++",
"q",
"{\n\t\t\t\tsum[p][q] = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum[p][q] = sum[p][q] + A[p][k] * B[k][q];\n\t\t\t\t}\n\t\t\t\tif (q != l - 1) {\n\t\t\t\t\tSystem.out.print(sum[p][q] + \" \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(sum[p][q]);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tsum[p][q] = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum[p][q] = sum[p][q] + A[p][k] * B[k][q];\n\t\t\t\t}\n\t\t\t\tif (q != l - 1) {\n\t\t\t\t\tSystem.out.print(sum[p][q] + \" \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(sum[p][q]);\n\t\t\t\t}\n\t\t\t}",
"sum[p][q] = 0",
"sum[p][q]",
"sum[p]",
"sum",
"p",
"q",
"0",
"for (int k = 0; k < m; k++) {\n\t\t\t\t\tsum[p][q] = sum[p][q] + A[p][k] * B[k][q];\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\tsum[p][q] = sum[p][q] + A[p][k] * B[k][q];\n\t\t\t\t}",
"{\n\t\t\t\t\tsum[p][q] = sum[p][q] + A[p][k] * B[k][q];\n\t\t\t\t}",
"sum[p][q] = sum[p][q] + A[p][k] * B[k][q]",
"sum[p][q]",
"sum[p]",
"sum",
"p",
"q",
"sum[p][q] + A[p][k] * B[k][q]",
"sum[p][q]",
"sum[p]",
"sum",
"p",
"q",
"A[p][k] * B[k][q]",
"A[p][k]",
"A[p]",
"A",
"p",
"k",
"B[k][q]",
"B[k]",
"B",
"k",
"q",
"if (q != l - 1) {\n\t\t\t\t\tSystem.out.print(sum[p][q] + \" \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(sum[p][q]);\n\t\t\t\t}",
"q != l - 1",
"q",
"l - 1",
"l",
"1",
"{\n\t\t\t\t\tSystem.out.print(sum[p][q] + \" \");\n\t\t\t\t}",
"System.out.print(sum[p][q] + \" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"sum[p][q] + \" \"",
"sum[p][q]",
"sum[p]",
"sum",
"p",
"q",
"\" \"",
"{\n\t\t\t\t\tSystem.out.print(sum[p][q]);\n\t\t\t\t}",
"System.out.print(sum[p][q])",
"System.out.print",
"System.out",
"System",
"System.out",
"sum[p][q]",
"sum[p]",
"sum",
"p",
"q",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"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 l = sc.nextInt();\n\n\t\tlong[][] A = new long[n][m];\n\t\tlong[][] B = new long[m][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < m; j++) {\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tB[j][k] = sc.nextLong();\n\t\t\t}\n\t\t}\n\n\t\tlong[][] sum = new long[n][l];\n\n\t\tfor (int p = 0; p < n; p++) {\n\t\t\tfor (int q = 0; q < l; q++) {\n\t\t\t\tsum[p][q] = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum[p][q] = sum[p][q] + A[p][k] * B[k][q];\n\t\t\t\t}\n\t\t\t\tif (q != l - 1) {\n\t\t\t\t\tSystem.out.print(sum[p][q] + \" \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(sum[p][q]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\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 n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\n\t\tlong[][] A = new long[n][m];\n\t\tlong[][] B = new long[m][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = sc.nextLong();\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < m; j++) {\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tB[j][k] = sc.nextLong();\n\t\t\t}\n\t\t}\n\n\t\tlong[][] sum = new long[n][l];\n\n\t\tfor (int p = 0; p < n; p++) {\n\t\t\tfor (int q = 0; q < l; q++) {\n\t\t\t\tsum[p][q] = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum[p][q] = sum[p][q] + A[p][k] * B[k][q];\n\t\t\t\t}\n\t\t\t\tif (q != l - 1) {\n\t\t\t\t\tSystem.out.print(sum[p][q] + \" \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(sum[p][q]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\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 n = sc.nextInt();
int m = sc.nextInt();
int l = sc.nextInt();
long[][] A = new long[n][m];
long[][] B = new long[m][l];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
A[i][j] = sc.nextLong();
}
}
for (int j = 0; j < m; j++) {
for (int k = 0; k < l; k++) {
B[j][k] = sc.nextLong();
}
}
long[][] sum = new long[n][l];
for (int p = 0; p < n; p++) {
for (int q = 0; q < l; q++) {
sum[p][q] = 0;
for (int k = 0; k < m; k++) {
sum[p][q] = sum[p][q] + A[p][k] * B[k][q];
}
if (q != l - 1) {
System.out.print(sum[p][q] + " ");
} else {
System.out.print(sum[p][q]);
}
}
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,
4,
18,
13,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
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,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
18,
18,
13,
13,
13,
17,
30,
4,
18,
18,
13,
13,
18,
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
],
[
235,
5
],
[
235,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
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
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
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
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
112,
120
],
[
120,
121
],
[
121,
122
],
[
112,
123
],
[
124,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
125,
136
],
[
137,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
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
],
[
8,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
173,
174
],
[
173,
175
],
[
168,
176
],
[
176,
177
],
[
177,
178
],
[
168,
179
],
[
180,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
181,
186
],
[
186,
187
],
[
186,
188
],
[
181,
189
],
[
189,
190
],
[
190,
191
],
[
181,
192
],
[
193,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
197,
199
],
[
194,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
201,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
207,
211
],
[
206,
212
],
[
194,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
214,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
219,
223
],
[
180,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
8,
229
],
[
229,
230
],
[
230,
231
],
[
6,
232
],
[
232,
233
],
[
0,
234
],
[
234,
235
],
[
234,
236
]
] | [
"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 int n=sc.nextInt();\n int m=sc.nextInt();\n int l=sc.nextInt();\n \n int [][] a=new int[n][m];\n int [][] b=new int[m][l];\n long[][] x=new long[n][l];\n \n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n a[i][j]=sc.nextInt();\n }\n }\n for(int i=0;i<m;i++){\n for(int j=0;j<l;j++){\n b[i][j]=sc.nextInt();\n }\n }\n \n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n for(int k=0;k<l;k++){\n x[i][k]+=a[i][j]*b[j][k];\n }\n }\n }\n \n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n if(j!=l-1){\n \tSystem.out.print(x[i][j]+\" \");\n \t}else{\n System.out.print(x[i][j]);\n }\n }\n System.out.println();\n }\n sc.close();\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 int n=sc.nextInt();\n int m=sc.nextInt();\n int l=sc.nextInt();\n \n int [][] a=new int[n][m];\n int [][] b=new int[m][l];\n long[][] x=new long[n][l];\n \n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n a[i][j]=sc.nextInt();\n }\n }\n for(int i=0;i<m;i++){\n for(int j=0;j<l;j++){\n b[i][j]=sc.nextInt();\n }\n }\n \n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n for(int k=0;k<l;k++){\n x[i][k]+=a[i][j]*b[j][k];\n }\n }\n }\n \n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n if(j!=l-1){\n \tSystem.out.print(x[i][j]+\" \");\n \t}else{\n System.out.print(x[i][j]);\n }\n }\n System.out.println();\n }\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n int m=sc.nextInt();\n int l=sc.nextInt();\n \n int [][] a=new int[n][m];\n int [][] b=new int[m][l];\n long[][] x=new long[n][l];\n \n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n a[i][j]=sc.nextInt();\n }\n }\n for(int i=0;i<m;i++){\n for(int j=0;j<l;j++){\n b[i][j]=sc.nextInt();\n }\n }\n \n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n for(int k=0;k<l;k++){\n x[i][k]+=a[i][j]*b[j][k];\n }\n }\n }\n \n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n if(j!=l-1){\n \tSystem.out.print(x[i][j]+\" \");\n \t}else{\n System.out.print(x[i][j]);\n }\n }\n System.out.println();\n }\n sc.close();\n }",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n int m=sc.nextInt();\n int l=sc.nextInt();\n \n int [][] a=new int[n][m];\n int [][] b=new int[m][l];\n long[][] x=new long[n][l];\n \n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n a[i][j]=sc.nextInt();\n }\n }\n for(int i=0;i<m;i++){\n for(int j=0;j<l;j++){\n b[i][j]=sc.nextInt();\n }\n }\n \n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n for(int k=0;k<l;k++){\n x[i][k]+=a[i][j]*b[j][k];\n }\n }\n }\n \n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n if(j!=l-1){\n \tSystem.out.print(x[i][j]+\" \");\n \t}else{\n System.out.print(x[i][j]);\n }\n }\n System.out.println();\n }\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m=sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int l=sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int [][] a=new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int [][] b=new int[m][l];",
"b",
"new int[m][l]",
"m",
"l",
"long[][] x=new long[n][l];",
"x",
"new long[n][l]",
"n",
"l",
"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 for(int j=0;j<l;j++){\n b[i][j]=sc.nextInt();\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n for(int j=0;j<l;j++){\n b[i][j]=sc.nextInt();\n }\n }",
"{\n for(int j=0;j<l;j++){\n b[i][j]=sc.nextInt();\n }\n }",
"for(int j=0;j<l;j++){\n b[i][j]=sc.nextInt();\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n b[i][j]=sc.nextInt();\n }",
"{\n b[i][j]=sc.nextInt();\n }",
"b[i][j]=sc.nextInt()",
"b[i][j]",
"b[i]",
"b",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n for(int k=0;k<l;k++){\n x[i][k]+=a[i][j]*b[j][k];\n }\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 for(int k=0;k<l;k++){\n x[i][k]+=a[i][j]*b[j][k];\n }\n }\n }",
"{\n for(int j=0;j<m;j++){\n for(int k=0;k<l;k++){\n x[i][k]+=a[i][j]*b[j][k];\n }\n }\n }",
"for(int j=0;j<m;j++){\n for(int k=0;k<l;k++){\n x[i][k]+=a[i][j]*b[j][k];\n }\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n for(int k=0;k<l;k++){\n x[i][k]+=a[i][j]*b[j][k];\n }\n }",
"{\n for(int k=0;k<l;k++){\n x[i][k]+=a[i][j]*b[j][k];\n }\n }",
"for(int k=0;k<l;k++){\n x[i][k]+=a[i][j]*b[j][k];\n }",
"int k=0;",
"int k=0;",
"k",
"0",
"k<l",
"k",
"l",
"k++",
"k++",
"k",
"{\n x[i][k]+=a[i][j]*b[j][k];\n }",
"{\n x[i][k]+=a[i][j]*b[j][k];\n }",
"x[i][k]+=a[i][j]*b[j][k]",
"x[i][k]",
"x[i]",
"x",
"i",
"k",
"a[i][j]*b[j][k]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"b[j][k]",
"b[j]",
"b",
"j",
"k",
"for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n if(j!=l-1){\n \tSystem.out.print(x[i][j]+\" \");\n \t}else{\n System.out.print(x[i][j]);\n }\n }\n System.out.println();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j=0;j<l;j++){\n if(j!=l-1){\n \tSystem.out.print(x[i][j]+\" \");\n \t}else{\n System.out.print(x[i][j]);\n }\n }\n System.out.println();\n }",
"{\n for(int j=0;j<l;j++){\n if(j!=l-1){\n \tSystem.out.print(x[i][j]+\" \");\n \t}else{\n System.out.print(x[i][j]);\n }\n }\n System.out.println();\n }",
"for(int j=0;j<l;j++){\n if(j!=l-1){\n \tSystem.out.print(x[i][j]+\" \");\n \t}else{\n System.out.print(x[i][j]);\n }\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n if(j!=l-1){\n \tSystem.out.print(x[i][j]+\" \");\n \t}else{\n System.out.print(x[i][j]);\n }\n }",
"{\n if(j!=l-1){\n \tSystem.out.print(x[i][j]+\" \");\n \t}else{\n System.out.print(x[i][j]);\n }\n }",
"if(j!=l-1){\n \tSystem.out.print(x[i][j]+\" \");\n \t}else{\n System.out.print(x[i][j]);\n }",
"j!=l-1",
"j",
"l-1",
"l",
"1",
"{\n \tSystem.out.print(x[i][j]+\" \");\n \t}",
"System.out.print(x[i][j]+\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"x[i][j]+\" \"",
"x[i][j]",
"x[i]",
"x",
"i",
"j",
"\" \"",
"{\n System.out.print(x[i][j]);\n }",
"System.out.print(x[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"x[i][j]",
"x[i]",
"x",
"i",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n int m=sc.nextInt();\n int l=sc.nextInt();\n \n int [][] a=new int[n][m];\n int [][] b=new int[m][l];\n long[][] x=new long[n][l];\n \n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n a[i][j]=sc.nextInt();\n }\n }\n for(int i=0;i<m;i++){\n for(int j=0;j<l;j++){\n b[i][j]=sc.nextInt();\n }\n }\n \n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n for(int k=0;k<l;k++){\n x[i][k]+=a[i][j]*b[j][k];\n }\n }\n }\n \n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n if(j!=l-1){\n \tSystem.out.print(x[i][j]+\" \");\n \t}else{\n System.out.print(x[i][j]);\n }\n }\n System.out.println();\n }\n sc.close();\n }\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n int m=sc.nextInt();\n int l=sc.nextInt();\n \n int [][] a=new int[n][m];\n int [][] b=new int[m][l];\n long[][] x=new long[n][l];\n \n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n a[i][j]=sc.nextInt();\n }\n }\n for(int i=0;i<m;i++){\n for(int j=0;j<l;j++){\n b[i][j]=sc.nextInt();\n }\n }\n \n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n for(int k=0;k<l;k++){\n x[i][k]+=a[i][j]*b[j][k];\n }\n }\n }\n \n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n if(j!=l-1){\n \tSystem.out.print(x[i][j]+\" \");\n \t}else{\n System.out.print(x[i][j]);\n }\n }\n System.out.println();\n }\n sc.close();\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n=sc.nextInt();
int m=sc.nextInt();
int l=sc.nextInt();
int [][] a=new int[n][m];
int [][] b=new int[m][l];
long[][] x=new long[n][l];
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++){
for(int j=0;j<l;j++){
b[i][j]=sc.nextInt();
}
}
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
for(int k=0;k<l;k++){
x[i][k]+=a[i][j]*b[j][k];
}
}
}
for(int i=0;i<n;i++){
for(int j=0;j<l;j++){
if(j!=l-1){
System.out.print(x[i][j]+" ");
}else{
System.out.print(x[i][j]);
}
}
System.out.println();
}
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,
4,
18,
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,
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,
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,
17,
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,
18,
13,
13,
13,
0,
13,
2,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
40,
13,
14,
2,
13,
13,
0,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
215,
5
],
[
215,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
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
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
62,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
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
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
100,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
106,
112
],
[
8,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
113,
121
],
[
121,
122
],
[
122,
123
],
[
113,
124
],
[
125,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
129,
130
],
[
129,
131
],
[
125,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
137,
138
],
[
137,
139
],
[
132,
140
],
[
140,
141
],
[
141,
142
],
[
132,
143
],
[
144,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
153,
154
],
[
153,
155
],
[
148,
156
],
[
156,
157
],
[
157,
158
],
[
148,
159
],
[
160,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
163,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
160,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
176,
178
],
[
160,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
182,
184
],
[
179,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
186,
191
],
[
185,
192
],
[
192,
193
],
[
185,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
194,
198
],
[
198,
199
],
[
198,
200
],
[
194,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
201,
206
],
[
125,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
6,
212
],
[
212,
213
],
[
0,
214
],
[
214,
215
],
[
214,
216
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\t\t// ??\\???\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\t// ???????????£?¨?\n\t\tint A[][] = new int[n][m];\n\t\tint B[][] = new int[m][l];\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\tfor(int i2=0; i2<l; i2++){\n\t\t\t\tint x = scan.nextInt();\n\t\t\t\tB[i][i2] = x;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// \t???????±????????\n\t\tfor(int i=0; i<n; i++){\n\t\t\tint x = 0;\n\t\t\tlong y = 0;\n\t\t\tfor(int j=0; j<l; j++){\n\t\t\t\tlong C = 0;\n\t\t\t\tfor (int k=0; k<m; k++){\n\t\t\t\t\ty = A[i][k]*B[k][j];\n\t\t\t\t\tC = C + y;\n\t\t\t\t\t// ??????\n\t\t\t\t\tif(k == (m-1)){\n\t\t\t\t\t\tSystem.out.print(C);\n\t\t\t\t\t\tx++;\n\t\t\t\t\t\tif(x == l) x = 0;\n\t\t\t\t\t\telse System.out.print(\" \");\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\tSystem.out.println();\n\t\t}\n\t\t\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\tScanner scan = new Scanner(System.in);\n\t\t// ??\\???\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\t// ???????????£?¨?\n\t\tint A[][] = new int[n][m];\n\t\tint B[][] = new int[m][l];\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\tfor(int i2=0; i2<l; i2++){\n\t\t\t\tint x = scan.nextInt();\n\t\t\t\tB[i][i2] = x;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// \t???????±????????\n\t\tfor(int i=0; i<n; i++){\n\t\t\tint x = 0;\n\t\t\tlong y = 0;\n\t\t\tfor(int j=0; j<l; j++){\n\t\t\t\tlong C = 0;\n\t\t\t\tfor (int k=0; k<m; k++){\n\t\t\t\t\ty = A[i][k]*B[k][j];\n\t\t\t\t\tC = C + y;\n\t\t\t\t\t// ??????\n\t\t\t\t\tif(k == (m-1)){\n\t\t\t\t\t\tSystem.out.print(C);\n\t\t\t\t\t\tx++;\n\t\t\t\t\t\tif(x == l) x = 0;\n\t\t\t\t\t\telse System.out.print(\" \");\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\tSystem.out.println();\n\t\t}\n\t\t\t\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\t\t// ??\\???\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\t// ???????????£?¨?\n\t\tint A[][] = new int[n][m];\n\t\tint B[][] = new int[m][l];\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\tfor(int i2=0; i2<l; i2++){\n\t\t\t\tint x = scan.nextInt();\n\t\t\t\tB[i][i2] = x;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// \t???????±????????\n\t\tfor(int i=0; i<n; i++){\n\t\t\tint x = 0;\n\t\t\tlong y = 0;\n\t\t\tfor(int j=0; j<l; j++){\n\t\t\t\tlong C = 0;\n\t\t\t\tfor (int k=0; k<m; k++){\n\t\t\t\t\ty = A[i][k]*B[k][j];\n\t\t\t\t\tC = C + y;\n\t\t\t\t\t// ??????\n\t\t\t\t\tif(k == (m-1)){\n\t\t\t\t\t\tSystem.out.print(C);\n\t\t\t\t\t\tx++;\n\t\t\t\t\t\tif(x == l) x = 0;\n\t\t\t\t\t\telse System.out.print(\" \");\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\tSystem.out.println();\n\t\t}\n\t\t\t\n\t\t\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\t\t// ??\\???\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\t// ???????????£?¨?\n\t\tint A[][] = new int[n][m];\n\t\tint B[][] = new int[m][l];\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\tfor(int i2=0; i2<l; i2++){\n\t\t\t\tint x = scan.nextInt();\n\t\t\t\tB[i][i2] = x;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// \t???????±????????\n\t\tfor(int i=0; i<n; i++){\n\t\t\tint x = 0;\n\t\t\tlong y = 0;\n\t\t\tfor(int j=0; j<l; j++){\n\t\t\t\tlong C = 0;\n\t\t\t\tfor (int k=0; k<m; k++){\n\t\t\t\t\ty = A[i][k]*B[k][j];\n\t\t\t\t\tC = C + y;\n\t\t\t\t\t// ??????\n\t\t\t\t\tif(k == (m-1)){\n\t\t\t\t\t\tSystem.out.print(C);\n\t\t\t\t\t\tx++;\n\t\t\t\t\t\tif(x == l) x = 0;\n\t\t\t\t\t\telse System.out.print(\" \");\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\tSystem.out.println();\n\t\t}\n\t\t\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 l = scan.nextInt();",
"l",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int A[][] = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int B[][] = new int[m][l];",
"B",
"new int[m][l]",
"m",
"l",
"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\tfor(int i2=0; i2<l; i2++){\n\t\t\t\tint x = scan.nextInt();\n\t\t\t\tB[i][i2] = x;\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 i2=0; i2<l; i2++){\n\t\t\t\tint x = scan.nextInt();\n\t\t\t\tB[i][i2] = x;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int i2=0; i2<l; i2++){\n\t\t\t\tint x = scan.nextInt();\n\t\t\t\tB[i][i2] = x;\n\t\t\t}\n\t\t}",
"for(int i2=0; i2<l; i2++){\n\t\t\t\tint x = scan.nextInt();\n\t\t\t\tB[i][i2] = x;\n\t\t\t}",
"int i2=0;",
"int i2=0;",
"i2",
"0",
"i2<l",
"i2",
"l",
"i2++",
"i2++",
"i2",
"{\n\t\t\t\tint x = scan.nextInt();\n\t\t\t\tB[i][i2] = x;\n\t\t\t}",
"{\n\t\t\t\tint x = scan.nextInt();\n\t\t\t\tB[i][i2] = x;\n\t\t\t}",
"int x = scan.nextInt();",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"B[i][i2] = x",
"B[i][i2]",
"B[i]",
"B",
"i",
"i2",
"x",
"for(int i=0; i<n; i++){\n\t\t\tint x = 0;\n\t\t\tlong y = 0;\n\t\t\tfor(int j=0; j<l; j++){\n\t\t\t\tlong C = 0;\n\t\t\t\tfor (int k=0; k<m; k++){\n\t\t\t\t\ty = A[i][k]*B[k][j];\n\t\t\t\t\tC = C + y;\n\t\t\t\t\t// ??????\n\t\t\t\t\tif(k == (m-1)){\n\t\t\t\t\t\tSystem.out.print(C);\n\t\t\t\t\t\tx++;\n\t\t\t\t\t\tif(x == l) x = 0;\n\t\t\t\t\t\telse System.out.print(\" \");\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\tSystem.out.println();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint x = 0;\n\t\t\tlong y = 0;\n\t\t\tfor(int j=0; j<l; j++){\n\t\t\t\tlong C = 0;\n\t\t\t\tfor (int k=0; k<m; k++){\n\t\t\t\t\ty = A[i][k]*B[k][j];\n\t\t\t\t\tC = C + y;\n\t\t\t\t\t// ??????\n\t\t\t\t\tif(k == (m-1)){\n\t\t\t\t\t\tSystem.out.print(C);\n\t\t\t\t\t\tx++;\n\t\t\t\t\t\tif(x == l) x = 0;\n\t\t\t\t\t\telse System.out.print(\" \");\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\tSystem.out.println();\n\t\t}",
"{\n\t\t\tint x = 0;\n\t\t\tlong y = 0;\n\t\t\tfor(int j=0; j<l; j++){\n\t\t\t\tlong C = 0;\n\t\t\t\tfor (int k=0; k<m; k++){\n\t\t\t\t\ty = A[i][k]*B[k][j];\n\t\t\t\t\tC = C + y;\n\t\t\t\t\t// ??????\n\t\t\t\t\tif(k == (m-1)){\n\t\t\t\t\t\tSystem.out.print(C);\n\t\t\t\t\t\tx++;\n\t\t\t\t\t\tif(x == l) x = 0;\n\t\t\t\t\t\telse System.out.print(\" \");\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\tSystem.out.println();\n\t\t}",
"int x = 0;",
"x",
"0",
"long y = 0;",
"y",
"0",
"for(int j=0; j<l; j++){\n\t\t\t\tlong C = 0;\n\t\t\t\tfor (int k=0; k<m; k++){\n\t\t\t\t\ty = A[i][k]*B[k][j];\n\t\t\t\t\tC = C + y;\n\t\t\t\t\t// ??????\n\t\t\t\t\tif(k == (m-1)){\n\t\t\t\t\t\tSystem.out.print(C);\n\t\t\t\t\t\tx++;\n\t\t\t\t\t\tif(x == l) x = 0;\n\t\t\t\t\t\telse System.out.print(\" \");\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tlong C = 0;\n\t\t\t\tfor (int k=0; k<m; k++){\n\t\t\t\t\ty = A[i][k]*B[k][j];\n\t\t\t\t\tC = C + y;\n\t\t\t\t\t// ??????\n\t\t\t\t\tif(k == (m-1)){\n\t\t\t\t\t\tSystem.out.print(C);\n\t\t\t\t\t\tx++;\n\t\t\t\t\t\tif(x == l) x = 0;\n\t\t\t\t\t\telse System.out.print(\" \");\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\t\tlong C = 0;\n\t\t\t\tfor (int k=0; k<m; k++){\n\t\t\t\t\ty = A[i][k]*B[k][j];\n\t\t\t\t\tC = C + y;\n\t\t\t\t\t// ??????\n\t\t\t\t\tif(k == (m-1)){\n\t\t\t\t\t\tSystem.out.print(C);\n\t\t\t\t\t\tx++;\n\t\t\t\t\t\tif(x == l) x = 0;\n\t\t\t\t\t\telse System.out.print(\" \");\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"long C = 0;",
"C",
"0",
"for (int k=0; k<m; k++){\n\t\t\t\t\ty = A[i][k]*B[k][j];\n\t\t\t\t\tC = C + y;\n\t\t\t\t\t// ??????\n\t\t\t\t\tif(k == (m-1)){\n\t\t\t\t\t\tSystem.out.print(C);\n\t\t\t\t\t\tx++;\n\t\t\t\t\t\tif(x == l) x = 0;\n\t\t\t\t\t\telse System.out.print(\" \");\n\t\t\t\t\t\t\n\t\t\t\t\t}\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\ty = A[i][k]*B[k][j];\n\t\t\t\t\tC = C + y;\n\t\t\t\t\t// ??????\n\t\t\t\t\tif(k == (m-1)){\n\t\t\t\t\t\tSystem.out.print(C);\n\t\t\t\t\t\tx++;\n\t\t\t\t\t\tif(x == l) x = 0;\n\t\t\t\t\t\telse System.out.print(\" \");\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\ty = A[i][k]*B[k][j];\n\t\t\t\t\tC = C + y;\n\t\t\t\t\t// ??????\n\t\t\t\t\tif(k == (m-1)){\n\t\t\t\t\t\tSystem.out.print(C);\n\t\t\t\t\t\tx++;\n\t\t\t\t\t\tif(x == l) x = 0;\n\t\t\t\t\t\telse System.out.print(\" \");\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}",
"y = A[i][k]*B[k][j]",
"y",
"A[i][k]*B[k][j]",
"A[i][k]",
"A[i]",
"A",
"i",
"k",
"B[k][j]",
"B[k]",
"B",
"k",
"j",
"C = C + y",
"C",
"C + y",
"C",
"y",
"if(k == (m-1)){\n\t\t\t\t\t\tSystem.out.print(C);\n\t\t\t\t\t\tx++;\n\t\t\t\t\t\tif(x == l) x = 0;\n\t\t\t\t\t\telse System.out.print(\" \");\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"k == (m-1)",
"k",
"(m-1)",
"m",
"1",
"{\n\t\t\t\t\t\tSystem.out.print(C);\n\t\t\t\t\t\tx++;\n\t\t\t\t\t\tif(x == l) x = 0;\n\t\t\t\t\t\telse System.out.print(\" \");\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"System.out.print(C)",
"System.out.print",
"System.out",
"System",
"System.out",
"C",
"x++",
"x",
"if(x == l) x = 0;\n\t\t\t\t\t\telse System.out.print(\" \");",
"x == l",
"x",
"l",
"x = 0",
"x",
"0",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\t\t// ??\\???\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\t// ???????????£?¨?\n\t\tint A[][] = new int[n][m];\n\t\tint B[][] = new int[m][l];\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\tfor(int i2=0; i2<l; i2++){\n\t\t\t\tint x = scan.nextInt();\n\t\t\t\tB[i][i2] = x;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// \t???????±????????\n\t\tfor(int i=0; i<n; i++){\n\t\t\tint x = 0;\n\t\t\tlong y = 0;\n\t\t\tfor(int j=0; j<l; j++){\n\t\t\t\tlong C = 0;\n\t\t\t\tfor (int k=0; k<m; k++){\n\t\t\t\t\ty = A[i][k]*B[k][j];\n\t\t\t\t\tC = C + y;\n\t\t\t\t\t// ??????\n\t\t\t\t\tif(k == (m-1)){\n\t\t\t\t\t\tSystem.out.print(C);\n\t\t\t\t\t\tx++;\n\t\t\t\t\t\tif(x == l) x = 0;\n\t\t\t\t\t\telse System.out.print(\" \");\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\tSystem.out.println();\n\t\t}\n\t\t\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\tScanner scan = new Scanner(System.in);\n\t\t// ??\\???\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\t// ???????????£?¨?\n\t\tint A[][] = new int[n][m];\n\t\tint B[][] = new int[m][l];\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\tfor(int i2=0; i2<l; i2++){\n\t\t\t\tint x = scan.nextInt();\n\t\t\t\tB[i][i2] = x;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// \t???????±????????\n\t\tfor(int i=0; i<n; i++){\n\t\t\tint x = 0;\n\t\t\tlong y = 0;\n\t\t\tfor(int j=0; j<l; j++){\n\t\t\t\tlong C = 0;\n\t\t\t\tfor (int k=0; k<m; k++){\n\t\t\t\t\ty = A[i][k]*B[k][j];\n\t\t\t\t\tC = C + y;\n\t\t\t\t\t// ??????\n\t\t\t\t\tif(k == (m-1)){\n\t\t\t\t\t\tSystem.out.print(C);\n\t\t\t\t\t\tx++;\n\t\t\t\t\t\tif(x == l) x = 0;\n\t\t\t\t\t\telse System.out.print(\" \");\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\tSystem.out.println();\n\t\t}\n\t\t\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 l = scan.nextInt();
// ???????????£?¨?
int A[][] = new int[n][m];
int B[][] = new int[m][l];
// ?????????????´?
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++){
for(int i2=0; i2<l; i2++){
int x = scan.nextInt();
B[i][i2] = x;
}
}
// ???????±????????
for(int i=0; i<n; i++){
int x = 0;
long y = 0;
for(int j=0; j<l; j++){
long C = 0;
for (int k=0; k<m; k++){
y = A[i][k]*B[k][j];
C = C + y;
// ??????
if(k == (m-1)){
System.out.print(C);
x++;
if(x == l) x = 0;
else System.out.print(" ");
}
}
}
System.out.println();
}
}
} |
[
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,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
13,
4,
13,
13,
13,
13,
13,
4,
13,
13,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
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,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
23,
13,
12,
13,
30,
41,
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,
23,
13,
23,
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
],
[
248,
11
],
[
248,
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
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
47,
49
],
[
14,
50
],
[
50,
51
],
[
50,
52
],
[
14,
55
],
[
55,
56
],
[
55,
57
],
[
14,
60
],
[
60,
61
],
[
60,
62
],
[
14,
65
],
[
65,
66
],
[
65,
67
],
[
65,
68
],
[
65,
69
],
[
65,
70
],
[
14,
71
],
[
71,
72
],
[
71,
73
],
[
71,
74
],
[
71,
75
],
[
71,
76
],
[
14,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
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
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
116,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
122,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
14,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
138,
139
],
[
138,
140
],
[
133,
141
],
[
141,
142
],
[
142,
143
],
[
133,
144
],
[
145,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
146,
151
],
[
151,
152
],
[
151,
153
],
[
146,
154
],
[
154,
155
],
[
155,
156
],
[
146,
157
],
[
158,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
159,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
158,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
172,
174
],
[
169,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
175,
180
],
[
145,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
12,
186
],
[
186,
187
],
[
248,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
191,
192
],
[
190,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
193,
198
],
[
198,
199
],
[
198,
200
],
[
193,
201
],
[
201,
202
],
[
202,
203
],
[
193,
204
],
[
205,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
208,
213
],
[
205,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
214,
219
],
[
219,
220
],
[
219,
221
],
[
214,
222
],
[
222,
223
],
[
223,
224
],
[
214,
225
],
[
226,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
228,
232
],
[
227,
233
],
[
233,
234
],
[
234,
235
],
[
233,
236
],
[
236,
237
],
[
236,
238
],
[
188,
239
],
[
239,
240
],
[
188,
241
],
[
241,
242
],
[
188,
243
],
[
243,
244
],
[
188,
245
],
[
245,
246
],
[
0,
247
],
[
247,
248
],
[
247,
249
]
] | [
"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 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] lines = br.readLine().split(\" \");\n int n = Integer.parseInt(lines[0]);\n int m = Integer.parseInt(lines[1]);\n int l = Integer.parseInt(lines[2]);\n long[][] matrix1 = new long[n][m];\n long[][] matrix2 = new long[m][l];\n long[][] matrix3 = new long[n][l];\n createMatrix(br, n, m, matrix1);\n createMatrix(br, m, l, matrix2);\n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n for(int k=0;k<m;k++){\n matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];\n }\n }\n }\n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n System.out.print(matrix3[i][j]);\n if(j<l-1)\n System.out.print(\" \");\n }\n \n System.out.println();\n }\n\n }\n\n private static void createMatrix(BufferedReader br, int n, int m, long[][] matrix1) throws IOException {\n String[] lines;\n for (int i = 0; i < n; i++) {\n lines = br.readLine().split(\" \");\n for (int j = 0; j < m; j++) {\n matrix1[i][j] = Long.parseLong(lines[j]);\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",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] lines = br.readLine().split(\" \");\n int n = Integer.parseInt(lines[0]);\n int m = Integer.parseInt(lines[1]);\n int l = Integer.parseInt(lines[2]);\n long[][] matrix1 = new long[n][m];\n long[][] matrix2 = new long[m][l];\n long[][] matrix3 = new long[n][l];\n createMatrix(br, n, m, matrix1);\n createMatrix(br, m, l, matrix2);\n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n for(int k=0;k<m;k++){\n matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];\n }\n }\n }\n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n System.out.print(matrix3[i][j]);\n if(j<l-1)\n System.out.print(\" \");\n }\n \n System.out.println();\n }\n\n }\n\n private static void createMatrix(BufferedReader br, int n, int m, long[][] matrix1) throws IOException {\n String[] lines;\n for (int i = 0; i < n; i++) {\n lines = br.readLine().split(\" \");\n for (int j = 0; j < m; j++) {\n matrix1[i][j] = Long.parseLong(lines[j]);\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] lines = br.readLine().split(\" \");\n int n = Integer.parseInt(lines[0]);\n int m = Integer.parseInt(lines[1]);\n int l = Integer.parseInt(lines[2]);\n long[][] matrix1 = new long[n][m];\n long[][] matrix2 = new long[m][l];\n long[][] matrix3 = new long[n][l];\n createMatrix(br, n, m, matrix1);\n createMatrix(br, m, l, matrix2);\n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n for(int k=0;k<m;k++){\n matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];\n }\n }\n }\n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n System.out.print(matrix3[i][j]);\n if(j<l-1)\n System.out.print(\" \");\n }\n \n System.out.println();\n }\n\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] lines = br.readLine().split(\" \");\n int n = Integer.parseInt(lines[0]);\n int m = Integer.parseInt(lines[1]);\n int l = Integer.parseInt(lines[2]);\n long[][] matrix1 = new long[n][m];\n long[][] matrix2 = new long[m][l];\n long[][] matrix3 = new long[n][l];\n createMatrix(br, n, m, matrix1);\n createMatrix(br, m, l, matrix2);\n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n for(int k=0;k<m;k++){\n matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];\n }\n }\n }\n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n System.out.print(matrix3[i][j]);\n if(j<l-1)\n System.out.print(\" \");\n }\n \n System.out.println();\n }\n\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"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 l = Integer.parseInt(lines[2]);",
"l",
"Integer.parseInt(lines[2])",
"Integer.parseInt",
"Integer",
"lines[2]",
"lines",
"2",
"long[][] matrix1 = new long[n][m];",
"matrix1",
"new long[n][m]",
"n",
"m",
"long[][] matrix2 = new long[m][l];",
"matrix2",
"new long[m][l]",
"m",
"l",
"long[][] matrix3 = new long[n][l];",
"matrix3",
"new long[n][l]",
"n",
"l",
"createMatrix(br, n, m, matrix1)",
"createMatrix",
"br",
"n",
"m",
"matrix1",
"createMatrix(br, m, l, matrix2)",
"createMatrix",
"br",
"m",
"l",
"matrix2",
"for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n for(int k=0;k<m;k++){\n matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];\n }\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j=0;j<l;j++){\n for(int k=0;k<m;k++){\n matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];\n }\n }\n }",
"{\n for(int j=0;j<l;j++){\n for(int k=0;k<m;k++){\n matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];\n }\n }\n }",
"for(int j=0;j<l;j++){\n for(int k=0;k<m;k++){\n matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];\n }\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n for(int k=0;k<m;k++){\n matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];\n }\n }",
"{\n for(int k=0;k<m;k++){\n matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];\n }\n }",
"for(int k=0;k<m;k++){\n matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];\n }",
"int k=0;",
"int k=0;",
"k",
"0",
"k<m",
"k",
"m",
"k++",
"k++",
"k",
"{\n matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];\n }",
"{\n matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];\n }",
"matrix3[i][j]+=matrix1[i][k]*matrix2[k][j]",
"matrix3[i][j]",
"matrix3[i]",
"matrix3",
"i",
"j",
"matrix1[i][k]*matrix2[k][j]",
"matrix1[i][k]",
"matrix1[i]",
"matrix1",
"i",
"k",
"matrix2[k][j]",
"matrix2[k]",
"matrix2",
"k",
"j",
"for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n System.out.print(matrix3[i][j]);\n if(j<l-1)\n System.out.print(\" \");\n }\n \n System.out.println();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j=0;j<l;j++){\n System.out.print(matrix3[i][j]);\n if(j<l-1)\n System.out.print(\" \");\n }\n \n System.out.println();\n }",
"{\n for(int j=0;j<l;j++){\n System.out.print(matrix3[i][j]);\n if(j<l-1)\n System.out.print(\" \");\n }\n \n System.out.println();\n }",
"for(int j=0;j<l;j++){\n System.out.print(matrix3[i][j]);\n if(j<l-1)\n System.out.print(\" \");\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n System.out.print(matrix3[i][j]);\n if(j<l-1)\n System.out.print(\" \");\n }",
"{\n System.out.print(matrix3[i][j]);\n if(j<l-1)\n System.out.print(\" \");\n }",
"System.out.print(matrix3[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"matrix3[i][j]",
"matrix3[i]",
"matrix3",
"i",
"j",
"if(j<l-1)\n System.out.print(\" \");",
"j<l-1",
"j",
"l-1",
"l",
"1",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"private static void createMatrix(BufferedReader br, int n, int m, long[][] matrix1) throws IOException {\n String[] lines;\n for (int i = 0; i < n; i++) {\n lines = br.readLine().split(\" \");\n for (int j = 0; j < m; j++) {\n matrix1[i][j] = Long.parseLong(lines[j]);\n }\n }\n }",
"createMatrix",
"{\n String[] lines;\n for (int i = 0; i < n; i++) {\n lines = br.readLine().split(\" \");\n for (int j = 0; j < m; j++) {\n matrix1[i][j] = Long.parseLong(lines[j]);\n }\n }\n }",
"String[] lines;",
"lines",
"for (int i = 0; i < n; i++) {\n lines = br.readLine().split(\" \");\n for (int j = 0; j < m; j++) {\n matrix1[i][j] = Long.parseLong(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 matrix1[i][j] = Long.parseLong(lines[j]);\n }\n }",
"{\n lines = br.readLine().split(\" \");\n for (int j = 0; j < m; j++) {\n matrix1[i][j] = Long.parseLong(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 matrix1[i][j] = Long.parseLong(lines[j]);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n matrix1[i][j] = Long.parseLong(lines[j]);\n }",
"{\n matrix1[i][j] = Long.parseLong(lines[j]);\n }",
"matrix1[i][j] = Long.parseLong(lines[j])",
"matrix1[i][j]",
"matrix1[i]",
"matrix1",
"i",
"j",
"Long.parseLong(lines[j])",
"Long.parseLong",
"Long",
"lines[j]",
"lines",
"j",
"BufferedReader br",
"br",
"int n",
"n",
"int m",
"m",
"long[][] matrix1",
"matrix1",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] lines = br.readLine().split(\" \");\n int n = Integer.parseInt(lines[0]);\n int m = Integer.parseInt(lines[1]);\n int l = Integer.parseInt(lines[2]);\n long[][] matrix1 = new long[n][m];\n long[][] matrix2 = new long[m][l];\n long[][] matrix3 = new long[n][l];\n createMatrix(br, n, m, matrix1);\n createMatrix(br, m, l, matrix2);\n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n for(int k=0;k<m;k++){\n matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];\n }\n }\n }\n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n System.out.print(matrix3[i][j]);\n if(j<l-1)\n System.out.print(\" \");\n }\n \n System.out.println();\n }\n\n }\n\n private static void createMatrix(BufferedReader br, int n, int m, long[][] matrix1) throws IOException {\n String[] lines;\n for (int i = 0; i < n; i++) {\n lines = br.readLine().split(\" \");\n for (int j = 0; j < m; j++) {\n matrix1[i][j] = Long.parseLong(lines[j]);\n }\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] lines = br.readLine().split(\" \");\n int n = Integer.parseInt(lines[0]);\n int m = Integer.parseInt(lines[1]);\n int l = Integer.parseInt(lines[2]);\n long[][] matrix1 = new long[n][m];\n long[][] matrix2 = new long[m][l];\n long[][] matrix3 = new long[n][l];\n createMatrix(br, n, m, matrix1);\n createMatrix(br, m, l, matrix2);\n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n for(int k=0;k<m;k++){\n matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];\n }\n }\n }\n for(int i=0;i<n;i++){\n for(int j=0;j<l;j++){\n System.out.print(matrix3[i][j]);\n if(j<l-1)\n System.out.print(\" \");\n }\n \n System.out.println();\n }\n\n }\n\n private static void createMatrix(BufferedReader br, int n, int m, long[][] matrix1) throws IOException {\n String[] lines;\n for (int i = 0; i < n; i++) {\n lines = br.readLine().split(\" \");\n for (int j = 0; j < m; j++) {\n matrix1[i][j] = Long.parseLong(lines[j]);\n }\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[] lines = br.readLine().split(" ");
int n = Integer.parseInt(lines[0]);
int m = Integer.parseInt(lines[1]);
int l = Integer.parseInt(lines[2]);
long[][] matrix1 = new long[n][m];
long[][] matrix2 = new long[m][l];
long[][] matrix3 = new long[n][l];
createMatrix(br, n, m, matrix1);
createMatrix(br, m, l, matrix2);
for(int i=0;i<n;i++){
for(int j=0;j<l;j++){
for(int k=0;k<m;k++){
matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];
}
}
}
for(int i=0;i<n;i++){
for(int j=0;j<l;j++){
System.out.print(matrix3[i][j]);
if(j<l-1)
System.out.print(" ");
}
System.out.println();
}
}
private static void createMatrix(BufferedReader br, int n, int m, long[][] matrix1) throws IOException {
String[] lines;
for (int i = 0; i < n; i++) {
lines = br.readLine().split(" ");
for (int j = 0; j < m; j++) {
matrix1[i][j] = Long.parseLong(lines[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,
4,
18,
13,
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,
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,
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,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
18,
18,
13,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
236,
5
],
[
236,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
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
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
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
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
8,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
120,
121
],
[
120,
122
],
[
115,
123
],
[
123,
124
],
[
124,
125
],
[
115,
126
],
[
127,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
133,
134
],
[
133,
135
],
[
128,
136
],
[
136,
137
],
[
137,
138
],
[
128,
139
],
[
140,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
144,
149
],
[
149,
150
],
[
149,
151
],
[
144,
152
],
[
152,
153
],
[
153,
154
],
[
144,
155
],
[
156,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
159,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
140,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
170,
176
],
[
8,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
182,
183
],
[
182,
184
],
[
177,
185
],
[
185,
186
],
[
186,
187
],
[
177,
188
],
[
189,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
190,
195
],
[
195,
196
],
[
195,
197
],
[
190,
198
],
[
198,
199
],
[
199,
200
],
[
190,
201
],
[
202,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
206,
208
],
[
203,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
210,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
215,
219
],
[
203,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
221,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
227,
231
],
[
226,
232
],
[
6,
233
],
[
233,
234
],
[
0,
235
],
[
235,
236
],
[
235,
237
]
] | [
"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 l = scan.nextInt();\n\t\tint[][]A = new int[n][m];\n\t\tint[][]B = new int[m][l];\n\t\tlong[][]C = 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\tA[i][j] = scan.nextInt();\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\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tsum += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tC[i][j] = sum;\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\tif(j == l - 1) {\n\t\t\t\t\tSystem.out.println(C[i][j]);\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\tint[][]A = new int[n][m];\n\t\tint[][]B = new int[m][l];\n\t\tlong[][]C = 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\tA[i][j] = scan.nextInt();\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\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tsum += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tC[i][j] = sum;\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\tif(j == l - 1) {\n\t\t\t\t\tSystem.out.println(C[i][j]);\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t\t\t}\n\t\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 n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\tint[][]A = new int[n][m];\n\t\tint[][]B = new int[m][l];\n\t\tlong[][]C = 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\tA[i][j] = scan.nextInt();\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\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tsum += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tC[i][j] = sum;\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\tif(j == l - 1) {\n\t\t\t\t\tSystem.out.println(C[i][j]);\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t\t\t}\n\t\t\t}\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 l = scan.nextInt();\n\t\tint[][]A = new int[n][m];\n\t\tint[][]B = new int[m][l];\n\t\tlong[][]C = 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\tA[i][j] = scan.nextInt();\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\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tsum += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tC[i][j] = sum;\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\tif(j == l - 1) {\n\t\t\t\t\tSystem.out.println(C[i][j]);\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t\t\t}\n\t\t\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 l = scan.nextInt();",
"l",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[][]A = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int[][]B = new int[m][l];",
"B",
"new int[m][l]",
"m",
"l",
"long[][]C = new long[n][l];",
"C",
"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\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\tfor(int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}",
"B[i][j] = scan.nextInt()",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"scan.close()",
"scan.close",
"scan",
"for(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tsum += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tC[i][j] = sum;\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 sum = 0;\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tsum += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tC[i][j] = sum;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tsum += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tC[i][j] = sum;\n\t\t\t}\n\t\t}",
"for(int j = 0; j < l; j++) {\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tsum += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tC[i][j] = sum;\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tsum += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tC[i][j] = sum;\n\t\t\t}",
"{\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tsum += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tC[i][j] = sum;\n\t\t\t}",
"long sum = 0;",
"sum",
"0",
"for(int k = 0; k < m; k++) {\n\t\t\t\t\tsum += A[i][k] * B[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\tsum += A[i][k] * B[k][j];\n\t\t\t\t}",
"{\n\t\t\t\t\tsum += A[i][k] * B[k][j];\n\t\t\t\t}",
"sum += A[i][k] * B[k][j]",
"sum",
"A[i][k] * B[k][j]",
"A[i][k]",
"A[i]",
"A",
"i",
"k",
"B[k][j]",
"B[k]",
"B",
"k",
"j",
"C[i][j] = sum",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"sum",
"for(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tif(j == l - 1) {\n\t\t\t\t\tSystem.out.println(C[i][j]);\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(C[i][j] + \" \");\n\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 < l; j++) {\n\t\t\t\tif(j == l - 1) {\n\t\t\t\t\tSystem.out.println(C[i][j]);\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tif(j == l - 1) {\n\t\t\t\t\tSystem.out.println(C[i][j]);\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int j = 0; j < l; j++) {\n\t\t\t\tif(j == l - 1) {\n\t\t\t\t\tSystem.out.println(C[i][j]);\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(j == l - 1) {\n\t\t\t\t\tSystem.out.println(C[i][j]);\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(j == l - 1) {\n\t\t\t\t\tSystem.out.println(C[i][j]);\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t\t\t}\n\t\t\t}",
"if(j == l - 1) {\n\t\t\t\t\tSystem.out.println(C[i][j]);\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t\t\t}",
"j == l - 1",
"j",
"l - 1",
"l",
"1",
"{\n\t\t\t\t\tSystem.out.println(C[i][j]);\n\t\t\t\t}",
"System.out.println(C[i][j])",
"System.out.println",
"System.out",
"System",
"System.out",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"{\n\t\t\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t\t\t}",
"System.out.print(C[i][j] + \" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"C[i][j] + \" \"",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"\" \"",
"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 l = scan.nextInt();\n\t\tint[][]A = new int[n][m];\n\t\tint[][]B = new int[m][l];\n\t\tlong[][]C = 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\tA[i][j] = scan.nextInt();\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\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tsum += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tC[i][j] = sum;\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\tif(j == l - 1) {\n\t\t\t\t\tSystem.out.println(C[i][j]);\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t\t\t}\n\t\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 n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\tint[][]A = new int[n][m];\n\t\tint[][]B = new int[m][l];\n\t\tlong[][]C = 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\tA[i][j] = scan.nextInt();\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\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tsum += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tC[i][j] = sum;\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\tif(j == l - 1) {\n\t\t\t\t\tSystem.out.println(C[i][j]);\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int m = scan.nextInt();
int l = scan.nextInt();
int[][]A = new int[n][m];
int[][]B = new int[m][l];
long[][]C = new long[n][l];
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++) {
for(int j = 0; j < l; j++) {
B[i][j] = scan.nextInt();
}
}
scan.close();
for(int i = 0; i < n; i++) {
for(int j = 0; j < l; j++) {
long sum = 0;
for(int k = 0; k < m; k++) {
sum += A[i][k] * B[k][j];
}
C[i][j] = sum;
}
}
for(int i = 0; i < n; i++) {
for(int j = 0; j < l; j++) {
if(j == l - 1) {
System.out.println(C[i][j]);
}else {
System.out.print(C[i][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,
4,
18,
13,
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,
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,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
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,
4,
18,
18,
13,
13,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
256,
5
],
[
256,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
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
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
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
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
136,
142
],
[
142,
143
],
[
143,
144
],
[
8,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
145,
150
],
[
150,
151
],
[
150,
152
],
[
145,
153
],
[
153,
154
],
[
154,
155
],
[
145,
156
],
[
157,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
158,
163
],
[
163,
164
],
[
163,
165
],
[
158,
166
],
[
166,
167
],
[
167,
168
],
[
158,
169
],
[
170,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
171,
176
],
[
176,
177
],
[
176,
178
],
[
171,
179
],
[
179,
180
],
[
180,
181
],
[
171,
182
],
[
183,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
185,
189
],
[
184,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
195
],
[
190,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
196,
200
],
[
8,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
201,
206
],
[
206,
207
],
[
206,
208
],
[
201,
209
],
[
209,
210
],
[
210,
211
],
[
201,
212
],
[
213,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
214,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
221,
223
],
[
214,
224
],
[
224,
225
],
[
225,
226
],
[
214,
227
],
[
228,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
231,
233
],
[
229,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
235,
239
],
[
234,
240
],
[
213,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
243,
245
],
[
241,
246
],
[
246,
247
],
[
247,
248
],
[
247,
249
],
[
246,
250
],
[
250,
251
],
[
250,
252
],
[
6,
253
],
[
253,
254
],
[
0,
255
],
[
255,
256
],
[
255,
257
]
] | [
"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 l = sc.nextInt();\n \n long[][] aij = new long[n][m];\n long[][] bij = new long[m][l];\n long[][] cij = new long[n][l];\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n cij[i][j] = 0;\n }\n }\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n aij[i][j] = sc.nextLong();\n }\n }\n for(int i = 0; i < m; i++){\n for(int j = 0; j < l; j++){\n bij[i][j] = sc.nextLong();\n }\n }\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n \tfor(int k = 0; k < m; k++){\n \tcij[i][j] += aij[i][k]*bij[k][j];\n }\n }\n }\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < l-1; j++){\n \tSystem.out.print(cij[i][j] + \" \");\n }\n\t\t\tSystem.out.println(cij[i][l-1]);\n }\n }\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n \n long[][] aij = new long[n][m];\n long[][] bij = new long[m][l];\n long[][] cij = new long[n][l];\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n cij[i][j] = 0;\n }\n }\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n aij[i][j] = sc.nextLong();\n }\n }\n for(int i = 0; i < m; i++){\n for(int j = 0; j < l; j++){\n bij[i][j] = sc.nextLong();\n }\n }\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n \tfor(int k = 0; k < m; k++){\n \tcij[i][j] += aij[i][k]*bij[k][j];\n }\n }\n }\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < l-1; j++){\n \tSystem.out.print(cij[i][j] + \" \");\n }\n\t\t\tSystem.out.println(cij[i][l-1]);\n }\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 l = sc.nextInt();\n \n long[][] aij = new long[n][m];\n long[][] bij = new long[m][l];\n long[][] cij = new long[n][l];\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n cij[i][j] = 0;\n }\n }\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n aij[i][j] = sc.nextLong();\n }\n }\n for(int i = 0; i < m; i++){\n for(int j = 0; j < l; j++){\n bij[i][j] = sc.nextLong();\n }\n }\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n \tfor(int k = 0; k < m; k++){\n \tcij[i][j] += aij[i][k]*bij[k][j];\n }\n }\n }\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < l-1; j++){\n \tSystem.out.print(cij[i][j] + \" \");\n }\n\t\t\tSystem.out.println(cij[i][l-1]);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n \n long[][] aij = new long[n][m];\n long[][] bij = new long[m][l];\n long[][] cij = new long[n][l];\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n cij[i][j] = 0;\n }\n }\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n aij[i][j] = sc.nextLong();\n }\n }\n for(int i = 0; i < m; i++){\n for(int j = 0; j < l; j++){\n bij[i][j] = sc.nextLong();\n }\n }\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n \tfor(int k = 0; k < m; k++){\n \tcij[i][j] += aij[i][k]*bij[k][j];\n }\n }\n }\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < l-1; j++){\n \tSystem.out.print(cij[i][j] + \" \");\n }\n\t\t\tSystem.out.println(cij[i][l-1]);\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 l = sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long[][] aij = new long[n][m];",
"aij",
"new long[n][m]",
"n",
"m",
"long[][] bij = new long[m][l];",
"bij",
"new long[m][l]",
"m",
"l",
"long[][] cij = new long[n][l];",
"cij",
"new long[n][l]",
"n",
"l",
"for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n cij[i][j] = 0;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < l; j++){\n cij[i][j] = 0;\n }\n }",
"{\n for(int j = 0; j < l; j++){\n cij[i][j] = 0;\n }\n }",
"for(int j = 0; j < l; j++){\n cij[i][j] = 0;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n cij[i][j] = 0;\n }",
"{\n cij[i][j] = 0;\n }",
"cij[i][j] = 0",
"cij[i][j]",
"cij[i]",
"cij",
"i",
"j",
"0",
"for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n aij[i][j] = sc.nextLong();\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.nextLong();\n }\n }",
"{\n for(int j = 0; j < m; j++){\n aij[i][j] = sc.nextLong();\n }\n }",
"for(int j = 0; j < m; j++){\n aij[i][j] = sc.nextLong();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n aij[i][j] = sc.nextLong();\n }",
"{\n aij[i][j] = sc.nextLong();\n }",
"aij[i][j] = sc.nextLong()",
"aij[i][j]",
"aij[i]",
"aij",
"i",
"j",
"sc.nextLong()",
"sc.nextLong",
"sc",
"for(int i = 0; i < m; i++){\n for(int j = 0; j < l; j++){\n bij[i][j] = sc.nextLong();\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < l; j++){\n bij[i][j] = sc.nextLong();\n }\n }",
"{\n for(int j = 0; j < l; j++){\n bij[i][j] = sc.nextLong();\n }\n }",
"for(int j = 0; j < l; j++){\n bij[i][j] = sc.nextLong();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n bij[i][j] = sc.nextLong();\n }",
"{\n bij[i][j] = sc.nextLong();\n }",
"bij[i][j] = sc.nextLong()",
"bij[i][j]",
"bij[i]",
"bij",
"i",
"j",
"sc.nextLong()",
"sc.nextLong",
"sc",
"for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n \tfor(int k = 0; k < m; k++){\n \tcij[i][j] += aij[i][k]*bij[k][j];\n }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < l; j++){\n \tfor(int k = 0; k < m; k++){\n \tcij[i][j] += aij[i][k]*bij[k][j];\n }\n }\n }",
"{\n for(int j = 0; j < l; j++){\n \tfor(int k = 0; k < m; k++){\n \tcij[i][j] += aij[i][k]*bij[k][j];\n }\n }\n }",
"for(int j = 0; j < l; j++){\n \tfor(int k = 0; k < m; k++){\n \tcij[i][j] += aij[i][k]*bij[k][j];\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n \tfor(int k = 0; k < m; k++){\n \tcij[i][j] += aij[i][k]*bij[k][j];\n }\n }",
"{\n \tfor(int k = 0; k < m; k++){\n \tcij[i][j] += aij[i][k]*bij[k][j];\n }\n }",
"for(int k = 0; k < m; k++){\n \tcij[i][j] += aij[i][k]*bij[k][j];\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"{\n \tcij[i][j] += aij[i][k]*bij[k][j];\n }",
"{\n \tcij[i][j] += aij[i][k]*bij[k][j];\n }",
"cij[i][j] += aij[i][k]*bij[k][j]",
"cij[i][j]",
"cij[i]",
"cij",
"i",
"j",
"aij[i][k]*bij[k][j]",
"aij[i][k]",
"aij[i]",
"aij",
"i",
"k",
"bij[k][j]",
"bij[k]",
"bij",
"k",
"j",
"for(int i = 0; i < n; i++){\n for(int j = 0; j < l-1; j++){\n \tSystem.out.print(cij[i][j] + \" \");\n }\n\t\t\tSystem.out.println(cij[i][l-1]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < l-1; j++){\n \tSystem.out.print(cij[i][j] + \" \");\n }\n\t\t\tSystem.out.println(cij[i][l-1]);\n }",
"{\n for(int j = 0; j < l-1; j++){\n \tSystem.out.print(cij[i][j] + \" \");\n }\n\t\t\tSystem.out.println(cij[i][l-1]);\n }",
"for(int j = 0; j < l-1; j++){\n \tSystem.out.print(cij[i][j] + \" \");\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l-1",
"j",
"l-1",
"l",
"1",
"j++",
"j++",
"j",
"{\n \tSystem.out.print(cij[i][j] + \" \");\n }",
"{\n \tSystem.out.print(cij[i][j] + \" \");\n }",
"System.out.print(cij[i][j] + \" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"cij[i][j] + \" \"",
"cij[i][j]",
"cij[i]",
"cij",
"i",
"j",
"\" \"",
"System.out.println(cij[i][l-1])",
"System.out.println",
"System.out",
"System",
"System.out",
"cij[i][l-1]",
"cij[i]",
"cij",
"i",
"l-1",
"l",
"1",
"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 l = sc.nextInt();\n \n long[][] aij = new long[n][m];\n long[][] bij = new long[m][l];\n long[][] cij = new long[n][l];\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n cij[i][j] = 0;\n }\n }\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n aij[i][j] = sc.nextLong();\n }\n }\n for(int i = 0; i < m; i++){\n for(int j = 0; j < l; j++){\n bij[i][j] = sc.nextLong();\n }\n }\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n \tfor(int k = 0; k < m; k++){\n \tcij[i][j] += aij[i][k]*bij[k][j];\n }\n }\n }\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < l-1; j++){\n \tSystem.out.print(cij[i][j] + \" \");\n }\n\t\t\tSystem.out.println(cij[i][l-1]);\n }\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 l = sc.nextInt();\n \n long[][] aij = new long[n][m];\n long[][] bij = new long[m][l];\n long[][] cij = new long[n][l];\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n cij[i][j] = 0;\n }\n }\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n aij[i][j] = sc.nextLong();\n }\n }\n for(int i = 0; i < m; i++){\n for(int j = 0; j < l; j++){\n bij[i][j] = sc.nextLong();\n }\n }\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n \tfor(int k = 0; k < m; k++){\n \tcij[i][j] += aij[i][k]*bij[k][j];\n }\n }\n }\n \n for(int i = 0; i < n; i++){\n for(int j = 0; j < l-1; j++){\n \tSystem.out.print(cij[i][j] + \" \");\n }\n\t\t\tSystem.out.println(cij[i][l-1]);\n }\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 l = sc.nextInt();
long[][] aij = new long[n][m];
long[][] bij = new long[m][l];
long[][] cij = new long[n][l];
for(int i = 0; i < n; i++){
for(int j = 0; j < l; j++){
cij[i][j] = 0;
}
}
for(int i = 0; i < n; i++){
for(int j = 0; j < m; j++){
aij[i][j] = sc.nextLong();
}
}
for(int i = 0; i < m; i++){
for(int j = 0; j < l; j++){
bij[i][j] = sc.nextLong();
}
}
for(int i = 0; i < n; i++){
for(int j = 0; j < l; j++){
for(int k = 0; k < m; k++){
cij[i][j] += aij[i][k]*bij[k][j];
}
}
}
for(int i = 0; i < n; i++){
for(int j = 0; j < l-1; j++){
System.out.print(cij[i][j] + " ");
}
System.out.println(cij[i][l-1]);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
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,
0,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
8,
2,
13,
17,
13,
2,
17,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
178,
5
],
[
178,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
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
],
[
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
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
82,
90
],
[
90,
91
],
[
91,
92
],
[
82,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
94,
100
],
[
100,
101
],
[
101,
102
],
[
8,
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
],
[
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
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
128,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
157,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
162,
167
],
[
167,
168
],
[
167,
169
],
[
115,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
6,
175
],
[
175,
176
],
[
0,
177
],
[
177,
178
],
[
177,
179
]
] | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n\n for (int i = 0; i < n; i++)\n for (int j = 0; j < m; j++)\n a[i][j] = sc.nextInt();\n\n for (int i = 0; i < m; i++)\n for (int j = 0; j < l; j++)\n b[i][j] = sc.nextInt();\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long cij = 0;\n for (int k = 0; k < m; k++)\n cij += a[i][k] * b[k][j];\n System.out.print((j == 0) ? cij : \" \" + cij);\n }\n System.out.println();\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 l = sc.nextInt();\n\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n\n for (int i = 0; i < n; i++)\n for (int j = 0; j < m; j++)\n a[i][j] = sc.nextInt();\n\n for (int i = 0; i < m; i++)\n for (int j = 0; j < l; j++)\n b[i][j] = sc.nextInt();\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long cij = 0;\n for (int k = 0; k < m; k++)\n cij += a[i][k] * b[k][j];\n System.out.print((j == 0) ? cij : \" \" + cij);\n }\n System.out.println();\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 l = sc.nextInt();\n\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n\n for (int i = 0; i < n; i++)\n for (int j = 0; j < m; j++)\n a[i][j] = sc.nextInt();\n\n for (int i = 0; i < m; i++)\n for (int j = 0; j < l; j++)\n b[i][j] = sc.nextInt();\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long cij = 0;\n for (int k = 0; k < m; k++)\n cij += a[i][k] * b[k][j];\n System.out.print((j == 0) ? cij : \" \" + cij);\n }\n System.out.println();\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n\n for (int i = 0; i < n; i++)\n for (int j = 0; j < m; j++)\n a[i][j] = sc.nextInt();\n\n for (int i = 0; i < m; i++)\n for (int j = 0; j < l; j++)\n b[i][j] = sc.nextInt();\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long cij = 0;\n for (int k = 0; k < m; k++)\n cij += a[i][k] * b[k][j];\n System.out.print((j == 0) ? cij : \" \" + cij);\n }\n System.out.println();\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 l = sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] a = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[][] b = new int[m][l];",
"b",
"new int[m][l]",
"m",
"l",
"for (int i = 0; i < n; i++)\n for (int j = 0; j < m; j++)\n a[i][j] = sc.nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"for (int j = 0; j < m; j++)\n a[i][j] = sc.nextInt();",
"for (int j = 0; j < m; j++)\n a[i][j] = sc.nextInt();",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"a[i][j] = sc.nextInt();",
"a[i][j] = sc.nextInt()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < m; i++)\n for (int j = 0; j < l; j++)\n b[i][j] = sc.nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"for (int j = 0; j < l; j++)\n b[i][j] = sc.nextInt();",
"for (int j = 0; j < l; j++)\n b[i][j] = sc.nextInt();",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"b[i][j] = sc.nextInt();",
"b[i][j] = sc.nextInt()",
"b[i][j]",
"b[i]",
"b",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long cij = 0;\n for (int k = 0; k < m; k++)\n cij += a[i][k] * b[k][j];\n System.out.print((j == 0) ? cij : \" \" + cij);\n }\n System.out.println();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < l; j++) {\n long cij = 0;\n for (int k = 0; k < m; k++)\n cij += a[i][k] * b[k][j];\n System.out.print((j == 0) ? cij : \" \" + cij);\n }\n System.out.println();\n }",
"{\n for (int j = 0; j < l; j++) {\n long cij = 0;\n for (int k = 0; k < m; k++)\n cij += a[i][k] * b[k][j];\n System.out.print((j == 0) ? cij : \" \" + cij);\n }\n System.out.println();\n }",
"for (int j = 0; j < l; j++) {\n long cij = 0;\n for (int k = 0; k < m; k++)\n cij += a[i][k] * b[k][j];\n System.out.print((j == 0) ? cij : \" \" + cij);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n long cij = 0;\n for (int k = 0; k < m; k++)\n cij += a[i][k] * b[k][j];\n System.out.print((j == 0) ? cij : \" \" + cij);\n }",
"{\n long cij = 0;\n for (int k = 0; k < m; k++)\n cij += a[i][k] * b[k][j];\n System.out.print((j == 0) ? cij : \" \" + cij);\n }",
"long cij = 0;",
"cij",
"0",
"for (int k = 0; k < m; k++)\n cij += a[i][k] * b[k][j];",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"cij += a[i][k] * b[k][j];",
"cij += a[i][k] * b[k][j]",
"cij",
"a[i][k] * b[k][j]",
"a[i][k]",
"a[i]",
"a",
"i",
"k",
"b[k][j]",
"b[k]",
"b",
"k",
"j",
"System.out.print((j == 0) ? cij : \" \" + cij)",
"System.out.print",
"System.out",
"System",
"System.out",
"(j == 0) ? cij : \" \" + cij",
"(j == 0)",
"j",
"0",
"cij",
"\" \" + cij",
"\" \"",
"cij",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"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 l = sc.nextInt();\n\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n\n for (int i = 0; i < n; i++)\n for (int j = 0; j < m; j++)\n a[i][j] = sc.nextInt();\n\n for (int i = 0; i < m; i++)\n for (int j = 0; j < l; j++)\n b[i][j] = sc.nextInt();\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long cij = 0;\n for (int k = 0; k < m; k++)\n cij += a[i][k] * b[k][j];\n System.out.print((j == 0) ? cij : \" \" + cij);\n }\n System.out.println();\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 l = sc.nextInt();\n\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n\n for (int i = 0; i < n; i++)\n for (int j = 0; j < m; j++)\n a[i][j] = sc.nextInt();\n\n for (int i = 0; i < m; i++)\n for (int j = 0; j < l; j++)\n b[i][j] = sc.nextInt();\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long cij = 0;\n for (int k = 0; k < m; k++)\n cij += a[i][k] * b[k][j];\n System.out.print((j == 0) ? cij : \" \" + cij);\n }\n System.out.println();\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 l = sc.nextInt();
int[][] a = new int[n][m];
int[][] b = new int[m][l];
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++)
for (int j = 0; j < l; j++)
b[i][j] = sc.nextInt();
for (int i = 0; i < n; i++) {
for (int j = 0; j < l; j++) {
long cij = 0;
for (int k = 0; k < m; k++)
cij += a[i][k] * b[k][j];
System.out.print((j == 0) ? cij : " " + cij);
}
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,
4,
18,
13,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
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,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
227,
5
],
[
227,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
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
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
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
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
112,
120
],
[
120,
121
],
[
121,
122
],
[
112,
123
],
[
124,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
125,
136
],
[
137,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
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
],
[
8,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
173,
174
],
[
173,
175
],
[
168,
176
],
[
176,
177
],
[
177,
178
],
[
168,
179
],
[
180,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
181,
186
],
[
186,
187
],
[
186,
188
],
[
181,
189
],
[
189,
190
],
[
190,
191
],
[
181,
192
],
[
193,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
194,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
199,
203
],
[
193,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
207,
208
],
[
207,
209
],
[
204,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
210,
215
],
[
180,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
180,
221
],
[
221,
222
],
[
222,
223
],
[
6,
224
],
[
224,
225
],
[
0,
226
],
[
226,
227
],
[
226,
228
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner s = new Scanner(System.in);\n\t\t\n\t\tint n = s.nextInt();\n\t\tint m = s.nextInt();\n\t\tint l = s.nextInt();\n\t\tint gyouretuA[][] = new int [n][m];\n\t\tint gyouretuB[][] = new int [m][l];\n\t\tlong gyouretuC[][] = new long [n][l];\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\tgyouretuA[i][j] = s.nextInt();\n\t\t\t}\n\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\tgyouretuB[i][j] = s.nextInt();\n\t\t\t}\n\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\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tgyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];\n\t\t\t\t}\n\t\t\t}\n\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\tSystem.out.print(gyouretuC[i][j]);\n\t\t\t\tif(j < l - 1)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\ts.close();\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 s = new Scanner(System.in);\n\t\t\n\t\tint n = s.nextInt();\n\t\tint m = s.nextInt();\n\t\tint l = s.nextInt();\n\t\tint gyouretuA[][] = new int [n][m];\n\t\tint gyouretuB[][] = new int [m][l];\n\t\tlong gyouretuC[][] = new long [n][l];\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\tgyouretuA[i][j] = s.nextInt();\n\t\t\t}\n\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\tgyouretuB[i][j] = s.nextInt();\n\t\t\t}\n\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\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tgyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];\n\t\t\t\t}\n\t\t\t}\n\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\tSystem.out.print(gyouretuC[i][j]);\n\t\t\t\tif(j < l - 1)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\ts.close();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner s = new Scanner(System.in);\n\t\t\n\t\tint n = s.nextInt();\n\t\tint m = s.nextInt();\n\t\tint l = s.nextInt();\n\t\tint gyouretuA[][] = new int [n][m];\n\t\tint gyouretuB[][] = new int [m][l];\n\t\tlong gyouretuC[][] = new long [n][l];\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\tgyouretuA[i][j] = s.nextInt();\n\t\t\t}\n\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\tgyouretuB[i][j] = s.nextInt();\n\t\t\t}\n\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\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tgyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];\n\t\t\t\t}\n\t\t\t}\n\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\tSystem.out.print(gyouretuC[i][j]);\n\t\t\t\tif(j < l - 1)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\ts.close();\n\t\t}\n\t}",
"main",
"{\n\t\tScanner s = new Scanner(System.in);\n\t\t\n\t\tint n = s.nextInt();\n\t\tint m = s.nextInt();\n\t\tint l = s.nextInt();\n\t\tint gyouretuA[][] = new int [n][m];\n\t\tint gyouretuB[][] = new int [m][l];\n\t\tlong gyouretuC[][] = new long [n][l];\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\tgyouretuA[i][j] = s.nextInt();\n\t\t\t}\n\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\tgyouretuB[i][j] = s.nextInt();\n\t\t\t}\n\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\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tgyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];\n\t\t\t\t}\n\t\t\t}\n\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\tSystem.out.print(gyouretuC[i][j]);\n\t\t\t\tif(j < l - 1)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\ts.close();\n\t\t}\n\t}",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int n = s.nextInt();",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"int m = s.nextInt();",
"m",
"s.nextInt()",
"s.nextInt",
"s",
"int l = s.nextInt();",
"l",
"s.nextInt()",
"s.nextInt",
"s",
"int gyouretuA[][] = new int [n][m];",
"gyouretuA",
"new int [n][m]",
"n",
"m",
"int gyouretuB[][] = new int [m][l];",
"gyouretuB",
"new int [m][l]",
"m",
"l",
"long gyouretuC[][] = new long [n][l];",
"gyouretuC",
"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\tgyouretuA[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\tgyouretuA[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\tgyouretuA[i][j] = s.nextInt();\n\t\t\t}\n\t\t}",
"for(int j = 0;j < m; j++){\n\t\t\t\tgyouretuA[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\tgyouretuA[i][j] = s.nextInt();\n\t\t\t}",
"{\n\t\t\t\tgyouretuA[i][j] = s.nextInt();\n\t\t\t}",
"gyouretuA[i][j] = s.nextInt()",
"gyouretuA[i][j]",
"gyouretuA[i]",
"gyouretuA",
"i",
"j",
"s.nextInt()",
"s.nextInt",
"s",
"for(int i = 0;i < m; i++){\n\t\t\tfor(int j =0; j < l; j++){\n\t\t\t\tgyouretuB[i][j] = s.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j =0; j < l; j++){\n\t\t\t\tgyouretuB[i][j] = s.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j =0; j < l; j++){\n\t\t\t\tgyouretuB[i][j] = s.nextInt();\n\t\t\t}\n\t\t}",
"for(int j =0; j < l; j++){\n\t\t\t\tgyouretuB[i][j] = s.nextInt();\n\t\t\t}",
"int j =0;",
"int j =0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tgyouretuB[i][j] = s.nextInt();\n\t\t\t}",
"{\n\t\t\t\tgyouretuB[i][j] = s.nextInt();\n\t\t\t}",
"gyouretuB[i][j] = s.nextInt()",
"gyouretuB[i][j]",
"gyouretuB[i]",
"gyouretuB",
"i",
"j",
"s.nextInt()",
"s.nextInt",
"s",
"for(int i = 0;i < n; i++){\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tgyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];\n\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 < l; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tgyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < l; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tgyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int j = 0; j < l; j++){\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tgyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tgyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tgyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];\n\t\t\t\t}\n\t\t\t}",
"for(int k = 0; k < m; k++){\n\t\t\t\t\tgyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[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\tgyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];\n\t\t\t\t}",
"{\n\t\t\t\t\tgyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];\n\t\t\t\t}",
"gyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j]",
"gyouretuC[i][j]",
"gyouretuC[i]",
"gyouretuC",
"i",
"j",
"gyouretuA[i][k] * gyouretuB[k][j]",
"gyouretuA[i][k]",
"gyouretuA[i]",
"gyouretuA",
"i",
"k",
"gyouretuB[k][j]",
"gyouretuB[k]",
"gyouretuB",
"k",
"j",
"for(int i =0;i < n; i++){\n\t\t\tfor(int j =0;j < l; j++){\n\t\t\t\tSystem.out.print(gyouretuC[i][j]);\n\t\t\t\tif(j < l - 1)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\ts.close();\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\tSystem.out.print(gyouretuC[i][j]);\n\t\t\t\tif(j < l - 1)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\ts.close();\n\t\t}",
"{\n\t\t\tfor(int j =0;j < l; j++){\n\t\t\t\tSystem.out.print(gyouretuC[i][j]);\n\t\t\t\tif(j < l - 1)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\ts.close();\n\t\t}",
"for(int j =0;j < l; j++){\n\t\t\t\tSystem.out.print(gyouretuC[i][j]);\n\t\t\t\tif(j < l - 1)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t}",
"int j =0;",
"int j =0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(gyouretuC[i][j]);\n\t\t\t\tif(j < l - 1)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(gyouretuC[i][j]);\n\t\t\t\tif(j < l - 1)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t}",
"System.out.print(gyouretuC[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"gyouretuC[i][j]",
"gyouretuC[i]",
"gyouretuC",
"i",
"j",
"if(j < l - 1)\n\t\t\t\t\tSystem.out.print(\" \");",
"j < l - 1",
"j",
"l - 1",
"l",
"1",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"s.close()",
"s.close",
"s",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner s = new Scanner(System.in);\n\t\t\n\t\tint n = s.nextInt();\n\t\tint m = s.nextInt();\n\t\tint l = s.nextInt();\n\t\tint gyouretuA[][] = new int [n][m];\n\t\tint gyouretuB[][] = new int [m][l];\n\t\tlong gyouretuC[][] = new long [n][l];\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\tgyouretuA[i][j] = s.nextInt();\n\t\t\t}\n\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\tgyouretuB[i][j] = s.nextInt();\n\t\t\t}\n\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\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tgyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];\n\t\t\t\t}\n\t\t\t}\n\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\tSystem.out.print(gyouretuC[i][j]);\n\t\t\t\tif(j < l - 1)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\ts.close();\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner s = new Scanner(System.in);\n\t\t\n\t\tint n = s.nextInt();\n\t\tint m = s.nextInt();\n\t\tint l = s.nextInt();\n\t\tint gyouretuA[][] = new int [n][m];\n\t\tint gyouretuB[][] = new int [m][l];\n\t\tlong gyouretuC[][] = new long [n][l];\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\tgyouretuA[i][j] = s.nextInt();\n\t\t\t}\n\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\tgyouretuB[i][j] = s.nextInt();\n\t\t\t}\n\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\tfor(int k = 0; k < m; k++){\n\t\t\t\t\tgyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];\n\t\t\t\t}\n\t\t\t}\n\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\tSystem.out.print(gyouretuC[i][j]);\n\t\t\t\tif(j < l - 1)\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\ts.close();\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner s = new Scanner(System.in);
int n = s.nextInt();
int m = s.nextInt();
int l = s.nextInt();
int gyouretuA[][] = new int [n][m];
int gyouretuB[][] = new int [m][l];
long gyouretuC[][] = new long [n][l];
for(int i = 0;i < n; i++){
for(int j = 0;j < m; j++){
gyouretuA[i][j] = s.nextInt();
}
}
for(int i = 0;i < m; i++){
for(int j =0; j < l; j++){
gyouretuB[i][j] = s.nextInt();
}
}
for(int i = 0;i < n; i++){
for(int j = 0; j < l; j++){
for(int k = 0; k < m; k++){
gyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];
}
}
}
for(int i =0;i < n; i++){
for(int j =0;j < l; j++){
System.out.print(gyouretuC[i][j]);
if(j < l - 1)
System.out.print(" ");
}
System.out.println();
s.close();
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
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,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
17,
2,
4,
18,
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
],
[
235,
11
],
[
235,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
14,
22
],
[
22,
23
],
[
14,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
14,
39
],
[
39,
40
],
[
39,
41
],
[
14,
44
],
[
44,
45
],
[
44,
46
],
[
14,
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
],
[
14,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
84,
92
],
[
92,
93
],
[
93,
94
],
[
84,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
97,
105
],
[
105,
106
],
[
106,
107
],
[
97,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
110,
116
],
[
116,
117
],
[
117,
118
],
[
14,
119
],
[
119,
120
],
[
119,
121
],
[
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
],
[
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
],
[
164,
168
],
[
163,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
169,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
14,
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
],
[
192,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
196,
201
],
[
201,
202
],
[
201,
203
],
[
196,
204
],
[
204,
205
],
[
205,
206
],
[
196,
207
],
[
208,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
212,
216
],
[
211,
217
],
[
192,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
218,
223
],
[
223,
224
],
[
224,
225
],
[
223,
226
],
[
223,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
227,
231
],
[
12,
232
],
[
232,
233
],
[
0,
234
],
[
234,
235
],
[
234,
236
]
] | [
"import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n, m, l;\n\t\tn = in.nextInt();\n\t\tm = in.nextInt();\n\t\tl = in.nextInt();\n\t\tlong A[][] = new long[n][m];\n\t\tlong B[][] = new long[m][l];\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] = in.nextInt();\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\tB[i][j] = in.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tlong c[][] = new long[n][l];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tc[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tString s = \"\";\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\ts += c[i][j] + \" \";\n\t\t\t}\n\t\t\tSystem.out.println(s.substring(0, s.length()-1));\n\t\t}\n\t}\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n, m, l;\n\t\tn = in.nextInt();\n\t\tm = in.nextInt();\n\t\tl = in.nextInt();\n\t\tlong A[][] = new long[n][m];\n\t\tlong B[][] = new long[m][l];\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] = in.nextInt();\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\tB[i][j] = in.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tlong c[][] = new long[n][l];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tc[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tString s = \"\";\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\ts += c[i][j] + \" \";\n\t\t\t}\n\t\t\tSystem.out.println(s.substring(0, s.length()-1));\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, m, l;\n\t\tn = in.nextInt();\n\t\tm = in.nextInt();\n\t\tl = in.nextInt();\n\t\tlong A[][] = new long[n][m];\n\t\tlong B[][] = new long[m][l];\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] = in.nextInt();\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\tB[i][j] = in.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tlong c[][] = new long[n][l];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tc[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tString s = \"\";\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\ts += c[i][j] + \" \";\n\t\t\t}\n\t\t\tSystem.out.println(s.substring(0, s.length()-1));\n\t\t}\n\t}",
"main",
"{\n\t\tScanner in = new Scanner(System.in);\n\t\tint n, m, l;\n\t\tn = in.nextInt();\n\t\tm = in.nextInt();\n\t\tl = in.nextInt();\n\t\tlong A[][] = new long[n][m];\n\t\tlong B[][] = new long[m][l];\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] = in.nextInt();\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\tB[i][j] = in.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tlong c[][] = new long[n][l];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tc[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tString s = \"\";\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\ts += c[i][j] + \" \";\n\t\t\t}\n\t\t\tSystem.out.println(s.substring(0, s.length()-1));\n\t\t}\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int n",
"n",
"m",
"m",
"l;",
"l",
"n = in.nextInt()",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"m = in.nextInt()",
"m",
"in.nextInt()",
"in.nextInt",
"in",
"l = in.nextInt()",
"l",
"in.nextInt()",
"in.nextInt",
"in",
"long A[][] = new long[n][m];",
"A",
"new long[n][m]",
"n",
"m",
"long B[][] = new long[m][l];",
"B",
"new long[m][l]",
"m",
"l",
"for(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tA[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\tA[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\tA[i][j] = in.nextInt();\n\t\t\t}\n\t\t}",
"for(int j=0;j<m;j++) {\n\t\t\t\tA[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\tA[i][j] = in.nextInt();\n\t\t\t}",
"{\n\t\t\t\tA[i][j] = in.nextInt();\n\t\t\t}",
"A[i][j] = in.nextInt()",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"in.nextInt()",
"in.nextInt",
"in",
"for(int i=0;i<m;i++) {\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\tB[i][j] = in.nextInt();\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\tB[i][j] = in.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\tB[i][j] = in.nextInt();\n\t\t\t}\n\t\t}",
"for(int j=0;j<l;j++) {\n\t\t\t\tB[i][j] = in.nextInt();\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tB[i][j] = in.nextInt();\n\t\t\t}",
"{\n\t\t\t\tB[i][j] = in.nextInt();\n\t\t\t}",
"B[i][j] = in.nextInt()",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"in.nextInt()",
"in.nextInt",
"in",
"long c[][] = new long[n][l];",
"c",
"new long[n][l]",
"n",
"l",
"for(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tc[i][j] += A[i][k] * B[k][j];\n\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<l;j++) {\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tc[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tc[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int j=0;j<l;j++) {\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tc[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tc[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tc[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}",
"for(int k=0;k<m;k++) {\n\t\t\t\t\tc[i][j] += A[i][k] * B[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\tc[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}",
"{\n\t\t\t\t\tc[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}",
"c[i][j] += A[i][k] * B[k][j]",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"A[i][k] * B[k][j]",
"A[i][k]",
"A[i]",
"A",
"i",
"k",
"B[k][j]",
"B[k]",
"B",
"k",
"j",
"for(int i=0;i<n;i++) {\n\t\t\tString s = \"\";\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\ts += c[i][j] + \" \";\n\t\t\t}\n\t\t\tSystem.out.println(s.substring(0, s.length()-1));\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString s = \"\";\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\ts += c[i][j] + \" \";\n\t\t\t}\n\t\t\tSystem.out.println(s.substring(0, s.length()-1));\n\t\t}",
"{\n\t\t\tString s = \"\";\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\ts += c[i][j] + \" \";\n\t\t\t}\n\t\t\tSystem.out.println(s.substring(0, s.length()-1));\n\t\t}",
"String s = \"\";",
"s",
"\"\"",
"for(int j=0;j<l;j++) {\n\t\t\t\ts += c[i][j] + \" \";\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\ts += c[i][j] + \" \";\n\t\t\t}",
"{\n\t\t\t\ts += c[i][j] + \" \";\n\t\t\t}",
"s += c[i][j] + \" \"",
"s",
"c[i][j] + \" \"",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"\" \"",
"System.out.println(s.substring(0, s.length()-1))",
"System.out.println",
"System.out",
"System",
"System.out",
"s.substring(0, s.length()-1)",
"s.substring",
"s",
"0",
"s.length()-1",
"s.length()",
"s.length",
"s",
"1",
"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, m, l;\n\t\tn = in.nextInt();\n\t\tm = in.nextInt();\n\t\tl = in.nextInt();\n\t\tlong A[][] = new long[n][m];\n\t\tlong B[][] = new long[m][l];\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] = in.nextInt();\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\tB[i][j] = in.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tlong c[][] = new long[n][l];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tc[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tString s = \"\";\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\ts += c[i][j] + \" \";\n\t\t\t}\n\t\t\tSystem.out.println(s.substring(0, s.length()-1));\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, m, l;\n\t\tn = in.nextInt();\n\t\tm = in.nextInt();\n\t\tl = in.nextInt();\n\t\tlong A[][] = new long[n][m];\n\t\tlong B[][] = new long[m][l];\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] = in.nextInt();\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\tB[i][j] = in.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tlong c[][] = new long[n][l];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tc[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tString s = \"\";\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\ts += c[i][j] + \" \";\n\t\t\t}\n\t\t\tSystem.out.println(s.substring(0, s.length()-1));\n\t\t}\n\t}\n}",
"Main"
] | import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n, m, l;
n = in.nextInt();
m = in.nextInt();
l = in.nextInt();
long A[][] = new long[n][m];
long B[][] = new long[m][l];
for(int i=0;i<n;i++) {
for(int j=0;j<m;j++) {
A[i][j] = in.nextInt();
}
}
for(int i=0;i<m;i++) {
for(int j=0;j<l;j++) {
B[i][j] = in.nextInt();
}
}
long c[][] = new long[n][l];
for(int i=0;i<n;i++) {
for(int j=0;j<l;j++) {
for(int k=0;k<m;k++) {
c[i][j] += A[i][k] * B[k][j];
}
}
}
for(int i=0;i<n;i++) {
String s = "";
for(int j=0;j<l;j++) {
s += c[i][j] + " ";
}
System.out.println(s.substring(0, s.length()-1));
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
0,
13,
4,
18,
4,
18,
13,
17,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
0,
13,
17,
2,
13,
18,
13,
17,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
17,
11,
1,
0,
13,
17,
2,
13,
18,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
0,
13,
17,
2,
13,
18,
13,
17,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
17,
11,
1,
0,
13,
17,
2,
13,
18,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
0,
13,
17,
2,
13,
18,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
18,
13,
17,
1,
40,
13,
30,
30,
0,
13,
17,
11,
1,
0,
13,
17,
2,
13,
18,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
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,
4,
18,
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
],
[
11,
14
],
[
14,
15
],
[
11,
16
],
[
16,
17
],
[
11,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
11,
34
],
[
34,
35
],
[
34,
36
],
[
11,
38
],
[
38,
39
],
[
38,
40
],
[
11,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
43,
48
],
[
11,
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
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
69,
71
],
[
11,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
72,
82
],
[
82,
83
],
[
83,
84
],
[
72,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
89,
94
],
[
86,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
95,
105
],
[
105,
106
],
[
106,
107
],
[
95,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
110,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
119,
120
],
[
119,
121
],
[
11,
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
],
[
142,
143
],
[
139,
144
],
[
136,
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
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
160,
166
],
[
166,
167
],
[
167,
168
],
[
166,
169
],
[
169,
170
],
[
169,
171
],
[
11,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
172,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
179,
181
],
[
172,
182
],
[
182,
183
],
[
183,
184
],
[
172,
185
],
[
186,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
187,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
194,
196
],
[
187,
197
],
[
197,
198
],
[
198,
199
],
[
187,
200
],
[
201,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
205,
210
],
[
210,
211
],
[
210,
212
],
[
212,
213
],
[
212,
214
],
[
205,
215
],
[
215,
216
],
[
216,
217
],
[
205,
218
],
[
219,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
223,
227
],
[
222,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
228,
232
],
[
201,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
233,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
237,
242
],
[
201,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
243,
248
],
[
186,
249
],
[
249,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
11,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
9,
259
],
[
259,
260
]
] | [
"import java.io.*;\nimport java.util.Arrays;\nclass Main{\n public static void main(String[] args) throws IOException {\n int i,j,k;\n long sum;\n int[][] A = new int[101][101];\n int[][] B = new int[101][101];\n int[] n = new int[990];\n String[] str = new String[990];\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n str = in.readLine().split(\" \");\n for(i=0;i<3;i++){\n n[i]=Integer.parseInt(str[i]); \n }\n for(i=0;i<n[0];i++){\n str = in.readLine().split(\" \");\n for(j=0;j<n[1];j++){\n A[i][j]=Integer.parseInt(str[j]);\n }\n }\n for(i=0;i<n[1];i++){\n str = in.readLine().split(\" \");\n for(j=0;j<n[2];j++){\n B[i][j]=Integer.parseInt(str[j]);\n }\n }\n for(i=0;i<n[0];i++){\n for(j=0;j<n[2];j++){\n sum=0;\n for(k=0;k<n[1];k++){\n sum += B[k][j]*A[i][k]; \n }\n if(j!=0) System.out.print(\" \");\n System.out.print(sum);\n }\n System.out.println();\n } \n System.out.flush();\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.Arrays;",
"Arrays",
"java.util",
"class Main{\n public static void main(String[] args) throws IOException {\n int i,j,k;\n long sum;\n int[][] A = new int[101][101];\n int[][] B = new int[101][101];\n int[] n = new int[990];\n String[] str = new String[990];\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n str = in.readLine().split(\" \");\n for(i=0;i<3;i++){\n n[i]=Integer.parseInt(str[i]); \n }\n for(i=0;i<n[0];i++){\n str = in.readLine().split(\" \");\n for(j=0;j<n[1];j++){\n A[i][j]=Integer.parseInt(str[j]);\n }\n }\n for(i=0;i<n[1];i++){\n str = in.readLine().split(\" \");\n for(j=0;j<n[2];j++){\n B[i][j]=Integer.parseInt(str[j]);\n }\n }\n for(i=0;i<n[0];i++){\n for(j=0;j<n[2];j++){\n sum=0;\n for(k=0;k<n[1];k++){\n sum += B[k][j]*A[i][k]; \n }\n if(j!=0) System.out.print(\" \");\n System.out.print(sum);\n }\n System.out.println();\n } \n System.out.flush();\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n int i,j,k;\n long sum;\n int[][] A = new int[101][101];\n int[][] B = new int[101][101];\n int[] n = new int[990];\n String[] str = new String[990];\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n str = in.readLine().split(\" \");\n for(i=0;i<3;i++){\n n[i]=Integer.parseInt(str[i]); \n }\n for(i=0;i<n[0];i++){\n str = in.readLine().split(\" \");\n for(j=0;j<n[1];j++){\n A[i][j]=Integer.parseInt(str[j]);\n }\n }\n for(i=0;i<n[1];i++){\n str = in.readLine().split(\" \");\n for(j=0;j<n[2];j++){\n B[i][j]=Integer.parseInt(str[j]);\n }\n }\n for(i=0;i<n[0];i++){\n for(j=0;j<n[2];j++){\n sum=0;\n for(k=0;k<n[1];k++){\n sum += B[k][j]*A[i][k]; \n }\n if(j!=0) System.out.print(\" \");\n System.out.print(sum);\n }\n System.out.println();\n } \n System.out.flush();\n }",
"main",
"{\n int i,j,k;\n long sum;\n int[][] A = new int[101][101];\n int[][] B = new int[101][101];\n int[] n = new int[990];\n String[] str = new String[990];\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n str = in.readLine().split(\" \");\n for(i=0;i<3;i++){\n n[i]=Integer.parseInt(str[i]); \n }\n for(i=0;i<n[0];i++){\n str = in.readLine().split(\" \");\n for(j=0;j<n[1];j++){\n A[i][j]=Integer.parseInt(str[j]);\n }\n }\n for(i=0;i<n[1];i++){\n str = in.readLine().split(\" \");\n for(j=0;j<n[2];j++){\n B[i][j]=Integer.parseInt(str[j]);\n }\n }\n for(i=0;i<n[0];i++){\n for(j=0;j<n[2];j++){\n sum=0;\n for(k=0;k<n[1];k++){\n sum += B[k][j]*A[i][k]; \n }\n if(j!=0) System.out.print(\" \");\n System.out.print(sum);\n }\n System.out.println();\n } \n System.out.flush();\n }",
"int i",
"i",
"j",
"j",
"k;",
"k",
"long sum;",
"sum",
"int[][] A = new int[101][101];",
"A",
"new int[101][101]",
"101",
"101",
"int[][] B = new int[101][101];",
"B",
"new int[101][101]",
"101",
"101",
"int[] n = new int[990];",
"n",
"new int[990]",
"990",
"String[] str = new String[990];",
"str",
"new String[990]",
"990",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"str = in.readLine().split(\" \")",
"str",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"for(i=0;i<3;i++){\n n[i]=Integer.parseInt(str[i]); \n }",
"i=0;",
"i=0",
"i",
"0",
"i<3",
"i",
"3",
"i++",
"i++",
"i",
"{\n n[i]=Integer.parseInt(str[i]); \n }",
"{\n n[i]=Integer.parseInt(str[i]); \n }",
"n[i]=Integer.parseInt(str[i])",
"n[i]",
"n",
"i",
"Integer.parseInt(str[i])",
"Integer.parseInt",
"Integer",
"str[i]",
"str",
"i",
"for(i=0;i<n[0];i++){\n str = in.readLine().split(\" \");\n for(j=0;j<n[1];j++){\n A[i][j]=Integer.parseInt(str[j]);\n }\n }",
"i=0;",
"i=0",
"i",
"0",
"i<n[0]",
"i",
"n[0]",
"n",
"0",
"i++",
"i++",
"i",
"{\n str = in.readLine().split(\" \");\n for(j=0;j<n[1];j++){\n A[i][j]=Integer.parseInt(str[j]);\n }\n }",
"{\n str = in.readLine().split(\" \");\n for(j=0;j<n[1];j++){\n A[i][j]=Integer.parseInt(str[j]);\n }\n }",
"str = in.readLine().split(\" \")",
"str",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"for(j=0;j<n[1];j++){\n A[i][j]=Integer.parseInt(str[j]);\n }",
"j=0;",
"j=0",
"j",
"0",
"j<n[1]",
"j",
"n[1]",
"n",
"1",
"j++",
"j++",
"j",
"{\n A[i][j]=Integer.parseInt(str[j]);\n }",
"{\n A[i][j]=Integer.parseInt(str[j]);\n }",
"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(i=0;i<n[1];i++){\n str = in.readLine().split(\" \");\n for(j=0;j<n[2];j++){\n B[i][j]=Integer.parseInt(str[j]);\n }\n }",
"i=0;",
"i=0",
"i",
"0",
"i<n[1]",
"i",
"n[1]",
"n",
"1",
"i++",
"i++",
"i",
"{\n str = in.readLine().split(\" \");\n for(j=0;j<n[2];j++){\n B[i][j]=Integer.parseInt(str[j]);\n }\n }",
"{\n str = in.readLine().split(\" \");\n for(j=0;j<n[2];j++){\n B[i][j]=Integer.parseInt(str[j]);\n }\n }",
"str = in.readLine().split(\" \")",
"str",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"for(j=0;j<n[2];j++){\n B[i][j]=Integer.parseInt(str[j]);\n }",
"j=0;",
"j=0",
"j",
"0",
"j<n[2]",
"j",
"n[2]",
"n",
"2",
"j++",
"j++",
"j",
"{\n B[i][j]=Integer.parseInt(str[j]);\n }",
"{\n B[i][j]=Integer.parseInt(str[j]);\n }",
"B[i][j]=Integer.parseInt(str[j])",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"Integer.parseInt(str[j])",
"Integer.parseInt",
"Integer",
"str[j]",
"str",
"j",
"for(i=0;i<n[0];i++){\n for(j=0;j<n[2];j++){\n sum=0;\n for(k=0;k<n[1];k++){\n sum += B[k][j]*A[i][k]; \n }\n if(j!=0) System.out.print(\" \");\n System.out.print(sum);\n }\n System.out.println();\n }",
"i=0;",
"i=0",
"i",
"0",
"i<n[0]",
"i",
"n[0]",
"n",
"0",
"i++",
"i++",
"i",
"{\n for(j=0;j<n[2];j++){\n sum=0;\n for(k=0;k<n[1];k++){\n sum += B[k][j]*A[i][k]; \n }\n if(j!=0) System.out.print(\" \");\n System.out.print(sum);\n }\n System.out.println();\n }",
"{\n for(j=0;j<n[2];j++){\n sum=0;\n for(k=0;k<n[1];k++){\n sum += B[k][j]*A[i][k]; \n }\n if(j!=0) System.out.print(\" \");\n System.out.print(sum);\n }\n System.out.println();\n }",
"for(j=0;j<n[2];j++){\n sum=0;\n for(k=0;k<n[1];k++){\n sum += B[k][j]*A[i][k]; \n }\n if(j!=0) System.out.print(\" \");\n System.out.print(sum);\n }",
"j=0;",
"j=0",
"j",
"0",
"j<n[2]",
"j",
"n[2]",
"n",
"2",
"j++",
"j++",
"j",
"{\n sum=0;\n for(k=0;k<n[1];k++){\n sum += B[k][j]*A[i][k]; \n }\n if(j!=0) System.out.print(\" \");\n System.out.print(sum);\n }",
"{\n sum=0;\n for(k=0;k<n[1];k++){\n sum += B[k][j]*A[i][k]; \n }\n if(j!=0) System.out.print(\" \");\n System.out.print(sum);\n }",
"sum=0",
"sum",
"0",
"for(k=0;k<n[1];k++){\n sum += B[k][j]*A[i][k]; \n }",
"k=0;",
"k=0",
"k",
"0",
"k<n[1]",
"k",
"n[1]",
"n",
"1",
"k++",
"k++",
"k",
"{\n sum += B[k][j]*A[i][k]; \n }",
"{\n sum += B[k][j]*A[i][k]; \n }",
"sum += B[k][j]*A[i][k]",
"sum",
"B[k][j]*A[i][k]",
"B[k][j]",
"B[k]",
"B",
"k",
"j",
"A[i][k]",
"A[i]",
"A",
"i",
"k",
"if(j!=0) System.out.print(\" \");",
"j!=0",
"j",
"0",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.print(sum)",
"System.out.print",
"System.out",
"System",
"System.out",
"sum",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"System.out.flush()",
"System.out.flush",
"System.out",
"System",
"System.out",
"String[] args",
"args"
] | import java.io.*;
import java.util.Arrays;
class Main{
public static void main(String[] args) throws IOException {
int i,j,k;
long sum;
int[][] A = new int[101][101];
int[][] B = new int[101][101];
int[] n = new int[990];
String[] str = new String[990];
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
str = in.readLine().split(" ");
for(i=0;i<3;i++){
n[i]=Integer.parseInt(str[i]);
}
for(i=0;i<n[0];i++){
str = in.readLine().split(" ");
for(j=0;j<n[1];j++){
A[i][j]=Integer.parseInt(str[j]);
}
}
for(i=0;i<n[1];i++){
str = in.readLine().split(" ");
for(j=0;j<n[2];j++){
B[i][j]=Integer.parseInt(str[j]);
}
}
for(i=0;i<n[0];i++){
for(j=0;j<n[2];j++){
sum=0;
for(k=0;k<n[1];k++){
sum += B[k][j]*A[i][k];
}
if(j!=0) System.out.print(" ");
System.out.print(sum);
}
System.out.println();
}
System.out.flush();
}
} |
[
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,
4,
18,
13,
18,
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,
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,
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,
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,
2,
18,
18,
13,
13,
13,
18,
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,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
263,
5
],
[
263,
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
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
8,
49
],
[
49,
50
],
[
49,
51
],
[
8,
54
],
[
54,
55
],
[
54,
56
],
[
8,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
59,
70
],
[
71,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
74,
79
],
[
71,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
80,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
93,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
102,
103
],
[
102,
104
],
[
8,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
105,
113
],
[
113,
114
],
[
114,
115
],
[
105,
116
],
[
117,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
120,
125
],
[
117,
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
],
[
140,
144
],
[
139,
145
],
[
145,
146
],
[
146,
147
],
[
145,
148
],
[
148,
149
],
[
148,
150
],
[
8,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
156,
157
],
[
156,
158
],
[
151,
159
],
[
159,
160
],
[
160,
161
],
[
151,
162
],
[
163,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
164,
169
],
[
169,
170
],
[
169,
171
],
[
164,
172
],
[
172,
173
],
[
173,
174
],
[
164,
175
],
[
176,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
182,
183
],
[
182,
184
],
[
177,
185
],
[
185,
186
],
[
186,
187
],
[
177,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
190,
194
],
[
189,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
196,
200
],
[
195,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
8,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
206,
211
],
[
211,
212
],
[
211,
213
],
[
206,
214
],
[
214,
215
],
[
215,
216
],
[
206,
217
],
[
218,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
219,
224
],
[
224,
225
],
[
224,
226
],
[
219,
227
],
[
227,
228
],
[
228,
229
],
[
219,
230
],
[
231,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
232,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
237,
241
],
[
231,
242
],
[
242,
243
],
[
243,
244
],
[
243,
245
],
[
245,
246
],
[
245,
247
],
[
242,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
248,
253
],
[
218,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
254,
259
],
[
6,
260
],
[
260,
261
],
[
0,
262
],
[
262,
263
],
[
262,
264
]
] | [
"import java.io.*;\n\npublic class Main{\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] line = br.readLine().split(\" \");\n int n = Integer.parseInt(line[0]);\n int m = Integer.parseInt(line[1]);\n int l = Integer.parseInt(line[2]);\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n long[][] c = new long[n][l];\n\n for(int i = 0; i < n; i++){\n line = br.readLine().split(\" \");\n for(int j = 0; j < m; j++){\n a[i][j] = Integer.parseInt(line[j]);\n }\n }\n\n for(int i = 0; i < m; i++){\n line = br.readLine().split(\" \");\n for(int j = 0; j < l; j++){\n b[i][j] = Integer.parseInt(line[j]);\n }\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n for(int k = 0; k < m; k++)\n c[i][j] += a[i][k] * b[k][j];\n }\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n System.out.print(c[i][j]);\n if(j != l-1)\n System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] line = br.readLine().split(\" \");\n int n = Integer.parseInt(line[0]);\n int m = Integer.parseInt(line[1]);\n int l = Integer.parseInt(line[2]);\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n long[][] c = new long[n][l];\n\n for(int i = 0; i < n; i++){\n line = br.readLine().split(\" \");\n for(int j = 0; j < m; j++){\n a[i][j] = Integer.parseInt(line[j]);\n }\n }\n\n for(int i = 0; i < m; i++){\n line = br.readLine().split(\" \");\n for(int j = 0; j < l; j++){\n b[i][j] = Integer.parseInt(line[j]);\n }\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n for(int k = 0; k < m; k++)\n c[i][j] += a[i][k] * b[k][j];\n }\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n System.out.print(c[i][j]);\n if(j != l-1)\n System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] line = br.readLine().split(\" \");\n int n = Integer.parseInt(line[0]);\n int m = Integer.parseInt(line[1]);\n int l = Integer.parseInt(line[2]);\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n long[][] c = new long[n][l];\n\n for(int i = 0; i < n; i++){\n line = br.readLine().split(\" \");\n for(int j = 0; j < m; j++){\n a[i][j] = Integer.parseInt(line[j]);\n }\n }\n\n for(int i = 0; i < m; i++){\n line = br.readLine().split(\" \");\n for(int j = 0; j < l; j++){\n b[i][j] = Integer.parseInt(line[j]);\n }\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n for(int k = 0; k < m; k++)\n c[i][j] += a[i][k] * b[k][j];\n }\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n System.out.print(c[i][j]);\n if(j != l-1)\n System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] line = br.readLine().split(\" \");\n int n = Integer.parseInt(line[0]);\n int m = Integer.parseInt(line[1]);\n int l = Integer.parseInt(line[2]);\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n long[][] c = new long[n][l];\n\n for(int i = 0; i < n; i++){\n line = br.readLine().split(\" \");\n for(int j = 0; j < m; j++){\n a[i][j] = Integer.parseInt(line[j]);\n }\n }\n\n for(int i = 0; i < m; i++){\n line = br.readLine().split(\" \");\n for(int j = 0; j < l; j++){\n b[i][j] = Integer.parseInt(line[j]);\n }\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n for(int k = 0; k < m; k++)\n c[i][j] += a[i][k] * b[k][j];\n }\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n System.out.print(c[i][j]);\n if(j != l-1)\n System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }\n }",
"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 l = Integer.parseInt(line[2]);",
"l",
"Integer.parseInt(line[2])",
"Integer.parseInt",
"Integer",
"line[2]",
"line",
"2",
"int[][] a = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[][] b = new int[m][l];",
"b",
"new int[m][l]",
"m",
"l",
"long[][] c = new long[n][l];",
"c",
"new long[n][l]",
"n",
"l",
"for(int i = 0; i < n; i++){\n line = br.readLine().split(\" \");\n for(int j = 0; j < m; j++){\n a[i][j] = Integer.parseInt(line[j]);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n line = br.readLine().split(\" \");\n for(int j = 0; j < m; j++){\n a[i][j] = Integer.parseInt(line[j]);\n }\n }",
"{\n line = br.readLine().split(\" \");\n for(int j = 0; j < m; j++){\n a[i][j] = Integer.parseInt(line[j]);\n }\n }",
"line = br.readLine().split(\" \")",
"line",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(int j = 0; j < m; j++){\n a[i][j] = Integer.parseInt(line[j]);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n a[i][j] = Integer.parseInt(line[j]);\n }",
"{\n a[i][j] = Integer.parseInt(line[j]);\n }",
"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",
"for(int i = 0; i < m; i++){\n line = br.readLine().split(\" \");\n for(int j = 0; j < l; j++){\n b[i][j] = Integer.parseInt(line[j]);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n line = br.readLine().split(\" \");\n for(int j = 0; j < l; j++){\n b[i][j] = Integer.parseInt(line[j]);\n }\n }",
"{\n line = br.readLine().split(\" \");\n for(int j = 0; j < l; j++){\n b[i][j] = Integer.parseInt(line[j]);\n }\n }",
"line = br.readLine().split(\" \")",
"line",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(int j = 0; j < l; j++){\n b[i][j] = Integer.parseInt(line[j]);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n b[i][j] = Integer.parseInt(line[j]);\n }",
"{\n b[i][j] = Integer.parseInt(line[j]);\n }",
"b[i][j] = Integer.parseInt(line[j])",
"b[i][j]",
"b[i]",
"b",
"i",
"j",
"Integer.parseInt(line[j])",
"Integer.parseInt",
"Integer",
"line[j]",
"line",
"j",
"for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n for(int k = 0; k < m; k++)\n c[i][j] += a[i][k] * b[k][j];\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < l; j++){\n for(int k = 0; k < m; k++)\n c[i][j] += a[i][k] * b[k][j];\n }\n }",
"{\n for(int j = 0; j < l; j++){\n for(int k = 0; k < m; k++)\n c[i][j] += a[i][k] * b[k][j];\n }\n }",
"for(int j = 0; j < l; j++){\n for(int k = 0; k < m; k++)\n c[i][j] += a[i][k] * b[k][j];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n for(int k = 0; k < m; k++)\n c[i][j] += a[i][k] * b[k][j];\n }",
"{\n for(int k = 0; k < m; k++)\n c[i][j] += a[i][k] * b[k][j];\n }",
"for(int k = 0; k < m; k++)\n c[i][j] += a[i][k] * b[k][j];",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"c[i][j] += a[i][k] * b[k][j];",
"c[i][j] += a[i][k] * b[k][j]",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"a[i][k] * b[k][j]",
"a[i][k]",
"a[i]",
"a",
"i",
"k",
"b[k][j]",
"b[k]",
"b",
"k",
"j",
"for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n System.out.print(c[i][j]);\n if(j != l-1)\n System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < l; j++){\n System.out.print(c[i][j]);\n if(j != l-1)\n System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }",
"{\n for(int j = 0; j < l; j++){\n System.out.print(c[i][j]);\n if(j != l-1)\n System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }",
"for(int j = 0; j < l; j++){\n System.out.print(c[i][j]);\n if(j != l-1)\n System.out.print(\" \");\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n System.out.print(c[i][j]);\n if(j != l-1)\n System.out.print(\" \");\n }",
"{\n System.out.print(c[i][j]);\n if(j != l-1)\n System.out.print(\" \");\n }",
"System.out.print(c[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"if(j != l-1)\n System.out.print(\" \");",
"j != l-1",
"j",
"l-1",
"l",
"1",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.print(\"\\n\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"\\n\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] line = br.readLine().split(\" \");\n int n = Integer.parseInt(line[0]);\n int m = Integer.parseInt(line[1]);\n int l = Integer.parseInt(line[2]);\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n long[][] c = new long[n][l];\n\n for(int i = 0; i < n; i++){\n line = br.readLine().split(\" \");\n for(int j = 0; j < m; j++){\n a[i][j] = Integer.parseInt(line[j]);\n }\n }\n\n for(int i = 0; i < m; i++){\n line = br.readLine().split(\" \");\n for(int j = 0; j < l; j++){\n b[i][j] = Integer.parseInt(line[j]);\n }\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n for(int k = 0; k < m; k++)\n c[i][j] += a[i][k] * b[k][j];\n }\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n System.out.print(c[i][j]);\n if(j != l-1)\n System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }\n }\n}",
"public class Main{\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] line = br.readLine().split(\" \");\n int n = Integer.parseInt(line[0]);\n int m = Integer.parseInt(line[1]);\n int l = Integer.parseInt(line[2]);\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n long[][] c = new long[n][l];\n\n for(int i = 0; i < n; i++){\n line = br.readLine().split(\" \");\n for(int j = 0; j < m; j++){\n a[i][j] = Integer.parseInt(line[j]);\n }\n }\n\n for(int i = 0; i < m; i++){\n line = br.readLine().split(\" \");\n for(int j = 0; j < l; j++){\n b[i][j] = Integer.parseInt(line[j]);\n }\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n for(int k = 0; k < m; k++)\n c[i][j] += a[i][k] * b[k][j];\n }\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n System.out.print(c[i][j]);\n if(j != l-1)\n System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }\n }\n}",
"Main"
] | import java.io.*;
public class Main{
public static void main(String[] args) throws IOException {
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]);
int l = Integer.parseInt(line[2]);
int[][] a = new int[n][m];
int[][] b = new int[m][l];
long[][] c = new long[n][l];
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]);
}
}
for(int i = 0; i < m; i++){
line = br.readLine().split(" ");
for(int j = 0; j < l; j++){
b[i][j] = Integer.parseInt(line[j]);
}
}
for(int i = 0; i < n; i++){
for(int j = 0; j < l; j++){
for(int k = 0; k < m; k++)
c[i][j] += a[i][k] * b[k][j];
}
}
for(int i = 0; i < n; i++){
for(int j = 0; j < l; j++){
System.out.print(c[i][j]);
if(j != l-1)
System.out.print(" ");
}
System.out.print("\n");
}
}
} |
[
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,
4,
18,
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,
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,
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,
13,
18,
13,
13,
13,
13,
0,
18,
18,
13,
13,
13,
13,
4,
13,
13,
23,
13,
12,
13,
30,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
29,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
17,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
2,
18,
18,
13,
17,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
284,
8
],
[
284,
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
],
[
27,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
11,
35
],
[
35,
36
],
[
35,
37
],
[
11,
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
],
[
72,
75
],
[
75,
76
],
[
76,
77
],
[
11,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
78,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
91,
99
],
[
99,
100
],
[
100,
101
],
[
91,
102
],
[
103,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
104,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
113,
114
],
[
114,
115
],
[
11,
116
],
[
116,
117
],
[
116,
118
],
[
11,
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
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
139,
140
],
[
139,
141
],
[
134,
142
],
[
142,
143
],
[
143,
144
],
[
134,
145
],
[
146,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
151,
153
],
[
149,
154
],
[
149,
155
],
[
146,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
156,
162
],
[
11,
163
],
[
163,
164
],
[
163,
165
],
[
9,
166
],
[
166,
167
],
[
284,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
173,
175
],
[
170,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
176,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
183,
185
],
[
176,
186
],
[
186,
187
],
[
187,
188
],
[
176,
189
],
[
190,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
194,
195
],
[
193,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
196,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
170,
206
],
[
206,
207
],
[
168,
208
],
[
208,
209
],
[
168,
210
],
[
210,
211
],
[
168,
212
],
[
212,
213
],
[
284,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
217,
222
],
[
222,
223
],
[
222,
224
],
[
224,
225
],
[
224,
226
],
[
217,
227
],
[
227,
228
],
[
228,
229
],
[
217,
230
],
[
231,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
232,
237
],
[
237,
238
],
[
237,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
239,
243
],
[
232,
244
],
[
244,
245
],
[
245,
246
],
[
232,
247
],
[
248,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
249,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
254,
258
],
[
248,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
262,
263
],
[
263,
264
],
[
264,
265
],
[
264,
266
],
[
263,
267
],
[
262,
268
],
[
259,
269
],
[
269,
270
],
[
270,
271
],
[
271,
272
],
[
271,
273
],
[
269,
274
],
[
231,
275
],
[
275,
276
],
[
276,
277
],
[
277,
278
],
[
277,
279
],
[
275,
280
],
[
214,
281
],
[
281,
282
],
[
0,
283
],
[
283,
284
],
[
283,
285
]
] | [
"import java.util.Scanner;\nimport java.math.BigInteger;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int a = input.nextInt(); // Rows of the 1st matrix\n int b = input.nextInt(); // Columns of 1st Matrix and Rows of 2 Matrix\n int c = input.nextInt(); // Columns of 2nd matrix\n\n BigInteger[][] A = new BigInteger[a][b];\n BigInteger[][] B = new BigInteger[b][c];\n\n // Build matrix A\n for(int row = 0; row < a; row++){\n for(int col = 0; col < b; col++){\n A[row][col] = BigInteger.valueOf(input.nextInt());\n }\n }\n\n // Build martix B\n for(int row = 0; row < b; row++){\n for(int col = 0; col < c; col++){\n B[row][col] = BigInteger.valueOf(input.nextInt());\n }\n }\n\n // Multiple out\n BigInteger[][] result = new BigInteger[a][c];\n\n for(int row = 0; row < a; row++){\n for(int col = 0; col < c; col++){\n BigInteger temp = sum(A[row], B, col);\n result[row][col] = temp;\n }\n }\n showSheet(result); // Display the result\n }\n\n // Helper function that computes the value of a cell in the result matrix\n // Takes an (a x 1) vector that is a row of A and then the entire B matrix, and a colIndex that indicates where to index B\n private static BigInteger sum(BigInteger[] row, BigInteger[][] matrix, int colIndex){\n BigInteger total = BigInteger.ZERO;\n for(int i = 0; i < row.length; i++){\n total = total.add(row[i].multiply(matrix[i][colIndex]));\n }\n return total;\n }\n\n // Helper function that displays a 2D int array\n private static void showSheet(BigInteger[][] result){\n for(int i = 0; i < result.length; i++){\n for(int j = 0; j < result[0].length; j++){\n System.out.print(result[i][j]);\n if( j < result[0].length - 1) System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"public class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int a = input.nextInt(); // Rows of the 1st matrix\n int b = input.nextInt(); // Columns of 1st Matrix and Rows of 2 Matrix\n int c = input.nextInt(); // Columns of 2nd matrix\n\n BigInteger[][] A = new BigInteger[a][b];\n BigInteger[][] B = new BigInteger[b][c];\n\n // Build matrix A\n for(int row = 0; row < a; row++){\n for(int col = 0; col < b; col++){\n A[row][col] = BigInteger.valueOf(input.nextInt());\n }\n }\n\n // Build martix B\n for(int row = 0; row < b; row++){\n for(int col = 0; col < c; col++){\n B[row][col] = BigInteger.valueOf(input.nextInt());\n }\n }\n\n // Multiple out\n BigInteger[][] result = new BigInteger[a][c];\n\n for(int row = 0; row < a; row++){\n for(int col = 0; col < c; col++){\n BigInteger temp = sum(A[row], B, col);\n result[row][col] = temp;\n }\n }\n showSheet(result); // Display the result\n }\n\n // Helper function that computes the value of a cell in the result matrix\n // Takes an (a x 1) vector that is a row of A and then the entire B matrix, and a colIndex that indicates where to index B\n private static BigInteger sum(BigInteger[] row, BigInteger[][] matrix, int colIndex){\n BigInteger total = BigInteger.ZERO;\n for(int i = 0; i < row.length; i++){\n total = total.add(row[i].multiply(matrix[i][colIndex]));\n }\n return total;\n }\n\n // Helper function that displays a 2D int array\n private static void showSheet(BigInteger[][] result){\n for(int i = 0; i < result.length; i++){\n for(int j = 0; j < result[0].length; j++){\n System.out.print(result[i][j]);\n if( j < result[0].length - 1) System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int a = input.nextInt(); // Rows of the 1st matrix\n int b = input.nextInt(); // Columns of 1st Matrix and Rows of 2 Matrix\n int c = input.nextInt(); // Columns of 2nd matrix\n\n BigInteger[][] A = new BigInteger[a][b];\n BigInteger[][] B = new BigInteger[b][c];\n\n // Build matrix A\n for(int row = 0; row < a; row++){\n for(int col = 0; col < b; col++){\n A[row][col] = BigInteger.valueOf(input.nextInt());\n }\n }\n\n // Build martix B\n for(int row = 0; row < b; row++){\n for(int col = 0; col < c; col++){\n B[row][col] = BigInteger.valueOf(input.nextInt());\n }\n }\n\n // Multiple out\n BigInteger[][] result = new BigInteger[a][c];\n\n for(int row = 0; row < a; row++){\n for(int col = 0; col < c; col++){\n BigInteger temp = sum(A[row], B, col);\n result[row][col] = temp;\n }\n }\n showSheet(result); // Display the result\n }",
"main",
"{\n Scanner input = new Scanner(System.in);\n int a = input.nextInt(); // Rows of the 1st matrix\n int b = input.nextInt(); // Columns of 1st Matrix and Rows of 2 Matrix\n int c = input.nextInt(); // Columns of 2nd matrix\n\n BigInteger[][] A = new BigInteger[a][b];\n BigInteger[][] B = new BigInteger[b][c];\n\n // Build matrix A\n for(int row = 0; row < a; row++){\n for(int col = 0; col < b; col++){\n A[row][col] = BigInteger.valueOf(input.nextInt());\n }\n }\n\n // Build martix B\n for(int row = 0; row < b; row++){\n for(int col = 0; col < c; col++){\n B[row][col] = BigInteger.valueOf(input.nextInt());\n }\n }\n\n // Multiple out\n BigInteger[][] result = new BigInteger[a][c];\n\n for(int row = 0; row < a; row++){\n for(int col = 0; col < c; col++){\n BigInteger temp = sum(A[row], B, col);\n result[row][col] = temp;\n }\n }\n showSheet(result); // Display the result\n }",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"int a = input.nextInt();",
"a",
"input.nextInt()",
"input.nextInt",
"input",
"int b = input.nextInt();",
"b",
"input.nextInt()",
"input.nextInt",
"input",
"int c = input.nextInt();",
"c",
"input.nextInt()",
"input.nextInt",
"input",
"BigInteger[][] A = new BigInteger[a][b];",
"A",
"new BigInteger[a][b]",
"a",
"b",
"BigInteger[][] B = new BigInteger[b][c];",
"B",
"new BigInteger[b][c]",
"b",
"c",
"for(int row = 0; row < a; row++){\n for(int col = 0; col < b; col++){\n A[row][col] = BigInteger.valueOf(input.nextInt());\n }\n }",
"int row = 0;",
"int row = 0;",
"row",
"0",
"row < a",
"row",
"a",
"row++",
"row++",
"row",
"{\n for(int col = 0; col < b; col++){\n A[row][col] = BigInteger.valueOf(input.nextInt());\n }\n }",
"{\n for(int col = 0; col < b; col++){\n A[row][col] = BigInteger.valueOf(input.nextInt());\n }\n }",
"for(int col = 0; col < b; col++){\n A[row][col] = BigInteger.valueOf(input.nextInt());\n }",
"int col = 0;",
"int col = 0;",
"col",
"0",
"col < b",
"col",
"b",
"col++",
"col++",
"col",
"{\n A[row][col] = BigInteger.valueOf(input.nextInt());\n }",
"{\n A[row][col] = BigInteger.valueOf(input.nextInt());\n }",
"A[row][col] = BigInteger.valueOf(input.nextInt())",
"A[row][col]",
"A[row]",
"A",
"row",
"col",
"BigInteger.valueOf(input.nextInt())",
"BigInteger.valueOf",
"BigInteger",
"input.nextInt()",
"input.nextInt",
"input",
"for(int row = 0; row < b; row++){\n for(int col = 0; col < c; col++){\n B[row][col] = BigInteger.valueOf(input.nextInt());\n }\n }",
"int row = 0;",
"int row = 0;",
"row",
"0",
"row < b",
"row",
"b",
"row++",
"row++",
"row",
"{\n for(int col = 0; col < c; col++){\n B[row][col] = BigInteger.valueOf(input.nextInt());\n }\n }",
"{\n for(int col = 0; col < c; col++){\n B[row][col] = BigInteger.valueOf(input.nextInt());\n }\n }",
"for(int col = 0; col < c; col++){\n B[row][col] = BigInteger.valueOf(input.nextInt());\n }",
"int col = 0;",
"int col = 0;",
"col",
"0",
"col < c",
"col",
"c",
"col++",
"col++",
"col",
"{\n B[row][col] = BigInteger.valueOf(input.nextInt());\n }",
"{\n B[row][col] = BigInteger.valueOf(input.nextInt());\n }",
"B[row][col] = BigInteger.valueOf(input.nextInt())",
"B[row][col]",
"B[row]",
"B",
"row",
"col",
"BigInteger.valueOf(input.nextInt())",
"BigInteger.valueOf",
"BigInteger",
"input.nextInt()",
"input.nextInt",
"input",
"BigInteger[][] result = new BigInteger[a][c];",
"result",
"new BigInteger[a][c]",
"a",
"c",
"for(int row = 0; row < a; row++){\n for(int col = 0; col < c; col++){\n BigInteger temp = sum(A[row], B, col);\n result[row][col] = temp;\n }\n }",
"int row = 0;",
"int row = 0;",
"row",
"0",
"row < a",
"row",
"a",
"row++",
"row++",
"row",
"{\n for(int col = 0; col < c; col++){\n BigInteger temp = sum(A[row], B, col);\n result[row][col] = temp;\n }\n }",
"{\n for(int col = 0; col < c; col++){\n BigInteger temp = sum(A[row], B, col);\n result[row][col] = temp;\n }\n }",
"for(int col = 0; col < c; col++){\n BigInteger temp = sum(A[row], B, col);\n result[row][col] = temp;\n }",
"int col = 0;",
"int col = 0;",
"col",
"0",
"col < c",
"col",
"c",
"col++",
"col++",
"col",
"{\n BigInteger temp = sum(A[row], B, col);\n result[row][col] = temp;\n }",
"{\n BigInteger temp = sum(A[row], B, col);\n result[row][col] = temp;\n }",
"BigInteger temp = sum(A[row], B, col);",
"temp",
"sum(A[row], B, col)",
"sum",
"A[row]",
"A",
"row",
"B",
"col",
"result[row][col] = temp",
"result[row][col]",
"result[row]",
"result",
"row",
"col",
"temp",
"showSheet(result)",
"showSheet",
"result",
"String[] args",
"args",
"// Helper function that computes the value of a cell in the result matrix\n // Takes an (a x 1) vector that is a row of A and then the entire B matrix, and a colIndex that indicates where to index B\n private static BigInteger sum(BigInteger[] row, BigInteger[][] matrix, int colIndex){\n BigInteger total = BigInteger.ZERO;\n for(int i = 0; i < row.length; i++){\n total = total.add(row[i].multiply(matrix[i][colIndex]));\n }\n return total;\n }",
"sum",
"{\n BigInteger total = BigInteger.ZERO;\n for(int i = 0; i < row.length; i++){\n total = total.add(row[i].multiply(matrix[i][colIndex]));\n }\n return total;\n }",
"BigInteger total = BigInteger.ZERO;",
"total",
"BigInteger.ZERO",
"BigInteger",
"BigInteger.ZERO",
"for(int i = 0; i < row.length; i++){\n total = total.add(row[i].multiply(matrix[i][colIndex]));\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < row.length",
"i",
"row.length",
"row",
"row.length",
"i++",
"i++",
"i",
"{\n total = total.add(row[i].multiply(matrix[i][colIndex]));\n }",
"{\n total = total.add(row[i].multiply(matrix[i][colIndex]));\n }",
"total = total.add(row[i].multiply(matrix[i][colIndex]))",
"total",
"total.add(row[i].multiply(matrix[i][colIndex]))",
"total.add",
"total",
"row[i].multiply(matrix[i][colIndex])",
"row[i].multiply",
"row[i]",
"row",
"i",
"matrix[i][colIndex]",
"matrix[i]",
"matrix",
"i",
"colIndex",
"return total;",
"total",
"BigInteger[] row",
"row",
"BigInteger[][] matrix",
"matrix",
"int colIndex",
"colIndex",
"// Helper function that displays a 2D int array\n private static void showSheet(BigInteger[][] result){\n for(int i = 0; i < result.length; i++){\n for(int j = 0; j < result[0].length; j++){\n System.out.print(result[i][j]);\n if( j < result[0].length - 1) System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }\n }",
"showSheet",
"{\n for(int i = 0; i < result.length; i++){\n for(int j = 0; j < result[0].length; j++){\n System.out.print(result[i][j]);\n if( j < result[0].length - 1) System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }\n }",
"for(int i = 0; i < result.length; i++){\n for(int j = 0; j < result[0].length; j++){\n System.out.print(result[i][j]);\n if( j < result[0].length - 1) System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < result.length",
"i",
"result.length",
"result",
"result.length",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < result[0].length; j++){\n System.out.print(result[i][j]);\n if( j < result[0].length - 1) System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }",
"{\n for(int j = 0; j < result[0].length; j++){\n System.out.print(result[i][j]);\n if( j < result[0].length - 1) System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }",
"for(int j = 0; j < result[0].length; j++){\n System.out.print(result[i][j]);\n if( j < result[0].length - 1) System.out.print(\" \");\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < result[0].length",
"j",
"result[0].length",
"result[0]",
"result",
"0",
"result[0].length",
"j++",
"j++",
"j",
"{\n System.out.print(result[i][j]);\n if( j < result[0].length - 1) System.out.print(\" \");\n }",
"{\n System.out.print(result[i][j]);\n if( j < result[0].length - 1) System.out.print(\" \");\n }",
"System.out.print(result[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"result[i][j]",
"result[i]",
"result",
"i",
"j",
"if( j < result[0].length - 1) System.out.print(\" \");",
"j < result[0].length - 1",
"j",
"result[0].length - 1",
"result[0].length",
"result[0]",
"result",
"0",
"result[0].length",
"1",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.print(\"\\n\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"\\n\"",
"BigInteger[][] result",
"result",
"public class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int a = input.nextInt(); // Rows of the 1st matrix\n int b = input.nextInt(); // Columns of 1st Matrix and Rows of 2 Matrix\n int c = input.nextInt(); // Columns of 2nd matrix\n\n BigInteger[][] A = new BigInteger[a][b];\n BigInteger[][] B = new BigInteger[b][c];\n\n // Build matrix A\n for(int row = 0; row < a; row++){\n for(int col = 0; col < b; col++){\n A[row][col] = BigInteger.valueOf(input.nextInt());\n }\n }\n\n // Build martix B\n for(int row = 0; row < b; row++){\n for(int col = 0; col < c; col++){\n B[row][col] = BigInteger.valueOf(input.nextInt());\n }\n }\n\n // Multiple out\n BigInteger[][] result = new BigInteger[a][c];\n\n for(int row = 0; row < a; row++){\n for(int col = 0; col < c; col++){\n BigInteger temp = sum(A[row], B, col);\n result[row][col] = temp;\n }\n }\n showSheet(result); // Display the result\n }\n\n // Helper function that computes the value of a cell in the result matrix\n // Takes an (a x 1) vector that is a row of A and then the entire B matrix, and a colIndex that indicates where to index B\n private static BigInteger sum(BigInteger[] row, BigInteger[][] matrix, int colIndex){\n BigInteger total = BigInteger.ZERO;\n for(int i = 0; i < row.length; i++){\n total = total.add(row[i].multiply(matrix[i][colIndex]));\n }\n return total;\n }\n\n // Helper function that displays a 2D int array\n private static void showSheet(BigInteger[][] result){\n for(int i = 0; i < result.length; i++){\n for(int j = 0; j < result[0].length; j++){\n System.out.print(result[i][j]);\n if( j < result[0].length - 1) System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int a = input.nextInt(); // Rows of the 1st matrix\n int b = input.nextInt(); // Columns of 1st Matrix and Rows of 2 Matrix\n int c = input.nextInt(); // Columns of 2nd matrix\n\n BigInteger[][] A = new BigInteger[a][b];\n BigInteger[][] B = new BigInteger[b][c];\n\n // Build matrix A\n for(int row = 0; row < a; row++){\n for(int col = 0; col < b; col++){\n A[row][col] = BigInteger.valueOf(input.nextInt());\n }\n }\n\n // Build martix B\n for(int row = 0; row < b; row++){\n for(int col = 0; col < c; col++){\n B[row][col] = BigInteger.valueOf(input.nextInt());\n }\n }\n\n // Multiple out\n BigInteger[][] result = new BigInteger[a][c];\n\n for(int row = 0; row < a; row++){\n for(int col = 0; col < c; col++){\n BigInteger temp = sum(A[row], B, col);\n result[row][col] = temp;\n }\n }\n showSheet(result); // Display the result\n }\n\n // Helper function that computes the value of a cell in the result matrix\n // Takes an (a x 1) vector that is a row of A and then the entire B matrix, and a colIndex that indicates where to index B\n private static BigInteger sum(BigInteger[] row, BigInteger[][] matrix, int colIndex){\n BigInteger total = BigInteger.ZERO;\n for(int i = 0; i < row.length; i++){\n total = total.add(row[i].multiply(matrix[i][colIndex]));\n }\n return total;\n }\n\n // Helper function that displays a 2D int array\n private static void showSheet(BigInteger[][] result){\n for(int i = 0; i < result.length; i++){\n for(int j = 0; j < result[0].length; j++){\n System.out.print(result[i][j]);\n if( j < result[0].length - 1) System.out.print(\" \");\n }\n System.out.print(\"\\n\");\n }\n }\n}",
"Main"
] | import java.util.Scanner;
import java.math.BigInteger;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int a = input.nextInt(); // Rows of the 1st matrix
int b = input.nextInt(); // Columns of 1st Matrix and Rows of 2 Matrix
int c = input.nextInt(); // Columns of 2nd matrix
BigInteger[][] A = new BigInteger[a][b];
BigInteger[][] B = new BigInteger[b][c];
// Build matrix A
for(int row = 0; row < a; row++){
for(int col = 0; col < b; col++){
A[row][col] = BigInteger.valueOf(input.nextInt());
}
}
// Build martix B
for(int row = 0; row < b; row++){
for(int col = 0; col < c; col++){
B[row][col] = BigInteger.valueOf(input.nextInt());
}
}
// Multiple out
BigInteger[][] result = new BigInteger[a][c];
for(int row = 0; row < a; row++){
for(int col = 0; col < c; col++){
BigInteger temp = sum(A[row], B, col);
result[row][col] = temp;
}
}
showSheet(result); // Display the result
}
// Helper function that computes the value of a cell in the result matrix
// Takes an (a x 1) vector that is a row of A and then the entire B matrix, and a colIndex that indicates where to index B
private static BigInteger sum(BigInteger[] row, BigInteger[][] matrix, int colIndex){
BigInteger total = BigInteger.ZERO;
for(int i = 0; i < row.length; i++){
total = total.add(row[i].multiply(matrix[i][colIndex]));
}
return total;
}
// Helper function that displays a 2D int array
private static void showSheet(BigInteger[][] result){
for(int i = 0; i < result.length; i++){
for(int j = 0; j < result[0].length; j++){
System.out.print(result[i][j]);
if( j < result[0].length - 1) System.out.print(" ");
}
System.out.print("\n");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
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,
4,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
194,
5
],
[
194,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
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
],
[
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
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
98,
104
],
[
104,
105
],
[
105,
106
],
[
8,
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
],
[
133,
135
],
[
132,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
141,
142
],
[
141,
143
],
[
136,
144
],
[
144,
145
],
[
145,
146
],
[
136,
147
],
[
148,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
151,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
132,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
132,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
171,
173
],
[
168,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
175,
180
],
[
168,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
182,
187
],
[
8,
188
],
[
188,
189
],
[
189,
190
],
[
6,
191
],
[
191,
192
],
[
0,
193
],
[
193,
194
],
[
193,
195
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\t 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 int l=sc.nextInt();\n\t\t \n\t\t long A[][]=new long[n][m];\n\t\t long B[][]=new long[m][l];\n\t\t \n\t\t for(int i=0;i<n;i++) {\n\t\t\t for(int j=0;j<m;j++) {\n\t\t\t\t A[i][j]=sc.nextLong();\n\t\t\t }\n\t\t }\n\t\t for(int i=0;i<m;i++) {\n\t\t\t for(int j=0;j<l;j++) {\n\t\t\t\t B[i][j]=sc.nextLong();\n\t\t\t }\n\t\t }\n\t\t \n\t\t for(int i=0;i<n;i++) {\n\t\t\t for(int j=0;j<l;j++) {\n\t\t\t\t long ass=0;\n\t\t\t\t for(int k=0;k<m;k++) {\n\t\t\t\t\t ass +=A[i][k]*B[k][j];\n\t\t\t\t }\n\t\t\t\t System.out.print(ass);\n\t\t\t\t if(j !=l-1) {\n\t\t\t\t\t System.out.print(\" \");\n\t\t\t\t }\telse {\n\t\t\t\t\t System.out.println(\"\");\n\t\t\t\t }\n\t\t\t\t \n\t\t\t }\n\t\t }\n\t\t \n\t\t sc.close();\n\t }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\t 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 int l=sc.nextInt();\n\t\t \n\t\t long A[][]=new long[n][m];\n\t\t long B[][]=new long[m][l];\n\t\t \n\t\t for(int i=0;i<n;i++) {\n\t\t\t for(int j=0;j<m;j++) {\n\t\t\t\t A[i][j]=sc.nextLong();\n\t\t\t }\n\t\t }\n\t\t for(int i=0;i<m;i++) {\n\t\t\t for(int j=0;j<l;j++) {\n\t\t\t\t B[i][j]=sc.nextLong();\n\t\t\t }\n\t\t }\n\t\t \n\t\t for(int i=0;i<n;i++) {\n\t\t\t for(int j=0;j<l;j++) {\n\t\t\t\t long ass=0;\n\t\t\t\t for(int k=0;k<m;k++) {\n\t\t\t\t\t ass +=A[i][k]*B[k][j];\n\t\t\t\t }\n\t\t\t\t System.out.print(ass);\n\t\t\t\t if(j !=l-1) {\n\t\t\t\t\t System.out.print(\" \");\n\t\t\t\t }\telse {\n\t\t\t\t\t System.out.println(\"\");\n\t\t\t\t }\n\t\t\t\t \n\t\t\t }\n\t\t }\n\t\t \n\t\t sc.close();\n\t }\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 int l=sc.nextInt();\n\t\t \n\t\t long A[][]=new long[n][m];\n\t\t long B[][]=new long[m][l];\n\t\t \n\t\t for(int i=0;i<n;i++) {\n\t\t\t for(int j=0;j<m;j++) {\n\t\t\t\t A[i][j]=sc.nextLong();\n\t\t\t }\n\t\t }\n\t\t for(int i=0;i<m;i++) {\n\t\t\t for(int j=0;j<l;j++) {\n\t\t\t\t B[i][j]=sc.nextLong();\n\t\t\t }\n\t\t }\n\t\t \n\t\t for(int i=0;i<n;i++) {\n\t\t\t for(int j=0;j<l;j++) {\n\t\t\t\t long ass=0;\n\t\t\t\t for(int k=0;k<m;k++) {\n\t\t\t\t\t ass +=A[i][k]*B[k][j];\n\t\t\t\t }\n\t\t\t\t System.out.print(ass);\n\t\t\t\t if(j !=l-1) {\n\t\t\t\t\t System.out.print(\" \");\n\t\t\t\t }\telse {\n\t\t\t\t\t System.out.println(\"\");\n\t\t\t\t }\n\t\t\t\t \n\t\t\t }\n\t\t }\n\t\t \n\t\t sc.close();\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 int l=sc.nextInt();\n\t\t \n\t\t long A[][]=new long[n][m];\n\t\t long B[][]=new long[m][l];\n\t\t \n\t\t for(int i=0;i<n;i++) {\n\t\t\t for(int j=0;j<m;j++) {\n\t\t\t\t A[i][j]=sc.nextLong();\n\t\t\t }\n\t\t }\n\t\t for(int i=0;i<m;i++) {\n\t\t\t for(int j=0;j<l;j++) {\n\t\t\t\t B[i][j]=sc.nextLong();\n\t\t\t }\n\t\t }\n\t\t \n\t\t for(int i=0;i<n;i++) {\n\t\t\t for(int j=0;j<l;j++) {\n\t\t\t\t long ass=0;\n\t\t\t\t for(int k=0;k<m;k++) {\n\t\t\t\t\t ass +=A[i][k]*B[k][j];\n\t\t\t\t }\n\t\t\t\t System.out.print(ass);\n\t\t\t\t if(j !=l-1) {\n\t\t\t\t\t System.out.print(\" \");\n\t\t\t\t }\telse {\n\t\t\t\t\t System.out.println(\"\");\n\t\t\t\t }\n\t\t\t\t \n\t\t\t }\n\t\t }\n\t\t \n\t\t sc.close();\n\t }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m=sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int l=sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long A[][]=new long[n][m];",
"A",
"new long[n][m]",
"n",
"m",
"long B[][]=new long[m][l];",
"B",
"new long[m][l]",
"m",
"l",
"for(int i=0;i<n;i++) {\n\t\t\t for(int j=0;j<m;j++) {\n\t\t\t\t A[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\t for(int j=0;j<m;j++) {\n\t\t\t\t A[i][j]=sc.nextLong();\n\t\t\t }\n\t\t }",
"{\n\t\t\t for(int j=0;j<m;j++) {\n\t\t\t\t A[i][j]=sc.nextLong();\n\t\t\t }\n\t\t }",
"for(int j=0;j<m;j++) {\n\t\t\t\t A[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\t A[i][j]=sc.nextLong();\n\t\t\t }",
"{\n\t\t\t\t A[i][j]=sc.nextLong();\n\t\t\t }",
"A[i][j]=sc.nextLong()",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"sc.nextLong()",
"sc.nextLong",
"sc",
"for(int i=0;i<m;i++) {\n\t\t\t for(int j=0;j<l;j++) {\n\t\t\t\t B[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\t for(int j=0;j<l;j++) {\n\t\t\t\t B[i][j]=sc.nextLong();\n\t\t\t }\n\t\t }",
"{\n\t\t\t for(int j=0;j<l;j++) {\n\t\t\t\t B[i][j]=sc.nextLong();\n\t\t\t }\n\t\t }",
"for(int j=0;j<l;j++) {\n\t\t\t\t B[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\t B[i][j]=sc.nextLong();\n\t\t\t }",
"{\n\t\t\t\t B[i][j]=sc.nextLong();\n\t\t\t }",
"B[i][j]=sc.nextLong()",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"sc.nextLong()",
"sc.nextLong",
"sc",
"for(int i=0;i<n;i++) {\n\t\t\t for(int j=0;j<l;j++) {\n\t\t\t\t long ass=0;\n\t\t\t\t for(int k=0;k<m;k++) {\n\t\t\t\t\t ass +=A[i][k]*B[k][j];\n\t\t\t\t }\n\t\t\t\t System.out.print(ass);\n\t\t\t\t if(j !=l-1) {\n\t\t\t\t\t System.out.print(\" \");\n\t\t\t\t }\telse {\n\t\t\t\t\t System.out.println(\"\");\n\t\t\t\t }\n\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\t for(int j=0;j<l;j++) {\n\t\t\t\t long ass=0;\n\t\t\t\t for(int k=0;k<m;k++) {\n\t\t\t\t\t ass +=A[i][k]*B[k][j];\n\t\t\t\t }\n\t\t\t\t System.out.print(ass);\n\t\t\t\t if(j !=l-1) {\n\t\t\t\t\t System.out.print(\" \");\n\t\t\t\t }\telse {\n\t\t\t\t\t System.out.println(\"\");\n\t\t\t\t }\n\t\t\t\t \n\t\t\t }\n\t\t }",
"{\n\t\t\t for(int j=0;j<l;j++) {\n\t\t\t\t long ass=0;\n\t\t\t\t for(int k=0;k<m;k++) {\n\t\t\t\t\t ass +=A[i][k]*B[k][j];\n\t\t\t\t }\n\t\t\t\t System.out.print(ass);\n\t\t\t\t if(j !=l-1) {\n\t\t\t\t\t System.out.print(\" \");\n\t\t\t\t }\telse {\n\t\t\t\t\t System.out.println(\"\");\n\t\t\t\t }\n\t\t\t\t \n\t\t\t }\n\t\t }",
"for(int j=0;j<l;j++) {\n\t\t\t\t long ass=0;\n\t\t\t\t for(int k=0;k<m;k++) {\n\t\t\t\t\t ass +=A[i][k]*B[k][j];\n\t\t\t\t }\n\t\t\t\t System.out.print(ass);\n\t\t\t\t if(j !=l-1) {\n\t\t\t\t\t System.out.print(\" \");\n\t\t\t\t }\telse {\n\t\t\t\t\t System.out.println(\"\");\n\t\t\t\t }\n\t\t\t\t \n\t\t\t }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\t long ass=0;\n\t\t\t\t for(int k=0;k<m;k++) {\n\t\t\t\t\t ass +=A[i][k]*B[k][j];\n\t\t\t\t }\n\t\t\t\t System.out.print(ass);\n\t\t\t\t if(j !=l-1) {\n\t\t\t\t\t System.out.print(\" \");\n\t\t\t\t }\telse {\n\t\t\t\t\t System.out.println(\"\");\n\t\t\t\t }\n\t\t\t\t \n\t\t\t }",
"{\n\t\t\t\t long ass=0;\n\t\t\t\t for(int k=0;k<m;k++) {\n\t\t\t\t\t ass +=A[i][k]*B[k][j];\n\t\t\t\t }\n\t\t\t\t System.out.print(ass);\n\t\t\t\t if(j !=l-1) {\n\t\t\t\t\t System.out.print(\" \");\n\t\t\t\t }\telse {\n\t\t\t\t\t System.out.println(\"\");\n\t\t\t\t }\n\t\t\t\t \n\t\t\t }",
"long ass=0;",
"ass",
"0",
"for(int k=0;k<m;k++) {\n\t\t\t\t\t ass +=A[i][k]*B[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\t ass +=A[i][k]*B[k][j];\n\t\t\t\t }",
"{\n\t\t\t\t\t ass +=A[i][k]*B[k][j];\n\t\t\t\t }",
"ass +=A[i][k]*B[k][j]",
"ass",
"A[i][k]*B[k][j]",
"A[i][k]",
"A[i]",
"A",
"i",
"k",
"B[k][j]",
"B[k]",
"B",
"k",
"j",
"System.out.print(ass)",
"System.out.print",
"System.out",
"System",
"System.out",
"ass",
"if(j !=l-1) {\n\t\t\t\t\t System.out.print(\" \");\n\t\t\t\t }\telse {\n\t\t\t\t\t System.out.println(\"\");\n\t\t\t\t }",
"j !=l-1",
"j",
"l-1",
"l",
"1",
"{\n\t\t\t\t\t System.out.print(\" \");\n\t\t\t\t }",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"{\n\t\t\t\t\t System.out.println(\"\");\n\t\t\t\t }",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\t 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 int l=sc.nextInt();\n\t\t \n\t\t long A[][]=new long[n][m];\n\t\t long B[][]=new long[m][l];\n\t\t \n\t\t for(int i=0;i<n;i++) {\n\t\t\t for(int j=0;j<m;j++) {\n\t\t\t\t A[i][j]=sc.nextLong();\n\t\t\t }\n\t\t }\n\t\t for(int i=0;i<m;i++) {\n\t\t\t for(int j=0;j<l;j++) {\n\t\t\t\t B[i][j]=sc.nextLong();\n\t\t\t }\n\t\t }\n\t\t \n\t\t for(int i=0;i<n;i++) {\n\t\t\t for(int j=0;j<l;j++) {\n\t\t\t\t long ass=0;\n\t\t\t\t for(int k=0;k<m;k++) {\n\t\t\t\t\t ass +=A[i][k]*B[k][j];\n\t\t\t\t }\n\t\t\t\t System.out.print(ass);\n\t\t\t\t if(j !=l-1) {\n\t\t\t\t\t System.out.print(\" \");\n\t\t\t\t }\telse {\n\t\t\t\t\t System.out.println(\"\");\n\t\t\t\t }\n\t\t\t\t \n\t\t\t }\n\t\t }\n\t\t \n\t\t sc.close();\n\t }\n}",
"public class Main {\n\t 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 int l=sc.nextInt();\n\t\t \n\t\t long A[][]=new long[n][m];\n\t\t long B[][]=new long[m][l];\n\t\t \n\t\t for(int i=0;i<n;i++) {\n\t\t\t for(int j=0;j<m;j++) {\n\t\t\t\t A[i][j]=sc.nextLong();\n\t\t\t }\n\t\t }\n\t\t for(int i=0;i<m;i++) {\n\t\t\t for(int j=0;j<l;j++) {\n\t\t\t\t B[i][j]=sc.nextLong();\n\t\t\t }\n\t\t }\n\t\t \n\t\t for(int i=0;i<n;i++) {\n\t\t\t for(int j=0;j<l;j++) {\n\t\t\t\t long ass=0;\n\t\t\t\t for(int k=0;k<m;k++) {\n\t\t\t\t\t ass +=A[i][k]*B[k][j];\n\t\t\t\t }\n\t\t\t\t System.out.print(ass);\n\t\t\t\t if(j !=l-1) {\n\t\t\t\t\t System.out.print(\" \");\n\t\t\t\t }\telse {\n\t\t\t\t\t System.out.println(\"\");\n\t\t\t\t }\n\t\t\t\t \n\t\t\t }\n\t\t }\n\t\t \n\t\t sc.close();\n\t }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n=sc.nextInt();
int m=sc.nextInt();
int l=sc.nextInt();
long A[][]=new long[n][m];
long B[][]=new long[m][l];
for(int i=0;i<n;i++) {
for(int j=0;j<m;j++) {
A[i][j]=sc.nextLong();
}
}
for(int i=0;i<m;i++) {
for(int j=0;j<l;j++) {
B[i][j]=sc.nextLong();
}
}
for(int i=0;i<n;i++) {
for(int j=0;j<l;j++) {
long ass=0;
for(int k=0;k<m;k++) {
ass +=A[i][k]*B[k][j];
}
System.out.print(ass);
if(j !=l-1) {
System.out.print(" ");
} else {
System.out.println("");
}
}
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
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,
4,
18,
18,
13,
13,
18,
18,
13,
13,
2,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
232,
5
],
[
232,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
38
],
[
38,
39
],
[
38,
40
],
[
8,
43
],
[
43,
44
],
[
43,
45
],
[
8,
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
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
61,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
74,
80
],
[
80,
81
],
[
81,
82
],
[
8,
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
],
[
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
],
[
110,
114
],
[
109,
115
],
[
115,
116
],
[
116,
117
],
[
8,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
118,
126
],
[
126,
127
],
[
127,
128
],
[
118,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
136,
137
],
[
136,
138
],
[
131,
139
],
[
139,
140
],
[
140,
141
],
[
131,
142
],
[
143,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
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
],
[
158,
162
],
[
157,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
163,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
8,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
174,
179
],
[
179,
180
],
[
179,
181
],
[
174,
182
],
[
182,
183
],
[
183,
184
],
[
174,
185
],
[
186,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
187,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
194,
196
],
[
187,
197
],
[
197,
198
],
[
198,
199
],
[
187,
200
],
[
201,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
202,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
212
],
[
207,
213
],
[
186,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
214,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
219,
223
],
[
223,
224
],
[
223,
225
],
[
8,
226
],
[
226,
227
],
[
227,
228
],
[
6,
229
],
[
229,
230
],
[
0,
231
],
[
231,
232
],
[
231,
233
]
] | [
"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 n, m, l;\n\n n = scanner.nextInt();\n m = scanner.nextInt();\n l = scanner.nextInt();\n\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n long[][] c = new long[n][l];\n\n //create A matrix\n for(int arow = 0; arow < n; arow++){\n for(int acol = 0; acol < m; acol++){\n a[arow][acol] = scanner.nextInt();\n }\n }\n\n //create B matrix\n for(int brow = 0; brow < m; brow++){\n for(int bcol = 0; bcol < l; bcol++){\n b[brow][bcol] = scanner.nextInt();\n }\n }\n\n for(int ccol = 0; ccol < l; ccol++){\n for(int arow = 0; arow < n; arow++){\n\n for(int acol = 0; acol < m; acol++){\n c[arow][ccol] += (long)a[arow][acol] * (long)b[acol][ccol];\n }\n }\n }\n\n\n for(int row = 0; row < n; row++){\n for(int col = 0; col < l-1; col++){\n System.out.print(c[row][col] + \" \");\n }\n System.out.println(c[row][l-1]);\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 n, m, l;\n\n n = scanner.nextInt();\n m = scanner.nextInt();\n l = scanner.nextInt();\n\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n long[][] c = new long[n][l];\n\n //create A matrix\n for(int arow = 0; arow < n; arow++){\n for(int acol = 0; acol < m; acol++){\n a[arow][acol] = scanner.nextInt();\n }\n }\n\n //create B matrix\n for(int brow = 0; brow < m; brow++){\n for(int bcol = 0; bcol < l; bcol++){\n b[brow][bcol] = scanner.nextInt();\n }\n }\n\n for(int ccol = 0; ccol < l; ccol++){\n for(int arow = 0; arow < n; arow++){\n\n for(int acol = 0; acol < m; acol++){\n c[arow][ccol] += (long)a[arow][acol] * (long)b[acol][ccol];\n }\n }\n }\n\n\n for(int row = 0; row < n; row++){\n for(int col = 0; col < l-1; col++){\n System.out.print(c[row][col] + \" \");\n }\n System.out.println(c[row][l-1]);\n }\n\n scanner.close();\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n int n, m, l;\n\n n = scanner.nextInt();\n m = scanner.nextInt();\n l = scanner.nextInt();\n\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n long[][] c = new long[n][l];\n\n //create A matrix\n for(int arow = 0; arow < n; arow++){\n for(int acol = 0; acol < m; acol++){\n a[arow][acol] = scanner.nextInt();\n }\n }\n\n //create B matrix\n for(int brow = 0; brow < m; brow++){\n for(int bcol = 0; bcol < l; bcol++){\n b[brow][bcol] = scanner.nextInt();\n }\n }\n\n for(int ccol = 0; ccol < l; ccol++){\n for(int arow = 0; arow < n; arow++){\n\n for(int acol = 0; acol < m; acol++){\n c[arow][ccol] += (long)a[arow][acol] * (long)b[acol][ccol];\n }\n }\n }\n\n\n for(int row = 0; row < n; row++){\n for(int col = 0; col < l-1; col++){\n System.out.print(c[row][col] + \" \");\n }\n System.out.println(c[row][l-1]);\n }\n\n scanner.close();\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n\n int n, m, l;\n\n n = scanner.nextInt();\n m = scanner.nextInt();\n l = scanner.nextInt();\n\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n long[][] c = new long[n][l];\n\n //create A matrix\n for(int arow = 0; arow < n; arow++){\n for(int acol = 0; acol < m; acol++){\n a[arow][acol] = scanner.nextInt();\n }\n }\n\n //create B matrix\n for(int brow = 0; brow < m; brow++){\n for(int bcol = 0; bcol < l; bcol++){\n b[brow][bcol] = scanner.nextInt();\n }\n }\n\n for(int ccol = 0; ccol < l; ccol++){\n for(int arow = 0; arow < n; arow++){\n\n for(int acol = 0; acol < m; acol++){\n c[arow][ccol] += (long)a[arow][acol] * (long)b[acol][ccol];\n }\n }\n }\n\n\n for(int row = 0; row < n; row++){\n for(int col = 0; col < l-1; col++){\n System.out.print(c[row][col] + \" \");\n }\n System.out.println(c[row][l-1]);\n }\n\n scanner.close();\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n",
"n",
"m",
"m",
"l;",
"l",
"n = scanner.nextInt()",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"m = scanner.nextInt()",
"m",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"l = scanner.nextInt()",
"l",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int[][] a = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[][] b = new int[m][l];",
"b",
"new int[m][l]",
"m",
"l",
"long[][] c = new long[n][l];",
"c",
"new long[n][l]",
"n",
"l",
"for(int arow = 0; arow < n; arow++){\n for(int acol = 0; acol < m; acol++){\n a[arow][acol] = scanner.nextInt();\n }\n }",
"int arow = 0;",
"int arow = 0;",
"arow",
"0",
"arow < n",
"arow",
"n",
"arow++",
"arow++",
"arow",
"{\n for(int acol = 0; acol < m; acol++){\n a[arow][acol] = scanner.nextInt();\n }\n }",
"{\n for(int acol = 0; acol < m; acol++){\n a[arow][acol] = scanner.nextInt();\n }\n }",
"for(int acol = 0; acol < m; acol++){\n a[arow][acol] = scanner.nextInt();\n }",
"int acol = 0;",
"int acol = 0;",
"acol",
"0",
"acol < m",
"acol",
"m",
"acol++",
"acol++",
"acol",
"{\n a[arow][acol] = scanner.nextInt();\n }",
"{\n a[arow][acol] = scanner.nextInt();\n }",
"a[arow][acol] = scanner.nextInt()",
"a[arow][acol]",
"a[arow]",
"a",
"arow",
"acol",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for(int brow = 0; brow < m; brow++){\n for(int bcol = 0; bcol < l; bcol++){\n b[brow][bcol] = scanner.nextInt();\n }\n }",
"int brow = 0;",
"int brow = 0;",
"brow",
"0",
"brow < m",
"brow",
"m",
"brow++",
"brow++",
"brow",
"{\n for(int bcol = 0; bcol < l; bcol++){\n b[brow][bcol] = scanner.nextInt();\n }\n }",
"{\n for(int bcol = 0; bcol < l; bcol++){\n b[brow][bcol] = scanner.nextInt();\n }\n }",
"for(int bcol = 0; bcol < l; bcol++){\n b[brow][bcol] = scanner.nextInt();\n }",
"int bcol = 0;",
"int bcol = 0;",
"bcol",
"0",
"bcol < l",
"bcol",
"l",
"bcol++",
"bcol++",
"bcol",
"{\n b[brow][bcol] = scanner.nextInt();\n }",
"{\n b[brow][bcol] = scanner.nextInt();\n }",
"b[brow][bcol] = scanner.nextInt()",
"b[brow][bcol]",
"b[brow]",
"b",
"brow",
"bcol",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for(int ccol = 0; ccol < l; ccol++){\n for(int arow = 0; arow < n; arow++){\n\n for(int acol = 0; acol < m; acol++){\n c[arow][ccol] += (long)a[arow][acol] * (long)b[acol][ccol];\n }\n }\n }",
"int ccol = 0;",
"int ccol = 0;",
"ccol",
"0",
"ccol < l",
"ccol",
"l",
"ccol++",
"ccol++",
"ccol",
"{\n for(int arow = 0; arow < n; arow++){\n\n for(int acol = 0; acol < m; acol++){\n c[arow][ccol] += (long)a[arow][acol] * (long)b[acol][ccol];\n }\n }\n }",
"{\n for(int arow = 0; arow < n; arow++){\n\n for(int acol = 0; acol < m; acol++){\n c[arow][ccol] += (long)a[arow][acol] * (long)b[acol][ccol];\n }\n }\n }",
"for(int arow = 0; arow < n; arow++){\n\n for(int acol = 0; acol < m; acol++){\n c[arow][ccol] += (long)a[arow][acol] * (long)b[acol][ccol];\n }\n }",
"int arow = 0;",
"int arow = 0;",
"arow",
"0",
"arow < n",
"arow",
"n",
"arow++",
"arow++",
"arow",
"{\n\n for(int acol = 0; acol < m; acol++){\n c[arow][ccol] += (long)a[arow][acol] * (long)b[acol][ccol];\n }\n }",
"{\n\n for(int acol = 0; acol < m; acol++){\n c[arow][ccol] += (long)a[arow][acol] * (long)b[acol][ccol];\n }\n }",
"for(int acol = 0; acol < m; acol++){\n c[arow][ccol] += (long)a[arow][acol] * (long)b[acol][ccol];\n }",
"int acol = 0;",
"int acol = 0;",
"acol",
"0",
"acol < m",
"acol",
"m",
"acol++",
"acol++",
"acol",
"{\n c[arow][ccol] += (long)a[arow][acol] * (long)b[acol][ccol];\n }",
"{\n c[arow][ccol] += (long)a[arow][acol] * (long)b[acol][ccol];\n }",
"c[arow][ccol] += (long)a[arow][acol] * (long)b[acol][ccol]",
"c[arow][ccol]",
"c[arow]",
"c",
"arow",
"ccol",
"(long)a[arow][acol] * (long)b[acol][ccol]",
"(long)a[arow][acol]",
"a[arow]",
"a",
"arow",
"acol",
"(long)b[acol][ccol]",
"b[acol]",
"b",
"acol",
"ccol",
"for(int row = 0; row < n; row++){\n for(int col = 0; col < l-1; col++){\n System.out.print(c[row][col] + \" \");\n }\n System.out.println(c[row][l-1]);\n }",
"int row = 0;",
"int row = 0;",
"row",
"0",
"row < n",
"row",
"n",
"row++",
"row++",
"row",
"{\n for(int col = 0; col < l-1; col++){\n System.out.print(c[row][col] + \" \");\n }\n System.out.println(c[row][l-1]);\n }",
"{\n for(int col = 0; col < l-1; col++){\n System.out.print(c[row][col] + \" \");\n }\n System.out.println(c[row][l-1]);\n }",
"for(int col = 0; col < l-1; col++){\n System.out.print(c[row][col] + \" \");\n }",
"int col = 0;",
"int col = 0;",
"col",
"0",
"col < l-1",
"col",
"l-1",
"l",
"1",
"col++",
"col++",
"col",
"{\n System.out.print(c[row][col] + \" \");\n }",
"{\n System.out.print(c[row][col] + \" \");\n }",
"System.out.print(c[row][col] + \" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"c[row][col] + \" \"",
"c[row][col]",
"c[row]",
"c",
"row",
"col",
"\" \"",
"System.out.println(c[row][l-1])",
"System.out.println",
"System.out",
"System",
"System.out",
"c[row][l-1]",
"c[row]",
"c",
"row",
"l-1",
"l",
"1",
"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 n, m, l;\n\n n = scanner.nextInt();\n m = scanner.nextInt();\n l = scanner.nextInt();\n\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n long[][] c = new long[n][l];\n\n //create A matrix\n for(int arow = 0; arow < n; arow++){\n for(int acol = 0; acol < m; acol++){\n a[arow][acol] = scanner.nextInt();\n }\n }\n\n //create B matrix\n for(int brow = 0; brow < m; brow++){\n for(int bcol = 0; bcol < l; bcol++){\n b[brow][bcol] = scanner.nextInt();\n }\n }\n\n for(int ccol = 0; ccol < l; ccol++){\n for(int arow = 0; arow < n; arow++){\n\n for(int acol = 0; acol < m; acol++){\n c[arow][ccol] += (long)a[arow][acol] * (long)b[acol][ccol];\n }\n }\n }\n\n\n for(int row = 0; row < n; row++){\n for(int col = 0; col < l-1; col++){\n System.out.print(c[row][col] + \" \");\n }\n System.out.println(c[row][l-1]);\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 n, m, l;\n\n n = scanner.nextInt();\n m = scanner.nextInt();\n l = scanner.nextInt();\n\n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n long[][] c = new long[n][l];\n\n //create A matrix\n for(int arow = 0; arow < n; arow++){\n for(int acol = 0; acol < m; acol++){\n a[arow][acol] = scanner.nextInt();\n }\n }\n\n //create B matrix\n for(int brow = 0; brow < m; brow++){\n for(int bcol = 0; bcol < l; bcol++){\n b[brow][bcol] = scanner.nextInt();\n }\n }\n\n for(int ccol = 0; ccol < l; ccol++){\n for(int arow = 0; arow < n; arow++){\n\n for(int acol = 0; acol < m; acol++){\n c[arow][ccol] += (long)a[arow][acol] * (long)b[acol][ccol];\n }\n }\n }\n\n\n for(int row = 0; row < n; row++){\n for(int col = 0; col < l-1; col++){\n System.out.print(c[row][col] + \" \");\n }\n System.out.println(c[row][l-1]);\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 n, m, l;
n = scanner.nextInt();
m = scanner.nextInt();
l = scanner.nextInt();
int[][] a = new int[n][m];
int[][] b = new int[m][l];
long[][] c = new long[n][l];
//create A matrix
for(int arow = 0; arow < n; arow++){
for(int acol = 0; acol < m; acol++){
a[arow][acol] = scanner.nextInt();
}
}
//create B matrix
for(int brow = 0; brow < m; brow++){
for(int bcol = 0; bcol < l; bcol++){
b[brow][bcol] = scanner.nextInt();
}
}
for(int ccol = 0; ccol < l; ccol++){
for(int arow = 0; arow < n; arow++){
for(int acol = 0; acol < m; acol++){
c[arow][ccol] += (long)a[arow][acol] * (long)b[acol][ccol];
}
}
}
for(int row = 0; row < n; row++){
for(int col = 0; col < l-1; col++){
System.out.print(c[row][col] + " ");
}
System.out.println(c[row][l-1]);
}
scanner.close();
}
}
|
[
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,
4,
18,
13,
18,
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,
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,
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,
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,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
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,
4,
18,
18,
13,
13,
18,
18,
13,
13,
2,
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
],
[
268,
11
],
[
268,
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
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
47,
49
],
[
14,
50
],
[
50,
51
],
[
50,
52
],
[
14,
55
],
[
55,
56
],
[
55,
57
],
[
14,
60
],
[
60,
61
],
[
60,
62
],
[
14,
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
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
80,
85
],
[
77,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
86,
94
],
[
94,
95
],
[
95,
96
],
[
86,
97
],
[
98,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
99,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
108,
109
],
[
108,
110
],
[
14,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
111,
119
],
[
119,
120
],
[
120,
121
],
[
111,
122
],
[
123,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
126,
131
],
[
123,
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
],
[
146,
150
],
[
145,
151
],
[
151,
152
],
[
152,
153
],
[
151,
154
],
[
154,
155
],
[
154,
156
],
[
14,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
157,
162
],
[
162,
163
],
[
162,
164
],
[
157,
165
],
[
165,
166
],
[
166,
167
],
[
157,
168
],
[
169,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
170,
175
],
[
175,
176
],
[
175,
177
],
[
170,
178
],
[
178,
179
],
[
179,
180
],
[
170,
181
],
[
182,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
183,
188
],
[
188,
189
],
[
188,
190
],
[
183,
191
],
[
191,
192
],
[
192,
193
],
[
183,
194
],
[
195,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
197,
201
],
[
196,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
203,
207
],
[
202,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
212
],
[
14,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
213,
218
],
[
218,
219
],
[
218,
220
],
[
213,
221
],
[
221,
222
],
[
222,
223
],
[
213,
224
],
[
225,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
226,
231
],
[
231,
232
],
[
231,
233
],
[
233,
234
],
[
233,
235
],
[
226,
236
],
[
236,
237
],
[
237,
238
],
[
226,
239
],
[
240,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
243,
245
],
[
241,
246
],
[
246,
247
],
[
247,
248
],
[
248,
249
],
[
248,
250
],
[
247,
251
],
[
246,
252
],
[
225,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
253,
258
],
[
258,
259
],
[
259,
260
],
[
259,
261
],
[
258,
262
],
[
262,
263
],
[
262,
264
],
[
12,
265
],
[
265,
266
],
[
0,
267
],
[
267,
268
],
[
267,
269
]
] | [
"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\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strs = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(strs[0]);\n\t\tint m = Integer.parseInt(strs[1]);\n\t\tint l = Integer.parseInt(strs[2]);\n\n\t\tint[][] list01 = new int[n][m];\n\t\tint[][] list02 = new int[m][l];\n\t\tlong[][] list03 = new long[n][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tlist01[i][j] += Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlist02[i][j] += Integer.parseInt(str[j]);\n\t\t\t}\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\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tlist03[i][k] += (long) (list01[i][j] * list02[j][k]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < (l - 1); j++) {\n\t\t\t\tSystem.out.print(list03[i][j] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(list03[i][l - 1]);\n\t\t}\n\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strs = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(strs[0]);\n\t\tint m = Integer.parseInt(strs[1]);\n\t\tint l = Integer.parseInt(strs[2]);\n\n\t\tint[][] list01 = new int[n][m];\n\t\tint[][] list02 = new int[m][l];\n\t\tlong[][] list03 = new long[n][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tlist01[i][j] += Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlist02[i][j] += Integer.parseInt(str[j]);\n\t\t\t}\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\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tlist03[i][k] += (long) (list01[i][j] * list02[j][k]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < (l - 1); j++) {\n\t\t\t\tSystem.out.print(list03[i][j] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(list03[i][l - 1]);\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strs = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(strs[0]);\n\t\tint m = Integer.parseInt(strs[1]);\n\t\tint l = Integer.parseInt(strs[2]);\n\n\t\tint[][] list01 = new int[n][m];\n\t\tint[][] list02 = new int[m][l];\n\t\tlong[][] list03 = new long[n][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tlist01[i][j] += Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlist02[i][j] += Integer.parseInt(str[j]);\n\t\t\t}\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\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tlist03[i][k] += (long) (list01[i][j] * list02[j][k]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < (l - 1); j++) {\n\t\t\t\tSystem.out.print(list03[i][j] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(list03[i][l - 1]);\n\t\t}\n\n\t}",
"main",
"{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strs = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(strs[0]);\n\t\tint m = Integer.parseInt(strs[1]);\n\t\tint l = Integer.parseInt(strs[2]);\n\n\t\tint[][] list01 = new int[n][m];\n\t\tint[][] list02 = new int[m][l];\n\t\tlong[][] list03 = new long[n][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tlist01[i][j] += Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlist02[i][j] += Integer.parseInt(str[j]);\n\t\t\t}\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\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tlist03[i][k] += (long) (list01[i][j] * list02[j][k]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < (l - 1); j++) {\n\t\t\t\tSystem.out.print(list03[i][j] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(list03[i][l - 1]);\n\t\t}\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] strs = br.readLine().split(\" \");",
"strs",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int n = Integer.parseInt(strs[0]);",
"n",
"Integer.parseInt(strs[0])",
"Integer.parseInt",
"Integer",
"strs[0]",
"strs",
"0",
"int m = Integer.parseInt(strs[1]);",
"m",
"Integer.parseInt(strs[1])",
"Integer.parseInt",
"Integer",
"strs[1]",
"strs",
"1",
"int l = Integer.parseInt(strs[2]);",
"l",
"Integer.parseInt(strs[2])",
"Integer.parseInt",
"Integer",
"strs[2]",
"strs",
"2",
"int[][] list01 = new int[n][m];",
"list01",
"new int[n][m]",
"n",
"m",
"int[][] list02 = new int[m][l];",
"list02",
"new int[m][l]",
"m",
"l",
"long[][] list03 = new long[n][l];",
"list03",
"new long[n][l]",
"n",
"l",
"for (int i = 0; i < n; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tlist01[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[] str = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tlist01[i][j] += Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tlist01[i][j] += Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}",
"String[] str = br.readLine().split(\" \");",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for (int j = 0; j < m; j++) {\n\t\t\t\tlist01[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\tlist01[i][j] += Integer.parseInt(str[j]);\n\t\t\t}",
"{\n\t\t\t\tlist01[i][j] += Integer.parseInt(str[j]);\n\t\t\t}",
"list01[i][j] += Integer.parseInt(str[j])",
"list01[i][j]",
"list01[i]",
"list01",
"i",
"j",
"Integer.parseInt(str[j])",
"Integer.parseInt",
"Integer",
"str[j]",
"str",
"j",
"for (int i = 0; i < m; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlist02[i][j] += Integer.parseInt(str[j]);\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\tString[] str = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlist02[i][j] += Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlist02[i][j] += Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}",
"String[] str = br.readLine().split(\" \");",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for (int j = 0; j < l; j++) {\n\t\t\t\tlist02[i][j] += Integer.parseInt(str[j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tlist02[i][j] += Integer.parseInt(str[j]);\n\t\t\t}",
"{\n\t\t\t\tlist02[i][j] += Integer.parseInt(str[j]);\n\t\t\t}",
"list02[i][j] += Integer.parseInt(str[j])",
"list02[i][j]",
"list02[i]",
"list02",
"i",
"j",
"Integer.parseInt(str[j])",
"Integer.parseInt",
"Integer",
"str[j]",
"str",
"j",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tlist03[i][k] += (long) (list01[i][j] * list02[j][k]);\n\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\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tlist03[i][k] += (long) (list01[i][j] * list02[j][k]);\n\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\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tlist03[i][k] += (long) (list01[i][j] * list02[j][k]);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int j = 0; j < m; j++) {\n\t\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tlist03[i][k] += (long) (list01[i][j] * list02[j][k]);\n\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\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tlist03[i][k] += (long) (list01[i][j] * list02[j][k]);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tlist03[i][k] += (long) (list01[i][j] * list02[j][k]);\n\t\t\t\t}\n\t\t\t}",
"for (int k = 0; k < l; k++) {\n\t\t\t\t\tlist03[i][k] += (long) (list01[i][j] * list02[j][k]);\n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < l",
"k",
"l",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tlist03[i][k] += (long) (list01[i][j] * list02[j][k]);\n\t\t\t\t}",
"{\n\t\t\t\t\tlist03[i][k] += (long) (list01[i][j] * list02[j][k]);\n\t\t\t\t}",
"list03[i][k] += (long) (list01[i][j] * list02[j][k])",
"list03[i][k]",
"list03[i]",
"list03",
"i",
"k",
"(long) (list01[i][j] * list02[j][k])",
"list01[i][j]",
"list01[i]",
"list01",
"i",
"j",
"list02[j][k]",
"list02[j]",
"list02",
"j",
"k",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < (l - 1); j++) {\n\t\t\t\tSystem.out.print(list03[i][j] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(list03[i][l - 1]);\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 - 1); j++) {\n\t\t\t\tSystem.out.print(list03[i][j] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(list03[i][l - 1]);\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < (l - 1); j++) {\n\t\t\t\tSystem.out.print(list03[i][j] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(list03[i][l - 1]);\n\t\t}",
"for (int j = 0; j < (l - 1); j++) {\n\t\t\t\tSystem.out.print(list03[i][j] + \" \");\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < (l - 1)",
"j",
"(l - 1)",
"l",
"1",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(list03[i][j] + \" \");\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(list03[i][j] + \" \");\n\t\t\t}",
"System.out.print(list03[i][j] + \" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"list03[i][j] + \" \"",
"list03[i][j]",
"list03[i]",
"list03",
"i",
"j",
"\" \"",
"System.out.println(list03[i][l - 1])",
"System.out.println",
"System.out",
"System",
"System.out",
"list03[i][l - 1]",
"list03[i]",
"list03",
"i",
"l - 1",
"l",
"1",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strs = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(strs[0]);\n\t\tint m = Integer.parseInt(strs[1]);\n\t\tint l = Integer.parseInt(strs[2]);\n\n\t\tint[][] list01 = new int[n][m];\n\t\tint[][] list02 = new int[m][l];\n\t\tlong[][] list03 = new long[n][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tlist01[i][j] += Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlist02[i][j] += Integer.parseInt(str[j]);\n\t\t\t}\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\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tlist03[i][k] += (long) (list01[i][j] * list02[j][k]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < (l - 1); j++) {\n\t\t\t\tSystem.out.print(list03[i][j] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(list03[i][l - 1]);\n\t\t}\n\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strs = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(strs[0]);\n\t\tint m = Integer.parseInt(strs[1]);\n\t\tint l = Integer.parseInt(strs[2]);\n\n\t\tint[][] list01 = new int[n][m];\n\t\tint[][] list02 = new int[m][l];\n\t\tlong[][] list03 = new long[n][l];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tlist01[i][j] += Integer.parseInt(str[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlist02[i][j] += Integer.parseInt(str[j]);\n\t\t\t}\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\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tlist03[i][k] += (long) (list01[i][j] * list02[j][k]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < (l - 1); j++) {\n\t\t\t\tSystem.out.print(list03[i][j] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(list03[i][l - 1]);\n\t\t}\n\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] strs = br.readLine().split(" ");
int n = Integer.parseInt(strs[0]);
int m = Integer.parseInt(strs[1]);
int l = Integer.parseInt(strs[2]);
int[][] list01 = new int[n][m];
int[][] list02 = new int[m][l];
long[][] list03 = new long[n][l];
for (int i = 0; i < n; i++) {
String[] str = br.readLine().split(" ");
for (int j = 0; j < m; j++) {
list01[i][j] += Integer.parseInt(str[j]);
}
}
for (int i = 0; i < m; i++) {
String[] str = br.readLine().split(" ");
for (int j = 0; j < l; j++) {
list02[i][j] += Integer.parseInt(str[j]);
}
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
for (int k = 0; k < l; k++) {
list03[i][k] += (long) (list01[i][j] * list02[j][k]);
}
}
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < (l - 1); j++) {
System.out.print(list03[i][j] + " ");
}
System.out.println(list03[i][l - 1]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
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,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
194,
5
],
[
194,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
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
],
[
33,
35
],
[
8,
38
],
[
38,
39
],
[
38,
40
],
[
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
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
91,
99
],
[
99,
100
],
[
100,
101
],
[
91,
102
],
[
103,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
104,
110
],
[
110,
111
],
[
111,
112
],
[
8,
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
],
[
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
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
159,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
138,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
173,
175
],
[
170,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
182,
183
],
[
182,
184
],
[
170,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
185,
190
],
[
6,
191
],
[
191,
192
],
[
0,
193
],
[
193,
194
],
[
193,
195
]
] | [
"\n\nimport java.util.Scanner;\npublic class Main \n{ \n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in); \n int n,m,l;\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n long [] [] A = new long [n][m];\n long [] [] B = new long [m][l];\n for(int i=0; i<n; i++) //input\n {\n for (int j = 0; j<m; j++)\n {\n A[i][j] = sc.nextLong();\n }\n }\n for(int i=0; i<m; i++) //input\n {\n for (int j = 0; j<l; j++)\n {\n B[i][j] = sc.nextLong();\n }\n }\n \n for(int i=0; i<n; i++) //multiplying\n {\n for(int j = 0; j< l; j++)\n {\n long sum = 0;\n for(int k = 0; k< m;k++)\n {\n sum = sum + A[i][k] * B[k][j];\n }\n if(j!=l-1)\n {\n System.out.print(sum + \" \");\n }\n else System.out.println(sum);\n \n }\n }\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main \n{ \n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in); \n int n,m,l;\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n long [] [] A = new long [n][m];\n long [] [] B = new long [m][l];\n for(int i=0; i<n; i++) //input\n {\n for (int j = 0; j<m; j++)\n {\n A[i][j] = sc.nextLong();\n }\n }\n for(int i=0; i<m; i++) //input\n {\n for (int j = 0; j<l; j++)\n {\n B[i][j] = sc.nextLong();\n }\n }\n \n for(int i=0; i<n; i++) //multiplying\n {\n for(int j = 0; j< l; j++)\n {\n long sum = 0;\n for(int k = 0; k< m;k++)\n {\n sum = sum + A[i][k] * B[k][j];\n }\n if(j!=l-1)\n {\n System.out.print(sum + \" \");\n }\n else System.out.println(sum);\n \n }\n }\n }\n}",
"Main",
"public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in); \n int n,m,l;\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n long [] [] A = new long [n][m];\n long [] [] B = new long [m][l];\n for(int i=0; i<n; i++) //input\n {\n for (int j = 0; j<m; j++)\n {\n A[i][j] = sc.nextLong();\n }\n }\n for(int i=0; i<m; i++) //input\n {\n for (int j = 0; j<l; j++)\n {\n B[i][j] = sc.nextLong();\n }\n }\n \n for(int i=0; i<n; i++) //multiplying\n {\n for(int j = 0; j< l; j++)\n {\n long sum = 0;\n for(int k = 0; k< m;k++)\n {\n sum = sum + A[i][k] * B[k][j];\n }\n if(j!=l-1)\n {\n System.out.print(sum + \" \");\n }\n else System.out.println(sum);\n \n }\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in); \n int n,m,l;\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n long [] [] A = new long [n][m];\n long [] [] B = new long [m][l];\n for(int i=0; i<n; i++) //input\n {\n for (int j = 0; j<m; j++)\n {\n A[i][j] = sc.nextLong();\n }\n }\n for(int i=0; i<m; i++) //input\n {\n for (int j = 0; j<l; j++)\n {\n B[i][j] = sc.nextLong();\n }\n }\n \n for(int i=0; i<n; i++) //multiplying\n {\n for(int j = 0; j< l; j++)\n {\n long sum = 0;\n for(int k = 0; k< m;k++)\n {\n sum = sum + A[i][k] * B[k][j];\n }\n if(j!=l-1)\n {\n System.out.print(sum + \" \");\n }\n else System.out.println(sum);\n \n }\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n",
"n",
"m",
"m",
"l;",
"l",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"m = sc.nextInt()",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"l = sc.nextInt()",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long [] [] A = new long [n][m];",
"A",
"new long [n][m]",
"n",
"m",
"long [] [] B = new long [m][l];",
"B",
"new long [m][l]",
"m",
"l",
"for(int i=0; i<n; i++) //input\n {\n for (int j = 0; j<m; j++)\n {\n A[i][j] = sc.nextLong();\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.nextLong();\n }\n }",
"{\n for (int j = 0; j<m; j++)\n {\n A[i][j] = sc.nextLong();\n }\n }",
"for (int j = 0; j<m; j++)\n {\n A[i][j] = sc.nextLong();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n A[i][j] = sc.nextLong();\n }",
"{\n A[i][j] = sc.nextLong();\n }",
"A[i][j] = sc.nextLong()",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"sc.nextLong()",
"sc.nextLong",
"sc",
"for(int i=0; i<m; i++) //input\n {\n for (int j = 0; j<l; j++)\n {\n B[i][j] = sc.nextLong();\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n for (int j = 0; j<l; j++)\n {\n B[i][j] = sc.nextLong();\n }\n }",
"{\n for (int j = 0; j<l; j++)\n {\n B[i][j] = sc.nextLong();\n }\n }",
"for (int j = 0; j<l; j++)\n {\n B[i][j] = sc.nextLong();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n B[i][j] = sc.nextLong();\n }",
"{\n B[i][j] = sc.nextLong();\n }",
"B[i][j] = sc.nextLong()",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"sc.nextLong()",
"sc.nextLong",
"sc",
"for(int i=0; i<n; i++) //multiplying\n {\n for(int j = 0; j< l; j++)\n {\n long sum = 0;\n for(int k = 0; k< m;k++)\n {\n sum = sum + A[i][k] * B[k][j];\n }\n if(j!=l-1)\n {\n System.out.print(sum + \" \");\n }\n else System.out.println(sum);\n \n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j = 0; j< l; j++)\n {\n long sum = 0;\n for(int k = 0; k< m;k++)\n {\n sum = sum + A[i][k] * B[k][j];\n }\n if(j!=l-1)\n {\n System.out.print(sum + \" \");\n }\n else System.out.println(sum);\n \n }\n }",
"{\n for(int j = 0; j< l; j++)\n {\n long sum = 0;\n for(int k = 0; k< m;k++)\n {\n sum = sum + A[i][k] * B[k][j];\n }\n if(j!=l-1)\n {\n System.out.print(sum + \" \");\n }\n else System.out.println(sum);\n \n }\n }",
"for(int j = 0; j< l; j++)\n {\n long sum = 0;\n for(int k = 0; k< m;k++)\n {\n sum = sum + A[i][k] * B[k][j];\n }\n if(j!=l-1)\n {\n System.out.print(sum + \" \");\n }\n else System.out.println(sum);\n \n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j< l",
"j",
"l",
"j++",
"j++",
"j",
"{\n long sum = 0;\n for(int k = 0; k< m;k++)\n {\n sum = sum + A[i][k] * B[k][j];\n }\n if(j!=l-1)\n {\n System.out.print(sum + \" \");\n }\n else System.out.println(sum);\n \n }",
"{\n long sum = 0;\n for(int k = 0; k< m;k++)\n {\n sum = sum + A[i][k] * B[k][j];\n }\n if(j!=l-1)\n {\n System.out.print(sum + \" \");\n }\n else System.out.println(sum);\n \n }",
"long sum = 0;",
"sum",
"0",
"for(int k = 0; k< m;k++)\n {\n sum = sum + A[i][k] * B[k][j];\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k< m",
"k",
"m",
"k++",
"k++",
"k",
"{\n sum = sum + A[i][k] * B[k][j];\n }",
"{\n sum = sum + A[i][k] * B[k][j];\n }",
"sum = sum + A[i][k] * B[k][j]",
"sum",
"sum + A[i][k] * B[k][j]",
"sum",
"A[i][k] * B[k][j]",
"A[i][k]",
"A[i]",
"A",
"i",
"k",
"B[k][j]",
"B[k]",
"B",
"k",
"j",
"if(j!=l-1)\n {\n System.out.print(sum + \" \");\n }\n else System.out.println(sum);",
"j!=l-1",
"j",
"l-1",
"l",
"1",
"{\n System.out.print(sum + \" \");\n }",
"System.out.print(sum + \" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"sum + \" \"",
"sum",
"\" \"",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main \n{ \n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in); \n int n,m,l;\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n long [] [] A = new long [n][m];\n long [] [] B = new long [m][l];\n for(int i=0; i<n; i++) //input\n {\n for (int j = 0; j<m; j++)\n {\n A[i][j] = sc.nextLong();\n }\n }\n for(int i=0; i<m; i++) //input\n {\n for (int j = 0; j<l; j++)\n {\n B[i][j] = sc.nextLong();\n }\n }\n \n for(int i=0; i<n; i++) //multiplying\n {\n for(int j = 0; j< l; j++)\n {\n long sum = 0;\n for(int k = 0; k< m;k++)\n {\n sum = sum + A[i][k] * B[k][j];\n }\n if(j!=l-1)\n {\n System.out.print(sum + \" \");\n }\n else System.out.println(sum);\n \n }\n }\n }\n}",
"public class Main \n{ \n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in); \n int n,m,l;\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n long [] [] A = new long [n][m];\n long [] [] B = new long [m][l];\n for(int i=0; i<n; i++) //input\n {\n for (int j = 0; j<m; j++)\n {\n A[i][j] = sc.nextLong();\n }\n }\n for(int i=0; i<m; i++) //input\n {\n for (int j = 0; j<l; j++)\n {\n B[i][j] = sc.nextLong();\n }\n }\n \n for(int i=0; i<n; i++) //multiplying\n {\n for(int j = 0; j< l; j++)\n {\n long sum = 0;\n for(int k = 0; k< m;k++)\n {\n sum = sum + A[i][k] * B[k][j];\n }\n if(j!=l-1)\n {\n System.out.print(sum + \" \");\n }\n else System.out.println(sum);\n \n }\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int n,m,l;
n = sc.nextInt();
m = sc.nextInt();
l = sc.nextInt();
long [] [] A = new long [n][m];
long [] [] B = new long [m][l];
for(int i=0; i<n; i++) //input
{
for (int j = 0; j<m; j++)
{
A[i][j] = sc.nextLong();
}
}
for(int i=0; i<m; i++) //input
{
for (int j = 0; j<l; j++)
{
B[i][j] = sc.nextLong();
}
}
for(int i=0; i<n; i++) //multiplying
{
for(int j = 0; j< l; j++)
{
long sum = 0;
for(int k = 0; k< m;k++)
{
sum = sum + A[i][k] * B[k][j];
}
if(j!=l-1)
{
System.out.print(sum + " ");
}
else 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,
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,
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,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
190,
5
],
[
190,
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
],
[
24,
25
],
[
25,
26
],
[
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
],
[
67,
69
],
[
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
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
98,
104
],
[
104,
105
],
[
105,
106
],
[
8,
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
],
[
133,
135
],
[
132,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
141,
142
],
[
141,
143
],
[
136,
144
],
[
144,
145
],
[
145,
146
],
[
136,
147
],
[
148,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
151,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
132,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
162,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
174,
179
],
[
179,
180
],
[
179,
181
],
[
119,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
6,
187
],
[
187,
188
],
[
0,
189
],
[
189,
190
],
[
189,
191
]
] | [
"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 l = sc.nextInt();\n\t\tint[][] list1 = 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\tlist1[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[][] list2 = new int[m][l];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlist2[i][j] = sc.nextInt();\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 sum = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum += list1[i][k] * list2[k][j];\n\t\t\t\t}\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tSystem.out.print(sum);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \" + sum);\n\t\t\t\t}\n\t\t\t}\n System.out.println();\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\t\tint[][] list1 = 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\tlist1[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[][] list2 = new int[m][l];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlist2[i][j] = sc.nextInt();\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 sum = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum += list1[i][k] * list2[k][j];\n\t\t\t\t}\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tSystem.out.print(sum);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \" + sum);\n\t\t\t\t}\n\t\t\t}\n System.out.println();\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 = sc.nextInt();\n\t\tint[][] list1 = 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\tlist1[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[][] list2 = new int[m][l];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlist2[i][j] = sc.nextInt();\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 sum = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum += list1[i][k] * list2[k][j];\n\t\t\t\t}\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tSystem.out.print(sum);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \" + sum);\n\t\t\t\t}\n\t\t\t}\n System.out.println();\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 l = sc.nextInt();\n\t\tint[][] list1 = 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\tlist1[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[][] list2 = new int[m][l];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlist2[i][j] = sc.nextInt();\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 sum = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum += list1[i][k] * list2[k][j];\n\t\t\t\t}\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tSystem.out.print(sum);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \" + sum);\n\t\t\t\t}\n\t\t\t}\n System.out.println();\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 l = sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] list1 = new int[n][m];",
"list1",
"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\tlist1[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\tlist1[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\tlist1[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for (int j = 0; j < m; j++) {\n\t\t\t\tlist1[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\tlist1[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tlist1[i][j] = sc.nextInt();\n\t\t\t}",
"list1[i][j] = sc.nextInt()",
"list1[i][j]",
"list1[i]",
"list1",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] list2 = new int[m][l];",
"list2",
"new int[m][l]",
"m",
"l",
"for (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlist2[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlist2[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlist2[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for (int j = 0; j < l; j++) {\n\t\t\t\tlist2[i][j] = sc.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tlist2[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tlist2[i][j] = sc.nextInt();\n\t\t\t}",
"list2[i][j] = sc.nextInt()",
"list2[i][j]",
"list2[i]",
"list2",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum += list1[i][k] * list2[k][j];\n\t\t\t\t}\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tSystem.out.print(sum);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \" + sum);\n\t\t\t\t}\n\t\t\t}\n System.out.println();\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 sum = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum += list1[i][k] * list2[k][j];\n\t\t\t\t}\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tSystem.out.print(sum);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \" + sum);\n\t\t\t\t}\n\t\t\t}\n System.out.println();\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum += list1[i][k] * list2[k][j];\n\t\t\t\t}\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tSystem.out.print(sum);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \" + sum);\n\t\t\t\t}\n\t\t\t}\n System.out.println();\n\t\t}",
"for (int j = 0; j < l; j++) {\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum += list1[i][k] * list2[k][j];\n\t\t\t\t}\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tSystem.out.print(sum);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \" + sum);\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum += list1[i][k] * list2[k][j];\n\t\t\t\t}\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tSystem.out.print(sum);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \" + sum);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tlong sum = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum += list1[i][k] * list2[k][j];\n\t\t\t\t}\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tSystem.out.print(sum);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \" + sum);\n\t\t\t\t}\n\t\t\t}",
"long sum = 0;",
"sum",
"0",
"for (int k = 0; k < m; k++) {\n\t\t\t\t\tsum += list1[i][k] * list2[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\tsum += list1[i][k] * list2[k][j];\n\t\t\t\t}",
"{\n\t\t\t\t\tsum += list1[i][k] * list2[k][j];\n\t\t\t\t}",
"sum += list1[i][k] * list2[k][j]",
"sum",
"list1[i][k] * list2[k][j]",
"list1[i][k]",
"list1[i]",
"list1",
"i",
"k",
"list2[k][j]",
"list2[k]",
"list2",
"k",
"j",
"if (j == 0) {\n\t\t\t\t\tSystem.out.print(sum);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \" + sum);\n\t\t\t\t}",
"j == 0",
"j",
"0",
"{\n\t\t\t\t\tSystem.out.print(sum);\n\t\t\t\t}",
"System.out.print(sum)",
"System.out.print",
"System.out",
"System",
"System.out",
"sum",
"{\n\t\t\t\t\tSystem.out.print(\" \" + sum);\n\t\t\t\t}",
"System.out.print(\" \" + sum)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + sum",
"\" \"",
"sum",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"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 l = sc.nextInt();\n\t\tint[][] list1 = 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\tlist1[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[][] list2 = new int[m][l];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlist2[i][j] = sc.nextInt();\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 sum = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum += list1[i][k] * list2[k][j];\n\t\t\t\t}\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tSystem.out.print(sum);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \" + sum);\n\t\t\t\t}\n\t\t\t}\n System.out.println();\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 l = sc.nextInt();\n\t\tint[][] list1 = 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\tlist1[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[][] list2 = new int[m][l];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlist2[i][j] = sc.nextInt();\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 sum = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tsum += list1[i][k] * list2[k][j];\n\t\t\t\t}\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tSystem.out.print(sum);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \" + sum);\n\t\t\t\t}\n\t\t\t}\n System.out.println();\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 l = sc.nextInt();
int[][] list1 = new int[n][m];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
list1[i][j] = sc.nextInt();
}
}
int[][] list2 = new int[m][l];
for (int i = 0; i < m; i++) {
for (int j = 0; j < l; j++) {
list2[i][j] = sc.nextInt();
}
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < l; j++) {
long sum = 0;
for (int k = 0; k < m; k++) {
sum += list1[i][k] * list2[k][j];
}
if (j == 0) {
System.out.print(sum);
} else {
System.out.print(" " + sum);
}
}
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,
4,
18,
13,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
224,
5
],
[
224,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
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
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
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
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
112,
120
],
[
120,
121
],
[
121,
122
],
[
112,
123
],
[
124,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
125,
136
],
[
137,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
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
],
[
8,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
173,
174
],
[
173,
175
],
[
168,
176
],
[
176,
177
],
[
177,
178
],
[
168,
179
],
[
180,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
181,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
186,
190
],
[
180,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
191,
196
],
[
196,
197
],
[
196,
198
],
[
191,
199
],
[
199,
200
],
[
200,
201
],
[
191,
202
],
[
203,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
204,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
211,
215
],
[
180,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
6,
221
],
[
221,
222
],
[
0,
223
],
[
223,
224
],
[
223,
225
]
] | [
"\nimport java.util.Scanner;\n\npublic class Main {\n\n\t public static void main(String[] args){\n\t Scanner scan = new Scanner(System.in);\n\t int numN = scan.nextInt();\n\t int numM = scan.nextInt();\n\t int numL = scan.nextInt();\n\t long[][] arrA = new long[numN][numM];\n\t long[][] arrB = new long[numM][numL];\n\t long[][] arrTot = new long[numN][numL];\n\n\t for(int i=0; i<numN; i++){\n\t for(int j=0; j<numM; j++){\n\t arrA[i][j] = scan.nextInt();\n\t }\n\t }\n\n\t for(int i=0; i<numM; i++){\n\t for(int j=0; j<numL; j++){\n\t arrB[i][j] = scan.nextInt();\n\t }\n\t }\n\n\t for(int i = 0; i<numN; i++){\n\t for(int j=0; j<numL; j++){\n\t for(int k = 0; k<numM; k++){\n\t \tarrTot[i][j] += arrA[i][k]*arrB[k][j];\n\t }\n\t }\n\t }\n\n\t for(int i = 0; i<numN; i++){\n\t System.out.print(arrTot[i][0]);\n\t for(int j=1;j<numL;j++){\n\t System.out.print(\" \"+arrTot[i][j]);\n\t }\n\t System.out.println();\n\t }\n\n\t }\n\t}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\t public static void main(String[] args){\n\t Scanner scan = new Scanner(System.in);\n\t int numN = scan.nextInt();\n\t int numM = scan.nextInt();\n\t int numL = scan.nextInt();\n\t long[][] arrA = new long[numN][numM];\n\t long[][] arrB = new long[numM][numL];\n\t long[][] arrTot = new long[numN][numL];\n\n\t for(int i=0; i<numN; i++){\n\t for(int j=0; j<numM; j++){\n\t arrA[i][j] = scan.nextInt();\n\t }\n\t }\n\n\t for(int i=0; i<numM; i++){\n\t for(int j=0; j<numL; j++){\n\t arrB[i][j] = scan.nextInt();\n\t }\n\t }\n\n\t for(int i = 0; i<numN; i++){\n\t for(int j=0; j<numL; j++){\n\t for(int k = 0; k<numM; k++){\n\t \tarrTot[i][j] += arrA[i][k]*arrB[k][j];\n\t }\n\t }\n\t }\n\n\t for(int i = 0; i<numN; i++){\n\t System.out.print(arrTot[i][0]);\n\t for(int j=1;j<numL;j++){\n\t System.out.print(\" \"+arrTot[i][j]);\n\t }\n\t System.out.println();\n\t }\n\n\t }\n\t}",
"Main",
"public static void main(String[] args){\n\t Scanner scan = new Scanner(System.in);\n\t int numN = scan.nextInt();\n\t int numM = scan.nextInt();\n\t int numL = scan.nextInt();\n\t long[][] arrA = new long[numN][numM];\n\t long[][] arrB = new long[numM][numL];\n\t long[][] arrTot = new long[numN][numL];\n\n\t for(int i=0; i<numN; i++){\n\t for(int j=0; j<numM; j++){\n\t arrA[i][j] = scan.nextInt();\n\t }\n\t }\n\n\t for(int i=0; i<numM; i++){\n\t for(int j=0; j<numL; j++){\n\t arrB[i][j] = scan.nextInt();\n\t }\n\t }\n\n\t for(int i = 0; i<numN; i++){\n\t for(int j=0; j<numL; j++){\n\t for(int k = 0; k<numM; k++){\n\t \tarrTot[i][j] += arrA[i][k]*arrB[k][j];\n\t }\n\t }\n\t }\n\n\t for(int i = 0; i<numN; i++){\n\t System.out.print(arrTot[i][0]);\n\t for(int j=1;j<numL;j++){\n\t System.out.print(\" \"+arrTot[i][j]);\n\t }\n\t System.out.println();\n\t }\n\n\t }",
"main",
"{\n\t Scanner scan = new Scanner(System.in);\n\t int numN = scan.nextInt();\n\t int numM = scan.nextInt();\n\t int numL = scan.nextInt();\n\t long[][] arrA = new long[numN][numM];\n\t long[][] arrB = new long[numM][numL];\n\t long[][] arrTot = new long[numN][numL];\n\n\t for(int i=0; i<numN; i++){\n\t for(int j=0; j<numM; j++){\n\t arrA[i][j] = scan.nextInt();\n\t }\n\t }\n\n\t for(int i=0; i<numM; i++){\n\t for(int j=0; j<numL; j++){\n\t arrB[i][j] = scan.nextInt();\n\t }\n\t }\n\n\t for(int i = 0; i<numN; i++){\n\t for(int j=0; j<numL; j++){\n\t for(int k = 0; k<numM; k++){\n\t \tarrTot[i][j] += arrA[i][k]*arrB[k][j];\n\t }\n\t }\n\t }\n\n\t for(int i = 0; i<numN; i++){\n\t System.out.print(arrTot[i][0]);\n\t for(int j=1;j<numL;j++){\n\t System.out.print(\" \"+arrTot[i][j]);\n\t }\n\t System.out.println();\n\t }\n\n\t }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int numN = scan.nextInt();",
"numN",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int numM = scan.nextInt();",
"numM",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int numL = scan.nextInt();",
"numL",
"scan.nextInt()",
"scan.nextInt",
"scan",
"long[][] arrA = new long[numN][numM];",
"arrA",
"new long[numN][numM]",
"numN",
"numM",
"long[][] arrB = new long[numM][numL];",
"arrB",
"new long[numM][numL]",
"numM",
"numL",
"long[][] arrTot = new long[numN][numL];",
"arrTot",
"new long[numN][numL]",
"numN",
"numL",
"for(int i=0; i<numN; i++){\n\t for(int j=0; j<numM; j++){\n\t arrA[i][j] = scan.nextInt();\n\t }\n\t }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<numN",
"i",
"numN",
"i++",
"i++",
"i",
"{\n\t for(int j=0; j<numM; j++){\n\t arrA[i][j] = scan.nextInt();\n\t }\n\t }",
"{\n\t for(int j=0; j<numM; j++){\n\t arrA[i][j] = scan.nextInt();\n\t }\n\t }",
"for(int j=0; j<numM; j++){\n\t arrA[i][j] = scan.nextInt();\n\t }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<numM",
"j",
"numM",
"j++",
"j++",
"j",
"{\n\t arrA[i][j] = scan.nextInt();\n\t }",
"{\n\t arrA[i][j] = scan.nextInt();\n\t }",
"arrA[i][j] = scan.nextInt()",
"arrA[i][j]",
"arrA[i]",
"arrA",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i=0; i<numM; i++){\n\t for(int j=0; j<numL; j++){\n\t arrB[i][j] = scan.nextInt();\n\t }\n\t }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<numM",
"i",
"numM",
"i++",
"i++",
"i",
"{\n\t for(int j=0; j<numL; j++){\n\t arrB[i][j] = scan.nextInt();\n\t }\n\t }",
"{\n\t for(int j=0; j<numL; j++){\n\t arrB[i][j] = scan.nextInt();\n\t }\n\t }",
"for(int j=0; j<numL; j++){\n\t arrB[i][j] = scan.nextInt();\n\t }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<numL",
"j",
"numL",
"j++",
"j++",
"j",
"{\n\t arrB[i][j] = scan.nextInt();\n\t }",
"{\n\t arrB[i][j] = scan.nextInt();\n\t }",
"arrB[i][j] = scan.nextInt()",
"arrB[i][j]",
"arrB[i]",
"arrB",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 0; i<numN; i++){\n\t for(int j=0; j<numL; j++){\n\t for(int k = 0; k<numM; k++){\n\t \tarrTot[i][j] += arrA[i][k]*arrB[k][j];\n\t }\n\t }\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<numN",
"i",
"numN",
"i++",
"i++",
"i",
"{\n\t for(int j=0; j<numL; j++){\n\t for(int k = 0; k<numM; k++){\n\t \tarrTot[i][j] += arrA[i][k]*arrB[k][j];\n\t }\n\t }\n\t }",
"{\n\t for(int j=0; j<numL; j++){\n\t for(int k = 0; k<numM; k++){\n\t \tarrTot[i][j] += arrA[i][k]*arrB[k][j];\n\t }\n\t }\n\t }",
"for(int j=0; j<numL; j++){\n\t for(int k = 0; k<numM; k++){\n\t \tarrTot[i][j] += arrA[i][k]*arrB[k][j];\n\t }\n\t }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<numL",
"j",
"numL",
"j++",
"j++",
"j",
"{\n\t for(int k = 0; k<numM; k++){\n\t \tarrTot[i][j] += arrA[i][k]*arrB[k][j];\n\t }\n\t }",
"{\n\t for(int k = 0; k<numM; k++){\n\t \tarrTot[i][j] += arrA[i][k]*arrB[k][j];\n\t }\n\t }",
"for(int k = 0; k<numM; k++){\n\t \tarrTot[i][j] += arrA[i][k]*arrB[k][j];\n\t }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k<numM",
"k",
"numM",
"k++",
"k++",
"k",
"{\n\t \tarrTot[i][j] += arrA[i][k]*arrB[k][j];\n\t }",
"{\n\t \tarrTot[i][j] += arrA[i][k]*arrB[k][j];\n\t }",
"arrTot[i][j] += arrA[i][k]*arrB[k][j]",
"arrTot[i][j]",
"arrTot[i]",
"arrTot",
"i",
"j",
"arrA[i][k]*arrB[k][j]",
"arrA[i][k]",
"arrA[i]",
"arrA",
"i",
"k",
"arrB[k][j]",
"arrB[k]",
"arrB",
"k",
"j",
"for(int i = 0; i<numN; i++){\n\t System.out.print(arrTot[i][0]);\n\t for(int j=1;j<numL;j++){\n\t System.out.print(\" \"+arrTot[i][j]);\n\t }\n\t System.out.println();\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<numN",
"i",
"numN",
"i++",
"i++",
"i",
"{\n\t System.out.print(arrTot[i][0]);\n\t for(int j=1;j<numL;j++){\n\t System.out.print(\" \"+arrTot[i][j]);\n\t }\n\t System.out.println();\n\t }",
"{\n\t System.out.print(arrTot[i][0]);\n\t for(int j=1;j<numL;j++){\n\t System.out.print(\" \"+arrTot[i][j]);\n\t }\n\t System.out.println();\n\t }",
"System.out.print(arrTot[i][0])",
"System.out.print",
"System.out",
"System",
"System.out",
"arrTot[i][0]",
"arrTot[i]",
"arrTot",
"i",
"0",
"for(int j=1;j<numL;j++){\n\t System.out.print(\" \"+arrTot[i][j]);\n\t }",
"int j=1;",
"int j=1;",
"j",
"1",
"j<numL",
"j",
"numL",
"j++",
"j++",
"j",
"{\n\t System.out.print(\" \"+arrTot[i][j]);\n\t }",
"{\n\t System.out.print(\" \"+arrTot[i][j]);\n\t }",
"System.out.print(\" \"+arrTot[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+arrTot[i][j]",
"\" \"",
"arrTot[i][j]",
"arrTot[i]",
"arrTot",
"i",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n\n\t public static void main(String[] args){\n\t Scanner scan = new Scanner(System.in);\n\t int numN = scan.nextInt();\n\t int numM = scan.nextInt();\n\t int numL = scan.nextInt();\n\t long[][] arrA = new long[numN][numM];\n\t long[][] arrB = new long[numM][numL];\n\t long[][] arrTot = new long[numN][numL];\n\n\t for(int i=0; i<numN; i++){\n\t for(int j=0; j<numM; j++){\n\t arrA[i][j] = scan.nextInt();\n\t }\n\t }\n\n\t for(int i=0; i<numM; i++){\n\t for(int j=0; j<numL; j++){\n\t arrB[i][j] = scan.nextInt();\n\t }\n\t }\n\n\t for(int i = 0; i<numN; i++){\n\t for(int j=0; j<numL; j++){\n\t for(int k = 0; k<numM; k++){\n\t \tarrTot[i][j] += arrA[i][k]*arrB[k][j];\n\t }\n\t }\n\t }\n\n\t for(int i = 0; i<numN; i++){\n\t System.out.print(arrTot[i][0]);\n\t for(int j=1;j<numL;j++){\n\t System.out.print(\" \"+arrTot[i][j]);\n\t }\n\t System.out.println();\n\t }\n\n\t }\n\t}",
"public class Main {\n\n\t public static void main(String[] args){\n\t Scanner scan = new Scanner(System.in);\n\t int numN = scan.nextInt();\n\t int numM = scan.nextInt();\n\t int numL = scan.nextInt();\n\t long[][] arrA = new long[numN][numM];\n\t long[][] arrB = new long[numM][numL];\n\t long[][] arrTot = new long[numN][numL];\n\n\t for(int i=0; i<numN; i++){\n\t for(int j=0; j<numM; j++){\n\t arrA[i][j] = scan.nextInt();\n\t }\n\t }\n\n\t for(int i=0; i<numM; i++){\n\t for(int j=0; j<numL; j++){\n\t arrB[i][j] = scan.nextInt();\n\t }\n\t }\n\n\t for(int i = 0; i<numN; i++){\n\t for(int j=0; j<numL; j++){\n\t for(int k = 0; k<numM; k++){\n\t \tarrTot[i][j] += arrA[i][k]*arrB[k][j];\n\t }\n\t }\n\t }\n\n\t for(int i = 0; i<numN; i++){\n\t System.out.print(arrTot[i][0]);\n\t for(int j=1;j<numL;j++){\n\t System.out.print(\" \"+arrTot[i][j]);\n\t }\n\t System.out.println();\n\t }\n\n\t }\n\t}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int numN = scan.nextInt();
int numM = scan.nextInt();
int numL = scan.nextInt();
long[][] arrA = new long[numN][numM];
long[][] arrB = new long[numM][numL];
long[][] arrTot = new long[numN][numL];
for(int i=0; i<numN; i++){
for(int j=0; j<numM; j++){
arrA[i][j] = scan.nextInt();
}
}
for(int i=0; i<numM; i++){
for(int j=0; j<numL; j++){
arrB[i][j] = scan.nextInt();
}
}
for(int i = 0; i<numN; i++){
for(int j=0; j<numL; j++){
for(int k = 0; k<numM; k++){
arrTot[i][j] += arrA[i][k]*arrB[k][j];
}
}
}
for(int i = 0; i<numN; i++){
System.out.print(arrTot[i][0]);
for(int j=1;j<numL;j++){
System.out.print(" "+arrTot[i][j]);
}
System.out.println();
}
}
} |
[
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,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
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
],
[
261,
11
],
[
261,
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
],
[
22,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
22,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
42,
44
],
[
22,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
50,
52
],
[
22,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
58,
60
],
[
22,
61
],
[
61,
62
],
[
61,
63
],
[
22,
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
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
78,
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
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
112,
113
],
[
112,
114
],
[
22,
115
],
[
115,
116
],
[
115,
117
],
[
22,
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
],
[
132,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
140,
143
],
[
132,
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
],
[
158,
162
],
[
157,
163
],
[
163,
164
],
[
164,
165
],
[
163,
166
],
[
166,
167
],
[
166,
168
],
[
22,
169
],
[
169,
170
],
[
169,
171
],
[
22,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
174,
179
],
[
179,
180
],
[
179,
181
],
[
174,
182
],
[
182,
183
],
[
183,
184
],
[
174,
185
],
[
186,
186
],
[
186,
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
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
200,
205
],
[
205,
206
],
[
205,
207
],
[
200,
208
],
[
208,
209
],
[
209,
210
],
[
200,
211
],
[
212,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
214,
218
],
[
213,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
220,
224
],
[
219,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
225,
229
],
[
199,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
230,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
235,
239
],
[
199,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
243,
244
],
[
243,
245
],
[
240,
246
],
[
246,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
247,
252
],
[
186,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
12,
258
],
[
258,
259
],
[
0,
260
],
[
260,
261
],
[
260,
262
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString input = reader.readLine();\n\t\t\tString[] array = input.split(\" \");\n\t\t\tint n = Integer.parseInt(array[0]);\n\t\t\tint m = Integer.parseInt(array[1]);\n\t\t\tint l = Integer.parseInt(array[2]);\n\n\t\t\tlong a[][] = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tarray = input.split(\" \");\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\ta[i][j] = Long.parseLong(array[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlong b[][] = new long[m][l];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tarray = input.split(\" \");\n\t\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = Long.parseLong(array[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlong[][] c = new long[n][l];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\tif (j != (l - 1)) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\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\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",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString input = reader.readLine();\n\t\t\tString[] array = input.split(\" \");\n\t\t\tint n = Integer.parseInt(array[0]);\n\t\t\tint m = Integer.parseInt(array[1]);\n\t\t\tint l = Integer.parseInt(array[2]);\n\n\t\t\tlong a[][] = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tarray = input.split(\" \");\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\ta[i][j] = Long.parseLong(array[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlong b[][] = new long[m][l];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tarray = input.split(\" \");\n\t\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = Long.parseLong(array[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlong[][] c = new long[n][l];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\tif (j != (l - 1)) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\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\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\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString input = reader.readLine();\n\t\t\tString[] array = input.split(\" \");\n\t\t\tint n = Integer.parseInt(array[0]);\n\t\t\tint m = Integer.parseInt(array[1]);\n\t\t\tint l = Integer.parseInt(array[2]);\n\n\t\t\tlong a[][] = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tarray = input.split(\" \");\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\ta[i][j] = Long.parseLong(array[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlong b[][] = new long[m][l];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tarray = input.split(\" \");\n\t\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = Long.parseLong(array[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlong[][] c = new long[n][l];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\tif (j != (l - 1)) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\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\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"main",
"{\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString input = reader.readLine();\n\t\t\tString[] array = input.split(\" \");\n\t\t\tint n = Integer.parseInt(array[0]);\n\t\t\tint m = Integer.parseInt(array[1]);\n\t\t\tint l = Integer.parseInt(array[2]);\n\n\t\t\tlong a[][] = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tarray = input.split(\" \");\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\ta[i][j] = Long.parseLong(array[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlong b[][] = new long[m][l];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tarray = input.split(\" \");\n\t\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = Long.parseLong(array[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlong[][] c = new long[n][l];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\tif (j != (l - 1)) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\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\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"try {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString input = reader.readLine();\n\t\t\tString[] array = input.split(\" \");\n\t\t\tint n = Integer.parseInt(array[0]);\n\t\t\tint m = Integer.parseInt(array[1]);\n\t\t\tint l = Integer.parseInt(array[2]);\n\n\t\t\tlong a[][] = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tarray = input.split(\" \");\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\ta[i][j] = Long.parseLong(array[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlong b[][] = new long[m][l];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tarray = input.split(\" \");\n\t\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = Long.parseLong(array[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlong[][] c = new long[n][l];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\tif (j != (l - 1)) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\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\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\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString input = reader.readLine();\n\t\t\tString[] array = input.split(\" \");\n\t\t\tint n = Integer.parseInt(array[0]);\n\t\t\tint m = Integer.parseInt(array[1]);\n\t\t\tint l = Integer.parseInt(array[2]);\n\n\t\t\tlong a[][] = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tarray = input.split(\" \");\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\ta[i][j] = Long.parseLong(array[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlong b[][] = new long[m][l];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tarray = input.split(\" \");\n\t\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = Long.parseLong(array[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlong[][] c = new long[n][l];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\tif (j != (l - 1)) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\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\t\n\t\t}",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"String input = reader.readLine();",
"input",
"reader.readLine()",
"reader.readLine",
"reader",
"String[] array = input.split(\" \");",
"array",
"input.split(\" \")",
"input.split",
"input",
"\" \"",
"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 l = Integer.parseInt(array[2]);",
"l",
"Integer.parseInt(array[2])",
"Integer.parseInt",
"Integer",
"array[2]",
"array",
"2",
"long a[][] = new long[n][m];",
"a",
"new long[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tarray = input.split(\" \");\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\ta[i][j] = Long.parseLong(array[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 = reader.readLine();\n\t\t\t\tarray = input.split(\" \");\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\ta[i][j] = Long.parseLong(array[j]);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tarray = input.split(\" \");\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\ta[i][j] = Long.parseLong(array[j]);\n\t\t\t\t}\n\t\t\t}",
"input = reader.readLine()",
"input",
"reader.readLine()",
"reader.readLine",
"reader",
"array = input.split(\" \")",
"array",
"input.split(\" \")",
"input.split",
"input",
"\" \"",
"for (int j = 0; j < m; j++) {\n\t\t\t\t\ta[i][j] = Long.parseLong(array[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] = Long.parseLong(array[j]);\n\t\t\t\t}",
"{\n\t\t\t\t\ta[i][j] = Long.parseLong(array[j]);\n\t\t\t\t}",
"a[i][j] = Long.parseLong(array[j])",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"Long.parseLong(array[j])",
"Long.parseLong",
"Long",
"array[j]",
"array",
"j",
"long b[][] = new long[m][l];",
"b",
"new long[m][l]",
"m",
"l",
"for (int i = 0; i < m; i++) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tarray = input.split(\" \");\n\t\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = Long.parseLong(array[j]);\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tarray = input.split(\" \");\n\t\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = Long.parseLong(array[j]);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tarray = input.split(\" \");\n\t\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = Long.parseLong(array[j]);\n\t\t\t\t}\n\t\t\t}",
"input = reader.readLine()",
"input",
"reader.readLine()",
"reader.readLine",
"reader",
"array = input.split(\" \")",
"array",
"input.split(\" \")",
"input.split",
"input",
"\" \"",
"for (int j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = Long.parseLong(array[j]);\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tb[i][j] = Long.parseLong(array[j]);\n\t\t\t\t}",
"{\n\t\t\t\t\tb[i][j] = Long.parseLong(array[j]);\n\t\t\t\t}",
"b[i][j] = Long.parseLong(array[j])",
"b[i][j]",
"b[i]",
"b",
"i",
"j",
"Long.parseLong(array[j])",
"Long.parseLong",
"Long",
"array[j]",
"array",
"j",
"long[][] c = new long[n][l];",
"c",
"new long[n][l]",
"n",
"l",
"for (int i = 0; i < n; i++) {\n\t\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\tif (j != (l - 1)) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\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 < l; j++) {\n\t\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\tif (j != (l - 1)) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\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\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\tif (j != (l - 1)) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"for (int j = 0; j < l; j++) {\n\t\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\tif (j != (l - 1)) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\tif (j != (l - 1)) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}",
"{\n\t\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\tif (j != (l - 1)) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}",
"for (int k = 0; k < m; k++) {\n\t\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\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\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t\t}",
"c[i][j] += a[i][k] * b[k][j]",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"a[i][k] * b[k][j]",
"a[i][k]",
"a[i]",
"a",
"i",
"k",
"b[k][j]",
"b[k]",
"b",
"k",
"j",
"System.out.print(c[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"if (j != (l - 1)) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}",
"j != (l - 1)",
"j",
"(l - 1)",
"l",
"1",
"{\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString input = reader.readLine();\n\t\t\tString[] array = input.split(\" \");\n\t\t\tint n = Integer.parseInt(array[0]);\n\t\t\tint m = Integer.parseInt(array[1]);\n\t\t\tint l = Integer.parseInt(array[2]);\n\n\t\t\tlong a[][] = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tarray = input.split(\" \");\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\ta[i][j] = Long.parseLong(array[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlong b[][] = new long[m][l];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tarray = input.split(\" \");\n\t\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = Long.parseLong(array[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlong[][] c = new long[n][l];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\tif (j != (l - 1)) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\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\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString input = reader.readLine();\n\t\t\tString[] array = input.split(\" \");\n\t\t\tint n = Integer.parseInt(array[0]);\n\t\t\tint m = Integer.parseInt(array[1]);\n\t\t\tint l = Integer.parseInt(array[2]);\n\n\t\t\tlong a[][] = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tarray = input.split(\" \");\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\ta[i][j] = Long.parseLong(array[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlong b[][] = new long[m][l];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tarray = input.split(\" \");\n\t\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = Long.parseLong(array[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlong[][] c = new long[n][l];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\tif (j != (l - 1)) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\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\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\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) {
try {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String input = reader.readLine();
String[] array = input.split(" ");
int n = Integer.parseInt(array[0]);
int m = Integer.parseInt(array[1]);
int l = Integer.parseInt(array[2]);
long a[][] = new long[n][m];
for (int i = 0; i < n; i++) {
input = reader.readLine();
array = input.split(" ");
for (int j = 0; j < m; j++) {
a[i][j] = Long.parseLong(array[j]);
}
}
long b[][] = new long[m][l];
for (int i = 0; i < m; i++) {
input = reader.readLine();
array = input.split(" ");
for (int j = 0; j < l; j++) {
b[i][j] = Long.parseLong(array[j]);
}
}
long[][] c = new long[n][l];
for (int i = 0; i < n; i++) {
for (int j = 0; j < l; j++) {
for (int k = 0; k < m; k++) {
c[i][j] += a[i][k] * b[k][j];
}
System.out.print(c[i][j]);
if (j != (l - 1)) {
System.out.print(" ");
}
}
System.out.println();
}
} catch (IOException e) {
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
0,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
0,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
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,
18,
13,
13,
13,
0,
18,
18,
13,
13,
13,
13,
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,
4,
18,
18,
13,
13,
18,
18,
13,
13,
2,
13,
17,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
265,
8
],
[
265,
9
],
[
9,
10
],
[
9,
11
],
[
265,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
12,
18
],
[
18,
19
],
[
265,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
22,
27
],
[
27,
28
],
[
22,
29
],
[
29,
30
],
[
22,
31
],
[
31,
32
],
[
22,
33
],
[
33,
34
],
[
22,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
22,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
22,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
22,
50
],
[
50,
51
],
[
50,
52
],
[
22,
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
],
[
66,
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
],
[
22,
95
],
[
95,
96
],
[
95,
97
],
[
22,
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
],
[
111,
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
],
[
132,
136
],
[
131,
137
],
[
137,
138
],
[
138,
139
],
[
22,
140
],
[
140,
141
],
[
140,
142
],
[
22,
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
],
[
158,
160
],
[
157,
161
],
[
156,
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
],
[
176,
178
],
[
175,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
179,
184
],
[
184,
185
],
[
184,
186
],
[
179,
187
],
[
187,
188
],
[
188,
189
],
[
179,
190
],
[
191,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
195,
199
],
[
194,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
200,
204
],
[
175,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
206,
210
],
[
205,
211
],
[
22,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
212,
217
],
[
217,
218
],
[
217,
219
],
[
212,
220
],
[
220,
221
],
[
221,
222
],
[
212,
223
],
[
224,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
227,
229
],
[
225,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
232,
234
],
[
225,
235
],
[
235,
236
],
[
236,
237
],
[
225,
238
],
[
239,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
240,
245
],
[
245,
246
],
[
246,
247
],
[
247,
248
],
[
247,
249
],
[
246,
250
],
[
245,
251
],
[
224,
252
],
[
252,
253
],
[
253,
254
],
[
254,
255
],
[
254,
256
],
[
252,
257
],
[
257,
258
],
[
258,
259
],
[
258,
260
],
[
257,
261
],
[
261,
262
],
[
261,
263
],
[
0,
264
],
[
264,
265
],
[
264,
266
]
] | [
"import java.util.Scanner;\nimport java.util.function.Function;\n\npublic class Main {\n\n public static void main(String[] args) {\n new Main().solve();\n }\n\n Scanner sc = new Scanner(System.in);\n\n void solve() {\n int n, m, l;\n long[][] m1, m2, m3;\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n m1 = new long[n][];\n for (int i = 0; i < n; ++i) {\n m1[i] = new long[m];\n for (int j = 0; j < m; ++j) {\n m1[i][j] = sc.nextInt();\n }\n }\n m2 = new long[m][];\n for (int i = 0; i < m; ++i) {\n m2[i] = new long[l];\n for (int j = 0; j < l; ++j) {\n m2[i][j] = sc.nextInt();\n }\n }\n m3 = new long[n][];\n for (int i = 0; i < n; ++i) {\n m3[i] = new long[l];\n for (int j = 0; j < l; ++j) {\n long temp = 0;\n for (int k = 0; k < m; ++k) {\n temp += m1[i][k] * m2[k][j];\n }\n m3[i][j] = temp;\n }\n }\n\n for (int i = 0; i < n; ++i) {\n for (int j = 0; j < l - 1; ++j) {\n System.out.print(m3[i][j] + \" \");\n }\n System.out.println(m3[i][l - 1]);\n }\n\n }\n\n}\n\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.function.Function;",
"Function",
"java.util.function",
"public class Main {\n\n public static void main(String[] args) {\n new Main().solve();\n }\n\n Scanner sc = new Scanner(System.in);\n\n void solve() {\n int n, m, l;\n long[][] m1, m2, m3;\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n m1 = new long[n][];\n for (int i = 0; i < n; ++i) {\n m1[i] = new long[m];\n for (int j = 0; j < m; ++j) {\n m1[i][j] = sc.nextInt();\n }\n }\n m2 = new long[m][];\n for (int i = 0; i < m; ++i) {\n m2[i] = new long[l];\n for (int j = 0; j < l; ++j) {\n m2[i][j] = sc.nextInt();\n }\n }\n m3 = new long[n][];\n for (int i = 0; i < n; ++i) {\n m3[i] = new long[l];\n for (int j = 0; j < l; ++j) {\n long temp = 0;\n for (int k = 0; k < m; ++k) {\n temp += m1[i][k] * m2[k][j];\n }\n m3[i][j] = temp;\n }\n }\n\n for (int i = 0; i < n; ++i) {\n for (int j = 0; j < l - 1; ++j) {\n System.out.print(m3[i][j] + \" \");\n }\n System.out.println(m3[i][l - 1]);\n }\n\n }\n\n}",
"Main",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"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",
"void solve() {\n int n, m, l;\n long[][] m1, m2, m3;\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n m1 = new long[n][];\n for (int i = 0; i < n; ++i) {\n m1[i] = new long[m];\n for (int j = 0; j < m; ++j) {\n m1[i][j] = sc.nextInt();\n }\n }\n m2 = new long[m][];\n for (int i = 0; i < m; ++i) {\n m2[i] = new long[l];\n for (int j = 0; j < l; ++j) {\n m2[i][j] = sc.nextInt();\n }\n }\n m3 = new long[n][];\n for (int i = 0; i < n; ++i) {\n m3[i] = new long[l];\n for (int j = 0; j < l; ++j) {\n long temp = 0;\n for (int k = 0; k < m; ++k) {\n temp += m1[i][k] * m2[k][j];\n }\n m3[i][j] = temp;\n }\n }\n\n for (int i = 0; i < n; ++i) {\n for (int j = 0; j < l - 1; ++j) {\n System.out.print(m3[i][j] + \" \");\n }\n System.out.println(m3[i][l - 1]);\n }\n\n }",
"solve",
"{\n int n, m, l;\n long[][] m1, m2, m3;\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n m1 = new long[n][];\n for (int i = 0; i < n; ++i) {\n m1[i] = new long[m];\n for (int j = 0; j < m; ++j) {\n m1[i][j] = sc.nextInt();\n }\n }\n m2 = new long[m][];\n for (int i = 0; i < m; ++i) {\n m2[i] = new long[l];\n for (int j = 0; j < l; ++j) {\n m2[i][j] = sc.nextInt();\n }\n }\n m3 = new long[n][];\n for (int i = 0; i < n; ++i) {\n m3[i] = new long[l];\n for (int j = 0; j < l; ++j) {\n long temp = 0;\n for (int k = 0; k < m; ++k) {\n temp += m1[i][k] * m2[k][j];\n }\n m3[i][j] = temp;\n }\n }\n\n for (int i = 0; i < n; ++i) {\n for (int j = 0; j < l - 1; ++j) {\n System.out.print(m3[i][j] + \" \");\n }\n System.out.println(m3[i][l - 1]);\n }\n\n }",
"int n",
"n",
"m",
"m",
"l;",
"l",
"long[][] m1",
"m1",
"m2",
"m2",
"m3;",
"m3",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"m = sc.nextInt()",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"l = sc.nextInt()",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"m1 = new long[n][]",
"m1",
"new long[n][]",
"n",
"for (int i = 0; i < n; ++i) {\n m1[i] = new long[m];\n for (int j = 0; j < m; ++j) {\n m1[i][j] = sc.nextInt();\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"++i",
"++i",
"i",
"{\n m1[i] = new long[m];\n for (int j = 0; j < m; ++j) {\n m1[i][j] = sc.nextInt();\n }\n }",
"{\n m1[i] = new long[m];\n for (int j = 0; j < m; ++j) {\n m1[i][j] = sc.nextInt();\n }\n }",
"m1[i] = new long[m]",
"m1[i]",
"m1",
"i",
"new long[m]",
"m",
"for (int j = 0; j < m; ++j) {\n m1[i][j] = sc.nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"++j",
"++j",
"j",
"{\n m1[i][j] = sc.nextInt();\n }",
"{\n m1[i][j] = sc.nextInt();\n }",
"m1[i][j] = sc.nextInt()",
"m1[i][j]",
"m1[i]",
"m1",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"m2 = new long[m][]",
"m2",
"new long[m][]",
"m",
"for (int i = 0; i < m; ++i) {\n m2[i] = new long[l];\n for (int j = 0; j < l; ++j) {\n m2[i][j] = sc.nextInt();\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"++i",
"++i",
"i",
"{\n m2[i] = new long[l];\n for (int j = 0; j < l; ++j) {\n m2[i][j] = sc.nextInt();\n }\n }",
"{\n m2[i] = new long[l];\n for (int j = 0; j < l; ++j) {\n m2[i][j] = sc.nextInt();\n }\n }",
"m2[i] = new long[l]",
"m2[i]",
"m2",
"i",
"new long[l]",
"l",
"for (int j = 0; j < l; ++j) {\n m2[i][j] = sc.nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"++j",
"++j",
"j",
"{\n m2[i][j] = sc.nextInt();\n }",
"{\n m2[i][j] = sc.nextInt();\n }",
"m2[i][j] = sc.nextInt()",
"m2[i][j]",
"m2[i]",
"m2",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"m3 = new long[n][]",
"m3",
"new long[n][]",
"n",
"for (int i = 0; i < n; ++i) {\n m3[i] = new long[l];\n for (int j = 0; j < l; ++j) {\n long temp = 0;\n for (int k = 0; k < m; ++k) {\n temp += m1[i][k] * m2[k][j];\n }\n m3[i][j] = temp;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"++i",
"++i",
"i",
"{\n m3[i] = new long[l];\n for (int j = 0; j < l; ++j) {\n long temp = 0;\n for (int k = 0; k < m; ++k) {\n temp += m1[i][k] * m2[k][j];\n }\n m3[i][j] = temp;\n }\n }",
"{\n m3[i] = new long[l];\n for (int j = 0; j < l; ++j) {\n long temp = 0;\n for (int k = 0; k < m; ++k) {\n temp += m1[i][k] * m2[k][j];\n }\n m3[i][j] = temp;\n }\n }",
"m3[i] = new long[l]",
"m3[i]",
"m3",
"i",
"new long[l]",
"l",
"for (int j = 0; j < l; ++j) {\n long temp = 0;\n for (int k = 0; k < m; ++k) {\n temp += m1[i][k] * m2[k][j];\n }\n m3[i][j] = temp;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"++j",
"++j",
"j",
"{\n long temp = 0;\n for (int k = 0; k < m; ++k) {\n temp += m1[i][k] * m2[k][j];\n }\n m3[i][j] = temp;\n }",
"{\n long temp = 0;\n for (int k = 0; k < m; ++k) {\n temp += m1[i][k] * m2[k][j];\n }\n m3[i][j] = temp;\n }",
"long temp = 0;",
"temp",
"0",
"for (int k = 0; k < m; ++k) {\n temp += m1[i][k] * m2[k][j];\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < m",
"k",
"m",
"++k",
"++k",
"k",
"{\n temp += m1[i][k] * m2[k][j];\n }",
"{\n temp += m1[i][k] * m2[k][j];\n }",
"temp += m1[i][k] * m2[k][j]",
"temp",
"m1[i][k] * m2[k][j]",
"m1[i][k]",
"m1[i]",
"m1",
"i",
"k",
"m2[k][j]",
"m2[k]",
"m2",
"k",
"j",
"m3[i][j] = temp",
"m3[i][j]",
"m3[i]",
"m3",
"i",
"j",
"temp",
"for (int i = 0; i < n; ++i) {\n for (int j = 0; j < l - 1; ++j) {\n System.out.print(m3[i][j] + \" \");\n }\n System.out.println(m3[i][l - 1]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"++i",
"++i",
"i",
"{\n for (int j = 0; j < l - 1; ++j) {\n System.out.print(m3[i][j] + \" \");\n }\n System.out.println(m3[i][l - 1]);\n }",
"{\n for (int j = 0; j < l - 1; ++j) {\n System.out.print(m3[i][j] + \" \");\n }\n System.out.println(m3[i][l - 1]);\n }",
"for (int j = 0; j < l - 1; ++j) {\n System.out.print(m3[i][j] + \" \");\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l - 1",
"j",
"l - 1",
"l",
"1",
"++j",
"++j",
"j",
"{\n System.out.print(m3[i][j] + \" \");\n }",
"{\n System.out.print(m3[i][j] + \" \");\n }",
"System.out.print(m3[i][j] + \" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"m3[i][j] + \" \"",
"m3[i][j]",
"m3[i]",
"m3",
"i",
"j",
"\" \"",
"System.out.println(m3[i][l - 1])",
"System.out.println",
"System.out",
"System",
"System.out",
"m3[i][l - 1]",
"m3[i]",
"m3",
"i",
"l - 1",
"l",
"1",
"public class Main {\n\n public static void main(String[] args) {\n new Main().solve();\n }\n\n Scanner sc = new Scanner(System.in);\n\n void solve() {\n int n, m, l;\n long[][] m1, m2, m3;\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n m1 = new long[n][];\n for (int i = 0; i < n; ++i) {\n m1[i] = new long[m];\n for (int j = 0; j < m; ++j) {\n m1[i][j] = sc.nextInt();\n }\n }\n m2 = new long[m][];\n for (int i = 0; i < m; ++i) {\n m2[i] = new long[l];\n for (int j = 0; j < l; ++j) {\n m2[i][j] = sc.nextInt();\n }\n }\n m3 = new long[n][];\n for (int i = 0; i < n; ++i) {\n m3[i] = new long[l];\n for (int j = 0; j < l; ++j) {\n long temp = 0;\n for (int k = 0; k < m; ++k) {\n temp += m1[i][k] * m2[k][j];\n }\n m3[i][j] = temp;\n }\n }\n\n for (int i = 0; i < n; ++i) {\n for (int j = 0; j < l - 1; ++j) {\n System.out.print(m3[i][j] + \" \");\n }\n System.out.println(m3[i][l - 1]);\n }\n\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n new Main().solve();\n }\n\n Scanner sc = new Scanner(System.in);\n\n void solve() {\n int n, m, l;\n long[][] m1, m2, m3;\n n = sc.nextInt();\n m = sc.nextInt();\n l = sc.nextInt();\n m1 = new long[n][];\n for (int i = 0; i < n; ++i) {\n m1[i] = new long[m];\n for (int j = 0; j < m; ++j) {\n m1[i][j] = sc.nextInt();\n }\n }\n m2 = new long[m][];\n for (int i = 0; i < m; ++i) {\n m2[i] = new long[l];\n for (int j = 0; j < l; ++j) {\n m2[i][j] = sc.nextInt();\n }\n }\n m3 = new long[n][];\n for (int i = 0; i < n; ++i) {\n m3[i] = new long[l];\n for (int j = 0; j < l; ++j) {\n long temp = 0;\n for (int k = 0; k < m; ++k) {\n temp += m1[i][k] * m2[k][j];\n }\n m3[i][j] = temp;\n }\n }\n\n for (int i = 0; i < n; ++i) {\n for (int j = 0; j < l - 1; ++j) {\n System.out.print(m3[i][j] + \" \");\n }\n System.out.println(m3[i][l - 1]);\n }\n\n }\n\n}",
"Main"
] | import java.util.Scanner;
import java.util.function.Function;
public class Main {
public static void main(String[] args) {
new Main().solve();
}
Scanner sc = new Scanner(System.in);
void solve() {
int n, m, l;
long[][] m1, m2, m3;
n = sc.nextInt();
m = sc.nextInt();
l = sc.nextInt();
m1 = new long[n][];
for (int i = 0; i < n; ++i) {
m1[i] = new long[m];
for (int j = 0; j < m; ++j) {
m1[i][j] = sc.nextInt();
}
}
m2 = new long[m][];
for (int i = 0; i < m; ++i) {
m2[i] = new long[l];
for (int j = 0; j < l; ++j) {
m2[i][j] = sc.nextInt();
}
}
m3 = new long[n][];
for (int i = 0; i < n; ++i) {
m3[i] = new long[l];
for (int j = 0; j < l; ++j) {
long temp = 0;
for (int k = 0; k < m; ++k) {
temp += m1[i][k] * m2[k][j];
}
m3[i][j] = temp;
}
}
for (int i = 0; i < n; ++i) {
for (int j = 0; j < l - 1; ++j) {
System.out.print(m3[i][j] + " ");
}
System.out.println(m3[i][l - 1]);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
41,
13,
20,
4,
18,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
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,
4,
18,
13,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
13,
17,
30,
4,
18,
13,
17,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
4,
18,
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
],
[
360,
20
],
[
360,
21
],
[
21,
22
],
[
360,
23
],
[
23,
24
],
[
360,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
31,
33
],
[
27,
34
],
[
34,
35
],
[
34,
36
],
[
27,
37
],
[
37,
38
],
[
38,
39
],
[
27,
40
],
[
40,
41
],
[
41,
42
],
[
25,
43
],
[
43,
44
],
[
360,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
49,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
49,
65
],
[
65,
66
],
[
65,
67
],
[
49,
70
],
[
70,
71
],
[
70,
72
],
[
49,
75
],
[
75,
76
],
[
75,
77
],
[
49,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
80,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
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
],
[
107,
111
],
[
106,
112
],
[
112,
113
],
[
113,
114
],
[
49,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
120,
121
],
[
120,
122
],
[
115,
123
],
[
123,
124
],
[
124,
125
],
[
115,
126
],
[
127,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
133,
134
],
[
133,
135
],
[
128,
136
],
[
136,
137
],
[
137,
138
],
[
128,
139
],
[
140,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
142,
146
],
[
141,
147
],
[
147,
148
],
[
148,
149
],
[
49,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
150,
155
],
[
155,
156
],
[
155,
157
],
[
150,
158
],
[
158,
159
],
[
159,
160
],
[
150,
161
],
[
162,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
168,
169
],
[
168,
170
],
[
163,
171
],
[
171,
172
],
[
172,
173
],
[
163,
174
],
[
175,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
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
],
[
190,
194
],
[
189,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
196,
200
],
[
195,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
49,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
206,
211
],
[
211,
212
],
[
211,
213
],
[
206,
214
],
[
214,
215
],
[
215,
216
],
[
206,
217
],
[
218,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
219,
224
],
[
224,
225
],
[
224,
226
],
[
219,
227
],
[
227,
228
],
[
228,
229
],
[
219,
230
],
[
231,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
232,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
235,
239
],
[
231,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
243,
244
],
[
243,
245
],
[
240,
246
],
[
246,
247
],
[
247,
248
],
[
248,
249
],
[
247,
250
],
[
240,
251
],
[
251,
252
],
[
252,
253
],
[
253,
254
],
[
252,
255
],
[
360,
256
],
[
256,
257
],
[
256,
258
],
[
258,
259
],
[
256,
260
],
[
260,
261
],
[
256,
262
],
[
262,
263
],
[
262,
264
],
[
264,
265
],
[
265,
266
],
[
265,
267
],
[
262,
268
],
[
268,
269
],
[
256,
270
],
[
270,
271
],
[
270,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
275,
276
],
[
275,
277
],
[
274,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
273,
282
],
[
282,
283
],
[
283,
284
],
[
283,
285
],
[
272,
286
],
[
286,
287
],
[
287,
288
],
[
288,
289
],
[
287,
290
],
[
290,
291
],
[
291,
292
],
[
256,
293
],
[
293,
294
],
[
293,
295
],
[
295,
296
],
[
296,
297
],
[
297,
298
],
[
298,
299
],
[
298,
300
],
[
297,
301
],
[
301,
302
],
[
302,
303
],
[
303,
304
],
[
296,
305
],
[
305,
306
],
[
306,
307
],
[
306,
308
],
[
295,
309
],
[
309,
310
],
[
310,
311
],
[
311,
312
],
[
310,
313
],
[
313,
314
],
[
314,
315
],
[
256,
316
],
[
316,
317
],
[
316,
318
],
[
318,
319
],
[
319,
320
],
[
320,
321
],
[
321,
322
],
[
321,
323
],
[
320,
324
],
[
324,
325
],
[
325,
326
],
[
326,
327
],
[
319,
328
],
[
328,
329
],
[
329,
330
],
[
329,
331
],
[
318,
332
],
[
332,
333
],
[
333,
334
],
[
334,
335
],
[
256,
336
],
[
336,
337
],
[
336,
338
],
[
338,
339
],
[
339,
340
],
[
340,
341
],
[
341,
342
],
[
341,
343
],
[
340,
344
],
[
344,
345
],
[
345,
346
],
[
346,
347
],
[
339,
348
],
[
348,
349
],
[
349,
350
],
[
349,
351
],
[
338,
352
],
[
352,
353
],
[
353,
354
],
[
354,
355
],
[
353,
356
],
[
356,
357
],
[
357,
358
],
[
0,
359
],
[
359,
360
],
[
359,
361
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\n\npublic class Main {\n static InputReader in;\n static PrintWriter out;\n\n static class Solution {\n void solve() throws IOException {\n int n = in.nextInt();\n int m = in.nextInt();\n int l = in.nextInt();\n \n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n long[][] c = new long[n][l];\n \n for (int i = 0; i < n; i++) {\n for (int j= 0; j < m; j++) {\n a[i][j] = in.nextInt(); \n }\n }\n \n for (int i = 0; i < m; i++) {\n for (int j= 0; j < l; j++) {\n b[i][j] = in.nextInt();\n }\n }\n \n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n for (int k = 0; k < m; k++) {\n c[i][j] += a[i][k] * b[k][j];\n }\n }\n }\n \n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n out.print(c[i][j]);\n if (j != l - 1) {\n out.print(\" \");\n } else {\n out.print(\"\\n\");\n }\n }\n }\n// End solve()\n }\n// End Solution\n}\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n\n }\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.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n static InputReader in;\n static PrintWriter out;\n\n static class Solution {\n void solve() throws IOException {\n int n = in.nextInt();\n int m = in.nextInt();\n int l = in.nextInt();\n \n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n long[][] c = new long[n][l];\n \n for (int i = 0; i < n; i++) {\n for (int j= 0; j < m; j++) {\n a[i][j] = in.nextInt(); \n }\n }\n \n for (int i = 0; i < m; i++) {\n for (int j= 0; j < l; j++) {\n b[i][j] = in.nextInt();\n }\n }\n \n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n for (int k = 0; k < m; k++) {\n c[i][j] += a[i][k] * b[k][j];\n }\n }\n }\n \n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n out.print(c[i][j]);\n if (j != l - 1) {\n out.print(\" \");\n } else {\n out.print(\"\\n\");\n }\n }\n }\n// End solve()\n }\n// End Solution\n}\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n\n }\n\n}",
"Main",
"static InputReader in;",
"in",
"static PrintWriter out;",
"out",
"public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}",
"main",
"{\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}",
"in = new InputReader(System.in)",
"in",
"new InputReader(System.in)",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"Solution solver = new Solution();",
"solver",
"new Solution()",
"solver.solve()",
"solver.solve",
"solver",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class Solution {\n void solve() throws IOException {\n int n = in.nextInt();\n int m = in.nextInt();\n int l = in.nextInt();\n \n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n long[][] c = new long[n][l];\n \n for (int i = 0; i < n; i++) {\n for (int j= 0; j < m; j++) {\n a[i][j] = in.nextInt(); \n }\n }\n \n for (int i = 0; i < m; i++) {\n for (int j= 0; j < l; j++) {\n b[i][j] = in.nextInt();\n }\n }\n \n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n for (int k = 0; k < m; k++) {\n c[i][j] += a[i][k] * b[k][j];\n }\n }\n }\n \n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n out.print(c[i][j]);\n if (j != l - 1) {\n out.print(\" \");\n } else {\n out.print(\"\\n\");\n }\n }\n }\n// End solve()\n }\n// End Solution\n}",
"Solution",
"void solve() throws IOException {\n int n = in.nextInt();\n int m = in.nextInt();\n int l = in.nextInt();\n \n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n long[][] c = new long[n][l];\n \n for (int i = 0; i < n; i++) {\n for (int j= 0; j < m; j++) {\n a[i][j] = in.nextInt(); \n }\n }\n \n for (int i = 0; i < m; i++) {\n for (int j= 0; j < l; j++) {\n b[i][j] = in.nextInt();\n }\n }\n \n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n for (int k = 0; k < m; k++) {\n c[i][j] += a[i][k] * b[k][j];\n }\n }\n }\n \n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n out.print(c[i][j]);\n if (j != l - 1) {\n out.print(\" \");\n } else {\n out.print(\"\\n\");\n }\n }\n }\n// End solve()\n }",
"solve",
"{\n int n = in.nextInt();\n int m = in.nextInt();\n int l = in.nextInt();\n \n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n long[][] c = new long[n][l];\n \n for (int i = 0; i < n; i++) {\n for (int j= 0; j < m; j++) {\n a[i][j] = in.nextInt(); \n }\n }\n \n for (int i = 0; i < m; i++) {\n for (int j= 0; j < l; j++) {\n b[i][j] = in.nextInt();\n }\n }\n \n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n for (int k = 0; k < m; k++) {\n c[i][j] += a[i][k] * b[k][j];\n }\n }\n }\n \n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n out.print(c[i][j]);\n if (j != l - 1) {\n out.print(\" \");\n } else {\n out.print(\"\\n\");\n }\n }\n }\n// End solve()\n }",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"int m = in.nextInt();",
"m",
"in.nextInt()",
"in.nextInt",
"in",
"int l = in.nextInt();",
"l",
"in.nextInt()",
"in.nextInt",
"in",
"int[][] a = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[][] b = new int[m][l];",
"b",
"new int[m][l]",
"m",
"l",
"long[][] c = new long[n][l];",
"c",
"new long[n][l]",
"n",
"l",
"for (int i = 0; i < n; i++) {\n for (int j= 0; j < m; j++) {\n a[i][j] = in.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] = in.nextInt(); \n }\n }",
"{\n for (int j= 0; j < m; j++) {\n a[i][j] = in.nextInt(); \n }\n }",
"for (int j= 0; j < m; j++) {\n a[i][j] = in.nextInt(); \n }",
"int j= 0;",
"int j= 0;",
"j",
"0",
"j < m",
"j",
"m",
"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",
"for (int i = 0; i < m; i++) {\n for (int j= 0; j < l; j++) {\n b[i][j] = in.nextInt();\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n for (int j= 0; j < l; j++) {\n b[i][j] = in.nextInt();\n }\n }",
"{\n for (int j= 0; j < l; j++) {\n b[i][j] = in.nextInt();\n }\n }",
"for (int j= 0; j < l; j++) {\n b[i][j] = in.nextInt();\n }",
"int j= 0;",
"int j= 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n b[i][j] = in.nextInt();\n }",
"{\n b[i][j] = in.nextInt();\n }",
"b[i][j] = in.nextInt()",
"b[i][j]",
"b[i]",
"b",
"i",
"j",
"in.nextInt()",
"in.nextInt",
"in",
"for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n for (int k = 0; k < m; k++) {\n c[i][j] += a[i][k] * b[k][j];\n }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < l; j++) {\n for (int k = 0; k < m; k++) {\n c[i][j] += a[i][k] * b[k][j];\n }\n }\n }",
"{\n for (int j = 0; j < l; j++) {\n for (int k = 0; k < m; k++) {\n c[i][j] += a[i][k] * b[k][j];\n }\n }\n }",
"for (int j = 0; j < l; j++) {\n for (int k = 0; k < m; k++) {\n c[i][j] += a[i][k] * b[k][j];\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n for (int k = 0; k < m; k++) {\n c[i][j] += a[i][k] * b[k][j];\n }\n }",
"{\n for (int k = 0; k < m; k++) {\n c[i][j] += a[i][k] * b[k][j];\n }\n }",
"for (int k = 0; k < m; k++) {\n c[i][j] += a[i][k] * b[k][j];\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"{\n c[i][j] += a[i][k] * b[k][j];\n }",
"{\n c[i][j] += a[i][k] * b[k][j];\n }",
"c[i][j] += a[i][k] * b[k][j]",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"a[i][k] * b[k][j]",
"a[i][k]",
"a[i]",
"a",
"i",
"k",
"b[k][j]",
"b[k]",
"b",
"k",
"j",
"for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n out.print(c[i][j]);\n if (j != l - 1) {\n out.print(\" \");\n } else {\n out.print(\"\\n\");\n }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < l; j++) {\n out.print(c[i][j]);\n if (j != l - 1) {\n out.print(\" \");\n } else {\n out.print(\"\\n\");\n }\n }\n }",
"{\n for (int j = 0; j < l; j++) {\n out.print(c[i][j]);\n if (j != l - 1) {\n out.print(\" \");\n } else {\n out.print(\"\\n\");\n }\n }\n }",
"for (int j = 0; j < l; j++) {\n out.print(c[i][j]);\n if (j != l - 1) {\n out.print(\" \");\n } else {\n out.print(\"\\n\");\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n out.print(c[i][j]);\n if (j != l - 1) {\n out.print(\" \");\n } else {\n out.print(\"\\n\");\n }\n }",
"{\n out.print(c[i][j]);\n if (j != l - 1) {\n out.print(\" \");\n } else {\n out.print(\"\\n\");\n }\n }",
"out.print(c[i][j])",
"out.print",
"out",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"if (j != l - 1) {\n out.print(\" \");\n } else {\n out.print(\"\\n\");\n }",
"j != l - 1",
"j",
"l - 1",
"l",
"1",
"{\n out.print(\" \");\n }",
"out.print(\" \")",
"out.print",
"out",
"\" \"",
"{\n out.print(\"\\n\");\n }",
"out.print(\"\\n\")",
"out.print",
"out",
"\"\\n\"",
"static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n\n }",
"InputReader",
"public BufferedReader br;",
"br",
"public StringTokenizer st;",
"st",
"public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }",
"InputReader",
"{\n br = new BufferedReader(new InputStreamReader(stream));\n }",
"br = new BufferedReader(new InputStreamReader(stream))",
"br",
"new BufferedReader(new InputStreamReader(stream))",
"InputStream stream",
"stream",
"public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }",
"nextInt",
"{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }",
"while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return Integer.parseInt(st.nextToken());",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }",
"nextLong",
"{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }",
"while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return Long.parseLong(st.nextToken());",
"Long.parseLong(st.nextToken())",
"Long.parseLong",
"Long",
"st.nextToken()",
"st.nextToken",
"st",
"public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\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",
"public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }",
"nextDouble",
"{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }",
"while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return Double.parseDouble(st.nextToken());",
"Double.parseDouble(st.nextToken())",
"Double.parseDouble",
"Double",
"st.nextToken()",
"st.nextToken",
"st",
"public class Main {\n static InputReader in;\n static PrintWriter out;\n\n static class Solution {\n void solve() throws IOException {\n int n = in.nextInt();\n int m = in.nextInt();\n int l = in.nextInt();\n \n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n long[][] c = new long[n][l];\n \n for (int i = 0; i < n; i++) {\n for (int j= 0; j < m; j++) {\n a[i][j] = in.nextInt(); \n }\n }\n \n for (int i = 0; i < m; i++) {\n for (int j= 0; j < l; j++) {\n b[i][j] = in.nextInt();\n }\n }\n \n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n for (int k = 0; k < m; k++) {\n c[i][j] += a[i][k] * b[k][j];\n }\n }\n }\n \n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n out.print(c[i][j]);\n if (j != l - 1) {\n out.print(\" \");\n } else {\n out.print(\"\\n\");\n }\n }\n }\n// End solve()\n }\n// End Solution\n}\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n\n }\n\n}",
"public class Main {\n static InputReader in;\n static PrintWriter out;\n\n static class Solution {\n void solve() throws IOException {\n int n = in.nextInt();\n int m = in.nextInt();\n int l = in.nextInt();\n \n int[][] a = new int[n][m];\n int[][] b = new int[m][l];\n long[][] c = new long[n][l];\n \n for (int i = 0; i < n; i++) {\n for (int j= 0; j < m; j++) {\n a[i][j] = in.nextInt(); \n }\n }\n \n for (int i = 0; i < m; i++) {\n for (int j= 0; j < l; j++) {\n b[i][j] = in.nextInt();\n }\n }\n \n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n for (int k = 0; k < m; k++) {\n c[i][j] += a[i][k] * b[k][j];\n }\n }\n }\n \n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n out.print(c[i][j]);\n if (j != l - 1) {\n out.print(\" \");\n } else {\n out.print(\"\\n\");\n }\n }\n }\n// End solve()\n }\n// End Solution\n}\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n\n }\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class Main {
static InputReader in;
static PrintWriter out;
static class Solution {
void solve() throws IOException {
int n = in.nextInt();
int m = in.nextInt();
int l = in.nextInt();
int[][] a = new int[n][m];
int[][] b = new int[m][l];
long[][] c = new long[n][l];
for (int i = 0; i < n; i++) {
for (int j= 0; j < m; j++) {
a[i][j] = in.nextInt();
}
}
for (int i = 0; i < m; i++) {
for (int j= 0; j < l; j++) {
b[i][j] = in.nextInt();
}
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < l; j++) {
for (int k = 0; k < m; k++) {
c[i][j] += a[i][k] * b[k][j];
}
}
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < l; j++) {
out.print(c[i][j]);
if (j != l - 1) {
out.print(" ");
} else {
out.print("\n");
}
}
}
// End solve()
}
// End Solution
}
public static void main(String[] args) throws IOException {
in = new InputReader(System.in);
out = new PrintWriter(System.out);
Solution solver = new Solution();
solver.solve();
out.close();
}
static class InputReader {
public BufferedReader br;
public StringTokenizer st;
public InputReader(InputStream stream) {
br = new BufferedReader(new InputStreamReader(stream));
}
public int nextInt() throws IOException {
while (st == null || !st.hasMoreTokens()) {
st = new StringTokenizer(br.readLine());
}
return Integer.parseInt(st.nextToken());
}
public long nextLong() throws IOException {
while (st == null || !st.hasMoreTokens()) {
st = new StringTokenizer(br.readLine());
}
return Long.parseLong(st.nextToken());
}
public String next() throws IOException {
while (st == null || !st.hasMoreTokens()) {
st = new StringTokenizer(br.readLine());
}
return st.nextToken();
}
public double nextDouble() throws IOException {
while (st == null || !st.hasMoreTokens()) {
st = new StringTokenizer(br.readLine());
}
return Double.parseDouble(st.nextToken());
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
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,
4,
18,
13,
13,
14,
2,
13,
2,
13,
17,
4,
18,
13,
17,
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
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
194,
17
],
[
194,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
20,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
20,
39
],
[
39,
40
],
[
39,
41
],
[
20,
44
],
[
44,
45
],
[
44,
46
],
[
20,
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
],
[
20,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
84,
92
],
[
92,
93
],
[
93,
94
],
[
84,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
97,
105
],
[
105,
106
],
[
106,
107
],
[
97,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
110,
116
],
[
116,
117
],
[
117,
118
],
[
20,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
119,
127
],
[
127,
128
],
[
128,
129
],
[
119,
130
],
[
131,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
137,
138
],
[
137,
139
],
[
132,
140
],
[
140,
141
],
[
141,
142
],
[
132,
143
],
[
144,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
153,
154
],
[
153,
155
],
[
148,
156
],
[
156,
157
],
[
157,
158
],
[
148,
159
],
[
160,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
163,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
144,
174
],
[
174,
175
],
[
175,
176
],
[
174,
177
],
[
144,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
181,
183
],
[
178,
184
],
[
184,
185
],
[
185,
186
],
[
184,
187
],
[
178,
188
],
[
188,
189
],
[
189,
190
],
[
18,
191
],
[
191,
192
],
[
0,
193
],
[
193,
194
],
[
193,
195
]
] | [
"/*\nString[]の初期化、整数の型がlongになっているか\n関数(splitとかcontainsとか)内では\"+\"とかは正規表現となされるので\"\\\\+\"とする\n配列のコピーはarr1=arr.clone()\nHashSet<>[]はおのおの初期化した?????\n負の数の割り算は絶対値が小さいほうに切り捨てられるex.-1/2=0ので、ある値>kみたいな式だとバグらせやすいので注意\nある値>=kとして、切り上げた値をとるべき\n */\nimport java.util.*;\nimport java.awt.*;\nimport java.awt.Graphics.*;\nimport static java.lang.System.*;\nimport static java.lang.Math.*;\npublic class Main {\n public static void main(String[] $) {\n Scanner sc = new Scanner(in);\n int n=sc.nextInt(),m=sc.nextInt(),l=sc.nextInt();\n int[][] a=new int[n][m];\n int[][] b=new int[m][l];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j]=sc.nextInt();\n }\n }\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n b[i][j]=sc.nextInt();\n }\n }\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long c=0;\n for (int k = 0; k < m; k++) {\n c+=(long) a[i][k]*(long) b[k][j];\n }\n out.print(c);\n if(j!=l-1)out.print(\" \");\n else out.println();\n }\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.awt.*;",
"awt.*",
"java",
"import java.awt.Graphics.*;",
"Graphics.*",
"java.awt",
"import static java.lang.System.*;",
"import static java.lang.System.*;",
"import static java.lang.System.*;",
"import static java.lang.Math.*;",
"import static java.lang.Math.*;",
"import static java.lang.Math.*;",
"public class Main {\n public static void main(String[] $) {\n Scanner sc = new Scanner(in);\n int n=sc.nextInt(),m=sc.nextInt(),l=sc.nextInt();\n int[][] a=new int[n][m];\n int[][] b=new int[m][l];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j]=sc.nextInt();\n }\n }\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n b[i][j]=sc.nextInt();\n }\n }\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long c=0;\n for (int k = 0; k < m; k++) {\n c+=(long) a[i][k]*(long) b[k][j];\n }\n out.print(c);\n if(j!=l-1)out.print(\" \");\n else out.println();\n }\n }\n }\n}",
"Main",
"public static void main(String[] $) {\n Scanner sc = new Scanner(in);\n int n=sc.nextInt(),m=sc.nextInt(),l=sc.nextInt();\n int[][] a=new int[n][m];\n int[][] b=new int[m][l];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j]=sc.nextInt();\n }\n }\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n b[i][j]=sc.nextInt();\n }\n }\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long c=0;\n for (int k = 0; k < m; k++) {\n c+=(long) a[i][k]*(long) b[k][j];\n }\n out.print(c);\n if(j!=l-1)out.print(\" \");\n else out.println();\n }\n }\n }",
"main",
"{\n Scanner sc = new Scanner(in);\n int n=sc.nextInt(),m=sc.nextInt(),l=sc.nextInt();\n int[][] a=new int[n][m];\n int[][] b=new int[m][l];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j]=sc.nextInt();\n }\n }\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n b[i][j]=sc.nextInt();\n }\n }\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long c=0;\n for (int k = 0; k < m; k++) {\n c+=(long) a[i][k]*(long) b[k][j];\n }\n out.print(c);\n if(j!=l-1)out.print(\" \");\n else out.println();\n }\n }\n }",
"Scanner sc = new Scanner(in);",
"sc",
"new Scanner(in)",
"int n=sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"m=sc.nextInt()",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"l=sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] a=new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[][] b=new int[m][l];",
"b",
"new int[m][l]",
"m",
"l",
"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 for (int j = 0; j < l; j++) {\n b[i][j]=sc.nextInt();\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < l; j++) {\n b[i][j]=sc.nextInt();\n }\n }",
"{\n for (int j = 0; j < l; j++) {\n b[i][j]=sc.nextInt();\n }\n }",
"for (int j = 0; j < l; j++) {\n b[i][j]=sc.nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n b[i][j]=sc.nextInt();\n }",
"{\n b[i][j]=sc.nextInt();\n }",
"b[i][j]=sc.nextInt()",
"b[i][j]",
"b[i]",
"b",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long c=0;\n for (int k = 0; k < m; k++) {\n c+=(long) a[i][k]*(long) b[k][j];\n }\n out.print(c);\n if(j!=l-1)out.print(\" \");\n else out.println();\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < l; j++) {\n long c=0;\n for (int k = 0; k < m; k++) {\n c+=(long) a[i][k]*(long) b[k][j];\n }\n out.print(c);\n if(j!=l-1)out.print(\" \");\n else out.println();\n }\n }",
"{\n for (int j = 0; j < l; j++) {\n long c=0;\n for (int k = 0; k < m; k++) {\n c+=(long) a[i][k]*(long) b[k][j];\n }\n out.print(c);\n if(j!=l-1)out.print(\" \");\n else out.println();\n }\n }",
"for (int j = 0; j < l; j++) {\n long c=0;\n for (int k = 0; k < m; k++) {\n c+=(long) a[i][k]*(long) b[k][j];\n }\n out.print(c);\n if(j!=l-1)out.print(\" \");\n else out.println();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n long c=0;\n for (int k = 0; k < m; k++) {\n c+=(long) a[i][k]*(long) b[k][j];\n }\n out.print(c);\n if(j!=l-1)out.print(\" \");\n else out.println();\n }",
"{\n long c=0;\n for (int k = 0; k < m; k++) {\n c+=(long) a[i][k]*(long) b[k][j];\n }\n out.print(c);\n if(j!=l-1)out.print(\" \");\n else out.println();\n }",
"long c=0;",
"c",
"0",
"for (int k = 0; k < m; k++) {\n c+=(long) a[i][k]*(long) b[k][j];\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"{\n c+=(long) a[i][k]*(long) b[k][j];\n }",
"{\n c+=(long) a[i][k]*(long) b[k][j];\n }",
"c+=(long) a[i][k]*(long) b[k][j]",
"c",
"(long) a[i][k]*(long) b[k][j]",
"(long) a[i][k]",
"a[i]",
"a",
"i",
"k",
"(long) b[k][j]",
"b[k]",
"b",
"k",
"j",
"out.print(c)",
"out.print",
"out",
"c",
"if(j!=l-1)out.print(\" \");\n else out.println();",
"j!=l-1",
"j",
"l-1",
"l",
"1",
"out.print(\" \")",
"out.print",
"out",
"\" \"",
"out.println()",
"out.println",
"out",
"String[] $",
"$",
"public class Main {\n public static void main(String[] $) {\n Scanner sc = new Scanner(in);\n int n=sc.nextInt(),m=sc.nextInt(),l=sc.nextInt();\n int[][] a=new int[n][m];\n int[][] b=new int[m][l];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j]=sc.nextInt();\n }\n }\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n b[i][j]=sc.nextInt();\n }\n }\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long c=0;\n for (int k = 0; k < m; k++) {\n c+=(long) a[i][k]*(long) b[k][j];\n }\n out.print(c);\n if(j!=l-1)out.print(\" \");\n else out.println();\n }\n }\n }\n}",
"public class Main {\n public static void main(String[] $) {\n Scanner sc = new Scanner(in);\n int n=sc.nextInt(),m=sc.nextInt(),l=sc.nextInt();\n int[][] a=new int[n][m];\n int[][] b=new int[m][l];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j]=sc.nextInt();\n }\n }\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < l; j++) {\n b[i][j]=sc.nextInt();\n }\n }\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < l; j++) {\n long c=0;\n for (int k = 0; k < m; k++) {\n c+=(long) a[i][k]*(long) b[k][j];\n }\n out.print(c);\n if(j!=l-1)out.print(\" \");\n else out.println();\n }\n }\n }\n}",
"Main"
] | /*
String[]の初期化、整数の型がlongになっているか
関数(splitとかcontainsとか)内では"+"とかは正規表現となされるので"\\+"とする
配列のコピーはarr1=arr.clone()
HashSet<>[]はおのおの初期化した?????
負の数の割り算は絶対値が小さいほうに切り捨てられるex.-1/2=0ので、ある値>kみたいな式だとバグらせやすいので注意
ある値>=kとして、切り上げた値をとるべき
*/
import java.util.*;
import java.awt.*;
import java.awt.Graphics.*;
import static java.lang.System.*;
import static java.lang.Math.*;
public class Main {
public static void main(String[] $) {
Scanner sc = new Scanner(in);
int n=sc.nextInt(),m=sc.nextInt(),l=sc.nextInt();
int[][] a=new int[n][m];
int[][] b=new int[m][l];
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++) {
for (int j = 0; j < l; j++) {
b[i][j]=sc.nextInt();
}
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < l; j++) {
long c=0;
for (int k = 0; k < m; k++) {
c+=(long) a[i][k]*(long) b[k][j];
}
out.print(c);
if(j!=l-1)out.print(" ");
else 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,
4,
18,
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,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
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,
14,
2,
13,
2,
13,
17,
4,
18,
18,
13,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
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
],
[
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
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
98,
104
],
[
104,
105
],
[
105,
106
],
[
8,
107
],
[
107,
108
],
[
8,
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
],
[
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
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
134,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
167,
169
],
[
164,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
170,
175
],
[
175,
176
],
[
175,
177
],
[
164,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
178,
183
],
[
6,
184
],
[
184,
185
]
] | [
"import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n int n = scanner.nextInt();\n int m = scanner.nextInt();\n int l = scanner.nextInt();\n\n long[][] a = new long[n][m];\n long[][] b = new long[m][l];\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n a[i][j] = scanner.nextInt();\n }\n }\n for(int i = 0; i < m; i++){\n for(int j = 0; j < l; j++){\n b[i][j] = scanner.nextInt();\n }\n }\n long product;\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n product = 0;\n for(int k = 0; k < m; k++){\n product += a[i][k]*b[k][j];\n }\n if(j != l-1)System.out.print(product+\" \");\n else System.out.println(product);\n }\n }\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n int n = scanner.nextInt();\n int m = scanner.nextInt();\n int l = scanner.nextInt();\n\n long[][] a = new long[n][m];\n long[][] b = new long[m][l];\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n a[i][j] = scanner.nextInt();\n }\n }\n for(int i = 0; i < m; i++){\n for(int j = 0; j < l; j++){\n b[i][j] = scanner.nextInt();\n }\n }\n long product;\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n product = 0;\n for(int k = 0; k < m; k++){\n product += a[i][k]*b[k][j];\n }\n if(j != l-1)System.out.print(product+\" \");\n else System.out.println(product);\n }\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n int n = scanner.nextInt();\n int m = scanner.nextInt();\n int l = scanner.nextInt();\n\n long[][] a = new long[n][m];\n long[][] b = new long[m][l];\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n a[i][j] = scanner.nextInt();\n }\n }\n for(int i = 0; i < m; i++){\n for(int j = 0; j < l; j++){\n b[i][j] = scanner.nextInt();\n }\n }\n long product;\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n product = 0;\n for(int k = 0; k < m; k++){\n product += a[i][k]*b[k][j];\n }\n if(j != l-1)System.out.print(product+\" \");\n else System.out.println(product);\n }\n }\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n\n int n = scanner.nextInt();\n int m = scanner.nextInt();\n int l = scanner.nextInt();\n\n long[][] a = new long[n][m];\n long[][] b = new long[m][l];\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n a[i][j] = scanner.nextInt();\n }\n }\n for(int i = 0; i < m; i++){\n for(int j = 0; j < l; j++){\n b[i][j] = scanner.nextInt();\n }\n }\n long product;\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n product = 0;\n for(int k = 0; k < m; k++){\n product += a[i][k]*b[k][j];\n }\n if(j != l-1)System.out.print(product+\" \");\n else System.out.println(product);\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 l = scanner.nextInt();",
"l",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long[][] a = new long[n][m];",
"a",
"new long[n][m]",
"n",
"m",
"long[][] b = new long[m][l];",
"b",
"new long[m][l]",
"m",
"l",
"for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++){\n a[i][j] = scanner.nextInt();\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < m; j++){\n a[i][j] = scanner.nextInt();\n }\n }",
"{\n for(int j = 0; j < m; j++){\n a[i][j] = scanner.nextInt();\n }\n }",
"for(int j = 0; j < m; j++){\n a[i][j] = scanner.nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n a[i][j] = scanner.nextInt();\n }",
"{\n a[i][j] = scanner.nextInt();\n }",
"a[i][j] = scanner.nextInt()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for(int i = 0; i < m; i++){\n for(int j = 0; j < l; j++){\n b[i][j] = scanner.nextInt();\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < l; j++){\n b[i][j] = scanner.nextInt();\n }\n }",
"{\n for(int j = 0; j < l; j++){\n b[i][j] = scanner.nextInt();\n }\n }",
"for(int j = 0; j < l; j++){\n b[i][j] = scanner.nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n b[i][j] = scanner.nextInt();\n }",
"{\n b[i][j] = scanner.nextInt();\n }",
"b[i][j] = scanner.nextInt()",
"b[i][j]",
"b[i]",
"b",
"i",
"j",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long product;",
"product",
"for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n product = 0;\n for(int k = 0; k < m; k++){\n product += a[i][k]*b[k][j];\n }\n if(j != l-1)System.out.print(product+\" \");\n else System.out.println(product);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < l; j++){\n product = 0;\n for(int k = 0; k < m; k++){\n product += a[i][k]*b[k][j];\n }\n if(j != l-1)System.out.print(product+\" \");\n else System.out.println(product);\n }\n }",
"{\n for(int j = 0; j < l; j++){\n product = 0;\n for(int k = 0; k < m; k++){\n product += a[i][k]*b[k][j];\n }\n if(j != l-1)System.out.print(product+\" \");\n else System.out.println(product);\n }\n }",
"for(int j = 0; j < l; j++){\n product = 0;\n for(int k = 0; k < m; k++){\n product += a[i][k]*b[k][j];\n }\n if(j != l-1)System.out.print(product+\" \");\n else System.out.println(product);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n product = 0;\n for(int k = 0; k < m; k++){\n product += a[i][k]*b[k][j];\n }\n if(j != l-1)System.out.print(product+\" \");\n else System.out.println(product);\n }",
"{\n product = 0;\n for(int k = 0; k < m; k++){\n product += a[i][k]*b[k][j];\n }\n if(j != l-1)System.out.print(product+\" \");\n else System.out.println(product);\n }",
"product = 0",
"product",
"0",
"for(int k = 0; k < m; k++){\n product += a[i][k]*b[k][j];\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"{\n product += a[i][k]*b[k][j];\n }",
"{\n product += a[i][k]*b[k][j];\n }",
"product += a[i][k]*b[k][j]",
"product",
"a[i][k]*b[k][j]",
"a[i][k]",
"a[i]",
"a",
"i",
"k",
"b[k][j]",
"b[k]",
"b",
"k",
"j",
"if(j != l-1)System.out.print(product+\" \");\n else System.out.println(product);",
"j != l-1",
"j",
"l-1",
"l",
"1",
"System.out.print(product+\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"product+\" \"",
"product",
"\" \"",
"System.out.println(product)",
"System.out.println",
"System.out",
"System",
"System.out",
"product",
"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 l = scanner.nextInt();
long[][] a = new long[n][m];
long[][] b = new long[m][l];
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++){
for(int j = 0; j < l; j++){
b[i][j] = scanner.nextInt();
}
}
long product;
for(int i = 0; i < n; i++){
for(int j = 0; j < l; j++){
product = 0;
for(int k = 0; k < m; k++){
product += a[i][k]*b[k][j];
}
if(j != l-1)System.out.print(product+" ");
else System.out.println(product);
}
}
}
}
|
[
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,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
17,
30,
41,
13,
20,
41,
13,
20,
41,
13,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
4,
18,
13,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
17,
0,
13,
4,
18,
13,
18,
4,
18,
4,
18,
13,
17,
17,
17,
0,
13,
4,
18,
13,
18,
4,
18,
4,
18,
13,
17,
17,
17,
0,
13,
4,
18,
13,
18,
4,
18,
4,
18,
13,
17,
17,
17,
41,
13,
20,
13,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
13,
17,
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,
11,
1,
41,
13,
2,
13,
17,
2,
13,
2,
2,
13,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
2,
2,
13,
13,
17,
13,
4,
18,
13,
18,
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,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
0,
18,
18,
13,
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,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
18,
18,
13,
13,
13,
17,
4,
18,
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
],
[
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
],
[
416,
32
],
[
416,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
46,
47
],
[
39,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
57,
58
],
[
39,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
36,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
67,
69
],
[
63,
70
],
[
70,
71
],
[
70,
72
],
[
63,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
74,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
63,
86
],
[
86,
87
],
[
87,
88
],
[
63,
89
],
[
89,
90
],
[
63,
91
],
[
91,
92
],
[
63,
93
],
[
93,
94
],
[
93,
95
],
[
63,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
102,
108
],
[
101,
109
],
[
63,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
116,
122
],
[
115,
123
],
[
63,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
132,
135
],
[
130,
136
],
[
129,
137
],
[
63,
138
],
[
138,
139
],
[
138,
140
],
[
63,
143
],
[
143,
144
],
[
143,
145
],
[
63,
148
],
[
148,
149
],
[
148,
150
],
[
63,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
153,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
160,
162
],
[
153,
163
],
[
163,
164
],
[
164,
165
],
[
153,
166
],
[
167,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
172,
175
],
[
170,
176
],
[
167,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
182,
183
],
[
182,
184
],
[
177,
185
],
[
185,
186
],
[
186,
187
],
[
177,
188
],
[
189,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
194,
196
],
[
191,
197
],
[
190,
198
],
[
198,
199
],
[
199,
200
],
[
198,
201
],
[
201,
202
],
[
201,
203
],
[
63,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
208,
210
],
[
204,
211
],
[
211,
212
],
[
211,
213
],
[
214,
214
],
[
214,
215
],
[
214,
216
],
[
214,
217
],
[
204,
218
],
[
218,
219
],
[
219,
220
],
[
204,
221
],
[
222,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
227,
230
],
[
225,
231
],
[
222,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
232,
237
],
[
237,
238
],
[
237,
239
],
[
232,
240
],
[
240,
241
],
[
241,
242
],
[
232,
243
],
[
244,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
247,
248
],
[
247,
249
],
[
250,
250
],
[
250,
251
],
[
250,
252
],
[
250,
253
],
[
246,
254
],
[
245,
255
],
[
255,
256
],
[
256,
257
],
[
255,
258
],
[
258,
259
],
[
258,
260
],
[
63,
261
],
[
261,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
261,
266
],
[
266,
267
],
[
266,
268
],
[
261,
269
],
[
269,
270
],
[
270,
271
],
[
261,
272
],
[
273,
273
],
[
273,
274
],
[
274,
275
],
[
275,
276
],
[
276,
277
],
[
276,
278
],
[
274,
279
],
[
279,
280
],
[
279,
281
],
[
274,
282
],
[
282,
283
],
[
283,
284
],
[
274,
285
],
[
286,
286
],
[
286,
287
],
[
287,
288
],
[
288,
289
],
[
289,
290
],
[
289,
291
],
[
288,
292
],
[
287,
293
],
[
63,
294
],
[
294,
295
],
[
295,
296
],
[
296,
297
],
[
296,
298
],
[
294,
299
],
[
299,
300
],
[
299,
301
],
[
294,
302
],
[
302,
303
],
[
303,
304
],
[
294,
305
],
[
306,
306
],
[
306,
307
],
[
307,
308
],
[
308,
309
],
[
309,
310
],
[
309,
311
],
[
307,
312
],
[
312,
313
],
[
312,
314
],
[
307,
315
],
[
315,
316
],
[
316,
317
],
[
307,
318
],
[
319,
319
],
[
319,
320
],
[
320,
321
],
[
321,
322
],
[
322,
323
],
[
322,
324
],
[
320,
325
],
[
325,
326
],
[
325,
327
],
[
320,
328
],
[
328,
329
],
[
329,
330
],
[
320,
331
],
[
332,
332
],
[
332,
333
],
[
333,
334
],
[
333,
335
],
[
335,
336
],
[
336,
337
],
[
337,
338
],
[
337,
339
],
[
336,
340
],
[
335,
341
],
[
341,
342
],
[
342,
343
],
[
342,
344
],
[
341,
345
],
[
332,
346
],
[
346,
347
],
[
347,
348
],
[
348,
349
],
[
348,
350
],
[
347,
351
],
[
346,
352
],
[
63,
353
],
[
353,
354
],
[
354,
355
],
[
355,
356
],
[
355,
357
],
[
353,
358
],
[
358,
359
],
[
358,
360
],
[
353,
361
],
[
361,
362
],
[
362,
363
],
[
353,
364
],
[
365,
365
],
[
365,
366
],
[
366,
367
],
[
367,
368
],
[
368,
369
],
[
368,
370
],
[
366,
371
],
[
371,
372
],
[
371,
373
],
[
366,
374
],
[
374,
375
],
[
375,
376
],
[
366,
377
],
[
378,
378
],
[
378,
379
],
[
379,
380
],
[
380,
381
],
[
380,
382
],
[
382,
383
],
[
382,
384
],
[
379,
385
],
[
385,
386
],
[
386,
387
],
[
387,
388
],
[
388,
389
],
[
388,
390
],
[
386,
391
],
[
391,
392
],
[
392,
393
],
[
392,
394
],
[
391,
395
],
[
379,
396
],
[
396,
397
],
[
397,
398
],
[
398,
399
],
[
399,
400
],
[
399,
401
],
[
397,
402
],
[
402,
403
],
[
403,
404
],
[
404,
405
],
[
404,
406
],
[
403,
407
],
[
402,
408
],
[
63,
409
],
[
409,
410
],
[
410,
411
],
[
409,
412
],
[
33,
413
],
[
413,
414
],
[
0,
415
],
[
415,
416
],
[
415,
417
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Comparator;\nimport java.util.stream.Stream;\n\nimport java.util.Set;\nimport java.util.HashSet;\n\npublic class Main {\n\n public static void main(String[] args) {\n\ttry {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\t String line = \"\";\n\n\t while((line = br.readLine()) != null){\n\t\tlines.add(line);\n\t }\n\t br.close();\n\n\t //lines.add(\"2 3 4\");\n\t //lines.add(\"1 2 3\");\n\t //lines.add(\"0 1 3\");\n\t //lines.add(\"1 2 3 4\");\n\t //lines.add(\"1 0 2 1\");\n\t //lines.add(\"1 0 3 2\");\n\n\t Integer n, m, l = 0;\n\t n = Integer.parseInt(lines.get(0).split(\" \")[0]);\n\t m = Integer.parseInt(lines.get(0).split(\" \")[1]);\n\t l = Integer.parseInt(lines.get(0).split(\" \")[2]);\n\n\t Long[][] A = new Long[n][m];\n\t Long[][] b = new Long[m][l];\n\t Long[][] C = new Long[n][l];\n\n\t for (int i=1; i<n+1; i++) {\n\t\tString[] elements = lines.get(i).split(\" \");\n\t\tfor (int j=0; j<m; j++) {\n\t\t A[i-1][j] = Long.parseLong(elements[j]);\n\t\t}\n\t }\n\t for (int i=n+1; i<n+m+1; i++) {\n\t\tString[] elements = lines.get(i).split(\" \");\n\t\tfor (int j=0; j<l; j++) {\n\t\t b[i-n-1][j] = Long.parseLong(elements[j]);\n\t\t}\n\t }\n\n\t // [l]\n\t // __________\n\t // | | | |\n\t //\t | | | |\n\t // [n] | | | |\n\t // |--|--|--|\n\t //\n\t for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<l; j++) {\n\t\t C[i][j] = 0L;\n\t\t}\n\t }\n\n\t for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<m; j++) {\n\t\t for (int k=0; k<l; k++) {\n\t\t\t//System.out.print(String.format(\"%d * %d ,\", A[i][j], b[j][k]));\n\t\t\tLong x = A[i][j] * b[j][k];\n\t\t\tC[i][k] += x;\n\t\t }\n\t\t}\n\t }\n\n\t for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<l; j++) {\n\t\t if (j == l-1) {\n\t\t\tSystem.out.println(C[i][j]);\n\t\t } else {\n\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t }\n\t\t}\n\t }\n\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.Comparator;",
"Comparator",
"java.util",
"import java.util.stream.Stream;",
"Stream",
"java.util.stream",
"import java.util.Set;",
"Set",
"java.util",
"import java.util.HashSet;",
"HashSet",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n\ttry {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\t String line = \"\";\n\n\t while((line = br.readLine()) != null){\n\t\tlines.add(line);\n\t }\n\t br.close();\n\n\t //lines.add(\"2 3 4\");\n\t //lines.add(\"1 2 3\");\n\t //lines.add(\"0 1 3\");\n\t //lines.add(\"1 2 3 4\");\n\t //lines.add(\"1 0 2 1\");\n\t //lines.add(\"1 0 3 2\");\n\n\t Integer n, m, l = 0;\n\t n = Integer.parseInt(lines.get(0).split(\" \")[0]);\n\t m = Integer.parseInt(lines.get(0).split(\" \")[1]);\n\t l = Integer.parseInt(lines.get(0).split(\" \")[2]);\n\n\t Long[][] A = new Long[n][m];\n\t Long[][] b = new Long[m][l];\n\t Long[][] C = new Long[n][l];\n\n\t for (int i=1; i<n+1; i++) {\n\t\tString[] elements = lines.get(i).split(\" \");\n\t\tfor (int j=0; j<m; j++) {\n\t\t A[i-1][j] = Long.parseLong(elements[j]);\n\t\t}\n\t }\n\t for (int i=n+1; i<n+m+1; i++) {\n\t\tString[] elements = lines.get(i).split(\" \");\n\t\tfor (int j=0; j<l; j++) {\n\t\t b[i-n-1][j] = Long.parseLong(elements[j]);\n\t\t}\n\t }\n\n\t // [l]\n\t // __________\n\t // | | | |\n\t //\t | | | |\n\t // [n] | | | |\n\t // |--|--|--|\n\t //\n\t for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<l; j++) {\n\t\t C[i][j] = 0L;\n\t\t}\n\t }\n\n\t for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<m; j++) {\n\t\t for (int k=0; k<l; k++) {\n\t\t\t//System.out.print(String.format(\"%d * %d ,\", A[i][j], b[j][k]));\n\t\t\tLong x = A[i][j] * b[j][k];\n\t\t\tC[i][k] += x;\n\t\t }\n\t\t}\n\t }\n\n\t for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<l; j++) {\n\t\t if (j == l-1) {\n\t\t\tSystem.out.println(C[i][j]);\n\t\t } else {\n\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t }\n\t\t}\n\t }\n\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}\n }\n}",
"Main",
"public static void main(String[] args) {\n\ttry {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\t String line = \"\";\n\n\t while((line = br.readLine()) != null){\n\t\tlines.add(line);\n\t }\n\t br.close();\n\n\t //lines.add(\"2 3 4\");\n\t //lines.add(\"1 2 3\");\n\t //lines.add(\"0 1 3\");\n\t //lines.add(\"1 2 3 4\");\n\t //lines.add(\"1 0 2 1\");\n\t //lines.add(\"1 0 3 2\");\n\n\t Integer n, m, l = 0;\n\t n = Integer.parseInt(lines.get(0).split(\" \")[0]);\n\t m = Integer.parseInt(lines.get(0).split(\" \")[1]);\n\t l = Integer.parseInt(lines.get(0).split(\" \")[2]);\n\n\t Long[][] A = new Long[n][m];\n\t Long[][] b = new Long[m][l];\n\t Long[][] C = new Long[n][l];\n\n\t for (int i=1; i<n+1; i++) {\n\t\tString[] elements = lines.get(i).split(\" \");\n\t\tfor (int j=0; j<m; j++) {\n\t\t A[i-1][j] = Long.parseLong(elements[j]);\n\t\t}\n\t }\n\t for (int i=n+1; i<n+m+1; i++) {\n\t\tString[] elements = lines.get(i).split(\" \");\n\t\tfor (int j=0; j<l; j++) {\n\t\t b[i-n-1][j] = Long.parseLong(elements[j]);\n\t\t}\n\t }\n\n\t // [l]\n\t // __________\n\t // | | | |\n\t //\t | | | |\n\t // [n] | | | |\n\t // |--|--|--|\n\t //\n\t for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<l; j++) {\n\t\t C[i][j] = 0L;\n\t\t}\n\t }\n\n\t for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<m; j++) {\n\t\t for (int k=0; k<l; k++) {\n\t\t\t//System.out.print(String.format(\"%d * %d ,\", A[i][j], b[j][k]));\n\t\t\tLong x = A[i][j] * b[j][k];\n\t\t\tC[i][k] += x;\n\t\t }\n\t\t}\n\t }\n\n\t for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<l; j++) {\n\t\t if (j == l-1) {\n\t\t\tSystem.out.println(C[i][j]);\n\t\t } else {\n\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t }\n\t\t}\n\t }\n\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}\n }",
"main",
"{\n\ttry {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\t String line = \"\";\n\n\t while((line = br.readLine()) != null){\n\t\tlines.add(line);\n\t }\n\t br.close();\n\n\t //lines.add(\"2 3 4\");\n\t //lines.add(\"1 2 3\");\n\t //lines.add(\"0 1 3\");\n\t //lines.add(\"1 2 3 4\");\n\t //lines.add(\"1 0 2 1\");\n\t //lines.add(\"1 0 3 2\");\n\n\t Integer n, m, l = 0;\n\t n = Integer.parseInt(lines.get(0).split(\" \")[0]);\n\t m = Integer.parseInt(lines.get(0).split(\" \")[1]);\n\t l = Integer.parseInt(lines.get(0).split(\" \")[2]);\n\n\t Long[][] A = new Long[n][m];\n\t Long[][] b = new Long[m][l];\n\t Long[][] C = new Long[n][l];\n\n\t for (int i=1; i<n+1; i++) {\n\t\tString[] elements = lines.get(i).split(\" \");\n\t\tfor (int j=0; j<m; j++) {\n\t\t A[i-1][j] = Long.parseLong(elements[j]);\n\t\t}\n\t }\n\t for (int i=n+1; i<n+m+1; i++) {\n\t\tString[] elements = lines.get(i).split(\" \");\n\t\tfor (int j=0; j<l; j++) {\n\t\t b[i-n-1][j] = Long.parseLong(elements[j]);\n\t\t}\n\t }\n\n\t // [l]\n\t // __________\n\t // | | | |\n\t //\t | | | |\n\t // [n] | | | |\n\t // |--|--|--|\n\t //\n\t for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<l; j++) {\n\t\t C[i][j] = 0L;\n\t\t}\n\t }\n\n\t for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<m; j++) {\n\t\t for (int k=0; k<l; k++) {\n\t\t\t//System.out.print(String.format(\"%d * %d ,\", A[i][j], b[j][k]));\n\t\t\tLong x = A[i][j] * b[j][k];\n\t\t\tC[i][k] += x;\n\t\t }\n\t\t}\n\t }\n\n\t for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<l; j++) {\n\t\t if (j == l-1) {\n\t\t\tSystem.out.println(C[i][j]);\n\t\t } else {\n\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t }\n\t\t}\n\t }\n\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}\n }",
"try {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\t String line = \"\";\n\n\t while((line = br.readLine()) != null){\n\t\tlines.add(line);\n\t }\n\t br.close();\n\n\t //lines.add(\"2 3 4\");\n\t //lines.add(\"1 2 3\");\n\t //lines.add(\"0 1 3\");\n\t //lines.add(\"1 2 3 4\");\n\t //lines.add(\"1 0 2 1\");\n\t //lines.add(\"1 0 3 2\");\n\n\t Integer n, m, l = 0;\n\t n = Integer.parseInt(lines.get(0).split(\" \")[0]);\n\t m = Integer.parseInt(lines.get(0).split(\" \")[1]);\n\t l = Integer.parseInt(lines.get(0).split(\" \")[2]);\n\n\t Long[][] A = new Long[n][m];\n\t Long[][] b = new Long[m][l];\n\t Long[][] C = new Long[n][l];\n\n\t for (int i=1; i<n+1; i++) {\n\t\tString[] elements = lines.get(i).split(\" \");\n\t\tfor (int j=0; j<m; j++) {\n\t\t A[i-1][j] = Long.parseLong(elements[j]);\n\t\t}\n\t }\n\t for (int i=n+1; i<n+m+1; i++) {\n\t\tString[] elements = lines.get(i).split(\" \");\n\t\tfor (int j=0; j<l; j++) {\n\t\t b[i-n-1][j] = Long.parseLong(elements[j]);\n\t\t}\n\t }\n\n\t // [l]\n\t // __________\n\t // | | | |\n\t //\t | | | |\n\t // [n] | | | |\n\t // |--|--|--|\n\t //\n\t for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<l; j++) {\n\t\t C[i][j] = 0L;\n\t\t}\n\t }\n\n\t for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<m; j++) {\n\t\t for (int k=0; k<l; k++) {\n\t\t\t//System.out.print(String.format(\"%d * %d ,\", A[i][j], b[j][k]));\n\t\t\tLong x = A[i][j] * b[j][k];\n\t\t\tC[i][k] += x;\n\t\t }\n\t\t}\n\t }\n\n\t for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<l; j++) {\n\t\t if (j == l-1) {\n\t\t\tSystem.out.println(C[i][j]);\n\t\t } else {\n\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t }\n\t\t}\n\t }\n\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}",
"catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}",
"Exception e",
"{\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}",
"System.out.println(e.getMessage())",
"System.out.println",
"System.out",
"System",
"System.out",
"e.getMessage()",
"e.getMessage",
"e",
"System.out.println(Arrays.toString(e.getStackTrace()))",
"System.out.println",
"System.out",
"System",
"System.out",
"Arrays.toString(e.getStackTrace())",
"Arrays.toString",
"Arrays",
"e.getStackTrace()",
"e.getStackTrace",
"e",
"System.exit(0)",
"System.exit",
"System",
"0",
"{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\t String line = \"\";\n\n\t while((line = br.readLine()) != null){\n\t\tlines.add(line);\n\t }\n\t br.close();\n\n\t //lines.add(\"2 3 4\");\n\t //lines.add(\"1 2 3\");\n\t //lines.add(\"0 1 3\");\n\t //lines.add(\"1 2 3 4\");\n\t //lines.add(\"1 0 2 1\");\n\t //lines.add(\"1 0 3 2\");\n\n\t Integer n, m, l = 0;\n\t n = Integer.parseInt(lines.get(0).split(\" \")[0]);\n\t m = Integer.parseInt(lines.get(0).split(\" \")[1]);\n\t l = Integer.parseInt(lines.get(0).split(\" \")[2]);\n\n\t Long[][] A = new Long[n][m];\n\t Long[][] b = new Long[m][l];\n\t Long[][] C = new Long[n][l];\n\n\t for (int i=1; i<n+1; i++) {\n\t\tString[] elements = lines.get(i).split(\" \");\n\t\tfor (int j=0; j<m; j++) {\n\t\t A[i-1][j] = Long.parseLong(elements[j]);\n\t\t}\n\t }\n\t for (int i=n+1; i<n+m+1; i++) {\n\t\tString[] elements = lines.get(i).split(\" \");\n\t\tfor (int j=0; j<l; j++) {\n\t\t b[i-n-1][j] = Long.parseLong(elements[j]);\n\t\t}\n\t }\n\n\t // [l]\n\t // __________\n\t // | | | |\n\t //\t | | | |\n\t // [n] | | | |\n\t // |--|--|--|\n\t //\n\t for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<l; j++) {\n\t\t C[i][j] = 0L;\n\t\t}\n\t }\n\n\t for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<m; j++) {\n\t\t for (int k=0; k<l; k++) {\n\t\t\t//System.out.print(String.format(\"%d * %d ,\", A[i][j], b[j][k]));\n\t\t\tLong x = A[i][j] * b[j][k];\n\t\t\tC[i][k] += x;\n\t\t }\n\t\t}\n\t }\n\n\t for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<l; j++) {\n\t\t if (j == l-1) {\n\t\t\tSystem.out.println(C[i][j]);\n\t\t } else {\n\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t }\n\t\t}\n\t }\n\n\t System.exit(0);\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"List<String> lines = new ArrayList<String>();",
"lines",
"new ArrayList<String>()",
"String line = \"\";",
"line",
"\"\"",
"while((line = br.readLine()) != null){\n\t\tlines.add(line);\n\t }",
"(line = br.readLine()) != null",
"(line = br.readLine())",
"line",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\t\tlines.add(line);\n\t }",
"lines.add(line)",
"lines.add",
"lines",
"line",
"br.close()",
"br.close",
"br",
"Integer n",
"n",
"m",
"m",
"l = 0;",
"l",
"0",
"n = Integer.parseInt(lines.get(0).split(\" \")[0])",
"n",
"Integer.parseInt(lines.get(0).split(\" \")[0])",
"Integer.parseInt",
"Integer",
"lines.get(0).split(\" \")[0]",
"lines.get(0).split(\" \")",
"lines.get(0).split",
"lines.get(0)",
"lines.get",
"lines",
"0",
"\" \"",
"0",
"m = Integer.parseInt(lines.get(0).split(\" \")[1])",
"m",
"Integer.parseInt(lines.get(0).split(\" \")[1])",
"Integer.parseInt",
"Integer",
"lines.get(0).split(\" \")[1]",
"lines.get(0).split(\" \")",
"lines.get(0).split",
"lines.get(0)",
"lines.get",
"lines",
"0",
"\" \"",
"1",
"l = Integer.parseInt(lines.get(0).split(\" \")[2])",
"l",
"Integer.parseInt(lines.get(0).split(\" \")[2])",
"Integer.parseInt",
"Integer",
"lines.get(0).split(\" \")[2]",
"lines.get(0).split(\" \")",
"lines.get(0).split",
"lines.get(0)",
"lines.get",
"lines",
"0",
"\" \"",
"2",
"Long[][] A = new Long[n][m];",
"A",
"new Long[n][m]",
"n",
"m",
"Long[][] b = new Long[m][l];",
"b",
"new Long[m][l]",
"m",
"l",
"Long[][] C = new Long[n][l];",
"C",
"new Long[n][l]",
"n",
"l",
"for (int i=1; i<n+1; i++) {\n\t\tString[] elements = lines.get(i).split(\" \");\n\t\tfor (int j=0; j<m; j++) {\n\t\t A[i-1][j] = Long.parseLong(elements[j]);\n\t\t}\n\t }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<n+1",
"i",
"n+1",
"n",
"1",
"i++",
"i++",
"i",
"{\n\t\tString[] elements = lines.get(i).split(\" \");\n\t\tfor (int j=0; j<m; j++) {\n\t\t A[i-1][j] = Long.parseLong(elements[j]);\n\t\t}\n\t }",
"{\n\t\tString[] elements = lines.get(i).split(\" \");\n\t\tfor (int j=0; j<m; j++) {\n\t\t A[i-1][j] = Long.parseLong(elements[j]);\n\t\t}\n\t }",
"String[] elements = lines.get(i).split(\" \");",
"elements",
"lines.get(i).split(\" \")",
"lines.get(i).split",
"lines.get(i)",
"lines.get",
"lines",
"i",
"\" \"",
"for (int j=0; j<m; j++) {\n\t\t A[i-1][j] = Long.parseLong(elements[j]);\n\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t A[i-1][j] = Long.parseLong(elements[j]);\n\t\t}",
"{\n\t\t A[i-1][j] = Long.parseLong(elements[j]);\n\t\t}",
"A[i-1][j] = Long.parseLong(elements[j])",
"A[i-1][j]",
"A[i-1]",
"A",
"i-1",
"i",
"1",
"j",
"Long.parseLong(elements[j])",
"Long.parseLong",
"Long",
"elements[j]",
"elements",
"j",
"for (int i=n+1; i<n+m+1; i++) {\n\t\tString[] elements = lines.get(i).split(\" \");\n\t\tfor (int j=0; j<l; j++) {\n\t\t b[i-n-1][j] = Long.parseLong(elements[j]);\n\t\t}\n\t }",
"int i=n+1;",
"int i=n+1;",
"i",
"n+1",
"n",
"1",
"i<n+m+1",
"i",
"n+m+1",
"n+m+1",
"n",
"m",
"1",
"i++",
"i++",
"i",
"{\n\t\tString[] elements = lines.get(i).split(\" \");\n\t\tfor (int j=0; j<l; j++) {\n\t\t b[i-n-1][j] = Long.parseLong(elements[j]);\n\t\t}\n\t }",
"{\n\t\tString[] elements = lines.get(i).split(\" \");\n\t\tfor (int j=0; j<l; j++) {\n\t\t b[i-n-1][j] = Long.parseLong(elements[j]);\n\t\t}\n\t }",
"String[] elements = lines.get(i).split(\" \");",
"elements",
"lines.get(i).split(\" \")",
"lines.get(i).split",
"lines.get(i)",
"lines.get",
"lines",
"i",
"\" \"",
"for (int j=0; j<l; j++) {\n\t\t b[i-n-1][j] = Long.parseLong(elements[j]);\n\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t b[i-n-1][j] = Long.parseLong(elements[j]);\n\t\t}",
"{\n\t\t b[i-n-1][j] = Long.parseLong(elements[j]);\n\t\t}",
"b[i-n-1][j] = Long.parseLong(elements[j])",
"b[i-n-1][j]",
"b[i-n-1]",
"b",
"i-n-1",
"i-n-1",
"i",
"n",
"1",
"j",
"Long.parseLong(elements[j])",
"Long.parseLong",
"Long",
"elements[j]",
"elements",
"j",
"for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<l; j++) {\n\t\t C[i][j] = 0L;\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<l; j++) {\n\t\t C[i][j] = 0L;\n\t\t}\n\t }",
"{\n\t\tfor (int j=0; j<l; j++) {\n\t\t C[i][j] = 0L;\n\t\t}\n\t }",
"for (int j=0; j<l; j++) {\n\t\t C[i][j] = 0L;\n\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t C[i][j] = 0L;\n\t\t}",
"{\n\t\t C[i][j] = 0L;\n\t\t}",
"C[i][j] = 0L",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"0L",
"for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<m; j++) {\n\t\t for (int k=0; k<l; k++) {\n\t\t\t//System.out.print(String.format(\"%d * %d ,\", A[i][j], b[j][k]));\n\t\t\tLong x = A[i][j] * b[j][k];\n\t\t\tC[i][k] += x;\n\t\t }\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 for (int k=0; k<l; k++) {\n\t\t\t//System.out.print(String.format(\"%d * %d ,\", A[i][j], b[j][k]));\n\t\t\tLong x = A[i][j] * b[j][k];\n\t\t\tC[i][k] += x;\n\t\t }\n\t\t}\n\t }",
"{\n\t\tfor (int j=0; j<m; j++) {\n\t\t for (int k=0; k<l; k++) {\n\t\t\t//System.out.print(String.format(\"%d * %d ,\", A[i][j], b[j][k]));\n\t\t\tLong x = A[i][j] * b[j][k];\n\t\t\tC[i][k] += x;\n\t\t }\n\t\t}\n\t }",
"for (int j=0; j<m; j++) {\n\t\t for (int k=0; k<l; k++) {\n\t\t\t//System.out.print(String.format(\"%d * %d ,\", A[i][j], b[j][k]));\n\t\t\tLong x = A[i][j] * b[j][k];\n\t\t\tC[i][k] += x;\n\t\t }\n\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t for (int k=0; k<l; k++) {\n\t\t\t//System.out.print(String.format(\"%d * %d ,\", A[i][j], b[j][k]));\n\t\t\tLong x = A[i][j] * b[j][k];\n\t\t\tC[i][k] += x;\n\t\t }\n\t\t}",
"{\n\t\t for (int k=0; k<l; k++) {\n\t\t\t//System.out.print(String.format(\"%d * %d ,\", A[i][j], b[j][k]));\n\t\t\tLong x = A[i][j] * b[j][k];\n\t\t\tC[i][k] += x;\n\t\t }\n\t\t}",
"for (int k=0; k<l; k++) {\n\t\t\t//System.out.print(String.format(\"%d * %d ,\", A[i][j], b[j][k]));\n\t\t\tLong x = A[i][j] * b[j][k];\n\t\t\tC[i][k] += x;\n\t\t }",
"int k=0;",
"int k=0;",
"k",
"0",
"k<l",
"k",
"l",
"k++",
"k++",
"k",
"{\n\t\t\t//System.out.print(String.format(\"%d * %d ,\", A[i][j], b[j][k]));\n\t\t\tLong x = A[i][j] * b[j][k];\n\t\t\tC[i][k] += x;\n\t\t }",
"{\n\t\t\t//System.out.print(String.format(\"%d * %d ,\", A[i][j], b[j][k]));\n\t\t\tLong x = A[i][j] * b[j][k];\n\t\t\tC[i][k] += x;\n\t\t }",
"Long x = A[i][j] * b[j][k];",
"x",
"A[i][j] * b[j][k]",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"b[j][k]",
"b[j]",
"b",
"j",
"k",
"C[i][k] += x",
"C[i][k]",
"C[i]",
"C",
"i",
"k",
"x",
"for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<l; j++) {\n\t\t if (j == l-1) {\n\t\t\tSystem.out.println(C[i][j]);\n\t\t } else {\n\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t }\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<l; j++) {\n\t\t if (j == l-1) {\n\t\t\tSystem.out.println(C[i][j]);\n\t\t } else {\n\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t }\n\t\t}\n\t }",
"{\n\t\tfor (int j=0; j<l; j++) {\n\t\t if (j == l-1) {\n\t\t\tSystem.out.println(C[i][j]);\n\t\t } else {\n\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t }\n\t\t}\n\t }",
"for (int j=0; j<l; j++) {\n\t\t if (j == l-1) {\n\t\t\tSystem.out.println(C[i][j]);\n\t\t } else {\n\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t }\n\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t if (j == l-1) {\n\t\t\tSystem.out.println(C[i][j]);\n\t\t } else {\n\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t }\n\t\t}",
"{\n\t\t if (j == l-1) {\n\t\t\tSystem.out.println(C[i][j]);\n\t\t } else {\n\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t }\n\t\t}",
"if (j == l-1) {\n\t\t\tSystem.out.println(C[i][j]);\n\t\t } else {\n\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t }",
"j == l-1",
"j",
"l-1",
"l",
"1",
"{\n\t\t\tSystem.out.println(C[i][j]);\n\t\t }",
"System.out.println(C[i][j])",
"System.out.println",
"System.out",
"System",
"System.out",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"{\n\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t }",
"System.out.print(C[i][j] + \" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"C[i][j] + \" \"",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"\" \"",
"System.exit(0)",
"System.exit",
"System",
"0",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n\ttry {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\t String line = \"\";\n\n\t while((line = br.readLine()) != null){\n\t\tlines.add(line);\n\t }\n\t br.close();\n\n\t //lines.add(\"2 3 4\");\n\t //lines.add(\"1 2 3\");\n\t //lines.add(\"0 1 3\");\n\t //lines.add(\"1 2 3 4\");\n\t //lines.add(\"1 0 2 1\");\n\t //lines.add(\"1 0 3 2\");\n\n\t Integer n, m, l = 0;\n\t n = Integer.parseInt(lines.get(0).split(\" \")[0]);\n\t m = Integer.parseInt(lines.get(0).split(\" \")[1]);\n\t l = Integer.parseInt(lines.get(0).split(\" \")[2]);\n\n\t Long[][] A = new Long[n][m];\n\t Long[][] b = new Long[m][l];\n\t Long[][] C = new Long[n][l];\n\n\t for (int i=1; i<n+1; i++) {\n\t\tString[] elements = lines.get(i).split(\" \");\n\t\tfor (int j=0; j<m; j++) {\n\t\t A[i-1][j] = Long.parseLong(elements[j]);\n\t\t}\n\t }\n\t for (int i=n+1; i<n+m+1; i++) {\n\t\tString[] elements = lines.get(i).split(\" \");\n\t\tfor (int j=0; j<l; j++) {\n\t\t b[i-n-1][j] = Long.parseLong(elements[j]);\n\t\t}\n\t }\n\n\t // [l]\n\t // __________\n\t // | | | |\n\t //\t | | | |\n\t // [n] | | | |\n\t // |--|--|--|\n\t //\n\t for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<l; j++) {\n\t\t C[i][j] = 0L;\n\t\t}\n\t }\n\n\t for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<m; j++) {\n\t\t for (int k=0; k<l; k++) {\n\t\t\t//System.out.print(String.format(\"%d * %d ,\", A[i][j], b[j][k]));\n\t\t\tLong x = A[i][j] * b[j][k];\n\t\t\tC[i][k] += x;\n\t\t }\n\t\t}\n\t }\n\n\t for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<l; j++) {\n\t\t if (j == l-1) {\n\t\t\tSystem.out.println(C[i][j]);\n\t\t } else {\n\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t }\n\t\t}\n\t }\n\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n\ttry {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\t String line = \"\";\n\n\t while((line = br.readLine()) != null){\n\t\tlines.add(line);\n\t }\n\t br.close();\n\n\t //lines.add(\"2 3 4\");\n\t //lines.add(\"1 2 3\");\n\t //lines.add(\"0 1 3\");\n\t //lines.add(\"1 2 3 4\");\n\t //lines.add(\"1 0 2 1\");\n\t //lines.add(\"1 0 3 2\");\n\n\t Integer n, m, l = 0;\n\t n = Integer.parseInt(lines.get(0).split(\" \")[0]);\n\t m = Integer.parseInt(lines.get(0).split(\" \")[1]);\n\t l = Integer.parseInt(lines.get(0).split(\" \")[2]);\n\n\t Long[][] A = new Long[n][m];\n\t Long[][] b = new Long[m][l];\n\t Long[][] C = new Long[n][l];\n\n\t for (int i=1; i<n+1; i++) {\n\t\tString[] elements = lines.get(i).split(\" \");\n\t\tfor (int j=0; j<m; j++) {\n\t\t A[i-1][j] = Long.parseLong(elements[j]);\n\t\t}\n\t }\n\t for (int i=n+1; i<n+m+1; i++) {\n\t\tString[] elements = lines.get(i).split(\" \");\n\t\tfor (int j=0; j<l; j++) {\n\t\t b[i-n-1][j] = Long.parseLong(elements[j]);\n\t\t}\n\t }\n\n\t // [l]\n\t // __________\n\t // | | | |\n\t //\t | | | |\n\t // [n] | | | |\n\t // |--|--|--|\n\t //\n\t for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<l; j++) {\n\t\t C[i][j] = 0L;\n\t\t}\n\t }\n\n\t for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<m; j++) {\n\t\t for (int k=0; k<l; k++) {\n\t\t\t//System.out.print(String.format(\"%d * %d ,\", A[i][j], b[j][k]));\n\t\t\tLong x = A[i][j] * b[j][k];\n\t\t\tC[i][k] += x;\n\t\t }\n\t\t}\n\t }\n\n\t for (int i=0; i<n; i++) {\n\t\tfor (int j=0; j<l; j++) {\n\t\t if (j == l-1) {\n\t\t\tSystem.out.println(C[i][j]);\n\t\t } else {\n\t\t\tSystem.out.print(C[i][j] + \" \");\n\t\t }\n\t\t}\n\t }\n\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.stream.Stream;
import java.util.Set;
import java.util.HashSet;
public class Main {
public static void main(String[] args) {
try {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
List<String> lines = new ArrayList<String>();
String line = "";
while((line = br.readLine()) != null){
lines.add(line);
}
br.close();
//lines.add("2 3 4");
//lines.add("1 2 3");
//lines.add("0 1 3");
//lines.add("1 2 3 4");
//lines.add("1 0 2 1");
//lines.add("1 0 3 2");
Integer n, m, l = 0;
n = Integer.parseInt(lines.get(0).split(" ")[0]);
m = Integer.parseInt(lines.get(0).split(" ")[1]);
l = Integer.parseInt(lines.get(0).split(" ")[2]);
Long[][] A = new Long[n][m];
Long[][] b = new Long[m][l];
Long[][] C = new Long[n][l];
for (int i=1; i<n+1; i++) {
String[] elements = lines.get(i).split(" ");
for (int j=0; j<m; j++) {
A[i-1][j] = Long.parseLong(elements[j]);
}
}
for (int i=n+1; i<n+m+1; i++) {
String[] elements = lines.get(i).split(" ");
for (int j=0; j<l; j++) {
b[i-n-1][j] = Long.parseLong(elements[j]);
}
}
// [l]
// __________
// | | | |
// | | | |
// [n] | | | |
// |--|--|--|
//
for (int i=0; i<n; i++) {
for (int j=0; j<l; j++) {
C[i][j] = 0L;
}
}
for (int i=0; i<n; i++) {
for (int j=0; j<m; j++) {
for (int k=0; k<l; k++) {
//System.out.print(String.format("%d * %d ,", A[i][j], b[j][k]));
Long x = A[i][j] * b[j][k];
C[i][k] += x;
}
}
}
for (int i=0; i<n; i++) {
for (int j=0; j<l; j++) {
if (j == l-1) {
System.out.println(C[i][j]);
} else {
System.out.print(C[i][j] + " ");
}
}
}
System.exit(0);
} catch (Exception e) {
System.out.println(e.getMessage());
System.out.println(Arrays.toString(e.getStackTrace()));
System.exit(0);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
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,
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,
0,
18,
13,
2,
2,
17,
13,
13,
4,
18,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
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,
2,
2,
17,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
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
],
[
207,
8
],
[
207,
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
],
[
27,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
11,
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
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
11,
75
],
[
75,
76
],
[
75,
77
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
11,
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
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
96,
104
],
[
104,
105
],
[
105,
106
],
[
96,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
108,
116
],
[
116,
117
],
[
117,
118
],
[
11,
119
],
[
119,
120
],
[
11,
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
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
139,
140
],
[
139,
141
],
[
134,
142
],
[
142,
143
],
[
143,
144
],
[
134,
145
],
[
146,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
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
],
[
163,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
167,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
146,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
185,
187
],
[
182,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
189,
194
],
[
194,
195
],
[
194,
196
],
[
182,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
198,
203
],
[
9,
204
],
[
204,
205
],
[
0,
206
],
[
206,
207
],
[
206,
208
]
] | [
"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\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\t\t\n\t\tint []a = new int [100*n+m];\n\t\tfor(int b=0;b<n;b++){\n\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\ta[100*b+c] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tint []b = new int[100*m+l];\n\t\tfor(int c=0;c<m;c++){\n\t\t\tfor(int d=0;d<l;d++)\n\t\t\tb[100*c+d] = sc.nextInt();\n\t\t}\n\t\t\n\t\tlong x;\n\t\tfor(int s=0;s<n;s++){\n\t\t\tfor(int t=0;t<l;t++){\n\t\t\t\tx=0;\n\t\t\t\tfor(int u=0;u<m;u++){\n\t\t\t\t\tx=x+a[100*s+u]*b[100*u+t];\n\t\t\t\t}\n\t\t\t\tif(t!=l-1){\n\t\t\t\t\tSystem.out.print(x+\" \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(x);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}\n\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\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\t\t\n\t\tint []a = new int [100*n+m];\n\t\tfor(int b=0;b<n;b++){\n\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\ta[100*b+c] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tint []b = new int[100*m+l];\n\t\tfor(int c=0;c<m;c++){\n\t\t\tfor(int d=0;d<l;d++)\n\t\t\tb[100*c+d] = sc.nextInt();\n\t\t}\n\t\t\n\t\tlong x;\n\t\tfor(int s=0;s<n;s++){\n\t\t\tfor(int t=0;t<l;t++){\n\t\t\t\tx=0;\n\t\t\t\tfor(int u=0;u<m;u++){\n\t\t\t\t\tx=x+a[100*s+u]*b[100*u+t];\n\t\t\t\t}\n\t\t\t\tif(t!=l-1){\n\t\t\t\t\tSystem.out.print(x+\" \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(x);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\t\t\n\t\tint []a = new int [100*n+m];\n\t\tfor(int b=0;b<n;b++){\n\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\ta[100*b+c] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tint []b = new int[100*m+l];\n\t\tfor(int c=0;c<m;c++){\n\t\t\tfor(int d=0;d<l;d++)\n\t\t\tb[100*c+d] = sc.nextInt();\n\t\t}\n\t\t\n\t\tlong x;\n\t\tfor(int s=0;s<n;s++){\n\t\t\tfor(int t=0;t<l;t++){\n\t\t\t\tx=0;\n\t\t\t\tfor(int u=0;u<m;u++){\n\t\t\t\t\tx=x+a[100*s+u]*b[100*u+t];\n\t\t\t\t}\n\t\t\t\tif(t!=l-1){\n\t\t\t\t\tSystem.out.print(x+\" \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(x);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\t\t\n\t\tint []a = new int [100*n+m];\n\t\tfor(int b=0;b<n;b++){\n\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\ta[100*b+c] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tint []b = new int[100*m+l];\n\t\tfor(int c=0;c<m;c++){\n\t\t\tfor(int d=0;d<l;d++)\n\t\t\tb[100*c+d] = sc.nextInt();\n\t\t}\n\t\t\n\t\tlong x;\n\t\tfor(int s=0;s<n;s++){\n\t\t\tfor(int t=0;t<l;t++){\n\t\t\t\tx=0;\n\t\t\t\tfor(int u=0;u<m;u++){\n\t\t\t\t\tx=x+a[100*s+u]*b[100*u+t];\n\t\t\t\t}\n\t\t\t\tif(t!=l-1){\n\t\t\t\t\tSystem.out.print(x+\" \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(x);\n\t\t\t\t}\n\t\t\t}\n\t\t}\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 l = sc.nextInt();",
"l",
"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\tfor(int c=0;c<m;c++){\n\t\t\t\ta[100*b+c] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int b=0;",
"int b=0;",
"b",
"0",
"b<n",
"b",
"n",
"b++",
"b++",
"b",
"{\n\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\ta[100*b+c] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\ta[100*b+c] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for(int c=0;c<m;c++){\n\t\t\t\ta[100*b+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\ta[100*b+c] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\ta[100*b+c] = sc.nextInt();\n\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[100*m+l];",
"b",
"new int[100*m+l]",
"100*m+l",
"100*m",
"100",
"m",
"l",
"for(int c=0;c<m;c++){\n\t\t\tfor(int d=0;d<l;d++)\n\t\t\tb[100*c+d] = sc.nextInt();\n\t\t}",
"int c=0;",
"int c=0;",
"c",
"0",
"c<m",
"c",
"m",
"c++",
"c++",
"c",
"{\n\t\t\tfor(int d=0;d<l;d++)\n\t\t\tb[100*c+d] = sc.nextInt();\n\t\t}",
"{\n\t\t\tfor(int d=0;d<l;d++)\n\t\t\tb[100*c+d] = sc.nextInt();\n\t\t}",
"for(int d=0;d<l;d++)\n\t\t\tb[100*c+d] = sc.nextInt();",
"int d=0;",
"int d=0;",
"d",
"0",
"d<l",
"d",
"l",
"d++",
"d++",
"d",
"b[100*c+d] = sc.nextInt();",
"b[100*c+d] = sc.nextInt()",
"b[100*c+d]",
"b",
"100*c+d",
"100*c",
"100",
"c",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long x;",
"x",
"for(int s=0;s<n;s++){\n\t\t\tfor(int t=0;t<l;t++){\n\t\t\t\tx=0;\n\t\t\t\tfor(int u=0;u<m;u++){\n\t\t\t\t\tx=x+a[100*s+u]*b[100*u+t];\n\t\t\t\t}\n\t\t\t\tif(t!=l-1){\n\t\t\t\t\tSystem.out.print(x+\" \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(x);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int s=0;",
"int s=0;",
"s",
"0",
"s<n",
"s",
"n",
"s++",
"s++",
"s",
"{\n\t\t\tfor(int t=0;t<l;t++){\n\t\t\t\tx=0;\n\t\t\t\tfor(int u=0;u<m;u++){\n\t\t\t\t\tx=x+a[100*s+u]*b[100*u+t];\n\t\t\t\t}\n\t\t\t\tif(t!=l-1){\n\t\t\t\t\tSystem.out.print(x+\" \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(x);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int t=0;t<l;t++){\n\t\t\t\tx=0;\n\t\t\t\tfor(int u=0;u<m;u++){\n\t\t\t\t\tx=x+a[100*s+u]*b[100*u+t];\n\t\t\t\t}\n\t\t\t\tif(t!=l-1){\n\t\t\t\t\tSystem.out.print(x+\" \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(x);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int t=0;t<l;t++){\n\t\t\t\tx=0;\n\t\t\t\tfor(int u=0;u<m;u++){\n\t\t\t\t\tx=x+a[100*s+u]*b[100*u+t];\n\t\t\t\t}\n\t\t\t\tif(t!=l-1){\n\t\t\t\t\tSystem.out.print(x+\" \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(x);\n\t\t\t\t}\n\t\t\t}",
"int t=0;",
"int t=0;",
"t",
"0",
"t<l",
"t",
"l",
"t++",
"t++",
"t",
"{\n\t\t\t\tx=0;\n\t\t\t\tfor(int u=0;u<m;u++){\n\t\t\t\t\tx=x+a[100*s+u]*b[100*u+t];\n\t\t\t\t}\n\t\t\t\tif(t!=l-1){\n\t\t\t\t\tSystem.out.print(x+\" \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(x);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tx=0;\n\t\t\t\tfor(int u=0;u<m;u++){\n\t\t\t\t\tx=x+a[100*s+u]*b[100*u+t];\n\t\t\t\t}\n\t\t\t\tif(t!=l-1){\n\t\t\t\t\tSystem.out.print(x+\" \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(x);\n\t\t\t\t}\n\t\t\t}",
"x=0",
"x",
"0",
"for(int u=0;u<m;u++){\n\t\t\t\t\tx=x+a[100*s+u]*b[100*u+t];\n\t\t\t\t}",
"int u=0;",
"int u=0;",
"u",
"0",
"u<m",
"u",
"m",
"u++",
"u++",
"u",
"{\n\t\t\t\t\tx=x+a[100*s+u]*b[100*u+t];\n\t\t\t\t}",
"{\n\t\t\t\t\tx=x+a[100*s+u]*b[100*u+t];\n\t\t\t\t}",
"x=x+a[100*s+u]*b[100*u+t]",
"x",
"x+a[100*s+u]*b[100*u+t]",
"x",
"a[100*s+u]*b[100*u+t]",
"a[100*s+u]",
"a",
"100*s+u",
"100*s",
"100",
"s",
"u",
"b[100*u+t]",
"b",
"100*u+t",
"100*u",
"100",
"u",
"t",
"if(t!=l-1){\n\t\t\t\t\tSystem.out.print(x+\" \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(x);\n\t\t\t\t}",
"t!=l-1",
"t",
"l-1",
"l",
"1",
"{\n\t\t\t\t\tSystem.out.print(x+\" \");\n\t\t\t\t}",
"System.out.print(x+\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"x+\" \"",
"x",
"\" \"",
"{\n\t\t\t\t\tSystem.out.println(x);\n\t\t\t\t}",
"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\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\t\t\n\t\tint []a = new int [100*n+m];\n\t\tfor(int b=0;b<n;b++){\n\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\ta[100*b+c] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tint []b = new int[100*m+l];\n\t\tfor(int c=0;c<m;c++){\n\t\t\tfor(int d=0;d<l;d++)\n\t\t\tb[100*c+d] = sc.nextInt();\n\t\t}\n\t\t\n\t\tlong x;\n\t\tfor(int s=0;s<n;s++){\n\t\t\tfor(int t=0;t<l;t++){\n\t\t\t\tx=0;\n\t\t\t\tfor(int u=0;u<m;u++){\n\t\t\t\t\tx=x+a[100*s+u]*b[100*u+t];\n\t\t\t\t}\n\t\t\t\tif(t!=l-1){\n\t\t\t\t\tSystem.out.print(x+\" \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(x);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\t\t\n\t\tint []a = new int [100*n+m];\n\t\tfor(int b=0;b<n;b++){\n\t\t\tfor(int c=0;c<m;c++){\n\t\t\t\ta[100*b+c] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tint []b = new int[100*m+l];\n\t\tfor(int c=0;c<m;c++){\n\t\t\tfor(int d=0;d<l;d++)\n\t\t\tb[100*c+d] = sc.nextInt();\n\t\t}\n\t\t\n\t\tlong x;\n\t\tfor(int s=0;s<n;s++){\n\t\t\tfor(int t=0;t<l;t++){\n\t\t\t\tx=0;\n\t\t\t\tfor(int u=0;u<m;u++){\n\t\t\t\t\tx=x+a[100*s+u]*b[100*u+t];\n\t\t\t\t}\n\t\t\t\tif(t!=l-1){\n\t\t\t\t\tSystem.out.print(x+\" \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(x);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}\n\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 l = 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[100*m+l];
for(int c=0;c<m;c++){
for(int d=0;d<l;d++)
b[100*c+d] = sc.nextInt();
}
long x;
for(int s=0;s<n;s++){
for(int t=0;t<l;t++){
x=0;
for(int u=0;u<m;u++){
x=x+a[100*s+u]*b[100*u+t];
}
if(t!=l-1){
System.out.print(x+" ");
}else{
System.out.println(x);
}
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
38,
30,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
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,
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,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
30,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
18,
18,
13,
13,
13,
17,
30,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
226,
5
],
[
226,
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
],
[
8,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
26,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
26,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
26,
45
],
[
45,
46
],
[
45,
47
],
[
26,
50
],
[
50,
51
],
[
50,
52
],
[
26,
55
],
[
55,
56
],
[
55,
57
],
[
26,
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
],
[
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
],
[
26,
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
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
121,
127
],
[
127,
128
],
[
128,
129
],
[
26,
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
],
[
158,
159
],
[
158,
160
],
[
156,
161
],
[
161,
162
],
[
161,
163
],
[
156,
164
],
[
164,
165
],
[
165,
166
],
[
156,
167
],
[
168,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
169,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
176,
180
],
[
175,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
168,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
189,
191
],
[
186,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
196,
198
],
[
193,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
200,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
206,
210
],
[
205,
211
],
[
193,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
213,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
218,
222
],
[
6,
223
],
[
223,
224
],
[
0,
225
],
[
225,
226
],
[
225,
227
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tint n, m, l, i, j, k, a, b;\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tn = sc.nextInt();\n\t\t\tm = sc.nextInt();\n\t\t\tl = sc.nextInt();\n\t\t\tint n_m[][] = new int[n][m];\n\t\t\tint m_l[][] = new int[m][l];\n\t\t\tlong output[][] = new long[n][l]; //表の配列\n\t\t\tfor(i = 0; i < n; i++) {\n\t\t\t\tfor(j = 0; j < m; j++) {\n\t\t\t\t\tn_m[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < l; j++) {\n\t\t\t\t\tm_l[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\tfor(j = 0; j < m; j++) {\n\t\t\t\t\tfor(k = 0; k < l; k++) {\n\t\t\t\t\t\toutput[i][k] += n_m[i][j] * m_l[j][k];\n\t\t\t\t\t\tif(j == m - 1) {\n\t\t\t\t\t\t\tif(k < l - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(output[i][k] + \" \");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.println(output[i][k]);\n\t\t\t\t\t\t\t}\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}\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tint n, m, l, i, j, k, a, b;\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tn = sc.nextInt();\n\t\t\tm = sc.nextInt();\n\t\t\tl = sc.nextInt();\n\t\t\tint n_m[][] = new int[n][m];\n\t\t\tint m_l[][] = new int[m][l];\n\t\t\tlong output[][] = new long[n][l]; //表の配列\n\t\t\tfor(i = 0; i < n; i++) {\n\t\t\t\tfor(j = 0; j < m; j++) {\n\t\t\t\t\tn_m[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < l; j++) {\n\t\t\t\t\tm_l[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\tfor(j = 0; j < m; j++) {\n\t\t\t\t\tfor(k = 0; k < l; k++) {\n\t\t\t\t\t\toutput[i][k] += n_m[i][j] * m_l[j][k];\n\t\t\t\t\t\tif(j == m - 1) {\n\t\t\t\t\t\t\tif(k < l - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(output[i][k] + \" \");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.println(output[i][k]);\n\t\t\t\t\t\t\t}\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}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tint n, m, l, i, j, k, a, b;\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tn = sc.nextInt();\n\t\t\tm = sc.nextInt();\n\t\t\tl = sc.nextInt();\n\t\t\tint n_m[][] = new int[n][m];\n\t\t\tint m_l[][] = new int[m][l];\n\t\t\tlong output[][] = new long[n][l]; //表の配列\n\t\t\tfor(i = 0; i < n; i++) {\n\t\t\t\tfor(j = 0; j < m; j++) {\n\t\t\t\t\tn_m[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < l; j++) {\n\t\t\t\t\tm_l[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\tfor(j = 0; j < m; j++) {\n\t\t\t\t\tfor(k = 0; k < l; k++) {\n\t\t\t\t\t\toutput[i][k] += n_m[i][j] * m_l[j][k];\n\t\t\t\t\t\tif(j == m - 1) {\n\t\t\t\t\t\t\tif(k < l - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(output[i][k] + \" \");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.println(output[i][k]);\n\t\t\t\t\t\t\t}\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}\n\t}",
"main",
"{\n\t\tint n, m, l, i, j, k, a, b;\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tn = sc.nextInt();\n\t\t\tm = sc.nextInt();\n\t\t\tl = sc.nextInt();\n\t\t\tint n_m[][] = new int[n][m];\n\t\t\tint m_l[][] = new int[m][l];\n\t\t\tlong output[][] = new long[n][l]; //表の配列\n\t\t\tfor(i = 0; i < n; i++) {\n\t\t\t\tfor(j = 0; j < m; j++) {\n\t\t\t\t\tn_m[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < l; j++) {\n\t\t\t\t\tm_l[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\tfor(j = 0; j < m; j++) {\n\t\t\t\t\tfor(k = 0; k < l; k++) {\n\t\t\t\t\t\toutput[i][k] += n_m[i][j] * m_l[j][k];\n\t\t\t\t\t\tif(j == m - 1) {\n\t\t\t\t\t\t\tif(k < l - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(output[i][k] + \" \");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.println(output[i][k]);\n\t\t\t\t\t\t\t}\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}\n\t}",
"int n",
"n",
"m",
"m",
"l",
"l",
"i",
"i",
"j",
"j",
"k",
"k",
"a",
"a",
"b;",
"b",
"try (Scanner sc = new Scanner(System.in)) {\n\t\t\tn = sc.nextInt();\n\t\t\tm = sc.nextInt();\n\t\t\tl = sc.nextInt();\n\t\t\tint n_m[][] = new int[n][m];\n\t\t\tint m_l[][] = new int[m][l];\n\t\t\tlong output[][] = new long[n][l]; //表の配列\n\t\t\tfor(i = 0; i < n; i++) {\n\t\t\t\tfor(j = 0; j < m; j++) {\n\t\t\t\t\tn_m[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < l; j++) {\n\t\t\t\t\tm_l[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\tfor(j = 0; j < m; j++) {\n\t\t\t\t\tfor(k = 0; k < l; k++) {\n\t\t\t\t\t\toutput[i][k] += n_m[i][j] * m_l[j][k];\n\t\t\t\t\t\tif(j == m - 1) {\n\t\t\t\t\t\t\tif(k < l - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(output[i][k] + \" \");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.println(output[i][k]);\n\t\t\t\t\t\t\t}\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}",
"{\n\t\t\tn = sc.nextInt();\n\t\t\tm = sc.nextInt();\n\t\t\tl = sc.nextInt();\n\t\t\tint n_m[][] = new int[n][m];\n\t\t\tint m_l[][] = new int[m][l];\n\t\t\tlong output[][] = new long[n][l]; //表の配列\n\t\t\tfor(i = 0; i < n; i++) {\n\t\t\t\tfor(j = 0; j < m; j++) {\n\t\t\t\t\tn_m[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < l; j++) {\n\t\t\t\t\tm_l[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\tfor(j = 0; j < m; j++) {\n\t\t\t\t\tfor(k = 0; k < l; k++) {\n\t\t\t\t\t\toutput[i][k] += n_m[i][j] * m_l[j][k];\n\t\t\t\t\t\tif(j == m - 1) {\n\t\t\t\t\t\t\tif(k < l - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(output[i][k] + \" \");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.println(output[i][k]);\n\t\t\t\t\t\t\t}\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}",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"m = sc.nextInt()",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"l = sc.nextInt()",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int n_m[][] = new int[n][m];",
"n_m",
"new int[n][m]",
"n",
"m",
"int m_l[][] = new int[m][l];",
"m_l",
"new int[m][l]",
"m",
"l",
"long output[][] = new long[n][l];",
"output",
"new long[n][l]",
"n",
"l",
"for(i = 0; i < n; i++) {\n\t\t\t\tfor(j = 0; j < m; j++) {\n\t\t\t\t\tn_m[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(j = 0; j < m; j++) {\n\t\t\t\t\tn_m[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(j = 0; j < m; j++) {\n\t\t\t\t\tn_m[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}",
"for(j = 0; j < m; j++) {\n\t\t\t\t\tn_m[i][j] = sc.nextInt();\n\t\t\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tn_m[i][j] = sc.nextInt();\n\t\t\t\t}",
"{\n\t\t\t\t\tn_m[i][j] = sc.nextInt();\n\t\t\t\t}",
"n_m[i][j] = sc.nextInt()",
"n_m[i][j]",
"n_m[i]",
"n_m",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < l; j++) {\n\t\t\t\t\tm_l[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 < l; j++) {\n\t\t\t\t\tm_l[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(j = 0; j < l; j++) {\n\t\t\t\t\tm_l[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}",
"for(j = 0; j < l; j++) {\n\t\t\t\t\tm_l[i][j] = sc.nextInt();\n\t\t\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tm_l[i][j] = sc.nextInt();\n\t\t\t\t}",
"{\n\t\t\t\t\tm_l[i][j] = sc.nextInt();\n\t\t\t\t}",
"m_l[i][j] = sc.nextInt()",
"m_l[i][j]",
"m_l[i]",
"m_l",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(i = 0; i < n; i++) {\n\t\t\t\tfor(j = 0; j < m; j++) {\n\t\t\t\t\tfor(k = 0; k < l; k++) {\n\t\t\t\t\t\toutput[i][k] += n_m[i][j] * m_l[j][k];\n\t\t\t\t\t\tif(j == m - 1) {\n\t\t\t\t\t\t\tif(k < l - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(output[i][k] + \" \");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.println(output[i][k]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(j = 0; j < m; j++) {\n\t\t\t\t\tfor(k = 0; k < l; k++) {\n\t\t\t\t\t\toutput[i][k] += n_m[i][j] * m_l[j][k];\n\t\t\t\t\t\tif(j == m - 1) {\n\t\t\t\t\t\t\tif(k < l - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(output[i][k] + \" \");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.println(output[i][k]);\n\t\t\t\t\t\t\t}\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\t\tfor(j = 0; j < m; j++) {\n\t\t\t\t\tfor(k = 0; k < l; k++) {\n\t\t\t\t\t\toutput[i][k] += n_m[i][j] * m_l[j][k];\n\t\t\t\t\t\tif(j == m - 1) {\n\t\t\t\t\t\t\tif(k < l - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(output[i][k] + \" \");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.println(output[i][k]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"for(j = 0; j < m; j++) {\n\t\t\t\t\tfor(k = 0; k < l; k++) {\n\t\t\t\t\t\toutput[i][k] += n_m[i][j] * m_l[j][k];\n\t\t\t\t\t\tif(j == m - 1) {\n\t\t\t\t\t\t\tif(k < l - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(output[i][k] + \" \");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.println(output[i][k]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tfor(k = 0; k < l; k++) {\n\t\t\t\t\t\toutput[i][k] += n_m[i][j] * m_l[j][k];\n\t\t\t\t\t\tif(j == m - 1) {\n\t\t\t\t\t\t\tif(k < l - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(output[i][k] + \" \");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.println(output[i][k]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tfor(k = 0; k < l; k++) {\n\t\t\t\t\t\toutput[i][k] += n_m[i][j] * m_l[j][k];\n\t\t\t\t\t\tif(j == m - 1) {\n\t\t\t\t\t\t\tif(k < l - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(output[i][k] + \" \");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.println(output[i][k]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"for(k = 0; k < l; k++) {\n\t\t\t\t\t\toutput[i][k] += n_m[i][j] * m_l[j][k];\n\t\t\t\t\t\tif(j == m - 1) {\n\t\t\t\t\t\t\tif(k < l - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(output[i][k] + \" \");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.println(output[i][k]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"k = 0;",
"k = 0",
"k",
"0",
"k < l",
"k",
"l",
"k++",
"k++",
"k",
"{\n\t\t\t\t\t\toutput[i][k] += n_m[i][j] * m_l[j][k];\n\t\t\t\t\t\tif(j == m - 1) {\n\t\t\t\t\t\t\tif(k < l - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(output[i][k] + \" \");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.println(output[i][k]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\toutput[i][k] += n_m[i][j] * m_l[j][k];\n\t\t\t\t\t\tif(j == m - 1) {\n\t\t\t\t\t\t\tif(k < l - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(output[i][k] + \" \");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.println(output[i][k]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"output[i][k] += n_m[i][j] * m_l[j][k]",
"output[i][k]",
"output[i]",
"output",
"i",
"k",
"n_m[i][j] * m_l[j][k]",
"n_m[i][j]",
"n_m[i]",
"n_m",
"i",
"j",
"m_l[j][k]",
"m_l[j]",
"m_l",
"j",
"k",
"if(j == m - 1) {\n\t\t\t\t\t\t\tif(k < l - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(output[i][k] + \" \");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.println(output[i][k]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}",
"j == m - 1",
"j",
"m - 1",
"m",
"1",
"{\n\t\t\t\t\t\t\tif(k < l - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(output[i][k] + \" \");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.println(output[i][k]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}",
"if(k < l - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(output[i][k] + \" \");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.println(output[i][k]);\n\t\t\t\t\t\t\t}",
"k < l - 1",
"k",
"l - 1",
"l",
"1",
"{\n\t\t\t\t\t\t\t\tSystem.out.print(output[i][k] + \" \");\n\t\t\t\t\t\t\t}",
"System.out.print(output[i][k] + \" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"output[i][k] + \" \"",
"output[i][k]",
"output[i]",
"output",
"i",
"k",
"\" \"",
"{\n\t\t\t\t\t\t\t\tSystem.out.println(output[i][k]);\n\t\t\t\t\t\t\t}",
"System.out.println(output[i][k])",
"System.out.println",
"System.out",
"System",
"System.out",
"output[i][k]",
"output[i]",
"output",
"i",
"k",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tint n, m, l, i, j, k, a, b;\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tn = sc.nextInt();\n\t\t\tm = sc.nextInt();\n\t\t\tl = sc.nextInt();\n\t\t\tint n_m[][] = new int[n][m];\n\t\t\tint m_l[][] = new int[m][l];\n\t\t\tlong output[][] = new long[n][l]; //表の配列\n\t\t\tfor(i = 0; i < n; i++) {\n\t\t\t\tfor(j = 0; j < m; j++) {\n\t\t\t\t\tn_m[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < l; j++) {\n\t\t\t\t\tm_l[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\tfor(j = 0; j < m; j++) {\n\t\t\t\t\tfor(k = 0; k < l; k++) {\n\t\t\t\t\t\toutput[i][k] += n_m[i][j] * m_l[j][k];\n\t\t\t\t\t\tif(j == m - 1) {\n\t\t\t\t\t\t\tif(k < l - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(output[i][k] + \" \");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.println(output[i][k]);\n\t\t\t\t\t\t\t}\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}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tint n, m, l, i, j, k, a, b;\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tn = sc.nextInt();\n\t\t\tm = sc.nextInt();\n\t\t\tl = sc.nextInt();\n\t\t\tint n_m[][] = new int[n][m];\n\t\t\tint m_l[][] = new int[m][l];\n\t\t\tlong output[][] = new long[n][l]; //表の配列\n\t\t\tfor(i = 0; i < n; i++) {\n\t\t\t\tfor(j = 0; j < m; j++) {\n\t\t\t\t\tn_m[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i = 0; i < m; i++) {\n\t\t\t\tfor(j = 0; j < l; j++) {\n\t\t\t\t\tm_l[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\tfor(j = 0; j < m; j++) {\n\t\t\t\t\tfor(k = 0; k < l; k++) {\n\t\t\t\t\t\toutput[i][k] += n_m[i][j] * m_l[j][k];\n\t\t\t\t\t\tif(j == m - 1) {\n\t\t\t\t\t\t\tif(k < l - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(output[i][k] + \" \");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.println(output[i][k]);\n\t\t\t\t\t\t\t}\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}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int n, m, l, i, j, k, a, b;
try (Scanner sc = new Scanner(System.in)) {
n = sc.nextInt();
m = sc.nextInt();
l = sc.nextInt();
int n_m[][] = new int[n][m];
int m_l[][] = new int[m][l];
long output[][] = new long[n][l]; //表の配列
for(i = 0; i < n; i++) {
for(j = 0; j < m; j++) {
n_m[i][j] = sc.nextInt();
}
}
for(i = 0; i < m; i++) {
for(j = 0; j < l; j++) {
m_l[i][j] = sc.nextInt();
}
}
for(i = 0; i < n; i++) {
for(j = 0; j < m; j++) {
for(k = 0; k < l; k++) {
output[i][k] += n_m[i][j] * m_l[j][k];
if(j == m - 1) {
if(k < l - 1) {
System.out.print(output[i][k] + " ");
}else {
System.out.println(output[i][k]);
}
}
}
}
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
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,
14,
2,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
185,
5
],
[
185,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
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
],
[
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
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
98,
104
],
[
104,
105
],
[
105,
106
],
[
8,
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
],
[
133,
135
],
[
132,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
141,
142
],
[
141,
143
],
[
136,
144
],
[
144,
145
],
[
145,
146
],
[
136,
147
],
[
148,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
151,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
132,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
165,
167
],
[
162,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
173,
174
],
[
173,
175
],
[
162,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
176,
181
],
[
6,
182
],
[
182,
183
],
[
0,
184
],
[
184,
185
],
[
184,
186
]
] | [
"\nimport java.util.*;\n\npublic class Main {\n\t \n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt(),m=cin.nextInt(),l=cin.nextInt();\n\t\tLong A[][]=new Long[100][100],B[][]=new Long[100][100];\n\t\t\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tA[i][j]=cin.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\tB[i][j]=cin.nextLong();\n\t\t\t}\n\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 sum=(long) 0;\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tsum+=A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j!=l-1)System.out.print(sum+\" \");\n\t\t\t\telse System.out.println(sum);\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\t \n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt(),m=cin.nextInt(),l=cin.nextInt();\n\t\tLong A[][]=new Long[100][100],B[][]=new Long[100][100];\n\t\t\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tA[i][j]=cin.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\tB[i][j]=cin.nextLong();\n\t\t\t}\n\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 sum=(long) 0;\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tsum+=A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j!=l-1)System.out.print(sum+\" \");\n\t\t\t\telse System.out.println(sum);\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt(),m=cin.nextInt(),l=cin.nextInt();\n\t\tLong A[][]=new Long[100][100],B[][]=new Long[100][100];\n\t\t\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tA[i][j]=cin.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\tB[i][j]=cin.nextLong();\n\t\t\t}\n\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 sum=(long) 0;\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tsum+=A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j!=l-1)System.out.print(sum+\" \");\n\t\t\t\telse System.out.println(sum);\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"main",
"{\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt(),m=cin.nextInt(),l=cin.nextInt();\n\t\tLong A[][]=new Long[100][100],B[][]=new Long[100][100];\n\t\t\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tA[i][j]=cin.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\tB[i][j]=cin.nextLong();\n\t\t\t}\n\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 sum=(long) 0;\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tsum+=A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j!=l-1)System.out.print(sum+\" \");\n\t\t\t\telse System.out.println(sum);\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"Scanner cin=new Scanner(System.in);",
"cin",
"new Scanner(System.in)",
"int n=cin.nextInt()",
"n",
"cin.nextInt()",
"cin.nextInt",
"cin",
"m=cin.nextInt()",
"m",
"cin.nextInt()",
"cin.nextInt",
"cin",
"l=cin.nextInt();",
"l",
"cin.nextInt()",
"cin.nextInt",
"cin",
"Long A[][]=new Long[100][100]",
"A",
"new Long[100][100]",
"100",
"100",
"B[][]=new Long[100][100];",
"B",
"new Long[100][100]",
"100",
"100",
"for(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tA[i][j]=cin.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\tA[i][j]=cin.nextLong();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tA[i][j]=cin.nextLong();\n\t\t\t}\n\t\t}",
"for(int j=0;j<m;j++) {\n\t\t\t\tA[i][j]=cin.nextLong();\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]=cin.nextLong();\n\t\t\t}",
"{\n\t\t\t\tA[i][j]=cin.nextLong();\n\t\t\t}",
"A[i][j]=cin.nextLong()",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"cin.nextLong()",
"cin.nextLong",
"cin",
"for(int i=0;i<m;i++) {\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\tB[i][j]=cin.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\tB[i][j]=cin.nextLong();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\tB[i][j]=cin.nextLong();\n\t\t\t}\n\t\t}",
"for(int j=0;j<l;j++) {\n\t\t\t\tB[i][j]=cin.nextLong();\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tB[i][j]=cin.nextLong();\n\t\t\t}",
"{\n\t\t\t\tB[i][j]=cin.nextLong();\n\t\t\t}",
"B[i][j]=cin.nextLong()",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"cin.nextLong()",
"cin.nextLong",
"cin",
"for(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\tLong sum=(long) 0;\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tsum+=A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j!=l-1)System.out.print(sum+\" \");\n\t\t\t\telse System.out.println(sum);\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 sum=(long) 0;\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tsum+=A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j!=l-1)System.out.print(sum+\" \");\n\t\t\t\telse System.out.println(sum);\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<l;j++) {\n\t\t\t\tLong sum=(long) 0;\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tsum+=A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j!=l-1)System.out.print(sum+\" \");\n\t\t\t\telse System.out.println(sum);\n\t\t\t}\n\t\t}",
"for(int j=0;j<l;j++) {\n\t\t\t\tLong sum=(long) 0;\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tsum+=A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j!=l-1)System.out.print(sum+\" \");\n\t\t\t\telse System.out.println(sum);\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tLong sum=(long) 0;\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tsum+=A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j!=l-1)System.out.print(sum+\" \");\n\t\t\t\telse System.out.println(sum);\n\t\t\t}",
"{\n\t\t\t\tLong sum=(long) 0;\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tsum+=A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j!=l-1)System.out.print(sum+\" \");\n\t\t\t\telse System.out.println(sum);\n\t\t\t}",
"Long sum=(long) 0;",
"sum",
"(long) 0",
"for(int k=0;k<m;k++) {\n\t\t\t\t\tsum+=A[i][k]*B[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\tsum+=A[i][k]*B[k][j];\n\t\t\t\t}",
"{\n\t\t\t\t\tsum+=A[i][k]*B[k][j];\n\t\t\t\t}",
"sum+=A[i][k]*B[k][j]",
"sum",
"A[i][k]*B[k][j]",
"A[i][k]",
"A[i]",
"A",
"i",
"k",
"B[k][j]",
"B[k]",
"B",
"k",
"j",
"if(j!=l-1)System.out.print(sum+\" \");\n\t\t\t\telse System.out.println(sum);",
"j!=l-1",
"j",
"l-1",
"l",
"1",
"System.out.print(sum+\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"sum+\" \"",
"sum",
"\" \"",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main {\n\t \n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt(),m=cin.nextInt(),l=cin.nextInt();\n\t\tLong A[][]=new Long[100][100],B[][]=new Long[100][100];\n\t\t\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tA[i][j]=cin.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\tB[i][j]=cin.nextLong();\n\t\t\t}\n\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 sum=(long) 0;\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tsum+=A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j!=l-1)System.out.print(sum+\" \");\n\t\t\t\telse System.out.println(sum);\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t\n}",
"public class Main {\n\t \n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt(),m=cin.nextInt(),l=cin.nextInt();\n\t\tLong A[][]=new Long[100][100],B[][]=new Long[100][100];\n\t\t\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tA[i][j]=cin.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\tB[i][j]=cin.nextLong();\n\t\t\t}\n\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 sum=(long) 0;\n\t\t\t\tfor(int k=0;k<m;k++) {\n\t\t\t\t\tsum+=A[i][k]*B[k][j];\n\t\t\t\t}\n\t\t\t\tif(j!=l-1)System.out.print(sum+\" \");\n\t\t\t\telse System.out.println(sum);\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner cin=new Scanner(System.in);
int n=cin.nextInt(),m=cin.nextInt(),l=cin.nextInt();
Long A[][]=new Long[100][100],B[][]=new Long[100][100];
for(int i=0;i<n;i++) {
for(int j=0;j<m;j++) {
A[i][j]=cin.nextLong();
}
}
for(int i=0;i<m;i++) {
for(int j=0;j<l;j++) {
B[i][j]=cin.nextLong();
}
}
for(int i=0;i<n;i++) {
for(int j=0;j<l;j++) {
Long sum=(long) 0;
for(int k=0;k<m;k++) {
sum+=A[i][k]*B[k][j];
}
if(j!=l-1)System.out.print(sum+" ");
else 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,
4,
18,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
13,
41,
13,
17,
41,
13,
17,
41,
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,
0,
18,
18,
13,
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,
0,
18,
18,
13,
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,
0,
18,
18,
13,
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,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
4,
18,
18,
13,
13,
2,
18,
18,
13,
13,
13,
17,
4,
18,
18,
13,
13,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
260,
5
],
[
260,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
42
],
[
42,
43
],
[
42,
44
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
8,
48
],
[
48,
49
],
[
48,
50
],
[
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
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
64,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
76,
82
],
[
82,
83
],
[
83,
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
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
103,
104
],
[
103,
105
],
[
98,
106
],
[
106,
107
],
[
107,
108
],
[
98,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
110,
116
],
[
116,
117
],
[
117,
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
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
137,
138
],
[
137,
139
],
[
132,
140
],
[
140,
141
],
[
141,
142
],
[
132,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
144,
150
],
[
8,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
156,
157
],
[
156,
158
],
[
151,
159
],
[
159,
160
],
[
160,
161
],
[
151,
162
],
[
163,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
164,
169
],
[
169,
170
],
[
169,
171
],
[
164,
172
],
[
172,
173
],
[
173,
174
],
[
164,
175
],
[
176,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
182,
183
],
[
182,
184
],
[
177,
185
],
[
185,
186
],
[
186,
187
],
[
177,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
190,
194
],
[
189,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
196,
200
],
[
195,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
8,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
206,
211
],
[
211,
212
],
[
211,
213
],
[
206,
214
],
[
214,
215
],
[
215,
216
],
[
206,
217
],
[
218,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
219,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
226,
228
],
[
219,
229
],
[
229,
230
],
[
230,
231
],
[
219,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
233,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
239,
243
],
[
238,
244
],
[
218,
245
],
[
245,
246
],
[
246,
247
],
[
247,
248
],
[
247,
249
],
[
245,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
250,
254
],
[
254,
255
],
[
254,
256
],
[
6,
257
],
[
257,
258
],
[
0,
259
],
[
259,
260
],
[
259,
261
]
] | [
"import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n int a[][] = new int[n][m];\n int b[][] = new int[m][l];\n long ans[][] = new long[n][l];\n int i=0,j=0,k=0;\n for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < m ; j++)\n a[i][j] = sc.nextInt();\n }\n for(i = 0 ; i < m ; i++)\n {\n for(j = 0 ; j < l ; j++)\n b[i][j] = sc.nextInt();\n }\n for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < l ; j++)\n ans[i][j] = 0;\n }\n for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < l ; j++)\n {\n for(k = 0 ; k < m ; k++)\n ans[i][j] += a[i][k] * b[k][j];\n }\n }\n for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < l-1 ; j++)\n System.out.print(ans[i][j] + \" \");\n System.out.println(ans[i][l-1]);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n int a[][] = new int[n][m];\n int b[][] = new int[m][l];\n long ans[][] = new long[n][l];\n int i=0,j=0,k=0;\n for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < m ; j++)\n a[i][j] = sc.nextInt();\n }\n for(i = 0 ; i < m ; i++)\n {\n for(j = 0 ; j < l ; j++)\n b[i][j] = sc.nextInt();\n }\n for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < l ; j++)\n ans[i][j] = 0;\n }\n for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < l ; j++)\n {\n for(k = 0 ; k < m ; k++)\n ans[i][j] += a[i][k] * b[k][j];\n }\n }\n for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < l-1 ; j++)\n System.out.print(ans[i][j] + \" \");\n System.out.println(ans[i][l-1]);\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 l = sc.nextInt();\n int a[][] = new int[n][m];\n int b[][] = new int[m][l];\n long ans[][] = new long[n][l];\n int i=0,j=0,k=0;\n for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < m ; j++)\n a[i][j] = sc.nextInt();\n }\n for(i = 0 ; i < m ; i++)\n {\n for(j = 0 ; j < l ; j++)\n b[i][j] = sc.nextInt();\n }\n for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < l ; j++)\n ans[i][j] = 0;\n }\n for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < l ; j++)\n {\n for(k = 0 ; k < m ; k++)\n ans[i][j] += a[i][k] * b[k][j];\n }\n }\n for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < l-1 ; j++)\n System.out.print(ans[i][j] + \" \");\n System.out.println(ans[i][l-1]);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n int a[][] = new int[n][m];\n int b[][] = new int[m][l];\n long ans[][] = new long[n][l];\n int i=0,j=0,k=0;\n for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < m ; j++)\n a[i][j] = sc.nextInt();\n }\n for(i = 0 ; i < m ; i++)\n {\n for(j = 0 ; j < l ; j++)\n b[i][j] = sc.nextInt();\n }\n for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < l ; j++)\n ans[i][j] = 0;\n }\n for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < l ; j++)\n {\n for(k = 0 ; k < m ; k++)\n ans[i][j] += a[i][k] * b[k][j];\n }\n }\n for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < l-1 ; j++)\n System.out.print(ans[i][j] + \" \");\n System.out.println(ans[i][l-1]);\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 l = sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a[][] = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int b[][] = new int[m][l];",
"b",
"new int[m][l]",
"m",
"l",
"long ans[][] = new long[n][l];",
"ans",
"new long[n][l]",
"n",
"l",
"int i=0",
"i",
"0",
"j=0",
"j",
"0",
"k=0;",
"k",
"0",
"for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < m ; j++)\n a[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++)\n a[i][j] = sc.nextInt();\n }",
"{\n for(j = 0 ; j < m ; j++)\n a[i][j] = sc.nextInt();\n }",
"for(j = 0 ; j < m ; j++)\n a[i][j] = sc.nextInt();",
"j = 0 ;",
"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(i = 0 ; i < m ; i++)\n {\n for(j = 0 ; j < l ; j++)\n b[i][j] = sc.nextInt();\n }",
"i = 0 ;",
"i = 0",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n for(j = 0 ; j < l ; j++)\n b[i][j] = sc.nextInt();\n }",
"{\n for(j = 0 ; j < l ; j++)\n b[i][j] = sc.nextInt();\n }",
"for(j = 0 ; j < l ; j++)\n b[i][j] = sc.nextInt();",
"j = 0 ;",
"j = 0",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"b[i][j] = sc.nextInt();",
"b[i][j] = sc.nextInt()",
"b[i][j]",
"b[i]",
"b",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < l ; j++)\n ans[i][j] = 0;\n }",
"i = 0 ;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(j = 0 ; j < l ; j++)\n ans[i][j] = 0;\n }",
"{\n for(j = 0 ; j < l ; j++)\n ans[i][j] = 0;\n }",
"for(j = 0 ; j < l ; j++)\n ans[i][j] = 0;",
"j = 0 ;",
"j = 0",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"ans[i][j] = 0;",
"ans[i][j] = 0",
"ans[i][j]",
"ans[i]",
"ans",
"i",
"j",
"0",
"for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < l ; j++)\n {\n for(k = 0 ; k < m ; k++)\n ans[i][j] += a[i][k] * b[k][j];\n }\n }",
"i = 0 ;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(j = 0 ; j < l ; j++)\n {\n for(k = 0 ; k < m ; k++)\n ans[i][j] += a[i][k] * b[k][j];\n }\n }",
"{\n for(j = 0 ; j < l ; j++)\n {\n for(k = 0 ; k < m ; k++)\n ans[i][j] += a[i][k] * b[k][j];\n }\n }",
"for(j = 0 ; j < l ; j++)\n {\n for(k = 0 ; k < m ; k++)\n ans[i][j] += a[i][k] * b[k][j];\n }",
"j = 0 ;",
"j = 0",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n for(k = 0 ; k < m ; k++)\n ans[i][j] += a[i][k] * b[k][j];\n }",
"{\n for(k = 0 ; k < m ; k++)\n ans[i][j] += a[i][k] * b[k][j];\n }",
"for(k = 0 ; k < m ; k++)\n ans[i][j] += a[i][k] * b[k][j];",
"k = 0 ;",
"k = 0",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"ans[i][j] += a[i][k] * b[k][j];",
"ans[i][j] += a[i][k] * b[k][j]",
"ans[i][j]",
"ans[i]",
"ans",
"i",
"j",
"a[i][k] * b[k][j]",
"a[i][k]",
"a[i]",
"a",
"i",
"k",
"b[k][j]",
"b[k]",
"b",
"k",
"j",
"for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < l-1 ; j++)\n System.out.print(ans[i][j] + \" \");\n System.out.println(ans[i][l-1]);\n }",
"i = 0 ;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(j = 0 ; j < l-1 ; j++)\n System.out.print(ans[i][j] + \" \");\n System.out.println(ans[i][l-1]);\n }",
"{\n for(j = 0 ; j < l-1 ; j++)\n System.out.print(ans[i][j] + \" \");\n System.out.println(ans[i][l-1]);\n }",
"for(j = 0 ; j < l-1 ; j++)\n System.out.print(ans[i][j] + \" \");",
"j = 0 ;",
"j = 0",
"j",
"0",
"j < l-1",
"j",
"l-1",
"l",
"1",
"j++",
"j++",
"j",
"System.out.print(ans[i][j] + \" \");",
"System.out.print(ans[i][j] + \" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"ans[i][j] + \" \"",
"ans[i][j]",
"ans[i]",
"ans",
"i",
"j",
"\" \"",
"System.out.println(ans[i][l-1])",
"System.out.println",
"System.out",
"System",
"System.out",
"ans[i][l-1]",
"ans[i]",
"ans",
"i",
"l-1",
"l",
"1",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n int a[][] = new int[n][m];\n int b[][] = new int[m][l];\n long ans[][] = new long[n][l];\n int i=0,j=0,k=0;\n for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < m ; j++)\n a[i][j] = sc.nextInt();\n }\n for(i = 0 ; i < m ; i++)\n {\n for(j = 0 ; j < l ; j++)\n b[i][j] = sc.nextInt();\n }\n for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < l ; j++)\n ans[i][j] = 0;\n }\n for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < l ; j++)\n {\n for(k = 0 ; k < m ; k++)\n ans[i][j] += a[i][k] * b[k][j];\n }\n }\n for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < l-1 ; j++)\n System.out.print(ans[i][j] + \" \");\n System.out.println(ans[i][l-1]);\n }\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n int a[][] = new int[n][m];\n int b[][] = new int[m][l];\n long ans[][] = new long[n][l];\n int i=0,j=0,k=0;\n for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < m ; j++)\n a[i][j] = sc.nextInt();\n }\n for(i = 0 ; i < m ; i++)\n {\n for(j = 0 ; j < l ; j++)\n b[i][j] = sc.nextInt();\n }\n for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < l ; j++)\n ans[i][j] = 0;\n }\n for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < l ; j++)\n {\n for(k = 0 ; k < m ; k++)\n ans[i][j] += a[i][k] * b[k][j];\n }\n }\n for(i = 0 ; i < n ; i++)\n {\n for(j = 0 ; j < l-1 ; j++)\n System.out.print(ans[i][j] + \" \");\n System.out.println(ans[i][l-1]);\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 l = sc.nextInt();
int a[][] = new int[n][m];
int b[][] = new int[m][l];
long ans[][] = new long[n][l];
int i=0,j=0,k=0;
for(i = 0 ; i < n ; i++)
{
for(j = 0 ; j < m ; j++)
a[i][j] = sc.nextInt();
}
for(i = 0 ; i < m ; i++)
{
for(j = 0 ; j < l ; j++)
b[i][j] = sc.nextInt();
}
for(i = 0 ; i < n ; i++)
{
for(j = 0 ; j < l ; j++)
ans[i][j] = 0;
}
for(i = 0 ; i < n ; i++)
{
for(j = 0 ; j < l ; j++)
{
for(k = 0 ; k < m ; k++)
ans[i][j] += a[i][k] * b[k][j];
}
}
for(i = 0 ; i < n ; i++)
{
for(j = 0 ; j < l-1 ; j++)
System.out.print(ans[i][j] + " ");
System.out.println(ans[i][l-1]);
}
}
}
|
[
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,
4,
18,
13,
18,
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,
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,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
0,
18,
18,
13,
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,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
275,
8
],
[
275,
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
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
44,
46
],
[
11,
47
],
[
47,
48
],
[
47,
49
],
[
11,
52
],
[
52,
53
],
[
52,
54
],
[
11,
57
],
[
57,
58
],
[
57,
59
],
[
11,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
62,
70
],
[
70,
71
],
[
71,
72
],
[
62,
73
],
[
74,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
77,
82
],
[
74,
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
],
[
102,
105
],
[
105,
106
],
[
105,
107
],
[
11,
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
],
[
126,
127
],
[
123,
128
],
[
120,
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
],
[
143,
147
],
[
142,
148
],
[
148,
149
],
[
149,
150
],
[
148,
151
],
[
151,
152
],
[
151,
153
],
[
11,
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
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
167,
175
],
[
175,
176
],
[
176,
177
],
[
167,
178
],
[
179,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
183,
188
],
[
188,
189
],
[
188,
190
],
[
183,
191
],
[
191,
192
],
[
192,
193
],
[
183,
194
],
[
195,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
200,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
206,
210
],
[
179,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
212,
216
],
[
211,
217
],
[
11,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
218,
223
],
[
223,
224
],
[
223,
225
],
[
218,
226
],
[
226,
227
],
[
227,
228
],
[
218,
229
],
[
230,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
231,
236
],
[
236,
237
],
[
236,
238
],
[
231,
239
],
[
239,
240
],
[
240,
241
],
[
231,
242
],
[
243,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
246,
248
],
[
244,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
249,
253
],
[
243,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
257,
258
],
[
257,
259
],
[
254,
260
],
[
260,
261
],
[
261,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
261,
266
],
[
230,
267
],
[
267,
268
],
[
268,
269
],
[
269,
270
],
[
269,
271
],
[
9,
272
],
[
272,
273
],
[
0,
274
],
[
274,
275
],
[
274,
276
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\t\t\n\t\tString[] matrixStr = input.readLine().split(\" \");\n\t\t\n\t\tint row = Integer.parseInt(matrixStr[0]);\n\t\t\n\t\tint rowCol = Integer.parseInt(matrixStr[1]);\n\t\t\n\t\tint column = Integer.parseInt(matrixStr[2]);\n\t\t\n\t\tint[][] matrixA = new int[row][rowCol];\n\t\t\n\t\tint[][] matrixB = new int[rowCol][column];\n\t\t\n\t\tlong[][] matrixC = new long [row][column];\n\t\t\n\t\t//行列Aの作成\n\t\tfor(int rowNum = 0; rowNum < row; rowNum++)\n\t\t{\n\t\t\tString[] rowStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t\t{\n\t\t\t\tmatrixA[rowNum][rowColNum] = Integer.parseInt(rowStr[rowColNum]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//行列Bの作成\n\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t{\n\t\t\tString[] rowStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tmatrixB[rowColNum][columnNum] = Integer.parseInt(rowStr[columnNum]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//行列Cの作成\n\t\tfor(int rowNum = 0; rowNum < row; rowNum++)\n\t\t{\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tlong sum = 0;\n\t\t\t\t\n\t\t\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t\t\t{\n\t\t\t\t\tsum = sum + matrixA[rowNum][rowColNum] * matrixB[rowColNum][columnNum];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tmatrixC[rowNum][columnNum] = sum;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//行列Cの表示\n\t\tfor(int rowNum = 0; rowNum < row; rowNum++)\n\t\t{\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tSystem.out.print(matrixC[rowNum][columnNum]);\n\t\t\t\tif(columnNum != column - 1)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\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 java.lang.Exception\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\t\t\n\t\tString[] matrixStr = input.readLine().split(\" \");\n\t\t\n\t\tint row = Integer.parseInt(matrixStr[0]);\n\t\t\n\t\tint rowCol = Integer.parseInt(matrixStr[1]);\n\t\t\n\t\tint column = Integer.parseInt(matrixStr[2]);\n\t\t\n\t\tint[][] matrixA = new int[row][rowCol];\n\t\t\n\t\tint[][] matrixB = new int[rowCol][column];\n\t\t\n\t\tlong[][] matrixC = new long [row][column];\n\t\t\n\t\t//行列Aの作成\n\t\tfor(int rowNum = 0; rowNum < row; rowNum++)\n\t\t{\n\t\t\tString[] rowStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t\t{\n\t\t\t\tmatrixA[rowNum][rowColNum] = Integer.parseInt(rowStr[rowColNum]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//行列Bの作成\n\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t{\n\t\t\tString[] rowStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tmatrixB[rowColNum][columnNum] = Integer.parseInt(rowStr[columnNum]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//行列Cの作成\n\t\tfor(int rowNum = 0; rowNum < row; rowNum++)\n\t\t{\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tlong sum = 0;\n\t\t\t\t\n\t\t\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t\t\t{\n\t\t\t\t\tsum = sum + matrixA[rowNum][rowColNum] * matrixB[rowColNum][columnNum];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tmatrixC[rowNum][columnNum] = sum;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//行列Cの表示\n\t\tfor(int rowNum = 0; rowNum < row; rowNum++)\n\t\t{\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tSystem.out.print(matrixC[rowNum][columnNum]);\n\t\t\t\tif(columnNum != column - 1)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}",
"Main",
"public static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\t\t\n\t\tString[] matrixStr = input.readLine().split(\" \");\n\t\t\n\t\tint row = Integer.parseInt(matrixStr[0]);\n\t\t\n\t\tint rowCol = Integer.parseInt(matrixStr[1]);\n\t\t\n\t\tint column = Integer.parseInt(matrixStr[2]);\n\t\t\n\t\tint[][] matrixA = new int[row][rowCol];\n\t\t\n\t\tint[][] matrixB = new int[rowCol][column];\n\t\t\n\t\tlong[][] matrixC = new long [row][column];\n\t\t\n\t\t//行列Aの作成\n\t\tfor(int rowNum = 0; rowNum < row; rowNum++)\n\t\t{\n\t\t\tString[] rowStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t\t{\n\t\t\t\tmatrixA[rowNum][rowColNum] = Integer.parseInt(rowStr[rowColNum]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//行列Bの作成\n\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t{\n\t\t\tString[] rowStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tmatrixB[rowColNum][columnNum] = Integer.parseInt(rowStr[columnNum]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//行列Cの作成\n\t\tfor(int rowNum = 0; rowNum < row; rowNum++)\n\t\t{\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tlong sum = 0;\n\t\t\t\t\n\t\t\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t\t\t{\n\t\t\t\t\tsum = sum + matrixA[rowNum][rowColNum] * matrixB[rowColNum][columnNum];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tmatrixC[rowNum][columnNum] = sum;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//行列Cの表示\n\t\tfor(int rowNum = 0; rowNum < row; rowNum++)\n\t\t{\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tSystem.out.print(matrixC[rowNum][columnNum]);\n\t\t\t\tif(columnNum != column - 1)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\t\t\n\t\tString[] matrixStr = input.readLine().split(\" \");\n\t\t\n\t\tint row = Integer.parseInt(matrixStr[0]);\n\t\t\n\t\tint rowCol = Integer.parseInt(matrixStr[1]);\n\t\t\n\t\tint column = Integer.parseInt(matrixStr[2]);\n\t\t\n\t\tint[][] matrixA = new int[row][rowCol];\n\t\t\n\t\tint[][] matrixB = new int[rowCol][column];\n\t\t\n\t\tlong[][] matrixC = new long [row][column];\n\t\t\n\t\t//行列Aの作成\n\t\tfor(int rowNum = 0; rowNum < row; rowNum++)\n\t\t{\n\t\t\tString[] rowStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t\t{\n\t\t\t\tmatrixA[rowNum][rowColNum] = Integer.parseInt(rowStr[rowColNum]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//行列Bの作成\n\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t{\n\t\t\tString[] rowStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tmatrixB[rowColNum][columnNum] = Integer.parseInt(rowStr[columnNum]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//行列Cの作成\n\t\tfor(int rowNum = 0; rowNum < row; rowNum++)\n\t\t{\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tlong sum = 0;\n\t\t\t\t\n\t\t\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t\t\t{\n\t\t\t\t\tsum = sum + matrixA[rowNum][rowColNum] * matrixB[rowColNum][columnNum];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tmatrixC[rowNum][columnNum] = sum;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//行列Cの表示\n\t\tfor(int rowNum = 0; rowNum < row; rowNum++)\n\t\t{\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tSystem.out.print(matrixC[rowNum][columnNum]);\n\t\t\t\tif(columnNum != column - 1)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"BufferedReader input = new BufferedReader (new InputStreamReader (System.in));",
"input",
"new BufferedReader (new InputStreamReader (System.in))",
"String[] matrixStr = input.readLine().split(\" \");",
"matrixStr",
"input.readLine().split(\" \")",
"input.readLine().split",
"input.readLine()",
"input.readLine",
"input",
"\" \"",
"int row = Integer.parseInt(matrixStr[0]);",
"row",
"Integer.parseInt(matrixStr[0])",
"Integer.parseInt",
"Integer",
"matrixStr[0]",
"matrixStr",
"0",
"int rowCol = Integer.parseInt(matrixStr[1]);",
"rowCol",
"Integer.parseInt(matrixStr[1])",
"Integer.parseInt",
"Integer",
"matrixStr[1]",
"matrixStr",
"1",
"int column = Integer.parseInt(matrixStr[2]);",
"column",
"Integer.parseInt(matrixStr[2])",
"Integer.parseInt",
"Integer",
"matrixStr[2]",
"matrixStr",
"2",
"int[][] matrixA = new int[row][rowCol];",
"matrixA",
"new int[row][rowCol]",
"row",
"rowCol",
"int[][] matrixB = new int[rowCol][column];",
"matrixB",
"new int[rowCol][column]",
"rowCol",
"column",
"long[][] matrixC = new long [row][column];",
"matrixC",
"new long [row][column]",
"row",
"column",
"for(int rowNum = 0; rowNum < row; rowNum++)\n\t\t{\n\t\t\tString[] rowStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t\t{\n\t\t\t\tmatrixA[rowNum][rowColNum] = Integer.parseInt(rowStr[rowColNum]);\n\t\t\t}\n\t\t}",
"int rowNum = 0;",
"int rowNum = 0;",
"rowNum",
"0",
"rowNum < row",
"rowNum",
"row",
"rowNum++",
"rowNum++",
"rowNum",
"{\n\t\t\tString[] rowStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t\t{\n\t\t\t\tmatrixA[rowNum][rowColNum] = Integer.parseInt(rowStr[rowColNum]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] rowStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t\t{\n\t\t\t\tmatrixA[rowNum][rowColNum] = Integer.parseInt(rowStr[rowColNum]);\n\t\t\t}\n\t\t}",
"String[] rowStr = input.readLine().split(\" \");",
"rowStr",
"input.readLine().split(\" \")",
"input.readLine().split",
"input.readLine()",
"input.readLine",
"input",
"\" \"",
"for(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t\t{\n\t\t\t\tmatrixA[rowNum][rowColNum] = Integer.parseInt(rowStr[rowColNum]);\n\t\t\t}",
"int rowColNum = 0;",
"int rowColNum = 0;",
"rowColNum",
"0",
"rowColNum < rowCol",
"rowColNum",
"rowCol",
"rowColNum++",
"rowColNum++",
"rowColNum",
"{\n\t\t\t\tmatrixA[rowNum][rowColNum] = Integer.parseInt(rowStr[rowColNum]);\n\t\t\t}",
"{\n\t\t\t\tmatrixA[rowNum][rowColNum] = Integer.parseInt(rowStr[rowColNum]);\n\t\t\t}",
"matrixA[rowNum][rowColNum] = Integer.parseInt(rowStr[rowColNum])",
"matrixA[rowNum][rowColNum]",
"matrixA[rowNum]",
"matrixA",
"rowNum",
"rowColNum",
"Integer.parseInt(rowStr[rowColNum])",
"Integer.parseInt",
"Integer",
"rowStr[rowColNum]",
"rowStr",
"rowColNum",
"for(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t{\n\t\t\tString[] rowStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tmatrixB[rowColNum][columnNum] = Integer.parseInt(rowStr[columnNum]);\n\t\t\t}\n\t\t}",
"int rowColNum = 0;",
"int rowColNum = 0;",
"rowColNum",
"0",
"rowColNum < rowCol",
"rowColNum",
"rowCol",
"rowColNum++",
"rowColNum++",
"rowColNum",
"{\n\t\t\tString[] rowStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tmatrixB[rowColNum][columnNum] = Integer.parseInt(rowStr[columnNum]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] rowStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tmatrixB[rowColNum][columnNum] = Integer.parseInt(rowStr[columnNum]);\n\t\t\t}\n\t\t}",
"String[] rowStr = input.readLine().split(\" \");",
"rowStr",
"input.readLine().split(\" \")",
"input.readLine().split",
"input.readLine()",
"input.readLine",
"input",
"\" \"",
"for(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tmatrixB[rowColNum][columnNum] = Integer.parseInt(rowStr[columnNum]);\n\t\t\t}",
"int columnNum = 0;",
"int columnNum = 0;",
"columnNum",
"0",
"columnNum < column",
"columnNum",
"column",
"columnNum++",
"columnNum++",
"columnNum",
"{\n\t\t\t\tmatrixB[rowColNum][columnNum] = Integer.parseInt(rowStr[columnNum]);\n\t\t\t}",
"{\n\t\t\t\tmatrixB[rowColNum][columnNum] = Integer.parseInt(rowStr[columnNum]);\n\t\t\t}",
"matrixB[rowColNum][columnNum] = Integer.parseInt(rowStr[columnNum])",
"matrixB[rowColNum][columnNum]",
"matrixB[rowColNum]",
"matrixB",
"rowColNum",
"columnNum",
"Integer.parseInt(rowStr[columnNum])",
"Integer.parseInt",
"Integer",
"rowStr[columnNum]",
"rowStr",
"columnNum",
"for(int rowNum = 0; rowNum < row; rowNum++)\n\t\t{\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tlong sum = 0;\n\t\t\t\t\n\t\t\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t\t\t{\n\t\t\t\t\tsum = sum + matrixA[rowNum][rowColNum] * matrixB[rowColNum][columnNum];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tmatrixC[rowNum][columnNum] = sum;\n\t\t\t}\n\t\t}",
"int rowNum = 0;",
"int rowNum = 0;",
"rowNum",
"0",
"rowNum < row",
"rowNum",
"row",
"rowNum++",
"rowNum++",
"rowNum",
"{\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tlong sum = 0;\n\t\t\t\t\n\t\t\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t\t\t{\n\t\t\t\t\tsum = sum + matrixA[rowNum][rowColNum] * matrixB[rowColNum][columnNum];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tmatrixC[rowNum][columnNum] = sum;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tlong sum = 0;\n\t\t\t\t\n\t\t\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t\t\t{\n\t\t\t\t\tsum = sum + matrixA[rowNum][rowColNum] * matrixB[rowColNum][columnNum];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tmatrixC[rowNum][columnNum] = sum;\n\t\t\t}\n\t\t}",
"for(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tlong sum = 0;\n\t\t\t\t\n\t\t\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t\t\t{\n\t\t\t\t\tsum = sum + matrixA[rowNum][rowColNum] * matrixB[rowColNum][columnNum];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tmatrixC[rowNum][columnNum] = sum;\n\t\t\t}",
"int columnNum = 0;",
"int columnNum = 0;",
"columnNum",
"0",
"columnNum < column",
"columnNum",
"column",
"columnNum++",
"columnNum++",
"columnNum",
"{\n\t\t\t\tlong sum = 0;\n\t\t\t\t\n\t\t\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t\t\t{\n\t\t\t\t\tsum = sum + matrixA[rowNum][rowColNum] * matrixB[rowColNum][columnNum];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tmatrixC[rowNum][columnNum] = sum;\n\t\t\t}",
"{\n\t\t\t\tlong sum = 0;\n\t\t\t\t\n\t\t\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t\t\t{\n\t\t\t\t\tsum = sum + matrixA[rowNum][rowColNum] * matrixB[rowColNum][columnNum];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tmatrixC[rowNum][columnNum] = sum;\n\t\t\t}",
"long sum = 0;",
"sum",
"0",
"for(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t\t\t{\n\t\t\t\t\tsum = sum + matrixA[rowNum][rowColNum] * matrixB[rowColNum][columnNum];\n\t\t\t\t}",
"int rowColNum = 0;",
"int rowColNum = 0;",
"rowColNum",
"0",
"rowColNum < rowCol",
"rowColNum",
"rowCol",
"rowColNum++",
"rowColNum++",
"rowColNum",
"{\n\t\t\t\t\tsum = sum + matrixA[rowNum][rowColNum] * matrixB[rowColNum][columnNum];\n\t\t\t\t}",
"{\n\t\t\t\t\tsum = sum + matrixA[rowNum][rowColNum] * matrixB[rowColNum][columnNum];\n\t\t\t\t}",
"sum = sum + matrixA[rowNum][rowColNum] * matrixB[rowColNum][columnNum]",
"sum",
"sum + matrixA[rowNum][rowColNum] * matrixB[rowColNum][columnNum]",
"sum",
"matrixA[rowNum][rowColNum] * matrixB[rowColNum][columnNum]",
"matrixA[rowNum][rowColNum]",
"matrixA[rowNum]",
"matrixA",
"rowNum",
"rowColNum",
"matrixB[rowColNum][columnNum]",
"matrixB[rowColNum]",
"matrixB",
"rowColNum",
"columnNum",
"matrixC[rowNum][columnNum] = sum",
"matrixC[rowNum][columnNum]",
"matrixC[rowNum]",
"matrixC",
"rowNum",
"columnNum",
"sum",
"for(int rowNum = 0; rowNum < row; rowNum++)\n\t\t{\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tSystem.out.print(matrixC[rowNum][columnNum]);\n\t\t\t\tif(columnNum != column - 1)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}",
"int rowNum = 0;",
"int rowNum = 0;",
"rowNum",
"0",
"rowNum < row",
"rowNum",
"row",
"rowNum++",
"rowNum++",
"rowNum",
"{\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tSystem.out.print(matrixC[rowNum][columnNum]);\n\t\t\t\tif(columnNum != column - 1)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tSystem.out.print(matrixC[rowNum][columnNum]);\n\t\t\t\tif(columnNum != column - 1)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}",
"for(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tSystem.out.print(matrixC[rowNum][columnNum]);\n\t\t\t\tif(columnNum != column - 1)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"int columnNum = 0;",
"int columnNum = 0;",
"columnNum",
"0",
"columnNum < column",
"columnNum",
"column",
"columnNum++",
"columnNum++",
"columnNum",
"{\n\t\t\t\tSystem.out.print(matrixC[rowNum][columnNum]);\n\t\t\t\tif(columnNum != column - 1)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(matrixC[rowNum][columnNum]);\n\t\t\t\tif(columnNum != column - 1)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"System.out.print(matrixC[rowNum][columnNum])",
"System.out.print",
"System.out",
"System",
"System.out",
"matrixC[rowNum][columnNum]",
"matrixC[rowNum]",
"matrixC",
"rowNum",
"columnNum",
"if(columnNum != column - 1)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"columnNum != column - 1",
"columnNum",
"column - 1",
"column",
"1",
"{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\t\t\n\t\tString[] matrixStr = input.readLine().split(\" \");\n\t\t\n\t\tint row = Integer.parseInt(matrixStr[0]);\n\t\t\n\t\tint rowCol = Integer.parseInt(matrixStr[1]);\n\t\t\n\t\tint column = Integer.parseInt(matrixStr[2]);\n\t\t\n\t\tint[][] matrixA = new int[row][rowCol];\n\t\t\n\t\tint[][] matrixB = new int[rowCol][column];\n\t\t\n\t\tlong[][] matrixC = new long [row][column];\n\t\t\n\t\t//行列Aの作成\n\t\tfor(int rowNum = 0; rowNum < row; rowNum++)\n\t\t{\n\t\t\tString[] rowStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t\t{\n\t\t\t\tmatrixA[rowNum][rowColNum] = Integer.parseInt(rowStr[rowColNum]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//行列Bの作成\n\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t{\n\t\t\tString[] rowStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tmatrixB[rowColNum][columnNum] = Integer.parseInt(rowStr[columnNum]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//行列Cの作成\n\t\tfor(int rowNum = 0; rowNum < row; rowNum++)\n\t\t{\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tlong sum = 0;\n\t\t\t\t\n\t\t\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t\t\t{\n\t\t\t\t\tsum = sum + matrixA[rowNum][rowColNum] * matrixB[rowColNum][columnNum];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tmatrixC[rowNum][columnNum] = sum;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//行列Cの表示\n\t\tfor(int rowNum = 0; rowNum < row; rowNum++)\n\t\t{\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tSystem.out.print(matrixC[rowNum][columnNum]);\n\t\t\t\tif(columnNum != column - 1)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\t\t\n\t\tString[] matrixStr = input.readLine().split(\" \");\n\t\t\n\t\tint row = Integer.parseInt(matrixStr[0]);\n\t\t\n\t\tint rowCol = Integer.parseInt(matrixStr[1]);\n\t\t\n\t\tint column = Integer.parseInt(matrixStr[2]);\n\t\t\n\t\tint[][] matrixA = new int[row][rowCol];\n\t\t\n\t\tint[][] matrixB = new int[rowCol][column];\n\t\t\n\t\tlong[][] matrixC = new long [row][column];\n\t\t\n\t\t//行列Aの作成\n\t\tfor(int rowNum = 0; rowNum < row; rowNum++)\n\t\t{\n\t\t\tString[] rowStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t\t{\n\t\t\t\tmatrixA[rowNum][rowColNum] = Integer.parseInt(rowStr[rowColNum]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//行列Bの作成\n\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t{\n\t\t\tString[] rowStr = input.readLine().split(\" \");\n\t\t\t\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tmatrixB[rowColNum][columnNum] = Integer.parseInt(rowStr[columnNum]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//行列Cの作成\n\t\tfor(int rowNum = 0; rowNum < row; rowNum++)\n\t\t{\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tlong sum = 0;\n\t\t\t\t\n\t\t\t\tfor(int rowColNum = 0; rowColNum < rowCol; rowColNum++)\n\t\t\t\t{\n\t\t\t\t\tsum = sum + matrixA[rowNum][rowColNum] * matrixB[rowColNum][columnNum];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tmatrixC[rowNum][columnNum] = sum;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//行列Cの表示\n\t\tfor(int rowNum = 0; rowNum < row; rowNum++)\n\t\t{\n\t\t\tfor(int columnNum = 0; columnNum < column; columnNum++)\n\t\t\t{\n\t\t\t\tSystem.out.print(matrixC[rowNum][columnNum]);\n\t\t\t\tif(columnNum != column - 1)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main (String[] args) throws java.lang.Exception
{
BufferedReader input = new BufferedReader (new InputStreamReader (System.in));
String[] matrixStr = input.readLine().split(" ");
int row = Integer.parseInt(matrixStr[0]);
int rowCol = Integer.parseInt(matrixStr[1]);
int column = Integer.parseInt(matrixStr[2]);
int[][] matrixA = new int[row][rowCol];
int[][] matrixB = new int[rowCol][column];
long[][] matrixC = new long [row][column];
//行列Aの作成
for(int rowNum = 0; rowNum < row; rowNum++)
{
String[] rowStr = input.readLine().split(" ");
for(int rowColNum = 0; rowColNum < rowCol; rowColNum++)
{
matrixA[rowNum][rowColNum] = Integer.parseInt(rowStr[rowColNum]);
}
}
//行列Bの作成
for(int rowColNum = 0; rowColNum < rowCol; rowColNum++)
{
String[] rowStr = input.readLine().split(" ");
for(int columnNum = 0; columnNum < column; columnNum++)
{
matrixB[rowColNum][columnNum] = Integer.parseInt(rowStr[columnNum]);
}
}
//行列Cの作成
for(int rowNum = 0; rowNum < row; rowNum++)
{
for(int columnNum = 0; columnNum < column; columnNum++)
{
long sum = 0;
for(int rowColNum = 0; rowColNum < rowCol; rowColNum++)
{
sum = sum + matrixA[rowNum][rowColNum] * matrixB[rowColNum][columnNum];
}
matrixC[rowNum][columnNum] = sum;
}
}
//行列Cの表示
for(int rowNum = 0; rowNum < row; rowNum++)
{
for(int columnNum = 0; columnNum < column; columnNum++)
{
System.out.print(matrixC[rowNum][columnNum]);
if(columnNum != column - 1)
{
System.out.print(" ");
}
}
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,
4,
18,
13,
41,
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,
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,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
239,
5
],
[
239,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
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
],
[
8,
69
],
[
69,
70
],
[
8,
71
],
[
71,
72
],
[
71,
73
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
76,
87
],
[
88,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
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
],
[
8,
111
],
[
111,
112
],
[
8,
113
],
[
113,
114
],
[
113,
115
],
[
8,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
118,
126
],
[
126,
127
],
[
127,
128
],
[
118,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
136,
137
],
[
136,
138
],
[
131,
139
],
[
139,
140
],
[
140,
141
],
[
131,
142
],
[
143,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
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
],
[
158,
162
],
[
157,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
163,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
169,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
8,
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
],
[
192,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
196,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
192,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
206,
211
],
[
211,
212
],
[
211,
213
],
[
206,
214
],
[
214,
215
],
[
215,
216
],
[
206,
217
],
[
218,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
219,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
227,
228
],
[
227,
229
],
[
226,
230
],
[
192,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
6,
236
],
[
236,
237
],
[
0,
238
],
[
238,
239
],
[
238,
240
]
] | [
"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 l = scan.nextInt();\n\n\t\t// ?????? A ??\\???\n\t\tint[][] A;\n\t\tA = new int[n][m];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t// ?????? B ??\\???\n\t\tint[][] B;\n\t\tB = new int[m][l];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\t// ?????? C ??\\???\n\t\tlong[][] C;\n\t\tC = new long[n][l];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] = C[i][j] + A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tint j = 0;\n\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\n\t\t\tfor (j = 1; j < l; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\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 scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\n\t\t// ?????? A ??\\???\n\t\tint[][] A;\n\t\tA = new int[n][m];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t// ?????? B ??\\???\n\t\tint[][] B;\n\t\tB = new int[m][l];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\t// ?????? C ??\\???\n\t\tlong[][] C;\n\t\tC = new long[n][l];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] = C[i][j] + A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tint j = 0;\n\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\n\t\t\tfor (j = 1; j < l; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\n\t\t// ?????? A ??\\???\n\t\tint[][] A;\n\t\tA = new int[n][m];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t// ?????? B ??\\???\n\t\tint[][] B;\n\t\tB = new int[m][l];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\t// ?????? C ??\\???\n\t\tlong[][] C;\n\t\tC = new long[n][l];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] = C[i][j] + A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tint j = 0;\n\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\n\t\t\tfor (j = 1; j < l; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\n\t\t// ?????? A ??\\???\n\t\tint[][] A;\n\t\tA = new int[n][m];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t// ?????? B ??\\???\n\t\tint[][] B;\n\t\tB = new int[m][l];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\t// ?????? C ??\\???\n\t\tlong[][] C;\n\t\tC = new long[n][l];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] = C[i][j] + A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tint j = 0;\n\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\n\t\t\tfor (j = 1; j < l; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = scan.nextInt();",
"l",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[][] A;",
"A",
"A = new int[n][m]",
"A",
"new int[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = 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",
"int[][] B;",
"B",
"B = new int[m][l]",
"B",
"new int[m][l]",
"m",
"l",
"for (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"for (int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}",
"B[i][j] = scan.nextInt()",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"long[][] C;",
"C",
"C = new long[n][l]",
"C",
"new long[n][l]",
"n",
"l",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] = C[i][j] + A[i][k] * B[k][j];\n\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 < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] = C[i][j] + A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] = C[i][j] + A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] = C[i][j] + A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] = C[i][j] + A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] = C[i][j] + A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}",
"for (int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] = C[i][j] + A[i][k] * B[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\tC[i][j] = C[i][j] + A[i][k] * B[k][j];\n\t\t\t\t}",
"{\n\t\t\t\t\tC[i][j] = C[i][j] + A[i][k] * B[k][j];\n\t\t\t\t}",
"C[i][j] = C[i][j] + A[i][k] * B[k][j]",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"C[i][j] + A[i][k] * B[k][j]",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"A[i][k] * B[k][j]",
"A[i][k]",
"A[i]",
"A",
"i",
"k",
"B[k][j]",
"B[k]",
"B",
"k",
"j",
"for (int i = 0; i < n; i++) {\n\n\t\t\tint j = 0;\n\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\n\t\t\tfor (j = 1; j < l; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\n\t\t\tint j = 0;\n\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\n\t\t\tfor (j = 1; j < l; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\n\t\t\tint j = 0;\n\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\n\t\t\tfor (j = 1; j < l; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"int j = 0;",
"j",
"0",
"System.out.print(C[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"for (j = 1; j < l; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}",
"j = 1;",
"j = 1",
"j",
"1",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}",
"System.out.print(\" \" + C[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + C[i][j]",
"\" \"",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"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 l = scan.nextInt();\n\n\t\t// ?????? A ??\\???\n\t\tint[][] A;\n\t\tA = new int[n][m];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t// ?????? B ??\\???\n\t\tint[][] B;\n\t\tB = new int[m][l];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\t// ?????? C ??\\???\n\t\tlong[][] C;\n\t\tC = new long[n][l];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] = C[i][j] + A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tint j = 0;\n\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\n\t\t\tfor (j = 1; j < l; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\n\t\t// ?????? A ??\\???\n\t\tint[][] A;\n\t\tA = new int[n][m];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\t\t// ?????? B ??\\???\n\t\tint[][] B;\n\t\tB = new int[m][l];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}\n\n\t\t// ?????? C ??\\???\n\t\tlong[][] C;\n\t\tC = new long[n][l];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tC[i][j] = C[i][j] + A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tint j = 0;\n\t\t\tSystem.out.print(C[i][j]);\n\t\t\t\n\t\t\tfor (j = 1; j < l; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int m = scan.nextInt();
int l = scan.nextInt();
// ?????? A ??\???
int[][] A;
A = new int[n][m];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
A[i][j] = scan.nextInt();
}
}
// ?????? B ??\???
int[][] B;
B = new int[m][l];
for (int i = 0; i < m; i++) {
for (int j = 0; j < l; j++) {
B[i][j] = scan.nextInt();
}
}
// ?????? C ??\???
long[][] C;
C = new long[n][l];
for (int i = 0; i < n; i++) {
for (int j = 0; j < l; j++) {
for (int k = 0; k < m; k++) {
C[i][j] = C[i][j] + A[i][k] * B[k][j];
}
}
}
for (int i = 0; i < n; i++) {
int j = 0;
System.out.print(C[i][j]);
for (j = 1; j < l; j++) {
System.out.print(" " + C[i][j]);
}
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,
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,
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,
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,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
13,
4,
18,
18,
13,
13,
13,
14,
2,
2,
13,
17,
13,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
197,
5
],
[
197,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
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
],
[
70,
72
],
[
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
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
100,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
106,
112
],
[
8,
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
],
[
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
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
158,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
157,
169
],
[
138,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
170,
175
],
[
138,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
176,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
183,
188
],
[
125,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
6,
194
],
[
194,
195
],
[
0,
196
],
[
196,
197
],
[
196,
198
]
] | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\nScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\t\tint nums[][] = new int[n][m];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tnums[i][k] = a;\n\t\t\t}\n\t\t}\n\t\tint matrix[][] = new int[m][l];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tmatrix[i][k] = b;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tlong c = 0;\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\tc = nums[i][j] * matrix[j][k] + c;\n\t\t\t\t}\n\t\t\t\tSystem.out.print(c);\n\t\t\t\tif (k + 1 != l) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n }\n}\n",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\nScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\t\tint nums[][] = new int[n][m];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tnums[i][k] = a;\n\t\t\t}\n\t\t}\n\t\tint matrix[][] = new int[m][l];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tmatrix[i][k] = b;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tlong c = 0;\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\tc = nums[i][j] * matrix[j][k] + c;\n\t\t\t\t}\n\t\t\t\tSystem.out.print(c);\n\t\t\t\tif (k + 1 != l) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\nScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\t\tint nums[][] = new int[n][m];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tnums[i][k] = a;\n\t\t\t}\n\t\t}\n\t\tint matrix[][] = new int[m][l];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tmatrix[i][k] = b;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tlong c = 0;\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\tc = nums[i][j] * matrix[j][k] + c;\n\t\t\t\t}\n\t\t\t\tSystem.out.print(c);\n\t\t\t\tif (k + 1 != l) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n }",
"main",
"{\nScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\t\tint nums[][] = new int[n][m];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tnums[i][k] = a;\n\t\t\t}\n\t\t}\n\t\tint matrix[][] = new int[m][l];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tmatrix[i][k] = b;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tlong c = 0;\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\tc = nums[i][j] * matrix[j][k] + c;\n\t\t\t\t}\n\t\t\t\tSystem.out.print(c);\n\t\t\t\tif (k + 1 != l) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\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 l = sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int nums[][] = new int[n][m];",
"nums",
"new int[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tnums[i][k] = 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 k = 0; k < m; k++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tnums[i][k] = a;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tnums[i][k] = a;\n\t\t\t}\n\t\t}",
"for (int k = 0; k < m; k++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tnums[i][k] = a;\n\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"{\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tnums[i][k] = a;\n\t\t\t}",
"{\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tnums[i][k] = a;\n\t\t\t}",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"nums[i][k] = a",
"nums[i][k]",
"nums[i]",
"nums",
"i",
"k",
"a",
"int matrix[][] = new int[m][l];",
"matrix",
"new int[m][l]",
"m",
"l",
"for (int i = 0; i < m; i++) {\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tmatrix[i][k] = 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\tfor (int k = 0; k < l; k++) {\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tmatrix[i][k] = b;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tmatrix[i][k] = b;\n\t\t\t}\n\t\t}",
"for (int k = 0; k < l; k++) {\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tmatrix[i][k] = b;\n\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < l",
"k",
"l",
"k++",
"k++",
"k",
"{\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tmatrix[i][k] = b;\n\t\t\t}",
"{\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tmatrix[i][k] = b;\n\t\t\t}",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"matrix[i][k] = b",
"matrix[i][k]",
"matrix[i]",
"matrix",
"i",
"k",
"b",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tlong c = 0;\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\tc = nums[i][j] * matrix[j][k] + c;\n\t\t\t\t}\n\t\t\t\tSystem.out.print(c);\n\t\t\t\tif (k + 1 != l) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tlong c = 0;\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\tc = nums[i][j] * matrix[j][k] + c;\n\t\t\t\t}\n\t\t\t\tSystem.out.print(c);\n\t\t\t\tif (k + 1 != l) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tlong c = 0;\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\tc = nums[i][j] * matrix[j][k] + c;\n\t\t\t\t}\n\t\t\t\tSystem.out.print(c);\n\t\t\t\tif (k + 1 != l) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for (int k = 0; k < l; k++) {\n\t\t\t\tlong c = 0;\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\tc = nums[i][j] * matrix[j][k] + c;\n\t\t\t\t}\n\t\t\t\tSystem.out.print(c);\n\t\t\t\tif (k + 1 != l) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < l",
"k",
"l",
"k++",
"k++",
"k",
"{\n\t\t\t\tlong c = 0;\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\tc = nums[i][j] * matrix[j][k] + c;\n\t\t\t\t}\n\t\t\t\tSystem.out.print(c);\n\t\t\t\tif (k + 1 != l) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tlong c = 0;\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\tc = nums[i][j] * matrix[j][k] + c;\n\t\t\t\t}\n\t\t\t\tSystem.out.print(c);\n\t\t\t\tif (k + 1 != l) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"long c = 0;",
"c",
"0",
"for (int j = 0; j < m; j++) {\n\t\t\t\t\tc = nums[i][j] * matrix[j][k] + c;\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 = nums[i][j] * matrix[j][k] + c;\n\t\t\t\t}",
"{\n\t\t\t\t\tc = nums[i][j] * matrix[j][k] + c;\n\t\t\t\t}",
"c = nums[i][j] * matrix[j][k] + c",
"c",
"nums[i][j] * matrix[j][k] + c",
"nums[i][j] * matrix[j][k]",
"nums[i][j]",
"nums[i]",
"nums",
"i",
"j",
"matrix[j][k]",
"matrix[j]",
"matrix",
"j",
"k",
"c",
"System.out.print(c)",
"System.out.print",
"System.out",
"System",
"System.out",
"c",
"if (k + 1 != l) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"k + 1 != l",
"k + 1",
"k",
"1",
"l",
"{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\nScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\t\tint nums[][] = new int[n][m];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tnums[i][k] = a;\n\t\t\t}\n\t\t}\n\t\tint matrix[][] = new int[m][l];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tmatrix[i][k] = b;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tlong c = 0;\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\tc = nums[i][j] * matrix[j][k] + c;\n\t\t\t\t}\n\t\t\t\tSystem.out.print(c);\n\t\t\t\tif (k + 1 != l) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\nScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\t\tint nums[][] = new int[n][m];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tnums[i][k] = a;\n\t\t\t}\n\t\t}\n\t\tint matrix[][] = new int[m][l];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tmatrix[i][k] = b;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\tlong c = 0;\n\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\tc = nums[i][j] * matrix[j][k] + c;\n\t\t\t\t}\n\t\t\t\tSystem.out.print(c);\n\t\t\t\tif (k + 1 != l) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n }\n}",
"Main"
] | import java.util.*;
public 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 l = sc.nextInt();
int nums[][] = new int[n][m];
for (int i = 0; i < n; i++) {
for (int k = 0; k < m; k++) {
int a = sc.nextInt();
nums[i][k] = a;
}
}
int matrix[][] = new int[m][l];
for (int i = 0; i < m; i++) {
for (int k = 0; k < l; k++) {
int b = sc.nextInt();
matrix[i][k] = b;
}
}
for (int i = 0; i < n; i++) {
for (int k = 0; k < l; k++) {
long c = 0;
for (int j = 0; j < m; j++) {
c = nums[i][j] * matrix[j][k] + c;
}
System.out.print(c);
if (k + 1 != l) {
System.out.print(" ");
}
}
System.out.println();
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
17,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
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,
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,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
271,
5
],
[
271,
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
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
34
],
[
34,
35
],
[
34,
36
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
52,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
65,
71
],
[
8,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
8,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
8,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
8,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
87,
95
],
[
95,
96
],
[
96,
97
],
[
87,
98
],
[
99,
99
],
[
99,
100
],
[
100,
101
],
[
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
],
[
114,
118
],
[
113,
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
],
[
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
],
[
149,
153
],
[
148,
154
],
[
154,
155
],
[
155,
156
],
[
8,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
157,
162
],
[
162,
163
],
[
162,
164
],
[
157,
165
],
[
165,
166
],
[
166,
167
],
[
157,
168
],
[
169,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
170,
175
],
[
175,
176
],
[
175,
177
],
[
170,
178
],
[
178,
179
],
[
179,
180
],
[
170,
181
],
[
182,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
183,
188
],
[
188,
189
],
[
188,
190
],
[
183,
191
],
[
191,
192
],
[
192,
193
],
[
183,
194
],
[
195,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
197,
201
],
[
196,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
203,
207
],
[
202,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
212
],
[
8,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
213,
218
],
[
218,
219
],
[
218,
220
],
[
213,
221
],
[
221,
222
],
[
222,
223
],
[
213,
224
],
[
225,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
226,
231
],
[
231,
232
],
[
231,
233
],
[
226,
234
],
[
234,
235
],
[
235,
236
],
[
226,
237
],
[
238,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
239,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
244,
248
],
[
238,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
252,
253
],
[
252,
254
],
[
249,
255
],
[
255,
256
],
[
256,
257
],
[
257,
258
],
[
258,
259
],
[
258,
260
],
[
256,
261
],
[
225,
262
],
[
262,
263
],
[
263,
264
],
[
264,
265
],
[
264,
266
],
[
262,
267
],
[
6,
268
],
[
268,
269
],
[
0,
270
],
[
270,
271
],
[
270,
272
]
] | [
"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, m, l, i, j, k;\n\t\tlong[][] a = new long[100][100], b = new long[100][100], c = new long[100][100];\n\t\t\n\t\tfor(i = 0; i < 100; i++){\n\t\t\tfor(j = 0; j < 100; j++){\n\t\t\t\tc[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tn = sc.nextInt();\n\t\tm = sc.nextInt();\n\t\tl = sc.nextInt();\n\t\t\n\t\tfor(i = 0; i < n; i++){\n\t\t\tfor(j = 0; j < m; j++){\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(i = 0; i < m; i++){\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(i = 0; i < n; i++){\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tfor(k = 0; k < m; k++){\n\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(i = 0; i < n; i++){\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\n\t\t\t\tif(j < l-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\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, m, l, i, j, k;\n\t\tlong[][] a = new long[100][100], b = new long[100][100], c = new long[100][100];\n\t\t\n\t\tfor(i = 0; i < 100; i++){\n\t\t\tfor(j = 0; j < 100; j++){\n\t\t\t\tc[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tn = sc.nextInt();\n\t\tm = sc.nextInt();\n\t\tl = sc.nextInt();\n\t\t\n\t\tfor(i = 0; i < n; i++){\n\t\t\tfor(j = 0; j < m; j++){\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(i = 0; i < m; i++){\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(i = 0; i < n; i++){\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tfor(k = 0; k < m; k++){\n\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(i = 0; i < n; i++){\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\n\t\t\t\tif(j < l-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\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, m, l, i, j, k;\n\t\tlong[][] a = new long[100][100], b = new long[100][100], c = new long[100][100];\n\t\t\n\t\tfor(i = 0; i < 100; i++){\n\t\t\tfor(j = 0; j < 100; j++){\n\t\t\t\tc[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tn = sc.nextInt();\n\t\tm = sc.nextInt();\n\t\tl = sc.nextInt();\n\t\t\n\t\tfor(i = 0; i < n; i++){\n\t\t\tfor(j = 0; j < m; j++){\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(i = 0; i < m; i++){\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(i = 0; i < n; i++){\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tfor(k = 0; k < m; k++){\n\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(i = 0; i < n; i++){\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\n\t\t\t\tif(j < l-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n, m, l, i, j, k;\n\t\tlong[][] a = new long[100][100], b = new long[100][100], c = new long[100][100];\n\t\t\n\t\tfor(i = 0; i < 100; i++){\n\t\t\tfor(j = 0; j < 100; j++){\n\t\t\t\tc[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tn = sc.nextInt();\n\t\tm = sc.nextInt();\n\t\tl = sc.nextInt();\n\t\t\n\t\tfor(i = 0; i < n; i++){\n\t\t\tfor(j = 0; j < m; j++){\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(i = 0; i < m; i++){\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(i = 0; i < n; i++){\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tfor(k = 0; k < m; k++){\n\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(i = 0; i < n; i++){\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\n\t\t\t\tif(j < l-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n",
"n",
"m",
"m",
"l",
"l",
"i",
"i",
"j",
"j",
"k;",
"k",
"long[][] a = new long[100][100]",
"a",
"new long[100][100]",
"100",
"100",
"b = new long[100][100]",
"b",
"new long[100][100]",
"100",
"100",
"c = new long[100][100];",
"c",
"new long[100][100]",
"100",
"100",
"for(i = 0; i < 100; i++){\n\t\t\tfor(j = 0; j < 100; j++){\n\t\t\t\tc[i][j] = 0;\n\t\t\t}\n\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < 100",
"i",
"100",
"i++",
"i++",
"i",
"{\n\t\t\tfor(j = 0; j < 100; j++){\n\t\t\t\tc[i][j] = 0;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(j = 0; j < 100; j++){\n\t\t\t\tc[i][j] = 0;\n\t\t\t}\n\t\t}",
"for(j = 0; j < 100; j++){\n\t\t\t\tc[i][j] = 0;\n\t\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < 100",
"j",
"100",
"j++",
"j++",
"j",
"{\n\t\t\t\tc[i][j] = 0;\n\t\t\t}",
"{\n\t\t\t\tc[i][j] = 0;\n\t\t\t}",
"c[i][j] = 0",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"0",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"m = sc.nextInt()",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"l = sc.nextInt()",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(i = 0; i < n; i++){\n\t\t\tfor(j = 0; j < m; j++){\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(j = 0; j < m; j++){\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(j = 0; j < m; j++){\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for(j = 0; j < m; j++){\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\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(i = 0; i < m; i++){\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for(j = 0; j < l; j++){\n\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t}",
"b[i][j] = sc.nextInt()",
"b[i][j]",
"b[i]",
"b",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(i = 0; i < n; i++){\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tfor(k = 0; k < m; k++){\n\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tfor(k = 0; k < m; k++){\n\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tfor(k = 0; k < m; k++){\n\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(j = 0; j < l; j++){\n\t\t\t\tfor(k = 0; k < m; k++){\n\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(k = 0; k < m; k++){\n\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(k = 0; k < m; k++){\n\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t}",
"for(k = 0; k < m; k++){\n\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t}",
"k = 0;",
"k = 0",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t}",
"{\n\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t}",
"c[i][j] += a[i][k] * b[k][j]",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"a[i][k] * b[k][j]",
"a[i][k]",
"a[i]",
"a",
"i",
"k",
"b[k][j]",
"b[k]",
"b",
"k",
"j",
"for(i = 0; i < n; i++){\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\n\t\t\t\tif(j < l-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\n\t\t\t\tif(j < l-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"{\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\n\t\t\t\tif(j < l-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"for(j = 0; j < l; j++){\n\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\n\t\t\t\tif(j < l-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\n\t\t\t\tif(j < l-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\n\t\t\t\tif(j < l-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}",
"System.out.print(c[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"if(j < l-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"j < l-1",
"j",
"l-1",
"l",
"1",
"{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"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, m, l, i, j, k;\n\t\tlong[][] a = new long[100][100], b = new long[100][100], c = new long[100][100];\n\t\t\n\t\tfor(i = 0; i < 100; i++){\n\t\t\tfor(j = 0; j < 100; j++){\n\t\t\t\tc[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tn = sc.nextInt();\n\t\tm = sc.nextInt();\n\t\tl = sc.nextInt();\n\t\t\n\t\tfor(i = 0; i < n; i++){\n\t\t\tfor(j = 0; j < m; j++){\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(i = 0; i < m; i++){\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(i = 0; i < n; i++){\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tfor(k = 0; k < m; k++){\n\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(i = 0; i < n; i++){\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\n\t\t\t\tif(j < l-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\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, m, l, i, j, k;\n\t\tlong[][] a = new long[100][100], b = new long[100][100], c = new long[100][100];\n\t\t\n\t\tfor(i = 0; i < 100; i++){\n\t\t\tfor(j = 0; j < 100; j++){\n\t\t\t\tc[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tn = sc.nextInt();\n\t\tm = sc.nextInt();\n\t\tl = sc.nextInt();\n\t\t\n\t\tfor(i = 0; i < n; i++){\n\t\t\tfor(j = 0; j < m; j++){\n\t\t\t\ta[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(i = 0; i < m; i++){\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tb[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(i = 0; i < n; i++){\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tfor(k = 0; k < m; k++){\n\t\t\t\t\tc[i][j] += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(i = 0; i < n; i++){\n\t\t\tfor(j = 0; j < l; j++){\n\t\t\t\tSystem.out.print(c[i][j]);\n\t\t\t\t\n\t\t\t\tif(j < l-1){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\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, m, l, i, j, k;
long[][] a = new long[100][100], b = new long[100][100], c = new long[100][100];
for(i = 0; i < 100; i++){
for(j = 0; j < 100; j++){
c[i][j] = 0;
}
}
n = sc.nextInt();
m = sc.nextInt();
l = sc.nextInt();
for(i = 0; i < n; i++){
for(j = 0; j < m; j++){
a[i][j] = sc.nextInt();
}
}
for(i = 0; i < m; i++){
for(j = 0; j < l; j++){
b[i][j] = sc.nextInt();
}
}
for(i = 0; i < n; i++){
for(j = 0; j < l; j++){
for(k = 0; k < m; k++){
c[i][j] += a[i][k] * b[k][j];
}
}
}
for(i = 0; i < n; i++){
for(j = 0; j < l; j++){
System.out.print(c[i][j]);
if(j < l-1){
System.out.print(" ");
}
}
System.out.println("");
}
}
} |
[
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,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
13,
41,
13,
20,
13,
13,
41,
13,
17,
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,
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,
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,
18,
13,
13,
13,
4,
18,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
247,
11
],
[
247,
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
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
50,
52
],
[
14,
53
],
[
53,
54
],
[
53,
55
],
[
14,
58
],
[
58,
59
],
[
58,
60
],
[
14,
63
],
[
63,
64
],
[
63,
65
],
[
14,
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
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
78,
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
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
112,
113
],
[
112,
114
],
[
14,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
120,
121
],
[
120,
122
],
[
115,
123
],
[
123,
124
],
[
124,
125
],
[
115,
126
],
[
127,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
127,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
127,
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
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
152,
158
],
[
158,
159
],
[
159,
160
],
[
158,
161
],
[
161,
162
],
[
161,
163
],
[
14,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
164,
169
],
[
169,
170
],
[
169,
171
],
[
164,
172
],
[
172,
173
],
[
173,
174
],
[
164,
175
],
[
176,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
182,
183
],
[
182,
184
],
[
177,
185
],
[
185,
186
],
[
186,
187
],
[
177,
188
],
[
189,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
189,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
193,
198
],
[
198,
199
],
[
198,
200
],
[
193,
201
],
[
201,
202
],
[
202,
203
],
[
193,
204
],
[
205,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
209,
213
],
[
208,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
214,
218
],
[
189,
219
],
[
219,
220
],
[
220,
221
],
[
219,
222
],
[
189,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
226,
228
],
[
223,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
230,
233
],
[
176,
234
],
[
234,
235
],
[
235,
236
],
[
234,
237
],
[
14,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
238,
243
],
[
12,
244
],
[
244,
245
],
[
0,
246
],
[
246,
247
],
[
246,
248
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tString[] line = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(line[0]);\n\t\tint m = Integer.parseInt(line[1]);\n\t\tint l = Integer.parseInt(line[2]);\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong c = 0;\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString row = br.readLine();\n\t\t\tString[] elem = row.split(\" \");\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = Integer.parseInt(elem[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tString row = br.readLine();\n\t\t\tString[] elem = row.split(\" \");\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = Integer.parseInt(elem[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tc = 0;\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tc += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tsb.append(c);\n\t\t\t\tif(j != l-1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\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\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[] line = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(line[0]);\n\t\tint m = Integer.parseInt(line[1]);\n\t\tint l = Integer.parseInt(line[2]);\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong c = 0;\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString row = br.readLine();\n\t\t\tString[] elem = row.split(\" \");\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = Integer.parseInt(elem[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tString row = br.readLine();\n\t\t\tString[] elem = row.split(\" \");\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = Integer.parseInt(elem[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tc = 0;\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tc += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tsb.append(c);\n\t\t\t\tif(j != l-1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\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[] line = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(line[0]);\n\t\tint m = Integer.parseInt(line[1]);\n\t\tint l = Integer.parseInt(line[2]);\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong c = 0;\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString row = br.readLine();\n\t\t\tString[] elem = row.split(\" \");\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = Integer.parseInt(elem[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tString row = br.readLine();\n\t\t\tString[] elem = row.split(\" \");\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = Integer.parseInt(elem[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tc = 0;\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tc += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tsb.append(c);\n\t\t\t\tif(j != l-1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\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[] line = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(line[0]);\n\t\tint m = Integer.parseInt(line[1]);\n\t\tint l = Integer.parseInt(line[2]);\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong c = 0;\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString row = br.readLine();\n\t\t\tString[] elem = row.split(\" \");\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = Integer.parseInt(elem[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tString row = br.readLine();\n\t\t\tString[] elem = row.split(\" \");\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = Integer.parseInt(elem[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tc = 0;\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tc += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tsb.append(c);\n\t\t\t\tif(j != l-1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\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[] 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 l = Integer.parseInt(line[2]);",
"l",
"Integer.parseInt(line[2])",
"Integer.parseInt",
"Integer",
"line[2]",
"line",
"2",
"int[][] A = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int[][] B = new int[m][l];",
"B",
"new int[m][l]",
"m",
"l",
"long c = 0;",
"c",
"0",
"for(int i = 0; i < n; i++) {\n\t\t\tString row = br.readLine();\n\t\t\tString[] elem = row.split(\" \");\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = Integer.parseInt(elem[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 row = br.readLine();\n\t\t\tString[] elem = row.split(\" \");\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = Integer.parseInt(elem[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tString row = br.readLine();\n\t\t\tString[] elem = row.split(\" \");\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = Integer.parseInt(elem[j]);\n\t\t\t}\n\t\t}",
"String row = br.readLine();",
"row",
"br.readLine()",
"br.readLine",
"br",
"String[] elem = row.split(\" \");",
"elem",
"row.split(\" \")",
"row.split",
"row",
"\" \"",
"for(int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = Integer.parseInt(elem[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(elem[j]);\n\t\t\t}",
"{\n\t\t\t\tA[i][j] = Integer.parseInt(elem[j]);\n\t\t\t}",
"A[i][j] = Integer.parseInt(elem[j])",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"Integer.parseInt(elem[j])",
"Integer.parseInt",
"Integer",
"elem[j]",
"elem",
"j",
"for(int i = 0; i < m; i++) {\n\t\t\tString row = br.readLine();\n\t\t\tString[] elem = row.split(\" \");\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = Integer.parseInt(elem[j]);\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\tString row = br.readLine();\n\t\t\tString[] elem = row.split(\" \");\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = Integer.parseInt(elem[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tString row = br.readLine();\n\t\t\tString[] elem = row.split(\" \");\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = Integer.parseInt(elem[j]);\n\t\t\t}\n\t\t}",
"String row = br.readLine();",
"row",
"br.readLine()",
"br.readLine",
"br",
"String[] elem = row.split(\" \");",
"elem",
"row.split(\" \")",
"row.split",
"row",
"\" \"",
"for(int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = Integer.parseInt(elem[j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tB[i][j] = Integer.parseInt(elem[j]);\n\t\t\t}",
"{\n\t\t\t\tB[i][j] = Integer.parseInt(elem[j]);\n\t\t\t}",
"B[i][j] = Integer.parseInt(elem[j])",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"Integer.parseInt(elem[j])",
"Integer.parseInt",
"Integer",
"elem[j]",
"elem",
"j",
"for(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tc = 0;\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tc += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tsb.append(c);\n\t\t\t\tif(j != l-1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\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\tc = 0;\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tc += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tsb.append(c);\n\t\t\t\tif(j != l-1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tc = 0;\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tc += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tsb.append(c);\n\t\t\t\tif(j != l-1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}",
"for(int j = 0; j < l; j++) {\n\t\t\t\tc = 0;\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tc += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tsb.append(c);\n\t\t\t\tif(j != l-1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tc = 0;\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tc += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tsb.append(c);\n\t\t\t\tif(j != l-1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tc = 0;\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tc += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tsb.append(c);\n\t\t\t\tif(j != l-1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}\n\t\t\t}",
"c = 0",
"c",
"0",
"for(int k = 0; k < m; k++) {\n\t\t\t\t\tc += A[i][k] * B[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\tc += A[i][k] * B[k][j];\n\t\t\t\t}",
"{\n\t\t\t\t\tc += A[i][k] * B[k][j];\n\t\t\t\t}",
"c += A[i][k] * B[k][j]",
"c",
"A[i][k] * B[k][j]",
"A[i][k]",
"A[i]",
"A",
"i",
"k",
"B[k][j]",
"B[k]",
"B",
"k",
"j",
"sb.append(c)",
"sb.append",
"sb",
"c",
"if(j != l-1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}",
"j != l-1",
"j",
"l-1",
"l",
"1",
"{\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"sb.append(\"\\n\")",
"sb.append",
"sb",
"\"\\n\"",
"System.out.print(sb)",
"System.out.print",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args",
"public class Main {\n\n\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[] line = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(line[0]);\n\t\tint m = Integer.parseInt(line[1]);\n\t\tint l = Integer.parseInt(line[2]);\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong c = 0;\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString row = br.readLine();\n\t\t\tString[] elem = row.split(\" \");\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = Integer.parseInt(elem[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tString row = br.readLine();\n\t\t\tString[] elem = row.split(\" \");\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = Integer.parseInt(elem[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tc = 0;\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tc += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tsb.append(c);\n\t\t\t\tif(j != l-1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\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\tStringBuilder sb = new StringBuilder();\n\n\t\tString[] line = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(line[0]);\n\t\tint m = Integer.parseInt(line[1]);\n\t\tint l = Integer.parseInt(line[2]);\n\t\tint[][] A = new int[n][m];\n\t\tint[][] B = new int[m][l];\n\t\tlong c = 0;\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString row = br.readLine();\n\t\t\tString[] elem = row.split(\" \");\n\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\tA[i][j] = Integer.parseInt(elem[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tString row = br.readLine();\n\t\t\tString[] elem = row.split(\" \");\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tB[i][j] = Integer.parseInt(elem[j]);\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < l; j++) {\n\t\t\t\tc = 0;\n\t\t\t\tfor(int k = 0; k < m; k++) {\n\t\t\t\t\tc += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t\tsb.append(c);\n\t\t\t\tif(j != l-1) {\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\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[] line = br.readLine().split(" ");
int n = Integer.parseInt(line[0]);
int m = Integer.parseInt(line[1]);
int l = Integer.parseInt(line[2]);
int[][] A = new int[n][m];
int[][] B = new int[m][l];
long c = 0;
for(int i = 0; i < n; i++) {
String row = br.readLine();
String[] elem = row.split(" ");
for(int j = 0; j < m; j++) {
A[i][j] = Integer.parseInt(elem[j]);
}
}
for(int i = 0; i < m; i++) {
String row = br.readLine();
String[] elem = row.split(" ");
for(int j = 0; j < l; j++) {
B[i][j] = Integer.parseInt(elem[j]);
}
}
for(int i = 0; i < n; i++) {
for(int j = 0; j < l; j++) {
c = 0;
for(int k = 0; k < m; k++) {
c += A[i][k] * B[k][j];
}
sb.append(c);
if(j != l-1) {
sb.append(" ");
}
}
sb.append("\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,
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,
0,
18,
13,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
4,
18,
13,
17,
41,
13,
20,
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,
4,
18,
13,
18,
18,
13,
13,
13,
4,
18,
13,
18,
18,
13,
13,
13,
4,
18,
13,
13,
14,
2,
13,
2,
13,
17,
4,
18,
13,
17,
4,
18,
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
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
8,
49
],
[
49,
50
],
[
49,
51
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
54,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
70,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
76,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
92,
97
],
[
8,
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
],
[
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
],
[
146,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
145,
154
],
[
154,
155
],
[
155,
156
],
[
154,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
126,
162
],
[
162,
163
],
[
163,
164
],
[
162,
165
],
[
126,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
169,
171
],
[
166,
172
],
[
172,
173
],
[
173,
174
],
[
172,
175
],
[
113,
176
],
[
176,
177
],
[
177,
178
],
[
176,
179
],
[
8,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
180,
185
],
[
6,
186
],
[
186,
187
]
] | [
"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[] f=br.readLine().split(\" \");\n int n=Integer.parseInt(f[0]);\n int m=Integer.parseInt(f[1]);\n int l=Integer.parseInt(f[2]);\n String[][] A=new String[n][m];\n String[][] B=new String[m][l];\n for(int ni=0;ni<n;ni++) A[ni]=br.readLine().split(\" \");\n for(int mi=0;mi<m;mi++) B[mi]=br.readLine().split(\" \");\n \n \tStringBuilder sb = new StringBuilder();\n for(int ni=0;ni<n;ni++){\n \tfor(int li=0;li<l;li++){\n \t\tlong b=0;\n \tfor(int mi=0;mi<m;mi++){\n \t\tb+=Integer.parseInt(A[ni][mi])*Integer.parseInt(B[mi][li]);\n \t}\n \tsb.append(b);\n \tif(li!=l-1) sb.append(\" \");\n \t}\n \tsb.append(\"\\n\");\n }\n \tSystem.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[] f=br.readLine().split(\" \");\n int n=Integer.parseInt(f[0]);\n int m=Integer.parseInt(f[1]);\n int l=Integer.parseInt(f[2]);\n String[][] A=new String[n][m];\n String[][] B=new String[m][l];\n for(int ni=0;ni<n;ni++) A[ni]=br.readLine().split(\" \");\n for(int mi=0;mi<m;mi++) B[mi]=br.readLine().split(\" \");\n \n \tStringBuilder sb = new StringBuilder();\n for(int ni=0;ni<n;ni++){\n \tfor(int li=0;li<l;li++){\n \t\tlong b=0;\n \tfor(int mi=0;mi<m;mi++){\n \t\tb+=Integer.parseInt(A[ni][mi])*Integer.parseInt(B[mi][li]);\n \t}\n \tsb.append(b);\n \tif(li!=l-1) sb.append(\" \");\n \t}\n \tsb.append(\"\\n\");\n }\n \tSystem.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[] f=br.readLine().split(\" \");\n int n=Integer.parseInt(f[0]);\n int m=Integer.parseInt(f[1]);\n int l=Integer.parseInt(f[2]);\n String[][] A=new String[n][m];\n String[][] B=new String[m][l];\n for(int ni=0;ni<n;ni++) A[ni]=br.readLine().split(\" \");\n for(int mi=0;mi<m;mi++) B[mi]=br.readLine().split(\" \");\n \n \tStringBuilder sb = new StringBuilder();\n for(int ni=0;ni<n;ni++){\n \tfor(int li=0;li<l;li++){\n \t\tlong b=0;\n \tfor(int mi=0;mi<m;mi++){\n \t\tb+=Integer.parseInt(A[ni][mi])*Integer.parseInt(B[mi][li]);\n \t}\n \tsb.append(b);\n \tif(li!=l-1) sb.append(\" \");\n \t}\n \tsb.append(\"\\n\");\n }\n \tSystem.out.print(sb);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] f=br.readLine().split(\" \");\n int n=Integer.parseInt(f[0]);\n int m=Integer.parseInt(f[1]);\n int l=Integer.parseInt(f[2]);\n String[][] A=new String[n][m];\n String[][] B=new String[m][l];\n for(int ni=0;ni<n;ni++) A[ni]=br.readLine().split(\" \");\n for(int mi=0;mi<m;mi++) B[mi]=br.readLine().split(\" \");\n \n \tStringBuilder sb = new StringBuilder();\n for(int ni=0;ni<n;ni++){\n \tfor(int li=0;li<l;li++){\n \t\tlong b=0;\n \tfor(int mi=0;mi<m;mi++){\n \t\tb+=Integer.parseInt(A[ni][mi])*Integer.parseInt(B[mi][li]);\n \t}\n \tsb.append(b);\n \tif(li!=l-1) sb.append(\" \");\n \t}\n \tsb.append(\"\\n\");\n }\n \tSystem.out.print(sb);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] f=br.readLine().split(\" \");",
"f",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int n=Integer.parseInt(f[0]);",
"n",
"Integer.parseInt(f[0])",
"Integer.parseInt",
"Integer",
"f[0]",
"f",
"0",
"int m=Integer.parseInt(f[1]);",
"m",
"Integer.parseInt(f[1])",
"Integer.parseInt",
"Integer",
"f[1]",
"f",
"1",
"int l=Integer.parseInt(f[2]);",
"l",
"Integer.parseInt(f[2])",
"Integer.parseInt",
"Integer",
"f[2]",
"f",
"2",
"String[][] A=new String[n][m];",
"A",
"new String[n][m]",
"n",
"m",
"String[][] B=new String[m][l];",
"B",
"new String[m][l]",
"m",
"l",
"for(int ni=0;ni<n;ni++) A[ni]=br.readLine().split(\" \");",
"int ni=0;",
"int ni=0;",
"ni",
"0",
"ni<n",
"ni",
"n",
"ni++",
"ni++",
"ni",
"A[ni]=br.readLine().split(\" \");",
"A[ni]=br.readLine().split(\" \")",
"A[ni]",
"A",
"ni",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(int mi=0;mi<m;mi++) B[mi]=br.readLine().split(\" \");",
"int mi=0;",
"int mi=0;",
"mi",
"0",
"mi<m",
"mi",
"m",
"mi++",
"mi++",
"mi",
"B[mi]=br.readLine().split(\" \");",
"B[mi]=br.readLine().split(\" \")",
"B[mi]",
"B",
"mi",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"for(int ni=0;ni<n;ni++){\n \tfor(int li=0;li<l;li++){\n \t\tlong b=0;\n \tfor(int mi=0;mi<m;mi++){\n \t\tb+=Integer.parseInt(A[ni][mi])*Integer.parseInt(B[mi][li]);\n \t}\n \tsb.append(b);\n \tif(li!=l-1) sb.append(\" \");\n \t}\n \tsb.append(\"\\n\");\n }",
"int ni=0;",
"int ni=0;",
"ni",
"0",
"ni<n",
"ni",
"n",
"ni++",
"ni++",
"ni",
"{\n \tfor(int li=0;li<l;li++){\n \t\tlong b=0;\n \tfor(int mi=0;mi<m;mi++){\n \t\tb+=Integer.parseInt(A[ni][mi])*Integer.parseInt(B[mi][li]);\n \t}\n \tsb.append(b);\n \tif(li!=l-1) sb.append(\" \");\n \t}\n \tsb.append(\"\\n\");\n }",
"{\n \tfor(int li=0;li<l;li++){\n \t\tlong b=0;\n \tfor(int mi=0;mi<m;mi++){\n \t\tb+=Integer.parseInt(A[ni][mi])*Integer.parseInt(B[mi][li]);\n \t}\n \tsb.append(b);\n \tif(li!=l-1) sb.append(\" \");\n \t}\n \tsb.append(\"\\n\");\n }",
"for(int li=0;li<l;li++){\n \t\tlong b=0;\n \tfor(int mi=0;mi<m;mi++){\n \t\tb+=Integer.parseInt(A[ni][mi])*Integer.parseInt(B[mi][li]);\n \t}\n \tsb.append(b);\n \tif(li!=l-1) sb.append(\" \");\n \t}",
"int li=0;",
"int li=0;",
"li",
"0",
"li<l",
"li",
"l",
"li++",
"li++",
"li",
"{\n \t\tlong b=0;\n \tfor(int mi=0;mi<m;mi++){\n \t\tb+=Integer.parseInt(A[ni][mi])*Integer.parseInt(B[mi][li]);\n \t}\n \tsb.append(b);\n \tif(li!=l-1) sb.append(\" \");\n \t}",
"{\n \t\tlong b=0;\n \tfor(int mi=0;mi<m;mi++){\n \t\tb+=Integer.parseInt(A[ni][mi])*Integer.parseInt(B[mi][li]);\n \t}\n \tsb.append(b);\n \tif(li!=l-1) sb.append(\" \");\n \t}",
"long b=0;",
"b",
"0",
"for(int mi=0;mi<m;mi++){\n \t\tb+=Integer.parseInt(A[ni][mi])*Integer.parseInt(B[mi][li]);\n \t}",
"int mi=0;",
"int mi=0;",
"mi",
"0",
"mi<m",
"mi",
"m",
"mi++",
"mi++",
"mi",
"{\n \t\tb+=Integer.parseInt(A[ni][mi])*Integer.parseInt(B[mi][li]);\n \t}",
"{\n \t\tb+=Integer.parseInt(A[ni][mi])*Integer.parseInt(B[mi][li]);\n \t}",
"b+=Integer.parseInt(A[ni][mi])*Integer.parseInt(B[mi][li])",
"b",
"Integer.parseInt(A[ni][mi])*Integer.parseInt(B[mi][li])",
"Integer.parseInt(A[ni][mi])",
"Integer.parseInt",
"Integer",
"A[ni][mi]",
"A[ni]",
"A",
"ni",
"mi",
"Integer.parseInt(B[mi][li])",
"Integer.parseInt",
"Integer",
"B[mi][li]",
"B[mi]",
"B",
"mi",
"li",
"sb.append(b)",
"sb.append",
"sb",
"b",
"if(li!=l-1) sb.append(\" \");",
"li!=l-1",
"li",
"l-1",
"l",
"1",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"sb.append(\"\\n\")",
"sb.append",
"sb",
"\"\\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[] f=br.readLine().split(" ");
int n=Integer.parseInt(f[0]);
int m=Integer.parseInt(f[1]);
int l=Integer.parseInt(f[2]);
String[][] A=new String[n][m];
String[][] B=new String[m][l];
for(int ni=0;ni<n;ni++) A[ni]=br.readLine().split(" ");
for(int mi=0;mi<m;mi++) B[mi]=br.readLine().split(" ");
StringBuilder sb = new StringBuilder();
for(int ni=0;ni<n;ni++){
for(int li=0;li<l;li++){
long b=0;
for(int mi=0;mi<m;mi++){
b+=Integer.parseInt(A[ni][mi])*Integer.parseInt(B[mi][li]);
}
sb.append(b);
if(li!=l-1) sb.append(" ");
}
sb.append("\n");
}
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,
4,
18,
13,
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,
0,
18,
18,
13,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
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,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
4,
18,
18,
13,
13,
2,
17,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
256,
5
],
[
256,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
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
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
67,
73
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
74,
82
],
[
82,
83
],
[
83,
84
],
[
74,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
87,
95
],
[
95,
96
],
[
96,
97
],
[
87,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
99,
105
],
[
105,
106
],
[
106,
107
],
[
8,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
113,
114
],
[
113,
115
],
[
108,
116
],
[
116,
117
],
[
117,
118
],
[
108,
119
],
[
120,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
126,
127
],
[
126,
128
],
[
121,
129
],
[
129,
130
],
[
130,
131
],
[
121,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
133,
139
],
[
139,
140
],
[
140,
141
],
[
8,
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
],
[
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
],
[
168,
176
],
[
176,
177
],
[
177,
178
],
[
168,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
180,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
186,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
192,
196
],
[
8,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
197,
202
],
[
202,
203
],
[
202,
204
],
[
197,
205
],
[
205,
206
],
[
206,
207
],
[
197,
208
],
[
209,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
210,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
215,
219
],
[
209,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
220,
225
],
[
225,
226
],
[
225,
227
],
[
220,
228
],
[
228,
229
],
[
229,
230
],
[
220,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
232,
237
],
[
237,
238
],
[
237,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
239,
243
],
[
209,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
246,
248
],
[
244,
249
],
[
8,
250
],
[
250,
251
],
[
251,
252
],
[
6,
253
],
[
253,
254
],
[
0,
255
],
[
255,
256
],
[
255,
257
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n\n int[][] A = new int[n][m];\n int[][] B = new int[m][l];\n long[][] C = new long[n][l];\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++)\n C[i][j] = 0;\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++)\n A[i][j] = sc.nextInt();\n }\n for(int i = 0; i < m; i++){\n for(int j = 0; j < l; j++)\n B[i][j] = sc.nextInt();\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n for(int k = 0; k < m; k++)\n C[i][j] += (long)(A[i][k] * B[k][j]);\n }\n }\n\n for(int i = 0; i < n; i++){\n System.out.print(C[i][0]);\n for(int j = 1; j < l; j++)\n System.out.print(\" \" + C[i][j]);\n System.out.println(\"\");\n }\n\n sc.close();\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n\n int[][] A = new int[n][m];\n int[][] B = new int[m][l];\n long[][] C = new long[n][l];\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++)\n C[i][j] = 0;\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++)\n A[i][j] = sc.nextInt();\n }\n for(int i = 0; i < m; i++){\n for(int j = 0; j < l; j++)\n B[i][j] = sc.nextInt();\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n for(int k = 0; k < m; k++)\n C[i][j] += (long)(A[i][k] * B[k][j]);\n }\n }\n\n for(int i = 0; i < n; i++){\n System.out.print(C[i][0]);\n for(int j = 1; j < l; j++)\n System.out.print(\" \" + C[i][j]);\n System.out.println(\"\");\n }\n\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n\n int[][] A = new int[n][m];\n int[][] B = new int[m][l];\n long[][] C = new long[n][l];\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++)\n C[i][j] = 0;\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++)\n A[i][j] = sc.nextInt();\n }\n for(int i = 0; i < m; i++){\n for(int j = 0; j < l; j++)\n B[i][j] = sc.nextInt();\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n for(int k = 0; k < m; k++)\n C[i][j] += (long)(A[i][k] * B[k][j]);\n }\n }\n\n for(int i = 0; i < n; i++){\n System.out.print(C[i][0]);\n for(int j = 1; j < l; j++)\n System.out.print(\" \" + C[i][j]);\n System.out.println(\"\");\n }\n\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n\n int[][] A = new int[n][m];\n int[][] B = new int[m][l];\n long[][] C = new long[n][l];\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++)\n C[i][j] = 0;\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++)\n A[i][j] = sc.nextInt();\n }\n for(int i = 0; i < m; i++){\n for(int j = 0; j < l; j++)\n B[i][j] = sc.nextInt();\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n for(int k = 0; k < m; k++)\n C[i][j] += (long)(A[i][k] * B[k][j]);\n }\n }\n\n for(int i = 0; i < n; i++){\n System.out.print(C[i][0]);\n for(int j = 1; j < l; j++)\n System.out.print(\" \" + C[i][j]);\n System.out.println(\"\");\n }\n\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int l = sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] A = new int[n][m];",
"A",
"new int[n][m]",
"n",
"m",
"int[][] B = new int[m][l];",
"B",
"new int[m][l]",
"m",
"l",
"long[][] C = new long[n][l];",
"C",
"new long[n][l]",
"n",
"l",
"for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++)\n C[i][j] = 0;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < l; j++)\n C[i][j] = 0;\n }",
"{\n for(int j = 0; j < l; j++)\n C[i][j] = 0;\n }",
"for(int j = 0; j < l; j++)\n C[i][j] = 0;",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"C[i][j] = 0;",
"C[i][j] = 0",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"0",
"for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++)\n A[i][j] = sc.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < m; j++)\n A[i][j] = sc.nextInt();\n }",
"{\n for(int j = 0; j < m; j++)\n A[i][j] = sc.nextInt();\n }",
"for(int j = 0; j < m; j++)\n A[i][j] = sc.nextInt();",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"A[i][j] = sc.nextInt();",
"A[i][j] = sc.nextInt()",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < m; i++){\n for(int j = 0; j < l; j++)\n B[i][j] = sc.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < l; j++)\n B[i][j] = sc.nextInt();\n }",
"{\n for(int j = 0; j < l; j++)\n B[i][j] = sc.nextInt();\n }",
"for(int j = 0; j < l; j++)\n B[i][j] = sc.nextInt();",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"B[i][j] = sc.nextInt();",
"B[i][j] = sc.nextInt()",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n for(int k = 0; k < m; k++)\n C[i][j] += (long)(A[i][k] * B[k][j]);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < l; j++){\n for(int k = 0; k < m; k++)\n C[i][j] += (long)(A[i][k] * B[k][j]);\n }\n }",
"{\n for(int j = 0; j < l; j++){\n for(int k = 0; k < m; k++)\n C[i][j] += (long)(A[i][k] * B[k][j]);\n }\n }",
"for(int j = 0; j < l; j++){\n for(int k = 0; k < m; k++)\n C[i][j] += (long)(A[i][k] * B[k][j]);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n for(int k = 0; k < m; k++)\n C[i][j] += (long)(A[i][k] * B[k][j]);\n }",
"{\n for(int k = 0; k < m; k++)\n C[i][j] += (long)(A[i][k] * B[k][j]);\n }",
"for(int k = 0; k < m; k++)\n C[i][j] += (long)(A[i][k] * B[k][j]);",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < m",
"k",
"m",
"k++",
"k++",
"k",
"C[i][j] += (long)(A[i][k] * B[k][j]);",
"C[i][j] += (long)(A[i][k] * B[k][j])",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"(long)(A[i][k] * B[k][j])",
"A[i][k]",
"A[i]",
"A",
"i",
"k",
"B[k][j]",
"B[k]",
"B",
"k",
"j",
"for(int i = 0; i < n; i++){\n System.out.print(C[i][0]);\n for(int j = 1; j < l; j++)\n System.out.print(\" \" + C[i][j]);\n System.out.println(\"\");\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n System.out.print(C[i][0]);\n for(int j = 1; j < l; j++)\n System.out.print(\" \" + C[i][j]);\n System.out.println(\"\");\n }",
"{\n System.out.print(C[i][0]);\n for(int j = 1; j < l; j++)\n System.out.print(\" \" + C[i][j]);\n System.out.println(\"\");\n }",
"System.out.print(C[i][0])",
"System.out.print",
"System.out",
"System",
"System.out",
"C[i][0]",
"C[i]",
"C",
"i",
"0",
"for(int j = 1; j < l; j++)\n System.out.print(\" \" + C[i][j]);",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"System.out.print(\" \" + C[i][j]);",
"System.out.print(\" \" + C[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + C[i][j]",
"\" \"",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n\n int[][] A = new int[n][m];\n int[][] B = new int[m][l];\n long[][] C = new long[n][l];\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++)\n C[i][j] = 0;\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++)\n A[i][j] = sc.nextInt();\n }\n for(int i = 0; i < m; i++){\n for(int j = 0; j < l; j++)\n B[i][j] = sc.nextInt();\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n for(int k = 0; k < m; k++)\n C[i][j] += (long)(A[i][k] * B[k][j]);\n }\n }\n\n for(int i = 0; i < n; i++){\n System.out.print(C[i][0]);\n for(int j = 1; j < l; j++)\n System.out.print(\" \" + C[i][j]);\n System.out.println(\"\");\n }\n\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int m = sc.nextInt();\n int l = sc.nextInt();\n\n int[][] A = new int[n][m];\n int[][] B = new int[m][l];\n long[][] C = new long[n][l];\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++)\n C[i][j] = 0;\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < m; j++)\n A[i][j] = sc.nextInt();\n }\n for(int i = 0; i < m; i++){\n for(int j = 0; j < l; j++)\n B[i][j] = sc.nextInt();\n }\n\n for(int i = 0; i < n; i++){\n for(int j = 0; j < l; j++){\n for(int k = 0; k < m; k++)\n C[i][j] += (long)(A[i][k] * B[k][j]);\n }\n }\n\n for(int i = 0; i < n; i++){\n System.out.print(C[i][0]);\n for(int j = 1; j < l; j++)\n System.out.print(\" \" + C[i][j]);\n System.out.println(\"\");\n }\n\n sc.close();\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
int l = sc.nextInt();
int[][] A = new int[n][m];
int[][] B = new int[m][l];
long[][] C = new long[n][l];
for(int i = 0; i < n; i++){
for(int j = 0; j < l; j++)
C[i][j] = 0;
}
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++){
for(int j = 0; j < l; j++)
B[i][j] = sc.nextInt();
}
for(int i = 0; i < n; i++){
for(int j = 0; j < l; j++){
for(int k = 0; k < m; k++)
C[i][j] += (long)(A[i][k] * B[k][j]);
}
}
for(int i = 0; i < n; i++){
System.out.print(C[i][0]);
for(int j = 1; j < l; j++)
System.out.print(" " + C[i][j]);
System.out.println("");
}
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,
4,
18,
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,
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,
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,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
195,
5
],
[
195,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
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
],
[
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
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
98,
104
],
[
104,
105
],
[
105,
106
],
[
8,
107
],
[
107,
108
],
[
107,
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
],
[
166,
168
],
[
168,
169
],
[
168,
170
],
[
165,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
172,
177
],
[
177,
178
],
[
177,
179
],
[
165,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
181,
186
],
[
122,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
6,
192
],
[
192,
193
],
[
0,
194
],
[
194,
195
],
[
194,
196
]
] | [
"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 l = sc.nextInt();\n\t\tint nm[][] = new int[n][m];\n\t\tint ml[][] = new int[m][l];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tnm[i][j] = sc.nextInt();\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\tml[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tlong ans = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tans = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tans += nm[i][k] * ml[k][j];\n\t\t\t\t}\n\t\t\t\tif(j!=l-1) {\n\t\t\t\t\tSystem.out.print(ans + \" \");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(ans);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint l = sc.nextInt();\n\t\tint nm[][] = new int[n][m];\n\t\tint ml[][] = new int[m][l];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tnm[i][j] = sc.nextInt();\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\tml[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tlong ans = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tans = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tans += nm[i][k] * ml[k][j];\n\t\t\t\t}\n\t\t\t\tif(j!=l-1) {\n\t\t\t\t\tSystem.out.print(ans + \" \");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(ans);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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 = sc.nextInt();\n\t\tint nm[][] = new int[n][m];\n\t\tint ml[][] = new int[m][l];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tnm[i][j] = sc.nextInt();\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\tml[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tlong ans = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tans = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tans += nm[i][k] * ml[k][j];\n\t\t\t\t}\n\t\t\t\tif(j!=l-1) {\n\t\t\t\t\tSystem.out.print(ans + \" \");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(ans);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = sc.nextInt();\n\t\tint nm[][] = new int[n][m];\n\t\tint ml[][] = new int[m][l];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tnm[i][j] = sc.nextInt();\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\tml[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tlong ans = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tans = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tans += nm[i][k] * ml[k][j];\n\t\t\t\t}\n\t\t\t\tif(j!=l-1) {\n\t\t\t\t\tSystem.out.print(ans + \" \");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(ans);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int nm[][] = new int[n][m];",
"nm",
"new int[n][m]",
"n",
"m",
"int ml[][] = new int[m][l];",
"ml",
"new int[m][l]",
"m",
"l",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tnm[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\tnm[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\tnm[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for (int j = 0; j < m; j++) {\n\t\t\t\tnm[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\tnm[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tnm[i][j] = sc.nextInt();\n\t\t\t}",
"nm[i][j] = sc.nextInt()",
"nm[i][j]",
"nm[i]",
"nm",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tml[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tml[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tml[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for (int j = 0; j < l; j++) {\n\t\t\t\tml[i][j] = sc.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tml[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tml[i][j] = sc.nextInt();\n\t\t\t}",
"ml[i][j] = sc.nextInt()",
"ml[i][j]",
"ml[i]",
"ml",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long ans = 0;",
"ans",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tans = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tans += nm[i][k] * ml[k][j];\n\t\t\t\t}\n\t\t\t\tif(j!=l-1) {\n\t\t\t\t\tSystem.out.print(ans + \" \");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(ans);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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\tans = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tans += nm[i][k] * ml[k][j];\n\t\t\t\t}\n\t\t\t\tif(j!=l-1) {\n\t\t\t\t\tSystem.out.print(ans + \" \");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(ans);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tans = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tans += nm[i][k] * ml[k][j];\n\t\t\t\t}\n\t\t\t\tif(j!=l-1) {\n\t\t\t\t\tSystem.out.print(ans + \" \");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(ans);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for (int j = 0; j < l; j++) {\n\t\t\t\tans = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tans += nm[i][k] * ml[k][j];\n\t\t\t\t}\n\t\t\t\tif(j!=l-1) {\n\t\t\t\t\tSystem.out.print(ans + \" \");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(ans);\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tans = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tans += nm[i][k] * ml[k][j];\n\t\t\t\t}\n\t\t\t\tif(j!=l-1) {\n\t\t\t\t\tSystem.out.print(ans + \" \");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(ans);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tans = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tans += nm[i][k] * ml[k][j];\n\t\t\t\t}\n\t\t\t\tif(j!=l-1) {\n\t\t\t\t\tSystem.out.print(ans + \" \");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(ans);\n\t\t\t\t}\n\t\t\t}",
"ans = 0",
"ans",
"0",
"for (int k = 0; k < m; k++) {\n\t\t\t\t\tans += nm[i][k] * ml[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\tans += nm[i][k] * ml[k][j];\n\t\t\t\t}",
"{\n\t\t\t\t\tans += nm[i][k] * ml[k][j];\n\t\t\t\t}",
"ans += nm[i][k] * ml[k][j]",
"ans",
"nm[i][k] * ml[k][j]",
"nm[i][k]",
"nm[i]",
"nm",
"i",
"k",
"ml[k][j]",
"ml[k]",
"ml",
"k",
"j",
"if(j!=l-1) {\n\t\t\t\t\tSystem.out.print(ans + \" \");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(ans);\n\t\t\t\t}",
"j!=l-1",
"j",
"l-1",
"l",
"1",
"{\n\t\t\t\t\tSystem.out.print(ans + \" \");\n\t\t\t\t}",
"System.out.print(ans + \" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"ans + \" \"",
"ans",
"\" \"",
"{\n\t\t\t\t\tSystem.out.print(ans);\n\t\t\t\t}",
"System.out.print(ans)",
"System.out.print",
"System.out",
"System",
"System.out",
"ans",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"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 l = sc.nextInt();\n\t\tint nm[][] = new int[n][m];\n\t\tint ml[][] = new int[m][l];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tnm[i][j] = sc.nextInt();\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\tml[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tlong ans = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tans = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tans += nm[i][k] * ml[k][j];\n\t\t\t\t}\n\t\t\t\tif(j!=l-1) {\n\t\t\t\t\tSystem.out.print(ans + \" \");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(ans);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = sc.nextInt();\n\t\tint nm[][] = new int[n][m];\n\t\tint ml[][] = new int[m][l];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tnm[i][j] = sc.nextInt();\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\tml[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tlong ans = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tans = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tans += nm[i][k] * ml[k][j];\n\t\t\t\t}\n\t\t\t\tif(j!=l-1) {\n\t\t\t\t\tSystem.out.print(ans + \" \");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(ans);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = sc.nextInt();
int nm[][] = new int[n][m];
int ml[][] = new int[m][l];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
nm[i][j] = sc.nextInt();
}
}
for (int i = 0; i < m; i++) {
for (int j = 0; j < l; j++) {
ml[i][j] = sc.nextInt();
}
}
long ans = 0;
for (int i = 0; i < n; i++) {
for (int j = 0; j < l; j++) {
ans = 0;
for (int k = 0; k < m; k++) {
ans += nm[i][k] * ml[k][j];
}
if(j!=l-1) {
System.out.print(ans + " ");
}else {
System.out.print(ans);
}
}
System.out.println();
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
5,
13,
30,
4,
18,
18,
13,
13,
17,
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,
4,
18,
13,
18,
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,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
18,
13,
13,
0,
18,
18,
13,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
18,
13,
13,
0,
18,
18,
13,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
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,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
41,
13,
20,
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,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
18,
18,
13,
13,
13,
4,
18,
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
],
[
318,
14
],
[
318,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
24,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
24,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
43,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
43,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
63,
65
],
[
43,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
71,
73
],
[
43,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
79,
80
],
[
79,
81
],
[
43,
82
],
[
82,
83
],
[
82,
84
],
[
43,
87
],
[
87,
88
],
[
87,
89
],
[
43,
92
],
[
92,
93
],
[
92,
94
],
[
43,
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
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
109,
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
],
[
136,
139
],
[
139,
140
],
[
139,
141
],
[
133,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
142,
148
],
[
43,
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
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
161,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
170,
171
],
[
169,
172
],
[
161,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
173,
178
],
[
178,
179
],
[
178,
180
],
[
173,
181
],
[
181,
182
],
[
182,
183
],
[
173,
184
],
[
185,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
188,
191
],
[
191,
192
],
[
191,
193
],
[
185,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
195,
199
],
[
194,
200
],
[
43,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
201,
206
],
[
206,
207
],
[
206,
208
],
[
201,
209
],
[
209,
210
],
[
210,
211
],
[
201,
212
],
[
213,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
214,
219
],
[
219,
220
],
[
219,
221
],
[
214,
222
],
[
222,
223
],
[
223,
224
],
[
214,
225
],
[
226,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
227,
232
],
[
232,
233
],
[
232,
234
],
[
227,
235
],
[
235,
236
],
[
236,
237
],
[
227,
238
],
[
239,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
241,
245
],
[
240,
246
],
[
246,
247
],
[
247,
248
],
[
248,
249
],
[
248,
250
],
[
247,
251
],
[
246,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
252,
256
],
[
43,
257
],
[
257,
258
],
[
257,
259
],
[
43,
260
],
[
260,
261
],
[
261,
262
],
[
262,
263
],
[
262,
264
],
[
260,
265
],
[
265,
266
],
[
265,
267
],
[
260,
268
],
[
268,
269
],
[
269,
270
],
[
260,
271
],
[
272,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
275,
276
],
[
275,
277
],
[
273,
278
],
[
278,
279
],
[
278,
280
],
[
273,
281
],
[
281,
282
],
[
282,
283
],
[
273,
284
],
[
285,
285
],
[
285,
286
],
[
286,
287
],
[
287,
288
],
[
287,
289
],
[
286,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
291,
296
],
[
285,
297
],
[
297,
298
],
[
298,
299
],
[
299,
300
],
[
299,
301
],
[
297,
302
],
[
302,
303
],
[
303,
304
],
[
302,
305
],
[
305,
306
],
[
306,
307
],
[
306,
308
],
[
305,
309
],
[
272,
310
],
[
310,
311
],
[
311,
312
],
[
312,
313
],
[
312,
314
],
[
15,
315
],
[
315,
316
],
[
0,
317
],
[
317,
318
],
[
317,
319
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.text.DecimalFormat;\n\n/**\n * Lesson7D n×m の行列 A と m×l の行列 B を入力し、\n * それらの積である n×l の行列 C を出力するプログラム\n * 行列 C の各要素 c ij は次の式で得られます:\n * c ij =? k=1 m a ik b kj\n * ここで、A 、B 、C の各要素をそれぞれ a ij 、b ij 、c ij とする\n *\n * @author Internship\n *\n */\npublic class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t//行や列の各数字の一時保管場所\n\t\t\t\tint intVector = 0;\n\n\t\t//入力値の各行の文字列の一時保管場所\n\t\t\t\tString strLineAll = \"\";\n\n\t\t//1行目を読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine1 = insBR.readLine();\n\n\t\t\t//ばらけさせる\n\t\t\tString[] strAryLine1 = strLine1.split(\" \");\n\n\t\t\t//1つ目がN\n\t\t\tint intN = Integer.parseInt(strAryLine1[0]);\n\n\t\t\t//2つ目がM\n\t\t\tint intM = Integer.parseInt(strAryLine1[1]);\n\n\t\t\t//3つ目がL\n\t\t\tint intL = Integer.parseInt(strAryLine1[2]);\n\n\t\t\t//N,M,Lが決まったところで配列の大きさが決まる\n\t\t\t//行列A\n\t\t\tint[][] intTableA = new int[intN][intM];\n\n\t\t\t//行列B\n\t\t\tint[][] intTableB = new int[intM][intL];\n\n\t\t\t//行列C\n\t\t\tdouble[][] dbTableC = new double[intN][intL];\n\n\t\t\t//行列Aを読み込む\n\t\t\t//i行目\n\t\t\tfor(int i = 0; i < intN; i++) {\n\t\t\t\tstrLineAll = insBR.readLine();\n\n\t\t\t\t//ばらけさせる\n\t\t\t\tString[] strAryLineAll = strLineAll.split(\" \");\n\n\t\t\t\t//int型にキャスト\n\t\t\t\t//j列目\n\t\t\t\tfor(int j = 0; j < intM; j++) {\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableA[i][j] = intVector;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t//行列Bを読み込む\n\t\t\t//i行目\n\t\t\tfor(int i = 0; i < intM; i++) {\n\t\t\t\tstrLineAll = insBR.readLine();\n\n\t\t\t\t//ばらけさせる\n\t\t\t\tString[] strAryLineAll = strLineAll.split(\" \");\n\n\t\t\t\t//int型にキャスト\n\t\t\t\t//j列目\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableB[i][j] = intVector;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//計算\n\t\t\tfor(int i = 0; i < intN; i++) {\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tfor(int k = 0; k < intM; k++) {\n\t\t\t\t\t\tdbTableC[i][j] += intTableA[i][k] * intTableB[k][j];\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//小数5桁まで\n\t\t DecimalFormat insdf = new DecimalFormat(\"0\");\n\n\n\t\t\t//出力\n\t\t\tfor(int i = 0; i < intN; i++) {\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tif(j != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\tSystem.out.print(insdf.format(dbTableC[i][j]));\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\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.text.DecimalFormat;",
"DecimalFormat",
"java.text",
"public class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t//行や列の各数字の一時保管場所\n\t\t\t\tint intVector = 0;\n\n\t\t//入力値の各行の文字列の一時保管場所\n\t\t\t\tString strLineAll = \"\";\n\n\t\t//1行目を読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine1 = insBR.readLine();\n\n\t\t\t//ばらけさせる\n\t\t\tString[] strAryLine1 = strLine1.split(\" \");\n\n\t\t\t//1つ目がN\n\t\t\tint intN = Integer.parseInt(strAryLine1[0]);\n\n\t\t\t//2つ目がM\n\t\t\tint intM = Integer.parseInt(strAryLine1[1]);\n\n\t\t\t//3つ目がL\n\t\t\tint intL = Integer.parseInt(strAryLine1[2]);\n\n\t\t\t//N,M,Lが決まったところで配列の大きさが決まる\n\t\t\t//行列A\n\t\t\tint[][] intTableA = new int[intN][intM];\n\n\t\t\t//行列B\n\t\t\tint[][] intTableB = new int[intM][intL];\n\n\t\t\t//行列C\n\t\t\tdouble[][] dbTableC = new double[intN][intL];\n\n\t\t\t//行列Aを読み込む\n\t\t\t//i行目\n\t\t\tfor(int i = 0; i < intN; i++) {\n\t\t\t\tstrLineAll = insBR.readLine();\n\n\t\t\t\t//ばらけさせる\n\t\t\t\tString[] strAryLineAll = strLineAll.split(\" \");\n\n\t\t\t\t//int型にキャスト\n\t\t\t\t//j列目\n\t\t\t\tfor(int j = 0; j < intM; j++) {\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableA[i][j] = intVector;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t//行列Bを読み込む\n\t\t\t//i行目\n\t\t\tfor(int i = 0; i < intM; i++) {\n\t\t\t\tstrLineAll = insBR.readLine();\n\n\t\t\t\t//ばらけさせる\n\t\t\t\tString[] strAryLineAll = strLineAll.split(\" \");\n\n\t\t\t\t//int型にキャスト\n\t\t\t\t//j列目\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableB[i][j] = intVector;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//計算\n\t\t\tfor(int i = 0; i < intN; i++) {\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tfor(int k = 0; k < intM; k++) {\n\t\t\t\t\t\tdbTableC[i][j] += intTableA[i][k] * intTableB[k][j];\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//小数5桁まで\n\t\t DecimalFormat insdf = new DecimalFormat(\"0\");\n\n\n\t\t\t//出力\n\t\t\tfor(int i = 0; i < intN; i++) {\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tif(j != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\tSystem.out.print(insdf.format(dbTableC[i][j]));\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}\n}",
"Main",
"/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t//行や列の各数字の一時保管場所\n\t\t\t\tint intVector = 0;\n\n\t\t//入力値の各行の文字列の一時保管場所\n\t\t\t\tString strLineAll = \"\";\n\n\t\t//1行目を読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine1 = insBR.readLine();\n\n\t\t\t//ばらけさせる\n\t\t\tString[] strAryLine1 = strLine1.split(\" \");\n\n\t\t\t//1つ目がN\n\t\t\tint intN = Integer.parseInt(strAryLine1[0]);\n\n\t\t\t//2つ目がM\n\t\t\tint intM = Integer.parseInt(strAryLine1[1]);\n\n\t\t\t//3つ目がL\n\t\t\tint intL = Integer.parseInt(strAryLine1[2]);\n\n\t\t\t//N,M,Lが決まったところで配列の大きさが決まる\n\t\t\t//行列A\n\t\t\tint[][] intTableA = new int[intN][intM];\n\n\t\t\t//行列B\n\t\t\tint[][] intTableB = new int[intM][intL];\n\n\t\t\t//行列C\n\t\t\tdouble[][] dbTableC = new double[intN][intL];\n\n\t\t\t//行列Aを読み込む\n\t\t\t//i行目\n\t\t\tfor(int i = 0; i < intN; i++) {\n\t\t\t\tstrLineAll = insBR.readLine();\n\n\t\t\t\t//ばらけさせる\n\t\t\t\tString[] strAryLineAll = strLineAll.split(\" \");\n\n\t\t\t\t//int型にキャスト\n\t\t\t\t//j列目\n\t\t\t\tfor(int j = 0; j < intM; j++) {\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableA[i][j] = intVector;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t//行列Bを読み込む\n\t\t\t//i行目\n\t\t\tfor(int i = 0; i < intM; i++) {\n\t\t\t\tstrLineAll = insBR.readLine();\n\n\t\t\t\t//ばらけさせる\n\t\t\t\tString[] strAryLineAll = strLineAll.split(\" \");\n\n\t\t\t\t//int型にキャスト\n\t\t\t\t//j列目\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableB[i][j] = intVector;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//計算\n\t\t\tfor(int i = 0; i < intN; i++) {\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tfor(int k = 0; k < intM; k++) {\n\t\t\t\t\t\tdbTableC[i][j] += intTableA[i][k] * intTableB[k][j];\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//小数5桁まで\n\t\t DecimalFormat insdf = new DecimalFormat(\"0\");\n\n\n\t\t\t//出力\n\t\t\tfor(int i = 0; i < intN; i++) {\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tif(j != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\tSystem.out.print(insdf.format(dbTableC[i][j]));\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}",
"main",
"{\n\n\t\t//行や列の各数字の一時保管場所\n\t\t\t\tint intVector = 0;\n\n\t\t//入力値の各行の文字列の一時保管場所\n\t\t\t\tString strLineAll = \"\";\n\n\t\t//1行目を読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine1 = insBR.readLine();\n\n\t\t\t//ばらけさせる\n\t\t\tString[] strAryLine1 = strLine1.split(\" \");\n\n\t\t\t//1つ目がN\n\t\t\tint intN = Integer.parseInt(strAryLine1[0]);\n\n\t\t\t//2つ目がM\n\t\t\tint intM = Integer.parseInt(strAryLine1[1]);\n\n\t\t\t//3つ目がL\n\t\t\tint intL = Integer.parseInt(strAryLine1[2]);\n\n\t\t\t//N,M,Lが決まったところで配列の大きさが決まる\n\t\t\t//行列A\n\t\t\tint[][] intTableA = new int[intN][intM];\n\n\t\t\t//行列B\n\t\t\tint[][] intTableB = new int[intM][intL];\n\n\t\t\t//行列C\n\t\t\tdouble[][] dbTableC = new double[intN][intL];\n\n\t\t\t//行列Aを読み込む\n\t\t\t//i行目\n\t\t\tfor(int i = 0; i < intN; i++) {\n\t\t\t\tstrLineAll = insBR.readLine();\n\n\t\t\t\t//ばらけさせる\n\t\t\t\tString[] strAryLineAll = strLineAll.split(\" \");\n\n\t\t\t\t//int型にキャスト\n\t\t\t\t//j列目\n\t\t\t\tfor(int j = 0; j < intM; j++) {\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableA[i][j] = intVector;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t//行列Bを読み込む\n\t\t\t//i行目\n\t\t\tfor(int i = 0; i < intM; i++) {\n\t\t\t\tstrLineAll = insBR.readLine();\n\n\t\t\t\t//ばらけさせる\n\t\t\t\tString[] strAryLineAll = strLineAll.split(\" \");\n\n\t\t\t\t//int型にキャスト\n\t\t\t\t//j列目\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableB[i][j] = intVector;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//計算\n\t\t\tfor(int i = 0; i < intN; i++) {\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tfor(int k = 0; k < intM; k++) {\n\t\t\t\t\t\tdbTableC[i][j] += intTableA[i][k] * intTableB[k][j];\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//小数5桁まで\n\t\t DecimalFormat insdf = new DecimalFormat(\"0\");\n\n\n\t\t\t//出力\n\t\t\tfor(int i = 0; i < intN; i++) {\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tif(j != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\tSystem.out.print(insdf.format(dbTableC[i][j]));\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}",
"int intVector = 0;",
"intVector",
"0",
"String strLineAll = \"\";",
"strLineAll",
"\"\"",
"try {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine1 = insBR.readLine();\n\n\t\t\t//ばらけさせる\n\t\t\tString[] strAryLine1 = strLine1.split(\" \");\n\n\t\t\t//1つ目がN\n\t\t\tint intN = Integer.parseInt(strAryLine1[0]);\n\n\t\t\t//2つ目がM\n\t\t\tint intM = Integer.parseInt(strAryLine1[1]);\n\n\t\t\t//3つ目がL\n\t\t\tint intL = Integer.parseInt(strAryLine1[2]);\n\n\t\t\t//N,M,Lが決まったところで配列の大きさが決まる\n\t\t\t//行列A\n\t\t\tint[][] intTableA = new int[intN][intM];\n\n\t\t\t//行列B\n\t\t\tint[][] intTableB = new int[intM][intL];\n\n\t\t\t//行列C\n\t\t\tdouble[][] dbTableC = new double[intN][intL];\n\n\t\t\t//行列Aを読み込む\n\t\t\t//i行目\n\t\t\tfor(int i = 0; i < intN; i++) {\n\t\t\t\tstrLineAll = insBR.readLine();\n\n\t\t\t\t//ばらけさせる\n\t\t\t\tString[] strAryLineAll = strLineAll.split(\" \");\n\n\t\t\t\t//int型にキャスト\n\t\t\t\t//j列目\n\t\t\t\tfor(int j = 0; j < intM; j++) {\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableA[i][j] = intVector;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t//行列Bを読み込む\n\t\t\t//i行目\n\t\t\tfor(int i = 0; i < intM; i++) {\n\t\t\t\tstrLineAll = insBR.readLine();\n\n\t\t\t\t//ばらけさせる\n\t\t\t\tString[] strAryLineAll = strLineAll.split(\" \");\n\n\t\t\t\t//int型にキャスト\n\t\t\t\t//j列目\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableB[i][j] = intVector;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//計算\n\t\t\tfor(int i = 0; i < intN; i++) {\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tfor(int k = 0; k < intM; k++) {\n\t\t\t\t\t\tdbTableC[i][j] += intTableA[i][k] * intTableB[k][j];\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//小数5桁まで\n\t\t DecimalFormat insdf = new DecimalFormat(\"0\");\n\n\n\t\t\t//出力\n\t\t\tfor(int i = 0; i < intN; i++) {\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tif(j != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\tSystem.out.print(insdf.format(dbTableC[i][j]));\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}",
"catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}",
"IOException e",
"{\n\t\t\tSystem.out.println(e);\n\t\t}",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}",
"NumberFormatException e",
"{\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}",
"System.out.println(\"数字で入力して下さい\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"数字で入力して下さい\"",
"{\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine1 = insBR.readLine();\n\n\t\t\t//ばらけさせる\n\t\t\tString[] strAryLine1 = strLine1.split(\" \");\n\n\t\t\t//1つ目がN\n\t\t\tint intN = Integer.parseInt(strAryLine1[0]);\n\n\t\t\t//2つ目がM\n\t\t\tint intM = Integer.parseInt(strAryLine1[1]);\n\n\t\t\t//3つ目がL\n\t\t\tint intL = Integer.parseInt(strAryLine1[2]);\n\n\t\t\t//N,M,Lが決まったところで配列の大きさが決まる\n\t\t\t//行列A\n\t\t\tint[][] intTableA = new int[intN][intM];\n\n\t\t\t//行列B\n\t\t\tint[][] intTableB = new int[intM][intL];\n\n\t\t\t//行列C\n\t\t\tdouble[][] dbTableC = new double[intN][intL];\n\n\t\t\t//行列Aを読み込む\n\t\t\t//i行目\n\t\t\tfor(int i = 0; i < intN; i++) {\n\t\t\t\tstrLineAll = insBR.readLine();\n\n\t\t\t\t//ばらけさせる\n\t\t\t\tString[] strAryLineAll = strLineAll.split(\" \");\n\n\t\t\t\t//int型にキャスト\n\t\t\t\t//j列目\n\t\t\t\tfor(int j = 0; j < intM; j++) {\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableA[i][j] = intVector;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t//行列Bを読み込む\n\t\t\t//i行目\n\t\t\tfor(int i = 0; i < intM; i++) {\n\t\t\t\tstrLineAll = insBR.readLine();\n\n\t\t\t\t//ばらけさせる\n\t\t\t\tString[] strAryLineAll = strLineAll.split(\" \");\n\n\t\t\t\t//int型にキャスト\n\t\t\t\t//j列目\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableB[i][j] = intVector;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//計算\n\t\t\tfor(int i = 0; i < intN; i++) {\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tfor(int k = 0; k < intM; k++) {\n\t\t\t\t\t\tdbTableC[i][j] += intTableA[i][k] * intTableB[k][j];\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//小数5桁まで\n\t\t DecimalFormat insdf = new DecimalFormat(\"0\");\n\n\n\t\t\t//出力\n\t\t\tfor(int i = 0; i < intN; i++) {\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tif(j != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\tSystem.out.print(insdf.format(dbTableC[i][j]));\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\n\n\t\t}",
"BufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));",
"insBR",
"new BufferedReader(new InputStreamReader(System.in))",
"String strLine1 = insBR.readLine();",
"strLine1",
"insBR.readLine()",
"insBR.readLine",
"insBR",
"String[] strAryLine1 = strLine1.split(\" \");",
"strAryLine1",
"strLine1.split(\" \")",
"strLine1.split",
"strLine1",
"\" \"",
"int intN = Integer.parseInt(strAryLine1[0]);",
"intN",
"Integer.parseInt(strAryLine1[0])",
"Integer.parseInt",
"Integer",
"strAryLine1[0]",
"strAryLine1",
"0",
"int intM = Integer.parseInt(strAryLine1[1]);",
"intM",
"Integer.parseInt(strAryLine1[1])",
"Integer.parseInt",
"Integer",
"strAryLine1[1]",
"strAryLine1",
"1",
"int intL = Integer.parseInt(strAryLine1[2]);",
"intL",
"Integer.parseInt(strAryLine1[2])",
"Integer.parseInt",
"Integer",
"strAryLine1[2]",
"strAryLine1",
"2",
"int[][] intTableA = new int[intN][intM];",
"intTableA",
"new int[intN][intM]",
"intN",
"intM",
"int[][] intTableB = new int[intM][intL];",
"intTableB",
"new int[intM][intL]",
"intM",
"intL",
"double[][] dbTableC = new double[intN][intL];",
"dbTableC",
"new double[intN][intL]",
"intN",
"intL",
"for(int i = 0; i < intN; i++) {\n\t\t\t\tstrLineAll = insBR.readLine();\n\n\t\t\t\t//ばらけさせる\n\t\t\t\tString[] strAryLineAll = strLineAll.split(\" \");\n\n\t\t\t\t//int型にキャスト\n\t\t\t\t//j列目\n\t\t\t\tfor(int j = 0; j < intM; j++) {\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableA[i][j] = intVector;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < intN",
"i",
"intN",
"i++",
"i++",
"i",
"{\n\t\t\t\tstrLineAll = insBR.readLine();\n\n\t\t\t\t//ばらけさせる\n\t\t\t\tString[] strAryLineAll = strLineAll.split(\" \");\n\n\t\t\t\t//int型にキャスト\n\t\t\t\t//j列目\n\t\t\t\tfor(int j = 0; j < intM; j++) {\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableA[i][j] = intVector;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tstrLineAll = insBR.readLine();\n\n\t\t\t\t//ばらけさせる\n\t\t\t\tString[] strAryLineAll = strLineAll.split(\" \");\n\n\t\t\t\t//int型にキャスト\n\t\t\t\t//j列目\n\t\t\t\tfor(int j = 0; j < intM; j++) {\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableA[i][j] = intVector;\n\t\t\t\t}\n\t\t\t}",
"strLineAll = insBR.readLine()",
"strLineAll",
"insBR.readLine()",
"insBR.readLine",
"insBR",
"String[] strAryLineAll = strLineAll.split(\" \");",
"strAryLineAll",
"strLineAll.split(\" \")",
"strLineAll.split",
"strLineAll",
"\" \"",
"for(int j = 0; j < intM; j++) {\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableA[i][j] = intVector;\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < intM",
"j",
"intM",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableA[i][j] = intVector;\n\t\t\t\t}",
"{\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableA[i][j] = intVector;\n\t\t\t\t}",
"intVector = Integer.parseInt(strAryLineAll[j])",
"intVector",
"Integer.parseInt(strAryLineAll[j])",
"Integer.parseInt",
"Integer",
"strAryLineAll[j]",
"strAryLineAll",
"j",
"intTableA[i][j] = intVector",
"intTableA[i][j]",
"intTableA[i]",
"intTableA",
"i",
"j",
"intVector",
"for(int i = 0; i < intM; i++) {\n\t\t\t\tstrLineAll = insBR.readLine();\n\n\t\t\t\t//ばらけさせる\n\t\t\t\tString[] strAryLineAll = strLineAll.split(\" \");\n\n\t\t\t\t//int型にキャスト\n\t\t\t\t//j列目\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableB[i][j] = intVector;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < intM",
"i",
"intM",
"i++",
"i++",
"i",
"{\n\t\t\t\tstrLineAll = insBR.readLine();\n\n\t\t\t\t//ばらけさせる\n\t\t\t\tString[] strAryLineAll = strLineAll.split(\" \");\n\n\t\t\t\t//int型にキャスト\n\t\t\t\t//j列目\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableB[i][j] = intVector;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tstrLineAll = insBR.readLine();\n\n\t\t\t\t//ばらけさせる\n\t\t\t\tString[] strAryLineAll = strLineAll.split(\" \");\n\n\t\t\t\t//int型にキャスト\n\t\t\t\t//j列目\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableB[i][j] = intVector;\n\t\t\t\t}\n\t\t\t}",
"strLineAll = insBR.readLine()",
"strLineAll",
"insBR.readLine()",
"insBR.readLine",
"insBR",
"String[] strAryLineAll = strLineAll.split(\" \");",
"strAryLineAll",
"strLineAll.split(\" \")",
"strLineAll.split",
"strLineAll",
"\" \"",
"for(int j = 0; j < intL; j++) {\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableB[i][j] = intVector;\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < intL",
"j",
"intL",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableB[i][j] = intVector;\n\t\t\t\t}",
"{\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableB[i][j] = intVector;\n\t\t\t\t}",
"intVector = Integer.parseInt(strAryLineAll[j])",
"intVector",
"Integer.parseInt(strAryLineAll[j])",
"Integer.parseInt",
"Integer",
"strAryLineAll[j]",
"strAryLineAll",
"j",
"intTableB[i][j] = intVector",
"intTableB[i][j]",
"intTableB[i]",
"intTableB",
"i",
"j",
"intVector",
"for(int i = 0; i < intN; i++) {\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tfor(int k = 0; k < intM; k++) {\n\t\t\t\t\t\tdbTableC[i][j] += intTableA[i][k] * intTableB[k][j];\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < intN",
"i",
"intN",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tfor(int k = 0; k < intM; k++) {\n\t\t\t\t\t\tdbTableC[i][j] += intTableA[i][k] * intTableB[k][j];\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tfor(int k = 0; k < intM; k++) {\n\t\t\t\t\t\tdbTableC[i][j] += intTableA[i][k] * intTableB[k][j];\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}",
"for(int j = 0; j < intL; j++) {\n\t\t\t\t\tfor(int k = 0; k < intM; k++) {\n\t\t\t\t\t\tdbTableC[i][j] += intTableA[i][k] * intTableB[k][j];\n\t\t\t\t\t}\n\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < intL",
"j",
"intL",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tfor(int k = 0; k < intM; k++) {\n\t\t\t\t\t\tdbTableC[i][j] += intTableA[i][k] * intTableB[k][j];\n\t\t\t\t\t}\n\n\t\t\t\t}",
"{\n\t\t\t\t\tfor(int k = 0; k < intM; k++) {\n\t\t\t\t\t\tdbTableC[i][j] += intTableA[i][k] * intTableB[k][j];\n\t\t\t\t\t}\n\n\t\t\t\t}",
"for(int k = 0; k < intM; k++) {\n\t\t\t\t\t\tdbTableC[i][j] += intTableA[i][k] * intTableB[k][j];\n\t\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < intM",
"k",
"intM",
"k++",
"k++",
"k",
"{\n\t\t\t\t\t\tdbTableC[i][j] += intTableA[i][k] * intTableB[k][j];\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tdbTableC[i][j] += intTableA[i][k] * intTableB[k][j];\n\t\t\t\t\t}",
"dbTableC[i][j] += intTableA[i][k] * intTableB[k][j]",
"dbTableC[i][j]",
"dbTableC[i]",
"dbTableC",
"i",
"j",
"intTableA[i][k] * intTableB[k][j]",
"intTableA[i][k]",
"intTableA[i]",
"intTableA",
"i",
"k",
"intTableB[k][j]",
"intTableB[k]",
"intTableB",
"k",
"j",
"DecimalFormat insdf = new DecimalFormat(\"0\");",
"insdf",
"new DecimalFormat(\"0\")",
"for(int i = 0; i < intN; i++) {\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tif(j != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\tSystem.out.print(insdf.format(dbTableC[i][j]));\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < intN",
"i",
"intN",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tif(j != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\tSystem.out.print(insdf.format(dbTableC[i][j]));\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"{\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tif(j != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\tSystem.out.print(insdf.format(dbTableC[i][j]));\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}",
"for(int j = 0; j < intL; j++) {\n\t\t\t\t\tif(j != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\tSystem.out.print(insdf.format(dbTableC[i][j]));\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < intL",
"j",
"intL",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tif(j != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\tSystem.out.print(insdf.format(dbTableC[i][j]));\n\t\t\t\t}",
"{\n\t\t\t\t\tif(j != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\tSystem.out.print(insdf.format(dbTableC[i][j]));\n\t\t\t\t}",
"if(j != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}",
"j != 0",
"j",
"0",
"{\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.print(insdf.format(dbTableC[i][j]))",
"System.out.print",
"System.out",
"System",
"System.out",
"insdf.format(dbTableC[i][j])",
"insdf.format",
"insdf",
"dbTableC[i][j]",
"dbTableC[i]",
"dbTableC",
"i",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t//行や列の各数字の一時保管場所\n\t\t\t\tint intVector = 0;\n\n\t\t//入力値の各行の文字列の一時保管場所\n\t\t\t\tString strLineAll = \"\";\n\n\t\t//1行目を読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine1 = insBR.readLine();\n\n\t\t\t//ばらけさせる\n\t\t\tString[] strAryLine1 = strLine1.split(\" \");\n\n\t\t\t//1つ目がN\n\t\t\tint intN = Integer.parseInt(strAryLine1[0]);\n\n\t\t\t//2つ目がM\n\t\t\tint intM = Integer.parseInt(strAryLine1[1]);\n\n\t\t\t//3つ目がL\n\t\t\tint intL = Integer.parseInt(strAryLine1[2]);\n\n\t\t\t//N,M,Lが決まったところで配列の大きさが決まる\n\t\t\t//行列A\n\t\t\tint[][] intTableA = new int[intN][intM];\n\n\t\t\t//行列B\n\t\t\tint[][] intTableB = new int[intM][intL];\n\n\t\t\t//行列C\n\t\t\tdouble[][] dbTableC = new double[intN][intL];\n\n\t\t\t//行列Aを読み込む\n\t\t\t//i行目\n\t\t\tfor(int i = 0; i < intN; i++) {\n\t\t\t\tstrLineAll = insBR.readLine();\n\n\t\t\t\t//ばらけさせる\n\t\t\t\tString[] strAryLineAll = strLineAll.split(\" \");\n\n\t\t\t\t//int型にキャスト\n\t\t\t\t//j列目\n\t\t\t\tfor(int j = 0; j < intM; j++) {\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableA[i][j] = intVector;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t//行列Bを読み込む\n\t\t\t//i行目\n\t\t\tfor(int i = 0; i < intM; i++) {\n\t\t\t\tstrLineAll = insBR.readLine();\n\n\t\t\t\t//ばらけさせる\n\t\t\t\tString[] strAryLineAll = strLineAll.split(\" \");\n\n\t\t\t\t//int型にキャスト\n\t\t\t\t//j列目\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableB[i][j] = intVector;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//計算\n\t\t\tfor(int i = 0; i < intN; i++) {\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tfor(int k = 0; k < intM; k++) {\n\t\t\t\t\t\tdbTableC[i][j] += intTableA[i][k] * intTableB[k][j];\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//小数5桁まで\n\t\t DecimalFormat insdf = new DecimalFormat(\"0\");\n\n\n\t\t\t//出力\n\t\t\tfor(int i = 0; i < intN; i++) {\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tif(j != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\tSystem.out.print(insdf.format(dbTableC[i][j]));\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}\n}",
"public class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t//行や列の各数字の一時保管場所\n\t\t\t\tint intVector = 0;\n\n\t\t//入力値の各行の文字列の一時保管場所\n\t\t\t\tString strLineAll = \"\";\n\n\t\t//1行目を読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine1 = insBR.readLine();\n\n\t\t\t//ばらけさせる\n\t\t\tString[] strAryLine1 = strLine1.split(\" \");\n\n\t\t\t//1つ目がN\n\t\t\tint intN = Integer.parseInt(strAryLine1[0]);\n\n\t\t\t//2つ目がM\n\t\t\tint intM = Integer.parseInt(strAryLine1[1]);\n\n\t\t\t//3つ目がL\n\t\t\tint intL = Integer.parseInt(strAryLine1[2]);\n\n\t\t\t//N,M,Lが決まったところで配列の大きさが決まる\n\t\t\t//行列A\n\t\t\tint[][] intTableA = new int[intN][intM];\n\n\t\t\t//行列B\n\t\t\tint[][] intTableB = new int[intM][intL];\n\n\t\t\t//行列C\n\t\t\tdouble[][] dbTableC = new double[intN][intL];\n\n\t\t\t//行列Aを読み込む\n\t\t\t//i行目\n\t\t\tfor(int i = 0; i < intN; i++) {\n\t\t\t\tstrLineAll = insBR.readLine();\n\n\t\t\t\t//ばらけさせる\n\t\t\t\tString[] strAryLineAll = strLineAll.split(\" \");\n\n\t\t\t\t//int型にキャスト\n\t\t\t\t//j列目\n\t\t\t\tfor(int j = 0; j < intM; j++) {\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableA[i][j] = intVector;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t//行列Bを読み込む\n\t\t\t//i行目\n\t\t\tfor(int i = 0; i < intM; i++) {\n\t\t\t\tstrLineAll = insBR.readLine();\n\n\t\t\t\t//ばらけさせる\n\t\t\t\tString[] strAryLineAll = strLineAll.split(\" \");\n\n\t\t\t\t//int型にキャスト\n\t\t\t\t//j列目\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tintVector = Integer.parseInt(strAryLineAll[j]);\n\n\t\t\t\t\t//配列に格納\n\t\t\t\t\t//i行のj列\n\t\t\t\t\tintTableB[i][j] = intVector;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//計算\n\t\t\tfor(int i = 0; i < intN; i++) {\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tfor(int k = 0; k < intM; k++) {\n\t\t\t\t\t\tdbTableC[i][j] += intTableA[i][k] * intTableB[k][j];\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//小数5桁まで\n\t\t DecimalFormat insdf = new DecimalFormat(\"0\");\n\n\n\t\t\t//出力\n\t\t\tfor(int i = 0; i < intN; i++) {\n\t\t\t\tfor(int j = 0; j < intL; j++) {\n\t\t\t\t\tif(j != 0) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\tSystem.out.print(insdf.format(dbTableC[i][j]));\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.DecimalFormat;
/**
* Lesson7D n×m の行列 A と m×l の行列 B を入力し、
* それらの積である n×l の行列 C を出力するプログラム
* 行列 C の各要素 c ij は次の式で得られます:
* c ij =? k=1 m a ik b kj
* ここで、A 、B 、C の各要素をそれぞれ a ij 、b ij 、c ij とする
*
* @author Internship
*
*/
public class Main{
/**
* プログラムのエントリポイント
*
* @param args
*/
public static void main(String[] args) {
//行や列の各数字の一時保管場所
int intVector = 0;
//入力値の各行の文字列の一時保管場所
String strLineAll = "";
//1行目を読み込む
try {
BufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));
String strLine1 = insBR.readLine();
//ばらけさせる
String[] strAryLine1 = strLine1.split(" ");
//1つ目がN
int intN = Integer.parseInt(strAryLine1[0]);
//2つ目がM
int intM = Integer.parseInt(strAryLine1[1]);
//3つ目がL
int intL = Integer.parseInt(strAryLine1[2]);
//N,M,Lが決まったところで配列の大きさが決まる
//行列A
int[][] intTableA = new int[intN][intM];
//行列B
int[][] intTableB = new int[intM][intL];
//行列C
double[][] dbTableC = new double[intN][intL];
//行列Aを読み込む
//i行目
for(int i = 0; i < intN; i++) {
strLineAll = insBR.readLine();
//ばらけさせる
String[] strAryLineAll = strLineAll.split(" ");
//int型にキャスト
//j列目
for(int j = 0; j < intM; j++) {
intVector = Integer.parseInt(strAryLineAll[j]);
//配列に格納
//i行のj列
intTableA[i][j] = intVector;
}
}
//行列Bを読み込む
//i行目
for(int i = 0; i < intM; i++) {
strLineAll = insBR.readLine();
//ばらけさせる
String[] strAryLineAll = strLineAll.split(" ");
//int型にキャスト
//j列目
for(int j = 0; j < intL; j++) {
intVector = Integer.parseInt(strAryLineAll[j]);
//配列に格納
//i行のj列
intTableB[i][j] = intVector;
}
}
//計算
for(int i = 0; i < intN; i++) {
for(int j = 0; j < intL; j++) {
for(int k = 0; k < intM; k++) {
dbTableC[i][j] += intTableA[i][k] * intTableB[k][j];
}
}
}
//小数5桁まで
DecimalFormat insdf = new DecimalFormat("0");
//出力
for(int i = 0; i < intN; i++) {
for(int j = 0; j < intL; j++) {
if(j != 0) {
System.out.print(" ");
}
System.out.print(insdf.format(dbTableC[i][j]));
}
System.out.println();
}
} catch (IOException e) {
System.out.println(e);
} catch (NumberFormatException e) {
System.out.println("数字で入力して下さい");
}
}
} |
[
7,
15,
13,
17,
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,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
13,
41,
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,
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,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
18,
18,
13,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
18,
13,
13,
41,
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,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
18,
18,
13,
13,
13,
4,
18,
4,
18,
13,
18,
18,
13,
13,
13,
4,
18,
13,
18,
18,
13,
13,
13,
0,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
13,
18,
18,
13,
13,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
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
],
[
17,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
24,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
34,
39
],
[
31,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
45,
47
],
[
31,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
53,
55
],
[
31,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
61,
63
],
[
31,
64
],
[
64,
65
],
[
64,
66
],
[
31,
69
],
[
69,
70
],
[
69,
71
],
[
31,
74
],
[
74,
75
],
[
74,
76
],
[
31,
79
],
[
79,
80
],
[
31,
81
],
[
81,
82
],
[
31,
83
],
[
83,
84
],
[
31,
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
],
[
102,
103
],
[
103,
104
],
[
100,
105
],
[
97,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
106,
114
],
[
114,
115
],
[
115,
116
],
[
106,
117
],
[
118,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
119,
125
],
[
125,
126
],
[
126,
127
],
[
125,
128
],
[
128,
129
],
[
128,
130
],
[
31,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
136,
137
],
[
136,
138
],
[
131,
139
],
[
139,
140
],
[
140,
141
],
[
131,
142
],
[
143,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
146,
151
],
[
143,
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
],
[
166,
170
],
[
165,
171
],
[
171,
172
],
[
172,
173
],
[
171,
174
],
[
174,
175
],
[
174,
176
],
[
31,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
184,
186
],
[
177,
187
],
[
187,
188
],
[
188,
189
],
[
177,
190
],
[
191,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
192,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
199,
203
],
[
192,
204
],
[
204,
205
],
[
205,
206
],
[
192,
207
],
[
208,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
210,
214
],
[
209,
215
],
[
215,
216
],
[
215,
217
],
[
31,
218
],
[
218,
219
],
[
218,
220
],
[
31,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
221,
226
],
[
226,
227
],
[
226,
228
],
[
221,
229
],
[
229,
230
],
[
230,
231
],
[
221,
232
],
[
233,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
234,
239
],
[
239,
240
],
[
239,
241
],
[
234,
242
],
[
242,
243
],
[
243,
244
],
[
234,
245
],
[
246,
246
],
[
246,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
247,
252
],
[
252,
253
],
[
252,
254
],
[
247,
255
],
[
255,
256
],
[
256,
257
],
[
247,
258
],
[
259,
259
],
[
259,
260
],
[
260,
261
],
[
261,
262
],
[
262,
263
],
[
262,
264
],
[
261,
265
],
[
260,
266
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
269,
270
],
[
269,
271
],
[
268,
272
],
[
266,
273
],
[
273,
274
],
[
274,
275
],
[
275,
276
],
[
276,
277
],
[
275,
278
],
[
278,
279
],
[
279,
280
],
[
279,
281
],
[
278,
282
],
[
273,
283
],
[
283,
284
],
[
284,
285
],
[
283,
286
],
[
286,
287
],
[
287,
288
],
[
287,
289
],
[
286,
290
],
[
233,
291
],
[
291,
292
],
[
291,
293
],
[
233,
294
],
[
294,
295
],
[
295,
296
],
[
296,
297
],
[
296,
298
],
[
294,
299
],
[
299,
300
],
[
299,
301
],
[
294,
302
],
[
302,
303
],
[
303,
304
],
[
294,
305
],
[
306,
306
],
[
306,
307
],
[
307,
308
],
[
307,
309
],
[
310,
310
],
[
310,
311
],
[
310,
312
],
[
312,
313
],
[
313,
314
],
[
313,
315
],
[
312,
316
],
[
310,
317
],
[
233,
318
],
[
318,
319
],
[
319,
320
],
[
320,
321
],
[
320,
322
],
[
318,
323
],
[
323,
324
],
[
324,
325
],
[
323,
326
],
[
323,
327
],
[
327,
328
],
[
328,
329
],
[
329,
330
],
[
327,
331
],
[
15,
332
],
[
332,
333
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.math.BigInteger;\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 n = Integer.parseInt(inputList[0]);\n\t\t\tint m = Integer.parseInt(inputList[1]);\n\t\t\tint l = Integer.parseInt(inputList[2]);\n\t\t\tint[][] a = new int[n][m];\n\t\t\tint[][] b = new int[m][l];\n\t\t\tBigInteger[][] c = new BigInteger[n][l];\n\t\t\tint i, j, k;\n\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (j = 0; j < m; j++) {\n\t\t\t\t\ta[i][j] = Integer.parseInt(inputList[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (i = 0; i < m; i++) {\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = Integer.parseInt(inputList[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (i = 0; i < c.length; i++) {\n\t\t\t\tfor (j = 0; j < c[i].length; j++) {\n\t\t\t\t\tc[i][j] = BigInteger.ZERO;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tString text = \"\";\n\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\tfor (j = 0; j < m; j++) {\n\t\t\t\t\tfor (k = 0; k < l; k++) {\n\t\t\t\t\t\tc[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ttext = \"\";\n\t\t\t\tfor (k = 0; k < l; k++) {\n\t\t\t\t\ttext = text + c[i][k] + \" \";\n\t\t\t\t}\n\t\t\t\tSystem.out.println(text.substring(0, text.length() - 1));\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",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"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 n = Integer.parseInt(inputList[0]);\n\t\t\tint m = Integer.parseInt(inputList[1]);\n\t\t\tint l = Integer.parseInt(inputList[2]);\n\t\t\tint[][] a = new int[n][m];\n\t\t\tint[][] b = new int[m][l];\n\t\t\tBigInteger[][] c = new BigInteger[n][l];\n\t\t\tint i, j, k;\n\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (j = 0; j < m; j++) {\n\t\t\t\t\ta[i][j] = Integer.parseInt(inputList[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (i = 0; i < m; i++) {\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = Integer.parseInt(inputList[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (i = 0; i < c.length; i++) {\n\t\t\t\tfor (j = 0; j < c[i].length; j++) {\n\t\t\t\t\tc[i][j] = BigInteger.ZERO;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tString text = \"\";\n\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\tfor (j = 0; j < m; j++) {\n\t\t\t\t\tfor (k = 0; k < l; k++) {\n\t\t\t\t\t\tc[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ttext = \"\";\n\t\t\t\tfor (k = 0; k < l; k++) {\n\t\t\t\t\ttext = text + c[i][k] + \" \";\n\t\t\t\t}\n\t\t\t\tSystem.out.println(text.substring(0, text.length() - 1));\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 n = Integer.parseInt(inputList[0]);\n\t\t\tint m = Integer.parseInt(inputList[1]);\n\t\t\tint l = Integer.parseInt(inputList[2]);\n\t\t\tint[][] a = new int[n][m];\n\t\t\tint[][] b = new int[m][l];\n\t\t\tBigInteger[][] c = new BigInteger[n][l];\n\t\t\tint i, j, k;\n\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (j = 0; j < m; j++) {\n\t\t\t\t\ta[i][j] = Integer.parseInt(inputList[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (i = 0; i < m; i++) {\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = Integer.parseInt(inputList[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (i = 0; i < c.length; i++) {\n\t\t\t\tfor (j = 0; j < c[i].length; j++) {\n\t\t\t\t\tc[i][j] = BigInteger.ZERO;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tString text = \"\";\n\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\tfor (j = 0; j < m; j++) {\n\t\t\t\t\tfor (k = 0; k < l; k++) {\n\t\t\t\t\t\tc[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ttext = \"\";\n\t\t\t\tfor (k = 0; k < l; k++) {\n\t\t\t\t\ttext = text + c[i][k] + \" \";\n\t\t\t\t}\n\t\t\t\tSystem.out.println(text.substring(0, text.length() - 1));\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 n = Integer.parseInt(inputList[0]);\n\t\t\tint m = Integer.parseInt(inputList[1]);\n\t\t\tint l = Integer.parseInt(inputList[2]);\n\t\t\tint[][] a = new int[n][m];\n\t\t\tint[][] b = new int[m][l];\n\t\t\tBigInteger[][] c = new BigInteger[n][l];\n\t\t\tint i, j, k;\n\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (j = 0; j < m; j++) {\n\t\t\t\t\ta[i][j] = Integer.parseInt(inputList[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (i = 0; i < m; i++) {\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = Integer.parseInt(inputList[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (i = 0; i < c.length; i++) {\n\t\t\t\tfor (j = 0; j < c[i].length; j++) {\n\t\t\t\t\tc[i][j] = BigInteger.ZERO;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tString text = \"\";\n\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\tfor (j = 0; j < m; j++) {\n\t\t\t\t\tfor (k = 0; k < l; k++) {\n\t\t\t\t\t\tc[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ttext = \"\";\n\t\t\t\tfor (k = 0; k < l; k++) {\n\t\t\t\t\ttext = text + c[i][k] + \" \";\n\t\t\t\t}\n\t\t\t\tSystem.out.println(text.substring(0, text.length() - 1));\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 n = Integer.parseInt(inputList[0]);\n\t\t\tint m = Integer.parseInt(inputList[1]);\n\t\t\tint l = Integer.parseInt(inputList[2]);\n\t\t\tint[][] a = new int[n][m];\n\t\t\tint[][] b = new int[m][l];\n\t\t\tBigInteger[][] c = new BigInteger[n][l];\n\t\t\tint i, j, k;\n\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (j = 0; j < m; j++) {\n\t\t\t\t\ta[i][j] = Integer.parseInt(inputList[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (i = 0; i < m; i++) {\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = Integer.parseInt(inputList[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (i = 0; i < c.length; i++) {\n\t\t\t\tfor (j = 0; j < c[i].length; j++) {\n\t\t\t\t\tc[i][j] = BigInteger.ZERO;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tString text = \"\";\n\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\tfor (j = 0; j < m; j++) {\n\t\t\t\t\tfor (k = 0; k < l; k++) {\n\t\t\t\t\t\tc[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ttext = \"\";\n\t\t\t\tfor (k = 0; k < l; k++) {\n\t\t\t\t\ttext = text + c[i][k] + \" \";\n\t\t\t\t}\n\t\t\t\tSystem.out.println(text.substring(0, text.length() - 1));\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 n = Integer.parseInt(inputList[0]);\n\t\t\tint m = Integer.parseInt(inputList[1]);\n\t\t\tint l = Integer.parseInt(inputList[2]);\n\t\t\tint[][] a = new int[n][m];\n\t\t\tint[][] b = new int[m][l];\n\t\t\tBigInteger[][] c = new BigInteger[n][l];\n\t\t\tint i, j, k;\n\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (j = 0; j < m; j++) {\n\t\t\t\t\ta[i][j] = Integer.parseInt(inputList[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (i = 0; i < m; i++) {\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = Integer.parseInt(inputList[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (i = 0; i < c.length; i++) {\n\t\t\t\tfor (j = 0; j < c[i].length; j++) {\n\t\t\t\t\tc[i][j] = BigInteger.ZERO;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tString text = \"\";\n\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\tfor (j = 0; j < m; j++) {\n\t\t\t\t\tfor (k = 0; k < l; k++) {\n\t\t\t\t\t\tc[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ttext = \"\";\n\t\t\t\tfor (k = 0; k < l; k++) {\n\t\t\t\t\ttext = text + c[i][k] + \" \";\n\t\t\t\t}\n\t\t\t\tSystem.out.println(text.substring(0, text.length() - 1));\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 n = Integer.parseInt(inputList[0]);",
"n",
"Integer.parseInt(inputList[0])",
"Integer.parseInt",
"Integer",
"inputList[0]",
"inputList",
"0",
"int m = Integer.parseInt(inputList[1]);",
"m",
"Integer.parseInt(inputList[1])",
"Integer.parseInt",
"Integer",
"inputList[1]",
"inputList",
"1",
"int l = Integer.parseInt(inputList[2]);",
"l",
"Integer.parseInt(inputList[2])",
"Integer.parseInt",
"Integer",
"inputList[2]",
"inputList",
"2",
"int[][] a = new int[n][m];",
"a",
"new int[n][m]",
"n",
"m",
"int[][] b = new int[m][l];",
"b",
"new int[m][l]",
"m",
"l",
"BigInteger[][] c = new BigInteger[n][l];",
"c",
"new BigInteger[n][l]",
"n",
"l",
"int i",
"i",
"j",
"j",
"k;",
"k",
"for (i = 0; i < n; i++) {\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (j = 0; j < m; j++) {\n\t\t\t\t\ta[i][j] = Integer.parseInt(inputList[j]);\n\t\t\t\t}\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (j = 0; j < m; j++) {\n\t\t\t\t\ta[i][j] = Integer.parseInt(inputList[j]);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (j = 0; j < m; j++) {\n\t\t\t\t\ta[i][j] = Integer.parseInt(inputList[j]);\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 (j = 0; j < m; j++) {\n\t\t\t\t\ta[i][j] = Integer.parseInt(inputList[j]);\n\t\t\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\t\ta[i][j] = Integer.parseInt(inputList[j]);\n\t\t\t\t}",
"{\n\t\t\t\t\ta[i][j] = Integer.parseInt(inputList[j]);\n\t\t\t\t}",
"a[i][j] = Integer.parseInt(inputList[j])",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"Integer.parseInt(inputList[j])",
"Integer.parseInt",
"Integer",
"inputList[j]",
"inputList",
"j",
"for (i = 0; i < m; i++) {\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = Integer.parseInt(inputList[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\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = Integer.parseInt(inputList[j]);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tinputList = br.readLine().split(\" \");\n\t\t\t\tfor (j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = Integer.parseInt(inputList[j]);\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 (j = 0; j < l; j++) {\n\t\t\t\t\tb[i][j] = Integer.parseInt(inputList[j]);\n\t\t\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tb[i][j] = Integer.parseInt(inputList[j]);\n\t\t\t\t}",
"{\n\t\t\t\t\tb[i][j] = Integer.parseInt(inputList[j]);\n\t\t\t\t}",
"b[i][j] = Integer.parseInt(inputList[j])",
"b[i][j]",
"b[i]",
"b",
"i",
"j",
"Integer.parseInt(inputList[j])",
"Integer.parseInt",
"Integer",
"inputList[j]",
"inputList",
"j",
"for (i = 0; i < c.length; i++) {\n\t\t\t\tfor (j = 0; j < c[i].length; j++) {\n\t\t\t\t\tc[i][j] = BigInteger.ZERO;\n\t\t\t\t}\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < c.length",
"i",
"c.length",
"c",
"c.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor (j = 0; j < c[i].length; j++) {\n\t\t\t\t\tc[i][j] = BigInteger.ZERO;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor (j = 0; j < c[i].length; j++) {\n\t\t\t\t\tc[i][j] = BigInteger.ZERO;\n\t\t\t\t}\n\t\t\t}",
"for (j = 0; j < c[i].length; j++) {\n\t\t\t\t\tc[i][j] = BigInteger.ZERO;\n\t\t\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < c[i].length",
"j",
"c[i].length",
"c[i]",
"c",
"i",
"c[i].length",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tc[i][j] = BigInteger.ZERO;\n\t\t\t\t}",
"{\n\t\t\t\t\tc[i][j] = BigInteger.ZERO;\n\t\t\t\t}",
"c[i][j] = BigInteger.ZERO",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"BigInteger.ZERO",
"BigInteger",
"BigInteger.ZERO",
"String text = \"\";",
"text",
"\"\"",
"for (i = 0; i < n; i++) {\n\t\t\t\tfor (j = 0; j < m; j++) {\n\t\t\t\t\tfor (k = 0; k < l; k++) {\n\t\t\t\t\t\tc[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ttext = \"\";\n\t\t\t\tfor (k = 0; k < l; k++) {\n\t\t\t\t\ttext = text + c[i][k] + \" \";\n\t\t\t\t}\n\t\t\t\tSystem.out.println(text.substring(0, text.length() - 1));\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor (j = 0; j < m; j++) {\n\t\t\t\t\tfor (k = 0; k < l; k++) {\n\t\t\t\t\t\tc[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ttext = \"\";\n\t\t\t\tfor (k = 0; k < l; k++) {\n\t\t\t\t\ttext = text + c[i][k] + \" \";\n\t\t\t\t}\n\t\t\t\tSystem.out.println(text.substring(0, text.length() - 1));\n\t\t\t}",
"{\n\t\t\t\tfor (j = 0; j < m; j++) {\n\t\t\t\t\tfor (k = 0; k < l; k++) {\n\t\t\t\t\t\tc[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ttext = \"\";\n\t\t\t\tfor (k = 0; k < l; k++) {\n\t\t\t\t\ttext = text + c[i][k] + \" \";\n\t\t\t\t}\n\t\t\t\tSystem.out.println(text.substring(0, text.length() - 1));\n\t\t\t}",
"for (j = 0; j < m; j++) {\n\t\t\t\t\tfor (k = 0; k < l; k++) {\n\t\t\t\t\t\tc[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));\n\t\t\t\t\t}\n\t\t\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tfor (k = 0; k < l; k++) {\n\t\t\t\t\t\tc[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tfor (k = 0; k < l; k++) {\n\t\t\t\t\t\tc[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));\n\t\t\t\t\t}\n\t\t\t\t}",
"for (k = 0; k < l; k++) {\n\t\t\t\t\t\tc[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));\n\t\t\t\t\t}",
"k = 0;",
"k = 0",
"k",
"0",
"k < l",
"k",
"l",
"k++",
"k++",
"k",
"{\n\t\t\t\t\t\tc[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tc[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));\n\t\t\t\t\t}",
"c[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])))",
"c[i][k]",
"c[i]",
"c",
"i",
"k",
"c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])))",
"c[i][k].add",
"c[i][k]",
"c[i]",
"c",
"i",
"k",
"BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k]))",
"BigInteger.valueOf(a[i][j]).multiply",
"BigInteger.valueOf(a[i][j])",
"BigInteger.valueOf",
"BigInteger",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"BigInteger.valueOf(b[j][k])",
"BigInteger.valueOf",
"BigInteger",
"b[j][k]",
"b[j]",
"b",
"j",
"k",
"text = \"\"",
"text",
"\"\"",
"for (k = 0; k < l; k++) {\n\t\t\t\t\ttext = text + c[i][k] + \" \";\n\t\t\t\t}",
"k = 0;",
"k = 0",
"k",
"0",
"k < l",
"k",
"l",
"k++",
"k++",
"k",
"{\n\t\t\t\t\ttext = text + c[i][k] + \" \";\n\t\t\t\t}",
"{\n\t\t\t\t\ttext = text + c[i][k] + \" \";\n\t\t\t\t}",
"text = text + c[i][k] + \" \"",
"text",
"text + c[i][k] + \" \"",
"text + c[i][k] + \" \"",
"text",
"c[i][k]",
"c[i]",
"c",
"i",
"k",
"\" \"",
"System.out.println(text.substring(0, text.length() - 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"text.substring(0, text.length() - 1)",
"text.substring",
"text",
"0",
"text.length() - 1",
"text.length()",
"text.length",
"text",
"1",
"String[] args",
"args"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;
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 n = Integer.parseInt(inputList[0]);
int m = Integer.parseInt(inputList[1]);
int l = Integer.parseInt(inputList[2]);
int[][] a = new int[n][m];
int[][] b = new int[m][l];
BigInteger[][] c = new BigInteger[n][l];
int i, j, k;
for (i = 0; i < n; i++) {
inputList = br.readLine().split(" ");
for (j = 0; j < m; j++) {
a[i][j] = Integer.parseInt(inputList[j]);
}
}
for (i = 0; i < m; i++) {
inputList = br.readLine().split(" ");
for (j = 0; j < l; j++) {
b[i][j] = Integer.parseInt(inputList[j]);
}
}
for (i = 0; i < c.length; i++) {
for (j = 0; j < c[i].length; j++) {
c[i][j] = BigInteger.ZERO;
}
}
String text = "";
for (i = 0; i < n; i++) {
for (j = 0; j < m; j++) {
for (k = 0; k < l; k++) {
c[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));
}
}
text = "";
for (k = 0; k < l; k++) {
text = text + c[i][k] + " ";
}
System.out.println(text.substring(0, text.length() - 1));
}
} catch (IOException e) {
e.printStackTrace();
}
}
} |
[
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,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
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,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
4,
18,
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
],
[
274,
11
],
[
274,
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
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
47,
49
],
[
14,
50
],
[
50,
51
],
[
50,
52
],
[
14,
55
],
[
55,
56
],
[
55,
57
],
[
14,
60
],
[
60,
61
],
[
60,
62
],
[
14,
65
],
[
65,
66
],
[
65,
67
],
[
14,
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
],
[
14,
114
],
[
114,
115
],
[
114,
116
],
[
14,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
122,
123
],
[
122,
124
],
[
117,
125
],
[
125,
126
],
[
126,
127
],
[
117,
128
],
[
129,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
132,
137
],
[
129,
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
],
[
157,
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
],
[
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
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
203,
207
],
[
202,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
209,
213
],
[
208,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
214,
218
],
[
14,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
219,
224
],
[
224,
225
],
[
224,
226
],
[
219,
227
],
[
227,
228
],
[
228,
229
],
[
219,
230
],
[
231,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
232,
237
],
[
237,
238
],
[
237,
239
],
[
232,
240
],
[
240,
241
],
[
241,
242
],
[
232,
243
],
[
244,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
246,
248
],
[
245,
249
],
[
249,
250
],
[
250,
251
],
[
251,
252
],
[
252,
253
],
[
252,
254
],
[
250,
255
],
[
244,
256
],
[
256,
257
],
[
257,
258
],
[
258,
259
],
[
258,
260
],
[
256,
261
],
[
261,
262
],
[
262,
263
],
[
262,
264
],
[
261,
265
],
[
231,
266
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
268,
270
],
[
12,
271
],
[
271,
272
],
[
0,
273
],
[
273,
274
],
[
273,
275
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] matrixFormat = (input.readLine()).split(\"\\\\s\");\n\n\t\tint n = Integer.parseInt(matrixFormat[0]);\n\t\tint m = Integer.parseInt(matrixFormat[1]);\n\t\tint l = Integer.parseInt(matrixFormat[2]);\n\n\t\tint[][] matrixA = new int[n][m];\n\t\tint[][] matrixB = new int[m][l];\n\t\tlong[][] matrixC = new long[n][l];\n\n\t\tString[] dataMatrixA = null;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdataMatrixA = (input.readLine()).split(\"\\\\s\");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = Integer.parseInt(dataMatrixA[j]);\n\t\t\t}\n\t\t}\n\n\t\tString[] dataMatrixB = null;\n\t\tfor (int k = 0; k < m; k++) {\n\t\t\tdataMatrixB = (input.readLine()).split(\"\\\\s\");\n\t\t\tfor (int h = 0; h < l; h++) {\n\t\t\t\tmatrixB[k][h] = Integer.parseInt(dataMatrixB[h]);\n\t\t\t}\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\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tmatrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tif (j > 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(matrixC[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\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",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] matrixFormat = (input.readLine()).split(\"\\\\s\");\n\n\t\tint n = Integer.parseInt(matrixFormat[0]);\n\t\tint m = Integer.parseInt(matrixFormat[1]);\n\t\tint l = Integer.parseInt(matrixFormat[2]);\n\n\t\tint[][] matrixA = new int[n][m];\n\t\tint[][] matrixB = new int[m][l];\n\t\tlong[][] matrixC = new long[n][l];\n\n\t\tString[] dataMatrixA = null;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdataMatrixA = (input.readLine()).split(\"\\\\s\");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = Integer.parseInt(dataMatrixA[j]);\n\t\t\t}\n\t\t}\n\n\t\tString[] dataMatrixB = null;\n\t\tfor (int k = 0; k < m; k++) {\n\t\t\tdataMatrixB = (input.readLine()).split(\"\\\\s\");\n\t\t\tfor (int h = 0; h < l; h++) {\n\t\t\t\tmatrixB[k][h] = Integer.parseInt(dataMatrixB[h]);\n\t\t\t}\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\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tmatrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tif (j > 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(matrixC[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] matrixFormat = (input.readLine()).split(\"\\\\s\");\n\n\t\tint n = Integer.parseInt(matrixFormat[0]);\n\t\tint m = Integer.parseInt(matrixFormat[1]);\n\t\tint l = Integer.parseInt(matrixFormat[2]);\n\n\t\tint[][] matrixA = new int[n][m];\n\t\tint[][] matrixB = new int[m][l];\n\t\tlong[][] matrixC = new long[n][l];\n\n\t\tString[] dataMatrixA = null;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdataMatrixA = (input.readLine()).split(\"\\\\s\");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = Integer.parseInt(dataMatrixA[j]);\n\t\t\t}\n\t\t}\n\n\t\tString[] dataMatrixB = null;\n\t\tfor (int k = 0; k < m; k++) {\n\t\t\tdataMatrixB = (input.readLine()).split(\"\\\\s\");\n\t\t\tfor (int h = 0; h < l; h++) {\n\t\t\t\tmatrixB[k][h] = Integer.parseInt(dataMatrixB[h]);\n\t\t\t}\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\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tmatrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tif (j > 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(matrixC[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] matrixFormat = (input.readLine()).split(\"\\\\s\");\n\n\t\tint n = Integer.parseInt(matrixFormat[0]);\n\t\tint m = Integer.parseInt(matrixFormat[1]);\n\t\tint l = Integer.parseInt(matrixFormat[2]);\n\n\t\tint[][] matrixA = new int[n][m];\n\t\tint[][] matrixB = new int[m][l];\n\t\tlong[][] matrixC = new long[n][l];\n\n\t\tString[] dataMatrixA = null;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdataMatrixA = (input.readLine()).split(\"\\\\s\");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = Integer.parseInt(dataMatrixA[j]);\n\t\t\t}\n\t\t}\n\n\t\tString[] dataMatrixB = null;\n\t\tfor (int k = 0; k < m; k++) {\n\t\t\tdataMatrixB = (input.readLine()).split(\"\\\\s\");\n\t\t\tfor (int h = 0; h < l; h++) {\n\t\t\t\tmatrixB[k][h] = Integer.parseInt(dataMatrixB[h]);\n\t\t\t}\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\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tmatrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tif (j > 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(matrixC[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"BufferedReader input = new BufferedReader(new InputStreamReader(System.in));",
"input",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] matrixFormat = (input.readLine()).split(\"\\\\s\");",
"matrixFormat",
"(input.readLine()).split(\"\\\\s\")",
"(input.readLine()).split",
"(input.readLine())",
"input.readLine",
"input",
"\"\\\\s\"",
"int n = Integer.parseInt(matrixFormat[0]);",
"n",
"Integer.parseInt(matrixFormat[0])",
"Integer.parseInt",
"Integer",
"matrixFormat[0]",
"matrixFormat",
"0",
"int m = Integer.parseInt(matrixFormat[1]);",
"m",
"Integer.parseInt(matrixFormat[1])",
"Integer.parseInt",
"Integer",
"matrixFormat[1]",
"matrixFormat",
"1",
"int l = Integer.parseInt(matrixFormat[2]);",
"l",
"Integer.parseInt(matrixFormat[2])",
"Integer.parseInt",
"Integer",
"matrixFormat[2]",
"matrixFormat",
"2",
"int[][] matrixA = new int[n][m];",
"matrixA",
"new int[n][m]",
"n",
"m",
"int[][] matrixB = new int[m][l];",
"matrixB",
"new int[m][l]",
"m",
"l",
"long[][] matrixC = new long[n][l];",
"matrixC",
"new long[n][l]",
"n",
"l",
"String[] dataMatrixA = null;",
"dataMatrixA",
"null",
"for (int i = 0; i < n; i++) {\n\t\t\tdataMatrixA = (input.readLine()).split(\"\\\\s\");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = Integer.parseInt(dataMatrixA[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\tdataMatrixA = (input.readLine()).split(\"\\\\s\");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = Integer.parseInt(dataMatrixA[j]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tdataMatrixA = (input.readLine()).split(\"\\\\s\");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = Integer.parseInt(dataMatrixA[j]);\n\t\t\t}\n\t\t}",
"dataMatrixA = (input.readLine()).split(\"\\\\s\")",
"dataMatrixA",
"(input.readLine()).split(\"\\\\s\")",
"(input.readLine()).split",
"(input.readLine())",
"input.readLine",
"input",
"\"\\\\s\"",
"for (int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = Integer.parseInt(dataMatrixA[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(dataMatrixA[j]);\n\t\t\t}",
"{\n\t\t\t\tmatrixA[i][j] = Integer.parseInt(dataMatrixA[j]);\n\t\t\t}",
"matrixA[i][j] = Integer.parseInt(dataMatrixA[j])",
"matrixA[i][j]",
"matrixA[i]",
"matrixA",
"i",
"j",
"Integer.parseInt(dataMatrixA[j])",
"Integer.parseInt",
"Integer",
"dataMatrixA[j]",
"dataMatrixA",
"j",
"String[] dataMatrixB = null;",
"dataMatrixB",
"null",
"for (int k = 0; k < m; k++) {\n\t\t\tdataMatrixB = (input.readLine()).split(\"\\\\s\");\n\t\t\tfor (int h = 0; h < l; h++) {\n\t\t\t\tmatrixB[k][h] = Integer.parseInt(dataMatrixB[h]);\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\tdataMatrixB = (input.readLine()).split(\"\\\\s\");\n\t\t\tfor (int h = 0; h < l; h++) {\n\t\t\t\tmatrixB[k][h] = Integer.parseInt(dataMatrixB[h]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tdataMatrixB = (input.readLine()).split(\"\\\\s\");\n\t\t\tfor (int h = 0; h < l; h++) {\n\t\t\t\tmatrixB[k][h] = Integer.parseInt(dataMatrixB[h]);\n\t\t\t}\n\t\t}",
"dataMatrixB = (input.readLine()).split(\"\\\\s\")",
"dataMatrixB",
"(input.readLine()).split(\"\\\\s\")",
"(input.readLine()).split",
"(input.readLine())",
"input.readLine",
"input",
"\"\\\\s\"",
"for (int h = 0; h < l; h++) {\n\t\t\t\tmatrixB[k][h] = Integer.parseInt(dataMatrixB[h]);\n\t\t\t}",
"int h = 0;",
"int h = 0;",
"h",
"0",
"h < l",
"h",
"l",
"h++",
"h++",
"h",
"{\n\t\t\t\tmatrixB[k][h] = Integer.parseInt(dataMatrixB[h]);\n\t\t\t}",
"{\n\t\t\t\tmatrixB[k][h] = Integer.parseInt(dataMatrixB[h]);\n\t\t\t}",
"matrixB[k][h] = Integer.parseInt(dataMatrixB[h])",
"matrixB[k][h]",
"matrixB[k]",
"matrixB",
"k",
"h",
"Integer.parseInt(dataMatrixB[h])",
"Integer.parseInt",
"Integer",
"dataMatrixB[h]",
"dataMatrixB",
"h",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tmatrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);\n\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\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tmatrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);\n\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\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tmatrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int j = 0; j < m; j++) {\n\t\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tmatrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);\n\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\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tmatrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tmatrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);\n\t\t\t\t}\n\t\t\t}",
"for (int k = 0; k < l; k++) {\n\t\t\t\t\tmatrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);\n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < l",
"k",
"l",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tmatrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);\n\t\t\t\t}",
"{\n\t\t\t\t\tmatrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);\n\t\t\t\t}",
"matrixC[i][k] += (matrixA[i][j] * matrixB[j][k])",
"matrixC[i][k]",
"matrixC[i]",
"matrixC",
"i",
"k",
"(matrixA[i][j] * matrixB[j][k])",
"matrixA[i][j]",
"matrixA[i]",
"matrixA",
"i",
"j",
"matrixB[j][k]",
"matrixB[j]",
"matrixB",
"j",
"k",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tif (j > 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(matrixC[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\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\tif (j > 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(matrixC[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tif (j > 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(matrixC[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for (int j = 0; j < l; j++) {\n\t\t\t\tif (j > 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(matrixC[i][j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tif (j > 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(matrixC[i][j]);\n\t\t\t}",
"{\n\t\t\t\tif (j > 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(matrixC[i][j]);\n\t\t\t}",
"if (j > 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"j > 0",
"j",
"0",
"{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.print(matrixC[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"matrixC[i][j]",
"matrixC[i]",
"matrixC",
"i",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] matrixFormat = (input.readLine()).split(\"\\\\s\");\n\n\t\tint n = Integer.parseInt(matrixFormat[0]);\n\t\tint m = Integer.parseInt(matrixFormat[1]);\n\t\tint l = Integer.parseInt(matrixFormat[2]);\n\n\t\tint[][] matrixA = new int[n][m];\n\t\tint[][] matrixB = new int[m][l];\n\t\tlong[][] matrixC = new long[n][l];\n\n\t\tString[] dataMatrixA = null;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdataMatrixA = (input.readLine()).split(\"\\\\s\");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = Integer.parseInt(dataMatrixA[j]);\n\t\t\t}\n\t\t}\n\n\t\tString[] dataMatrixB = null;\n\t\tfor (int k = 0; k < m; k++) {\n\t\t\tdataMatrixB = (input.readLine()).split(\"\\\\s\");\n\t\t\tfor (int h = 0; h < l; h++) {\n\t\t\t\tmatrixB[k][h] = Integer.parseInt(dataMatrixB[h]);\n\t\t\t}\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\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tmatrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tif (j > 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(matrixC[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] matrixFormat = (input.readLine()).split(\"\\\\s\");\n\n\t\tint n = Integer.parseInt(matrixFormat[0]);\n\t\tint m = Integer.parseInt(matrixFormat[1]);\n\t\tint l = Integer.parseInt(matrixFormat[2]);\n\n\t\tint[][] matrixA = new int[n][m];\n\t\tint[][] matrixB = new int[m][l];\n\t\tlong[][] matrixC = new long[n][l];\n\n\t\tString[] dataMatrixA = null;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdataMatrixA = (input.readLine()).split(\"\\\\s\");\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tmatrixA[i][j] = Integer.parseInt(dataMatrixA[j]);\n\t\t\t}\n\t\t}\n\n\t\tString[] dataMatrixB = null;\n\t\tfor (int k = 0; k < m; k++) {\n\t\t\tdataMatrixB = (input.readLine()).split(\"\\\\s\");\n\t\t\tfor (int h = 0; h < l; h++) {\n\t\t\t\tmatrixB[k][h] = Integer.parseInt(dataMatrixB[h]);\n\t\t\t}\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\tfor (int k = 0; k < l; k++) {\n\t\t\t\t\tmatrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tif (j > 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(matrixC[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\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 {
// TODO 自動生成されたメソッド・スタブ
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
String[] matrixFormat = (input.readLine()).split("\\s");
int n = Integer.parseInt(matrixFormat[0]);
int m = Integer.parseInt(matrixFormat[1]);
int l = Integer.parseInt(matrixFormat[2]);
int[][] matrixA = new int[n][m];
int[][] matrixB = new int[m][l];
long[][] matrixC = new long[n][l];
String[] dataMatrixA = null;
for (int i = 0; i < n; i++) {
dataMatrixA = (input.readLine()).split("\\s");
for (int j = 0; j < m; j++) {
matrixA[i][j] = Integer.parseInt(dataMatrixA[j]);
}
}
String[] dataMatrixB = null;
for (int k = 0; k < m; k++) {
dataMatrixB = (input.readLine()).split("\\s");
for (int h = 0; h < l; h++) {
matrixB[k][h] = Integer.parseInt(dataMatrixB[h]);
}
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
for (int k = 0; k < l; k++) {
matrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);
}
}
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < l; j++) {
if (j > 0) {
System.out.print(" ");
}
System.out.print(matrixC[i][j]);
}
System.out.println();
}
}
}
|
[
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,
4,
18,
13,
18,
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,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
18,
13,
13,
0,
18,
18,
13,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
18,
13,
13,
0,
18,
18,
13,
13,
13,
13,
41,
13,
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,
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,
18,
18,
13,
13,
18,
18,
13,
13,
13,
41,
13,
2,
13,
17,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
0,
13,
17,
4,
18,
18,
13,
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
],
[
272,
11
],
[
272,
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
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
50,
52
],
[
14,
53
],
[
53,
54
],
[
53,
55
],
[
14,
58
],
[
58,
59
],
[
58,
60
],
[
14,
63
],
[
63,
64
],
[
63,
65
],
[
14,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
80,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
80,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
92,
100
],
[
100,
101
],
[
101,
102
],
[
92,
103
],
[
104,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
110,
111
],
[
110,
112
],
[
104,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
113,
119
],
[
14,
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
],
[
132,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
140,
143
],
[
132,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
144,
149
],
[
149,
150
],
[
149,
151
],
[
144,
152
],
[
152,
153
],
[
153,
154
],
[
144,
155
],
[
156,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
159,
162
],
[
162,
163
],
[
162,
164
],
[
156,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
165,
171
],
[
14,
172
],
[
172,
173
],
[
172,
174
],
[
14,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
175,
180
],
[
180,
181
],
[
180,
182
],
[
175,
183
],
[
183,
184
],
[
184,
185
],
[
175,
186
],
[
187,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
188,
193
],
[
193,
194
],
[
193,
195
],
[
188,
196
],
[
196,
197
],
[
197,
198
],
[
188,
199
],
[
200,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
201,
206
],
[
206,
207
],
[
206,
208
],
[
201,
209
],
[
209,
210
],
[
210,
211
],
[
201,
212
],
[
213,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
217,
221
],
[
216,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
222,
226
],
[
200,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
228,
232
],
[
227,
233
],
[
200,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
234,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
239,
243
],
[
200,
244
],
[
244,
245
],
[
244,
246
],
[
246,
247
],
[
246,
248
],
[
200,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
249,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
254,
259
],
[
200,
260
],
[
260,
261
],
[
260,
262
],
[
187,
263
],
[
263,
264
],
[
264,
265
],
[
265,
266
],
[
265,
267
],
[
263,
268
],
[
12,
269
],
[
269,
270
],
[
0,
271
],
[
271,
272
],
[
271,
273
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// A,B,C?????????????????¨???????±?????????????\n\t\tString first_line = input.readLine();\n\n\t\t// ??\\??????????´?\n\t\tString[] array_of_lo_col = first_line.split(\" \");\n\n\t\t// ??????A,C?????????????????????\n\t\tint low_n = Integer.parseInt(array_of_lo_col[0]);\n\n\t\t// ??????A???????????????B?????????????????????\n\t\tint column_or_row_m = Integer.parseInt(array_of_lo_col[1]);\n\n\t\t// ??????B,C?????????????????????\n\t\tint column_l = Integer.parseInt(array_of_lo_col[2]);\n\n\t\t// ??????A???????¬??????????\n\t\tlong[][] matrix_A = new long[low_n][column_or_row_m];\n\n\t\t// ??????B???????¬??????????\n\t\tlong[][] matrix_B = new long[column_or_row_m][column_l];\n\n\t\t// ??????C???????¬??????????\n\t\tlong[][] matrix_C = new long[low_n][column_l];\n\n\t\t// ??????C???Ci???????????¨?????????A?????\\??????????????°??????????´?\n\t\tfor (int low_spot = 0; low_spot < low_n; low_spot++) {\n\n\t\t\t// ??????A???????´???\\???\n\t\t\tString elements_A = input.readLine();\n\n\t\t\t// ??\\??????????????????A???????´????array_elements_A???????´?\n\t\t\tString[] array_elements_A = elements_A.split(\" \");\n\n\t\t\t// ??????A???????´????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_or_row_m; column_spot++) {\n\n\t\t\t\t// array_elements_A???????´????????????°??????long??????\n\t\t\t\tlong element_A = Long.parseLong(array_elements_A[column_spot]);\n\n\t\t\t\t// ????´??????????A???????´?\n\t\t\t\tmatrix_A[low_spot][column_spot] = element_A;\n\n\t\t\t}\n\n\t\t}\n\n\t\t// ??????C???Ci???????????¨?????????B?????\\??????????????°??????????´?\n\t\tfor (int low_spot = 0; low_spot < column_or_row_m; low_spot++) {\n\n\t\t\t// ??????B???????´???\\???\n\t\t\tString elements_B = input.readLine();\n\n\t\t\t// ??\\??????????????????B???????´????array_elements_A???????´?\n\t\t\tString[] array_elements_B = elements_B.split(\" \");\n\n\t\t\t// ??????B???????´????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_l; column_spot++) {\n\n\t\t\t\t// array_elements_B???????´????????????°??????long??????\n\t\t\t\tlong element_B = Long.parseLong(array_elements_B[column_spot]);\n\n\t\t\t\t// ????´??????????B???????´?\n\t\t\t\tmatrix_B[low_spot][column_spot] = element_B;\n\n\t\t\t}\n\n\t\t}\n\n\t\t// C?????????????´???¨\n\t\tlong Ci = 0;\n\n\t\t// ??????C???????´?\n\t\tfor (int low_spot = 0; low_spot < low_n; low_spot++) {\n\n\t\t\t// ??????C?????????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_l; column_spot++) {\n\n\t\t\t\t// C?????????????´????A????????¨B?????????????????????\n\t\t\t\tfor (int m_term = 0; m_term < column_or_row_m; m_term++) {\n\n\n\t\t\t\t\t// Ci???????´??????????matrixA,B?????????????¶?????????????\n\t\t\t\t\tCi += matrix_A[low_spot][m_term] * matrix_B[m_term][column_spot];\n\n\t\t\t\t}\n\n\n\t\t\t\t// ????´?C???Ci???????´?\n\t\t\t\tmatrix_C[low_spot][column_spot] = Ci;\n\n\t\t\t\t// ??????\n\t\t\t\tSystem.out.print(matrix_C[low_spot][column_spot]);\n\n\t\t\t\t//AOJ???????????¨\n\t\t\t\tint remove_blank_last=column_l-1;\n\n\t\t\t\t//???????????????????´????????????????????¶??????????\n\t\t\t\tif(column_spot < remove_blank_last){\n\n\t\t\t\tSystem.out.print(\" \");\n\n\t\t\t\t}\n\n\t\t\t\t//Ci????????????\n\t\t\t\tCi=0;\n\n\t\t\t}\n\n\t\t\t// ????????????\n\t\t\tSystem.out.println(\"\");\n\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\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// A,B,C?????????????????¨???????±?????????????\n\t\tString first_line = input.readLine();\n\n\t\t// ??\\??????????´?\n\t\tString[] array_of_lo_col = first_line.split(\" \");\n\n\t\t// ??????A,C?????????????????????\n\t\tint low_n = Integer.parseInt(array_of_lo_col[0]);\n\n\t\t// ??????A???????????????B?????????????????????\n\t\tint column_or_row_m = Integer.parseInt(array_of_lo_col[1]);\n\n\t\t// ??????B,C?????????????????????\n\t\tint column_l = Integer.parseInt(array_of_lo_col[2]);\n\n\t\t// ??????A???????¬??????????\n\t\tlong[][] matrix_A = new long[low_n][column_or_row_m];\n\n\t\t// ??????B???????¬??????????\n\t\tlong[][] matrix_B = new long[column_or_row_m][column_l];\n\n\t\t// ??????C???????¬??????????\n\t\tlong[][] matrix_C = new long[low_n][column_l];\n\n\t\t// ??????C???Ci???????????¨?????????A?????\\??????????????°??????????´?\n\t\tfor (int low_spot = 0; low_spot < low_n; low_spot++) {\n\n\t\t\t// ??????A???????´???\\???\n\t\t\tString elements_A = input.readLine();\n\n\t\t\t// ??\\??????????????????A???????´????array_elements_A???????´?\n\t\t\tString[] array_elements_A = elements_A.split(\" \");\n\n\t\t\t// ??????A???????´????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_or_row_m; column_spot++) {\n\n\t\t\t\t// array_elements_A???????´????????????°??????long??????\n\t\t\t\tlong element_A = Long.parseLong(array_elements_A[column_spot]);\n\n\t\t\t\t// ????´??????????A???????´?\n\t\t\t\tmatrix_A[low_spot][column_spot] = element_A;\n\n\t\t\t}\n\n\t\t}\n\n\t\t// ??????C???Ci???????????¨?????????B?????\\??????????????°??????????´?\n\t\tfor (int low_spot = 0; low_spot < column_or_row_m; low_spot++) {\n\n\t\t\t// ??????B???????´???\\???\n\t\t\tString elements_B = input.readLine();\n\n\t\t\t// ??\\??????????????????B???????´????array_elements_A???????´?\n\t\t\tString[] array_elements_B = elements_B.split(\" \");\n\n\t\t\t// ??????B???????´????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_l; column_spot++) {\n\n\t\t\t\t// array_elements_B???????´????????????°??????long??????\n\t\t\t\tlong element_B = Long.parseLong(array_elements_B[column_spot]);\n\n\t\t\t\t// ????´??????????B???????´?\n\t\t\t\tmatrix_B[low_spot][column_spot] = element_B;\n\n\t\t\t}\n\n\t\t}\n\n\t\t// C?????????????´???¨\n\t\tlong Ci = 0;\n\n\t\t// ??????C???????´?\n\t\tfor (int low_spot = 0; low_spot < low_n; low_spot++) {\n\n\t\t\t// ??????C?????????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_l; column_spot++) {\n\n\t\t\t\t// C?????????????´????A????????¨B?????????????????????\n\t\t\t\tfor (int m_term = 0; m_term < column_or_row_m; m_term++) {\n\n\n\t\t\t\t\t// Ci???????´??????????matrixA,B?????????????¶?????????????\n\t\t\t\t\tCi += matrix_A[low_spot][m_term] * matrix_B[m_term][column_spot];\n\n\t\t\t\t}\n\n\n\t\t\t\t// ????´?C???Ci???????´?\n\t\t\t\tmatrix_C[low_spot][column_spot] = Ci;\n\n\t\t\t\t// ??????\n\t\t\t\tSystem.out.print(matrix_C[low_spot][column_spot]);\n\n\t\t\t\t//AOJ???????????¨\n\t\t\t\tint remove_blank_last=column_l-1;\n\n\t\t\t\t//???????????????????´????????????????????¶??????????\n\t\t\t\tif(column_spot < remove_blank_last){\n\n\t\t\t\tSystem.out.print(\" \");\n\n\t\t\t\t}\n\n\t\t\t\t//Ci????????????\n\t\t\t\tCi=0;\n\n\t\t\t}\n\n\t\t\t// ????????????\n\t\t\tSystem.out.println(\"\");\n\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// A,B,C?????????????????¨???????±?????????????\n\t\tString first_line = input.readLine();\n\n\t\t// ??\\??????????´?\n\t\tString[] array_of_lo_col = first_line.split(\" \");\n\n\t\t// ??????A,C?????????????????????\n\t\tint low_n = Integer.parseInt(array_of_lo_col[0]);\n\n\t\t// ??????A???????????????B?????????????????????\n\t\tint column_or_row_m = Integer.parseInt(array_of_lo_col[1]);\n\n\t\t// ??????B,C?????????????????????\n\t\tint column_l = Integer.parseInt(array_of_lo_col[2]);\n\n\t\t// ??????A???????¬??????????\n\t\tlong[][] matrix_A = new long[low_n][column_or_row_m];\n\n\t\t// ??????B???????¬??????????\n\t\tlong[][] matrix_B = new long[column_or_row_m][column_l];\n\n\t\t// ??????C???????¬??????????\n\t\tlong[][] matrix_C = new long[low_n][column_l];\n\n\t\t// ??????C???Ci???????????¨?????????A?????\\??????????????°??????????´?\n\t\tfor (int low_spot = 0; low_spot < low_n; low_spot++) {\n\n\t\t\t// ??????A???????´???\\???\n\t\t\tString elements_A = input.readLine();\n\n\t\t\t// ??\\??????????????????A???????´????array_elements_A???????´?\n\t\t\tString[] array_elements_A = elements_A.split(\" \");\n\n\t\t\t// ??????A???????´????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_or_row_m; column_spot++) {\n\n\t\t\t\t// array_elements_A???????´????????????°??????long??????\n\t\t\t\tlong element_A = Long.parseLong(array_elements_A[column_spot]);\n\n\t\t\t\t// ????´??????????A???????´?\n\t\t\t\tmatrix_A[low_spot][column_spot] = element_A;\n\n\t\t\t}\n\n\t\t}\n\n\t\t// ??????C???Ci???????????¨?????????B?????\\??????????????°??????????´?\n\t\tfor (int low_spot = 0; low_spot < column_or_row_m; low_spot++) {\n\n\t\t\t// ??????B???????´???\\???\n\t\t\tString elements_B = input.readLine();\n\n\t\t\t// ??\\??????????????????B???????´????array_elements_A???????´?\n\t\t\tString[] array_elements_B = elements_B.split(\" \");\n\n\t\t\t// ??????B???????´????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_l; column_spot++) {\n\n\t\t\t\t// array_elements_B???????´????????????°??????long??????\n\t\t\t\tlong element_B = Long.parseLong(array_elements_B[column_spot]);\n\n\t\t\t\t// ????´??????????B???????´?\n\t\t\t\tmatrix_B[low_spot][column_spot] = element_B;\n\n\t\t\t}\n\n\t\t}\n\n\t\t// C?????????????´???¨\n\t\tlong Ci = 0;\n\n\t\t// ??????C???????´?\n\t\tfor (int low_spot = 0; low_spot < low_n; low_spot++) {\n\n\t\t\t// ??????C?????????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_l; column_spot++) {\n\n\t\t\t\t// C?????????????´????A????????¨B?????????????????????\n\t\t\t\tfor (int m_term = 0; m_term < column_or_row_m; m_term++) {\n\n\n\t\t\t\t\t// Ci???????´??????????matrixA,B?????????????¶?????????????\n\t\t\t\t\tCi += matrix_A[low_spot][m_term] * matrix_B[m_term][column_spot];\n\n\t\t\t\t}\n\n\n\t\t\t\t// ????´?C???Ci???????´?\n\t\t\t\tmatrix_C[low_spot][column_spot] = Ci;\n\n\t\t\t\t// ??????\n\t\t\t\tSystem.out.print(matrix_C[low_spot][column_spot]);\n\n\t\t\t\t//AOJ???????????¨\n\t\t\t\tint remove_blank_last=column_l-1;\n\n\t\t\t\t//???????????????????´????????????????????¶??????????\n\t\t\t\tif(column_spot < remove_blank_last){\n\n\t\t\t\tSystem.out.print(\" \");\n\n\t\t\t\t}\n\n\t\t\t\t//Ci????????????\n\t\t\t\tCi=0;\n\n\t\t\t}\n\n\t\t\t// ????????????\n\t\t\tSystem.out.println(\"\");\n\n\t\t}\n\n\t}",
"main",
"{\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// A,B,C?????????????????¨???????±?????????????\n\t\tString first_line = input.readLine();\n\n\t\t// ??\\??????????´?\n\t\tString[] array_of_lo_col = first_line.split(\" \");\n\n\t\t// ??????A,C?????????????????????\n\t\tint low_n = Integer.parseInt(array_of_lo_col[0]);\n\n\t\t// ??????A???????????????B?????????????????????\n\t\tint column_or_row_m = Integer.parseInt(array_of_lo_col[1]);\n\n\t\t// ??????B,C?????????????????????\n\t\tint column_l = Integer.parseInt(array_of_lo_col[2]);\n\n\t\t// ??????A???????¬??????????\n\t\tlong[][] matrix_A = new long[low_n][column_or_row_m];\n\n\t\t// ??????B???????¬??????????\n\t\tlong[][] matrix_B = new long[column_or_row_m][column_l];\n\n\t\t// ??????C???????¬??????????\n\t\tlong[][] matrix_C = new long[low_n][column_l];\n\n\t\t// ??????C???Ci???????????¨?????????A?????\\??????????????°??????????´?\n\t\tfor (int low_spot = 0; low_spot < low_n; low_spot++) {\n\n\t\t\t// ??????A???????´???\\???\n\t\t\tString elements_A = input.readLine();\n\n\t\t\t// ??\\??????????????????A???????´????array_elements_A???????´?\n\t\t\tString[] array_elements_A = elements_A.split(\" \");\n\n\t\t\t// ??????A???????´????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_or_row_m; column_spot++) {\n\n\t\t\t\t// array_elements_A???????´????????????°??????long??????\n\t\t\t\tlong element_A = Long.parseLong(array_elements_A[column_spot]);\n\n\t\t\t\t// ????´??????????A???????´?\n\t\t\t\tmatrix_A[low_spot][column_spot] = element_A;\n\n\t\t\t}\n\n\t\t}\n\n\t\t// ??????C???Ci???????????¨?????????B?????\\??????????????°??????????´?\n\t\tfor (int low_spot = 0; low_spot < column_or_row_m; low_spot++) {\n\n\t\t\t// ??????B???????´???\\???\n\t\t\tString elements_B = input.readLine();\n\n\t\t\t// ??\\??????????????????B???????´????array_elements_A???????´?\n\t\t\tString[] array_elements_B = elements_B.split(\" \");\n\n\t\t\t// ??????B???????´????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_l; column_spot++) {\n\n\t\t\t\t// array_elements_B???????´????????????°??????long??????\n\t\t\t\tlong element_B = Long.parseLong(array_elements_B[column_spot]);\n\n\t\t\t\t// ????´??????????B???????´?\n\t\t\t\tmatrix_B[low_spot][column_spot] = element_B;\n\n\t\t\t}\n\n\t\t}\n\n\t\t// C?????????????´???¨\n\t\tlong Ci = 0;\n\n\t\t// ??????C???????´?\n\t\tfor (int low_spot = 0; low_spot < low_n; low_spot++) {\n\n\t\t\t// ??????C?????????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_l; column_spot++) {\n\n\t\t\t\t// C?????????????´????A????????¨B?????????????????????\n\t\t\t\tfor (int m_term = 0; m_term < column_or_row_m; m_term++) {\n\n\n\t\t\t\t\t// Ci???????´??????????matrixA,B?????????????¶?????????????\n\t\t\t\t\tCi += matrix_A[low_spot][m_term] * matrix_B[m_term][column_spot];\n\n\t\t\t\t}\n\n\n\t\t\t\t// ????´?C???Ci???????´?\n\t\t\t\tmatrix_C[low_spot][column_spot] = Ci;\n\n\t\t\t\t// ??????\n\t\t\t\tSystem.out.print(matrix_C[low_spot][column_spot]);\n\n\t\t\t\t//AOJ???????????¨\n\t\t\t\tint remove_blank_last=column_l-1;\n\n\t\t\t\t//???????????????????´????????????????????¶??????????\n\t\t\t\tif(column_spot < remove_blank_last){\n\n\t\t\t\tSystem.out.print(\" \");\n\n\t\t\t\t}\n\n\t\t\t\t//Ci????????????\n\t\t\t\tCi=0;\n\n\t\t\t}\n\n\t\t\t// ????????????\n\t\t\tSystem.out.println(\"\");\n\n\t\t}\n\n\t}",
"BufferedReader input = new BufferedReader(new InputStreamReader(System.in));",
"input",
"new BufferedReader(new InputStreamReader(System.in))",
"String first_line = input.readLine();",
"first_line",
"input.readLine()",
"input.readLine",
"input",
"String[] array_of_lo_col = first_line.split(\" \");",
"array_of_lo_col",
"first_line.split(\" \")",
"first_line.split",
"first_line",
"\" \"",
"int low_n = Integer.parseInt(array_of_lo_col[0]);",
"low_n",
"Integer.parseInt(array_of_lo_col[0])",
"Integer.parseInt",
"Integer",
"array_of_lo_col[0]",
"array_of_lo_col",
"0",
"int column_or_row_m = Integer.parseInt(array_of_lo_col[1]);",
"column_or_row_m",
"Integer.parseInt(array_of_lo_col[1])",
"Integer.parseInt",
"Integer",
"array_of_lo_col[1]",
"array_of_lo_col",
"1",
"int column_l = Integer.parseInt(array_of_lo_col[2]);",
"column_l",
"Integer.parseInt(array_of_lo_col[2])",
"Integer.parseInt",
"Integer",
"array_of_lo_col[2]",
"array_of_lo_col",
"2",
"long[][] matrix_A = new long[low_n][column_or_row_m];",
"matrix_A",
"new long[low_n][column_or_row_m]",
"low_n",
"column_or_row_m",
"long[][] matrix_B = new long[column_or_row_m][column_l];",
"matrix_B",
"new long[column_or_row_m][column_l]",
"column_or_row_m",
"column_l",
"long[][] matrix_C = new long[low_n][column_l];",
"matrix_C",
"new long[low_n][column_l]",
"low_n",
"column_l",
"for (int low_spot = 0; low_spot < low_n; low_spot++) {\n\n\t\t\t// ??????A???????´???\\???\n\t\t\tString elements_A = input.readLine();\n\n\t\t\t// ??\\??????????????????A???????´????array_elements_A???????´?\n\t\t\tString[] array_elements_A = elements_A.split(\" \");\n\n\t\t\t// ??????A???????´????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_or_row_m; column_spot++) {\n\n\t\t\t\t// array_elements_A???????´????????????°??????long??????\n\t\t\t\tlong element_A = Long.parseLong(array_elements_A[column_spot]);\n\n\t\t\t\t// ????´??????????A???????´?\n\t\t\t\tmatrix_A[low_spot][column_spot] = element_A;\n\n\t\t\t}\n\n\t\t}",
"int low_spot = 0;",
"int low_spot = 0;",
"low_spot",
"0",
"low_spot < low_n",
"low_spot",
"low_n",
"low_spot++",
"low_spot++",
"low_spot",
"{\n\n\t\t\t// ??????A???????´???\\???\n\t\t\tString elements_A = input.readLine();\n\n\t\t\t// ??\\??????????????????A???????´????array_elements_A???????´?\n\t\t\tString[] array_elements_A = elements_A.split(\" \");\n\n\t\t\t// ??????A???????´????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_or_row_m; column_spot++) {\n\n\t\t\t\t// array_elements_A???????´????????????°??????long??????\n\t\t\t\tlong element_A = Long.parseLong(array_elements_A[column_spot]);\n\n\t\t\t\t// ????´??????????A???????´?\n\t\t\t\tmatrix_A[low_spot][column_spot] = element_A;\n\n\t\t\t}\n\n\t\t}",
"{\n\n\t\t\t// ??????A???????´???\\???\n\t\t\tString elements_A = input.readLine();\n\n\t\t\t// ??\\??????????????????A???????´????array_elements_A???????´?\n\t\t\tString[] array_elements_A = elements_A.split(\" \");\n\n\t\t\t// ??????A???????´????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_or_row_m; column_spot++) {\n\n\t\t\t\t// array_elements_A???????´????????????°??????long??????\n\t\t\t\tlong element_A = Long.parseLong(array_elements_A[column_spot]);\n\n\t\t\t\t// ????´??????????A???????´?\n\t\t\t\tmatrix_A[low_spot][column_spot] = element_A;\n\n\t\t\t}\n\n\t\t}",
"String elements_A = input.readLine();",
"elements_A",
"input.readLine()",
"input.readLine",
"input",
"String[] array_elements_A = elements_A.split(\" \");",
"array_elements_A",
"elements_A.split(\" \")",
"elements_A.split",
"elements_A",
"\" \"",
"for (int column_spot = 0; column_spot < column_or_row_m; column_spot++) {\n\n\t\t\t\t// array_elements_A???????´????????????°??????long??????\n\t\t\t\tlong element_A = Long.parseLong(array_elements_A[column_spot]);\n\n\t\t\t\t// ????´??????????A???????´?\n\t\t\t\tmatrix_A[low_spot][column_spot] = element_A;\n\n\t\t\t}",
"int column_spot = 0;",
"int column_spot = 0;",
"column_spot",
"0",
"column_spot < column_or_row_m",
"column_spot",
"column_or_row_m",
"column_spot++",
"column_spot++",
"column_spot",
"{\n\n\t\t\t\t// array_elements_A???????´????????????°??????long??????\n\t\t\t\tlong element_A = Long.parseLong(array_elements_A[column_spot]);\n\n\t\t\t\t// ????´??????????A???????´?\n\t\t\t\tmatrix_A[low_spot][column_spot] = element_A;\n\n\t\t\t}",
"{\n\n\t\t\t\t// array_elements_A???????´????????????°??????long??????\n\t\t\t\tlong element_A = Long.parseLong(array_elements_A[column_spot]);\n\n\t\t\t\t// ????´??????????A???????´?\n\t\t\t\tmatrix_A[low_spot][column_spot] = element_A;\n\n\t\t\t}",
"long element_A = Long.parseLong(array_elements_A[column_spot]);",
"element_A",
"Long.parseLong(array_elements_A[column_spot])",
"Long.parseLong",
"Long",
"array_elements_A[column_spot]",
"array_elements_A",
"column_spot",
"matrix_A[low_spot][column_spot] = element_A",
"matrix_A[low_spot][column_spot]",
"matrix_A[low_spot]",
"matrix_A",
"low_spot",
"column_spot",
"element_A",
"for (int low_spot = 0; low_spot < column_or_row_m; low_spot++) {\n\n\t\t\t// ??????B???????´???\\???\n\t\t\tString elements_B = input.readLine();\n\n\t\t\t// ??\\??????????????????B???????´????array_elements_A???????´?\n\t\t\tString[] array_elements_B = elements_B.split(\" \");\n\n\t\t\t// ??????B???????´????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_l; column_spot++) {\n\n\t\t\t\t// array_elements_B???????´????????????°??????long??????\n\t\t\t\tlong element_B = Long.parseLong(array_elements_B[column_spot]);\n\n\t\t\t\t// ????´??????????B???????´?\n\t\t\t\tmatrix_B[low_spot][column_spot] = element_B;\n\n\t\t\t}\n\n\t\t}",
"int low_spot = 0;",
"int low_spot = 0;",
"low_spot",
"0",
"low_spot < column_or_row_m",
"low_spot",
"column_or_row_m",
"low_spot++",
"low_spot++",
"low_spot",
"{\n\n\t\t\t// ??????B???????´???\\???\n\t\t\tString elements_B = input.readLine();\n\n\t\t\t// ??\\??????????????????B???????´????array_elements_A???????´?\n\t\t\tString[] array_elements_B = elements_B.split(\" \");\n\n\t\t\t// ??????B???????´????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_l; column_spot++) {\n\n\t\t\t\t// array_elements_B???????´????????????°??????long??????\n\t\t\t\tlong element_B = Long.parseLong(array_elements_B[column_spot]);\n\n\t\t\t\t// ????´??????????B???????´?\n\t\t\t\tmatrix_B[low_spot][column_spot] = element_B;\n\n\t\t\t}\n\n\t\t}",
"{\n\n\t\t\t// ??????B???????´???\\???\n\t\t\tString elements_B = input.readLine();\n\n\t\t\t// ??\\??????????????????B???????´????array_elements_A???????´?\n\t\t\tString[] array_elements_B = elements_B.split(\" \");\n\n\t\t\t// ??????B???????´????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_l; column_spot++) {\n\n\t\t\t\t// array_elements_B???????´????????????°??????long??????\n\t\t\t\tlong element_B = Long.parseLong(array_elements_B[column_spot]);\n\n\t\t\t\t// ????´??????????B???????´?\n\t\t\t\tmatrix_B[low_spot][column_spot] = element_B;\n\n\t\t\t}\n\n\t\t}",
"String elements_B = input.readLine();",
"elements_B",
"input.readLine()",
"input.readLine",
"input",
"String[] array_elements_B = elements_B.split(\" \");",
"array_elements_B",
"elements_B.split(\" \")",
"elements_B.split",
"elements_B",
"\" \"",
"for (int column_spot = 0; column_spot < column_l; column_spot++) {\n\n\t\t\t\t// array_elements_B???????´????????????°??????long??????\n\t\t\t\tlong element_B = Long.parseLong(array_elements_B[column_spot]);\n\n\t\t\t\t// ????´??????????B???????´?\n\t\t\t\tmatrix_B[low_spot][column_spot] = element_B;\n\n\t\t\t}",
"int column_spot = 0;",
"int column_spot = 0;",
"column_spot",
"0",
"column_spot < column_l",
"column_spot",
"column_l",
"column_spot++",
"column_spot++",
"column_spot",
"{\n\n\t\t\t\t// array_elements_B???????´????????????°??????long??????\n\t\t\t\tlong element_B = Long.parseLong(array_elements_B[column_spot]);\n\n\t\t\t\t// ????´??????????B???????´?\n\t\t\t\tmatrix_B[low_spot][column_spot] = element_B;\n\n\t\t\t}",
"{\n\n\t\t\t\t// array_elements_B???????´????????????°??????long??????\n\t\t\t\tlong element_B = Long.parseLong(array_elements_B[column_spot]);\n\n\t\t\t\t// ????´??????????B???????´?\n\t\t\t\tmatrix_B[low_spot][column_spot] = element_B;\n\n\t\t\t}",
"long element_B = Long.parseLong(array_elements_B[column_spot]);",
"element_B",
"Long.parseLong(array_elements_B[column_spot])",
"Long.parseLong",
"Long",
"array_elements_B[column_spot]",
"array_elements_B",
"column_spot",
"matrix_B[low_spot][column_spot] = element_B",
"matrix_B[low_spot][column_spot]",
"matrix_B[low_spot]",
"matrix_B",
"low_spot",
"column_spot",
"element_B",
"long Ci = 0;",
"Ci",
"0",
"for (int low_spot = 0; low_spot < low_n; low_spot++) {\n\n\t\t\t// ??????C?????????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_l; column_spot++) {\n\n\t\t\t\t// C?????????????´????A????????¨B?????????????????????\n\t\t\t\tfor (int m_term = 0; m_term < column_or_row_m; m_term++) {\n\n\n\t\t\t\t\t// Ci???????´??????????matrixA,B?????????????¶?????????????\n\t\t\t\t\tCi += matrix_A[low_spot][m_term] * matrix_B[m_term][column_spot];\n\n\t\t\t\t}\n\n\n\t\t\t\t// ????´?C???Ci???????´?\n\t\t\t\tmatrix_C[low_spot][column_spot] = Ci;\n\n\t\t\t\t// ??????\n\t\t\t\tSystem.out.print(matrix_C[low_spot][column_spot]);\n\n\t\t\t\t//AOJ???????????¨\n\t\t\t\tint remove_blank_last=column_l-1;\n\n\t\t\t\t//???????????????????´????????????????????¶??????????\n\t\t\t\tif(column_spot < remove_blank_last){\n\n\t\t\t\tSystem.out.print(\" \");\n\n\t\t\t\t}\n\n\t\t\t\t//Ci????????????\n\t\t\t\tCi=0;\n\n\t\t\t}\n\n\t\t\t// ????????????\n\t\t\tSystem.out.println(\"\");\n\n\t\t}",
"int low_spot = 0;",
"int low_spot = 0;",
"low_spot",
"0",
"low_spot < low_n",
"low_spot",
"low_n",
"low_spot++",
"low_spot++",
"low_spot",
"{\n\n\t\t\t// ??????C?????????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_l; column_spot++) {\n\n\t\t\t\t// C?????????????´????A????????¨B?????????????????????\n\t\t\t\tfor (int m_term = 0; m_term < column_or_row_m; m_term++) {\n\n\n\t\t\t\t\t// Ci???????´??????????matrixA,B?????????????¶?????????????\n\t\t\t\t\tCi += matrix_A[low_spot][m_term] * matrix_B[m_term][column_spot];\n\n\t\t\t\t}\n\n\n\t\t\t\t// ????´?C???Ci???????´?\n\t\t\t\tmatrix_C[low_spot][column_spot] = Ci;\n\n\t\t\t\t// ??????\n\t\t\t\tSystem.out.print(matrix_C[low_spot][column_spot]);\n\n\t\t\t\t//AOJ???????????¨\n\t\t\t\tint remove_blank_last=column_l-1;\n\n\t\t\t\t//???????????????????´????????????????????¶??????????\n\t\t\t\tif(column_spot < remove_blank_last){\n\n\t\t\t\tSystem.out.print(\" \");\n\n\t\t\t\t}\n\n\t\t\t\t//Ci????????????\n\t\t\t\tCi=0;\n\n\t\t\t}\n\n\t\t\t// ????????????\n\t\t\tSystem.out.println(\"\");\n\n\t\t}",
"{\n\n\t\t\t// ??????C?????????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_l; column_spot++) {\n\n\t\t\t\t// C?????????????´????A????????¨B?????????????????????\n\t\t\t\tfor (int m_term = 0; m_term < column_or_row_m; m_term++) {\n\n\n\t\t\t\t\t// Ci???????´??????????matrixA,B?????????????¶?????????????\n\t\t\t\t\tCi += matrix_A[low_spot][m_term] * matrix_B[m_term][column_spot];\n\n\t\t\t\t}\n\n\n\t\t\t\t// ????´?C???Ci???????´?\n\t\t\t\tmatrix_C[low_spot][column_spot] = Ci;\n\n\t\t\t\t// ??????\n\t\t\t\tSystem.out.print(matrix_C[low_spot][column_spot]);\n\n\t\t\t\t//AOJ???????????¨\n\t\t\t\tint remove_blank_last=column_l-1;\n\n\t\t\t\t//???????????????????´????????????????????¶??????????\n\t\t\t\tif(column_spot < remove_blank_last){\n\n\t\t\t\tSystem.out.print(\" \");\n\n\t\t\t\t}\n\n\t\t\t\t//Ci????????????\n\t\t\t\tCi=0;\n\n\t\t\t}\n\n\t\t\t// ????????????\n\t\t\tSystem.out.println(\"\");\n\n\t\t}",
"for (int column_spot = 0; column_spot < column_l; column_spot++) {\n\n\t\t\t\t// C?????????????´????A????????¨B?????????????????????\n\t\t\t\tfor (int m_term = 0; m_term < column_or_row_m; m_term++) {\n\n\n\t\t\t\t\t// Ci???????´??????????matrixA,B?????????????¶?????????????\n\t\t\t\t\tCi += matrix_A[low_spot][m_term] * matrix_B[m_term][column_spot];\n\n\t\t\t\t}\n\n\n\t\t\t\t// ????´?C???Ci???????´?\n\t\t\t\tmatrix_C[low_spot][column_spot] = Ci;\n\n\t\t\t\t// ??????\n\t\t\t\tSystem.out.print(matrix_C[low_spot][column_spot]);\n\n\t\t\t\t//AOJ???????????¨\n\t\t\t\tint remove_blank_last=column_l-1;\n\n\t\t\t\t//???????????????????´????????????????????¶??????????\n\t\t\t\tif(column_spot < remove_blank_last){\n\n\t\t\t\tSystem.out.print(\" \");\n\n\t\t\t\t}\n\n\t\t\t\t//Ci????????????\n\t\t\t\tCi=0;\n\n\t\t\t}",
"int column_spot = 0;",
"int column_spot = 0;",
"column_spot",
"0",
"column_spot < column_l",
"column_spot",
"column_l",
"column_spot++",
"column_spot++",
"column_spot",
"{\n\n\t\t\t\t// C?????????????´????A????????¨B?????????????????????\n\t\t\t\tfor (int m_term = 0; m_term < column_or_row_m; m_term++) {\n\n\n\t\t\t\t\t// Ci???????´??????????matrixA,B?????????????¶?????????????\n\t\t\t\t\tCi += matrix_A[low_spot][m_term] * matrix_B[m_term][column_spot];\n\n\t\t\t\t}\n\n\n\t\t\t\t// ????´?C???Ci???????´?\n\t\t\t\tmatrix_C[low_spot][column_spot] = Ci;\n\n\t\t\t\t// ??????\n\t\t\t\tSystem.out.print(matrix_C[low_spot][column_spot]);\n\n\t\t\t\t//AOJ???????????¨\n\t\t\t\tint remove_blank_last=column_l-1;\n\n\t\t\t\t//???????????????????´????????????????????¶??????????\n\t\t\t\tif(column_spot < remove_blank_last){\n\n\t\t\t\tSystem.out.print(\" \");\n\n\t\t\t\t}\n\n\t\t\t\t//Ci????????????\n\t\t\t\tCi=0;\n\n\t\t\t}",
"{\n\n\t\t\t\t// C?????????????´????A????????¨B?????????????????????\n\t\t\t\tfor (int m_term = 0; m_term < column_or_row_m; m_term++) {\n\n\n\t\t\t\t\t// Ci???????´??????????matrixA,B?????????????¶?????????????\n\t\t\t\t\tCi += matrix_A[low_spot][m_term] * matrix_B[m_term][column_spot];\n\n\t\t\t\t}\n\n\n\t\t\t\t// ????´?C???Ci???????´?\n\t\t\t\tmatrix_C[low_spot][column_spot] = Ci;\n\n\t\t\t\t// ??????\n\t\t\t\tSystem.out.print(matrix_C[low_spot][column_spot]);\n\n\t\t\t\t//AOJ???????????¨\n\t\t\t\tint remove_blank_last=column_l-1;\n\n\t\t\t\t//???????????????????´????????????????????¶??????????\n\t\t\t\tif(column_spot < remove_blank_last){\n\n\t\t\t\tSystem.out.print(\" \");\n\n\t\t\t\t}\n\n\t\t\t\t//Ci????????????\n\t\t\t\tCi=0;\n\n\t\t\t}",
"for (int m_term = 0; m_term < column_or_row_m; m_term++) {\n\n\n\t\t\t\t\t// Ci???????´??????????matrixA,B?????????????¶?????????????\n\t\t\t\t\tCi += matrix_A[low_spot][m_term] * matrix_B[m_term][column_spot];\n\n\t\t\t\t}",
"int m_term = 0;",
"int m_term = 0;",
"m_term",
"0",
"m_term < column_or_row_m",
"m_term",
"column_or_row_m",
"m_term++",
"m_term++",
"m_term",
"{\n\n\n\t\t\t\t\t// Ci???????´??????????matrixA,B?????????????¶?????????????\n\t\t\t\t\tCi += matrix_A[low_spot][m_term] * matrix_B[m_term][column_spot];\n\n\t\t\t\t}",
"{\n\n\n\t\t\t\t\t// Ci???????´??????????matrixA,B?????????????¶?????????????\n\t\t\t\t\tCi += matrix_A[low_spot][m_term] * matrix_B[m_term][column_spot];\n\n\t\t\t\t}",
"Ci += matrix_A[low_spot][m_term] * matrix_B[m_term][column_spot]",
"Ci",
"matrix_A[low_spot][m_term] * matrix_B[m_term][column_spot]",
"matrix_A[low_spot][m_term]",
"matrix_A[low_spot]",
"matrix_A",
"low_spot",
"m_term",
"matrix_B[m_term][column_spot]",
"matrix_B[m_term]",
"matrix_B",
"m_term",
"column_spot",
"matrix_C[low_spot][column_spot] = Ci",
"matrix_C[low_spot][column_spot]",
"matrix_C[low_spot]",
"matrix_C",
"low_spot",
"column_spot",
"Ci",
"System.out.print(matrix_C[low_spot][column_spot])",
"System.out.print",
"System.out",
"System",
"System.out",
"matrix_C[low_spot][column_spot]",
"matrix_C[low_spot]",
"matrix_C",
"low_spot",
"column_spot",
"int remove_blank_last=column_l-1;",
"remove_blank_last",
"column_l-1",
"column_l",
"1",
"if(column_spot < remove_blank_last){\n\n\t\t\t\tSystem.out.print(\" \");\n\n\t\t\t\t}",
"column_spot < remove_blank_last",
"column_spot",
"remove_blank_last",
"{\n\n\t\t\t\tSystem.out.print(\" \");\n\n\t\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"Ci=0",
"Ci",
"0",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// A,B,C?????????????????¨???????±?????????????\n\t\tString first_line = input.readLine();\n\n\t\t// ??\\??????????´?\n\t\tString[] array_of_lo_col = first_line.split(\" \");\n\n\t\t// ??????A,C?????????????????????\n\t\tint low_n = Integer.parseInt(array_of_lo_col[0]);\n\n\t\t// ??????A???????????????B?????????????????????\n\t\tint column_or_row_m = Integer.parseInt(array_of_lo_col[1]);\n\n\t\t// ??????B,C?????????????????????\n\t\tint column_l = Integer.parseInt(array_of_lo_col[2]);\n\n\t\t// ??????A???????¬??????????\n\t\tlong[][] matrix_A = new long[low_n][column_or_row_m];\n\n\t\t// ??????B???????¬??????????\n\t\tlong[][] matrix_B = new long[column_or_row_m][column_l];\n\n\t\t// ??????C???????¬??????????\n\t\tlong[][] matrix_C = new long[low_n][column_l];\n\n\t\t// ??????C???Ci???????????¨?????????A?????\\??????????????°??????????´?\n\t\tfor (int low_spot = 0; low_spot < low_n; low_spot++) {\n\n\t\t\t// ??????A???????´???\\???\n\t\t\tString elements_A = input.readLine();\n\n\t\t\t// ??\\??????????????????A???????´????array_elements_A???????´?\n\t\t\tString[] array_elements_A = elements_A.split(\" \");\n\n\t\t\t// ??????A???????´????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_or_row_m; column_spot++) {\n\n\t\t\t\t// array_elements_A???????´????????????°??????long??????\n\t\t\t\tlong element_A = Long.parseLong(array_elements_A[column_spot]);\n\n\t\t\t\t// ????´??????????A???????´?\n\t\t\t\tmatrix_A[low_spot][column_spot] = element_A;\n\n\t\t\t}\n\n\t\t}\n\n\t\t// ??????C???Ci???????????¨?????????B?????\\??????????????°??????????´?\n\t\tfor (int low_spot = 0; low_spot < column_or_row_m; low_spot++) {\n\n\t\t\t// ??????B???????´???\\???\n\t\t\tString elements_B = input.readLine();\n\n\t\t\t// ??\\??????????????????B???????´????array_elements_A???????´?\n\t\t\tString[] array_elements_B = elements_B.split(\" \");\n\n\t\t\t// ??????B???????´????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_l; column_spot++) {\n\n\t\t\t\t// array_elements_B???????´????????????°??????long??????\n\t\t\t\tlong element_B = Long.parseLong(array_elements_B[column_spot]);\n\n\t\t\t\t// ????´??????????B???????´?\n\t\t\t\tmatrix_B[low_spot][column_spot] = element_B;\n\n\t\t\t}\n\n\t\t}\n\n\t\t// C?????????????´???¨\n\t\tlong Ci = 0;\n\n\t\t// ??????C???????´?\n\t\tfor (int low_spot = 0; low_spot < low_n; low_spot++) {\n\n\t\t\t// ??????C?????????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_l; column_spot++) {\n\n\t\t\t\t// C?????????????´????A????????¨B?????????????????????\n\t\t\t\tfor (int m_term = 0; m_term < column_or_row_m; m_term++) {\n\n\n\t\t\t\t\t// Ci???????´??????????matrixA,B?????????????¶?????????????\n\t\t\t\t\tCi += matrix_A[low_spot][m_term] * matrix_B[m_term][column_spot];\n\n\t\t\t\t}\n\n\n\t\t\t\t// ????´?C???Ci???????´?\n\t\t\t\tmatrix_C[low_spot][column_spot] = Ci;\n\n\t\t\t\t// ??????\n\t\t\t\tSystem.out.print(matrix_C[low_spot][column_spot]);\n\n\t\t\t\t//AOJ???????????¨\n\t\t\t\tint remove_blank_last=column_l-1;\n\n\t\t\t\t//???????????????????´????????????????????¶??????????\n\t\t\t\tif(column_spot < remove_blank_last){\n\n\t\t\t\tSystem.out.print(\" \");\n\n\t\t\t\t}\n\n\t\t\t\t//Ci????????????\n\t\t\t\tCi=0;\n\n\t\t\t}\n\n\t\t\t// ????????????\n\t\t\tSystem.out.println(\"\");\n\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// A,B,C?????????????????¨???????±?????????????\n\t\tString first_line = input.readLine();\n\n\t\t// ??\\??????????´?\n\t\tString[] array_of_lo_col = first_line.split(\" \");\n\n\t\t// ??????A,C?????????????????????\n\t\tint low_n = Integer.parseInt(array_of_lo_col[0]);\n\n\t\t// ??????A???????????????B?????????????????????\n\t\tint column_or_row_m = Integer.parseInt(array_of_lo_col[1]);\n\n\t\t// ??????B,C?????????????????????\n\t\tint column_l = Integer.parseInt(array_of_lo_col[2]);\n\n\t\t// ??????A???????¬??????????\n\t\tlong[][] matrix_A = new long[low_n][column_or_row_m];\n\n\t\t// ??????B???????¬??????????\n\t\tlong[][] matrix_B = new long[column_or_row_m][column_l];\n\n\t\t// ??????C???????¬??????????\n\t\tlong[][] matrix_C = new long[low_n][column_l];\n\n\t\t// ??????C???Ci???????????¨?????????A?????\\??????????????°??????????´?\n\t\tfor (int low_spot = 0; low_spot < low_n; low_spot++) {\n\n\t\t\t// ??????A???????´???\\???\n\t\t\tString elements_A = input.readLine();\n\n\t\t\t// ??\\??????????????????A???????´????array_elements_A???????´?\n\t\t\tString[] array_elements_A = elements_A.split(\" \");\n\n\t\t\t// ??????A???????´????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_or_row_m; column_spot++) {\n\n\t\t\t\t// array_elements_A???????´????????????°??????long??????\n\t\t\t\tlong element_A = Long.parseLong(array_elements_A[column_spot]);\n\n\t\t\t\t// ????´??????????A???????´?\n\t\t\t\tmatrix_A[low_spot][column_spot] = element_A;\n\n\t\t\t}\n\n\t\t}\n\n\t\t// ??????C???Ci???????????¨?????????B?????\\??????????????°??????????´?\n\t\tfor (int low_spot = 0; low_spot < column_or_row_m; low_spot++) {\n\n\t\t\t// ??????B???????´???\\???\n\t\t\tString elements_B = input.readLine();\n\n\t\t\t// ??\\??????????????????B???????´????array_elements_A???????´?\n\t\t\tString[] array_elements_B = elements_B.split(\" \");\n\n\t\t\t// ??????B???????´????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_l; column_spot++) {\n\n\t\t\t\t// array_elements_B???????´????????????°??????long??????\n\t\t\t\tlong element_B = Long.parseLong(array_elements_B[column_spot]);\n\n\t\t\t\t// ????´??????????B???????´?\n\t\t\t\tmatrix_B[low_spot][column_spot] = element_B;\n\n\t\t\t}\n\n\t\t}\n\n\t\t// C?????????????´???¨\n\t\tlong Ci = 0;\n\n\t\t// ??????C???????´?\n\t\tfor (int low_spot = 0; low_spot < low_n; low_spot++) {\n\n\t\t\t// ??????C?????????????´?\n\t\t\tfor (int column_spot = 0; column_spot < column_l; column_spot++) {\n\n\t\t\t\t// C?????????????´????A????????¨B?????????????????????\n\t\t\t\tfor (int m_term = 0; m_term < column_or_row_m; m_term++) {\n\n\n\t\t\t\t\t// Ci???????´??????????matrixA,B?????????????¶?????????????\n\t\t\t\t\tCi += matrix_A[low_spot][m_term] * matrix_B[m_term][column_spot];\n\n\t\t\t\t}\n\n\n\t\t\t\t// ????´?C???Ci???????´?\n\t\t\t\tmatrix_C[low_spot][column_spot] = Ci;\n\n\t\t\t\t// ??????\n\t\t\t\tSystem.out.print(matrix_C[low_spot][column_spot]);\n\n\t\t\t\t//AOJ???????????¨\n\t\t\t\tint remove_blank_last=column_l-1;\n\n\t\t\t\t//???????????????????´????????????????????¶??????????\n\t\t\t\tif(column_spot < remove_blank_last){\n\n\t\t\t\tSystem.out.print(\" \");\n\n\t\t\t\t}\n\n\t\t\t\t//Ci????????????\n\t\t\t\tCi=0;\n\n\t\t\t}\n\n\t\t\t// ????????????\n\t\t\tSystem.out.println(\"\");\n\n\t\t}\n\n\t}\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
// A,B,C?????????????????¨???????±?????????????
String first_line = input.readLine();
// ??\??????????´?
String[] array_of_lo_col = first_line.split(" ");
// ??????A,C?????????????????????
int low_n = Integer.parseInt(array_of_lo_col[0]);
// ??????A???????????????B?????????????????????
int column_or_row_m = Integer.parseInt(array_of_lo_col[1]);
// ??????B,C?????????????????????
int column_l = Integer.parseInt(array_of_lo_col[2]);
// ??????A???????¬??????????
long[][] matrix_A = new long[low_n][column_or_row_m];
// ??????B???????¬??????????
long[][] matrix_B = new long[column_or_row_m][column_l];
// ??????C???????¬??????????
long[][] matrix_C = new long[low_n][column_l];
// ??????C???Ci???????????¨?????????A?????\??????????????°??????????´?
for (int low_spot = 0; low_spot < low_n; low_spot++) {
// ??????A???????´???\???
String elements_A = input.readLine();
// ??\??????????????????A???????´????array_elements_A???????´?
String[] array_elements_A = elements_A.split(" ");
// ??????A???????´????????´?
for (int column_spot = 0; column_spot < column_or_row_m; column_spot++) {
// array_elements_A???????´????????????°??????long??????
long element_A = Long.parseLong(array_elements_A[column_spot]);
// ????´??????????A???????´?
matrix_A[low_spot][column_spot] = element_A;
}
}
// ??????C???Ci???????????¨?????????B?????\??????????????°??????????´?
for (int low_spot = 0; low_spot < column_or_row_m; low_spot++) {
// ??????B???????´???\???
String elements_B = input.readLine();
// ??\??????????????????B???????´????array_elements_A???????´?
String[] array_elements_B = elements_B.split(" ");
// ??????B???????´????????´?
for (int column_spot = 0; column_spot < column_l; column_spot++) {
// array_elements_B???????´????????????°??????long??????
long element_B = Long.parseLong(array_elements_B[column_spot]);
// ????´??????????B???????´?
matrix_B[low_spot][column_spot] = element_B;
}
}
// C?????????????´???¨
long Ci = 0;
// ??????C???????´?
for (int low_spot = 0; low_spot < low_n; low_spot++) {
// ??????C?????????????´?
for (int column_spot = 0; column_spot < column_l; column_spot++) {
// C?????????????´????A????????¨B?????????????????????
for (int m_term = 0; m_term < column_or_row_m; m_term++) {
// Ci???????´??????????matrixA,B?????????????¶?????????????
Ci += matrix_A[low_spot][m_term] * matrix_B[m_term][column_spot];
}
// ????´?C???Ci???????´?
matrix_C[low_spot][column_spot] = Ci;
// ??????
System.out.print(matrix_C[low_spot][column_spot]);
//AOJ???????????¨
int remove_blank_last=column_l-1;
//???????????????????´????????????????????¶??????????
if(column_spot < remove_blank_last){
System.out.print(" ");
}
//Ci????????????
Ci=0;
}
// ????????????
System.out.println("");
}
}
} |
[
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,
4,
18,
13,
18,
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,
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,
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,
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,
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,
17,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
262,
5
],
[
262,
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
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
8,
49
],
[
49,
50
],
[
49,
51
],
[
8,
54
],
[
54,
55
],
[
54,
56
],
[
8,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
59,
70
],
[
71,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
74,
79
],
[
71,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
80,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
93,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
102,
103
],
[
102,
104
],
[
8,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
105,
113
],
[
113,
114
],
[
114,
115
],
[
105,
116
],
[
117,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
120,
125
],
[
117,
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
],
[
140,
144
],
[
139,
145
],
[
145,
146
],
[
146,
147
],
[
145,
148
],
[
148,
149
],
[
148,
150
],
[
8,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
156,
157
],
[
156,
158
],
[
151,
159
],
[
159,
160
],
[
160,
161
],
[
151,
162
],
[
163,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
164,
169
],
[
169,
170
],
[
169,
171
],
[
164,
172
],
[
172,
173
],
[
173,
174
],
[
164,
175
],
[
176,
176
],
[
176,
177
],
[
177,
178
],
[
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
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
176,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
207,
211
],
[
206,
212
],
[
8,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
213,
218
],
[
218,
219
],
[
218,
220
],
[
213,
221
],
[
221,
222
],
[
222,
223
],
[
213,
224
],
[
225,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
225,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
231,
233
],
[
229,
234
],
[
234,
235
],
[
234,
236
],
[
229,
237
],
[
237,
238
],
[
238,
239
],
[
229,
240
],
[
241,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
246,
248
],
[
245,
249
],
[
244,
250
],
[
225,
251
],
[
251,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
251,
256
],
[
256,
257
],
[
257,
258
],
[
6,
259
],
[
259,
260
],
[
0,
261
],
[
261,
262
],
[
261,
263
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] input = sc.nextLine().split(\" \");\n \n int n = Integer.parseInt(input[0]);\n int m = Integer.parseInt(input[1]);\n int l = Integer.parseInt(input[2]);\n \n //declare matrices\n long[][] matrix_1 = new long[n][m];\n long[][] matrix_2 = new long[m][l];\n long[][] answer = new long[n][l];\n \n //initialize matrix_1\n for(int i = 0; i < n; i ++) {\n input = sc.nextLine().split(\" \");\n for(int j = 0; j < m; j ++) {\n matrix_1[i][j] = Integer.parseInt(input[j]);\n }\n }\n \n //initialize matrix_2\n for(int i = 0; i < m; i ++) {\n input = sc.nextLine().split(\" \");\n for(int j = 0; j < l; j ++) {\n matrix_2[i][j] = Integer.parseInt(input[j]);\n }\n }\n //calculation\n for(int i = 0; i < n; i ++) {\n for(int j = 0; j < l; j ++) {\n long temp = 0;\n for(int k = 0; k < m; k ++) {\n temp += matrix_1[i][k] * matrix_2[k][j];\n }\n answer[i][j] = temp;\n }\n }\n \n //print out\n for(int i = 0; i < n; i ++) {\n String output = \"\";\n for(int j = 0; j < l; j ++) {\n output += answer[i][j] + \" \";\n }\n System.out.println(output.trim());\n }\n \n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] input = sc.nextLine().split(\" \");\n \n int n = Integer.parseInt(input[0]);\n int m = Integer.parseInt(input[1]);\n int l = Integer.parseInt(input[2]);\n \n //declare matrices\n long[][] matrix_1 = new long[n][m];\n long[][] matrix_2 = new long[m][l];\n long[][] answer = new long[n][l];\n \n //initialize matrix_1\n for(int i = 0; i < n; i ++) {\n input = sc.nextLine().split(\" \");\n for(int j = 0; j < m; j ++) {\n matrix_1[i][j] = Integer.parseInt(input[j]);\n }\n }\n \n //initialize matrix_2\n for(int i = 0; i < m; i ++) {\n input = sc.nextLine().split(\" \");\n for(int j = 0; j < l; j ++) {\n matrix_2[i][j] = Integer.parseInt(input[j]);\n }\n }\n //calculation\n for(int i = 0; i < n; i ++) {\n for(int j = 0; j < l; j ++) {\n long temp = 0;\n for(int k = 0; k < m; k ++) {\n temp += matrix_1[i][k] * matrix_2[k][j];\n }\n answer[i][j] = temp;\n }\n }\n \n //print out\n for(int i = 0; i < n; i ++) {\n String output = \"\";\n for(int j = 0; j < l; j ++) {\n output += answer[i][j] + \" \";\n }\n System.out.println(output.trim());\n }\n \n }\n}",
"Main",
"public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] input = sc.nextLine().split(\" \");\n \n int n = Integer.parseInt(input[0]);\n int m = Integer.parseInt(input[1]);\n int l = Integer.parseInt(input[2]);\n \n //declare matrices\n long[][] matrix_1 = new long[n][m];\n long[][] matrix_2 = new long[m][l];\n long[][] answer = new long[n][l];\n \n //initialize matrix_1\n for(int i = 0; i < n; i ++) {\n input = sc.nextLine().split(\" \");\n for(int j = 0; j < m; j ++) {\n matrix_1[i][j] = Integer.parseInt(input[j]);\n }\n }\n \n //initialize matrix_2\n for(int i = 0; i < m; i ++) {\n input = sc.nextLine().split(\" \");\n for(int j = 0; j < l; j ++) {\n matrix_2[i][j] = Integer.parseInt(input[j]);\n }\n }\n //calculation\n for(int i = 0; i < n; i ++) {\n for(int j = 0; j < l; j ++) {\n long temp = 0;\n for(int k = 0; k < m; k ++) {\n temp += matrix_1[i][k] * matrix_2[k][j];\n }\n answer[i][j] = temp;\n }\n }\n \n //print out\n for(int i = 0; i < n; i ++) {\n String output = \"\";\n for(int j = 0; j < l; j ++) {\n output += answer[i][j] + \" \";\n }\n System.out.println(output.trim());\n }\n \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String[] input = sc.nextLine().split(\" \");\n \n int n = Integer.parseInt(input[0]);\n int m = Integer.parseInt(input[1]);\n int l = Integer.parseInt(input[2]);\n \n //declare matrices\n long[][] matrix_1 = new long[n][m];\n long[][] matrix_2 = new long[m][l];\n long[][] answer = new long[n][l];\n \n //initialize matrix_1\n for(int i = 0; i < n; i ++) {\n input = sc.nextLine().split(\" \");\n for(int j = 0; j < m; j ++) {\n matrix_1[i][j] = Integer.parseInt(input[j]);\n }\n }\n \n //initialize matrix_2\n for(int i = 0; i < m; i ++) {\n input = sc.nextLine().split(\" \");\n for(int j = 0; j < l; j ++) {\n matrix_2[i][j] = Integer.parseInt(input[j]);\n }\n }\n //calculation\n for(int i = 0; i < n; i ++) {\n for(int j = 0; j < l; j ++) {\n long temp = 0;\n for(int k = 0; k < m; k ++) {\n temp += matrix_1[i][k] * matrix_2[k][j];\n }\n answer[i][j] = temp;\n }\n }\n \n //print out\n for(int i = 0; i < n; i ++) {\n String output = \"\";\n for(int j = 0; j < l; j ++) {\n output += answer[i][j] + \" \";\n }\n System.out.println(output.trim());\n }\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String[] input = sc.nextLine().split(\" \");",
"input",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"int n = Integer.parseInt(input[0]);",
"n",
"Integer.parseInt(input[0])",
"Integer.parseInt",
"Integer",
"input[0]",
"input",
"0",
"int m = Integer.parseInt(input[1]);",
"m",
"Integer.parseInt(input[1])",
"Integer.parseInt",
"Integer",
"input[1]",
"input",
"1",
"int l = Integer.parseInt(input[2]);",
"l",
"Integer.parseInt(input[2])",
"Integer.parseInt",
"Integer",
"input[2]",
"input",
"2",
"long[][] matrix_1 = new long[n][m];",
"matrix_1",
"new long[n][m]",
"n",
"m",
"long[][] matrix_2 = new long[m][l];",
"matrix_2",
"new long[m][l]",
"m",
"l",
"long[][] answer = new long[n][l];",
"answer",
"new long[n][l]",
"n",
"l",
"for(int i = 0; i < n; i ++) {\n input = sc.nextLine().split(\" \");\n for(int j = 0; j < m; j ++) {\n matrix_1[i][j] = Integer.parseInt(input[j]);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i ++",
"i ++",
"i",
"{\n input = sc.nextLine().split(\" \");\n for(int j = 0; j < m; j ++) {\n matrix_1[i][j] = Integer.parseInt(input[j]);\n }\n }",
"{\n input = sc.nextLine().split(\" \");\n for(int j = 0; j < m; j ++) {\n matrix_1[i][j] = Integer.parseInt(input[j]);\n }\n }",
"input = sc.nextLine().split(\" \")",
"input",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"for(int j = 0; j < m; j ++) {\n matrix_1[i][j] = Integer.parseInt(input[j]);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j ++",
"j ++",
"j",
"{\n matrix_1[i][j] = Integer.parseInt(input[j]);\n }",
"{\n matrix_1[i][j] = Integer.parseInt(input[j]);\n }",
"matrix_1[i][j] = Integer.parseInt(input[j])",
"matrix_1[i][j]",
"matrix_1[i]",
"matrix_1",
"i",
"j",
"Integer.parseInt(input[j])",
"Integer.parseInt",
"Integer",
"input[j]",
"input",
"j",
"for(int i = 0; i < m; i ++) {\n input = sc.nextLine().split(\" \");\n for(int j = 0; j < l; j ++) {\n matrix_2[i][j] = Integer.parseInt(input[j]);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i ++",
"i ++",
"i",
"{\n input = sc.nextLine().split(\" \");\n for(int j = 0; j < l; j ++) {\n matrix_2[i][j] = Integer.parseInt(input[j]);\n }\n }",
"{\n input = sc.nextLine().split(\" \");\n for(int j = 0; j < l; j ++) {\n matrix_2[i][j] = Integer.parseInt(input[j]);\n }\n }",
"input = sc.nextLine().split(\" \")",
"input",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"for(int j = 0; j < l; j ++) {\n matrix_2[i][j] = Integer.parseInt(input[j]);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j ++",
"j ++",
"j",
"{\n matrix_2[i][j] = Integer.parseInt(input[j]);\n }",
"{\n matrix_2[i][j] = Integer.parseInt(input[j]);\n }",
"matrix_2[i][j] = Integer.parseInt(input[j])",
"matrix_2[i][j]",
"matrix_2[i]",
"matrix_2",
"i",
"j",
"Integer.parseInt(input[j])",
"Integer.parseInt",
"Integer",
"input[j]",
"input",
"j",
"for(int i = 0; i < n; i ++) {\n for(int j = 0; j < l; j ++) {\n long temp = 0;\n for(int k = 0; k < m; k ++) {\n temp += matrix_1[i][k] * matrix_2[k][j];\n }\n answer[i][j] = temp;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i ++",
"i ++",
"i",
"{\n for(int j = 0; j < l; j ++) {\n long temp = 0;\n for(int k = 0; k < m; k ++) {\n temp += matrix_1[i][k] * matrix_2[k][j];\n }\n answer[i][j] = temp;\n }\n }",
"{\n for(int j = 0; j < l; j ++) {\n long temp = 0;\n for(int k = 0; k < m; k ++) {\n temp += matrix_1[i][k] * matrix_2[k][j];\n }\n answer[i][j] = temp;\n }\n }",
"for(int j = 0; j < l; j ++) {\n long temp = 0;\n for(int k = 0; k < m; k ++) {\n temp += matrix_1[i][k] * matrix_2[k][j];\n }\n answer[i][j] = temp;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j ++",
"j ++",
"j",
"{\n long temp = 0;\n for(int k = 0; k < m; k ++) {\n temp += matrix_1[i][k] * matrix_2[k][j];\n }\n answer[i][j] = temp;\n }",
"{\n long temp = 0;\n for(int k = 0; k < m; k ++) {\n temp += matrix_1[i][k] * matrix_2[k][j];\n }\n answer[i][j] = temp;\n }",
"long temp = 0;",
"temp",
"0",
"for(int k = 0; k < m; k ++) {\n temp += matrix_1[i][k] * matrix_2[k][j];\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < m",
"k",
"m",
"k ++",
"k ++",
"k",
"{\n temp += matrix_1[i][k] * matrix_2[k][j];\n }",
"{\n temp += matrix_1[i][k] * matrix_2[k][j];\n }",
"temp += matrix_1[i][k] * matrix_2[k][j]",
"temp",
"matrix_1[i][k] * matrix_2[k][j]",
"matrix_1[i][k]",
"matrix_1[i]",
"matrix_1",
"i",
"k",
"matrix_2[k][j]",
"matrix_2[k]",
"matrix_2",
"k",
"j",
"answer[i][j] = temp",
"answer[i][j]",
"answer[i]",
"answer",
"i",
"j",
"temp",
"for(int i = 0; i < n; i ++) {\n String output = \"\";\n for(int j = 0; j < l; j ++) {\n output += answer[i][j] + \" \";\n }\n System.out.println(output.trim());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i ++",
"i ++",
"i",
"{\n String output = \"\";\n for(int j = 0; j < l; j ++) {\n output += answer[i][j] + \" \";\n }\n System.out.println(output.trim());\n }",
"{\n String output = \"\";\n for(int j = 0; j < l; j ++) {\n output += answer[i][j] + \" \";\n }\n System.out.println(output.trim());\n }",
"String output = \"\";",
"output",
"\"\"",
"for(int j = 0; j < l; j ++) {\n output += answer[i][j] + \" \";\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j ++",
"j ++",
"j",
"{\n output += answer[i][j] + \" \";\n }",
"{\n output += answer[i][j] + \" \";\n }",
"output += answer[i][j] + \" \"",
"output",
"answer[i][j] + \" \"",
"answer[i][j]",
"answer[i]",
"answer",
"i",
"j",
"\" \"",
"System.out.println(output.trim())",
"System.out.println",
"System.out",
"System",
"System.out",
"output.trim()",
"output.trim",
"output",
"String[] args",
"args",
"public class Main {\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] input = sc.nextLine().split(\" \");\n \n int n = Integer.parseInt(input[0]);\n int m = Integer.parseInt(input[1]);\n int l = Integer.parseInt(input[2]);\n \n //declare matrices\n long[][] matrix_1 = new long[n][m];\n long[][] matrix_2 = new long[m][l];\n long[][] answer = new long[n][l];\n \n //initialize matrix_1\n for(int i = 0; i < n; i ++) {\n input = sc.nextLine().split(\" \");\n for(int j = 0; j < m; j ++) {\n matrix_1[i][j] = Integer.parseInt(input[j]);\n }\n }\n \n //initialize matrix_2\n for(int i = 0; i < m; i ++) {\n input = sc.nextLine().split(\" \");\n for(int j = 0; j < l; j ++) {\n matrix_2[i][j] = Integer.parseInt(input[j]);\n }\n }\n //calculation\n for(int i = 0; i < n; i ++) {\n for(int j = 0; j < l; j ++) {\n long temp = 0;\n for(int k = 0; k < m; k ++) {\n temp += matrix_1[i][k] * matrix_2[k][j];\n }\n answer[i][j] = temp;\n }\n }\n \n //print out\n for(int i = 0; i < n; i ++) {\n String output = \"\";\n for(int j = 0; j < l; j ++) {\n output += answer[i][j] + \" \";\n }\n System.out.println(output.trim());\n }\n \n }\n}",
"public class Main {\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] input = sc.nextLine().split(\" \");\n \n int n = Integer.parseInt(input[0]);\n int m = Integer.parseInt(input[1]);\n int l = Integer.parseInt(input[2]);\n \n //declare matrices\n long[][] matrix_1 = new long[n][m];\n long[][] matrix_2 = new long[m][l];\n long[][] answer = new long[n][l];\n \n //initialize matrix_1\n for(int i = 0; i < n; i ++) {\n input = sc.nextLine().split(\" \");\n for(int j = 0; j < m; j ++) {\n matrix_1[i][j] = Integer.parseInt(input[j]);\n }\n }\n \n //initialize matrix_2\n for(int i = 0; i < m; i ++) {\n input = sc.nextLine().split(\" \");\n for(int j = 0; j < l; j ++) {\n matrix_2[i][j] = Integer.parseInt(input[j]);\n }\n }\n //calculation\n for(int i = 0; i < n; i ++) {\n for(int j = 0; j < l; j ++) {\n long temp = 0;\n for(int k = 0; k < m; k ++) {\n temp += matrix_1[i][k] * matrix_2[k][j];\n }\n answer[i][j] = temp;\n }\n }\n \n //print out\n for(int i = 0; i < n; i ++) {\n String output = \"\";\n for(int j = 0; j < l; j ++) {\n output += answer[i][j] + \" \";\n }\n System.out.println(output.trim());\n }\n \n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
String[] input = sc.nextLine().split(" ");
int n = Integer.parseInt(input[0]);
int m = Integer.parseInt(input[1]);
int l = Integer.parseInt(input[2]);
//declare matrices
long[][] matrix_1 = new long[n][m];
long[][] matrix_2 = new long[m][l];
long[][] answer = new long[n][l];
//initialize matrix_1
for(int i = 0; i < n; i ++) {
input = sc.nextLine().split(" ");
for(int j = 0; j < m; j ++) {
matrix_1[i][j] = Integer.parseInt(input[j]);
}
}
//initialize matrix_2
for(int i = 0; i < m; i ++) {
input = sc.nextLine().split(" ");
for(int j = 0; j < l; j ++) {
matrix_2[i][j] = Integer.parseInt(input[j]);
}
}
//calculation
for(int i = 0; i < n; i ++) {
for(int j = 0; j < l; j ++) {
long temp = 0;
for(int k = 0; k < m; k ++) {
temp += matrix_1[i][k] * matrix_2[k][j];
}
answer[i][j] = temp;
}
}
//print out
for(int i = 0; i < n; i ++) {
String output = "";
for(int j = 0; j < l; j ++) {
output += answer[i][j] + " ";
}
System.out.println(output.trim());
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
13,
41,
13,
20,
13,
13,
41,
13,
41,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
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,
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,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
4,
18,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
42
],
[
42,
43
],
[
8,
44
],
[
44,
45
],
[
8,
46
],
[
46,
47
],
[
8,
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
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
61,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
74,
80
],
[
80,
81
],
[
81,
82
],
[
8,
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
],
[
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
],
[
110,
114
],
[
109,
115
],
[
115,
116
],
[
116,
117
],
[
8,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
118,
126
],
[
126,
127
],
[
127,
128
],
[
118,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
136,
137
],
[
136,
138
],
[
131,
139
],
[
139,
140
],
[
140,
141
],
[
131,
142
],
[
143,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
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
],
[
158,
162
],
[
157,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
163,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
143,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
174,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
178,
183
],
[
143,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
184,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
189,
193
],
[
130,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
6,
199
],
[
199,
200
]
] | [
"import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int numRow1 = sc.nextInt();\n int numCol1Row2 = sc.nextInt();\n int numCol2 = sc.nextInt();\n\n int[][] mat1 = new int[numRow1][numCol1Row2];\n int[][] mat2 = new int[numCol1Row2][numCol2];\n long[][] matOut = new long[numRow1][numCol2];\n int i, j, k;\n for (i = 0; i < numRow1; i++) {\n for (j = 0; j < numCol1Row2; j++) {\n mat1[i][j] = sc.nextInt();\n }\n }\n for (i = 0; i < numCol1Row2; i++) {\n for (j = 0; j < numCol2; j++) {\n mat2[i][j] = sc.nextInt();\n }\n }\n for (i = 0; i < numRow1; i++) {\n for (j = 0; j < numCol2; j++) {\n for (k = 0; k < numCol1Row2; k++) {\n matOut[i][j] += mat1[i][k] * mat2[k][j];\n }\n if (j != 0) System.out.print(\" \");\n System.out.print(matOut[i][j]);\n }\n System.out.println();\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 numRow1 = sc.nextInt();\n int numCol1Row2 = sc.nextInt();\n int numCol2 = sc.nextInt();\n\n int[][] mat1 = new int[numRow1][numCol1Row2];\n int[][] mat2 = new int[numCol1Row2][numCol2];\n long[][] matOut = new long[numRow1][numCol2];\n int i, j, k;\n for (i = 0; i < numRow1; i++) {\n for (j = 0; j < numCol1Row2; j++) {\n mat1[i][j] = sc.nextInt();\n }\n }\n for (i = 0; i < numCol1Row2; i++) {\n for (j = 0; j < numCol2; j++) {\n mat2[i][j] = sc.nextInt();\n }\n }\n for (i = 0; i < numRow1; i++) {\n for (j = 0; j < numCol2; j++) {\n for (k = 0; k < numCol1Row2; k++) {\n matOut[i][j] += mat1[i][k] * mat2[k][j];\n }\n if (j != 0) System.out.print(\" \");\n System.out.print(matOut[i][j]);\n }\n System.out.println();\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int numRow1 = sc.nextInt();\n int numCol1Row2 = sc.nextInt();\n int numCol2 = sc.nextInt();\n\n int[][] mat1 = new int[numRow1][numCol1Row2];\n int[][] mat2 = new int[numCol1Row2][numCol2];\n long[][] matOut = new long[numRow1][numCol2];\n int i, j, k;\n for (i = 0; i < numRow1; i++) {\n for (j = 0; j < numCol1Row2; j++) {\n mat1[i][j] = sc.nextInt();\n }\n }\n for (i = 0; i < numCol1Row2; i++) {\n for (j = 0; j < numCol2; j++) {\n mat2[i][j] = sc.nextInt();\n }\n }\n for (i = 0; i < numRow1; i++) {\n for (j = 0; j < numCol2; j++) {\n for (k = 0; k < numCol1Row2; k++) {\n matOut[i][j] += mat1[i][k] * mat2[k][j];\n }\n if (j != 0) System.out.print(\" \");\n System.out.print(matOut[i][j]);\n }\n System.out.println();\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int numRow1 = sc.nextInt();\n int numCol1Row2 = sc.nextInt();\n int numCol2 = sc.nextInt();\n\n int[][] mat1 = new int[numRow1][numCol1Row2];\n int[][] mat2 = new int[numCol1Row2][numCol2];\n long[][] matOut = new long[numRow1][numCol2];\n int i, j, k;\n for (i = 0; i < numRow1; i++) {\n for (j = 0; j < numCol1Row2; j++) {\n mat1[i][j] = sc.nextInt();\n }\n }\n for (i = 0; i < numCol1Row2; i++) {\n for (j = 0; j < numCol2; j++) {\n mat2[i][j] = sc.nextInt();\n }\n }\n for (i = 0; i < numRow1; i++) {\n for (j = 0; j < numCol2; j++) {\n for (k = 0; k < numCol1Row2; k++) {\n matOut[i][j] += mat1[i][k] * mat2[k][j];\n }\n if (j != 0) System.out.print(\" \");\n System.out.print(matOut[i][j]);\n }\n System.out.println();\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int numRow1 = sc.nextInt();",
"numRow1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int numCol1Row2 = sc.nextInt();",
"numCol1Row2",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int numCol2 = sc.nextInt();",
"numCol2",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] mat1 = new int[numRow1][numCol1Row2];",
"mat1",
"new int[numRow1][numCol1Row2]",
"numRow1",
"numCol1Row2",
"int[][] mat2 = new int[numCol1Row2][numCol2];",
"mat2",
"new int[numCol1Row2][numCol2]",
"numCol1Row2",
"numCol2",
"long[][] matOut = new long[numRow1][numCol2];",
"matOut",
"new long[numRow1][numCol2]",
"numRow1",
"numCol2",
"int i",
"i",
"j",
"j",
"k;",
"k",
"for (i = 0; i < numRow1; i++) {\n for (j = 0; j < numCol1Row2; j++) {\n mat1[i][j] = sc.nextInt();\n }\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < numRow1",
"i",
"numRow1",
"i++",
"i++",
"i",
"{\n for (j = 0; j < numCol1Row2; j++) {\n mat1[i][j] = sc.nextInt();\n }\n }",
"{\n for (j = 0; j < numCol1Row2; j++) {\n mat1[i][j] = sc.nextInt();\n }\n }",
"for (j = 0; j < numCol1Row2; j++) {\n mat1[i][j] = sc.nextInt();\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < numCol1Row2",
"j",
"numCol1Row2",
"j++",
"j++",
"j",
"{\n mat1[i][j] = sc.nextInt();\n }",
"{\n mat1[i][j] = sc.nextInt();\n }",
"mat1[i][j] = sc.nextInt()",
"mat1[i][j]",
"mat1[i]",
"mat1",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (i = 0; i < numCol1Row2; i++) {\n for (j = 0; j < numCol2; j++) {\n mat2[i][j] = sc.nextInt();\n }\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < numCol1Row2",
"i",
"numCol1Row2",
"i++",
"i++",
"i",
"{\n for (j = 0; j < numCol2; j++) {\n mat2[i][j] = sc.nextInt();\n }\n }",
"{\n for (j = 0; j < numCol2; j++) {\n mat2[i][j] = sc.nextInt();\n }\n }",
"for (j = 0; j < numCol2; j++) {\n mat2[i][j] = sc.nextInt();\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < numCol2",
"j",
"numCol2",
"j++",
"j++",
"j",
"{\n mat2[i][j] = sc.nextInt();\n }",
"{\n mat2[i][j] = sc.nextInt();\n }",
"mat2[i][j] = sc.nextInt()",
"mat2[i][j]",
"mat2[i]",
"mat2",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (i = 0; i < numRow1; i++) {\n for (j = 0; j < numCol2; j++) {\n for (k = 0; k < numCol1Row2; k++) {\n matOut[i][j] += mat1[i][k] * mat2[k][j];\n }\n if (j != 0) System.out.print(\" \");\n System.out.print(matOut[i][j]);\n }\n System.out.println();\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < numRow1",
"i",
"numRow1",
"i++",
"i++",
"i",
"{\n for (j = 0; j < numCol2; j++) {\n for (k = 0; k < numCol1Row2; k++) {\n matOut[i][j] += mat1[i][k] * mat2[k][j];\n }\n if (j != 0) System.out.print(\" \");\n System.out.print(matOut[i][j]);\n }\n System.out.println();\n }",
"{\n for (j = 0; j < numCol2; j++) {\n for (k = 0; k < numCol1Row2; k++) {\n matOut[i][j] += mat1[i][k] * mat2[k][j];\n }\n if (j != 0) System.out.print(\" \");\n System.out.print(matOut[i][j]);\n }\n System.out.println();\n }",
"for (j = 0; j < numCol2; j++) {\n for (k = 0; k < numCol1Row2; k++) {\n matOut[i][j] += mat1[i][k] * mat2[k][j];\n }\n if (j != 0) System.out.print(\" \");\n System.out.print(matOut[i][j]);\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < numCol2",
"j",
"numCol2",
"j++",
"j++",
"j",
"{\n for (k = 0; k < numCol1Row2; k++) {\n matOut[i][j] += mat1[i][k] * mat2[k][j];\n }\n if (j != 0) System.out.print(\" \");\n System.out.print(matOut[i][j]);\n }",
"{\n for (k = 0; k < numCol1Row2; k++) {\n matOut[i][j] += mat1[i][k] * mat2[k][j];\n }\n if (j != 0) System.out.print(\" \");\n System.out.print(matOut[i][j]);\n }",
"for (k = 0; k < numCol1Row2; k++) {\n matOut[i][j] += mat1[i][k] * mat2[k][j];\n }",
"k = 0;",
"k = 0",
"k",
"0",
"k < numCol1Row2",
"k",
"numCol1Row2",
"k++",
"k++",
"k",
"{\n matOut[i][j] += mat1[i][k] * mat2[k][j];\n }",
"{\n matOut[i][j] += mat1[i][k] * mat2[k][j];\n }",
"matOut[i][j] += mat1[i][k] * mat2[k][j]",
"matOut[i][j]",
"matOut[i]",
"matOut",
"i",
"j",
"mat1[i][k] * mat2[k][j]",
"mat1[i][k]",
"mat1[i]",
"mat1",
"i",
"k",
"mat2[k][j]",
"mat2[k]",
"mat2",
"k",
"j",
"if (j != 0) System.out.print(\" \");",
"j != 0",
"j",
"0",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.print(matOut[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"matOut[i][j]",
"matOut[i]",
"matOut",
"i",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args"
] | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int numRow1 = sc.nextInt();
int numCol1Row2 = sc.nextInt();
int numCol2 = sc.nextInt();
int[][] mat1 = new int[numRow1][numCol1Row2];
int[][] mat2 = new int[numCol1Row2][numCol2];
long[][] matOut = new long[numRow1][numCol2];
int i, j, k;
for (i = 0; i < numRow1; i++) {
for (j = 0; j < numCol1Row2; j++) {
mat1[i][j] = sc.nextInt();
}
}
for (i = 0; i < numCol1Row2; i++) {
for (j = 0; j < numCol2; j++) {
mat2[i][j] = sc.nextInt();
}
}
for (i = 0; i < numRow1; i++) {
for (j = 0; j < numCol2; j++) {
for (k = 0; k < numCol1Row2; k++) {
matOut[i][j] += mat1[i][k] * mat2[k][j];
}
if (j != 0) System.out.print(" ");
System.out.print(matOut[i][j]);
}
System.out.println();
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
41,
13,
4,
18,
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,
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,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
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,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
8,
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
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
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
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
136,
142
],
[
142,
143
],
[
143,
144
],
[
8,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
145,
150
],
[
150,
151
],
[
150,
152
],
[
145,
153
],
[
153,
154
],
[
154,
155
],
[
145,
156
],
[
157,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
158,
163
],
[
163,
164
],
[
163,
165
],
[
158,
166
],
[
166,
167
],
[
167,
168
],
[
158,
169
],
[
170,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
171,
176
],
[
176,
177
],
[
176,
178
],
[
171,
179
],
[
179,
180
],
[
180,
181
],
[
171,
182
],
[
183,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
185,
189
],
[
184,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
195
],
[
190,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
196,
200
],
[
8,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
201,
206
],
[
206,
207
],
[
206,
208
],
[
201,
209
],
[
209,
210
],
[
210,
211
],
[
201,
212
],
[
213,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
214,
219
],
[
219,
220
],
[
219,
221
],
[
214,
222
],
[
222,
223
],
[
223,
224
],
[
214,
225
],
[
226,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
227,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
232,
236
],
[
226,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
240,
241
],
[
240,
242
],
[
237,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
246,
248
],
[
244,
249
],
[
213,
250
],
[
250,
251
],
[
251,
252
],
[
252,
253
],
[
252,
254
],
[
250,
255
],
[
6,
256
],
[
256,
257
]
] | [
"import java.util.Scanner;\n\nclass Main\n{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tlong[][] a = new long[100][100];\n\t\tlong[][] b = new long[100][100];\n\t\tlong[][] c = new long[100][100];\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\tfor(int j=0; j<l; j++){\n\t\t\tc[i][j] = 0;}}\n\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\tfor(int k=0; k<m; k++){\n\t\t\ta[i][k] = scan.nextLong();}}\n\t\t\n\t\tfor(int k=0; k<m; k++){\n\t\tfor(int j=0; j<l; j++){\n\t\t\tb[k][j] = scan.nextLong();}}\n\t\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\tfor(int j=0; j<l; j++){\n\t\tfor(int k=0; k<m; k++){\n\t\t\tc[i][j] += a[i][k] * b[k][j];}}}\n\t\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\tfor(int j=0; j<l; j++){\n\t\t\tSystem.out.print(c[i][j]);\n\t\t\tif(j!=l-1){\n\t\t\t\tSystem.out.print(\" \");}}\n\t\t\tSystem.out.print(\"\\n\");}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main\n{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tlong[][] a = new long[100][100];\n\t\tlong[][] b = new long[100][100];\n\t\tlong[][] c = new long[100][100];\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\tfor(int j=0; j<l; j++){\n\t\t\tc[i][j] = 0;}}\n\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\tfor(int k=0; k<m; k++){\n\t\t\ta[i][k] = scan.nextLong();}}\n\t\t\n\t\tfor(int k=0; k<m; k++){\n\t\tfor(int j=0; j<l; j++){\n\t\t\tb[k][j] = scan.nextLong();}}\n\t\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\tfor(int j=0; j<l; j++){\n\t\tfor(int k=0; k<m; k++){\n\t\t\tc[i][j] += a[i][k] * b[k][j];}}}\n\t\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\tfor(int j=0; j<l; j++){\n\t\t\tSystem.out.print(c[i][j]);\n\t\t\tif(j!=l-1){\n\t\t\t\tSystem.out.print(\" \");}}\n\t\t\tSystem.out.print(\"\\n\");}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tlong[][] a = new long[100][100];\n\t\tlong[][] b = new long[100][100];\n\t\tlong[][] c = new long[100][100];\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\tfor(int j=0; j<l; j++){\n\t\t\tc[i][j] = 0;}}\n\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\tfor(int k=0; k<m; k++){\n\t\t\ta[i][k] = scan.nextLong();}}\n\t\t\n\t\tfor(int k=0; k<m; k++){\n\t\tfor(int j=0; j<l; j++){\n\t\t\tb[k][j] = scan.nextLong();}}\n\t\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\tfor(int j=0; j<l; j++){\n\t\tfor(int k=0; k<m; k++){\n\t\t\tc[i][j] += a[i][k] * b[k][j];}}}\n\t\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\tfor(int j=0; j<l; j++){\n\t\t\tSystem.out.print(c[i][j]);\n\t\t\tif(j!=l-1){\n\t\t\t\tSystem.out.print(\" \");}}\n\t\t\tSystem.out.print(\"\\n\");}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tlong[][] a = new long[100][100];\n\t\tlong[][] b = new long[100][100];\n\t\tlong[][] c = new long[100][100];\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint l = scan.nextInt();\n\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\tfor(int j=0; j<l; j++){\n\t\t\tc[i][j] = 0;}}\n\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\tfor(int k=0; k<m; k++){\n\t\t\ta[i][k] = scan.nextLong();}}\n\t\t\n\t\tfor(int k=0; k<m; k++){\n\t\tfor(int j=0; j<l; j++){\n\t\t\tb[k][j] = scan.nextLong();}}\n\t\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\tfor(int j=0; j<l; j++){\n\t\tfor(int k=0; k<m; k++){\n\t\t\tc[i][j] += a[i][k] * b[k][j];}}}\n\t\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\tfor(int j=0; j<l; j++){\n\t\t\tSystem.out.print(c[i][j]);\n\t\t\tif(j!=l-1){\n\t\t\t\tSystem.out.print(\" \");}}\n\t\t\tSystem.out.print(\"\\n\");}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"long[][] a = new long[100][100];",
"a",
"new long[100][100]",
"100",
"100",
"long[][] b = new long[100][100];",
"b",
"new long[100][100]",
"100",
"100",
"long[][] c = new long[100][100];",
"c",
"new long[100][100]",
"100",
"100",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int l = scan.nextInt();",
"l",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i=0; i<n; i++){\n\t\tfor(int j=0; j<l; j++){\n\t\t\tc[i][j] = 0;}}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\tfor(int j=0; j<l; j++){\n\t\t\tc[i][j] = 0;}}",
"{\n\t\tfor(int j=0; j<l; j++){\n\t\t\tc[i][j] = 0;}}",
"for(int j=0; j<l; j++){\n\t\t\tc[i][j] = 0;}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\tc[i][j] = 0;}",
"{\n\t\t\tc[i][j] = 0;}",
"c[i][j] = 0",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"0",
"for(int i=0; i<n; i++){\n\t\tfor(int k=0; k<m; k++){\n\t\t\ta[i][k] = scan.nextLong();}}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\tfor(int k=0; k<m; k++){\n\t\t\ta[i][k] = scan.nextLong();}}",
"{\n\t\tfor(int k=0; k<m; k++){\n\t\t\ta[i][k] = scan.nextLong();}}",
"for(int k=0; k<m; k++){\n\t\t\ta[i][k] = scan.nextLong();}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<m",
"k",
"m",
"k++",
"k++",
"k",
"{\n\t\t\ta[i][k] = scan.nextLong();}",
"{\n\t\t\ta[i][k] = scan.nextLong();}",
"a[i][k] = scan.nextLong()",
"a[i][k]",
"a[i]",
"a",
"i",
"k",
"scan.nextLong()",
"scan.nextLong",
"scan",
"for(int k=0; k<m; k++){\n\t\tfor(int j=0; j<l; j++){\n\t\t\tb[k][j] = scan.nextLong();}}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<m",
"k",
"m",
"k++",
"k++",
"k",
"{\n\t\tfor(int j=0; j<l; j++){\n\t\t\tb[k][j] = scan.nextLong();}}",
"{\n\t\tfor(int j=0; j<l; j++){\n\t\t\tb[k][j] = scan.nextLong();}}",
"for(int j=0; j<l; j++){\n\t\t\tb[k][j] = scan.nextLong();}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\tb[k][j] = scan.nextLong();}",
"{\n\t\t\tb[k][j] = scan.nextLong();}",
"b[k][j] = scan.nextLong()",
"b[k][j]",
"b[k]",
"b",
"k",
"j",
"scan.nextLong()",
"scan.nextLong",
"scan",
"for(int i=0; i<n; i++){\n\t\tfor(int j=0; j<l; j++){\n\t\tfor(int k=0; k<m; k++){\n\t\t\tc[i][j] += a[i][k] * b[k][j];}}}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\tfor(int j=0; j<l; j++){\n\t\tfor(int k=0; k<m; k++){\n\t\t\tc[i][j] += a[i][k] * b[k][j];}}}",
"{\n\t\tfor(int j=0; j<l; j++){\n\t\tfor(int k=0; k<m; k++){\n\t\t\tc[i][j] += a[i][k] * b[k][j];}}}",
"for(int j=0; j<l; j++){\n\t\tfor(int k=0; k<m; k++){\n\t\t\tc[i][j] += a[i][k] * b[k][j];}}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\tfor(int k=0; k<m; k++){\n\t\t\tc[i][j] += a[i][k] * b[k][j];}}",
"{\n\t\tfor(int k=0; k<m; k++){\n\t\t\tc[i][j] += a[i][k] * b[k][j];}}",
"for(int k=0; k<m; k++){\n\t\t\tc[i][j] += a[i][k] * b[k][j];}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<m",
"k",
"m",
"k++",
"k++",
"k",
"{\n\t\t\tc[i][j] += a[i][k] * b[k][j];}",
"{\n\t\t\tc[i][j] += a[i][k] * b[k][j];}",
"c[i][j] += a[i][k] * b[k][j]",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"a[i][k] * b[k][j]",
"a[i][k]",
"a[i]",
"a",
"i",
"k",
"b[k][j]",
"b[k]",
"b",
"k",
"j",
"for(int i=0; i<n; i++){\n\t\tfor(int j=0; j<l; j++){\n\t\t\tSystem.out.print(c[i][j]);\n\t\t\tif(j!=l-1){\n\t\t\t\tSystem.out.print(\" \");}}\n\t\t\tSystem.out.print(\"\\n\");}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\tfor(int j=0; j<l; j++){\n\t\t\tSystem.out.print(c[i][j]);\n\t\t\tif(j!=l-1){\n\t\t\t\tSystem.out.print(\" \");}}\n\t\t\tSystem.out.print(\"\\n\");}",
"{\n\t\tfor(int j=0; j<l; j++){\n\t\t\tSystem.out.print(c[i][j]);\n\t\t\tif(j!=l-1){\n\t\t\t\tSystem.out.print(\" \");}}\n\t\t\tSystem.out.print(\"\\n\");}",
"for(int j=0; j<l; j++){\n\t\t\tSystem.out.print(c[i][j]);\n\t\t\tif(j!=l-1){\n\t\t\t\tSystem.out.print(\" \");}}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\tSystem.out.print(c[i][j]);\n\t\t\tif(j!=l-1){\n\t\t\t\tSystem.out.print(\" \");}}",
"{\n\t\t\tSystem.out.print(c[i][j]);\n\t\t\tif(j!=l-1){\n\t\t\t\tSystem.out.print(\" \");}}",
"System.out.print(c[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"if(j!=l-1){\n\t\t\t\tSystem.out.print(\" \");}",
"j!=l-1",
"j",
"l-1",
"l",
"1",
"{\n\t\t\t\tSystem.out.print(\" \");}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.print(\"\\n\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"\\n\"",
"String[] args",
"args"
] | import java.util.Scanner;
class Main
{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
long[][] a = new long[100][100];
long[][] b = new long[100][100];
long[][] c = new long[100][100];
int n = scan.nextInt();
int m = scan.nextInt();
int l = scan.nextInt();
for(int i=0; i<n; i++){
for(int j=0; j<l; j++){
c[i][j] = 0;}}
for(int i=0; i<n; i++){
for(int k=0; k<m; k++){
a[i][k] = scan.nextLong();}}
for(int k=0; k<m; k++){
for(int j=0; j<l; j++){
b[k][j] = scan.nextLong();}}
for(int i=0; i<n; i++){
for(int j=0; j<l; j++){
for(int k=0; k<m; k++){
c[i][j] += a[i][k] * b[k][j];}}}
for(int i=0; i<n; i++){
for(int j=0; j<l; j++){
System.out.print(c[i][j]);
if(j!=l-1){
System.out.print(" ");}}
System.out.print("\n");}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
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,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
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
],
[
227,
5
],
[
227,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
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
],
[
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
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
98,
104
],
[
104,
105
],
[
105,
106
],
[
8,
107
],
[
107,
108
],
[
107,
109
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
112,
120
],
[
120,
121
],
[
121,
122
],
[
112,
123
],
[
124,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
125,
136
],
[
137,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
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
],
[
8,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
173,
174
],
[
173,
175
],
[
168,
176
],
[
176,
177
],
[
177,
178
],
[
168,
179
],
[
180,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
181,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
186,
190
],
[
180,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
191,
196
],
[
196,
197
],
[
196,
198
],
[
191,
199
],
[
199,
200
],
[
200,
201
],
[
191,
202
],
[
203,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
204,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
211,
215
],
[
180,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
8,
221
],
[
221,
222
],
[
222,
223
],
[
6,
224
],
[
224,
225
],
[
0,
226
],
[
226,
227
],
[
226,
228
]
] | [
"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 L = sc.nextInt();\n\t\tlong[][] A = new long[N][M];\n\t\tlong[][] B = new long[M][L];\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tfor(int j = 0; j < M; j++) {\n\t\t\t\tA[i][j] = sc.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\tB[i][j] = sc.nextLong();\n\t\t\t}\n\t\t}\n\n\t\t// 行列の掛け算\n\t\tlong[][] C = new long[N][L];\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tfor(int j = 0; j < L; j++) {\n\t\t\t\tfor(int k = 0; k < M; k++) {\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tSystem.out.print(C[i][0]);\n\t\t\tfor(int j = 1; j < L; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tsc.close();\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\tint L = sc.nextInt();\n\t\tlong[][] A = new long[N][M];\n\t\tlong[][] B = new long[M][L];\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tfor(int j = 0; j < M; j++) {\n\t\t\t\tA[i][j] = sc.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\tB[i][j] = sc.nextLong();\n\t\t\t}\n\t\t}\n\n\t\t// 行列の掛け算\n\t\tlong[][] C = new long[N][L];\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tfor(int j = 0; j < L; j++) {\n\t\t\t\tfor(int k = 0; k < M; k++) {\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tSystem.out.print(C[i][0]);\n\t\t\tfor(int j = 1; j < L; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\tint L = sc.nextInt();\n\t\tlong[][] A = new long[N][M];\n\t\tlong[][] B = new long[M][L];\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tfor(int j = 0; j < M; j++) {\n\t\t\t\tA[i][j] = sc.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\tB[i][j] = sc.nextLong();\n\t\t\t}\n\t\t}\n\n\t\t// 行列の掛け算\n\t\tlong[][] C = new long[N][L];\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tfor(int j = 0; j < L; j++) {\n\t\t\t\tfor(int k = 0; k < M; k++) {\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tSystem.out.print(C[i][0]);\n\t\t\tfor(int j = 1; j < L; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\tint L = sc.nextInt();\n\t\tlong[][] A = new long[N][M];\n\t\tlong[][] B = new long[M][L];\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tfor(int j = 0; j < M; j++) {\n\t\t\t\tA[i][j] = sc.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\tB[i][j] = sc.nextLong();\n\t\t\t}\n\t\t}\n\n\t\t// 行列の掛け算\n\t\tlong[][] C = new long[N][L];\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tfor(int j = 0; j < L; j++) {\n\t\t\t\tfor(int k = 0; k < M; k++) {\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tSystem.out.print(C[i][0]);\n\t\t\tfor(int j = 1; j < L; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int M = sc.nextInt();",
"M",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int L = sc.nextInt();",
"L",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long[][] A = new long[N][M];",
"A",
"new long[N][M]",
"N",
"M",
"long[][] B = new long[M][L];",
"B",
"new long[M][L]",
"M",
"L",
"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.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\tA[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\tA[i][j] = sc.nextLong();\n\t\t\t}\n\t\t}",
"for(int j = 0; j < M; j++) {\n\t\t\t\tA[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\tA[i][j] = sc.nextLong();\n\t\t\t}",
"{\n\t\t\t\tA[i][j] = sc.nextLong();\n\t\t\t}",
"A[i][j] = sc.nextLong()",
"A[i][j]",
"A[i]",
"A",
"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\tB[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\tB[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\tB[i][j] = sc.nextLong();\n\t\t\t}\n\t\t}",
"for(int j = 0; j < L; j++) {\n\t\t\t\tB[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\tB[i][j] = sc.nextLong();\n\t\t\t}",
"{\n\t\t\t\tB[i][j] = sc.nextLong();\n\t\t\t}",
"B[i][j] = sc.nextLong()",
"B[i][j]",
"B[i]",
"B",
"i",
"j",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long[][] C = new long[N][L];",
"C",
"new long[N][L]",
"N",
"L",
"for(int i = 0; i < N; i++) {\n\t\t\tfor(int j = 0; j < L; j++) {\n\t\t\t\tfor(int k = 0; k < M; k++) {\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\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 < L; j++) {\n\t\t\t\tfor(int k = 0; k < M; k++) {\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < L; j++) {\n\t\t\t\tfor(int k = 0; k < M; k++) {\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int j = 0; j < L; j++) {\n\t\t\t\tfor(int k = 0; k < M; k++) {\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < L",
"j",
"L",
"j++",
"j++",
"j",
"{\n\t\t\t\tfor(int k = 0; k < M; k++) {\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int k = 0; k < M; k++) {\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}",
"for(int k = 0; k < M; k++) {\n\t\t\t\t\tC[i][j] += A[i][k] * B[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\tC[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}",
"{\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}",
"C[i][j] += A[i][k] * B[k][j]",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"A[i][k] * B[k][j]",
"A[i][k]",
"A[i]",
"A",
"i",
"k",
"B[k][j]",
"B[k]",
"B",
"k",
"j",
"for(int i = 0; i < N; i++) {\n\t\t\tSystem.out.print(C[i][0]);\n\t\t\tfor(int j = 1; j < L; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.print(C[i][0]);\n\t\t\tfor(int j = 1; j < L; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tSystem.out.print(C[i][0]);\n\t\t\tfor(int j = 1; j < L; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"System.out.print(C[i][0])",
"System.out.print",
"System.out",
"System",
"System.out",
"C[i][0]",
"C[i]",
"C",
"i",
"0",
"for(int j = 1; j < L; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j < L",
"j",
"L",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}",
"System.out.print(\" \" + C[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + C[i][j]",
"\" \"",
"C[i][j]",
"C[i]",
"C",
"i",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\tint L = sc.nextInt();\n\t\tlong[][] A = new long[N][M];\n\t\tlong[][] B = new long[M][L];\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tfor(int j = 0; j < M; j++) {\n\t\t\t\tA[i][j] = sc.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\tB[i][j] = sc.nextLong();\n\t\t\t}\n\t\t}\n\n\t\t// 行列の掛け算\n\t\tlong[][] C = new long[N][L];\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tfor(int j = 0; j < L; j++) {\n\t\t\t\tfor(int k = 0; k < M; k++) {\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tSystem.out.print(C[i][0]);\n\t\t\tfor(int j = 1; j < L; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\tint L = sc.nextInt();\n\t\tlong[][] A = new long[N][M];\n\t\tlong[][] B = new long[M][L];\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tfor(int j = 0; j < M; j++) {\n\t\t\t\tA[i][j] = sc.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\tB[i][j] = sc.nextLong();\n\t\t\t}\n\t\t}\n\n\t\t// 行列の掛け算\n\t\tlong[][] C = new long[N][L];\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tfor(int j = 0; j < L; j++) {\n\t\t\t\tfor(int k = 0; k < M; k++) {\n\t\t\t\t\tC[i][j] += A[i][k] * B[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tSystem.out.print(C[i][0]);\n\t\t\tfor(int j = 1; j < L; j++) {\n\t\t\t\tSystem.out.print(\" \" + C[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tsc.close();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int M = sc.nextInt();
int L = sc.nextInt();
long[][] A = new long[N][M];
long[][] B = new long[M][L];
for(int i = 0; i < N; i++) {
for(int j = 0; j < M; j++) {
A[i][j] = sc.nextLong();
}
}
for(int i = 0; i < M; i++) {
for(int j = 0; j < L; j++) {
B[i][j] = sc.nextLong();
}
}
// 行列の掛け算
long[][] C = new long[N][L];
for(int i = 0; i < N; i++) {
for(int j = 0; j < L; j++) {
for(int k = 0; k < M; k++) {
C[i][j] += A[i][k] * B[k][j];
}
}
}
for(int i = 0; i < N; i++) {
System.out.print(C[i][0]);
for(int j = 1; j < L; j++) {
System.out.print(" " + C[i][j]);
}
System.out.println();
}
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,
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,
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,
20,
13,
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,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
12,
13,
30,
4,
18,
20,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
205,
5
],
[
205,
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
],
[
24,
25
],
[
25,
26
],
[
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
],
[
45,
47
],
[
44,
48
],
[
43,
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
],
[
72,
74
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
76,
87
],
[
88,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
88,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
95,
103
],
[
103,
104
],
[
104,
105
],
[
95,
106
],
[
107,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
108,
114
],
[
114,
115
],
[
115,
116
],
[
8,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
122,
123
],
[
122,
124
],
[
117,
125
],
[
125,
126
],
[
126,
127
],
[
117,
128
],
[
129,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
135,
136
],
[
135,
137
],
[
130,
138
],
[
138,
139
],
[
139,
140
],
[
130,
141
],
[
142,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
142,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
146,
151
],
[
151,
152
],
[
151,
153
],
[
146,
154
],
[
154,
155
],
[
155,
156
],
[
146,
157
],
[
158,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
161,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
142,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
172,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
183,
188
],
[
188,
189
],
[
188,
190
],
[
129,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
205,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
196,
202
],
[
202,
203
],
[
0,
204
],
[
204,
205
],
[
204,
206
]
] | [
"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 l = scan.nextInt();\n\t\tlong[][] a = new long[n][];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = new long[m];\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\tlong[][] b = new long[m][];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tb[i] = new long[l];\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tb[i][j] = scan.nextInt();\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 c = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tSystem.out.print(c);\n\t\t\t\t} else System.out.print(\" \" + c);\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = scan.nextInt();\n\t\tlong[][] a = new long[n][];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = new long[m];\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\tlong[][] b = new long[m][];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tb[i] = new long[l];\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tb[i][j] = scan.nextInt();\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 c = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tSystem.out.print(c);\n\t\t\t\t} else System.out.print(\" \" + c);\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = scan.nextInt();\n\t\tlong[][] a = new long[n][];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = new long[m];\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\tlong[][] b = new long[m][];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tb[i] = new long[l];\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tb[i][j] = scan.nextInt();\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 c = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tSystem.out.print(c);\n\t\t\t\t} else System.out.print(\" \" + c);\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = scan.nextInt();\n\t\tlong[][] a = new long[n][];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = new long[m];\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\tlong[][] b = new long[m][];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tb[i] = new long[l];\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tb[i][j] = scan.nextInt();\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 c = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tSystem.out.print(c);\n\t\t\t\t} else System.out.print(\" \" + c);\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = scan.nextInt();",
"l",
"scan.nextInt()",
"scan.nextInt",
"scan",
"long[][] a = new long[n][];",
"a",
"new long[n][]",
"n",
"for (int i = 0; i < n; i++) {\n\t\t\ta[i] = new long[m];\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\ta[i] = new long[m];\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\ta[i] = new long[m];\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}",
"a[i] = new long[m]",
"a[i]",
"a",
"i",
"new long[m]",
"m",
"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",
"long[][] b = new long[m][];",
"b",
"new long[m][]",
"m",
"for (int i = 0; i < m; i++) {\n\t\t\tb[i] = new long[l];\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tb[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\tb[i] = new long[l];\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tb[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tb[i] = new long[l];\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tb[i][j] = scan.nextInt();\n\t\t\t}\n\t\t}",
"b[i] = new long[l]",
"b[i]",
"b",
"i",
"new long[l]",
"l",
"for (int j = 0; j < l; j++) {\n\t\t\t\tb[i][j] = scan.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tb[i][j] = scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\tb[i][j] = scan.nextInt();\n\t\t\t}",
"b[i][j] = scan.nextInt()",
"b[i][j]",
"b[i]",
"b",
"i",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlong c = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tSystem.out.print(c);\n\t\t\t\t} else System.out.print(\" \" + c);\n\t\t\t}\n\t\t\tSystem.out.println();\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 c = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tSystem.out.print(c);\n\t\t\t\t} else System.out.print(\" \" + c);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tlong c = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tSystem.out.print(c);\n\t\t\t\t} else System.out.print(\" \" + c);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"for (int j = 0; j < l; j++) {\n\t\t\t\tlong c = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tSystem.out.print(c);\n\t\t\t\t} else System.out.print(\" \" + c);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"{\n\t\t\t\tlong c = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tSystem.out.print(c);\n\t\t\t\t} else System.out.print(\" \" + c);\n\t\t\t}",
"{\n\t\t\t\tlong c = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tSystem.out.print(c);\n\t\t\t\t} else System.out.print(\" \" + c);\n\t\t\t}",
"long c = 0;",
"c",
"0",
"for (int k = 0; k < m; k++) {\n\t\t\t\t\tc += a[i][k] * b[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\tc += a[i][k] * b[k][j];\n\t\t\t\t}",
"{\n\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t}",
"c += a[i][k] * b[k][j]",
"c",
"a[i][k] * b[k][j]",
"a[i][k]",
"a[i]",
"a",
"i",
"k",
"b[k][j]",
"b[k]",
"b",
"k",
"j",
"if (j == 0) {\n\t\t\t\t\tSystem.out.print(c);\n\t\t\t\t} else System.out.print(\" \" + c);",
"j == 0",
"j",
"0",
"{\n\t\t\t\t\tSystem.out.print(c);\n\t\t\t\t}",
"System.out.print(c)",
"System.out.print",
"System.out",
"System",
"System.out",
"c",
"System.out.print(\" \" + c)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + c",
"\" \"",
"c",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"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 l = scan.nextInt();\n\t\tlong[][] a = new long[n][];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = new long[m];\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\tlong[][] b = new long[m][];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tb[i] = new long[l];\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tb[i][j] = scan.nextInt();\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 c = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tSystem.out.print(c);\n\t\t\t\t} else System.out.print(\" \" + c);\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = scan.nextInt();\n\t\tlong[][] a = new long[n][];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = new long[m];\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\tlong[][] b = new long[m][];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tb[i] = new long[l];\n\t\t\tfor (int j = 0; j < l; j++) {\n\t\t\t\tb[i][j] = scan.nextInt();\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 c = 0;\n\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\tc += a[i][k] * b[k][j];\n\t\t\t\t}\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tSystem.out.print(c);\n\t\t\t\t} else System.out.print(\" \" + c);\n\t\t\t}\n\t\t\tSystem.out.println();\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 l = scan.nextInt();
long[][] a = new long[n][];
for (int i = 0; i < n; i++) {
a[i] = new long[m];
for (int j = 0; j < m; j++) {
a[i][j] = scan.nextInt();
}
}
long[][] b = new long[m][];
for (int i = 0; i < m; i++) {
b[i] = new long[l];
for (int j = 0; j < l; j++) {
b[i][j] = scan.nextInt();
}
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < l; j++) {
long c = 0;
for (int k = 0; k < m; k++) {
c += a[i][k] * b[k][j];
}
if (j == 0) {
System.out.print(c);
} else System.out.print(" " + c);
}
System.out.println();
}
}
public static void main(String[] args) {
new Main().run();
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.