node_ids
sequencelengths 4
1.4k
| edge_index
sequencelengths 1
2.22k
| text
sequencelengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
4,
13,
23,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
13,
37,
20,
30,
38,
5,
13,
30,
4,
18,
13,
30,
4,
18,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
14,
4,
18,
13,
17,
30,
4,
18,
13,
13,
13,
14,
4,
18,
13,
17,
30,
4,
18,
13,
13,
13,
14,
4,
18,
13,
17,
30,
4,
18,
13,
13,
13,
14,
4,
18,
13,
17,
30,
4,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
17,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
17,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
17,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
17,
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
],
[
267,
20
],
[
267,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
21,
26
],
[
26,
27
],
[
267,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
37,
41
],
[
41,
42
],
[
34,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
44,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
34,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
59,
61
],
[
55,
62
],
[
62,
63
],
[
62,
64
],
[
55,
65
],
[
65,
66
],
[
65,
67
],
[
55,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
74,
75
],
[
55,
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
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
91,
96
],
[
88,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
99,
101
],
[
88,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
107,
108
],
[
107,
109
],
[
88,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
110,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
116,
120
],
[
88,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
121,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
127,
130
],
[
127,
131
],
[
88,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
132,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
138,
141
],
[
138,
142
],
[
88,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
144,
147
],
[
143,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
149,
152
],
[
149,
153
],
[
55,
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
],
[
170,
171
],
[
169,
172
],
[
167,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
174,
179
],
[
179,
180
],
[
179,
181
],
[
55,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
182,
187
],
[
187,
188
],
[
187,
189
],
[
182,
190
],
[
190,
191
],
[
191,
192
],
[
182,
193
],
[
194,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
197,
200
],
[
195,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
202,
207
],
[
207,
208
],
[
207,
209
],
[
55,
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
],
[
226,
227
],
[
225,
228
],
[
223,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
230,
235
],
[
235,
236
],
[
235,
237
],
[
55,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
238,
243
],
[
243,
244
],
[
243,
245
],
[
238,
246
],
[
246,
247
],
[
247,
248
],
[
238,
249
],
[
250,
250
],
[
250,
251
],
[
251,
252
],
[
252,
253
],
[
253,
254
],
[
254,
255
],
[
253,
256
],
[
251,
257
],
[
257,
258
],
[
258,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
258,
263
],
[
263,
264
],
[
263,
265
],
[
0,
266
],
[
266,
267
],
[
266,
268
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.logging.Logger;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tprintAnswer();\n\t}\n\n\tprivate static void printAnswer() {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry {\n\t\t\tMap<Integer ,String> spade = new HashMap<>();\n\t\t\tMap<Integer ,String> heart = new HashMap<>();\n\t\t\tMap<Integer ,String> crub = new HashMap<>();\n\t\t\tMap<Integer ,String> dia = new HashMap<>();\n\t\t\tint numOfCards = Integer.valueOf(br.readLine());\n\t\t\tfor(int i = 0; i < numOfCards; i++){\n\t\t\t\tString[] cardsSet = br.readLine().split(\" \");\n\t\t\t\tString print = cardsSet[0];\n\t\t\t\tint rank = Integer.valueOf(cardsSet[1]);\n\t\t\t\tif(print.equals(\"S\")){\n\t\t\t\t\tspade.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"H\")){\n\t\t\t\t\theart.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"C\")){\n\t\t\t\t\tcrub.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"D\")){\n\t\t\t\t\tdia.put(rank, print);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!spade.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!heart.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!crub.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!dia.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tLogger.getGlobal();\n\t\t\tthrow new RuntimeException(e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tbr.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tLogger.getGlobal();\n\t\t\t}\n\t\t}\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.Map;",
"Map",
"java.util",
"import java.util.logging.Logger;",
"Logger",
"java.util.logging",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tprintAnswer();\n\t}\n\n\tprivate static void printAnswer() {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry {\n\t\t\tMap<Integer ,String> spade = new HashMap<>();\n\t\t\tMap<Integer ,String> heart = new HashMap<>();\n\t\t\tMap<Integer ,String> crub = new HashMap<>();\n\t\t\tMap<Integer ,String> dia = new HashMap<>();\n\t\t\tint numOfCards = Integer.valueOf(br.readLine());\n\t\t\tfor(int i = 0; i < numOfCards; i++){\n\t\t\t\tString[] cardsSet = br.readLine().split(\" \");\n\t\t\t\tString print = cardsSet[0];\n\t\t\t\tint rank = Integer.valueOf(cardsSet[1]);\n\t\t\t\tif(print.equals(\"S\")){\n\t\t\t\t\tspade.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"H\")){\n\t\t\t\t\theart.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"C\")){\n\t\t\t\t\tcrub.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"D\")){\n\t\t\t\t\tdia.put(rank, print);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!spade.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!heart.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!crub.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!dia.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tLogger.getGlobal();\n\t\t\tthrow new RuntimeException(e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tbr.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tLogger.getGlobal();\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tprintAnswer();\n\t}",
"main",
"{\n\t\tprintAnswer();\n\t}",
"printAnswer()",
"printAnswer",
"String[] args",
"args",
"private static void printAnswer() {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry {\n\t\t\tMap<Integer ,String> spade = new HashMap<>();\n\t\t\tMap<Integer ,String> heart = new HashMap<>();\n\t\t\tMap<Integer ,String> crub = new HashMap<>();\n\t\t\tMap<Integer ,String> dia = new HashMap<>();\n\t\t\tint numOfCards = Integer.valueOf(br.readLine());\n\t\t\tfor(int i = 0; i < numOfCards; i++){\n\t\t\t\tString[] cardsSet = br.readLine().split(\" \");\n\t\t\t\tString print = cardsSet[0];\n\t\t\t\tint rank = Integer.valueOf(cardsSet[1]);\n\t\t\t\tif(print.equals(\"S\")){\n\t\t\t\t\tspade.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"H\")){\n\t\t\t\t\theart.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"C\")){\n\t\t\t\t\tcrub.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"D\")){\n\t\t\t\t\tdia.put(rank, print);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!spade.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!heart.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!crub.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!dia.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tLogger.getGlobal();\n\t\t\tthrow new RuntimeException(e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tbr.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tLogger.getGlobal();\n\t\t\t}\n\t\t}\n\t}",
"printAnswer",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry {\n\t\t\tMap<Integer ,String> spade = new HashMap<>();\n\t\t\tMap<Integer ,String> heart = new HashMap<>();\n\t\t\tMap<Integer ,String> crub = new HashMap<>();\n\t\t\tMap<Integer ,String> dia = new HashMap<>();\n\t\t\tint numOfCards = Integer.valueOf(br.readLine());\n\t\t\tfor(int i = 0; i < numOfCards; i++){\n\t\t\t\tString[] cardsSet = br.readLine().split(\" \");\n\t\t\t\tString print = cardsSet[0];\n\t\t\t\tint rank = Integer.valueOf(cardsSet[1]);\n\t\t\t\tif(print.equals(\"S\")){\n\t\t\t\t\tspade.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"H\")){\n\t\t\t\t\theart.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"C\")){\n\t\t\t\t\tcrub.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"D\")){\n\t\t\t\t\tdia.put(rank, print);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!spade.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!heart.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!crub.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!dia.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tLogger.getGlobal();\n\t\t\tthrow new RuntimeException(e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tbr.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tLogger.getGlobal();\n\t\t\t}\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"try {\n\t\t\tMap<Integer ,String> spade = new HashMap<>();\n\t\t\tMap<Integer ,String> heart = new HashMap<>();\n\t\t\tMap<Integer ,String> crub = new HashMap<>();\n\t\t\tMap<Integer ,String> dia = new HashMap<>();\n\t\t\tint numOfCards = Integer.valueOf(br.readLine());\n\t\t\tfor(int i = 0; i < numOfCards; i++){\n\t\t\t\tString[] cardsSet = br.readLine().split(\" \");\n\t\t\t\tString print = cardsSet[0];\n\t\t\t\tint rank = Integer.valueOf(cardsSet[1]);\n\t\t\t\tif(print.equals(\"S\")){\n\t\t\t\t\tspade.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"H\")){\n\t\t\t\t\theart.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"C\")){\n\t\t\t\t\tcrub.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"D\")){\n\t\t\t\t\tdia.put(rank, print);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!spade.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!heart.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!crub.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!dia.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tLogger.getGlobal();\n\t\t\tthrow new RuntimeException(e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tbr.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tLogger.getGlobal();\n\t\t\t}\n\t\t}",
"catch (IOException e) {\n\t\t\tLogger.getGlobal();\n\t\t\tthrow new RuntimeException(e);\n\t\t}",
"IOException e",
"{\n\t\t\tLogger.getGlobal();\n\t\t\tthrow new RuntimeException(e);\n\t\t}",
"Logger.getGlobal()",
"Logger.getGlobal",
"Logger",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n\t\t\ttry {\n\t\t\t\tbr.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tLogger.getGlobal();\n\t\t\t}\n\t\t}",
"try {\n\t\t\t\tbr.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tLogger.getGlobal();\n\t\t\t}",
"catch (IOException e) {\n\t\t\t\tLogger.getGlobal();\n\t\t\t}",
"IOException e",
"{\n\t\t\t\tLogger.getGlobal();\n\t\t\t}",
"Logger.getGlobal()",
"Logger.getGlobal",
"Logger",
"{\n\t\t\t\tbr.close();\n\t\t\t}",
"br.close()",
"br.close",
"br",
"{\n\t\t\tMap<Integer ,String> spade = new HashMap<>();\n\t\t\tMap<Integer ,String> heart = new HashMap<>();\n\t\t\tMap<Integer ,String> crub = new HashMap<>();\n\t\t\tMap<Integer ,String> dia = new HashMap<>();\n\t\t\tint numOfCards = Integer.valueOf(br.readLine());\n\t\t\tfor(int i = 0; i < numOfCards; i++){\n\t\t\t\tString[] cardsSet = br.readLine().split(\" \");\n\t\t\t\tString print = cardsSet[0];\n\t\t\t\tint rank = Integer.valueOf(cardsSet[1]);\n\t\t\t\tif(print.equals(\"S\")){\n\t\t\t\t\tspade.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"H\")){\n\t\t\t\t\theart.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"C\")){\n\t\t\t\t\tcrub.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"D\")){\n\t\t\t\t\tdia.put(rank, print);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!spade.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!heart.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!crub.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!dia.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}",
"Map<Integer ,String> spade = new HashMap<>();",
"spade",
"new HashMap<>()",
"Map<Integer ,String> heart = new HashMap<>();",
"heart",
"new HashMap<>()",
"Map<Integer ,String> crub = new HashMap<>();",
"crub",
"new HashMap<>()",
"Map<Integer ,String> dia = new HashMap<>();",
"dia",
"new HashMap<>()",
"int numOfCards = Integer.valueOf(br.readLine());",
"numOfCards",
"Integer.valueOf(br.readLine())",
"Integer.valueOf",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int i = 0; i < numOfCards; i++){\n\t\t\t\tString[] cardsSet = br.readLine().split(\" \");\n\t\t\t\tString print = cardsSet[0];\n\t\t\t\tint rank = Integer.valueOf(cardsSet[1]);\n\t\t\t\tif(print.equals(\"S\")){\n\t\t\t\t\tspade.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"H\")){\n\t\t\t\t\theart.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"C\")){\n\t\t\t\t\tcrub.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"D\")){\n\t\t\t\t\tdia.put(rank, print);\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < numOfCards",
"i",
"numOfCards",
"i++",
"i++",
"i",
"{\n\t\t\t\tString[] cardsSet = br.readLine().split(\" \");\n\t\t\t\tString print = cardsSet[0];\n\t\t\t\tint rank = Integer.valueOf(cardsSet[1]);\n\t\t\t\tif(print.equals(\"S\")){\n\t\t\t\t\tspade.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"H\")){\n\t\t\t\t\theart.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"C\")){\n\t\t\t\t\tcrub.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"D\")){\n\t\t\t\t\tdia.put(rank, print);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tString[] cardsSet = br.readLine().split(\" \");\n\t\t\t\tString print = cardsSet[0];\n\t\t\t\tint rank = Integer.valueOf(cardsSet[1]);\n\t\t\t\tif(print.equals(\"S\")){\n\t\t\t\t\tspade.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"H\")){\n\t\t\t\t\theart.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"C\")){\n\t\t\t\t\tcrub.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"D\")){\n\t\t\t\t\tdia.put(rank, print);\n\t\t\t\t}\n\t\t\t}",
"String[] cardsSet = br.readLine().split(\" \");",
"cardsSet",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"String print = cardsSet[0];",
"print",
"cardsSet[0]",
"cardsSet",
"0",
"int rank = Integer.valueOf(cardsSet[1]);",
"rank",
"Integer.valueOf(cardsSet[1])",
"Integer.valueOf",
"Integer",
"cardsSet[1]",
"cardsSet",
"1",
"if(print.equals(\"S\")){\n\t\t\t\t\tspade.put(rank, print);\n\t\t\t\t}",
"print.equals(\"S\")",
"print.equals",
"print",
"\"S\"",
"{\n\t\t\t\t\tspade.put(rank, print);\n\t\t\t\t}",
"spade.put(rank, print)",
"spade.put",
"spade",
"rank",
"print",
"if(print.equals(\"H\")){\n\t\t\t\t\theart.put(rank, print);\n\t\t\t\t}",
"print.equals(\"H\")",
"print.equals",
"print",
"\"H\"",
"{\n\t\t\t\t\theart.put(rank, print);\n\t\t\t\t}",
"heart.put(rank, print)",
"heart.put",
"heart",
"rank",
"print",
"if(print.equals(\"C\")){\n\t\t\t\t\tcrub.put(rank, print);\n\t\t\t\t}",
"print.equals(\"C\")",
"print.equals",
"print",
"\"C\"",
"{\n\t\t\t\t\tcrub.put(rank, print);\n\t\t\t\t}",
"crub.put(rank, print)",
"crub.put",
"crub",
"rank",
"print",
"if(print.equals(\"D\")){\n\t\t\t\t\tdia.put(rank, print);\n\t\t\t\t}",
"print.equals(\"D\")",
"print.equals",
"print",
"\"D\"",
"{\n\t\t\t\t\tdia.put(rank, print);\n\t\t\t\t}",
"dia.put(rank, print)",
"dia.put",
"dia",
"rank",
"print",
"for(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!spade.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t\t}\n\t\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < 14",
"i",
"14",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(!spade.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(!spade.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t\t}\n\t\t\t}",
"if(!spade.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t\t}",
"!spade.containsKey(i)",
"spade.containsKey(i)",
"spade.containsKey",
"spade",
"i",
"{\n\t\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t\t}",
"System.out.println(\"S \" + i)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \" + i",
"\"S \"",
"i",
"for(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!heart.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t\t}\n\t\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < 14",
"i",
"14",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(!heart.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(!heart.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t\t}\n\t\t\t}",
"if(!heart.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t\t}",
"!heart.containsKey(i)",
"heart.containsKey(i)",
"heart.containsKey",
"heart",
"i",
"{\n\t\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t\t}",
"System.out.println(\"H \" + i)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \" + i",
"\"H \"",
"i",
"for(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!crub.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t\t}\n\t\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < 14",
"i",
"14",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(!crub.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(!crub.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t\t}\n\t\t\t}",
"if(!crub.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t\t}",
"!crub.containsKey(i)",
"crub.containsKey(i)",
"crub.containsKey",
"crub",
"i",
"{\n\t\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t\t}",
"System.out.println(\"C \" + i)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \" + i",
"\"C \"",
"i",
"for(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!dia.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t\t}\n\t\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < 14",
"i",
"14",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(!dia.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(!dia.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t\t}\n\t\t\t}",
"if(!dia.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t\t}",
"!dia.containsKey(i)",
"dia.containsKey(i)",
"dia.containsKey",
"dia",
"i",
"{\n\t\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t\t}",
"System.out.println(\"D \" + i)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \" + i",
"\"D \"",
"i",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tprintAnswer();\n\t}\n\n\tprivate static void printAnswer() {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry {\n\t\t\tMap<Integer ,String> spade = new HashMap<>();\n\t\t\tMap<Integer ,String> heart = new HashMap<>();\n\t\t\tMap<Integer ,String> crub = new HashMap<>();\n\t\t\tMap<Integer ,String> dia = new HashMap<>();\n\t\t\tint numOfCards = Integer.valueOf(br.readLine());\n\t\t\tfor(int i = 0; i < numOfCards; i++){\n\t\t\t\tString[] cardsSet = br.readLine().split(\" \");\n\t\t\t\tString print = cardsSet[0];\n\t\t\t\tint rank = Integer.valueOf(cardsSet[1]);\n\t\t\t\tif(print.equals(\"S\")){\n\t\t\t\t\tspade.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"H\")){\n\t\t\t\t\theart.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"C\")){\n\t\t\t\t\tcrub.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"D\")){\n\t\t\t\t\tdia.put(rank, print);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!spade.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!heart.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!crub.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!dia.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tLogger.getGlobal();\n\t\t\tthrow new RuntimeException(e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tbr.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tLogger.getGlobal();\n\t\t\t}\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tprintAnswer();\n\t}\n\n\tprivate static void printAnswer() {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry {\n\t\t\tMap<Integer ,String> spade = new HashMap<>();\n\t\t\tMap<Integer ,String> heart = new HashMap<>();\n\t\t\tMap<Integer ,String> crub = new HashMap<>();\n\t\t\tMap<Integer ,String> dia = new HashMap<>();\n\t\t\tint numOfCards = Integer.valueOf(br.readLine());\n\t\t\tfor(int i = 0; i < numOfCards; i++){\n\t\t\t\tString[] cardsSet = br.readLine().split(\" \");\n\t\t\t\tString print = cardsSet[0];\n\t\t\t\tint rank = Integer.valueOf(cardsSet[1]);\n\t\t\t\tif(print.equals(\"S\")){\n\t\t\t\t\tspade.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"H\")){\n\t\t\t\t\theart.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"C\")){\n\t\t\t\t\tcrub.put(rank, print);\n\t\t\t\t}\n\t\t\t\tif(print.equals(\"D\")){\n\t\t\t\t\tdia.put(rank, print);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!spade.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!heart.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!crub.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i < 14 ; i++){\n\t\t\t\tif(!dia.containsKey(i)){\n\t\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tLogger.getGlobal();\n\t\t\tthrow new RuntimeException(e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tbr.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tLogger.getGlobal();\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Logger;
public class Main {
public static void main(String[] args) {
printAnswer();
}
private static void printAnswer() {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
Map<Integer ,String> spade = new HashMap<>();
Map<Integer ,String> heart = new HashMap<>();
Map<Integer ,String> crub = new HashMap<>();
Map<Integer ,String> dia = new HashMap<>();
int numOfCards = Integer.valueOf(br.readLine());
for(int i = 0; i < numOfCards; i++){
String[] cardsSet = br.readLine().split(" ");
String print = cardsSet[0];
int rank = Integer.valueOf(cardsSet[1]);
if(print.equals("S")){
spade.put(rank, print);
}
if(print.equals("H")){
heart.put(rank, print);
}
if(print.equals("C")){
crub.put(rank, print);
}
if(print.equals("D")){
dia.put(rank, print);
}
}
for(int i = 1; i < 14 ; i++){
if(!spade.containsKey(i)){
System.out.println("S " + i);
}
}
for(int i = 1; i < 14 ; i++){
if(!heart.containsKey(i)){
System.out.println("H " + i);
}
}
for(int i = 1; i < 14 ; i++){
if(!crub.containsKey(i)){
System.out.println("C " + i);
}
}
for(int i = 1; i < 14 ; i++){
if(!dia.containsKey(i)){
System.out.println("D " + i);
}
}
} catch (IOException e) {
Logger.getGlobal();
throw new RuntimeException(e);
} finally {
try {
br.close();
} catch (IOException e) {
Logger.getGlobal();
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
2,
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
],
[
13,
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
],
[
20,
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
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
49,
54
],
[
46,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
46,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
46,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
84,
86
],
[
79,
87
],
[
46,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
98,
100
],
[
93,
101
],
[
46,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
112,
113
],
[
112,
114
],
[
107,
115
],
[
20,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
121,
122
],
[
121,
123
],
[
116,
124
],
[
124,
125
],
[
125,
126
],
[
116,
127
],
[
128,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
129,
137
],
[
137,
138
],
[
138,
139
],
[
129,
140
],
[
141,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
142,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
150,
155
],
[
156,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
156,
161
],
[
161,
162
],
[
161,
163
],
[
18,
164
],
[
164,
165
]
] | [
"import java.awt.*;\nimport java.awt.geom.*;\nimport java.io.*;\n\nimport java.util.*;\nclass Main {\n\n\tstatic char[] xx = new char[] {'S','H','C','D'};\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tboolean[][] l = new boolean[4][13];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tchar k = sc.next().charAt(0);\n\t\t\tint r = sc.nextInt();\n\t\t\tif(k == 'S') {\n\t\t\t\tl[0][r-1] = true;\n\t\t\t}\n\t\t\tif(k == 'H') {\n\t\t\t\tl[1][r-1] = true;\n\t\t\t}\n\t\t\tif(k == 'C') {\n\t\t\t\tl[2][r-1] = true;\n\t\t\t}\n\t\t\tif(k == 'D') {\n\t\t\t\tl[3][r-1] = true;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0 ; i< 4; i++) {\n\t\t\tfor(int j = 0; j < 13; j++) {\n\t\t\t\tif(!l[i][j]) {\n\t\t\t\t\tSystem.out.println(xx[i] + \" \" + (j+1));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.awt.*;",
"awt.*",
"java",
"import java.awt.geom.*;",
"geom.*",
"java.awt",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"class Main {\n\n\tstatic char[] xx = new char[] {'S','H','C','D'};\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tboolean[][] l = new boolean[4][13];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tchar k = sc.next().charAt(0);\n\t\t\tint r = sc.nextInt();\n\t\t\tif(k == 'S') {\n\t\t\t\tl[0][r-1] = true;\n\t\t\t}\n\t\t\tif(k == 'H') {\n\t\t\t\tl[1][r-1] = true;\n\t\t\t}\n\t\t\tif(k == 'C') {\n\t\t\t\tl[2][r-1] = true;\n\t\t\t}\n\t\t\tif(k == 'D') {\n\t\t\t\tl[3][r-1] = true;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0 ; i< 4; i++) {\n\t\t\tfor(int j = 0; j < 13; j++) {\n\t\t\t\tif(!l[i][j]) {\n\t\t\t\t\tSystem.out.println(xx[i] + \" \" + (j+1));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"static char[] xx = new char[] {'S','H','C','D'};",
"xx",
"new char[] {'S','H','C','D'}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tboolean[][] l = new boolean[4][13];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tchar k = sc.next().charAt(0);\n\t\t\tint r = sc.nextInt();\n\t\t\tif(k == 'S') {\n\t\t\t\tl[0][r-1] = true;\n\t\t\t}\n\t\t\tif(k == 'H') {\n\t\t\t\tl[1][r-1] = true;\n\t\t\t}\n\t\t\tif(k == 'C') {\n\t\t\t\tl[2][r-1] = true;\n\t\t\t}\n\t\t\tif(k == 'D') {\n\t\t\t\tl[3][r-1] = true;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0 ; i< 4; i++) {\n\t\t\tfor(int j = 0; j < 13; j++) {\n\t\t\t\tif(!l[i][j]) {\n\t\t\t\t\tSystem.out.println(xx[i] + \" \" + (j+1));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tboolean[][] l = new boolean[4][13];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tchar k = sc.next().charAt(0);\n\t\t\tint r = sc.nextInt();\n\t\t\tif(k == 'S') {\n\t\t\t\tl[0][r-1] = true;\n\t\t\t}\n\t\t\tif(k == 'H') {\n\t\t\t\tl[1][r-1] = true;\n\t\t\t}\n\t\t\tif(k == 'C') {\n\t\t\t\tl[2][r-1] = true;\n\t\t\t}\n\t\t\tif(k == 'D') {\n\t\t\t\tl[3][r-1] = true;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0 ; i< 4; i++) {\n\t\t\tfor(int j = 0; j < 13; j++) {\n\t\t\t\tif(!l[i][j]) {\n\t\t\t\t\tSystem.out.println(xx[i] + \" \" + (j+1));\n\t\t\t\t}\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",
"boolean[][] l = new boolean[4][13];",
"l",
"new boolean[4][13]",
"4",
"13",
"for(int i = 0; i < n; i++) {\n\t\t\tchar k = sc.next().charAt(0);\n\t\t\tint r = sc.nextInt();\n\t\t\tif(k == 'S') {\n\t\t\t\tl[0][r-1] = true;\n\t\t\t}\n\t\t\tif(k == 'H') {\n\t\t\t\tl[1][r-1] = true;\n\t\t\t}\n\t\t\tif(k == 'C') {\n\t\t\t\tl[2][r-1] = true;\n\t\t\t}\n\t\t\tif(k == 'D') {\n\t\t\t\tl[3][r-1] = true;\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\tchar k = sc.next().charAt(0);\n\t\t\tint r = sc.nextInt();\n\t\t\tif(k == 'S') {\n\t\t\t\tl[0][r-1] = true;\n\t\t\t}\n\t\t\tif(k == 'H') {\n\t\t\t\tl[1][r-1] = true;\n\t\t\t}\n\t\t\tif(k == 'C') {\n\t\t\t\tl[2][r-1] = true;\n\t\t\t}\n\t\t\tif(k == 'D') {\n\t\t\t\tl[3][r-1] = true;\n\t\t\t}\n\t\t}",
"{\n\t\t\tchar k = sc.next().charAt(0);\n\t\t\tint r = sc.nextInt();\n\t\t\tif(k == 'S') {\n\t\t\t\tl[0][r-1] = true;\n\t\t\t}\n\t\t\tif(k == 'H') {\n\t\t\t\tl[1][r-1] = true;\n\t\t\t}\n\t\t\tif(k == 'C') {\n\t\t\t\tl[2][r-1] = true;\n\t\t\t}\n\t\t\tif(k == 'D') {\n\t\t\t\tl[3][r-1] = true;\n\t\t\t}\n\t\t}",
"char k = sc.next().charAt(0);",
"k",
"sc.next().charAt(0)",
"sc.next().charAt",
"sc.next()",
"sc.next",
"sc",
"0",
"int r = sc.nextInt();",
"r",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(k == 'S') {\n\t\t\t\tl[0][r-1] = true;\n\t\t\t}",
"k == 'S'",
"k",
"'S'",
"{\n\t\t\t\tl[0][r-1] = true;\n\t\t\t}",
"l[0][r-1] = true",
"l[0][r-1]",
"l[0]",
"l",
"0",
"r-1",
"r",
"1",
"true",
"if(k == 'H') {\n\t\t\t\tl[1][r-1] = true;\n\t\t\t}",
"k == 'H'",
"k",
"'H'",
"{\n\t\t\t\tl[1][r-1] = true;\n\t\t\t}",
"l[1][r-1] = true",
"l[1][r-1]",
"l[1]",
"l",
"1",
"r-1",
"r",
"1",
"true",
"if(k == 'C') {\n\t\t\t\tl[2][r-1] = true;\n\t\t\t}",
"k == 'C'",
"k",
"'C'",
"{\n\t\t\t\tl[2][r-1] = true;\n\t\t\t}",
"l[2][r-1] = true",
"l[2][r-1]",
"l[2]",
"l",
"2",
"r-1",
"r",
"1",
"true",
"if(k == 'D') {\n\t\t\t\tl[3][r-1] = true;\n\t\t\t}",
"k == 'D'",
"k",
"'D'",
"{\n\t\t\t\tl[3][r-1] = true;\n\t\t\t}",
"l[3][r-1] = true",
"l[3][r-1]",
"l[3]",
"l",
"3",
"r-1",
"r",
"1",
"true",
"for(int i = 0 ; i< 4; i++) {\n\t\t\tfor(int j = 0; j < 13; j++) {\n\t\t\t\tif(!l[i][j]) {\n\t\t\t\t\tSystem.out.println(xx[i] + \" \" + (j+1));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i< 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < 13; j++) {\n\t\t\t\tif(!l[i][j]) {\n\t\t\t\t\tSystem.out.println(xx[i] + \" \" + (j+1));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < 13; j++) {\n\t\t\t\tif(!l[i][j]) {\n\t\t\t\t\tSystem.out.println(xx[i] + \" \" + (j+1));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int j = 0; j < 13; j++) {\n\t\t\t\tif(!l[i][j]) {\n\t\t\t\t\tSystem.out.println(xx[i] + \" \" + (j+1));\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(!l[i][j]) {\n\t\t\t\t\tSystem.out.println(xx[i] + \" \" + (j+1));\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(!l[i][j]) {\n\t\t\t\t\tSystem.out.println(xx[i] + \" \" + (j+1));\n\t\t\t\t}\n\t\t\t}",
"if(!l[i][j]) {\n\t\t\t\t\tSystem.out.println(xx[i] + \" \" + (j+1));\n\t\t\t\t}",
"!l[i][j]",
"l[i][j]",
"l[i]",
"l",
"i",
"j",
"{\n\t\t\t\t\tSystem.out.println(xx[i] + \" \" + (j+1));\n\t\t\t\t}",
"System.out.println(xx[i] + \" \" + (j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"xx[i] + \" \" + (j+1)",
"xx[i] + \" \" + (j+1)",
"xx[i]",
"xx",
"i",
"\" \"",
"(j+1)",
"j",
"1",
"String[] args",
"args"
] | import java.awt.*;
import java.awt.geom.*;
import java.io.*;
import java.util.*;
class Main {
static char[] xx = new char[] {'S','H','C','D'};
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
boolean[][] l = new boolean[4][13];
for(int i = 0; i < n; i++) {
char k = sc.next().charAt(0);
int r = sc.nextInt();
if(k == 'S') {
l[0][r-1] = true;
}
if(k == 'H') {
l[1][r-1] = true;
}
if(k == 'C') {
l[2][r-1] = true;
}
if(k == 'D') {
l[3][r-1] = true;
}
}
for(int i = 0 ; i< 4; i++) {
for(int j = 0; j < 13; j++) {
if(!l[i][j]) {
System.out.println(xx[i] + " " + (j+1));
}
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
39,
17,
17,
17,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
2,
2,
18,
13,
13,
17,
4,
18,
13,
13,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
42,
2,
13,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
13,
40,
13,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
114,
14
],
[
114,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
20,
22
],
[
20,
23
],
[
20,
24
],
[
17,
25
],
[
25,
26
],
[
25,
27
],
[
17,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
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
],
[
54,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
58,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
17,
67
],
[
67,
68
],
[
67,
69
],
[
17,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
76,
77
],
[
17,
78
],
[
78,
79
],
[
78,
80
],
[
17,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
85,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
85,
98
],
[
98,
99
],
[
17,
100
],
[
100,
101
],
[
100,
102
],
[
100,
103
],
[
104,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
15,
111
],
[
111,
112
],
[
0,
113
],
[
113,
114
],
[
113,
115
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tString[] card= {\"S\",\"H\",\"C\",\"D\"};\n\t\tArrayList<String> list=new ArrayList<String>();\n\t\tfor(int j=0;j<=3;j++) {\n\t\t\tfor(int i=1;i<=13;i++) {\n\t\t\t\tlist.add(card[j]+\" \"+String.valueOf(i));\n\t\t\t}\n\t\t}\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=Integer.parseInt(br.readLine());\n\t\tint count=0;\n\n\t\twhile(n>count) {\n\t\t\tString m=br.readLine();\n\t\t\tlist.remove(list.indexOf(m));\n\t\t\tcount++;\n\t\t}\n\n\t\tfor(String checked:list) {\n\t\t\tSystem.out.println(checked);\n\t\t}\n\t}\n\n}\n",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tString[] card= {\"S\",\"H\",\"C\",\"D\"};\n\t\tArrayList<String> list=new ArrayList<String>();\n\t\tfor(int j=0;j<=3;j++) {\n\t\t\tfor(int i=1;i<=13;i++) {\n\t\t\t\tlist.add(card[j]+\" \"+String.valueOf(i));\n\t\t\t}\n\t\t}\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=Integer.parseInt(br.readLine());\n\t\tint count=0;\n\n\t\twhile(n>count) {\n\t\t\tString m=br.readLine();\n\t\t\tlist.remove(list.indexOf(m));\n\t\t\tcount++;\n\t\t}\n\n\t\tfor(String checked:list) {\n\t\t\tSystem.out.println(checked);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tString[] card= {\"S\",\"H\",\"C\",\"D\"};\n\t\tArrayList<String> list=new ArrayList<String>();\n\t\tfor(int j=0;j<=3;j++) {\n\t\t\tfor(int i=1;i<=13;i++) {\n\t\t\t\tlist.add(card[j]+\" \"+String.valueOf(i));\n\t\t\t}\n\t\t}\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=Integer.parseInt(br.readLine());\n\t\tint count=0;\n\n\t\twhile(n>count) {\n\t\t\tString m=br.readLine();\n\t\t\tlist.remove(list.indexOf(m));\n\t\t\tcount++;\n\t\t}\n\n\t\tfor(String checked:list) {\n\t\t\tSystem.out.println(checked);\n\t\t}\n\t}",
"main",
"{\n\t\tString[] card= {\"S\",\"H\",\"C\",\"D\"};\n\t\tArrayList<String> list=new ArrayList<String>();\n\t\tfor(int j=0;j<=3;j++) {\n\t\t\tfor(int i=1;i<=13;i++) {\n\t\t\t\tlist.add(card[j]+\" \"+String.valueOf(i));\n\t\t\t}\n\t\t}\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=Integer.parseInt(br.readLine());\n\t\tint count=0;\n\n\t\twhile(n>count) {\n\t\t\tString m=br.readLine();\n\t\t\tlist.remove(list.indexOf(m));\n\t\t\tcount++;\n\t\t}\n\n\t\tfor(String checked:list) {\n\t\t\tSystem.out.println(checked);\n\t\t}\n\t}",
"String[] card= {\"S\",\"H\",\"C\",\"D\"};",
"card",
"{\"S\",\"H\",\"C\",\"D\"}",
"\"S\"",
"\"H\"",
"\"C\"",
"\"D\"",
"ArrayList<String> list=new ArrayList<String>();",
"list",
"new ArrayList<String>()",
"for(int j=0;j<=3;j++) {\n\t\t\tfor(int i=1;i<=13;i++) {\n\t\t\t\tlist.add(card[j]+\" \"+String.valueOf(i));\n\t\t\t}\n\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<=3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\tfor(int i=1;i<=13;i++) {\n\t\t\t\tlist.add(card[j]+\" \"+String.valueOf(i));\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int i=1;i<=13;i++) {\n\t\t\t\tlist.add(card[j]+\" \"+String.valueOf(i));\n\t\t\t}\n\t\t}",
"for(int i=1;i<=13;i++) {\n\t\t\t\tlist.add(card[j]+\" \"+String.valueOf(i));\n\t\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\t\tlist.add(card[j]+\" \"+String.valueOf(i));\n\t\t\t}",
"{\n\t\t\t\tlist.add(card[j]+\" \"+String.valueOf(i));\n\t\t\t}",
"list.add(card[j]+\" \"+String.valueOf(i))",
"list.add",
"list",
"card[j]+\" \"+String.valueOf(i)",
"card[j]+\" \"+String.valueOf(i)",
"card[j]",
"card",
"j",
"\" \"",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n=Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int count=0;",
"count",
"0",
"while(n>count) {\n\t\t\tString m=br.readLine();\n\t\t\tlist.remove(list.indexOf(m));\n\t\t\tcount++;\n\t\t}",
"n>count",
"n",
"count",
"{\n\t\t\tString m=br.readLine();\n\t\t\tlist.remove(list.indexOf(m));\n\t\t\tcount++;\n\t\t}",
"String m=br.readLine();",
"m",
"br.readLine()",
"br.readLine",
"br",
"list.remove(list.indexOf(m))",
"list.remove",
"list",
"list.indexOf(m)",
"list.indexOf",
"list",
"m",
"count++",
"count",
"for(String checked:list) {\n\t\t\tSystem.out.println(checked);\n\t\t}",
"String checked",
"list",
"{\n\t\t\tSystem.out.println(checked);\n\t\t}",
"{\n\t\t\tSystem.out.println(checked);\n\t\t}",
"System.out.println(checked)",
"System.out.println",
"System.out",
"System",
"System.out",
"checked",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tString[] card= {\"S\",\"H\",\"C\",\"D\"};\n\t\tArrayList<String> list=new ArrayList<String>();\n\t\tfor(int j=0;j<=3;j++) {\n\t\t\tfor(int i=1;i<=13;i++) {\n\t\t\t\tlist.add(card[j]+\" \"+String.valueOf(i));\n\t\t\t}\n\t\t}\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=Integer.parseInt(br.readLine());\n\t\tint count=0;\n\n\t\twhile(n>count) {\n\t\t\tString m=br.readLine();\n\t\t\tlist.remove(list.indexOf(m));\n\t\t\tcount++;\n\t\t}\n\n\t\tfor(String checked:list) {\n\t\t\tSystem.out.println(checked);\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tString[] card= {\"S\",\"H\",\"C\",\"D\"};\n\t\tArrayList<String> list=new ArrayList<String>();\n\t\tfor(int j=0;j<=3;j++) {\n\t\t\tfor(int i=1;i<=13;i++) {\n\t\t\t\tlist.add(card[j]+\" \"+String.valueOf(i));\n\t\t\t}\n\t\t}\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=Integer.parseInt(br.readLine());\n\t\tint count=0;\n\n\t\twhile(n>count) {\n\t\t\tString m=br.readLine();\n\t\t\tlist.remove(list.indexOf(m));\n\t\t\tcount++;\n\t\t}\n\n\t\tfor(String checked:list) {\n\t\t\tSystem.out.println(checked);\n\t\t}\n\t}\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) throws IOException {
String[] card= {"S","H","C","D"};
ArrayList<String> list=new ArrayList<String>();
for(int j=0;j<=3;j++) {
for(int i=1;i<=13;i++) {
list.add(card[j]+" "+String.valueOf(i));
}
}
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n=Integer.parseInt(br.readLine());
int count=0;
while(n>count) {
String m=br.readLine();
list.remove(list.indexOf(m));
count++;
}
for(String checked:list) {
System.out.println(checked);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
39,
17,
17,
17,
17,
41,
13,
20,
17,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
18,
13,
13,
30,
0,
18,
18,
13,
13,
2,
13,
17,
17,
3,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
2,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
14,
17
],
[
14,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
44,
49
],
[
41,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
41,
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
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
80,
82
],
[
75,
83
],
[
74,
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
],
[
110,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
111,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
124,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
124,
129
],
[
129,
130
],
[
129,
131
],
[
6,
132
],
[
132,
133
]
] | [
"import java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tfinal char[] SUIT = {'S', 'H', 'C', 'D'};\n\t\tboolean[][] taroHas = new boolean[4][13];\n\t\tint n = scanner.nextInt();\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tchar s = scanner.next().charAt(0);\n\t\t\tint r = scanner.nextInt();\n\t\t\t\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tif (s == SUIT[j]) {\n\t\t\t\t\ttaroHas[j][r - 1] = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (!taroHas[i][j])\n\t\t\t\t\tSystem.out.println(SUIT[i] + \" \" + (j + 1));\n\t\t\t}\n\t\t}\n\t}\n\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tfinal char[] SUIT = {'S', 'H', 'C', 'D'};\n\t\tboolean[][] taroHas = new boolean[4][13];\n\t\tint n = scanner.nextInt();\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tchar s = scanner.next().charAt(0);\n\t\t\tint r = scanner.nextInt();\n\t\t\t\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tif (s == SUIT[j]) {\n\t\t\t\t\ttaroHas[j][r - 1] = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (!taroHas[i][j])\n\t\t\t\t\tSystem.out.println(SUIT[i] + \" \" + (j + 1));\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tfinal char[] SUIT = {'S', 'H', 'C', 'D'};\n\t\tboolean[][] taroHas = new boolean[4][13];\n\t\tint n = scanner.nextInt();\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tchar s = scanner.next().charAt(0);\n\t\t\tint r = scanner.nextInt();\n\t\t\t\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tif (s == SUIT[j]) {\n\t\t\t\t\ttaroHas[j][r - 1] = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (!taroHas[i][j])\n\t\t\t\t\tSystem.out.println(SUIT[i] + \" \" + (j + 1));\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tfinal char[] SUIT = {'S', 'H', 'C', 'D'};\n\t\tboolean[][] taroHas = new boolean[4][13];\n\t\tint n = scanner.nextInt();\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tchar s = scanner.next().charAt(0);\n\t\t\tint r = scanner.nextInt();\n\t\t\t\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tif (s == SUIT[j]) {\n\t\t\t\t\ttaroHas[j][r - 1] = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (!taroHas[i][j])\n\t\t\t\t\tSystem.out.println(SUIT[i] + \" \" + (j + 1));\n\t\t\t}\n\t\t}\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"final char[] SUIT = {'S', 'H', 'C', 'D'};",
"SUIT",
"{'S', 'H', 'C', 'D'}",
"'S'",
"'H'",
"'C'",
"'D'",
"boolean[][] taroHas = new boolean[4][13];",
"taroHas",
"new boolean[4][13]",
"4",
"13",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for (int i = 0; i < n; i++) {\n\t\t\tchar s = scanner.next().charAt(0);\n\t\t\tint r = scanner.nextInt();\n\t\t\t\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tif (s == SUIT[j]) {\n\t\t\t\t\ttaroHas[j][r - 1] = true;\n\t\t\t\t\tbreak;\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\tchar s = scanner.next().charAt(0);\n\t\t\tint r = scanner.nextInt();\n\t\t\t\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tif (s == SUIT[j]) {\n\t\t\t\t\ttaroHas[j][r - 1] = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tchar s = scanner.next().charAt(0);\n\t\t\tint r = scanner.nextInt();\n\t\t\t\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tif (s == SUIT[j]) {\n\t\t\t\t\ttaroHas[j][r - 1] = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"char s = scanner.next().charAt(0);",
"s",
"scanner.next().charAt(0)",
"scanner.next().charAt",
"scanner.next()",
"scanner.next",
"scanner",
"0",
"int r = scanner.nextInt();",
"r",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for (int j = 0; j < 4; j++) {\n\t\t\t\tif (s == SUIT[j]) {\n\t\t\t\t\ttaroHas[j][r - 1] = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 4",
"j",
"4",
"j++",
"j++",
"j",
"{\n\t\t\t\tif (s == SUIT[j]) {\n\t\t\t\t\ttaroHas[j][r - 1] = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif (s == SUIT[j]) {\n\t\t\t\t\ttaroHas[j][r - 1] = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"if (s == SUIT[j]) {\n\t\t\t\t\ttaroHas[j][r - 1] = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"s == SUIT[j]",
"s",
"SUIT[j]",
"SUIT",
"j",
"{\n\t\t\t\t\ttaroHas[j][r - 1] = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"taroHas[j][r - 1] = true",
"taroHas[j][r - 1]",
"taroHas[j]",
"taroHas",
"j",
"r - 1",
"r",
"1",
"true",
"break;",
"for (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (!taroHas[i][j])\n\t\t\t\t\tSystem.out.println(SUIT[i] + \" \" + (j + 1));\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (!taroHas[i][j])\n\t\t\t\t\tSystem.out.println(SUIT[i] + \" \" + (j + 1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (!taroHas[i][j])\n\t\t\t\t\tSystem.out.println(SUIT[i] + \" \" + (j + 1));\n\t\t\t}\n\t\t}",
"for (int j = 0; j < 13; j++) {\n\t\t\t\tif (!taroHas[i][j])\n\t\t\t\t\tSystem.out.println(SUIT[i] + \" \" + (j + 1));\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\tif (!taroHas[i][j])\n\t\t\t\t\tSystem.out.println(SUIT[i] + \" \" + (j + 1));\n\t\t\t}",
"{\n\t\t\t\tif (!taroHas[i][j])\n\t\t\t\t\tSystem.out.println(SUIT[i] + \" \" + (j + 1));\n\t\t\t}",
"if (!taroHas[i][j])\n\t\t\t\t\tSystem.out.println(SUIT[i] + \" \" + (j + 1));",
"!taroHas[i][j]",
"taroHas[i][j]",
"taroHas[i]",
"taroHas",
"i",
"j",
"System.out.println(SUIT[i] + \" \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"SUIT[i] + \" \" + (j + 1)",
"SUIT[i] + \" \" + (j + 1)",
"SUIT[i]",
"SUIT",
"i",
"\" \"",
"(j + 1)",
"j",
"1",
"String[] args",
"args"
] | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
final char[] SUIT = {'S', 'H', 'C', 'D'};
boolean[][] taroHas = new boolean[4][13];
int n = scanner.nextInt();
for (int i = 0; i < n; i++) {
char s = scanner.next().charAt(0);
int r = scanner.nextInt();
for (int j = 0; j < 4; j++) {
if (s == SUIT[j]) {
taroHas[j][r - 1] = true;
break;
}
}
}
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 13; j++) {
if (!taroHas[i][j])
System.out.println(SUIT[i] + " " + (j + 1));
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
38,
5,
13,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
35,
18,
13,
17,
34,
17,
1,
0,
18,
13,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
2,
13,
17,
17,
3,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
284,
14
],
[
284,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
25
],
[
25,
26
],
[
25,
27
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
17,
33
],
[
33,
34
],
[
33,
35
],
[
17,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
37,
41
],
[
17,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
42,
46
],
[
17,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
47,
51
],
[
17,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
52,
56
],
[
17,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
57,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
76,
77
],
[
69,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
78,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
90,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
90,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
107,
108
],
[
107,
109
],
[
90,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
120,
122
],
[
117,
123
],
[
116,
124
],
[
110,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
131,
133
],
[
128,
134
],
[
127,
135
],
[
110,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
142,
144
],
[
139,
145
],
[
138,
146
],
[
110,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
153,
155
],
[
150,
156
],
[
149,
157
],
[
69,
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
],
[
180,
181
],
[
180,
182
],
[
178,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
185,
187
],
[
69,
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
],
[
202,
206
],
[
201,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
208,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
215,
217
],
[
69,
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
],
[
232,
236
],
[
231,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
238,
243
],
[
243,
244
],
[
243,
245
],
[
245,
246
],
[
245,
247
],
[
69,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
248,
253
],
[
253,
254
],
[
253,
255
],
[
248,
256
],
[
256,
257
],
[
257,
258
],
[
248,
259
],
[
260,
260
],
[
260,
261
],
[
261,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
262,
266
],
[
261,
267
],
[
267,
268
],
[
268,
269
],
[
269,
270
],
[
270,
271
],
[
270,
272
],
[
268,
273
],
[
273,
274
],
[
273,
275
],
[
275,
276
],
[
275,
277
],
[
69,
278
],
[
278,
279
],
[
279,
280
],
[
15,
281
],
[
281,
282
],
[
0,
283
],
[
283,
284
],
[
283,
285
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\n\n\npublic class Main{\n\n\n\tpublic static void main(String[] args){\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\n\t\t//SHDC?????????????????????????????????\n\t\tint[] cardS=new int[13];\n\t\tint[] cardH=new int[13];\n\t\tint[] cardD=new int[13];\n\t\tint[] cardC=new int[13];\n\t\tArrays.fill(cardS, 0);\n\t\tArrays.fill(cardH, 0);\n\t\tArrays.fill(cardD, 0);\n\t\tArrays.fill(cardC, 0);\n\n\t\ttry{\n\t\tint n=Integer.parseInt(reader.readLine());//n?????????\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString text=reader.readLine();\n\t\t\tString[] str=text.split(\" \");\n\t\t\tint x=Integer.parseInt(str[1]);\n\n\t\t\tswitch(str[0]){//???????????????????????????????????¨????????????1?????£??\\???\n\n\t\t\tcase\"S\":\n\t\t\t\tcardS[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"H\":\n\t\t\t\tcardH[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"D\":\n\t\t\t\tcardD[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"C\":\n\t\t\t\tcardC[x-1]=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardS[i]==0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardH[i]==0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardC[i]==0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardD[i]==0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}\n\n\n\t\treader.close();\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(\"??¨??????\"+e);\n\t\t}\n\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",
"import java.util.Arrays;",
"Arrays",
"java.util",
"public class Main{\n\n\n\tpublic static void main(String[] args){\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\n\t\t//SHDC?????????????????????????????????\n\t\tint[] cardS=new int[13];\n\t\tint[] cardH=new int[13];\n\t\tint[] cardD=new int[13];\n\t\tint[] cardC=new int[13];\n\t\tArrays.fill(cardS, 0);\n\t\tArrays.fill(cardH, 0);\n\t\tArrays.fill(cardD, 0);\n\t\tArrays.fill(cardC, 0);\n\n\t\ttry{\n\t\tint n=Integer.parseInt(reader.readLine());//n?????????\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString text=reader.readLine();\n\t\t\tString[] str=text.split(\" \");\n\t\t\tint x=Integer.parseInt(str[1]);\n\n\t\t\tswitch(str[0]){//???????????????????????????????????¨????????????1?????£??\\???\n\n\t\t\tcase\"S\":\n\t\t\t\tcardS[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"H\":\n\t\t\t\tcardH[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"D\":\n\t\t\t\tcardD[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"C\":\n\t\t\t\tcardC[x-1]=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardS[i]==0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardH[i]==0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardC[i]==0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardD[i]==0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}\n\n\n\t\treader.close();\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(\"??¨??????\"+e);\n\t\t}\n\n\n\t}\n\n}",
"Main",
"public static void main(String[] args){\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\n\t\t//SHDC?????????????????????????????????\n\t\tint[] cardS=new int[13];\n\t\tint[] cardH=new int[13];\n\t\tint[] cardD=new int[13];\n\t\tint[] cardC=new int[13];\n\t\tArrays.fill(cardS, 0);\n\t\tArrays.fill(cardH, 0);\n\t\tArrays.fill(cardD, 0);\n\t\tArrays.fill(cardC, 0);\n\n\t\ttry{\n\t\tint n=Integer.parseInt(reader.readLine());//n?????????\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString text=reader.readLine();\n\t\t\tString[] str=text.split(\" \");\n\t\t\tint x=Integer.parseInt(str[1]);\n\n\t\t\tswitch(str[0]){//???????????????????????????????????¨????????????1?????£??\\???\n\n\t\t\tcase\"S\":\n\t\t\t\tcardS[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"H\":\n\t\t\t\tcardH[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"D\":\n\t\t\t\tcardD[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"C\":\n\t\t\t\tcardC[x-1]=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardS[i]==0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardH[i]==0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardC[i]==0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardD[i]==0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}\n\n\n\t\treader.close();\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(\"??¨??????\"+e);\n\t\t}\n\n\n\t}",
"main",
"{\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\n\t\t//SHDC?????????????????????????????????\n\t\tint[] cardS=new int[13];\n\t\tint[] cardH=new int[13];\n\t\tint[] cardD=new int[13];\n\t\tint[] cardC=new int[13];\n\t\tArrays.fill(cardS, 0);\n\t\tArrays.fill(cardH, 0);\n\t\tArrays.fill(cardD, 0);\n\t\tArrays.fill(cardC, 0);\n\n\t\ttry{\n\t\tint n=Integer.parseInt(reader.readLine());//n?????????\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString text=reader.readLine();\n\t\t\tString[] str=text.split(\" \");\n\t\t\tint x=Integer.parseInt(str[1]);\n\n\t\t\tswitch(str[0]){//???????????????????????????????????¨????????????1?????£??\\???\n\n\t\t\tcase\"S\":\n\t\t\t\tcardS[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"H\":\n\t\t\t\tcardH[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"D\":\n\t\t\t\tcardD[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"C\":\n\t\t\t\tcardC[x-1]=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardS[i]==0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardH[i]==0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardC[i]==0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardD[i]==0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}\n\n\n\t\treader.close();\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(\"??¨??????\"+e);\n\t\t}\n\n\n\t}",
"BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"int[] cardS=new int[13];",
"cardS",
"new int[13]",
"13",
"int[] cardH=new int[13];",
"cardH",
"new int[13]",
"13",
"int[] cardD=new int[13];",
"cardD",
"new int[13]",
"13",
"int[] cardC=new int[13];",
"cardC",
"new int[13]",
"13",
"Arrays.fill(cardS, 0)",
"Arrays.fill",
"Arrays",
"cardS",
"0",
"Arrays.fill(cardH, 0)",
"Arrays.fill",
"Arrays",
"cardH",
"0",
"Arrays.fill(cardD, 0)",
"Arrays.fill",
"Arrays",
"cardD",
"0",
"Arrays.fill(cardC, 0)",
"Arrays.fill",
"Arrays",
"cardC",
"0",
"try{\n\t\tint n=Integer.parseInt(reader.readLine());//n?????????\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString text=reader.readLine();\n\t\t\tString[] str=text.split(\" \");\n\t\t\tint x=Integer.parseInt(str[1]);\n\n\t\t\tswitch(str[0]){//???????????????????????????????????¨????????????1?????£??\\???\n\n\t\t\tcase\"S\":\n\t\t\t\tcardS[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"H\":\n\t\t\t\tcardH[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"D\":\n\t\t\t\tcardD[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"C\":\n\t\t\t\tcardC[x-1]=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardS[i]==0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardH[i]==0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardC[i]==0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardD[i]==0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}\n\n\n\t\treader.close();\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(\"??¨??????\"+e);\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",
"\"??¨??????\"",
"e",
"{\n\t\tint n=Integer.parseInt(reader.readLine());//n?????????\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString text=reader.readLine();\n\t\t\tString[] str=text.split(\" \");\n\t\t\tint x=Integer.parseInt(str[1]);\n\n\t\t\tswitch(str[0]){//???????????????????????????????????¨????????????1?????£??\\???\n\n\t\t\tcase\"S\":\n\t\t\t\tcardS[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"H\":\n\t\t\t\tcardH[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"D\":\n\t\t\t\tcardD[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"C\":\n\t\t\t\tcardC[x-1]=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardS[i]==0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardH[i]==0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardC[i]==0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardD[i]==0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}\n\n\n\t\treader.close();\n\n\t\t}",
"int n=Integer.parseInt(reader.readLine());",
"n",
"Integer.parseInt(reader.readLine())",
"Integer.parseInt",
"Integer",
"reader.readLine()",
"reader.readLine",
"reader",
"for(int i=0;i<n;i++){\n\t\t\tString text=reader.readLine();\n\t\t\tString[] str=text.split(\" \");\n\t\t\tint x=Integer.parseInt(str[1]);\n\n\t\t\tswitch(str[0]){//???????????????????????????????????¨????????????1?????£??\\???\n\n\t\t\tcase\"S\":\n\t\t\t\tcardS[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"H\":\n\t\t\t\tcardH[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"D\":\n\t\t\t\tcardD[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"C\":\n\t\t\t\tcardC[x-1]=1;\n\t\t\t\tbreak;\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 text=reader.readLine();\n\t\t\tString[] str=text.split(\" \");\n\t\t\tint x=Integer.parseInt(str[1]);\n\n\t\t\tswitch(str[0]){//???????????????????????????????????¨????????????1?????£??\\???\n\n\t\t\tcase\"S\":\n\t\t\t\tcardS[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"H\":\n\t\t\t\tcardH[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"D\":\n\t\t\t\tcardD[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"C\":\n\t\t\t\tcardC[x-1]=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString text=reader.readLine();\n\t\t\tString[] str=text.split(\" \");\n\t\t\tint x=Integer.parseInt(str[1]);\n\n\t\t\tswitch(str[0]){//???????????????????????????????????¨????????????1?????£??\\???\n\n\t\t\tcase\"S\":\n\t\t\t\tcardS[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"H\":\n\t\t\t\tcardH[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"D\":\n\t\t\t\tcardD[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"C\":\n\t\t\t\tcardC[x-1]=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"String text=reader.readLine();",
"text",
"reader.readLine()",
"reader.readLine",
"reader",
"String[] str=text.split(\" \");",
"str",
"text.split(\" \")",
"text.split",
"text",
"\" \"",
"int x=Integer.parseInt(str[1]);",
"x",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"switch(str[0]){//???????????????????????????????????¨????????????1?????£??\\???\n\n\t\t\tcase\"S\":\n\t\t\t\tcardS[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"H\":\n\t\t\t\tcardH[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"D\":\n\t\t\t\tcardD[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"C\":\n\t\t\t\tcardC[x-1]=1;\n\t\t\t\tbreak;\n\t\t\t}",
"str[0]",
"str",
"0",
"case\"S\":",
"\"S\"",
"case\"S\":",
"cardS[x-1]=1",
"cardS[x-1]",
"cardS",
"x-1",
"x",
"1",
"1",
"break;",
"case\"H\":",
"\"H\"",
"case\"H\":",
"cardH[x-1]=1",
"cardH[x-1]",
"cardH",
"x-1",
"x",
"1",
"1",
"break;",
"case\"D\":",
"\"D\"",
"case\"D\":",
"cardD[x-1]=1",
"cardD[x-1]",
"cardD",
"x-1",
"x",
"1",
"1",
"break;",
"case\"C\":",
"\"C\"",
"case\"C\":",
"cardC[x-1]=1",
"cardC[x-1]",
"cardC",
"x-1",
"x",
"1",
"1",
"break;",
"for(int i=0;i<13;i++){\n\t\t\tif(cardS[i]==0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(cardS[i]==0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(cardS[i]==0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}",
"if(cardS[i]==0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}",
"cardS[i]==0",
"cardS[i]",
"cardS",
"i",
"0",
"{\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}",
"System.out.println(\"S \"+(i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \"+(i+1)",
"\"S \"",
"(i+1)",
"i",
"1",
"for(int i=0;i<13;i++){\n\t\t\tif(cardH[i]==0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(cardH[i]==0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(cardH[i]==0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}",
"if(cardH[i]==0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}",
"cardH[i]==0",
"cardH[i]",
"cardH",
"i",
"0",
"{\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}",
"System.out.println(\"H \"+(i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \"+(i+1)",
"\"H \"",
"(i+1)",
"i",
"1",
"for(int i=0;i<13;i++){\n\t\t\tif(cardC[i]==0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(cardC[i]==0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(cardC[i]==0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}",
"if(cardC[i]==0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}",
"cardC[i]==0",
"cardC[i]",
"cardC",
"i",
"0",
"{\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}",
"System.out.println(\"C \"+(i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \"+(i+1)",
"\"C \"",
"(i+1)",
"i",
"1",
"for(int i=0;i<13;i++){\n\t\t\tif(cardD[i]==0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(cardD[i]==0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(cardD[i]==0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}",
"if(cardD[i]==0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}",
"cardD[i]==0",
"cardD[i]",
"cardD",
"i",
"0",
"{\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}",
"System.out.println(\"D \"+(i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \"+(i+1)",
"\"D \"",
"(i+1)",
"i",
"1",
"reader.close()",
"reader.close",
"reader",
"String[] args",
"args",
"public class Main{\n\n\n\tpublic static void main(String[] args){\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\n\t\t//SHDC?????????????????????????????????\n\t\tint[] cardS=new int[13];\n\t\tint[] cardH=new int[13];\n\t\tint[] cardD=new int[13];\n\t\tint[] cardC=new int[13];\n\t\tArrays.fill(cardS, 0);\n\t\tArrays.fill(cardH, 0);\n\t\tArrays.fill(cardD, 0);\n\t\tArrays.fill(cardC, 0);\n\n\t\ttry{\n\t\tint n=Integer.parseInt(reader.readLine());//n?????????\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString text=reader.readLine();\n\t\t\tString[] str=text.split(\" \");\n\t\t\tint x=Integer.parseInt(str[1]);\n\n\t\t\tswitch(str[0]){//???????????????????????????????????¨????????????1?????£??\\???\n\n\t\t\tcase\"S\":\n\t\t\t\tcardS[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"H\":\n\t\t\t\tcardH[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"D\":\n\t\t\t\tcardD[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"C\":\n\t\t\t\tcardC[x-1]=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardS[i]==0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardH[i]==0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardC[i]==0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardD[i]==0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}\n\n\n\t\treader.close();\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(\"??¨??????\"+e);\n\t\t}\n\n\n\t}\n\n}",
"public class Main{\n\n\n\tpublic static void main(String[] args){\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\n\t\t//SHDC?????????????????????????????????\n\t\tint[] cardS=new int[13];\n\t\tint[] cardH=new int[13];\n\t\tint[] cardD=new int[13];\n\t\tint[] cardC=new int[13];\n\t\tArrays.fill(cardS, 0);\n\t\tArrays.fill(cardH, 0);\n\t\tArrays.fill(cardD, 0);\n\t\tArrays.fill(cardC, 0);\n\n\t\ttry{\n\t\tint n=Integer.parseInt(reader.readLine());//n?????????\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString text=reader.readLine();\n\t\t\tString[] str=text.split(\" \");\n\t\t\tint x=Integer.parseInt(str[1]);\n\n\t\t\tswitch(str[0]){//???????????????????????????????????¨????????????1?????£??\\???\n\n\t\t\tcase\"S\":\n\t\t\t\tcardS[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"H\":\n\t\t\t\tcardH[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"D\":\n\t\t\t\tcardD[x-1]=1;\n\t\t\t\tbreak;\n\t\t\tcase\"C\":\n\t\t\t\tcardC[x-1]=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardS[i]==0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardH[i]==0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardC[i]==0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(cardD[i]==0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}\n\n\n\t\treader.close();\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(\"??¨??????\"+e);\n\t\t}\n\n\n\t}\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Main{
public static void main(String[] args){
BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
//SHDC?????????????????????????????????
int[] cardS=new int[13];
int[] cardH=new int[13];
int[] cardD=new int[13];
int[] cardC=new int[13];
Arrays.fill(cardS, 0);
Arrays.fill(cardH, 0);
Arrays.fill(cardD, 0);
Arrays.fill(cardC, 0);
try{
int n=Integer.parseInt(reader.readLine());//n?????????
for(int i=0;i<n;i++){
String text=reader.readLine();
String[] str=text.split(" ");
int x=Integer.parseInt(str[1]);
switch(str[0]){//???????????????????????????????????¨????????????1?????£??\???
case"S":
cardS[x-1]=1;
break;
case"H":
cardH[x-1]=1;
break;
case"D":
cardD[x-1]=1;
break;
case"C":
cardC[x-1]=1;
break;
}
}
for(int i=0;i<13;i++){
if(cardS[i]==0){
System.out.println("S "+(i+1));
}
}
for(int i=0;i<13;i++){
if(cardH[i]==0){
System.out.println("H "+(i+1));
}
}
for(int i=0;i<13;i++){
if(cardC[i]==0){
System.out.println("C "+(i+1));
}
}
for(int i=0;i<13;i++){
if(cardD[i]==0){
System.out.println("D "+(i+1));
}
}
reader.close();
}catch(IOException e){
System.out.println("??¨??????"+e);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
4,
18,
13,
13,
4,
13,
4,
18,
13,
13,
4,
13,
4,
18,
13,
13,
4,
13,
4,
18,
13,
13,
4,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
4,
18,
13,
13,
13,
28,
13,
4,
18,
13,
30,
30,
41,
13,
4,
18,
13,
13,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
13,
29,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
148,
11
],
[
148,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
14,
24
],
[
24,
25
],
[
24,
26
],
[
14,
27
],
[
27,
28
],
[
27,
29
],
[
14,
30
],
[
30,
31
],
[
30,
32
],
[
14,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
33,
37
],
[
37,
38
],
[
14,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
39,
43
],
[
43,
44
],
[
14,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
49,
50
],
[
14,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
51,
55
],
[
55,
56
],
[
14,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
14,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
62,
70
],
[
70,
71
],
[
71,
72
],
[
62,
73
],
[
74,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
74,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
74,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
85,
91
],
[
14,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
92,
97
],
[
98,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
98,
105
],
[
105,
106
],
[
105,
107
],
[
105,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
116,
116
],
[
116,
117
],
[
116,
118
],
[
116,
119
],
[
12,
120
],
[
120,
121
],
[
148,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
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
],
[
141,
144
],
[
124,
145
],
[
145,
146
],
[
0,
147
],
[
147,
148
],
[
147,
149
]
] | [
"import java.util.LinkedHashMap;\nimport java.util.LinkedHashSet;\nimport java.util.Scanner;\n\n/**\n * Created 2017/06/11.\n */\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n \n //?????¶????????¨??????????????????\n LinkedHashMap<String,LinkedHashSet<Integer>> dr = new LinkedHashMap<>();\n String s = \"S\";\n String h = \"H\";\n String c = \"C\";\n String d = \"D\";\n \n dr.put(s,rankmake());\n dr.put(h,rankmake());\n dr.put(c,rankmake());\n dr.put(d,rankmake());\n \n //System.out.println(dr); \n //??\\????????\\?????¨????????????\n\n int n = sc.nextInt();\n for(int i = 0; i < n; i++) {\n String d_input = sc.next();\n int r_input = sc.nextInt();\n dr.get(d_input).remove(r_input);\n }\n //??¨?????????????????????\n //System.out.println(dr); //????????????\n \n //?????????????????¨??????hashset??????????¨??????????????????????for?????§??¨??¨??¨????????????????????§\n for(String key : dr.keySet()){\n LinkedHashSet<Integer> r_end =dr.get(key);\n for(int i : r_end){\n System.out.println(key + \" \" + i);\n }\n }\n\n }\n public static LinkedHashSet<Integer> rankmake() {\n LinkedHashSet<Integer> rank = new LinkedHashSet<>();\n for(int i = 1;i <=13;i++){\n rank.add(i);\n }\n return rank;\n }\n}",
"import java.util.LinkedHashMap;",
"LinkedHashMap",
"java.util",
"import java.util.LinkedHashSet;",
"LinkedHashSet",
"java.util",
"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 \n //?????¶????????¨??????????????????\n LinkedHashMap<String,LinkedHashSet<Integer>> dr = new LinkedHashMap<>();\n String s = \"S\";\n String h = \"H\";\n String c = \"C\";\n String d = \"D\";\n \n dr.put(s,rankmake());\n dr.put(h,rankmake());\n dr.put(c,rankmake());\n dr.put(d,rankmake());\n \n //System.out.println(dr); \n //??\\????????\\?????¨????????????\n\n int n = sc.nextInt();\n for(int i = 0; i < n; i++) {\n String d_input = sc.next();\n int r_input = sc.nextInt();\n dr.get(d_input).remove(r_input);\n }\n //??¨?????????????????????\n //System.out.println(dr); //????????????\n \n //?????????????????¨??????hashset??????????¨??????????????????????for?????§??¨??¨??¨????????????????????§\n for(String key : dr.keySet()){\n LinkedHashSet<Integer> r_end =dr.get(key);\n for(int i : r_end){\n System.out.println(key + \" \" + i);\n }\n }\n\n }\n public static LinkedHashSet<Integer> rankmake() {\n LinkedHashSet<Integer> rank = new LinkedHashSet<>();\n for(int i = 1;i <=13;i++){\n rank.add(i);\n }\n return rank;\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n \n //?????¶????????¨??????????????????\n LinkedHashMap<String,LinkedHashSet<Integer>> dr = new LinkedHashMap<>();\n String s = \"S\";\n String h = \"H\";\n String c = \"C\";\n String d = \"D\";\n \n dr.put(s,rankmake());\n dr.put(h,rankmake());\n dr.put(c,rankmake());\n dr.put(d,rankmake());\n \n //System.out.println(dr); \n //??\\????????\\?????¨????????????\n\n int n = sc.nextInt();\n for(int i = 0; i < n; i++) {\n String d_input = sc.next();\n int r_input = sc.nextInt();\n dr.get(d_input).remove(r_input);\n }\n //??¨?????????????????????\n //System.out.println(dr); //????????????\n \n //?????????????????¨??????hashset??????????¨??????????????????????for?????§??¨??¨??¨????????????????????§\n for(String key : dr.keySet()){\n LinkedHashSet<Integer> r_end =dr.get(key);\n for(int i : r_end){\n System.out.println(key + \" \" + i);\n }\n }\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n \n \n //?????¶????????¨??????????????????\n LinkedHashMap<String,LinkedHashSet<Integer>> dr = new LinkedHashMap<>();\n String s = \"S\";\n String h = \"H\";\n String c = \"C\";\n String d = \"D\";\n \n dr.put(s,rankmake());\n dr.put(h,rankmake());\n dr.put(c,rankmake());\n dr.put(d,rankmake());\n \n //System.out.println(dr); \n //??\\????????\\?????¨????????????\n\n int n = sc.nextInt();\n for(int i = 0; i < n; i++) {\n String d_input = sc.next();\n int r_input = sc.nextInt();\n dr.get(d_input).remove(r_input);\n }\n //??¨?????????????????????\n //System.out.println(dr); //????????????\n \n //?????????????????¨??????hashset??????????¨??????????????????????for?????§??¨??¨??¨????????????????????§\n for(String key : dr.keySet()){\n LinkedHashSet<Integer> r_end =dr.get(key);\n for(int i : r_end){\n System.out.println(key + \" \" + i);\n }\n }\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"LinkedHashMap<String,LinkedHashSet<Integer>> dr = new LinkedHashMap<>();",
"dr",
"new LinkedHashMap<>()",
"String s = \"S\";",
"s",
"\"S\"",
"String h = \"H\";",
"h",
"\"H\"",
"String c = \"C\";",
"c",
"\"C\"",
"String d = \"D\";",
"d",
"\"D\"",
"dr.put(s,rankmake())",
"dr.put",
"dr",
"s",
"rankmake()",
"rankmake",
"dr.put(h,rankmake())",
"dr.put",
"dr",
"h",
"rankmake()",
"rankmake",
"dr.put(c,rankmake())",
"dr.put",
"dr",
"c",
"rankmake()",
"rankmake",
"dr.put(d,rankmake())",
"dr.put",
"dr",
"d",
"rankmake()",
"rankmake",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < n; i++) {\n String d_input = sc.next();\n int r_input = sc.nextInt();\n dr.get(d_input).remove(r_input);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String d_input = sc.next();\n int r_input = sc.nextInt();\n dr.get(d_input).remove(r_input);\n }",
"{\n String d_input = sc.next();\n int r_input = sc.nextInt();\n dr.get(d_input).remove(r_input);\n }",
"String d_input = sc.next();",
"d_input",
"sc.next()",
"sc.next",
"sc",
"int r_input = sc.nextInt();",
"r_input",
"sc.nextInt()",
"sc.nextInt",
"sc",
"dr.get(d_input).remove(r_input)",
"dr.get(d_input).remove",
"dr.get(d_input)",
"dr.get",
"dr",
"d_input",
"r_input",
"for(String key : dr.keySet()){\n LinkedHashSet<Integer> r_end =dr.get(key);\n for(int i : r_end){\n System.out.println(key + \" \" + i);\n }\n }",
"String key",
"dr.keySet()",
"dr.keySet",
"dr",
"{\n LinkedHashSet<Integer> r_end =dr.get(key);\n for(int i : r_end){\n System.out.println(key + \" \" + i);\n }\n }",
"{\n LinkedHashSet<Integer> r_end =dr.get(key);\n for(int i : r_end){\n System.out.println(key + \" \" + i);\n }\n }",
"LinkedHashSet<Integer> r_end =dr.get(key);",
"r_end",
"dr.get(key)",
"dr.get",
"dr",
"key",
"for(int i : r_end){\n System.out.println(key + \" \" + i);\n }",
"int i",
"r_end",
"{\n System.out.println(key + \" \" + i);\n }",
"{\n System.out.println(key + \" \" + i);\n }",
"System.out.println(key + \" \" + i)",
"System.out.println",
"System.out",
"System",
"System.out",
"key + \" \" + i",
"key + \" \" + i",
"key",
"\" \"",
"i",
"String[] args",
"args",
"public static LinkedHashSet<Integer> rankmake() {\n LinkedHashSet<Integer> rank = new LinkedHashSet<>();\n for(int i = 1;i <=13;i++){\n rank.add(i);\n }\n return rank;\n }",
"rankmake",
"{\n LinkedHashSet<Integer> rank = new LinkedHashSet<>();\n for(int i = 1;i <=13;i++){\n rank.add(i);\n }\n return rank;\n }",
"LinkedHashSet<Integer> rank = new LinkedHashSet<>();",
"rank",
"new LinkedHashSet<>()",
"for(int i = 1;i <=13;i++){\n rank.add(i);\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <=13",
"i",
"13",
"i++",
"i++",
"i",
"{\n rank.add(i);\n }",
"{\n rank.add(i);\n }",
"rank.add(i)",
"rank.add",
"rank",
"i",
"return rank;",
"rank",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n \n //?????¶????????¨??????????????????\n LinkedHashMap<String,LinkedHashSet<Integer>> dr = new LinkedHashMap<>();\n String s = \"S\";\n String h = \"H\";\n String c = \"C\";\n String d = \"D\";\n \n dr.put(s,rankmake());\n dr.put(h,rankmake());\n dr.put(c,rankmake());\n dr.put(d,rankmake());\n \n //System.out.println(dr); \n //??\\????????\\?????¨????????????\n\n int n = sc.nextInt();\n for(int i = 0; i < n; i++) {\n String d_input = sc.next();\n int r_input = sc.nextInt();\n dr.get(d_input).remove(r_input);\n }\n //??¨?????????????????????\n //System.out.println(dr); //????????????\n \n //?????????????????¨??????hashset??????????¨??????????????????????for?????§??¨??¨??¨????????????????????§\n for(String key : dr.keySet()){\n LinkedHashSet<Integer> r_end =dr.get(key);\n for(int i : r_end){\n System.out.println(key + \" \" + i);\n }\n }\n\n }\n public static LinkedHashSet<Integer> rankmake() {\n LinkedHashSet<Integer> rank = new LinkedHashSet<>();\n for(int i = 1;i <=13;i++){\n rank.add(i);\n }\n return rank;\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n \n //?????¶????????¨??????????????????\n LinkedHashMap<String,LinkedHashSet<Integer>> dr = new LinkedHashMap<>();\n String s = \"S\";\n String h = \"H\";\n String c = \"C\";\n String d = \"D\";\n \n dr.put(s,rankmake());\n dr.put(h,rankmake());\n dr.put(c,rankmake());\n dr.put(d,rankmake());\n \n //System.out.println(dr); \n //??\\????????\\?????¨????????????\n\n int n = sc.nextInt();\n for(int i = 0; i < n; i++) {\n String d_input = sc.next();\n int r_input = sc.nextInt();\n dr.get(d_input).remove(r_input);\n }\n //??¨?????????????????????\n //System.out.println(dr); //????????????\n \n //?????????????????¨??????hashset??????????¨??????????????????????for?????§??¨??¨??¨????????????????????§\n for(String key : dr.keySet()){\n LinkedHashSet<Integer> r_end =dr.get(key);\n for(int i : r_end){\n System.out.println(key + \" \" + i);\n }\n }\n\n }\n public static LinkedHashSet<Integer> rankmake() {\n LinkedHashSet<Integer> rank = new LinkedHashSet<>();\n for(int i = 1;i <=13;i++){\n rank.add(i);\n }\n return rank;\n }\n}",
"Main"
] | import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.Scanner;
/**
* Created 2017/06/11.
*/
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
//?????¶????????¨??????????????????
LinkedHashMap<String,LinkedHashSet<Integer>> dr = new LinkedHashMap<>();
String s = "S";
String h = "H";
String c = "C";
String d = "D";
dr.put(s,rankmake());
dr.put(h,rankmake());
dr.put(c,rankmake());
dr.put(d,rankmake());
//System.out.println(dr);
//??\????????\?????¨????????????
int n = sc.nextInt();
for(int i = 0; i < n; i++) {
String d_input = sc.next();
int r_input = sc.nextInt();
dr.get(d_input).remove(r_input);
}
//??¨?????????????????????
//System.out.println(dr); //????????????
//?????????????????¨??????hashset??????????¨??????????????????????for?????§??¨??¨??¨????????????????????§
for(String key : dr.keySet()){
LinkedHashSet<Integer> r_end =dr.get(key);
for(int i : r_end){
System.out.println(key + " " + i);
}
}
}
public static LinkedHashSet<Integer> rankmake() {
LinkedHashSet<Integer> rank = new LinkedHashSet<>();
for(int i = 1;i <=13;i++){
rank.add(i);
}
return rank;
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
0,
18,
13,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
17,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
14,
4,
18,
13,
17,
40,
18,
18,
13,
17,
2,
13,
17,
14,
4,
18,
13,
17,
40,
18,
18,
13,
17,
2,
13,
17,
14,
4,
18,
13,
17,
40,
18,
18,
13,
17,
2,
13,
17,
14,
4,
18,
13,
17,
40,
18,
18,
13,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
14,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
2,
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,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
16,
24
],
[
24,
25
],
[
25,
26
],
[
16,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
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
],
[
8,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
8,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
8,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
78,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
93,
98
],
[
90,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
101,
103
],
[
90,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
109,
110
],
[
109,
111
],
[
90,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
112,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
122,
124
],
[
112,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
125,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
135,
136
],
[
135,
137
],
[
125,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
139,
142
],
[
138,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
148,
150
],
[
138,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
152,
155
],
[
151,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
161,
162
],
[
161,
163
],
[
8,
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
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
192,
196
],
[
191,
197
],
[
190,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
199,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
203,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
210,
212
],
[
199,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
213,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
217,
222
],
[
222,
223
],
[
222,
224
],
[
224,
225
],
[
224,
226
],
[
213,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
227,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
231,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
238,
240
],
[
227,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
241,
245
],
[
245,
246
],
[
246,
247
],
[
247,
248
],
[
247,
249
],
[
245,
250
],
[
250,
251
],
[
250,
252
],
[
252,
253
],
[
252,
254
],
[
6,
255
],
[
255,
256
]
] | [
"import java.io.*;\n\nclass Main{\n\n public static void main(String[] args)throws IOException{\n\tfinal BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\tint[][] card=new int[4][];\n\tfor(int i=0;i<4;i++) card[i]=new int[13];\n\tfor(int i=0;i<4;i++){\n\t for(int j=0;j<13;j++){\n\t\tcard[i][j]=0;\n\t }\n\t}\n\t\n\t\n\tString str=br.readLine();\n\tint n=Integer.parseInt(str);\n\tfor(int i=0;i<n;i++){\n\t String[] st=br.readLine().split(\" \");\n\t String mark=st[0];\n\t int num=Integer.parseInt(st[1]);\n\t if(mark.equals(\"S\")) card[0][num-1]++;\n\t else if(mark.equals(\"H\")) card[1][num-1]++;\n\t else if(mark.equals(\"C\")) card[2][num-1]++;\t\n\t else if(mark.equals(\"D\")) card[3][num-1]++;\n\t}\n\tfor(int i=0;i<4;i++){\n\t for(int j=0;j<13;j++){\n\t\tif(card[i][j]==0){\n\t\t if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));\n\t\t}\n\t }\n\t}\n }\n}\n ",
"import java.io.*;",
"io.*",
"java",
"class Main{\n\n public static void main(String[] args)throws IOException{\n\tfinal BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\tint[][] card=new int[4][];\n\tfor(int i=0;i<4;i++) card[i]=new int[13];\n\tfor(int i=0;i<4;i++){\n\t for(int j=0;j<13;j++){\n\t\tcard[i][j]=0;\n\t }\n\t}\n\t\n\t\n\tString str=br.readLine();\n\tint n=Integer.parseInt(str);\n\tfor(int i=0;i<n;i++){\n\t String[] st=br.readLine().split(\" \");\n\t String mark=st[0];\n\t int num=Integer.parseInt(st[1]);\n\t if(mark.equals(\"S\")) card[0][num-1]++;\n\t else if(mark.equals(\"H\")) card[1][num-1]++;\n\t else if(mark.equals(\"C\")) card[2][num-1]++;\t\n\t else if(mark.equals(\"D\")) card[3][num-1]++;\n\t}\n\tfor(int i=0;i<4;i++){\n\t for(int j=0;j<13;j++){\n\t\tif(card[i][j]==0){\n\t\t if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));\n\t\t}\n\t }\n\t}\n }\n}",
"Main",
"public static void main(String[] args)throws IOException{\n\tfinal BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\tint[][] card=new int[4][];\n\tfor(int i=0;i<4;i++) card[i]=new int[13];\n\tfor(int i=0;i<4;i++){\n\t for(int j=0;j<13;j++){\n\t\tcard[i][j]=0;\n\t }\n\t}\n\t\n\t\n\tString str=br.readLine();\n\tint n=Integer.parseInt(str);\n\tfor(int i=0;i<n;i++){\n\t String[] st=br.readLine().split(\" \");\n\t String mark=st[0];\n\t int num=Integer.parseInt(st[1]);\n\t if(mark.equals(\"S\")) card[0][num-1]++;\n\t else if(mark.equals(\"H\")) card[1][num-1]++;\n\t else if(mark.equals(\"C\")) card[2][num-1]++;\t\n\t else if(mark.equals(\"D\")) card[3][num-1]++;\n\t}\n\tfor(int i=0;i<4;i++){\n\t for(int j=0;j<13;j++){\n\t\tif(card[i][j]==0){\n\t\t if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));\n\t\t}\n\t }\n\t}\n }",
"main",
"{\n\tfinal BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\tint[][] card=new int[4][];\n\tfor(int i=0;i<4;i++) card[i]=new int[13];\n\tfor(int i=0;i<4;i++){\n\t for(int j=0;j<13;j++){\n\t\tcard[i][j]=0;\n\t }\n\t}\n\t\n\t\n\tString str=br.readLine();\n\tint n=Integer.parseInt(str);\n\tfor(int i=0;i<n;i++){\n\t String[] st=br.readLine().split(\" \");\n\t String mark=st[0];\n\t int num=Integer.parseInt(st[1]);\n\t if(mark.equals(\"S\")) card[0][num-1]++;\n\t else if(mark.equals(\"H\")) card[1][num-1]++;\n\t else if(mark.equals(\"C\")) card[2][num-1]++;\t\n\t else if(mark.equals(\"D\")) card[3][num-1]++;\n\t}\n\tfor(int i=0;i<4;i++){\n\t for(int j=0;j<13;j++){\n\t\tif(card[i][j]==0){\n\t\t if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));\n\t\t}\n\t }\n\t}\n }",
"final BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int[][] card=new int[4][];",
"card",
"new int[4][]",
"4",
"for(int i=0;i<4;i++) card[i]=new int[13];",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"card[i]=new int[13];",
"card[i]=new int[13]",
"card[i]",
"card",
"i",
"new int[13]",
"13",
"for(int i=0;i<4;i++){\n\t for(int j=0;j<13;j++){\n\t\tcard[i][j]=0;\n\t }\n\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t for(int j=0;j<13;j++){\n\t\tcard[i][j]=0;\n\t }\n\t}",
"{\n\t for(int j=0;j<13;j++){\n\t\tcard[i][j]=0;\n\t }\n\t}",
"for(int j=0;j<13;j++){\n\t\tcard[i][j]=0;\n\t }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\tcard[i][j]=0;\n\t }",
"{\n\t\tcard[i][j]=0;\n\t }",
"card[i][j]=0",
"card[i][j]",
"card[i]",
"card",
"i",
"j",
"0",
"String str=br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"int n=Integer.parseInt(str);",
"n",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"for(int i=0;i<n;i++){\n\t String[] st=br.readLine().split(\" \");\n\t String mark=st[0];\n\t int num=Integer.parseInt(st[1]);\n\t if(mark.equals(\"S\")) card[0][num-1]++;\n\t else if(mark.equals(\"H\")) card[1][num-1]++;\n\t else if(mark.equals(\"C\")) card[2][num-1]++;\t\n\t else if(mark.equals(\"D\")) card[3][num-1]++;\n\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t String[] st=br.readLine().split(\" \");\n\t String mark=st[0];\n\t int num=Integer.parseInt(st[1]);\n\t if(mark.equals(\"S\")) card[0][num-1]++;\n\t else if(mark.equals(\"H\")) card[1][num-1]++;\n\t else if(mark.equals(\"C\")) card[2][num-1]++;\t\n\t else if(mark.equals(\"D\")) card[3][num-1]++;\n\t}",
"{\n\t String[] st=br.readLine().split(\" \");\n\t String mark=st[0];\n\t int num=Integer.parseInt(st[1]);\n\t if(mark.equals(\"S\")) card[0][num-1]++;\n\t else if(mark.equals(\"H\")) card[1][num-1]++;\n\t else if(mark.equals(\"C\")) card[2][num-1]++;\t\n\t else if(mark.equals(\"D\")) card[3][num-1]++;\n\t}",
"String[] st=br.readLine().split(\" \");",
"st",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"String mark=st[0];",
"mark",
"st[0]",
"st",
"0",
"int num=Integer.parseInt(st[1]);",
"num",
"Integer.parseInt(st[1])",
"Integer.parseInt",
"Integer",
"st[1]",
"st",
"1",
"if(mark.equals(\"S\")) card[0][num-1]++;\n\t else if(mark.equals(\"H\")) card[1][num-1]++;\n\t else if(mark.equals(\"C\")) card[2][num-1]++;\t\n\t else if(mark.equals(\"D\")) card[3][num-1]++;",
"mark.equals(\"S\")",
"mark.equals",
"mark",
"\"S\"",
"card[0][num-1]++",
"card[0][num-1]",
"card[0]",
"card",
"0",
"num-1",
"num",
"1",
"if(mark.equals(\"H\")) card[1][num-1]++;\n\t else if(mark.equals(\"C\")) card[2][num-1]++;\t\n\t else if(mark.equals(\"D\")) card[3][num-1]++;",
"mark.equals(\"H\")",
"mark.equals",
"mark",
"\"H\"",
"card[1][num-1]++",
"card[1][num-1]",
"card[1]",
"card",
"1",
"num-1",
"num",
"1",
"if(mark.equals(\"C\")) card[2][num-1]++;\t\n\t else if(mark.equals(\"D\")) card[3][num-1]++;",
"mark.equals(\"C\")",
"mark.equals",
"mark",
"\"C\"",
"card[2][num-1]++",
"card[2][num-1]",
"card[2]",
"card",
"2",
"num-1",
"num",
"1",
"if(mark.equals(\"D\")) card[3][num-1]++;",
"mark.equals(\"D\")",
"mark.equals",
"mark",
"\"D\"",
"card[3][num-1]++",
"card[3][num-1]",
"card[3]",
"card",
"3",
"num-1",
"num",
"1",
"for(int i=0;i<4;i++){\n\t for(int j=0;j<13;j++){\n\t\tif(card[i][j]==0){\n\t\t if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));\n\t\t}\n\t }\n\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t for(int j=0;j<13;j++){\n\t\tif(card[i][j]==0){\n\t\t if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));\n\t\t}\n\t }\n\t}",
"{\n\t for(int j=0;j<13;j++){\n\t\tif(card[i][j]==0){\n\t\t if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));\n\t\t}\n\t }\n\t}",
"for(int j=0;j<13;j++){\n\t\tif(card[i][j]==0){\n\t\t if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));\n\t\t}\n\t }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\tif(card[i][j]==0){\n\t\t if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));\n\t\t}\n\t }",
"{\n\t\tif(card[i][j]==0){\n\t\t if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));\n\t\t}\n\t }",
"if(card[i][j]==0){\n\t\t if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));\n\t\t}",
"card[i][j]==0",
"card[i][j]",
"card[i]",
"card",
"i",
"j",
"0",
"{\n\t\t if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));\n\t\t}",
"if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));",
"i==0",
"i",
"0",
"System.out.println(\"S \" + (j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \" + (j+1)",
"\"S \"",
"(j+1)",
"j",
"1",
"if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));",
"i==1",
"i",
"1",
"System.out.println(\"H \" + (j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \" + (j+1)",
"\"H \"",
"(j+1)",
"j",
"1",
"if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));",
"i==2",
"i",
"2",
"System.out.println(\"C \" + (j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \" + (j+1)",
"\"C \"",
"(j+1)",
"j",
"1",
"if(i==3) System.out.println(\"D \" + (j+1));",
"i==3",
"i",
"3",
"System.out.println(\"D \" + (j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \" + (j+1)",
"\"D \"",
"(j+1)",
"j",
"1",
"String[] args",
"args"
] | import java.io.*;
class Main{
public static void main(String[] args)throws IOException{
final BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int[][] card=new int[4][];
for(int i=0;i<4;i++) card[i]=new int[13];
for(int i=0;i<4;i++){
for(int j=0;j<13;j++){
card[i][j]=0;
}
}
String str=br.readLine();
int n=Integer.parseInt(str);
for(int i=0;i<n;i++){
String[] st=br.readLine().split(" ");
String mark=st[0];
int num=Integer.parseInt(st[1]);
if(mark.equals("S")) card[0][num-1]++;
else if(mark.equals("H")) card[1][num-1]++;
else if(mark.equals("C")) card[2][num-1]++;
else if(mark.equals("D")) card[3][num-1]++;
}
for(int i=0;i<4;i++){
for(int j=0;j<13;j++){
if(card[i][j]==0){
if(i==0) System.out.println("S " + (j+1));
else if(i==1) System.out.println("H " + (j+1));
else if(i==2) System.out.println("C " + (j+1));
else if(i==3) System.out.println("D " + (j+1));
}
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
35,
13,
34,
17,
1,
4,
18,
13,
2,
13,
17,
13,
3,
34,
17,
1,
4,
18,
13,
2,
13,
17,
13,
3,
34,
17,
1,
4,
18,
13,
2,
13,
17,
13,
3,
34,
17,
1,
4,
18,
13,
2,
13,
17,
13,
3,
34,
1,
3,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
4,
18,
13,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
4,
18,
13,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
4,
18,
13,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
4,
18,
13,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
2,
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
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
27
],
[
27,
28
],
[
27,
29
],
[
20,
30
],
[
30,
31
],
[
30,
32
],
[
20,
33
],
[
33,
34
],
[
33,
35
],
[
20,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
20,
41
],
[
41,
42
],
[
41,
43
],
[
20,
44
],
[
44,
45
],
[
44,
46
],
[
20,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
59,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
59,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
78,
80
],
[
75,
81
],
[
74,
82
],
[
70,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
89,
90
],
[
89,
91
],
[
86,
92
],
[
85,
93
],
[
70,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
100,
101
],
[
100,
102
],
[
97,
103
],
[
96,
104
],
[
70,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
111,
112
],
[
111,
113
],
[
108,
114
],
[
107,
115
],
[
70,
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
],
[
133,
137
],
[
137,
138
],
[
138,
139
],
[
137,
140
],
[
132,
141
],
[
132,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
143,
148
],
[
149,
149
],
[
149,
150
],
[
149,
151
],
[
149,
152
],
[
152,
153
],
[
152,
154
],
[
20,
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
],
[
169,
173
],
[
173,
174
],
[
174,
175
],
[
173,
176
],
[
168,
177
],
[
168,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
179,
184
],
[
185,
185
],
[
185,
186
],
[
185,
187
],
[
185,
188
],
[
188,
189
],
[
188,
190
],
[
20,
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
],
[
205,
209
],
[
209,
210
],
[
210,
211
],
[
209,
212
],
[
204,
213
],
[
204,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
215,
220
],
[
221,
221
],
[
221,
222
],
[
221,
223
],
[
221,
224
],
[
224,
225
],
[
224,
226
],
[
20,
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
],
[
245,
246
],
[
246,
247
],
[
245,
248
],
[
240,
249
],
[
240,
250
],
[
250,
251
],
[
251,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
251,
256
],
[
257,
257
],
[
257,
258
],
[
257,
259
],
[
257,
260
],
[
260,
261
],
[
260,
262
],
[
18,
263
],
[
263,
264
]
] | [
"import java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.List;\nimport java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tScanner scane = new Scanner(System.in);\n\n\t\tList<Integer> S = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));\n\t\tList<Integer> H = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));\n\t\tList<Integer> C = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));\n\t\tList<Integer> D = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));\n\n\t\tint n = scane.nextInt();\n\n\t\tString M = \"\";\n\t\tint num = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tM = scane.next();\n\t\t\tnum = scane.nextInt();\n\n\t\t\tswitch (M) {\n\t\t\tcase \"S\":\n\t\t\t\tS.set(num - 1, num);\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tH.set(num - 1, num);\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tC.set(num - 1, num);\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tD.set(num - 1, num);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif ((i+1) == S.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"S\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (i+1 == H.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"H\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (i+1 == C.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"C\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif ((i+1) == D.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"D\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}\n\n\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tScanner scane = new Scanner(System.in);\n\n\t\tList<Integer> S = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));\n\t\tList<Integer> H = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));\n\t\tList<Integer> C = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));\n\t\tList<Integer> D = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));\n\n\t\tint n = scane.nextInt();\n\n\t\tString M = \"\";\n\t\tint num = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tM = scane.next();\n\t\t\tnum = scane.nextInt();\n\n\t\t\tswitch (M) {\n\t\t\tcase \"S\":\n\t\t\t\tS.set(num - 1, num);\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tH.set(num - 1, num);\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tC.set(num - 1, num);\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tD.set(num - 1, num);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif ((i+1) == S.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"S\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (i+1 == H.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"H\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (i+1 == C.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"C\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif ((i+1) == D.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"D\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}\n\n\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n\t\tScanner scane = new Scanner(System.in);\n\n\t\tList<Integer> S = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));\n\t\tList<Integer> H = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));\n\t\tList<Integer> C = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));\n\t\tList<Integer> D = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));\n\n\t\tint n = scane.nextInt();\n\n\t\tString M = \"\";\n\t\tint num = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tM = scane.next();\n\t\t\tnum = scane.nextInt();\n\n\t\t\tswitch (M) {\n\t\t\tcase \"S\":\n\t\t\t\tS.set(num - 1, num);\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tH.set(num - 1, num);\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tC.set(num - 1, num);\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tD.set(num - 1, num);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif ((i+1) == S.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"S\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (i+1 == H.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"H\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (i+1 == C.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"C\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif ((i+1) == D.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"D\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}\n\n\n\t}",
"main",
"{\n\n\t\tScanner scane = new Scanner(System.in);\n\n\t\tList<Integer> S = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));\n\t\tList<Integer> H = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));\n\t\tList<Integer> C = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));\n\t\tList<Integer> D = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));\n\n\t\tint n = scane.nextInt();\n\n\t\tString M = \"\";\n\t\tint num = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tM = scane.next();\n\t\t\tnum = scane.nextInt();\n\n\t\t\tswitch (M) {\n\t\t\tcase \"S\":\n\t\t\t\tS.set(num - 1, num);\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tH.set(num - 1, num);\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tC.set(num - 1, num);\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tD.set(num - 1, num);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif ((i+1) == S.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"S\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (i+1 == H.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"H\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (i+1 == C.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"C\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif ((i+1) == D.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"D\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}\n\n\n\t}",
"Scanner scane = new Scanner(System.in);",
"scane",
"new Scanner(System.in)",
"List<Integer> S = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));",
"S",
"new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14))",
"List<Integer> H = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));",
"H",
"new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14))",
"List<Integer> C = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));",
"C",
"new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14))",
"List<Integer> D = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));",
"D",
"new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14))",
"int n = scane.nextInt();",
"n",
"scane.nextInt()",
"scane.nextInt",
"scane",
"String M = \"\";",
"M",
"\"\"",
"int num = 0;",
"num",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\tM = scane.next();\n\t\t\tnum = scane.nextInt();\n\n\t\t\tswitch (M) {\n\t\t\tcase \"S\":\n\t\t\t\tS.set(num - 1, num);\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tH.set(num - 1, num);\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tC.set(num - 1, num);\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tD.set(num - 1, num);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\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\tM = scane.next();\n\t\t\tnum = scane.nextInt();\n\n\t\t\tswitch (M) {\n\t\t\tcase \"S\":\n\t\t\t\tS.set(num - 1, num);\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tH.set(num - 1, num);\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tC.set(num - 1, num);\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tD.set(num - 1, num);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tM = scane.next();\n\t\t\tnum = scane.nextInt();\n\n\t\t\tswitch (M) {\n\t\t\tcase \"S\":\n\t\t\t\tS.set(num - 1, num);\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tH.set(num - 1, num);\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tC.set(num - 1, num);\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tD.set(num - 1, num);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"M = scane.next()",
"M",
"scane.next()",
"scane.next",
"scane",
"num = scane.nextInt()",
"num",
"scane.nextInt()",
"scane.nextInt",
"scane",
"switch (M) {\n\t\t\tcase \"S\":\n\t\t\t\tS.set(num - 1, num);\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tH.set(num - 1, num);\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tC.set(num - 1, num);\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tD.set(num - 1, num);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}",
"M",
"case \"S\":",
"\"S\"",
"case \"S\":",
"S.set(num - 1, num)",
"S.set",
"S",
"num - 1",
"num",
"1",
"num",
"break;",
"case \"H\":",
"\"H\"",
"case \"H\":",
"H.set(num - 1, num)",
"H.set",
"H",
"num - 1",
"num",
"1",
"num",
"break;",
"case \"C\":",
"\"C\"",
"case \"C\":",
"C.set(num - 1, num)",
"C.set",
"C",
"num - 1",
"num",
"1",
"num",
"break;",
"case \"D\":",
"\"D\"",
"case \"D\":",
"D.set(num - 1, num)",
"D.set",
"D",
"num - 1",
"num",
"1",
"num",
"break;",
"default:",
"default:",
"break;",
"for (int i = 0; i < 13; i++) {\n\t\t\tif ((i+1) == S.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"S\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif ((i+1) == S.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"S\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}",
"{\n\t\t\tif ((i+1) == S.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"S\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}",
"if ((i+1) == S.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"S\" + \" \" + (i+1));\n\t\t\t}",
"(i+1) == S.get(i)",
"(i+1)",
"i",
"1",
"S.get(i)",
"S.get",
"S",
"i",
"{\n\n\t\t\t}",
"{\n\t\t\t\tSystem.out.println(\"S\" + \" \" + (i+1));\n\t\t\t}",
"System.out.println(\"S\" + \" \" + (i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S\" + \" \" + (i+1)",
"\"S\" + \" \" + (i+1)",
"\"S\"",
"\" \"",
"(i+1)",
"i",
"1",
"for (int i = 0; i < 13; i++) {\n\t\t\tif (i+1 == H.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"H\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif (i+1 == H.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"H\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}",
"{\n\t\t\tif (i+1 == H.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"H\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}",
"if (i+1 == H.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"H\" + \" \" + (i+1));\n\t\t\t}",
"i+1 == H.get(i)",
"i+1",
"i",
"1",
"H.get(i)",
"H.get",
"H",
"i",
"{\n\n\t\t\t}",
"{\n\t\t\t\tSystem.out.println(\"H\" + \" \" + (i+1));\n\t\t\t}",
"System.out.println(\"H\" + \" \" + (i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H\" + \" \" + (i+1)",
"\"H\" + \" \" + (i+1)",
"\"H\"",
"\" \"",
"(i+1)",
"i",
"1",
"for (int i = 0; i < 13; i++) {\n\t\t\tif (i+1 == C.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"C\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif (i+1 == C.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"C\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}",
"{\n\t\t\tif (i+1 == C.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"C\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}",
"if (i+1 == C.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"C\" + \" \" + (i+1));\n\t\t\t}",
"i+1 == C.get(i)",
"i+1",
"i",
"1",
"C.get(i)",
"C.get",
"C",
"i",
"{\n\n\t\t\t}",
"{\n\t\t\t\tSystem.out.println(\"C\" + \" \" + (i+1));\n\t\t\t}",
"System.out.println(\"C\" + \" \" + (i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C\" + \" \" + (i+1)",
"\"C\" + \" \" + (i+1)",
"\"C\"",
"\" \"",
"(i+1)",
"i",
"1",
"for (int i = 0; i < 13; i++) {\n\t\t\tif ((i+1) == D.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"D\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif ((i+1) == D.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"D\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}",
"{\n\t\t\tif ((i+1) == D.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"D\" + \" \" + (i+1));\n\t\t\t}\n\n\t\t}",
"if ((i+1) == D.get(i)) {\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"D\" + \" \" + (i+1));\n\t\t\t}",
"(i+1) == D.get(i)",
"(i+1)",
"i",
"1",
"D.get(i)",
"D.get",
"D",
"i",
"{\n\n\t\t\t}",
"{\n\t\t\t\tSystem.out.println(\"D\" + \" \" + (i+1));\n\t\t\t}",
"System.out.println(\"D\" + \" \" + (i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D\" + \" \" + (i+1)",
"\"D\" + \" \" + (i+1)",
"\"D\"",
"\" \"",
"(i+1)",
"i",
"1",
"String[] args",
"args"
] | import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws IOException {
Scanner scane = new Scanner(System.in);
List<Integer> S = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));
List<Integer> H = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));
List<Integer> C = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));
List<Integer> D = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));
int n = scane.nextInt();
String M = "";
int num = 0;
for (int i = 0; i < n; i++) {
M = scane.next();
num = scane.nextInt();
switch (M) {
case "S":
S.set(num - 1, num);
break;
case "H":
H.set(num - 1, num);
break;
case "C":
C.set(num - 1, num);
break;
case "D":
D.set(num - 1, num);
break;
default:
break;
}
}
for (int i = 0; i < 13; i++) {
if ((i+1) == S.get(i)) {
} else {
System.out.println("S" + " " + (i+1));
}
}
for (int i = 0; i < 13; i++) {
if (i+1 == H.get(i)) {
} else {
System.out.println("H" + " " + (i+1));
}
}
for (int i = 0; i < 13; i++) {
if (i+1 == C.get(i)) {
} else {
System.out.println("C" + " " + (i+1));
}
}
for (int i = 0; i < 13; i++) {
if ((i+1) == D.get(i)) {
} else {
System.out.println("D" + " " + (i+1));
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
20,
42,
2,
13,
17,
30,
4,
18,
13,
13,
0,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
2,
17,
13,
14,
2,
4,
18,
13,
13,
40,
17,
30,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
2,
17,
13,
14,
2,
4,
18,
13,
13,
40,
17,
30,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
2,
17,
13,
14,
2,
4,
18,
13,
13,
40,
17,
30,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
2,
17,
13,
14,
2,
4,
18,
13,
13,
40,
17,
30,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
196,
8
],
[
196,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
11,
42
],
[
42,
43
],
[
42,
44
],
[
11,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
64,
69
],
[
69,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
11,
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
],
[
89,
91
],
[
91,
92
],
[
91,
93
],
[
88,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
95,
100
],
[
100,
101
],
[
94,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
11,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
107,
115
],
[
115,
116
],
[
116,
117
],
[
107,
118
],
[
119,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
122,
124
],
[
119,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
127,
130
],
[
126,
131
],
[
131,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
11,
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
],
[
153,
155
],
[
150,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
158,
161
],
[
157,
162
],
[
162,
163
],
[
156,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
165,
168
],
[
11,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
169,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
169,
179
],
[
179,
180
],
[
180,
181
],
[
169,
182
],
[
183,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
184,
189
],
[
189,
190
],
[
190,
191
],
[
189,
192
],
[
9,
193
],
[
193,
194
],
[
0,
195
],
[
195,
196
],
[
195,
197
]
] | [
"import java.io.*;\nimport java.util.*;\n\npublic class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n str =br.readLine();\n\n ArrayList<String> cards = new ArrayList<String>();\n \n while(str != null){\n cards.add(str);\n str = br.readLine();\n } \n\n ArrayList<String> empty = new ArrayList<String>();\n\n for(int i=1;i<=13;i++){\n String s = \"S \" +i;\n \n if(cards.indexOf(s) == -1){\n empty.add(s);\n }\n \n }\n\n for(int i=1;i<=13;i++){\n \n String h = \"H \" +i;\n \n if(cards.indexOf(h) == -1){\n empty.add(h);\n }\n }\n\n for(int i=1;i<=13;i++){\n\n String c = \"C \" +i;\n\n if(cards.indexOf(c) == -1){\n empty.add(c);\n }\n }\n\n for(int i=1;i<=13;i++){\n \n String d = \"D \" +i;\n \n if(cards.indexOf(d) == -1){\n empty.add(d);\n } \n } \n \n for(int i=0;i<empty.size();i++){\n System.out.println(empty.get(i));\n }\n}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n str =br.readLine();\n\n ArrayList<String> cards = new ArrayList<String>();\n \n while(str != null){\n cards.add(str);\n str = br.readLine();\n } \n\n ArrayList<String> empty = new ArrayList<String>();\n\n for(int i=1;i<=13;i++){\n String s = \"S \" +i;\n \n if(cards.indexOf(s) == -1){\n empty.add(s);\n }\n \n }\n\n for(int i=1;i<=13;i++){\n \n String h = \"H \" +i;\n \n if(cards.indexOf(h) == -1){\n empty.add(h);\n }\n }\n\n for(int i=1;i<=13;i++){\n\n String c = \"C \" +i;\n\n if(cards.indexOf(c) == -1){\n empty.add(c);\n }\n }\n\n for(int i=1;i<=13;i++){\n \n String d = \"D \" +i;\n \n if(cards.indexOf(d) == -1){\n empty.add(d);\n } \n } \n \n for(int i=0;i<empty.size();i++){\n System.out.println(empty.get(i));\n }\n}\n}",
"Main",
"public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n str =br.readLine();\n\n ArrayList<String> cards = new ArrayList<String>();\n \n while(str != null){\n cards.add(str);\n str = br.readLine();\n } \n\n ArrayList<String> empty = new ArrayList<String>();\n\n for(int i=1;i<=13;i++){\n String s = \"S \" +i;\n \n if(cards.indexOf(s) == -1){\n empty.add(s);\n }\n \n }\n\n for(int i=1;i<=13;i++){\n \n String h = \"H \" +i;\n \n if(cards.indexOf(h) == -1){\n empty.add(h);\n }\n }\n\n for(int i=1;i<=13;i++){\n\n String c = \"C \" +i;\n\n if(cards.indexOf(c) == -1){\n empty.add(c);\n }\n }\n\n for(int i=1;i<=13;i++){\n \n String d = \"D \" +i;\n \n if(cards.indexOf(d) == -1){\n empty.add(d);\n } \n } \n \n for(int i=0;i<empty.size();i++){\n System.out.println(empty.get(i));\n }\n}",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n str =br.readLine();\n\n ArrayList<String> cards = new ArrayList<String>();\n \n while(str != null){\n cards.add(str);\n str = br.readLine();\n } \n\n ArrayList<String> empty = new ArrayList<String>();\n\n for(int i=1;i<=13;i++){\n String s = \"S \" +i;\n \n if(cards.indexOf(s) == -1){\n empty.add(s);\n }\n \n }\n\n for(int i=1;i<=13;i++){\n \n String h = \"H \" +i;\n \n if(cards.indexOf(h) == -1){\n empty.add(h);\n }\n }\n\n for(int i=1;i<=13;i++){\n\n String c = \"C \" +i;\n\n if(cards.indexOf(c) == -1){\n empty.add(c);\n }\n }\n\n for(int i=1;i<=13;i++){\n \n String d = \"D \" +i;\n \n if(cards.indexOf(d) == -1){\n empty.add(d);\n } \n } \n \n for(int i=0;i<empty.size();i++){\n System.out.println(empty.get(i));\n }\n}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"str =br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"ArrayList<String> cards = new ArrayList<String>();",
"cards",
"new ArrayList<String>()",
"while(str != null){\n cards.add(str);\n str = br.readLine();\n }",
"str != null",
"str",
"null",
"{\n cards.add(str);\n str = br.readLine();\n }",
"cards.add(str)",
"cards.add",
"cards",
"str",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"ArrayList<String> empty = new ArrayList<String>();",
"empty",
"new ArrayList<String>()",
"for(int i=1;i<=13;i++){\n String s = \"S \" +i;\n \n if(cards.indexOf(s) == -1){\n empty.add(s);\n }\n \n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=13",
"i",
"13",
"i++",
"i++",
"i",
"{\n String s = \"S \" +i;\n \n if(cards.indexOf(s) == -1){\n empty.add(s);\n }\n \n }",
"{\n String s = \"S \" +i;\n \n if(cards.indexOf(s) == -1){\n empty.add(s);\n }\n \n }",
"String s = \"S \" +i;",
"s",
"\"S \" +i",
"\"S \"",
"i",
"if(cards.indexOf(s) == -1){\n empty.add(s);\n }",
"cards.indexOf(s) == -1",
"cards.indexOf(s)",
"cards.indexOf",
"cards",
"s",
"-1",
"1",
"{\n empty.add(s);\n }",
"empty.add(s)",
"empty.add",
"empty",
"s",
"for(int i=1;i<=13;i++){\n \n String h = \"H \" +i;\n \n if(cards.indexOf(h) == -1){\n empty.add(h);\n }\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=13",
"i",
"13",
"i++",
"i++",
"i",
"{\n \n String h = \"H \" +i;\n \n if(cards.indexOf(h) == -1){\n empty.add(h);\n }\n }",
"{\n \n String h = \"H \" +i;\n \n if(cards.indexOf(h) == -1){\n empty.add(h);\n }\n }",
"String h = \"H \" +i;",
"h",
"\"H \" +i",
"\"H \"",
"i",
"if(cards.indexOf(h) == -1){\n empty.add(h);\n }",
"cards.indexOf(h) == -1",
"cards.indexOf(h)",
"cards.indexOf",
"cards",
"h",
"-1",
"1",
"{\n empty.add(h);\n }",
"empty.add(h)",
"empty.add",
"empty",
"h",
"for(int i=1;i<=13;i++){\n\n String c = \"C \" +i;\n\n if(cards.indexOf(c) == -1){\n empty.add(c);\n }\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\n String c = \"C \" +i;\n\n if(cards.indexOf(c) == -1){\n empty.add(c);\n }\n }",
"{\n\n String c = \"C \" +i;\n\n if(cards.indexOf(c) == -1){\n empty.add(c);\n }\n }",
"String c = \"C \" +i;",
"c",
"\"C \" +i",
"\"C \"",
"i",
"if(cards.indexOf(c) == -1){\n empty.add(c);\n }",
"cards.indexOf(c) == -1",
"cards.indexOf(c)",
"cards.indexOf",
"cards",
"c",
"-1",
"1",
"{\n empty.add(c);\n }",
"empty.add(c)",
"empty.add",
"empty",
"c",
"for(int i=1;i<=13;i++){\n \n String d = \"D \" +i;\n \n if(cards.indexOf(d) == -1){\n empty.add(d);\n } \n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=13",
"i",
"13",
"i++",
"i++",
"i",
"{\n \n String d = \"D \" +i;\n \n if(cards.indexOf(d) == -1){\n empty.add(d);\n } \n }",
"{\n \n String d = \"D \" +i;\n \n if(cards.indexOf(d) == -1){\n empty.add(d);\n } \n }",
"String d = \"D \" +i;",
"d",
"\"D \" +i",
"\"D \"",
"i",
"if(cards.indexOf(d) == -1){\n empty.add(d);\n }",
"cards.indexOf(d) == -1",
"cards.indexOf(d)",
"cards.indexOf",
"cards",
"d",
"-1",
"1",
"{\n empty.add(d);\n }",
"empty.add(d)",
"empty.add",
"empty",
"d",
"for(int i=0;i<empty.size();i++){\n System.out.println(empty.get(i));\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<empty.size()",
"i",
"empty.size()",
"empty.size",
"empty",
"i++",
"i++",
"i",
"{\n System.out.println(empty.get(i));\n }",
"{\n System.out.println(empty.get(i));\n }",
"System.out.println(empty.get(i))",
"System.out.println",
"System.out",
"System",
"System.out",
"empty.get(i)",
"empty.get",
"empty",
"i",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n str =br.readLine();\n\n ArrayList<String> cards = new ArrayList<String>();\n \n while(str != null){\n cards.add(str);\n str = br.readLine();\n } \n\n ArrayList<String> empty = new ArrayList<String>();\n\n for(int i=1;i<=13;i++){\n String s = \"S \" +i;\n \n if(cards.indexOf(s) == -1){\n empty.add(s);\n }\n \n }\n\n for(int i=1;i<=13;i++){\n \n String h = \"H \" +i;\n \n if(cards.indexOf(h) == -1){\n empty.add(h);\n }\n }\n\n for(int i=1;i<=13;i++){\n\n String c = \"C \" +i;\n\n if(cards.indexOf(c) == -1){\n empty.add(c);\n }\n }\n\n for(int i=1;i<=13;i++){\n \n String d = \"D \" +i;\n \n if(cards.indexOf(d) == -1){\n empty.add(d);\n } \n } \n \n for(int i=0;i<empty.size();i++){\n System.out.println(empty.get(i));\n }\n}\n}",
"public class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n str =br.readLine();\n\n ArrayList<String> cards = new ArrayList<String>();\n \n while(str != null){\n cards.add(str);\n str = br.readLine();\n } \n\n ArrayList<String> empty = new ArrayList<String>();\n\n for(int i=1;i<=13;i++){\n String s = \"S \" +i;\n \n if(cards.indexOf(s) == -1){\n empty.add(s);\n }\n \n }\n\n for(int i=1;i<=13;i++){\n \n String h = \"H \" +i;\n \n if(cards.indexOf(h) == -1){\n empty.add(h);\n }\n }\n\n for(int i=1;i<=13;i++){\n\n String c = \"C \" +i;\n\n if(cards.indexOf(c) == -1){\n empty.add(c);\n }\n }\n\n for(int i=1;i<=13;i++){\n \n String d = \"D \" +i;\n \n if(cards.indexOf(d) == -1){\n empty.add(d);\n } \n } \n \n for(int i=0;i<empty.size();i++){\n System.out.println(empty.get(i));\n }\n}\n}",
"Main"
] | import java.io.*;
import java.util.*;
public class Main{
public static void main(String[] args)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
str =br.readLine();
ArrayList<String> cards = new ArrayList<String>();
while(str != null){
cards.add(str);
str = br.readLine();
}
ArrayList<String> empty = new ArrayList<String>();
for(int i=1;i<=13;i++){
String s = "S " +i;
if(cards.indexOf(s) == -1){
empty.add(s);
}
}
for(int i=1;i<=13;i++){
String h = "H " +i;
if(cards.indexOf(h) == -1){
empty.add(h);
}
}
for(int i=1;i<=13;i++){
String c = "C " +i;
if(cards.indexOf(c) == -1){
empty.add(c);
}
}
for(int i=1;i<=13;i++){
String d = "D " +i;
if(cards.indexOf(d) == -1){
empty.add(d);
}
}
for(int i=0;i<empty.size();i++){
System.out.println(empty.get(i));
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
20,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
17,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
2,
13,
17,
17,
17,
40,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
14,
2,
13,
17,
30,
4,
18,
13,
17,
14,
2,
13,
17,
30,
4,
18,
13,
17,
14,
2,
13,
17,
30,
4,
18,
13,
17,
14,
2,
13,
17,
30,
4,
18,
13,
17,
4,
18,
13,
2,
13,
17,
40,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
261,
5
],
[
261,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
49,
55
],
[
8,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
8,
61
],
[
61,
62
],
[
61,
63
],
[
8,
64
],
[
64,
65
],
[
64,
66
],
[
8,
67
],
[
67,
68
],
[
67,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
74,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
74,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
85,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
92,
98
],
[
91,
99
],
[
85,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
100,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
110,
112
],
[
107,
113
],
[
106,
114
],
[
100,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
115,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
125,
127
],
[
122,
128
],
[
121,
129
],
[
115,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
130,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
140,
142
],
[
137,
143
],
[
136,
144
],
[
74,
145
],
[
145,
146
],
[
8,
147
],
[
147,
148
],
[
147,
149
],
[
8,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
150,
155
],
[
155,
156
],
[
155,
157
],
[
150,
158
],
[
158,
159
],
[
159,
160
],
[
150,
161
],
[
162,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
168,
169
],
[
168,
170
],
[
163,
171
],
[
171,
172
],
[
172,
173
],
[
163,
174
],
[
175,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
182
],
[
177,
183
],
[
176,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
185,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
190,
193
],
[
185,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
194,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
199,
202
],
[
194,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
203,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
208,
211
],
[
203,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
212,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
217,
220
],
[
184,
221
],
[
221,
222
],
[
222,
223
],
[
221,
224
],
[
224,
225
],
[
224,
226
],
[
184,
227
],
[
227,
228
],
[
8,
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
],
[
248,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
249,
252
],
[
248,
253
],
[
248,
254
],
[
254,
255
],
[
255,
256
],
[
254,
257
],
[
6,
258
],
[
258,
259
],
[
0,
260
],
[
260,
261
],
[
260,
262
]
] | [
"import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tLinkedList<String> picList = new LinkedList<>();\n\t\tLinkedList<Integer> numList = new LinkedList<>();\n\t\t\n\t\tint trpData[][] = new int[13][4];\n\t\t//???????????£??\\\n\t\tfor(int j = 0; j < 4; j++) {\n\t\t\tfor(int i = 0; i < 13; i++) {\n\t\t\t\ttrpData[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tint i = 0;\n\t\tString pic = \"\";\n\t\tint num = 0;\n\t\t//????????°??????\n\t\twhile(i < n) {\n\t\t\tpic = sc.next();\n\t\t\tnum = sc.nextInt();\n\t\t\tif(pic.equals(\"S\")) {\n\t\t\t\ttrpData[num-1][0] = 1;\n\t\t\t} else if(pic.equals(\"H\")) {\n\t\t\t\ttrpData[num-1][1] = 1;\n\t\t\t} else if(pic.equals(\"C\")) {\n\t\t\t\ttrpData[num-1][2] = 1;\n\t\t\t} else if(pic.equals(\"D\")) {\n\t\t\t\ttrpData[num-1][3] = 1;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t//?????????????´?\n\t\tint cnt = 0;\n\t\tfor(int j = 0; j < 4; j++) {\n\t\t\tfor(i = 0; i < 13; i++) {\n\t\t\t\tif(trpData[i][j] == 0) {\n\t\t\t\t\tif(j == 0) {\n\t\t\t\t\t\tpicList.add(\"S\"); \n\t\t\t\t\t} else if(j == 1) {\n\t\t\t\t\t\tpicList.add(\"H\"); \n\t\t\t\t\t} else if(j == 2) {\n\t\t\t\t\t\tpicList.add(\"C\"); \n\t\t\t\t\t} else if(j == 3) {\n\t\t\t\t\t\tpicList.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t\tnumList.add(i+1);\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//\n\t\tfor(i = 0; i < cnt; i++) {\n\t\t\tSystem.out.println(picList.get(i) + \" \" + numList.get(i));\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tLinkedList<String> picList = new LinkedList<>();\n\t\tLinkedList<Integer> numList = new LinkedList<>();\n\t\t\n\t\tint trpData[][] = new int[13][4];\n\t\t//???????????£??\\\n\t\tfor(int j = 0; j < 4; j++) {\n\t\t\tfor(int i = 0; i < 13; i++) {\n\t\t\t\ttrpData[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tint i = 0;\n\t\tString pic = \"\";\n\t\tint num = 0;\n\t\t//????????°??????\n\t\twhile(i < n) {\n\t\t\tpic = sc.next();\n\t\t\tnum = sc.nextInt();\n\t\t\tif(pic.equals(\"S\")) {\n\t\t\t\ttrpData[num-1][0] = 1;\n\t\t\t} else if(pic.equals(\"H\")) {\n\t\t\t\ttrpData[num-1][1] = 1;\n\t\t\t} else if(pic.equals(\"C\")) {\n\t\t\t\ttrpData[num-1][2] = 1;\n\t\t\t} else if(pic.equals(\"D\")) {\n\t\t\t\ttrpData[num-1][3] = 1;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t//?????????????´?\n\t\tint cnt = 0;\n\t\tfor(int j = 0; j < 4; j++) {\n\t\t\tfor(i = 0; i < 13; i++) {\n\t\t\t\tif(trpData[i][j] == 0) {\n\t\t\t\t\tif(j == 0) {\n\t\t\t\t\t\tpicList.add(\"S\"); \n\t\t\t\t\t} else if(j == 1) {\n\t\t\t\t\t\tpicList.add(\"H\"); \n\t\t\t\t\t} else if(j == 2) {\n\t\t\t\t\t\tpicList.add(\"C\"); \n\t\t\t\t\t} else if(j == 3) {\n\t\t\t\t\t\tpicList.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t\tnumList.add(i+1);\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//\n\t\tfor(i = 0; i < cnt; i++) {\n\t\t\tSystem.out.println(picList.get(i) + \" \" + numList.get(i));\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tLinkedList<String> picList = new LinkedList<>();\n\t\tLinkedList<Integer> numList = new LinkedList<>();\n\t\t\n\t\tint trpData[][] = new int[13][4];\n\t\t//???????????£??\\\n\t\tfor(int j = 0; j < 4; j++) {\n\t\t\tfor(int i = 0; i < 13; i++) {\n\t\t\t\ttrpData[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tint i = 0;\n\t\tString pic = \"\";\n\t\tint num = 0;\n\t\t//????????°??????\n\t\twhile(i < n) {\n\t\t\tpic = sc.next();\n\t\t\tnum = sc.nextInt();\n\t\t\tif(pic.equals(\"S\")) {\n\t\t\t\ttrpData[num-1][0] = 1;\n\t\t\t} else if(pic.equals(\"H\")) {\n\t\t\t\ttrpData[num-1][1] = 1;\n\t\t\t} else if(pic.equals(\"C\")) {\n\t\t\t\ttrpData[num-1][2] = 1;\n\t\t\t} else if(pic.equals(\"D\")) {\n\t\t\t\ttrpData[num-1][3] = 1;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t//?????????????´?\n\t\tint cnt = 0;\n\t\tfor(int j = 0; j < 4; j++) {\n\t\t\tfor(i = 0; i < 13; i++) {\n\t\t\t\tif(trpData[i][j] == 0) {\n\t\t\t\t\tif(j == 0) {\n\t\t\t\t\t\tpicList.add(\"S\"); \n\t\t\t\t\t} else if(j == 1) {\n\t\t\t\t\t\tpicList.add(\"H\"); \n\t\t\t\t\t} else if(j == 2) {\n\t\t\t\t\t\tpicList.add(\"C\"); \n\t\t\t\t\t} else if(j == 3) {\n\t\t\t\t\t\tpicList.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t\tnumList.add(i+1);\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//\n\t\tfor(i = 0; i < cnt; i++) {\n\t\t\tSystem.out.println(picList.get(i) + \" \" + numList.get(i));\n\t\t}\n\t}",
"main",
"{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tLinkedList<String> picList = new LinkedList<>();\n\t\tLinkedList<Integer> numList = new LinkedList<>();\n\t\t\n\t\tint trpData[][] = new int[13][4];\n\t\t//???????????£??\\\n\t\tfor(int j = 0; j < 4; j++) {\n\t\t\tfor(int i = 0; i < 13; i++) {\n\t\t\t\ttrpData[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tint i = 0;\n\t\tString pic = \"\";\n\t\tint num = 0;\n\t\t//????????°??????\n\t\twhile(i < n) {\n\t\t\tpic = sc.next();\n\t\t\tnum = sc.nextInt();\n\t\t\tif(pic.equals(\"S\")) {\n\t\t\t\ttrpData[num-1][0] = 1;\n\t\t\t} else if(pic.equals(\"H\")) {\n\t\t\t\ttrpData[num-1][1] = 1;\n\t\t\t} else if(pic.equals(\"C\")) {\n\t\t\t\ttrpData[num-1][2] = 1;\n\t\t\t} else if(pic.equals(\"D\")) {\n\t\t\t\ttrpData[num-1][3] = 1;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t//?????????????´?\n\t\tint cnt = 0;\n\t\tfor(int j = 0; j < 4; j++) {\n\t\t\tfor(i = 0; i < 13; i++) {\n\t\t\t\tif(trpData[i][j] == 0) {\n\t\t\t\t\tif(j == 0) {\n\t\t\t\t\t\tpicList.add(\"S\"); \n\t\t\t\t\t} else if(j == 1) {\n\t\t\t\t\t\tpicList.add(\"H\"); \n\t\t\t\t\t} else if(j == 2) {\n\t\t\t\t\t\tpicList.add(\"C\"); \n\t\t\t\t\t} else if(j == 3) {\n\t\t\t\t\t\tpicList.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t\tnumList.add(i+1);\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//\n\t\tfor(i = 0; i < cnt; i++) {\n\t\t\tSystem.out.println(picList.get(i) + \" \" + numList.get(i));\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"LinkedList<String> picList = new LinkedList<>();",
"picList",
"new LinkedList<>()",
"LinkedList<Integer> numList = new LinkedList<>();",
"numList",
"new LinkedList<>()",
"int trpData[][] = new int[13][4];",
"trpData",
"new int[13][4]",
"13",
"4",
"for(int j = 0; j < 4; j++) {\n\t\t\tfor(int i = 0; i < 13; i++) {\n\t\t\t\ttrpData[i][j] = 0;\n\t\t\t}\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 4",
"j",
"4",
"j++",
"j++",
"j",
"{\n\t\t\tfor(int i = 0; i < 13; i++) {\n\t\t\t\ttrpData[i][j] = 0;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int i = 0; i < 13; i++) {\n\t\t\t\ttrpData[i][j] = 0;\n\t\t\t}\n\t\t}",
"for(int i = 0; i < 13; i++) {\n\t\t\t\ttrpData[i][j] = 0;\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\t\ttrpData[i][j] = 0;\n\t\t\t}",
"{\n\t\t\t\ttrpData[i][j] = 0;\n\t\t\t}",
"trpData[i][j] = 0",
"trpData[i][j]",
"trpData[i]",
"trpData",
"i",
"j",
"0",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int i = 0;",
"i",
"0",
"String pic = \"\";",
"pic",
"\"\"",
"int num = 0;",
"num",
"0",
"while(i < n) {\n\t\t\tpic = sc.next();\n\t\t\tnum = sc.nextInt();\n\t\t\tif(pic.equals(\"S\")) {\n\t\t\t\ttrpData[num-1][0] = 1;\n\t\t\t} else if(pic.equals(\"H\")) {\n\t\t\t\ttrpData[num-1][1] = 1;\n\t\t\t} else if(pic.equals(\"C\")) {\n\t\t\t\ttrpData[num-1][2] = 1;\n\t\t\t} else if(pic.equals(\"D\")) {\n\t\t\t\ttrpData[num-1][3] = 1;\n\t\t\t}\n\t\t\ti++;\n\t\t}",
"i < n",
"i",
"n",
"{\n\t\t\tpic = sc.next();\n\t\t\tnum = sc.nextInt();\n\t\t\tif(pic.equals(\"S\")) {\n\t\t\t\ttrpData[num-1][0] = 1;\n\t\t\t} else if(pic.equals(\"H\")) {\n\t\t\t\ttrpData[num-1][1] = 1;\n\t\t\t} else if(pic.equals(\"C\")) {\n\t\t\t\ttrpData[num-1][2] = 1;\n\t\t\t} else if(pic.equals(\"D\")) {\n\t\t\t\ttrpData[num-1][3] = 1;\n\t\t\t}\n\t\t\ti++;\n\t\t}",
"pic = sc.next()",
"pic",
"sc.next()",
"sc.next",
"sc",
"num = sc.nextInt()",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(pic.equals(\"S\")) {\n\t\t\t\ttrpData[num-1][0] = 1;\n\t\t\t} else if(pic.equals(\"H\")) {\n\t\t\t\ttrpData[num-1][1] = 1;\n\t\t\t} else if(pic.equals(\"C\")) {\n\t\t\t\ttrpData[num-1][2] = 1;\n\t\t\t} else if(pic.equals(\"D\")) {\n\t\t\t\ttrpData[num-1][3] = 1;\n\t\t\t}",
"pic.equals(\"S\")",
"pic.equals",
"pic",
"\"S\"",
"{\n\t\t\t\ttrpData[num-1][0] = 1;\n\t\t\t}",
"trpData[num-1][0] = 1",
"trpData[num-1][0]",
"trpData[num-1]",
"trpData",
"num-1",
"num",
"1",
"0",
"1",
"if(pic.equals(\"H\")) {\n\t\t\t\ttrpData[num-1][1] = 1;\n\t\t\t} else if(pic.equals(\"C\")) {\n\t\t\t\ttrpData[num-1][2] = 1;\n\t\t\t} else if(pic.equals(\"D\")) {\n\t\t\t\ttrpData[num-1][3] = 1;\n\t\t\t}",
"pic.equals(\"H\")",
"pic.equals",
"pic",
"\"H\"",
"{\n\t\t\t\ttrpData[num-1][1] = 1;\n\t\t\t}",
"trpData[num-1][1] = 1",
"trpData[num-1][1]",
"trpData[num-1]",
"trpData",
"num-1",
"num",
"1",
"1",
"1",
"if(pic.equals(\"C\")) {\n\t\t\t\ttrpData[num-1][2] = 1;\n\t\t\t} else if(pic.equals(\"D\")) {\n\t\t\t\ttrpData[num-1][3] = 1;\n\t\t\t}",
"pic.equals(\"C\")",
"pic.equals",
"pic",
"\"C\"",
"{\n\t\t\t\ttrpData[num-1][2] = 1;\n\t\t\t}",
"trpData[num-1][2] = 1",
"trpData[num-1][2]",
"trpData[num-1]",
"trpData",
"num-1",
"num",
"1",
"2",
"1",
"if(pic.equals(\"D\")) {\n\t\t\t\ttrpData[num-1][3] = 1;\n\t\t\t}",
"pic.equals(\"D\")",
"pic.equals",
"pic",
"\"D\"",
"{\n\t\t\t\ttrpData[num-1][3] = 1;\n\t\t\t}",
"trpData[num-1][3] = 1",
"trpData[num-1][3]",
"trpData[num-1]",
"trpData",
"num-1",
"num",
"1",
"3",
"1",
"i++",
"i",
"int cnt = 0;",
"cnt",
"0",
"for(int j = 0; j < 4; j++) {\n\t\t\tfor(i = 0; i < 13; i++) {\n\t\t\t\tif(trpData[i][j] == 0) {\n\t\t\t\t\tif(j == 0) {\n\t\t\t\t\t\tpicList.add(\"S\"); \n\t\t\t\t\t} else if(j == 1) {\n\t\t\t\t\t\tpicList.add(\"H\"); \n\t\t\t\t\t} else if(j == 2) {\n\t\t\t\t\t\tpicList.add(\"C\"); \n\t\t\t\t\t} else if(j == 3) {\n\t\t\t\t\t\tpicList.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t\tnumList.add(i+1);\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 4",
"j",
"4",
"j++",
"j++",
"j",
"{\n\t\t\tfor(i = 0; i < 13; i++) {\n\t\t\t\tif(trpData[i][j] == 0) {\n\t\t\t\t\tif(j == 0) {\n\t\t\t\t\t\tpicList.add(\"S\"); \n\t\t\t\t\t} else if(j == 1) {\n\t\t\t\t\t\tpicList.add(\"H\"); \n\t\t\t\t\t} else if(j == 2) {\n\t\t\t\t\t\tpicList.add(\"C\"); \n\t\t\t\t\t} else if(j == 3) {\n\t\t\t\t\t\tpicList.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t\tnumList.add(i+1);\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(i = 0; i < 13; i++) {\n\t\t\t\tif(trpData[i][j] == 0) {\n\t\t\t\t\tif(j == 0) {\n\t\t\t\t\t\tpicList.add(\"S\"); \n\t\t\t\t\t} else if(j == 1) {\n\t\t\t\t\t\tpicList.add(\"H\"); \n\t\t\t\t\t} else if(j == 2) {\n\t\t\t\t\t\tpicList.add(\"C\"); \n\t\t\t\t\t} else if(j == 3) {\n\t\t\t\t\t\tpicList.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t\tnumList.add(i+1);\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(i = 0; i < 13; i++) {\n\t\t\t\tif(trpData[i][j] == 0) {\n\t\t\t\t\tif(j == 0) {\n\t\t\t\t\t\tpicList.add(\"S\"); \n\t\t\t\t\t} else if(j == 1) {\n\t\t\t\t\t\tpicList.add(\"H\"); \n\t\t\t\t\t} else if(j == 2) {\n\t\t\t\t\t\tpicList.add(\"C\"); \n\t\t\t\t\t} else if(j == 3) {\n\t\t\t\t\t\tpicList.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t\tnumList.add(i+1);\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(trpData[i][j] == 0) {\n\t\t\t\t\tif(j == 0) {\n\t\t\t\t\t\tpicList.add(\"S\"); \n\t\t\t\t\t} else if(j == 1) {\n\t\t\t\t\t\tpicList.add(\"H\"); \n\t\t\t\t\t} else if(j == 2) {\n\t\t\t\t\t\tpicList.add(\"C\"); \n\t\t\t\t\t} else if(j == 3) {\n\t\t\t\t\t\tpicList.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t\tnumList.add(i+1);\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(trpData[i][j] == 0) {\n\t\t\t\t\tif(j == 0) {\n\t\t\t\t\t\tpicList.add(\"S\"); \n\t\t\t\t\t} else if(j == 1) {\n\t\t\t\t\t\tpicList.add(\"H\"); \n\t\t\t\t\t} else if(j == 2) {\n\t\t\t\t\t\tpicList.add(\"C\"); \n\t\t\t\t\t} else if(j == 3) {\n\t\t\t\t\t\tpicList.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t\tnumList.add(i+1);\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}",
"if(trpData[i][j] == 0) {\n\t\t\t\t\tif(j == 0) {\n\t\t\t\t\t\tpicList.add(\"S\"); \n\t\t\t\t\t} else if(j == 1) {\n\t\t\t\t\t\tpicList.add(\"H\"); \n\t\t\t\t\t} else if(j == 2) {\n\t\t\t\t\t\tpicList.add(\"C\"); \n\t\t\t\t\t} else if(j == 3) {\n\t\t\t\t\t\tpicList.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t\tnumList.add(i+1);\n\t\t\t\t\tcnt++;\n\t\t\t\t}",
"trpData[i][j] == 0",
"trpData[i][j]",
"trpData[i]",
"trpData",
"i",
"j",
"0",
"{\n\t\t\t\t\tif(j == 0) {\n\t\t\t\t\t\tpicList.add(\"S\"); \n\t\t\t\t\t} else if(j == 1) {\n\t\t\t\t\t\tpicList.add(\"H\"); \n\t\t\t\t\t} else if(j == 2) {\n\t\t\t\t\t\tpicList.add(\"C\"); \n\t\t\t\t\t} else if(j == 3) {\n\t\t\t\t\t\tpicList.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t\tnumList.add(i+1);\n\t\t\t\t\tcnt++;\n\t\t\t\t}",
"if(j == 0) {\n\t\t\t\t\t\tpicList.add(\"S\"); \n\t\t\t\t\t} else if(j == 1) {\n\t\t\t\t\t\tpicList.add(\"H\"); \n\t\t\t\t\t} else if(j == 2) {\n\t\t\t\t\t\tpicList.add(\"C\"); \n\t\t\t\t\t} else if(j == 3) {\n\t\t\t\t\t\tpicList.add(\"D\");\n\t\t\t\t\t}",
"j == 0",
"j",
"0",
"{\n\t\t\t\t\t\tpicList.add(\"S\"); \n\t\t\t\t\t}",
"picList.add(\"S\")",
"picList.add",
"picList",
"\"S\"",
"if(j == 1) {\n\t\t\t\t\t\tpicList.add(\"H\"); \n\t\t\t\t\t} else if(j == 2) {\n\t\t\t\t\t\tpicList.add(\"C\"); \n\t\t\t\t\t} else if(j == 3) {\n\t\t\t\t\t\tpicList.add(\"D\");\n\t\t\t\t\t}",
"j == 1",
"j",
"1",
"{\n\t\t\t\t\t\tpicList.add(\"H\"); \n\t\t\t\t\t}",
"picList.add(\"H\")",
"picList.add",
"picList",
"\"H\"",
"if(j == 2) {\n\t\t\t\t\t\tpicList.add(\"C\"); \n\t\t\t\t\t} else if(j == 3) {\n\t\t\t\t\t\tpicList.add(\"D\");\n\t\t\t\t\t}",
"j == 2",
"j",
"2",
"{\n\t\t\t\t\t\tpicList.add(\"C\"); \n\t\t\t\t\t}",
"picList.add(\"C\")",
"picList.add",
"picList",
"\"C\"",
"if(j == 3) {\n\t\t\t\t\t\tpicList.add(\"D\");\n\t\t\t\t\t}",
"j == 3",
"j",
"3",
"{\n\t\t\t\t\t\tpicList.add(\"D\");\n\t\t\t\t\t}",
"picList.add(\"D\")",
"picList.add",
"picList",
"\"D\"",
"numList.add(i+1)",
"numList.add",
"numList",
"i+1",
"i",
"1",
"cnt++",
"cnt",
"for(i = 0; i < cnt; i++) {\n\t\t\tSystem.out.println(picList.get(i) + \" \" + numList.get(i));\n\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < cnt",
"i",
"cnt",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(picList.get(i) + \" \" + numList.get(i));\n\t\t}",
"{\n\t\t\tSystem.out.println(picList.get(i) + \" \" + numList.get(i));\n\t\t}",
"System.out.println(picList.get(i) + \" \" + numList.get(i))",
"System.out.println",
"System.out",
"System",
"System.out",
"picList.get(i) + \" \" + numList.get(i)",
"picList.get(i) + \" \" + numList.get(i)",
"picList.get(i)",
"picList.get",
"picList",
"i",
"\" \"",
"numList.get(i)",
"numList.get",
"numList",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tLinkedList<String> picList = new LinkedList<>();\n\t\tLinkedList<Integer> numList = new LinkedList<>();\n\t\t\n\t\tint trpData[][] = new int[13][4];\n\t\t//???????????£??\\\n\t\tfor(int j = 0; j < 4; j++) {\n\t\t\tfor(int i = 0; i < 13; i++) {\n\t\t\t\ttrpData[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tint i = 0;\n\t\tString pic = \"\";\n\t\tint num = 0;\n\t\t//????????°??????\n\t\twhile(i < n) {\n\t\t\tpic = sc.next();\n\t\t\tnum = sc.nextInt();\n\t\t\tif(pic.equals(\"S\")) {\n\t\t\t\ttrpData[num-1][0] = 1;\n\t\t\t} else if(pic.equals(\"H\")) {\n\t\t\t\ttrpData[num-1][1] = 1;\n\t\t\t} else if(pic.equals(\"C\")) {\n\t\t\t\ttrpData[num-1][2] = 1;\n\t\t\t} else if(pic.equals(\"D\")) {\n\t\t\t\ttrpData[num-1][3] = 1;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t//?????????????´?\n\t\tint cnt = 0;\n\t\tfor(int j = 0; j < 4; j++) {\n\t\t\tfor(i = 0; i < 13; i++) {\n\t\t\t\tif(trpData[i][j] == 0) {\n\t\t\t\t\tif(j == 0) {\n\t\t\t\t\t\tpicList.add(\"S\"); \n\t\t\t\t\t} else if(j == 1) {\n\t\t\t\t\t\tpicList.add(\"H\"); \n\t\t\t\t\t} else if(j == 2) {\n\t\t\t\t\t\tpicList.add(\"C\"); \n\t\t\t\t\t} else if(j == 3) {\n\t\t\t\t\t\tpicList.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t\tnumList.add(i+1);\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//\n\t\tfor(i = 0; i < cnt; i++) {\n\t\t\tSystem.out.println(picList.get(i) + \" \" + numList.get(i));\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tLinkedList<String> picList = new LinkedList<>();\n\t\tLinkedList<Integer> numList = new LinkedList<>();\n\t\t\n\t\tint trpData[][] = new int[13][4];\n\t\t//???????????£??\\\n\t\tfor(int j = 0; j < 4; j++) {\n\t\t\tfor(int i = 0; i < 13; i++) {\n\t\t\t\ttrpData[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tint i = 0;\n\t\tString pic = \"\";\n\t\tint num = 0;\n\t\t//????????°??????\n\t\twhile(i < n) {\n\t\t\tpic = sc.next();\n\t\t\tnum = sc.nextInt();\n\t\t\tif(pic.equals(\"S\")) {\n\t\t\t\ttrpData[num-1][0] = 1;\n\t\t\t} else if(pic.equals(\"H\")) {\n\t\t\t\ttrpData[num-1][1] = 1;\n\t\t\t} else if(pic.equals(\"C\")) {\n\t\t\t\ttrpData[num-1][2] = 1;\n\t\t\t} else if(pic.equals(\"D\")) {\n\t\t\t\ttrpData[num-1][3] = 1;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t//?????????????´?\n\t\tint cnt = 0;\n\t\tfor(int j = 0; j < 4; j++) {\n\t\t\tfor(i = 0; i < 13; i++) {\n\t\t\t\tif(trpData[i][j] == 0) {\n\t\t\t\t\tif(j == 0) {\n\t\t\t\t\t\tpicList.add(\"S\"); \n\t\t\t\t\t} else if(j == 1) {\n\t\t\t\t\t\tpicList.add(\"H\"); \n\t\t\t\t\t} else if(j == 2) {\n\t\t\t\t\t\tpicList.add(\"C\"); \n\t\t\t\t\t} else if(j == 3) {\n\t\t\t\t\t\tpicList.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t\tnumList.add(i+1);\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//\n\t\tfor(i = 0; i < cnt; i++) {\n\t\t\tSystem.out.println(picList.get(i) + \" \" + numList.get(i));\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);
LinkedList<String> picList = new LinkedList<>();
LinkedList<Integer> numList = new LinkedList<>();
int trpData[][] = new int[13][4];
//???????????£??\
for(int j = 0; j < 4; j++) {
for(int i = 0; i < 13; i++) {
trpData[i][j] = 0;
}
}
int n = sc.nextInt();
int i = 0;
String pic = "";
int num = 0;
//????????°??????
while(i < n) {
pic = sc.next();
num = sc.nextInt();
if(pic.equals("S")) {
trpData[num-1][0] = 1;
} else if(pic.equals("H")) {
trpData[num-1][1] = 1;
} else if(pic.equals("C")) {
trpData[num-1][2] = 1;
} else if(pic.equals("D")) {
trpData[num-1][3] = 1;
}
i++;
}
//?????????????´?
int cnt = 0;
for(int j = 0; j < 4; j++) {
for(i = 0; i < 13; i++) {
if(trpData[i][j] == 0) {
if(j == 0) {
picList.add("S");
} else if(j == 1) {
picList.add("H");
} else if(j == 2) {
picList.add("C");
} else if(j == 3) {
picList.add("D");
}
numList.add(i+1);
cnt++;
}
}
}
//
for(i = 0; i < cnt; i++) {
System.out.println(picList.get(i) + " " + numList.get(i));
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
39,
17,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
2,
2,
2,
13,
17,
13,
17,
2,
2,
18,
13,
13,
17,
13,
0,
18,
13,
2,
2,
2,
13,
17,
13,
17,
17,
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,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
13,
18,
13,
13,
30,
0,
18,
13,
13,
17,
3,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
40,
18,
13,
13,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
176,
11
],
[
176,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
30
],
[
30,
31
],
[
30,
32
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
38
],
[
36,
39
],
[
36,
40
],
[
14,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
41,
51
],
[
51,
52
],
[
52,
53
],
[
41,
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
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
72,
78
],
[
69,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
80,
85
],
[
68,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
89,
95
],
[
86,
96
],
[
14,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
97,
105
],
[
105,
106
],
[
106,
107
],
[
97,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
109,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
122,
124
],
[
115,
125
],
[
125,
126
],
[
126,
127
],
[
115,
128
],
[
129,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
134,
135
],
[
134,
136
],
[
130,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
137,
143
],
[
14,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
144,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
151,
153
],
[
144,
154
],
[
154,
155
],
[
155,
156
],
[
144,
157
],
[
158,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
159,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
165,
170
],
[
170,
171
],
[
170,
172
],
[
12,
173
],
[
173,
174
],
[
0,
175
],
[
175,
176
],
[
175,
177
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n\t\tString[] cards = new String[52];\n\t\tBoolean[] flags = new Boolean[52];\n\n\t\tString[] suit = {\"S\",\"H\",\"C\",\"D\"};\n\n\t\tfor(int i=0 ; i<suit.length; i++) {\n\t\t\tfor (int num=1; num<=13; num++){\n\t\t\t\tcards[i*13 + num-1] = suit[i] + \" \" + num;\n\t\t\t\tflags[i*13 + num-1] = false;\n\t\t\t}\n\t\t}\n\n\t\tfor(int j = 0; j<N; j++){\n\t\t\tString set = br.readLine();\n\t\t\tfor(int k = 0; k<cards.length; k++) {\n\t\t\t\tif(set.equals(cards[k])) {\n\t\t\t\t\t\tflags[k] = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int l=0 ; l<cards.length; l++) {\n\t\t\tif(!flags[l]){\n\t\t\t\tSystem.out.println(cards[l]);\n\t\t\t}\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) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n\t\tString[] cards = new String[52];\n\t\tBoolean[] flags = new Boolean[52];\n\n\t\tString[] suit = {\"S\",\"H\",\"C\",\"D\"};\n\n\t\tfor(int i=0 ; i<suit.length; i++) {\n\t\t\tfor (int num=1; num<=13; num++){\n\t\t\t\tcards[i*13 + num-1] = suit[i] + \" \" + num;\n\t\t\t\tflags[i*13 + num-1] = false;\n\t\t\t}\n\t\t}\n\n\t\tfor(int j = 0; j<N; j++){\n\t\t\tString set = br.readLine();\n\t\t\tfor(int k = 0; k<cards.length; k++) {\n\t\t\t\tif(set.equals(cards[k])) {\n\t\t\t\t\t\tflags[k] = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int l=0 ; l<cards.length; l++) {\n\t\t\tif(!flags[l]){\n\t\t\t\tSystem.out.println(cards[l]);\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n\t\tString[] cards = new String[52];\n\t\tBoolean[] flags = new Boolean[52];\n\n\t\tString[] suit = {\"S\",\"H\",\"C\",\"D\"};\n\n\t\tfor(int i=0 ; i<suit.length; i++) {\n\t\t\tfor (int num=1; num<=13; num++){\n\t\t\t\tcards[i*13 + num-1] = suit[i] + \" \" + num;\n\t\t\t\tflags[i*13 + num-1] = false;\n\t\t\t}\n\t\t}\n\n\t\tfor(int j = 0; j<N; j++){\n\t\t\tString set = br.readLine();\n\t\t\tfor(int k = 0; k<cards.length; k++) {\n\t\t\t\tif(set.equals(cards[k])) {\n\t\t\t\t\t\tflags[k] = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int l=0 ; l<cards.length; l++) {\n\t\t\tif(!flags[l]){\n\t\t\t\tSystem.out.println(cards[l]);\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n\t\tString[] cards = new String[52];\n\t\tBoolean[] flags = new Boolean[52];\n\n\t\tString[] suit = {\"S\",\"H\",\"C\",\"D\"};\n\n\t\tfor(int i=0 ; i<suit.length; i++) {\n\t\t\tfor (int num=1; num<=13; num++){\n\t\t\t\tcards[i*13 + num-1] = suit[i] + \" \" + num;\n\t\t\t\tflags[i*13 + num-1] = false;\n\t\t\t}\n\t\t}\n\n\t\tfor(int j = 0; j<N; j++){\n\t\t\tString set = br.readLine();\n\t\t\tfor(int k = 0; k<cards.length; k++) {\n\t\t\t\tif(set.equals(cards[k])) {\n\t\t\t\t\t\tflags[k] = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int l=0 ; l<cards.length; l++) {\n\t\t\tif(!flags[l]){\n\t\t\t\tSystem.out.println(cards[l]);\n\t\t\t}\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int N = Integer.parseInt(br.readLine());",
"N",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String[] cards = new String[52];",
"cards",
"new String[52]",
"52",
"Boolean[] flags = new Boolean[52];",
"flags",
"new Boolean[52]",
"52",
"String[] suit = {\"S\",\"H\",\"C\",\"D\"};",
"suit",
"{\"S\",\"H\",\"C\",\"D\"}",
"\"S\"",
"\"H\"",
"\"C\"",
"\"D\"",
"for(int i=0 ; i<suit.length; i++) {\n\t\t\tfor (int num=1; num<=13; num++){\n\t\t\t\tcards[i*13 + num-1] = suit[i] + \" \" + num;\n\t\t\t\tflags[i*13 + num-1] = false;\n\t\t\t}\n\t\t}",
"int i=0 ;",
"int i=0 ;",
"i",
"0",
"i<suit.length",
"i",
"suit.length",
"suit",
"suit.length",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int num=1; num<=13; num++){\n\t\t\t\tcards[i*13 + num-1] = suit[i] + \" \" + num;\n\t\t\t\tflags[i*13 + num-1] = false;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int num=1; num<=13; num++){\n\t\t\t\tcards[i*13 + num-1] = suit[i] + \" \" + num;\n\t\t\t\tflags[i*13 + num-1] = false;\n\t\t\t}\n\t\t}",
"for (int num=1; num<=13; num++){\n\t\t\t\tcards[i*13 + num-1] = suit[i] + \" \" + num;\n\t\t\t\tflags[i*13 + num-1] = false;\n\t\t\t}",
"int num=1;",
"int num=1;",
"num",
"1",
"num<=13",
"num",
"13",
"num++",
"num++",
"num",
"{\n\t\t\t\tcards[i*13 + num-1] = suit[i] + \" \" + num;\n\t\t\t\tflags[i*13 + num-1] = false;\n\t\t\t}",
"{\n\t\t\t\tcards[i*13 + num-1] = suit[i] + \" \" + num;\n\t\t\t\tflags[i*13 + num-1] = false;\n\t\t\t}",
"cards[i*13 + num-1] = suit[i] + \" \" + num",
"cards[i*13 + num-1]",
"cards",
"i*13 + num-1",
"i*13 + num",
"i*13",
"i",
"13",
"num",
"1",
"suit[i] + \" \" + num",
"suit[i] + \" \" + num",
"suit[i]",
"suit",
"i",
"\" \"",
"num",
"flags[i*13 + num-1] = false",
"flags[i*13 + num-1]",
"flags",
"i*13 + num-1",
"i*13 + num",
"i*13",
"i",
"13",
"num",
"1",
"false",
"for(int j = 0; j<N; j++){\n\t\t\tString set = br.readLine();\n\t\t\tfor(int k = 0; k<cards.length; k++) {\n\t\t\t\tif(set.equals(cards[k])) {\n\t\t\t\t\t\tflags[k] = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j<N",
"j",
"N",
"j++",
"j++",
"j",
"{\n\t\t\tString set = br.readLine();\n\t\t\tfor(int k = 0; k<cards.length; k++) {\n\t\t\t\tif(set.equals(cards[k])) {\n\t\t\t\t\t\tflags[k] = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tString set = br.readLine();\n\t\t\tfor(int k = 0; k<cards.length; k++) {\n\t\t\t\tif(set.equals(cards[k])) {\n\t\t\t\t\t\tflags[k] = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"String set = br.readLine();",
"set",
"br.readLine()",
"br.readLine",
"br",
"for(int k = 0; k<cards.length; k++) {\n\t\t\t\tif(set.equals(cards[k])) {\n\t\t\t\t\t\tflags[k] = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k<cards.length",
"k",
"cards.length",
"cards",
"cards.length",
"k++",
"k++",
"k",
"{\n\t\t\t\tif(set.equals(cards[k])) {\n\t\t\t\t\t\tflags[k] = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(set.equals(cards[k])) {\n\t\t\t\t\t\tflags[k] = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"if(set.equals(cards[k])) {\n\t\t\t\t\t\tflags[k] = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}",
"set.equals(cards[k])",
"set.equals",
"set",
"cards[k]",
"cards",
"k",
"{\n\t\t\t\t\t\tflags[k] = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}",
"flags[k] = true",
"flags[k]",
"flags",
"k",
"true",
"break;",
"for(int l=0 ; l<cards.length; l++) {\n\t\t\tif(!flags[l]){\n\t\t\t\tSystem.out.println(cards[l]);\n\t\t\t}\n\t\t}",
"int l=0 ;",
"int l=0 ;",
"l",
"0",
"l<cards.length",
"l",
"cards.length",
"cards",
"cards.length",
"l++",
"l++",
"l",
"{\n\t\t\tif(!flags[l]){\n\t\t\t\tSystem.out.println(cards[l]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(!flags[l]){\n\t\t\t\tSystem.out.println(cards[l]);\n\t\t\t}\n\t\t}",
"if(!flags[l]){\n\t\t\t\tSystem.out.println(cards[l]);\n\t\t\t}",
"!flags[l]",
"flags[l]",
"flags",
"l",
"{\n\t\t\t\tSystem.out.println(cards[l]);\n\t\t\t}",
"System.out.println(cards[l])",
"System.out.println",
"System.out",
"System",
"System.out",
"cards[l]",
"cards",
"l",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n\t\tString[] cards = new String[52];\n\t\tBoolean[] flags = new Boolean[52];\n\n\t\tString[] suit = {\"S\",\"H\",\"C\",\"D\"};\n\n\t\tfor(int i=0 ; i<suit.length; i++) {\n\t\t\tfor (int num=1; num<=13; num++){\n\t\t\t\tcards[i*13 + num-1] = suit[i] + \" \" + num;\n\t\t\t\tflags[i*13 + num-1] = false;\n\t\t\t}\n\t\t}\n\n\t\tfor(int j = 0; j<N; j++){\n\t\t\tString set = br.readLine();\n\t\t\tfor(int k = 0; k<cards.length; k++) {\n\t\t\t\tif(set.equals(cards[k])) {\n\t\t\t\t\t\tflags[k] = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int l=0 ; l<cards.length; l++) {\n\t\t\tif(!flags[l]){\n\t\t\t\tSystem.out.println(cards[l]);\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n\t\tString[] cards = new String[52];\n\t\tBoolean[] flags = new Boolean[52];\n\n\t\tString[] suit = {\"S\",\"H\",\"C\",\"D\"};\n\n\t\tfor(int i=0 ; i<suit.length; i++) {\n\t\t\tfor (int num=1; num<=13; num++){\n\t\t\t\tcards[i*13 + num-1] = suit[i] + \" \" + num;\n\t\t\t\tflags[i*13 + num-1] = false;\n\t\t\t}\n\t\t}\n\n\t\tfor(int j = 0; j<N; j++){\n\t\t\tString set = br.readLine();\n\t\t\tfor(int k = 0; k<cards.length; k++) {\n\t\t\t\tif(set.equals(cards[k])) {\n\t\t\t\t\t\tflags[k] = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int l=0 ; l<cards.length; l++) {\n\t\t\tif(!flags[l]){\n\t\t\t\tSystem.out.println(cards[l]);\n\t\t\t}\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 NumberFormatException, IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int N = Integer.parseInt(br.readLine());
String[] cards = new String[52];
Boolean[] flags = new Boolean[52];
String[] suit = {"S","H","C","D"};
for(int i=0 ; i<suit.length; i++) {
for (int num=1; num<=13; num++){
cards[i*13 + num-1] = suit[i] + " " + num;
flags[i*13 + num-1] = false;
}
}
for(int j = 0; j<N; j++){
String set = br.readLine();
for(int k = 0; k<cards.length; k++) {
if(set.equals(cards[k])) {
flags[k] = true;
break;
}
}
}
for(int l=0 ; l<cards.length; l++) {
if(!flags[l]){
System.out.println(cards[l]);
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
41,
13,
41,
13,
0,
13,
20,
17,
17,
41,
13,
42,
2,
13,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
35,
13,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
40,
13,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
35,
13,
34,
17,
1,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
17,
13,
17,
30,
0,
13,
2,
17,
2,
13,
17,
4,
18,
18,
13,
13,
13,
3,
34,
17,
1,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
17,
13,
17,
30,
0,
13,
2,
17,
2,
13,
17,
4,
18,
18,
13,
13,
13,
3,
34,
17,
1,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
17,
13,
17,
30,
0,
13,
2,
17,
2,
13,
17,
4,
18,
18,
13,
13,
13,
3,
34,
17,
1,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
17,
13,
17,
30,
0,
13,
2,
17,
2,
13,
17,
4,
18,
18,
13,
13,
13,
3,
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
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
31
],
[
31,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
52,
62
],
[
48,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
65,
75
],
[
48,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
84,
86
],
[
79,
87
],
[
78,
88
],
[
48,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
97,
99
],
[
92,
100
],
[
91,
101
],
[
37,
102
],
[
102,
103
],
[
8,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
109,
110
],
[
109,
111
],
[
104,
112
],
[
112,
113
],
[
113,
114
],
[
104,
115
],
[
116,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
119,
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
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
136,
142
],
[
135,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
148,
150
],
[
143,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
121,
157
],
[
117,
158
],
[
158,
159
],
[
158,
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
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
176,
180
],
[
175,
181
],
[
174,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
187,
189
],
[
182,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
190,
195
],
[
160,
196
],
[
117,
197
],
[
197,
198
],
[
197,
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
],
[
216,
217
],
[
216,
218
],
[
215,
219
],
[
214,
220
],
[
213,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
226,
228
],
[
221,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
231,
233
],
[
229,
234
],
[
199,
235
],
[
117,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
239,
244
],
[
244,
245
],
[
244,
246
],
[
239,
247
],
[
247,
248
],
[
248,
249
],
[
239,
250
],
[
251,
251
],
[
251,
252
],
[
252,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
254,
258
],
[
253,
259
],
[
252,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
263,
264
],
[
263,
265
],
[
265,
266
],
[
265,
267
],
[
260,
268
],
[
268,
269
],
[
269,
270
],
[
270,
271
],
[
270,
272
],
[
268,
273
],
[
238,
274
],
[
6,
275
],
[
275,
276
]
] | [
"import java.util.*;\n\n/**\n * @author kawakami\n *\n */\nclass Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tint n=as.nextInt();\n\t\tint i=0;\n\t\tString a;\n\t\tint b;\n\t\t\n\t\tint card[][];\n\t\tcard = new int[4][13];\n\t\t//Arrays.fill(card, 0);\n\t\tString str;\n\t\t\n\t\t\n\t\twhile(i<n){\n\t\t\t\n\t\t\ta=as.next();\n\t\t b=as.nextInt();\n\t\t\t\n\t\t\tswitch(a){\n\t\t\t\n\t\t\tcase\"S\":\n\t\t\t\tcard[0][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase\"H\":\n\t\t\t\tcard[1][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase\"C\":\n\t\t\t\tcard[2][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase\"D\":\n\t\t\t\tcard[3][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\ti++;\n\t\t\t\n\t\t}\n\t\t\t\n\t\t\t\n\t\tfor(i=0;i<4;i++){\n\t\t\t\n\t\t\tswitch(i){\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[0][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"S \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[1][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"H \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[2][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"C \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[3][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"D \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\t\t\n\t\t}\n\t\t\t\n\t}\n\t\t\n\t\t\n\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tint n=as.nextInt();\n\t\tint i=0;\n\t\tString a;\n\t\tint b;\n\t\t\n\t\tint card[][];\n\t\tcard = new int[4][13];\n\t\t//Arrays.fill(card, 0);\n\t\tString str;\n\t\t\n\t\t\n\t\twhile(i<n){\n\t\t\t\n\t\t\ta=as.next();\n\t\t b=as.nextInt();\n\t\t\t\n\t\t\tswitch(a){\n\t\t\t\n\t\t\tcase\"S\":\n\t\t\t\tcard[0][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase\"H\":\n\t\t\t\tcard[1][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase\"C\":\n\t\t\t\tcard[2][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase\"D\":\n\t\t\t\tcard[3][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\ti++;\n\t\t\t\n\t\t}\n\t\t\t\n\t\t\t\n\t\tfor(i=0;i<4;i++){\n\t\t\t\n\t\t\tswitch(i){\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[0][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"S \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[1][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"H \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[2][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"C \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[3][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"D \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\t\t\n\t\t}\n\t\t\t\n\t}\n\t\t\n\t\t\n\n}",
"Main",
"/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tint n=as.nextInt();\n\t\tint i=0;\n\t\tString a;\n\t\tint b;\n\t\t\n\t\tint card[][];\n\t\tcard = new int[4][13];\n\t\t//Arrays.fill(card, 0);\n\t\tString str;\n\t\t\n\t\t\n\t\twhile(i<n){\n\t\t\t\n\t\t\ta=as.next();\n\t\t b=as.nextInt();\n\t\t\t\n\t\t\tswitch(a){\n\t\t\t\n\t\t\tcase\"S\":\n\t\t\t\tcard[0][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase\"H\":\n\t\t\t\tcard[1][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase\"C\":\n\t\t\t\tcard[2][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase\"D\":\n\t\t\t\tcard[3][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\ti++;\n\t\t\t\n\t\t}\n\t\t\t\n\t\t\t\n\t\tfor(i=0;i<4;i++){\n\t\t\t\n\t\t\tswitch(i){\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[0][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"S \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[1][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"H \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[2][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"C \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[3][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"D \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\t\t\n\t\t}\n\t\t\t\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tint n=as.nextInt();\n\t\tint i=0;\n\t\tString a;\n\t\tint b;\n\t\t\n\t\tint card[][];\n\t\tcard = new int[4][13];\n\t\t//Arrays.fill(card, 0);\n\t\tString str;\n\t\t\n\t\t\n\t\twhile(i<n){\n\t\t\t\n\t\t\ta=as.next();\n\t\t b=as.nextInt();\n\t\t\t\n\t\t\tswitch(a){\n\t\t\t\n\t\t\tcase\"S\":\n\t\t\t\tcard[0][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase\"H\":\n\t\t\t\tcard[1][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase\"C\":\n\t\t\t\tcard[2][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase\"D\":\n\t\t\t\tcard[3][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\ti++;\n\t\t\t\n\t\t}\n\t\t\t\n\t\t\t\n\t\tfor(i=0;i<4;i++){\n\t\t\t\n\t\t\tswitch(i){\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[0][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"S \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[1][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"H \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[2][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"C \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[3][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"D \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\t\t\n\t\t}\n\t\t\t\n\t}",
"Scanner as = new Scanner(System.in);",
"as",
"new Scanner(System.in)",
"int n=as.nextInt();",
"n",
"as.nextInt()",
"as.nextInt",
"as",
"int i=0;",
"i",
"0",
"String a;",
"a",
"int b;",
"b",
"int card[][];",
"card",
"card = new int[4][13]",
"card",
"new int[4][13]",
"4",
"13",
"String str;",
"str",
"while(i<n){\n\t\t\t\n\t\t\ta=as.next();\n\t\t b=as.nextInt();\n\t\t\t\n\t\t\tswitch(a){\n\t\t\t\n\t\t\tcase\"S\":\n\t\t\t\tcard[0][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase\"H\":\n\t\t\t\tcard[1][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase\"C\":\n\t\t\t\tcard[2][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase\"D\":\n\t\t\t\tcard[3][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\ti++;\n\t\t\t\n\t\t}",
"i<n",
"i",
"n",
"{\n\t\t\t\n\t\t\ta=as.next();\n\t\t b=as.nextInt();\n\t\t\t\n\t\t\tswitch(a){\n\t\t\t\n\t\t\tcase\"S\":\n\t\t\t\tcard[0][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase\"H\":\n\t\t\t\tcard[1][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase\"C\":\n\t\t\t\tcard[2][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase\"D\":\n\t\t\t\tcard[3][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\ti++;\n\t\t\t\n\t\t}",
"a=as.next()",
"a",
"as.next()",
"as.next",
"as",
"b=as.nextInt()",
"b",
"as.nextInt()",
"as.nextInt",
"as",
"switch(a){\n\t\t\t\n\t\t\tcase\"S\":\n\t\t\t\tcard[0][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase\"H\":\n\t\t\t\tcard[1][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase\"C\":\n\t\t\t\tcard[2][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase\"D\":\n\t\t\t\tcard[3][b-1]=1;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}",
"a",
"case\"S\":",
"\"S\"",
"case\"S\":",
"card[0][b-1]=1",
"card[0][b-1]",
"card[0]",
"card",
"0",
"b-1",
"b",
"1",
"1",
"break;",
"case\"H\":",
"\"H\"",
"case\"H\":",
"card[1][b-1]=1",
"card[1][b-1]",
"card[1]",
"card",
"1",
"b-1",
"b",
"1",
"1",
"break;",
"case\"C\":",
"\"C\"",
"case\"C\":",
"card[2][b-1]=1",
"card[2][b-1]",
"card[2]",
"card",
"2",
"b-1",
"b",
"1",
"1",
"break;",
"case\"D\":",
"\"D\"",
"case\"D\":",
"card[3][b-1]=1",
"card[3][b-1]",
"card[3]",
"card",
"3",
"b-1",
"b",
"1",
"1",
"break;",
"i++",
"i",
"for(i=0;i<4;i++){\n\t\t\t\n\t\t\tswitch(i){\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[0][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"S \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[1][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"H \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[2][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"C \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[3][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"D \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\t\t\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\t\n\t\t\tswitch(i){\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[0][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"S \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[1][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"H \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[2][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"C \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[3][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"D \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\t\t\n\t\t}",
"{\n\t\t\t\n\t\t\tswitch(i){\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[0][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"S \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[1][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"H \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[2][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"C \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[3][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"D \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\t\t\n\t\t}",
"switch(i){\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[0][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"S \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[1][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"H \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[2][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"C \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[3][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"D \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t}",
"i",
"case 0:",
"0",
"case 0:",
"for(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[0][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"S \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[0][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"S \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}",
"{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[0][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"S \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}",
"if(card[0][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"S \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}",
"card[0][j]==0",
"card[0][j]",
"card[0]",
"card",
"0",
"j",
"0",
"{\n\t\t\t\t\t\t\t\t\tstr=\"S \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}",
"str=\"S \"+(j+1)",
"str",
"\"S \"+(j+1)",
"\"S \"",
"(j+1)",
"j",
"1",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"break;",
"case 1:",
"1",
"case 1:",
"for(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[1][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"H \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[1][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"H \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}",
"{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[1][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"H \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}",
"if(card[1][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"H \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}",
"card[1][j]==0",
"card[1][j]",
"card[1]",
"card",
"1",
"j",
"0",
"{\n\t\t\t\t\t\t\t\t\tstr=\"H \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}",
"str=\"H \"+(j+1)",
"str",
"\"H \"+(j+1)",
"\"H \"",
"(j+1)",
"j",
"1",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"break;",
"case 2:",
"2",
"case 2:",
"for(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[2][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"C \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[2][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"C \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}",
"{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[2][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"C \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}",
"if(card[2][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"C \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}",
"card[2][j]==0",
"card[2][j]",
"card[2]",
"card",
"2",
"j",
"0",
"{\n\t\t\t\t\t\t\t\t\tstr=\"C \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}",
"str=\"C \"+(j+1)",
"str",
"\"C \"+(j+1)",
"\"C \"",
"(j+1)",
"j",
"1",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"break;",
"case 3:",
"3",
"case 3:",
"for(int j=0;j<13;j++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[3][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"D \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[3][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"D \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}",
"{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(card[3][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"D \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}",
"if(card[3][j]==0){\n\t\t\t\t\t\t\t\t\tstr=\"D \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}",
"card[3][j]==0",
"card[3][j]",
"card[3]",
"card",
"3",
"j",
"0",
"{\n\t\t\t\t\t\t\t\t\tstr=\"D \"+(j+1);\n\t\t\t\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\t\t\t}",
"str=\"D \"+(j+1)",
"str",
"\"D \"+(j+1)",
"\"D \"",
"(j+1)",
"j",
"1",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"break;",
"String[] args",
"args"
] | import java.util.*;
/**
* @author kawakami
*
*/
class Main {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner as = new Scanner(System.in);
int n=as.nextInt();
int i=0;
String a;
int b;
int card[][];
card = new int[4][13];
//Arrays.fill(card, 0);
String str;
while(i<n){
a=as.next();
b=as.nextInt();
switch(a){
case"S":
card[0][b-1]=1;
break;
case"H":
card[1][b-1]=1;
break;
case"C":
card[2][b-1]=1;
break;
case"D":
card[3][b-1]=1;
break;
}
i++;
}
for(i=0;i<4;i++){
switch(i){
case 0:
for(int j=0;j<13;j++){
if(card[0][j]==0){
str="S "+(j+1);
System.out.println(str);
}
}
break;
case 1:
for(int j=0;j<13;j++){
if(card[1][j]==0){
str="H "+(j+1);
System.out.println(str);
}
}
break;
case 2:
for(int j=0;j<13;j++){
if(card[2][j]==0){
str="C "+(j+1);
System.out.println(str);
}
}
break;
case 3:
for(int j=0;j<13;j++){
if(card[3][j]==0){
str="D "+(j+1);
System.out.println(str);
}
}
break;
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
39,
17,
17,
17,
17,
0,
18,
13,
17,
17,
0,
18,
13,
17,
17,
0,
18,
13,
17,
17,
0,
18,
13,
17,
17,
41,
13,
20,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
0,
18,
18,
13,
13,
13,
17,
38,
5,
13,
30,
4,
18,
13,
5,
13,
30,
4,
18,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
17,
0,
18,
18,
13,
18,
13,
4,
18,
18,
13,
17,
17,
4,
18,
13,
18,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
17,
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
],
[
205,
11
],
[
205,
12
],
[
12,
13
],
[
12,
14
],
[
205,
15
],
[
15,
16
],
[
15,
17
],
[
205,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
28
],
[
28,
29
],
[
28,
30
],
[
20,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
34,
37
],
[
34,
38
],
[
20,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
20,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
20,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
20,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
20,
59
],
[
59,
60
],
[
59,
61
],
[
20,
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
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
89,
95
],
[
20,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
96,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
96,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
115,
116
],
[
116,
117
],
[
109,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
118,
126
],
[
126,
127
],
[
127,
128
],
[
118,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
133,
138
],
[
130,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
145,
150
],
[
140,
151
],
[
151,
152
],
[
152,
153
],
[
151,
154
],
[
154,
155
],
[
154,
156
],
[
139,
157
],
[
109,
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
],
[
187,
188
],
[
187,
189
],
[
186,
190
],
[
184,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
192,
197
],
[
192,
198
],
[
198,
199
],
[
198,
200
],
[
192,
201
],
[
18,
202
],
[
202,
203
],
[
0,
204
],
[
204,
205
],
[
204,
206
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint table[] = new int[128];\n\t\tString work[] = new String[2];\n\t\tString outPut[] = {\"S\",\"H\",\"C\",\"D\"};\n\n\t\ttable['S'] = 0;\n\t\ttable['H'] = 1;\n\t\ttable['C'] = 2;\n\t\ttable['D'] = 3;\n\n\t\tboolean check[][] = new boolean[4][14];\n\t\tfor(int row = 0; row < 4; row++){\n\t\t\tfor(int col = 1; col <= 13; col++)check[row][col] = false;\n\t\t}\n\n\t\ttry {\n\t\t\tint N = Integer.parseInt(br.readLine());\n\n\t\t\tfor(int loop = 0; loop < N; loop++){\n\t\t\t\twork = br.readLine().split(\"\\\\s+\");\n\t\t\t\tcheck[table[work[0].charAt(0)]][Integer.parseInt(work[1])] = true;\n\t\t\t}\n\n\t\t\tfor(int row = 0; row < 4; row++){\n\t\t\t\tfor(int col = 1; col <= 13; col++){\n\t\t\t\t\tif(!check[row][col]){\n\t\t\t\t\t\tSystem.out.printf(\"%s %d\\n\", outPut[row],col);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}\n\n",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint table[] = new int[128];\n\t\tString work[] = new String[2];\n\t\tString outPut[] = {\"S\",\"H\",\"C\",\"D\"};\n\n\t\ttable['S'] = 0;\n\t\ttable['H'] = 1;\n\t\ttable['C'] = 2;\n\t\ttable['D'] = 3;\n\n\t\tboolean check[][] = new boolean[4][14];\n\t\tfor(int row = 0; row < 4; row++){\n\t\t\tfor(int col = 1; col <= 13; col++)check[row][col] = false;\n\t\t}\n\n\t\ttry {\n\t\t\tint N = Integer.parseInt(br.readLine());\n\n\t\t\tfor(int loop = 0; loop < N; loop++){\n\t\t\t\twork = br.readLine().split(\"\\\\s+\");\n\t\t\t\tcheck[table[work[0].charAt(0)]][Integer.parseInt(work[1])] = true;\n\t\t\t}\n\n\t\t\tfor(int row = 0; row < 4; row++){\n\t\t\t\tfor(int col = 1; col <= 13; col++){\n\t\t\t\t\tif(!check[row][col]){\n\t\t\t\t\t\tSystem.out.printf(\"%s %d\\n\", outPut[row],col);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"Main",
"public static final int BIG_NUM = 2000000000;",
"BIG_NUM",
"2000000000",
"public static final int MOD = 1000000007;",
"MOD",
"1000000007",
"public static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint table[] = new int[128];\n\t\tString work[] = new String[2];\n\t\tString outPut[] = {\"S\",\"H\",\"C\",\"D\"};\n\n\t\ttable['S'] = 0;\n\t\ttable['H'] = 1;\n\t\ttable['C'] = 2;\n\t\ttable['D'] = 3;\n\n\t\tboolean check[][] = new boolean[4][14];\n\t\tfor(int row = 0; row < 4; row++){\n\t\t\tfor(int col = 1; col <= 13; col++)check[row][col] = false;\n\t\t}\n\n\t\ttry {\n\t\t\tint N = Integer.parseInt(br.readLine());\n\n\t\t\tfor(int loop = 0; loop < N; loop++){\n\t\t\t\twork = br.readLine().split(\"\\\\s+\");\n\t\t\t\tcheck[table[work[0].charAt(0)]][Integer.parseInt(work[1])] = true;\n\t\t\t}\n\n\t\t\tfor(int row = 0; row < 4; row++){\n\t\t\t\tfor(int col = 1; col <= 13; col++){\n\t\t\t\t\tif(!check[row][col]){\n\t\t\t\t\t\tSystem.out.printf(\"%s %d\\n\", outPut[row],col);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"main",
"{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint table[] = new int[128];\n\t\tString work[] = new String[2];\n\t\tString outPut[] = {\"S\",\"H\",\"C\",\"D\"};\n\n\t\ttable['S'] = 0;\n\t\ttable['H'] = 1;\n\t\ttable['C'] = 2;\n\t\ttable['D'] = 3;\n\n\t\tboolean check[][] = new boolean[4][14];\n\t\tfor(int row = 0; row < 4; row++){\n\t\t\tfor(int col = 1; col <= 13; col++)check[row][col] = false;\n\t\t}\n\n\t\ttry {\n\t\t\tint N = Integer.parseInt(br.readLine());\n\n\t\t\tfor(int loop = 0; loop < N; loop++){\n\t\t\t\twork = br.readLine().split(\"\\\\s+\");\n\t\t\t\tcheck[table[work[0].charAt(0)]][Integer.parseInt(work[1])] = true;\n\t\t\t}\n\n\t\t\tfor(int row = 0; row < 4; row++){\n\t\t\t\tfor(int col = 1; col <= 13; col++){\n\t\t\t\t\tif(!check[row][col]){\n\t\t\t\t\t\tSystem.out.printf(\"%s %d\\n\", outPut[row],col);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int table[] = new int[128];",
"table",
"new int[128]",
"128",
"String work[] = new String[2];",
"work",
"new String[2]",
"2",
"String outPut[] = {\"S\",\"H\",\"C\",\"D\"};",
"outPut",
"{\"S\",\"H\",\"C\",\"D\"}",
"\"S\"",
"\"H\"",
"\"C\"",
"\"D\"",
"table['S'] = 0",
"table['S']",
"table",
"'S'",
"0",
"table['H'] = 1",
"table['H']",
"table",
"'H'",
"1",
"table['C'] = 2",
"table['C']",
"table",
"'C'",
"2",
"table['D'] = 3",
"table['D']",
"table",
"'D'",
"3",
"boolean check[][] = new boolean[4][14];",
"check",
"new boolean[4][14]",
"4",
"14",
"for(int row = 0; row < 4; row++){\n\t\t\tfor(int col = 1; col <= 13; col++)check[row][col] = false;\n\t\t}",
"int row = 0;",
"int row = 0;",
"row",
"0",
"row < 4",
"row",
"4",
"row++",
"row++",
"row",
"{\n\t\t\tfor(int col = 1; col <= 13; col++)check[row][col] = false;\n\t\t}",
"{\n\t\t\tfor(int col = 1; col <= 13; col++)check[row][col] = false;\n\t\t}",
"for(int col = 1; col <= 13; col++)check[row][col] = false;",
"int col = 1;",
"int col = 1;",
"col",
"1",
"col <= 13",
"col",
"13",
"col++",
"col++",
"col",
"check[row][col] = false;",
"check[row][col] = false",
"check[row][col]",
"check[row]",
"check",
"row",
"col",
"false",
"try {\n\t\t\tint N = Integer.parseInt(br.readLine());\n\n\t\t\tfor(int loop = 0; loop < N; loop++){\n\t\t\t\twork = br.readLine().split(\"\\\\s+\");\n\t\t\t\tcheck[table[work[0].charAt(0)]][Integer.parseInt(work[1])] = true;\n\t\t\t}\n\n\t\t\tfor(int row = 0; row < 4; row++){\n\t\t\t\tfor(int col = 1; col <= 13; col++){\n\t\t\t\t\tif(!check[row][col]){\n\t\t\t\t\t\tSystem.out.printf(\"%s %d\\n\", outPut[row],col);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"NumberFormatException e",
"{\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"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\tint N = Integer.parseInt(br.readLine());\n\n\t\t\tfor(int loop = 0; loop < N; loop++){\n\t\t\t\twork = br.readLine().split(\"\\\\s+\");\n\t\t\t\tcheck[table[work[0].charAt(0)]][Integer.parseInt(work[1])] = true;\n\t\t\t}\n\n\t\t\tfor(int row = 0; row < 4; row++){\n\t\t\t\tfor(int col = 1; col <= 13; col++){\n\t\t\t\t\tif(!check[row][col]){\n\t\t\t\t\t\tSystem.out.printf(\"%s %d\\n\", outPut[row],col);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}",
"int N = Integer.parseInt(br.readLine());",
"N",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int loop = 0; loop < N; loop++){\n\t\t\t\twork = br.readLine().split(\"\\\\s+\");\n\t\t\t\tcheck[table[work[0].charAt(0)]][Integer.parseInt(work[1])] = true;\n\t\t\t}",
"int loop = 0;",
"int loop = 0;",
"loop",
"0",
"loop < N",
"loop",
"N",
"loop++",
"loop++",
"loop",
"{\n\t\t\t\twork = br.readLine().split(\"\\\\s+\");\n\t\t\t\tcheck[table[work[0].charAt(0)]][Integer.parseInt(work[1])] = true;\n\t\t\t}",
"{\n\t\t\t\twork = br.readLine().split(\"\\\\s+\");\n\t\t\t\tcheck[table[work[0].charAt(0)]][Integer.parseInt(work[1])] = true;\n\t\t\t}",
"work = br.readLine().split(\"\\\\s+\")",
"work",
"br.readLine().split(\"\\\\s+\")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\"\\\\s+\"",
"check[table[work[0].charAt(0)]][Integer.parseInt(work[1])] = true",
"check[table[work[0].charAt(0)]][Integer.parseInt(work[1])]",
"check[table[work[0].charAt(0)]]",
"check",
"table[work[0].charAt(0)]",
"table",
"work[0].charAt(0)",
"work[0].charAt",
"work[0]",
"work",
"0",
"0",
"Integer.parseInt(work[1])",
"Integer.parseInt",
"Integer",
"work[1]",
"work",
"1",
"true",
"for(int row = 0; row < 4; row++){\n\t\t\t\tfor(int col = 1; col <= 13; col++){\n\t\t\t\t\tif(!check[row][col]){\n\t\t\t\t\t\tSystem.out.printf(\"%s %d\\n\", outPut[row],col);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int row = 0;",
"int row = 0;",
"row",
"0",
"row < 4",
"row",
"4",
"row++",
"row++",
"row",
"{\n\t\t\t\tfor(int col = 1; col <= 13; col++){\n\t\t\t\t\tif(!check[row][col]){\n\t\t\t\t\t\tSystem.out.printf(\"%s %d\\n\", outPut[row],col);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int col = 1; col <= 13; col++){\n\t\t\t\t\tif(!check[row][col]){\n\t\t\t\t\t\tSystem.out.printf(\"%s %d\\n\", outPut[row],col);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"for(int col = 1; col <= 13; col++){\n\t\t\t\t\tif(!check[row][col]){\n\t\t\t\t\t\tSystem.out.printf(\"%s %d\\n\", outPut[row],col);\n\t\t\t\t\t}\n\t\t\t\t}",
"int col = 1;",
"int col = 1;",
"col",
"1",
"col <= 13",
"col",
"13",
"col++",
"col++",
"col",
"{\n\t\t\t\t\tif(!check[row][col]){\n\t\t\t\t\t\tSystem.out.printf(\"%s %d\\n\", outPut[row],col);\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif(!check[row][col]){\n\t\t\t\t\t\tSystem.out.printf(\"%s %d\\n\", outPut[row],col);\n\t\t\t\t\t}\n\t\t\t\t}",
"if(!check[row][col]){\n\t\t\t\t\t\tSystem.out.printf(\"%s %d\\n\", outPut[row],col);\n\t\t\t\t\t}",
"!check[row][col]",
"check[row][col]",
"check[row]",
"check",
"row",
"col",
"{\n\t\t\t\t\t\tSystem.out.printf(\"%s %d\\n\", outPut[row],col);\n\t\t\t\t\t}",
"System.out.printf(\"%s %d\\n\", outPut[row],col)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%s %d\\n\"",
"outPut[row]",
"outPut",
"row",
"col",
"String[] args",
"args",
"public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint table[] = new int[128];\n\t\tString work[] = new String[2];\n\t\tString outPut[] = {\"S\",\"H\",\"C\",\"D\"};\n\n\t\ttable['S'] = 0;\n\t\ttable['H'] = 1;\n\t\ttable['C'] = 2;\n\t\ttable['D'] = 3;\n\n\t\tboolean check[][] = new boolean[4][14];\n\t\tfor(int row = 0; row < 4; row++){\n\t\t\tfor(int col = 1; col <= 13; col++)check[row][col] = false;\n\t\t}\n\n\t\ttry {\n\t\t\tint N = Integer.parseInt(br.readLine());\n\n\t\t\tfor(int loop = 0; loop < N; loop++){\n\t\t\t\twork = br.readLine().split(\"\\\\s+\");\n\t\t\t\tcheck[table[work[0].charAt(0)]][Integer.parseInt(work[1])] = true;\n\t\t\t}\n\n\t\t\tfor(int row = 0; row < 4; row++){\n\t\t\t\tfor(int col = 1; col <= 13; col++){\n\t\t\t\t\tif(!check[row][col]){\n\t\t\t\t\t\tSystem.out.printf(\"%s %d\\n\", outPut[row],col);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint table[] = new int[128];\n\t\tString work[] = new String[2];\n\t\tString outPut[] = {\"S\",\"H\",\"C\",\"D\"};\n\n\t\ttable['S'] = 0;\n\t\ttable['H'] = 1;\n\t\ttable['C'] = 2;\n\t\ttable['D'] = 3;\n\n\t\tboolean check[][] = new boolean[4][14];\n\t\tfor(int row = 0; row < 4; row++){\n\t\t\tfor(int col = 1; col <= 13; col++)check[row][col] = false;\n\t\t}\n\n\t\ttry {\n\t\t\tint N = Integer.parseInt(br.readLine());\n\n\t\t\tfor(int loop = 0; loop < N; loop++){\n\t\t\t\twork = br.readLine().split(\"\\\\s+\");\n\t\t\t\tcheck[table[work[0].charAt(0)]][Integer.parseInt(work[1])] = true;\n\t\t\t}\n\n\t\t\tfor(int row = 0; row < 4; row++){\n\t\t\t\tfor(int col = 1; col <= 13; col++){\n\t\t\t\t\tif(!check[row][col]){\n\t\t\t\t\t\tSystem.out.printf(\"%s %d\\n\", outPut[row],col);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\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 final int BIG_NUM = 2000000000;
public static final int MOD = 1000000007;
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int table[] = new int[128];
String work[] = new String[2];
String outPut[] = {"S","H","C","D"};
table['S'] = 0;
table['H'] = 1;
table['C'] = 2;
table['D'] = 3;
boolean check[][] = new boolean[4][14];
for(int row = 0; row < 4; row++){
for(int col = 1; col <= 13; col++)check[row][col] = false;
}
try {
int N = Integer.parseInt(br.readLine());
for(int loop = 0; loop < N; loop++){
work = br.readLine().split("\\s+");
check[table[work[0].charAt(0)]][Integer.parseInt(work[1])] = true;
}
for(int row = 0; row < 4; row++){
for(int col = 1; col <= 13; col++){
if(!check[row][col]){
System.out.printf("%s %d\n", outPut[row],col);
}
}
}
} catch (NumberFormatException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
41,
13,
39,
17,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
0,
18,
18,
13,
13,
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,
41,
13,
4,
18,
13,
17,
14,
2,
13,
17,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
2,
13,
17,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
2,
13,
17,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
2,
13,
17,
0,
18,
18,
13,
17,
2,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
2,
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
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
24,
26
],
[
24,
27
],
[
24,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
54,
60
],
[
8,
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
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
73,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
73,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
99,
100
],
[
99,
101
],
[
94,
102
],
[
73,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
112,
113
],
[
112,
114
],
[
107,
115
],
[
73,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
125,
127
],
[
120,
128
],
[
73,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
138,
140
],
[
133,
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
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
168,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
175,
180
],
[
181,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
181,
186
],
[
186,
187
],
[
186,
188
],
[
6,
189
],
[
189,
190
],
[
0,
191
],
[
191,
192
],
[
191,
193
]
] | [
"\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();\n\t\tboolean cards[][]=new boolean[4][13];\n\t\tchar simbols[]= {'S','H','C','D'};\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<13;j++)cards[i][j]=false;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tString ssimbol=cin.next();int num=cin.nextInt();\n\t\t\tchar simbol=ssimbol.charAt(0);\n\t\t\tif(simbol=='S')cards[0][num-1]=true;\n\t\t\tif(simbol=='H')cards[1][num-1]=true;\n\t\t\tif(simbol=='C')cards[2][num-1]=true;\n\t\t\tif(simbol=='D')cards[3][num-1]=true;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<13;j++) {\n\t\t\t\tif(!cards[i][j])System.out.println(simbols[i]+\" \"+(j+1));\n\t\t\t}\n\t\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();\n\t\tboolean cards[][]=new boolean[4][13];\n\t\tchar simbols[]= {'S','H','C','D'};\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<13;j++)cards[i][j]=false;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tString ssimbol=cin.next();int num=cin.nextInt();\n\t\t\tchar simbol=ssimbol.charAt(0);\n\t\t\tif(simbol=='S')cards[0][num-1]=true;\n\t\t\tif(simbol=='H')cards[1][num-1]=true;\n\t\t\tif(simbol=='C')cards[2][num-1]=true;\n\t\t\tif(simbol=='D')cards[3][num-1]=true;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<13;j++) {\n\t\t\t\tif(!cards[i][j])System.out.println(simbols[i]+\" \"+(j+1));\n\t\t\t}\n\t\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();\n\t\tboolean cards[][]=new boolean[4][13];\n\t\tchar simbols[]= {'S','H','C','D'};\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<13;j++)cards[i][j]=false;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tString ssimbol=cin.next();int num=cin.nextInt();\n\t\t\tchar simbol=ssimbol.charAt(0);\n\t\t\tif(simbol=='S')cards[0][num-1]=true;\n\t\t\tif(simbol=='H')cards[1][num-1]=true;\n\t\t\tif(simbol=='C')cards[2][num-1]=true;\n\t\t\tif(simbol=='D')cards[3][num-1]=true;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<13;j++) {\n\t\t\t\tif(!cards[i][j])System.out.println(simbols[i]+\" \"+(j+1));\n\t\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();\n\t\tboolean cards[][]=new boolean[4][13];\n\t\tchar simbols[]= {'S','H','C','D'};\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<13;j++)cards[i][j]=false;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tString ssimbol=cin.next();int num=cin.nextInt();\n\t\t\tchar simbol=ssimbol.charAt(0);\n\t\t\tif(simbol=='S')cards[0][num-1]=true;\n\t\t\tif(simbol=='H')cards[1][num-1]=true;\n\t\t\tif(simbol=='C')cards[2][num-1]=true;\n\t\t\tif(simbol=='D')cards[3][num-1]=true;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<13;j++) {\n\t\t\t\tif(!cards[i][j])System.out.println(simbols[i]+\" \"+(j+1));\n\t\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",
"boolean cards[][]=new boolean[4][13];",
"cards",
"new boolean[4][13]",
"4",
"13",
"char simbols[]= {'S','H','C','D'};",
"simbols",
"{'S','H','C','D'}",
"'S'",
"'H'",
"'C'",
"'D'",
"for(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<13;j++)cards[i][j]=false;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<13;j++)cards[i][j]=false;\n\t\t}",
"{\n\t\t\tfor(int j=0;j<13;j++)cards[i][j]=false;\n\t\t}",
"for(int j=0;j<13;j++)cards[i][j]=false;",
"int j=0;",
"int j=0;",
"j",
"0",
"j<13",
"j",
"13",
"j++",
"j++",
"j",
"cards[i][j]=false;",
"cards[i][j]=false",
"cards[i][j]",
"cards[i]",
"cards",
"i",
"j",
"false",
"for(int i=0;i<n;i++) {\n\t\t\tString ssimbol=cin.next();int num=cin.nextInt();\n\t\t\tchar simbol=ssimbol.charAt(0);\n\t\t\tif(simbol=='S')cards[0][num-1]=true;\n\t\t\tif(simbol=='H')cards[1][num-1]=true;\n\t\t\tif(simbol=='C')cards[2][num-1]=true;\n\t\t\tif(simbol=='D')cards[3][num-1]=true;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString ssimbol=cin.next();int num=cin.nextInt();\n\t\t\tchar simbol=ssimbol.charAt(0);\n\t\t\tif(simbol=='S')cards[0][num-1]=true;\n\t\t\tif(simbol=='H')cards[1][num-1]=true;\n\t\t\tif(simbol=='C')cards[2][num-1]=true;\n\t\t\tif(simbol=='D')cards[3][num-1]=true;\n\t\t}",
"{\n\t\t\tString ssimbol=cin.next();int num=cin.nextInt();\n\t\t\tchar simbol=ssimbol.charAt(0);\n\t\t\tif(simbol=='S')cards[0][num-1]=true;\n\t\t\tif(simbol=='H')cards[1][num-1]=true;\n\t\t\tif(simbol=='C')cards[2][num-1]=true;\n\t\t\tif(simbol=='D')cards[3][num-1]=true;\n\t\t}",
"String ssimbol=cin.next();",
"ssimbol",
"cin.next()",
"cin.next",
"cin",
"int num=cin.nextInt();",
"num",
"cin.nextInt()",
"cin.nextInt",
"cin",
"char simbol=ssimbol.charAt(0);",
"simbol",
"ssimbol.charAt(0)",
"ssimbol.charAt",
"ssimbol",
"0",
"if(simbol=='S')cards[0][num-1]=true;",
"simbol=='S'",
"simbol",
"'S'",
"cards[0][num-1]=true",
"cards[0][num-1]",
"cards[0]",
"cards",
"0",
"num-1",
"num",
"1",
"true",
"if(simbol=='H')cards[1][num-1]=true;",
"simbol=='H'",
"simbol",
"'H'",
"cards[1][num-1]=true",
"cards[1][num-1]",
"cards[1]",
"cards",
"1",
"num-1",
"num",
"1",
"true",
"if(simbol=='C')cards[2][num-1]=true;",
"simbol=='C'",
"simbol",
"'C'",
"cards[2][num-1]=true",
"cards[2][num-1]",
"cards[2]",
"cards",
"2",
"num-1",
"num",
"1",
"true",
"if(simbol=='D')cards[3][num-1]=true;",
"simbol=='D'",
"simbol",
"'D'",
"cards[3][num-1]=true",
"cards[3][num-1]",
"cards[3]",
"cards",
"3",
"num-1",
"num",
"1",
"true",
"for(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<13;j++) {\n\t\t\t\tif(!cards[i][j])System.out.println(simbols[i]+\" \"+(j+1));\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<13;j++) {\n\t\t\t\tif(!cards[i][j])System.out.println(simbols[i]+\" \"+(j+1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<13;j++) {\n\t\t\t\tif(!cards[i][j])System.out.println(simbols[i]+\" \"+(j+1));\n\t\t\t}\n\t\t}",
"for(int j=0;j<13;j++) {\n\t\t\t\tif(!cards[i][j])System.out.println(simbols[i]+\" \"+(j+1));\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(!cards[i][j])System.out.println(simbols[i]+\" \"+(j+1));\n\t\t\t}",
"{\n\t\t\t\tif(!cards[i][j])System.out.println(simbols[i]+\" \"+(j+1));\n\t\t\t}",
"if(!cards[i][j])System.out.println(simbols[i]+\" \"+(j+1));",
"!cards[i][j]",
"cards[i][j]",
"cards[i]",
"cards",
"i",
"j",
"System.out.println(simbols[i]+\" \"+(j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"simbols[i]+\" \"+(j+1)",
"simbols[i]+\" \"+(j+1)",
"simbols[i]",
"simbols",
"i",
"\" \"",
"(j+1)",
"j",
"1",
"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();\n\t\tboolean cards[][]=new boolean[4][13];\n\t\tchar simbols[]= {'S','H','C','D'};\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<13;j++)cards[i][j]=false;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tString ssimbol=cin.next();int num=cin.nextInt();\n\t\t\tchar simbol=ssimbol.charAt(0);\n\t\t\tif(simbol=='S')cards[0][num-1]=true;\n\t\t\tif(simbol=='H')cards[1][num-1]=true;\n\t\t\tif(simbol=='C')cards[2][num-1]=true;\n\t\t\tif(simbol=='D')cards[3][num-1]=true;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<13;j++) {\n\t\t\t\tif(!cards[i][j])System.out.println(simbols[i]+\" \"+(j+1));\n\t\t\t}\n\t\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();\n\t\tboolean cards[][]=new boolean[4][13];\n\t\tchar simbols[]= {'S','H','C','D'};\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<13;j++)cards[i][j]=false;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tString ssimbol=cin.next();int num=cin.nextInt();\n\t\t\tchar simbol=ssimbol.charAt(0);\n\t\t\tif(simbol=='S')cards[0][num-1]=true;\n\t\t\tif(simbol=='H')cards[1][num-1]=true;\n\t\t\tif(simbol=='C')cards[2][num-1]=true;\n\t\t\tif(simbol=='D')cards[3][num-1]=true;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<13;j++) {\n\t\t\t\tif(!cards[i][j])System.out.println(simbols[i]+\" \"+(j+1));\n\t\t\t}\n\t\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();
boolean cards[][]=new boolean[4][13];
char simbols[]= {'S','H','C','D'};
for(int i=0;i<4;i++) {
for(int j=0;j<13;j++)cards[i][j]=false;
}
for(int i=0;i<n;i++) {
String ssimbol=cin.next();int num=cin.nextInt();
char simbol=ssimbol.charAt(0);
if(simbol=='S')cards[0][num-1]=true;
if(simbol=='H')cards[1][num-1]=true;
if(simbol=='C')cards[2][num-1]=true;
if(simbol=='D')cards[3][num-1]=true;
}
for(int i=0;i<4;i++) {
for(int j=0;j<13;j++) {
if(!cards[i][j])System.out.println(simbols[i]+" "+(j+1));
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
41,
13,
17,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
40,
13,
35,
13,
34,
17,
1,
0,
18,
18,
13,
17,
13,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
13,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
13,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
13,
17,
3,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
2,
13,
17,
17,
30,
30,
35,
13,
34,
17,
1,
0,
13,
17,
3,
34,
17,
1,
0,
13,
17,
3,
34,
17,
1,
0,
13,
17,
3,
34,
17,
1,
0,
13,
17,
3,
4,
18,
18,
13,
13,
2,
2,
13,
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
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
50,
51
],
[
39,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
56,
64
],
[
52,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
67,
75
],
[
52,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
79,
85
],
[
78,
86
],
[
52,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
90,
96
],
[
89,
97
],
[
8,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
103,
104
],
[
103,
105
],
[
98,
106
],
[
106,
107
],
[
107,
108
],
[
98,
109
],
[
110,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
111,
119
],
[
119,
120
],
[
120,
121
],
[
111,
122
],
[
123,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
124,
134
],
[
124,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
136,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
136,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
136,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
135,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
166,
171
],
[
172,
172
],
[
172,
173
],
[
172,
174
],
[
172,
175
],
[
6,
176
],
[
176,
177
]
] | [
"import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n\t//???????????\\???\n \tScanner scan = new Scanner(System.in);\n\t//???????????´??°?????????????????£??\\\n \tint n = scan.nextInt();\n\t//boolean??????????´???°???[4][13]??¨??????\n \tboolean[][] cards = new boolean[4][13];\n \tString s = null;\n \tint num;\n \t\n \t//n?????????????????????s?????????????????£???????????????????????????true?????£??\\\n \tfor(int i = 0; i < n; i++){\n \t\ts = scan.next();\n \t\tnum = scan.nextInt();\n \t\tnum--;\n \t\t\n \t\t\n \t\tswitch(s){\n \t\t\tcase \"S\":\n \t\t\t\tcards[0][num] = true;\n \t\t\t\tbreak;\n \t\t\tcase \"H\":\n \t\t\t\tcards[1][num] = true;\n \t\t\t\tbreak;\n \t\t\tcase \"C\":\n \t\t\t\tcards[2][num] = true;\n \t\t\t\tbreak;\n \t\t\tcase \"D\":\n \t\t\t\tcards[3][num] = true;\n \t\t\t\tbreak;\n \t\t}\n \t}\n \t\n\t//????????????????????°??????????????????false????????????????????????\n \tfor(int j = 0; j < 4; j++){\n \t\tfor(int i = 1; i < 14; i++){\n \t\t\tif(cards[j][i - 1] == true){ \t\t\t\t\n \t\t\t}else{\n \t\t\t\tswitch(j){\n \t\t\t\t case 0:\n \t\t\t\t\t s = \"S\";\n \t\t\t\t\t break;\n \t\t\t\t case 1:\n \t\t\t\t\t s = \"H\";\n \t\t\t\t\t break;\n \t\t\t\t case 2:\n \t\t\t\t\t s = \"C\";\n \t\t\t\t\t break;\n \t\t\t\t case 3:\n \t\t\t\t\t s = \"D\";\n \t\t\t\t\t break;\n \t\t\t\t} \t\t\t\t\n \t\t\t\tSystem.out.println(s + \" \" + i);\n \t\t\t}\n \t\t\t\n \t\t}\n \t}\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n\t//???????????\\???\n \tScanner scan = new Scanner(System.in);\n\t//???????????´??°?????????????????£??\\\n \tint n = scan.nextInt();\n\t//boolean??????????´???°???[4][13]??¨??????\n \tboolean[][] cards = new boolean[4][13];\n \tString s = null;\n \tint num;\n \t\n \t//n?????????????????????s?????????????????£???????????????????????????true?????£??\\\n \tfor(int i = 0; i < n; i++){\n \t\ts = scan.next();\n \t\tnum = scan.nextInt();\n \t\tnum--;\n \t\t\n \t\t\n \t\tswitch(s){\n \t\t\tcase \"S\":\n \t\t\t\tcards[0][num] = true;\n \t\t\t\tbreak;\n \t\t\tcase \"H\":\n \t\t\t\tcards[1][num] = true;\n \t\t\t\tbreak;\n \t\t\tcase \"C\":\n \t\t\t\tcards[2][num] = true;\n \t\t\t\tbreak;\n \t\t\tcase \"D\":\n \t\t\t\tcards[3][num] = true;\n \t\t\t\tbreak;\n \t\t}\n \t}\n \t\n\t//????????????????????°??????????????????false????????????????????????\n \tfor(int j = 0; j < 4; j++){\n \t\tfor(int i = 1; i < 14; i++){\n \t\t\tif(cards[j][i - 1] == true){ \t\t\t\t\n \t\t\t}else{\n \t\t\t\tswitch(j){\n \t\t\t\t case 0:\n \t\t\t\t\t s = \"S\";\n \t\t\t\t\t break;\n \t\t\t\t case 1:\n \t\t\t\t\t s = \"H\";\n \t\t\t\t\t break;\n \t\t\t\t case 2:\n \t\t\t\t\t s = \"C\";\n \t\t\t\t\t break;\n \t\t\t\t case 3:\n \t\t\t\t\t s = \"D\";\n \t\t\t\t\t break;\n \t\t\t\t} \t\t\t\t\n \t\t\t\tSystem.out.println(s + \" \" + i);\n \t\t\t}\n \t\t\t\n \t\t}\n \t}\n }\n}",
"Main",
"public static void main(String[] args){\n\t//???????????\\???\n \tScanner scan = new Scanner(System.in);\n\t//???????????´??°?????????????????£??\\\n \tint n = scan.nextInt();\n\t//boolean??????????´???°???[4][13]??¨??????\n \tboolean[][] cards = new boolean[4][13];\n \tString s = null;\n \tint num;\n \t\n \t//n?????????????????????s?????????????????£???????????????????????????true?????£??\\\n \tfor(int i = 0; i < n; i++){\n \t\ts = scan.next();\n \t\tnum = scan.nextInt();\n \t\tnum--;\n \t\t\n \t\t\n \t\tswitch(s){\n \t\t\tcase \"S\":\n \t\t\t\tcards[0][num] = true;\n \t\t\t\tbreak;\n \t\t\tcase \"H\":\n \t\t\t\tcards[1][num] = true;\n \t\t\t\tbreak;\n \t\t\tcase \"C\":\n \t\t\t\tcards[2][num] = true;\n \t\t\t\tbreak;\n \t\t\tcase \"D\":\n \t\t\t\tcards[3][num] = true;\n \t\t\t\tbreak;\n \t\t}\n \t}\n \t\n\t//????????????????????°??????????????????false????????????????????????\n \tfor(int j = 0; j < 4; j++){\n \t\tfor(int i = 1; i < 14; i++){\n \t\t\tif(cards[j][i - 1] == true){ \t\t\t\t\n \t\t\t}else{\n \t\t\t\tswitch(j){\n \t\t\t\t case 0:\n \t\t\t\t\t s = \"S\";\n \t\t\t\t\t break;\n \t\t\t\t case 1:\n \t\t\t\t\t s = \"H\";\n \t\t\t\t\t break;\n \t\t\t\t case 2:\n \t\t\t\t\t s = \"C\";\n \t\t\t\t\t break;\n \t\t\t\t case 3:\n \t\t\t\t\t s = \"D\";\n \t\t\t\t\t break;\n \t\t\t\t} \t\t\t\t\n \t\t\t\tSystem.out.println(s + \" \" + i);\n \t\t\t}\n \t\t\t\n \t\t}\n \t}\n }",
"main",
"{\n\t//???????????\\???\n \tScanner scan = new Scanner(System.in);\n\t//???????????´??°?????????????????£??\\\n \tint n = scan.nextInt();\n\t//boolean??????????´???°???[4][13]??¨??????\n \tboolean[][] cards = new boolean[4][13];\n \tString s = null;\n \tint num;\n \t\n \t//n?????????????????????s?????????????????£???????????????????????????true?????£??\\\n \tfor(int i = 0; i < n; i++){\n \t\ts = scan.next();\n \t\tnum = scan.nextInt();\n \t\tnum--;\n \t\t\n \t\t\n \t\tswitch(s){\n \t\t\tcase \"S\":\n \t\t\t\tcards[0][num] = true;\n \t\t\t\tbreak;\n \t\t\tcase \"H\":\n \t\t\t\tcards[1][num] = true;\n \t\t\t\tbreak;\n \t\t\tcase \"C\":\n \t\t\t\tcards[2][num] = true;\n \t\t\t\tbreak;\n \t\t\tcase \"D\":\n \t\t\t\tcards[3][num] = true;\n \t\t\t\tbreak;\n \t\t}\n \t}\n \t\n\t//????????????????????°??????????????????false????????????????????????\n \tfor(int j = 0; j < 4; j++){\n \t\tfor(int i = 1; i < 14; i++){\n \t\t\tif(cards[j][i - 1] == true){ \t\t\t\t\n \t\t\t}else{\n \t\t\t\tswitch(j){\n \t\t\t\t case 0:\n \t\t\t\t\t s = \"S\";\n \t\t\t\t\t break;\n \t\t\t\t case 1:\n \t\t\t\t\t s = \"H\";\n \t\t\t\t\t break;\n \t\t\t\t case 2:\n \t\t\t\t\t s = \"C\";\n \t\t\t\t\t break;\n \t\t\t\t case 3:\n \t\t\t\t\t s = \"D\";\n \t\t\t\t\t break;\n \t\t\t\t} \t\t\t\t\n \t\t\t\tSystem.out.println(s + \" \" + i);\n \t\t\t}\n \t\t\t\n \t\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",
"boolean[][] cards = new boolean[4][13];",
"cards",
"new boolean[4][13]",
"4",
"13",
"String s = null;",
"s",
"null",
"int num;",
"num",
"for(int i = 0; i < n; i++){\n \t\ts = scan.next();\n \t\tnum = scan.nextInt();\n \t\tnum--;\n \t\t\n \t\t\n \t\tswitch(s){\n \t\t\tcase \"S\":\n \t\t\t\tcards[0][num] = true;\n \t\t\t\tbreak;\n \t\t\tcase \"H\":\n \t\t\t\tcards[1][num] = true;\n \t\t\t\tbreak;\n \t\t\tcase \"C\":\n \t\t\t\tcards[2][num] = true;\n \t\t\t\tbreak;\n \t\t\tcase \"D\":\n \t\t\t\tcards[3][num] = true;\n \t\t\t\tbreak;\n \t\t}\n \t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \t\ts = scan.next();\n \t\tnum = scan.nextInt();\n \t\tnum--;\n \t\t\n \t\t\n \t\tswitch(s){\n \t\t\tcase \"S\":\n \t\t\t\tcards[0][num] = true;\n \t\t\t\tbreak;\n \t\t\tcase \"H\":\n \t\t\t\tcards[1][num] = true;\n \t\t\t\tbreak;\n \t\t\tcase \"C\":\n \t\t\t\tcards[2][num] = true;\n \t\t\t\tbreak;\n \t\t\tcase \"D\":\n \t\t\t\tcards[3][num] = true;\n \t\t\t\tbreak;\n \t\t}\n \t}",
"{\n \t\ts = scan.next();\n \t\tnum = scan.nextInt();\n \t\tnum--;\n \t\t\n \t\t\n \t\tswitch(s){\n \t\t\tcase \"S\":\n \t\t\t\tcards[0][num] = true;\n \t\t\t\tbreak;\n \t\t\tcase \"H\":\n \t\t\t\tcards[1][num] = true;\n \t\t\t\tbreak;\n \t\t\tcase \"C\":\n \t\t\t\tcards[2][num] = true;\n \t\t\t\tbreak;\n \t\t\tcase \"D\":\n \t\t\t\tcards[3][num] = true;\n \t\t\t\tbreak;\n \t\t}\n \t}",
"s = scan.next()",
"s",
"scan.next()",
"scan.next",
"scan",
"num = scan.nextInt()",
"num",
"scan.nextInt()",
"scan.nextInt",
"scan",
"num--",
"num",
"switch(s){\n \t\t\tcase \"S\":\n \t\t\t\tcards[0][num] = true;\n \t\t\t\tbreak;\n \t\t\tcase \"H\":\n \t\t\t\tcards[1][num] = true;\n \t\t\t\tbreak;\n \t\t\tcase \"C\":\n \t\t\t\tcards[2][num] = true;\n \t\t\t\tbreak;\n \t\t\tcase \"D\":\n \t\t\t\tcards[3][num] = true;\n \t\t\t\tbreak;\n \t\t}",
"s",
"case \"S\":",
"\"S\"",
"case \"S\":",
"cards[0][num] = true",
"cards[0][num]",
"cards[0]",
"cards",
"0",
"num",
"true",
"break;",
"case \"H\":",
"\"H\"",
"case \"H\":",
"cards[1][num] = true",
"cards[1][num]",
"cards[1]",
"cards",
"1",
"num",
"true",
"break;",
"case \"C\":",
"\"C\"",
"case \"C\":",
"cards[2][num] = true",
"cards[2][num]",
"cards[2]",
"cards",
"2",
"num",
"true",
"break;",
"case \"D\":",
"\"D\"",
"case \"D\":",
"cards[3][num] = true",
"cards[3][num]",
"cards[3]",
"cards",
"3",
"num",
"true",
"break;",
"for(int j = 0; j < 4; j++){\n \t\tfor(int i = 1; i < 14; i++){\n \t\t\tif(cards[j][i - 1] == true){ \t\t\t\t\n \t\t\t}else{\n \t\t\t\tswitch(j){\n \t\t\t\t case 0:\n \t\t\t\t\t s = \"S\";\n \t\t\t\t\t break;\n \t\t\t\t case 1:\n \t\t\t\t\t s = \"H\";\n \t\t\t\t\t break;\n \t\t\t\t case 2:\n \t\t\t\t\t s = \"C\";\n \t\t\t\t\t break;\n \t\t\t\t case 3:\n \t\t\t\t\t s = \"D\";\n \t\t\t\t\t break;\n \t\t\t\t} \t\t\t\t\n \t\t\t\tSystem.out.println(s + \" \" + i);\n \t\t\t}\n \t\t\t\n \t\t}\n \t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 4",
"j",
"4",
"j++",
"j++",
"j",
"{\n \t\tfor(int i = 1; i < 14; i++){\n \t\t\tif(cards[j][i - 1] == true){ \t\t\t\t\n \t\t\t}else{\n \t\t\t\tswitch(j){\n \t\t\t\t case 0:\n \t\t\t\t\t s = \"S\";\n \t\t\t\t\t break;\n \t\t\t\t case 1:\n \t\t\t\t\t s = \"H\";\n \t\t\t\t\t break;\n \t\t\t\t case 2:\n \t\t\t\t\t s = \"C\";\n \t\t\t\t\t break;\n \t\t\t\t case 3:\n \t\t\t\t\t s = \"D\";\n \t\t\t\t\t break;\n \t\t\t\t} \t\t\t\t\n \t\t\t\tSystem.out.println(s + \" \" + i);\n \t\t\t}\n \t\t\t\n \t\t}\n \t}",
"{\n \t\tfor(int i = 1; i < 14; i++){\n \t\t\tif(cards[j][i - 1] == true){ \t\t\t\t\n \t\t\t}else{\n \t\t\t\tswitch(j){\n \t\t\t\t case 0:\n \t\t\t\t\t s = \"S\";\n \t\t\t\t\t break;\n \t\t\t\t case 1:\n \t\t\t\t\t s = \"H\";\n \t\t\t\t\t break;\n \t\t\t\t case 2:\n \t\t\t\t\t s = \"C\";\n \t\t\t\t\t break;\n \t\t\t\t case 3:\n \t\t\t\t\t s = \"D\";\n \t\t\t\t\t break;\n \t\t\t\t} \t\t\t\t\n \t\t\t\tSystem.out.println(s + \" \" + i);\n \t\t\t}\n \t\t\t\n \t\t}\n \t}",
"for(int i = 1; i < 14; i++){\n \t\t\tif(cards[j][i - 1] == true){ \t\t\t\t\n \t\t\t}else{\n \t\t\t\tswitch(j){\n \t\t\t\t case 0:\n \t\t\t\t\t s = \"S\";\n \t\t\t\t\t break;\n \t\t\t\t case 1:\n \t\t\t\t\t s = \"H\";\n \t\t\t\t\t break;\n \t\t\t\t case 2:\n \t\t\t\t\t s = \"C\";\n \t\t\t\t\t break;\n \t\t\t\t case 3:\n \t\t\t\t\t s = \"D\";\n \t\t\t\t\t break;\n \t\t\t\t} \t\t\t\t\n \t\t\t\tSystem.out.println(s + \" \" + i);\n \t\t\t}\n \t\t\t\n \t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < 14",
"i",
"14",
"i++",
"i++",
"i",
"{\n \t\t\tif(cards[j][i - 1] == true){ \t\t\t\t\n \t\t\t}else{\n \t\t\t\tswitch(j){\n \t\t\t\t case 0:\n \t\t\t\t\t s = \"S\";\n \t\t\t\t\t break;\n \t\t\t\t case 1:\n \t\t\t\t\t s = \"H\";\n \t\t\t\t\t break;\n \t\t\t\t case 2:\n \t\t\t\t\t s = \"C\";\n \t\t\t\t\t break;\n \t\t\t\t case 3:\n \t\t\t\t\t s = \"D\";\n \t\t\t\t\t break;\n \t\t\t\t} \t\t\t\t\n \t\t\t\tSystem.out.println(s + \" \" + i);\n \t\t\t}\n \t\t\t\n \t\t}",
"{\n \t\t\tif(cards[j][i - 1] == true){ \t\t\t\t\n \t\t\t}else{\n \t\t\t\tswitch(j){\n \t\t\t\t case 0:\n \t\t\t\t\t s = \"S\";\n \t\t\t\t\t break;\n \t\t\t\t case 1:\n \t\t\t\t\t s = \"H\";\n \t\t\t\t\t break;\n \t\t\t\t case 2:\n \t\t\t\t\t s = \"C\";\n \t\t\t\t\t break;\n \t\t\t\t case 3:\n \t\t\t\t\t s = \"D\";\n \t\t\t\t\t break;\n \t\t\t\t} \t\t\t\t\n \t\t\t\tSystem.out.println(s + \" \" + i);\n \t\t\t}\n \t\t\t\n \t\t}",
"if(cards[j][i - 1] == true){ \t\t\t\t\n \t\t\t}else{\n \t\t\t\tswitch(j){\n \t\t\t\t case 0:\n \t\t\t\t\t s = \"S\";\n \t\t\t\t\t break;\n \t\t\t\t case 1:\n \t\t\t\t\t s = \"H\";\n \t\t\t\t\t break;\n \t\t\t\t case 2:\n \t\t\t\t\t s = \"C\";\n \t\t\t\t\t break;\n \t\t\t\t case 3:\n \t\t\t\t\t s = \"D\";\n \t\t\t\t\t break;\n \t\t\t\t} \t\t\t\t\n \t\t\t\tSystem.out.println(s + \" \" + i);\n \t\t\t}",
"cards[j][i - 1] == true",
"cards[j][i - 1]",
"cards[j]",
"cards",
"j",
"i - 1",
"i",
"1",
"true",
"{ \t\t\t\t\n \t\t\t}",
"{\n \t\t\t\tswitch(j){\n \t\t\t\t case 0:\n \t\t\t\t\t s = \"S\";\n \t\t\t\t\t break;\n \t\t\t\t case 1:\n \t\t\t\t\t s = \"H\";\n \t\t\t\t\t break;\n \t\t\t\t case 2:\n \t\t\t\t\t s = \"C\";\n \t\t\t\t\t break;\n \t\t\t\t case 3:\n \t\t\t\t\t s = \"D\";\n \t\t\t\t\t break;\n \t\t\t\t} \t\t\t\t\n \t\t\t\tSystem.out.println(s + \" \" + i);\n \t\t\t}",
"switch(j){\n \t\t\t\t case 0:\n \t\t\t\t\t s = \"S\";\n \t\t\t\t\t break;\n \t\t\t\t case 1:\n \t\t\t\t\t s = \"H\";\n \t\t\t\t\t break;\n \t\t\t\t case 2:\n \t\t\t\t\t s = \"C\";\n \t\t\t\t\t break;\n \t\t\t\t case 3:\n \t\t\t\t\t s = \"D\";\n \t\t\t\t\t break;\n \t\t\t\t}",
"j",
"case 0:",
"0",
"case 0:",
"s = \"S\"",
"s",
"\"S\"",
"break;",
"case 1:",
"1",
"case 1:",
"s = \"H\"",
"s",
"\"H\"",
"break;",
"case 2:",
"2",
"case 2:",
"s = \"C\"",
"s",
"\"C\"",
"break;",
"case 3:",
"3",
"case 3:",
"s = \"D\"",
"s",
"\"D\"",
"break;",
"System.out.println(s + \" \" + i)",
"System.out.println",
"System.out",
"System",
"System.out",
"s + \" \" + i",
"s + \" \" + i",
"s",
"\" \"",
"i",
"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();
//boolean??????????´???°???[4][13]??¨??????
boolean[][] cards = new boolean[4][13];
String s = null;
int num;
//n?????????????????????s?????????????????£???????????????????????????true?????£??\
for(int i = 0; i < n; i++){
s = scan.next();
num = scan.nextInt();
num--;
switch(s){
case "S":
cards[0][num] = true;
break;
case "H":
cards[1][num] = true;
break;
case "C":
cards[2][num] = true;
break;
case "D":
cards[3][num] = true;
break;
}
}
//????????????????????°??????????????????false????????????????????????
for(int j = 0; j < 4; j++){
for(int i = 1; i < 14; i++){
if(cards[j][i - 1] == true){
}else{
switch(j){
case 0:
s = "S";
break;
case 1:
s = "H";
break;
case 2:
s = "C";
break;
case 3:
s = "D";
break;
}
System.out.println(s + " " + i);
}
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
4,
18,
13,
17,
30,
4,
18,
13,
13,
14,
4,
18,
13,
17,
30,
4,
18,
13,
13,
14,
4,
18,
13,
17,
30,
4,
18,
13,
13,
14,
4,
18,
13,
17,
30,
4,
18,
13,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
4,
18,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
13,
30,
3,
14,
2,
2,
13,
2,
4,
18,
13,
17,
2,
13,
13,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
13,
0,
13,
17,
14,
4,
18,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
13,
30,
3,
14,
2,
2,
13,
2,
4,
18,
13,
17,
2,
13,
13,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
13,
0,
13,
17,
14,
4,
18,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
13,
30,
3,
14,
2,
2,
13,
2,
4,
18,
13,
17,
2,
13,
13,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
13,
0,
13,
17,
14,
4,
18,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
13,
30,
3,
14,
2,
2,
13,
2,
4,
18,
13,
17,
2,
13,
13,
30,
4,
18,
18,
13,
13,
2,
2,
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
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
47,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
47,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
64,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
64,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
74,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
74,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
84,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
84,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
94,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
8,
104
],
[
104,
105
],
[
104,
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
],
[
124,
127
],
[
123,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
129,
137
],
[
137,
138
],
[
138,
139
],
[
129,
140
],
[
141,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
142,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
142,
152
],
[
152,
153
],
[
153,
154
],
[
142,
155
],
[
156,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
159,
162
],
[
156,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
163,
167
],
[
167,
168
],
[
163,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
173,
177
],
[
170,
178
],
[
178,
179
],
[
178,
180
],
[
169,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
182,
187
],
[
188,
188
],
[
188,
189
],
[
188,
190
],
[
188,
191
],
[
128,
192
],
[
192,
193
],
[
192,
194
],
[
123,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
196,
199
],
[
195,
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
],
[
216,
217
],
[
216,
218
],
[
214,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
222,
223
],
[
214,
224
],
[
224,
225
],
[
225,
226
],
[
214,
227
],
[
228,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
231,
232
],
[
232,
233
],
[
231,
234
],
[
228,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
235,
239
],
[
239,
240
],
[
235,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
243,
245
],
[
245,
246
],
[
246,
247
],
[
247,
248
],
[
245,
249
],
[
242,
250
],
[
250,
251
],
[
250,
252
],
[
241,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
254,
259
],
[
260,
260
],
[
260,
261
],
[
260,
262
],
[
260,
263
],
[
200,
264
],
[
264,
265
],
[
264,
266
],
[
195,
267
],
[
267,
268
],
[
268,
269
],
[
269,
270
],
[
268,
271
],
[
267,
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
],
[
288,
289
],
[
288,
290
],
[
286,
291
],
[
291,
292
],
[
291,
293
],
[
293,
294
],
[
294,
295
],
[
286,
296
],
[
296,
297
],
[
297,
298
],
[
286,
299
],
[
300,
300
],
[
300,
301
],
[
301,
302
],
[
301,
303
],
[
303,
304
],
[
304,
305
],
[
303,
306
],
[
300,
307
],
[
307,
308
],
[
308,
309
],
[
308,
310
],
[
307,
311
],
[
311,
312
],
[
307,
313
],
[
313,
314
],
[
314,
315
],
[
315,
316
],
[
315,
317
],
[
317,
318
],
[
318,
319
],
[
319,
320
],
[
317,
321
],
[
314,
322
],
[
322,
323
],
[
322,
324
],
[
313,
325
],
[
325,
326
],
[
326,
327
],
[
327,
328
],
[
328,
329
],
[
328,
330
],
[
326,
331
],
[
332,
332
],
[
332,
333
],
[
332,
334
],
[
332,
335
],
[
272,
336
],
[
336,
337
],
[
336,
338
],
[
267,
339
],
[
339,
340
],
[
340,
341
],
[
341,
342
],
[
340,
343
],
[
339,
344
],
[
344,
345
],
[
345,
346
],
[
346,
347
],
[
347,
348
],
[
347,
349
],
[
345,
350
],
[
350,
351
],
[
350,
352
],
[
345,
353
],
[
353,
354
],
[
354,
355
],
[
345,
356
],
[
357,
357
],
[
357,
358
],
[
358,
359
],
[
359,
360
],
[
360,
361
],
[
360,
362
],
[
358,
363
],
[
363,
364
],
[
363,
365
],
[
365,
366
],
[
366,
367
],
[
358,
368
],
[
368,
369
],
[
369,
370
],
[
358,
371
],
[
372,
372
],
[
372,
373
],
[
373,
374
],
[
373,
375
],
[
375,
376
],
[
376,
377
],
[
375,
378
],
[
372,
379
],
[
379,
380
],
[
380,
381
],
[
380,
382
],
[
379,
383
],
[
383,
384
],
[
379,
385
],
[
385,
386
],
[
386,
387
],
[
387,
388
],
[
387,
389
],
[
389,
390
],
[
390,
391
],
[
391,
392
],
[
389,
393
],
[
386,
394
],
[
394,
395
],
[
394,
396
],
[
385,
397
],
[
397,
398
],
[
398,
399
],
[
399,
400
],
[
400,
401
],
[
400,
402
],
[
398,
403
],
[
404,
404
],
[
404,
405
],
[
404,
406
],
[
404,
407
],
[
6,
408
],
[
408,
409
]
] | [
"\nimport java.util.*;\n\nclass Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//カードの枚数を受け取る\n\t\tString card = sc.next();\n\t\tint cn = Integer.parseInt(card);\n\t\t\n\t\t//カードのマーク別に可変長配列を作る\n\t\tArrayList<Integer> cardS = new ArrayList<Integer>();\n\t\tArrayList<Integer> cardH = new ArrayList<Integer>();\n\t\tArrayList<Integer> cardC = new ArrayList<Integer>();\n\t\tArrayList<Integer> cardD = new ArrayList<Integer>();\n\t\t\n\t\t//入力されるカード番号を受け取る\n\t\tfor(int i = 0; i < cn; i++){\n\t\t\tString kc = sc.next();\n\t\t\tString s2 = sc.next();\n\t\t\tint c = Integer.parseInt(s2);\n\t\t\t\n\t\t\tif(kc.equals(\"S\")){\n\t\t\t\tcardS.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"H\")){\n\t\t\t\tcardH.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"C\")){\n\t\t\t\tcardC.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"D\")){\n\t\t\t\tcardD.add(c);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//カードのマーク別に1から13まで受け取った番号があるかを調べる\n\t\t//なかったらその番号を表示する\n\t\t\n\t\t//トランプのマークを識別するための文字列cs\n\t\tString cs = \"S\";\n\t\t//今比べている配列内の値を入れる器cb\n\t\tint cb = 0;\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\t//スペードのとき\n\t\t\tif(cs.equals(\"S\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardS.size(); k++){\n\t\t\t\t\t\tcb = cardS.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardS.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"H\";\n\t\t\t}\n\t\t\t//ハートのとき\n\t\t\telse if(cs.equals(\"H\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardH.size(); k++){\n\t\t\t\t\t\tcb = cardH.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardH.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"C\";\n\t\t\t}\n\t\t\t//クローバーのとき\n\t\t\telse if(cs.equals(\"C\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardC.size(); k++){\n\t\t\t\t\t\tcb = cardC.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardC.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"D\";\n\t\t\t}\n\t\t\t//ダイヤのとき\n\t\t\telse if(cs.equals(\"D\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardD.size(); k++){\n\t\t\t\t\t\tcb = cardD.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardD.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + j);\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.*;",
"util.*",
"java",
"class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//カードの枚数を受け取る\n\t\tString card = sc.next();\n\t\tint cn = Integer.parseInt(card);\n\t\t\n\t\t//カードのマーク別に可変長配列を作る\n\t\tArrayList<Integer> cardS = new ArrayList<Integer>();\n\t\tArrayList<Integer> cardH = new ArrayList<Integer>();\n\t\tArrayList<Integer> cardC = new ArrayList<Integer>();\n\t\tArrayList<Integer> cardD = new ArrayList<Integer>();\n\t\t\n\t\t//入力されるカード番号を受け取る\n\t\tfor(int i = 0; i < cn; i++){\n\t\t\tString kc = sc.next();\n\t\t\tString s2 = sc.next();\n\t\t\tint c = Integer.parseInt(s2);\n\t\t\t\n\t\t\tif(kc.equals(\"S\")){\n\t\t\t\tcardS.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"H\")){\n\t\t\t\tcardH.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"C\")){\n\t\t\t\tcardC.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"D\")){\n\t\t\t\tcardD.add(c);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//カードのマーク別に1から13まで受け取った番号があるかを調べる\n\t\t//なかったらその番号を表示する\n\t\t\n\t\t//トランプのマークを識別するための文字列cs\n\t\tString cs = \"S\";\n\t\t//今比べている配列内の値を入れる器cb\n\t\tint cb = 0;\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\t//スペードのとき\n\t\t\tif(cs.equals(\"S\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardS.size(); k++){\n\t\t\t\t\t\tcb = cardS.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardS.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"H\";\n\t\t\t}\n\t\t\t//ハートのとき\n\t\t\telse if(cs.equals(\"H\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardH.size(); k++){\n\t\t\t\t\t\tcb = cardH.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardH.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"C\";\n\t\t\t}\n\t\t\t//クローバーのとき\n\t\t\telse if(cs.equals(\"C\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardC.size(); k++){\n\t\t\t\t\t\tcb = cardC.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardC.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"D\";\n\t\t\t}\n\t\t\t//ダイヤのとき\n\t\t\telse if(cs.equals(\"D\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardD.size(); k++){\n\t\t\t\t\t\tcb = cardD.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardD.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + j);\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}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//カードの枚数を受け取る\n\t\tString card = sc.next();\n\t\tint cn = Integer.parseInt(card);\n\t\t\n\t\t//カードのマーク別に可変長配列を作る\n\t\tArrayList<Integer> cardS = new ArrayList<Integer>();\n\t\tArrayList<Integer> cardH = new ArrayList<Integer>();\n\t\tArrayList<Integer> cardC = new ArrayList<Integer>();\n\t\tArrayList<Integer> cardD = new ArrayList<Integer>();\n\t\t\n\t\t//入力されるカード番号を受け取る\n\t\tfor(int i = 0; i < cn; i++){\n\t\t\tString kc = sc.next();\n\t\t\tString s2 = sc.next();\n\t\t\tint c = Integer.parseInt(s2);\n\t\t\t\n\t\t\tif(kc.equals(\"S\")){\n\t\t\t\tcardS.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"H\")){\n\t\t\t\tcardH.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"C\")){\n\t\t\t\tcardC.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"D\")){\n\t\t\t\tcardD.add(c);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//カードのマーク別に1から13まで受け取った番号があるかを調べる\n\t\t//なかったらその番号を表示する\n\t\t\n\t\t//トランプのマークを識別するための文字列cs\n\t\tString cs = \"S\";\n\t\t//今比べている配列内の値を入れる器cb\n\t\tint cb = 0;\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\t//スペードのとき\n\t\t\tif(cs.equals(\"S\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardS.size(); k++){\n\t\t\t\t\t\tcb = cardS.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardS.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"H\";\n\t\t\t}\n\t\t\t//ハートのとき\n\t\t\telse if(cs.equals(\"H\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardH.size(); k++){\n\t\t\t\t\t\tcb = cardH.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardH.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"C\";\n\t\t\t}\n\t\t\t//クローバーのとき\n\t\t\telse if(cs.equals(\"C\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardC.size(); k++){\n\t\t\t\t\t\tcb = cardC.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardC.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"D\";\n\t\t\t}\n\t\t\t//ダイヤのとき\n\t\t\telse if(cs.equals(\"D\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardD.size(); k++){\n\t\t\t\t\t\tcb = cardD.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardD.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + j);\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\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//カードの枚数を受け取る\n\t\tString card = sc.next();\n\t\tint cn = Integer.parseInt(card);\n\t\t\n\t\t//カードのマーク別に可変長配列を作る\n\t\tArrayList<Integer> cardS = new ArrayList<Integer>();\n\t\tArrayList<Integer> cardH = new ArrayList<Integer>();\n\t\tArrayList<Integer> cardC = new ArrayList<Integer>();\n\t\tArrayList<Integer> cardD = new ArrayList<Integer>();\n\t\t\n\t\t//入力されるカード番号を受け取る\n\t\tfor(int i = 0; i < cn; i++){\n\t\t\tString kc = sc.next();\n\t\t\tString s2 = sc.next();\n\t\t\tint c = Integer.parseInt(s2);\n\t\t\t\n\t\t\tif(kc.equals(\"S\")){\n\t\t\t\tcardS.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"H\")){\n\t\t\t\tcardH.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"C\")){\n\t\t\t\tcardC.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"D\")){\n\t\t\t\tcardD.add(c);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//カードのマーク別に1から13まで受け取った番号があるかを調べる\n\t\t//なかったらその番号を表示する\n\t\t\n\t\t//トランプのマークを識別するための文字列cs\n\t\tString cs = \"S\";\n\t\t//今比べている配列内の値を入れる器cb\n\t\tint cb = 0;\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\t//スペードのとき\n\t\t\tif(cs.equals(\"S\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardS.size(); k++){\n\t\t\t\t\t\tcb = cardS.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardS.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"H\";\n\t\t\t}\n\t\t\t//ハートのとき\n\t\t\telse if(cs.equals(\"H\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardH.size(); k++){\n\t\t\t\t\t\tcb = cardH.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardH.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"C\";\n\t\t\t}\n\t\t\t//クローバーのとき\n\t\t\telse if(cs.equals(\"C\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardC.size(); k++){\n\t\t\t\t\t\tcb = cardC.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardC.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"D\";\n\t\t\t}\n\t\t\t//ダイヤのとき\n\t\t\telse if(cs.equals(\"D\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardD.size(); k++){\n\t\t\t\t\t\tcb = cardD.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardD.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + j);\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}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String card = sc.next();",
"card",
"sc.next()",
"sc.next",
"sc",
"int cn = Integer.parseInt(card);",
"cn",
"Integer.parseInt(card)",
"Integer.parseInt",
"Integer",
"card",
"ArrayList<Integer> cardS = new ArrayList<Integer>();",
"cardS",
"new ArrayList<Integer>()",
"ArrayList<Integer> cardH = new ArrayList<Integer>();",
"cardH",
"new ArrayList<Integer>()",
"ArrayList<Integer> cardC = new ArrayList<Integer>();",
"cardC",
"new ArrayList<Integer>()",
"ArrayList<Integer> cardD = new ArrayList<Integer>();",
"cardD",
"new ArrayList<Integer>()",
"for(int i = 0; i < cn; i++){\n\t\t\tString kc = sc.next();\n\t\t\tString s2 = sc.next();\n\t\t\tint c = Integer.parseInt(s2);\n\t\t\t\n\t\t\tif(kc.equals(\"S\")){\n\t\t\t\tcardS.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"H\")){\n\t\t\t\tcardH.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"C\")){\n\t\t\t\tcardC.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"D\")){\n\t\t\t\tcardD.add(c);\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < cn",
"i",
"cn",
"i++",
"i++",
"i",
"{\n\t\t\tString kc = sc.next();\n\t\t\tString s2 = sc.next();\n\t\t\tint c = Integer.parseInt(s2);\n\t\t\t\n\t\t\tif(kc.equals(\"S\")){\n\t\t\t\tcardS.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"H\")){\n\t\t\t\tcardH.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"C\")){\n\t\t\t\tcardC.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"D\")){\n\t\t\t\tcardD.add(c);\n\t\t\t}\n\t\t}",
"{\n\t\t\tString kc = sc.next();\n\t\t\tString s2 = sc.next();\n\t\t\tint c = Integer.parseInt(s2);\n\t\t\t\n\t\t\tif(kc.equals(\"S\")){\n\t\t\t\tcardS.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"H\")){\n\t\t\t\tcardH.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"C\")){\n\t\t\t\tcardC.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"D\")){\n\t\t\t\tcardD.add(c);\n\t\t\t}\n\t\t}",
"String kc = sc.next();",
"kc",
"sc.next()",
"sc.next",
"sc",
"String s2 = sc.next();",
"s2",
"sc.next()",
"sc.next",
"sc",
"int c = Integer.parseInt(s2);",
"c",
"Integer.parseInt(s2)",
"Integer.parseInt",
"Integer",
"s2",
"if(kc.equals(\"S\")){\n\t\t\t\tcardS.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"H\")){\n\t\t\t\tcardH.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"C\")){\n\t\t\t\tcardC.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"D\")){\n\t\t\t\tcardD.add(c);\n\t\t\t}",
"kc.equals(\"S\")",
"kc.equals",
"kc",
"\"S\"",
"{\n\t\t\t\tcardS.add(c);\n\t\t\t}",
"cardS.add(c)",
"cardS.add",
"cardS",
"c",
"if(kc.equals(\"H\")){\n\t\t\t\tcardH.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"C\")){\n\t\t\t\tcardC.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"D\")){\n\t\t\t\tcardD.add(c);\n\t\t\t}",
"kc.equals(\"H\")",
"kc.equals",
"kc",
"\"H\"",
"{\n\t\t\t\tcardH.add(c);\n\t\t\t}",
"cardH.add(c)",
"cardH.add",
"cardH",
"c",
"if(kc.equals(\"C\")){\n\t\t\t\tcardC.add(c);\n\t\t\t}\n\t\t\telse if(kc.equals(\"D\")){\n\t\t\t\tcardD.add(c);\n\t\t\t}",
"kc.equals(\"C\")",
"kc.equals",
"kc",
"\"C\"",
"{\n\t\t\t\tcardC.add(c);\n\t\t\t}",
"cardC.add(c)",
"cardC.add",
"cardC",
"c",
"if(kc.equals(\"D\")){\n\t\t\t\tcardD.add(c);\n\t\t\t}",
"kc.equals(\"D\")",
"kc.equals",
"kc",
"\"D\"",
"{\n\t\t\t\tcardD.add(c);\n\t\t\t}",
"cardD.add(c)",
"cardD.add",
"cardD",
"c",
"String cs = \"S\";",
"cs",
"\"S\"",
"int cb = 0;",
"cb",
"0",
"for(int i = 0; i < 4; i++){\n\t\t\t//スペードのとき\n\t\t\tif(cs.equals(\"S\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardS.size(); k++){\n\t\t\t\t\t\tcb = cardS.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardS.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"H\";\n\t\t\t}\n\t\t\t//ハートのとき\n\t\t\telse if(cs.equals(\"H\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardH.size(); k++){\n\t\t\t\t\t\tcb = cardH.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardH.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"C\";\n\t\t\t}\n\t\t\t//クローバーのとき\n\t\t\telse if(cs.equals(\"C\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardC.size(); k++){\n\t\t\t\t\t\tcb = cardC.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardC.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"D\";\n\t\t\t}\n\t\t\t//ダイヤのとき\n\t\t\telse if(cs.equals(\"D\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardD.size(); k++){\n\t\t\t\t\t\tcb = cardD.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardD.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + j);\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}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\t//スペードのとき\n\t\t\tif(cs.equals(\"S\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardS.size(); k++){\n\t\t\t\t\t\tcb = cardS.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardS.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"H\";\n\t\t\t}\n\t\t\t//ハートのとき\n\t\t\telse if(cs.equals(\"H\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardH.size(); k++){\n\t\t\t\t\t\tcb = cardH.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardH.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"C\";\n\t\t\t}\n\t\t\t//クローバーのとき\n\t\t\telse if(cs.equals(\"C\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardC.size(); k++){\n\t\t\t\t\t\tcb = cardC.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardC.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"D\";\n\t\t\t}\n\t\t\t//ダイヤのとき\n\t\t\telse if(cs.equals(\"D\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardD.size(); k++){\n\t\t\t\t\t\tcb = cardD.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardD.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + j);\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\t//スペードのとき\n\t\t\tif(cs.equals(\"S\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardS.size(); k++){\n\t\t\t\t\t\tcb = cardS.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardS.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"H\";\n\t\t\t}\n\t\t\t//ハートのとき\n\t\t\telse if(cs.equals(\"H\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardH.size(); k++){\n\t\t\t\t\t\tcb = cardH.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardH.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"C\";\n\t\t\t}\n\t\t\t//クローバーのとき\n\t\t\telse if(cs.equals(\"C\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardC.size(); k++){\n\t\t\t\t\t\tcb = cardC.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardC.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"D\";\n\t\t\t}\n\t\t\t//ダイヤのとき\n\t\t\telse if(cs.equals(\"D\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardD.size(); k++){\n\t\t\t\t\t\tcb = cardD.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardD.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + j);\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}",
"if(cs.equals(\"S\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardS.size(); k++){\n\t\t\t\t\t\tcb = cardS.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardS.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"H\";\n\t\t\t}\n\t\t\t//ハートのとき\n\t\t\telse if(cs.equals(\"H\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardH.size(); k++){\n\t\t\t\t\t\tcb = cardH.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardH.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"C\";\n\t\t\t}\n\t\t\t//クローバーのとき\n\t\t\telse if(cs.equals(\"C\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardC.size(); k++){\n\t\t\t\t\t\tcb = cardC.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardC.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"D\";\n\t\t\t}\n\t\t\t//ダイヤのとき\n\t\t\telse if(cs.equals(\"D\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardD.size(); k++){\n\t\t\t\t\t\tcb = cardD.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardD.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"cs.equals(\"S\")",
"cs.equals",
"cs",
"\"S\"",
"{\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardS.size(); k++){\n\t\t\t\t\t\tcb = cardS.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardS.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"H\";\n\t\t\t}",
"for(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardS.size(); k++){\n\t\t\t\t\t\tcb = cardS.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardS.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j <= 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tfor(int k = 0; k < cardS.size(); k++){\n\t\t\t\t\t\tcb = cardS.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardS.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + j);\n\t\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 < cardS.size(); k++){\n\t\t\t\t\t\tcb = cardS.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardS.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"for(int k = 0; k < cardS.size(); k++){\n\t\t\t\t\t\tcb = cardS.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardS.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < cardS.size()",
"k",
"cardS.size()",
"cardS.size",
"cardS",
"k++",
"k++",
"k",
"{\n\t\t\t\t\t\tcb = cardS.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardS.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tcb = cardS.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardS.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"cb = cardS.get(k)",
"cb",
"cardS.get(k)",
"cardS.get",
"cardS",
"k",
"if(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardS.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + j);\n\t\t\t\t\t\t}",
"j == cb",
"j",
"cb",
"{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}",
"break;",
"if(k == cardS.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + j);\n\t\t\t\t\t\t}",
"k == cardS.size() - 1 && j != cb",
"k == cardS.size() - 1",
"k",
"cardS.size() - 1",
"cardS.size()",
"cardS.size",
"cardS",
"1",
"j != cb",
"j",
"cb",
"{\n\t\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + j);\n\t\t\t\t\t\t}",
"System.out.println(\"S\" + \" \" + j)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S\" + \" \" + j",
"\"S\" + \" \" + j",
"\"S\"",
"\" \"",
"j",
"cs = \"H\"",
"cs",
"\"H\"",
"if(cs.equals(\"H\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardH.size(); k++){\n\t\t\t\t\t\tcb = cardH.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardH.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"C\";\n\t\t\t}\n\t\t\t//クローバーのとき\n\t\t\telse if(cs.equals(\"C\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardC.size(); k++){\n\t\t\t\t\t\tcb = cardC.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardC.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"D\";\n\t\t\t}\n\t\t\t//ダイヤのとき\n\t\t\telse if(cs.equals(\"D\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardD.size(); k++){\n\t\t\t\t\t\tcb = cardD.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardD.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"cs.equals(\"H\")",
"cs.equals",
"cs",
"\"H\"",
"{\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardH.size(); k++){\n\t\t\t\t\t\tcb = cardH.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardH.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"C\";\n\t\t\t}",
"for(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardH.size(); k++){\n\t\t\t\t\t\tcb = cardH.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardH.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j <= 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tfor(int k = 0; k < cardH.size(); k++){\n\t\t\t\t\t\tcb = cardH.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardH.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + j);\n\t\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 < cardH.size(); k++){\n\t\t\t\t\t\tcb = cardH.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardH.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"for(int k = 0; k < cardH.size(); k++){\n\t\t\t\t\t\tcb = cardH.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardH.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < cardH.size()",
"k",
"cardH.size()",
"cardH.size",
"cardH",
"k++",
"k++",
"k",
"{\n\t\t\t\t\t\tcb = cardH.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardH.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tcb = cardH.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardH.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"cb = cardH.get(k)",
"cb",
"cardH.get(k)",
"cardH.get",
"cardH",
"k",
"if(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardH.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + j);\n\t\t\t\t\t\t}",
"j == cb",
"j",
"cb",
"{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}",
"break;",
"if(k == cardH.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + j);\n\t\t\t\t\t\t}",
"k == cardH.size() - 1 && j != cb",
"k == cardH.size() - 1",
"k",
"cardH.size() - 1",
"cardH.size()",
"cardH.size",
"cardH",
"1",
"j != cb",
"j",
"cb",
"{\n\t\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + j);\n\t\t\t\t\t\t}",
"System.out.println(\"H\" + \" \" + j)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H\" + \" \" + j",
"\"H\" + \" \" + j",
"\"H\"",
"\" \"",
"j",
"cs = \"C\"",
"cs",
"\"C\"",
"if(cs.equals(\"C\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardC.size(); k++){\n\t\t\t\t\t\tcb = cardC.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardC.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"D\";\n\t\t\t}\n\t\t\t//ダイヤのとき\n\t\t\telse if(cs.equals(\"D\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardD.size(); k++){\n\t\t\t\t\t\tcb = cardD.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardD.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"cs.equals(\"C\")",
"cs.equals",
"cs",
"\"C\"",
"{\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardC.size(); k++){\n\t\t\t\t\t\tcb = cardC.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardC.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcs = \"D\";\n\t\t\t}",
"for(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardC.size(); k++){\n\t\t\t\t\t\tcb = cardC.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardC.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j <= 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tfor(int k = 0; k < cardC.size(); k++){\n\t\t\t\t\t\tcb = cardC.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardC.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + j);\n\t\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 < cardC.size(); k++){\n\t\t\t\t\t\tcb = cardC.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardC.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"for(int k = 0; k < cardC.size(); k++){\n\t\t\t\t\t\tcb = cardC.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardC.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < cardC.size()",
"k",
"cardC.size()",
"cardC.size",
"cardC",
"k++",
"k++",
"k",
"{\n\t\t\t\t\t\tcb = cardC.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardC.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tcb = cardC.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardC.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"cb = cardC.get(k)",
"cb",
"cardC.get(k)",
"cardC.get",
"cardC",
"k",
"if(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardC.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + j);\n\t\t\t\t\t\t}",
"j == cb",
"j",
"cb",
"{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}",
"break;",
"if(k == cardC.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + j);\n\t\t\t\t\t\t}",
"k == cardC.size() - 1 && j != cb",
"k == cardC.size() - 1",
"k",
"cardC.size() - 1",
"cardC.size()",
"cardC.size",
"cardC",
"1",
"j != cb",
"j",
"cb",
"{\n\t\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + j);\n\t\t\t\t\t\t}",
"System.out.println(\"C\" + \" \" + j)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C\" + \" \" + j",
"\"C\" + \" \" + j",
"\"C\"",
"\" \"",
"j",
"cs = \"D\"",
"cs",
"\"D\"",
"if(cs.equals(\"D\")){\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardD.size(); k++){\n\t\t\t\t\t\tcb = cardD.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardD.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"cs.equals(\"D\")",
"cs.equals",
"cs",
"\"D\"",
"{\n\t\t\t\tfor(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardD.size(); k++){\n\t\t\t\t\t\tcb = cardD.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardD.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"for(int j = 1; j <= 13; j++){\n\t\t\t\t\tfor(int k = 0; k < cardD.size(); k++){\n\t\t\t\t\t\tcb = cardD.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardD.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j <= 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tfor(int k = 0; k < cardD.size(); k++){\n\t\t\t\t\t\tcb = cardD.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardD.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + j);\n\t\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 < cardD.size(); k++){\n\t\t\t\t\t\tcb = cardD.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardD.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"for(int k = 0; k < cardD.size(); k++){\n\t\t\t\t\t\tcb = cardD.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardD.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < cardD.size()",
"k",
"cardD.size()",
"cardD.size",
"cardD",
"k++",
"k++",
"k",
"{\n\t\t\t\t\t\tcb = cardD.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardD.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tcb = cardD.get(k);\n\t\t\t\t\t\tif(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardD.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"cb = cardD.get(k)",
"cb",
"cardD.get(k)",
"cardD.get",
"cardD",
"k",
"if(j == cb){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(k == cardD.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + j);\n\t\t\t\t\t\t}",
"j == cb",
"j",
"cb",
"{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}",
"break;",
"if(k == cardD.size() - 1 && j != cb){\n\t\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + j);\n\t\t\t\t\t\t}",
"k == cardD.size() - 1 && j != cb",
"k == cardD.size() - 1",
"k",
"cardD.size() - 1",
"cardD.size()",
"cardD.size",
"cardD",
"1",
"j != cb",
"j",
"cb",
"{\n\t\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + j);\n\t\t\t\t\t\t}",
"System.out.println(\"D\" + \" \" + j)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D\" + \" \" + j",
"\"D\" + \" \" + j",
"\"D\"",
"\" \"",
"j",
"String[] args",
"args"
] |
import java.util.*;
class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
//カードの枚数を受け取る
String card = sc.next();
int cn = Integer.parseInt(card);
//カードのマーク別に可変長配列を作る
ArrayList<Integer> cardS = new ArrayList<Integer>();
ArrayList<Integer> cardH = new ArrayList<Integer>();
ArrayList<Integer> cardC = new ArrayList<Integer>();
ArrayList<Integer> cardD = new ArrayList<Integer>();
//入力されるカード番号を受け取る
for(int i = 0; i < cn; i++){
String kc = sc.next();
String s2 = sc.next();
int c = Integer.parseInt(s2);
if(kc.equals("S")){
cardS.add(c);
}
else if(kc.equals("H")){
cardH.add(c);
}
else if(kc.equals("C")){
cardC.add(c);
}
else if(kc.equals("D")){
cardD.add(c);
}
}
//カードのマーク別に1から13まで受け取った番号があるかを調べる
//なかったらその番号を表示する
//トランプのマークを識別するための文字列cs
String cs = "S";
//今比べている配列内の値を入れる器cb
int cb = 0;
for(int i = 0; i < 4; i++){
//スペードのとき
if(cs.equals("S")){
for(int j = 1; j <= 13; j++){
for(int k = 0; k < cardS.size(); k++){
cb = cardS.get(k);
if(j == cb){
break;
}
else if(k == cardS.size() - 1 && j != cb){
System.out.println("S" + " " + j);
}
}
}
cs = "H";
}
//ハートのとき
else if(cs.equals("H")){
for(int j = 1; j <= 13; j++){
for(int k = 0; k < cardH.size(); k++){
cb = cardH.get(k);
if(j == cb){
break;
}
else if(k == cardH.size() - 1 && j != cb){
System.out.println("H" + " " + j);
}
}
}
cs = "C";
}
//クローバーのとき
else if(cs.equals("C")){
for(int j = 1; j <= 13; j++){
for(int k = 0; k < cardC.size(); k++){
cb = cardC.get(k);
if(j == cb){
break;
}
else if(k == cardC.size() - 1 && j != cb){
System.out.println("C" + " " + j);
}
}
}
cs = "D";
}
//ダイヤのとき
else if(cs.equals("D")){
for(int j = 1; j <= 13; j++){
for(int k = 0; k < cardD.size(); k++){
cb = cardD.get(k);
if(j == cb){
break;
}
else if(k == cardD.size() - 1 && j != cb){
System.out.println("D" + " " + j);
}
}
}
}
}
}
} |
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
35,
18,
13,
17,
34,
17,
1,
0,
18,
13,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
2,
13,
17,
17,
3,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
233,
2
],
[
233,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
5,
14
],
[
14,
15
],
[
15,
16
],
[
5,
17
],
[
17,
18
],
[
17,
19
],
[
5,
21
],
[
21,
22
],
[
21,
23
],
[
5,
25
],
[
25,
26
],
[
25,
27
],
[
5,
29
],
[
29,
30
],
[
29,
31
],
[
5,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
48,
53
],
[
45,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
59,
60
],
[
59,
61
],
[
45,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
69,
75
],
[
68,
76
],
[
62,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
80,
86
],
[
79,
87
],
[
62,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
94,
96
],
[
91,
97
],
[
90,
98
],
[
62,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
105,
107
],
[
102,
108
],
[
101,
109
],
[
5,
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
],
[
124,
128
],
[
123,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
137,
139
],
[
5,
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
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
160,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
167,
169
],
[
5,
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
],
[
184,
188
],
[
183,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
190,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
197,
199
],
[
5,
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
],
[
222,
223
],
[
222,
224
],
[
220,
225
],
[
225,
226
],
[
225,
227
],
[
227,
228
],
[
227,
229
],
[
3,
230
],
[
230,
231
],
[
0,
232
],
[
232,
233
],
[
232,
234
]
] | [
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tsc.nextLine();\n\n\t\tboolean[] Scards = new boolean[13];\n\t\tboolean[] Hcards = new boolean[13];\n\t\tboolean[] Ccards = new boolean[13];\n\t\tboolean[] Dcards = new boolean[13];\n\n\t\tfor ( int i = 0; i < n; i++) {\n\n\t\t\tString[] data = sc.nextLine().split(\" \");\n\t\t\tint r = Integer.parseInt(data[1]);\n\n\t\t\tswitch (data[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tScards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tHcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tCcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tDcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (Scards[i] == false) {\n\t\t\t\tSystem.out.println( \"S \" + (i+1) );\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (Hcards[i] == false) {\n\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (Ccards[i] == false) {\n\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (Dcards[i] == false) {\n\t\t\t\tSystem.out.println(\"D \" + (i+1));\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\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tsc.nextLine();\n\n\t\tboolean[] Scards = new boolean[13];\n\t\tboolean[] Hcards = new boolean[13];\n\t\tboolean[] Ccards = new boolean[13];\n\t\tboolean[] Dcards = new boolean[13];\n\n\t\tfor ( int i = 0; i < n; i++) {\n\n\t\t\tString[] data = sc.nextLine().split(\" \");\n\t\t\tint r = Integer.parseInt(data[1]);\n\n\t\t\tswitch (data[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tScards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tHcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tCcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tDcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (Scards[i] == false) {\n\t\t\t\tSystem.out.println( \"S \" + (i+1) );\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (Hcards[i] == false) {\n\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (Ccards[i] == false) {\n\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (Dcards[i] == false) {\n\t\t\t\tSystem.out.println(\"D \" + (i+1));\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tsc.nextLine();\n\n\t\tboolean[] Scards = new boolean[13];\n\t\tboolean[] Hcards = new boolean[13];\n\t\tboolean[] Ccards = new boolean[13];\n\t\tboolean[] Dcards = new boolean[13];\n\n\t\tfor ( int i = 0; i < n; i++) {\n\n\t\t\tString[] data = sc.nextLine().split(\" \");\n\t\t\tint r = Integer.parseInt(data[1]);\n\n\t\t\tswitch (data[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tScards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tHcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tCcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tDcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (Scards[i] == false) {\n\t\t\t\tSystem.out.println( \"S \" + (i+1) );\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (Hcards[i] == false) {\n\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (Ccards[i] == false) {\n\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (Dcards[i] == false) {\n\t\t\t\tSystem.out.println(\"D \" + (i+1));\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tsc.nextLine();\n\n\t\tboolean[] Scards = new boolean[13];\n\t\tboolean[] Hcards = new boolean[13];\n\t\tboolean[] Ccards = new boolean[13];\n\t\tboolean[] Dcards = new boolean[13];\n\n\t\tfor ( int i = 0; i < n; i++) {\n\n\t\t\tString[] data = sc.nextLine().split(\" \");\n\t\t\tint r = Integer.parseInt(data[1]);\n\n\t\t\tswitch (data[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tScards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tHcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tCcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tDcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (Scards[i] == false) {\n\t\t\t\tSystem.out.println( \"S \" + (i+1) );\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (Hcards[i] == false) {\n\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (Ccards[i] == false) {\n\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (Dcards[i] == false) {\n\t\t\t\tSystem.out.println(\"D \" + (i+1));\n\t\t\t}\n\t\t}\n\t}",
"java.util.Scanner sc = new java.util.Scanner(System.in);",
"sc",
"new java.util.Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.nextLine()",
"sc.nextLine",
"sc",
"boolean[] Scards = new boolean[13];",
"Scards",
"new boolean[13]",
"13",
"boolean[] Hcards = new boolean[13];",
"Hcards",
"new boolean[13]",
"13",
"boolean[] Ccards = new boolean[13];",
"Ccards",
"new boolean[13]",
"13",
"boolean[] Dcards = new boolean[13];",
"Dcards",
"new boolean[13]",
"13",
"for ( int i = 0; i < n; i++) {\n\n\t\t\tString[] data = sc.nextLine().split(\" \");\n\t\t\tint r = Integer.parseInt(data[1]);\n\n\t\t\tswitch (data[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tScards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tHcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tCcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tDcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\n\t\t\tString[] data = sc.nextLine().split(\" \");\n\t\t\tint r = Integer.parseInt(data[1]);\n\n\t\t\tswitch (data[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tScards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tHcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tCcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tDcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}",
"{\n\n\t\t\tString[] data = sc.nextLine().split(\" \");\n\t\t\tint r = Integer.parseInt(data[1]);\n\n\t\t\tswitch (data[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tScards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tHcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tCcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tDcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}",
"String[] data = sc.nextLine().split(\" \");",
"data",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"int r = Integer.parseInt(data[1]);",
"r",
"Integer.parseInt(data[1])",
"Integer.parseInt",
"Integer",
"data[1]",
"data",
"1",
"switch (data[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tScards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tHcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tCcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tDcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\t}",
"data[0]",
"data",
"0",
"case \"S\":",
"\"S\"",
"case \"S\":",
"Scards[r-1] = true",
"Scards[r-1]",
"Scards",
"r-1",
"r",
"1",
"true",
"break;",
"case \"H\":",
"\"H\"",
"case \"H\":",
"Hcards[r-1] = true",
"Hcards[r-1]",
"Hcards",
"r-1",
"r",
"1",
"true",
"break;",
"case \"C\":",
"\"C\"",
"case \"C\":",
"Ccards[r-1] = true",
"Ccards[r-1]",
"Ccards",
"r-1",
"r",
"1",
"true",
"break;",
"case \"D\":",
"\"D\"",
"case \"D\":",
"Dcards[r-1] = true",
"Dcards[r-1]",
"Dcards",
"r-1",
"r",
"1",
"true",
"break;",
"for (int i = 0; i < 13; i++) {\n\t\t\tif (Scards[i] == false) {\n\t\t\t\tSystem.out.println( \"S \" + (i+1) );\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif (Scards[i] == false) {\n\t\t\t\tSystem.out.println( \"S \" + (i+1) );\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (Scards[i] == false) {\n\t\t\t\tSystem.out.println( \"S \" + (i+1) );\n\t\t\t}\n\t\t}",
"if (Scards[i] == false) {\n\t\t\t\tSystem.out.println( \"S \" + (i+1) );\n\t\t\t}",
"Scards[i] == false",
"Scards[i]",
"Scards",
"i",
"false",
"{\n\t\t\t\tSystem.out.println( \"S \" + (i+1) );\n\t\t\t}",
"System.out.println( \"S \" + (i+1) )",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \" + (i+1)",
"\"S \"",
"(i+1)",
"i",
"1",
"for (int i = 0; i < 13; i++) {\n\t\t\tif (Hcards[i] == false) {\n\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif (Hcards[i] == false) {\n\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (Hcards[i] == false) {\n\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t}\n\t\t}",
"if (Hcards[i] == false) {\n\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t}",
"Hcards[i] == false",
"Hcards[i]",
"Hcards",
"i",
"false",
"{\n\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t}",
"System.out.println(\"H \" + (i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \" + (i+1)",
"\"H \"",
"(i+1)",
"i",
"1",
"for (int i = 0; i < 13; i++) {\n\t\t\tif (Ccards[i] == false) {\n\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif (Ccards[i] == false) {\n\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (Ccards[i] == false) {\n\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t}\n\t\t}",
"if (Ccards[i] == false) {\n\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t}",
"Ccards[i] == false",
"Ccards[i]",
"Ccards",
"i",
"false",
"{\n\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t}",
"System.out.println(\"C \" + (i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \" + (i+1)",
"\"C \"",
"(i+1)",
"i",
"1",
"for (int i = 0; i < 13; i++) {\n\t\t\tif (Dcards[i] == false) {\n\t\t\t\tSystem.out.println(\"D \" + (i+1));\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif (Dcards[i] == false) {\n\t\t\t\tSystem.out.println(\"D \" + (i+1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (Dcards[i] == false) {\n\t\t\t\tSystem.out.println(\"D \" + (i+1));\n\t\t\t}\n\t\t}",
"if (Dcards[i] == false) {\n\t\t\t\tSystem.out.println(\"D \" + (i+1));\n\t\t\t}",
"Dcards[i] == false",
"Dcards[i]",
"Dcards",
"i",
"false",
"{\n\t\t\t\tSystem.out.println(\"D \" + (i+1));\n\t\t\t}",
"System.out.println(\"D \" + (i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \" + (i+1)",
"\"D \"",
"(i+1)",
"i",
"1",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tsc.nextLine();\n\n\t\tboolean[] Scards = new boolean[13];\n\t\tboolean[] Hcards = new boolean[13];\n\t\tboolean[] Ccards = new boolean[13];\n\t\tboolean[] Dcards = new boolean[13];\n\n\t\tfor ( int i = 0; i < n; i++) {\n\n\t\t\tString[] data = sc.nextLine().split(\" \");\n\t\t\tint r = Integer.parseInt(data[1]);\n\n\t\t\tswitch (data[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tScards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tHcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tCcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tDcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (Scards[i] == false) {\n\t\t\t\tSystem.out.println( \"S \" + (i+1) );\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (Hcards[i] == false) {\n\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (Ccards[i] == false) {\n\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (Dcards[i] == false) {\n\t\t\t\tSystem.out.println(\"D \" + (i+1));\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\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tsc.nextLine();\n\n\t\tboolean[] Scards = new boolean[13];\n\t\tboolean[] Hcards = new boolean[13];\n\t\tboolean[] Ccards = new boolean[13];\n\t\tboolean[] Dcards = new boolean[13];\n\n\t\tfor ( int i = 0; i < n; i++) {\n\n\t\t\tString[] data = sc.nextLine().split(\" \");\n\t\t\tint r = Integer.parseInt(data[1]);\n\n\t\t\tswitch (data[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tScards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tHcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tCcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tDcards[r-1] = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (Scards[i] == false) {\n\t\t\t\tSystem.out.println( \"S \" + (i+1) );\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (Hcards[i] == false) {\n\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (Ccards[i] == false) {\n\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 13; i++) {\n\t\t\tif (Dcards[i] == false) {\n\t\t\t\tSystem.out.println(\"D \" + (i+1));\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main"
] | public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
java.util.Scanner sc = new java.util.Scanner(System.in);
int n = sc.nextInt();
sc.nextLine();
boolean[] Scards = new boolean[13];
boolean[] Hcards = new boolean[13];
boolean[] Ccards = new boolean[13];
boolean[] Dcards = new boolean[13];
for ( int i = 0; i < n; i++) {
String[] data = sc.nextLine().split(" ");
int r = Integer.parseInt(data[1]);
switch (data[0]) {
case "S":
Scards[r-1] = true;
break;
case "H":
Hcards[r-1] = true;
break;
case "C":
Ccards[r-1] = true;
break;
case "D":
Dcards[r-1] = true;
break;
}
}
for (int i = 0; i < 13; i++) {
if (Scards[i] == false) {
System.out.println( "S " + (i+1) );
}
}
for (int i = 0; i < 13; i++) {
if (Hcards[i] == false) {
System.out.println("H " + (i+1));
}
}
for (int i = 0; i < 13; i++) {
if (Ccards[i] == false) {
System.out.println("C " + (i+1));
}
}
for (int i = 0; i < 13; i++) {
if (Dcards[i] == false) {
System.out.println("D " + (i+1));
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
13,
17,
29,
41,
13,
20,
17,
41,
13,
20,
17,
11,
1,
41,
13,
13,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
17,
35,
18,
13,
17,
34,
17,
1,
0,
18,
13,
2,
4,
18,
13,
18,
13,
17,
17,
17,
3,
34,
17,
1,
0,
18,
13,
2,
2,
4,
18,
13,
18,
13,
17,
17,
17,
17,
3,
34,
17,
1,
0,
18,
13,
2,
2,
4,
18,
13,
18,
13,
17,
17,
17,
17,
3,
34,
17,
1,
0,
18,
13,
2,
2,
4,
18,
13,
18,
13,
17,
17,
17,
17,
3,
34,
1,
3,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
14,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
2,
2,
13,
17,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
2,
17,
2,
2,
13,
17,
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
],
[
218,
11
],
[
218,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
14,
31
],
[
31,
32
],
[
31,
33
],
[
14,
35
],
[
35,
36
],
[
35,
37
],
[
14,
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
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
54,
59
],
[
51,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
74,
75
],
[
74,
76
],
[
70,
77
],
[
67,
78
],
[
66,
79
],
[
60,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
91,
92
],
[
91,
93
],
[
87,
94
],
[
86,
95
],
[
83,
96
],
[
82,
97
],
[
60,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
109,
110
],
[
109,
111
],
[
105,
112
],
[
104,
113
],
[
101,
114
],
[
100,
115
],
[
60,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
127,
128
],
[
127,
129
],
[
123,
130
],
[
122,
131
],
[
119,
132
],
[
118,
133
],
[
60,
134
],
[
134,
135
],
[
135,
136
],
[
14,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
142,
143
],
[
142,
144
],
[
137,
145
],
[
145,
146
],
[
146,
147
],
[
137,
148
],
[
149,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
150,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
161,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
168,
170
],
[
157,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
175,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
182,
186
],
[
171,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
191,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
202
],
[
187,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
203,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
210,
214
],
[
12,
215
],
[
215,
216
],
[
0,
217
],
[
217,
218
],
[
217,
219
]
] | [
"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 int n = Integer.parseInt(br.readLine());\n if(n==52) return;\n boolean a[] = new boolean[52];\n String str[] = new String[2];\n for(int i=n;i>0;i--){\n str = br.readLine().split(\" \");\n switch(str[0]){\n case \"S\":\n a[Integer.parseInt(str[1])-1] = true;\n break;\n case \"H\":\n a[Integer.parseInt(str[1])-1+13] = true;\n break;\n case \"C\":\n a[Integer.parseInt(str[1])-1+26] = true;\n break;\n case \"D\":\n a[Integer.parseInt(str[1])-1+39] = true;\n break;\n default:\n break;\n }\n }\n for(int i=0;i<52;i++){\n if(a[i]==false){\n if(i<13) System.out.println(\"S \"+(i+1));\n else if(i<26) System.out.println(\"H \"+(i+1-13));\n else if(i<39) System.out.println(\"C \"+(i+1-26));\n else System.out.println(\"D \"+(i+1-39));\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 int n = Integer.parseInt(br.readLine());\n if(n==52) return;\n boolean a[] = new boolean[52];\n String str[] = new String[2];\n for(int i=n;i>0;i--){\n str = br.readLine().split(\" \");\n switch(str[0]){\n case \"S\":\n a[Integer.parseInt(str[1])-1] = true;\n break;\n case \"H\":\n a[Integer.parseInt(str[1])-1+13] = true;\n break;\n case \"C\":\n a[Integer.parseInt(str[1])-1+26] = true;\n break;\n case \"D\":\n a[Integer.parseInt(str[1])-1+39] = true;\n break;\n default:\n break;\n }\n }\n for(int i=0;i<52;i++){\n if(a[i]==false){\n if(i<13) System.out.println(\"S \"+(i+1));\n else if(i<26) System.out.println(\"H \"+(i+1-13));\n else if(i<39) System.out.println(\"C \"+(i+1-26));\n else System.out.println(\"D \"+(i+1-39));\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n if(n==52) return;\n boolean a[] = new boolean[52];\n String str[] = new String[2];\n for(int i=n;i>0;i--){\n str = br.readLine().split(\" \");\n switch(str[0]){\n case \"S\":\n a[Integer.parseInt(str[1])-1] = true;\n break;\n case \"H\":\n a[Integer.parseInt(str[1])-1+13] = true;\n break;\n case \"C\":\n a[Integer.parseInt(str[1])-1+26] = true;\n break;\n case \"D\":\n a[Integer.parseInt(str[1])-1+39] = true;\n break;\n default:\n break;\n }\n }\n for(int i=0;i<52;i++){\n if(a[i]==false){\n if(i<13) System.out.println(\"S \"+(i+1));\n else if(i<26) System.out.println(\"H \"+(i+1-13));\n else if(i<39) System.out.println(\"C \"+(i+1-26));\n else System.out.println(\"D \"+(i+1-39));\n }\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n if(n==52) return;\n boolean a[] = new boolean[52];\n String str[] = new String[2];\n for(int i=n;i>0;i--){\n str = br.readLine().split(\" \");\n switch(str[0]){\n case \"S\":\n a[Integer.parseInt(str[1])-1] = true;\n break;\n case \"H\":\n a[Integer.parseInt(str[1])-1+13] = true;\n break;\n case \"C\":\n a[Integer.parseInt(str[1])-1+26] = true;\n break;\n case \"D\":\n a[Integer.parseInt(str[1])-1+39] = true;\n break;\n default:\n break;\n }\n }\n for(int i=0;i<52;i++){\n if(a[i]==false){\n if(i<13) System.out.println(\"S \"+(i+1));\n else if(i<26) System.out.println(\"H \"+(i+1-13));\n else if(i<39) System.out.println(\"C \"+(i+1-26));\n else System.out.println(\"D \"+(i+1-39));\n }\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"if(n==52) return;",
"n==52",
"n",
"52",
"return;",
"boolean a[] = new boolean[52];",
"a",
"new boolean[52]",
"52",
"String str[] = new String[2];",
"str",
"new String[2]",
"2",
"for(int i=n;i>0;i--){\n str = br.readLine().split(\" \");\n switch(str[0]){\n case \"S\":\n a[Integer.parseInt(str[1])-1] = true;\n break;\n case \"H\":\n a[Integer.parseInt(str[1])-1+13] = true;\n break;\n case \"C\":\n a[Integer.parseInt(str[1])-1+26] = true;\n break;\n case \"D\":\n a[Integer.parseInt(str[1])-1+39] = true;\n break;\n default:\n break;\n }\n }",
"int i=n;",
"int i=n;",
"i",
"n",
"i>0",
"i",
"0",
"i--",
"i--",
"i",
"{\n str = br.readLine().split(\" \");\n switch(str[0]){\n case \"S\":\n a[Integer.parseInt(str[1])-1] = true;\n break;\n case \"H\":\n a[Integer.parseInt(str[1])-1+13] = true;\n break;\n case \"C\":\n a[Integer.parseInt(str[1])-1+26] = true;\n break;\n case \"D\":\n a[Integer.parseInt(str[1])-1+39] = true;\n break;\n default:\n break;\n }\n }",
"{\n str = br.readLine().split(\" \");\n switch(str[0]){\n case \"S\":\n a[Integer.parseInt(str[1])-1] = true;\n break;\n case \"H\":\n a[Integer.parseInt(str[1])-1+13] = true;\n break;\n case \"C\":\n a[Integer.parseInt(str[1])-1+26] = true;\n break;\n case \"D\":\n a[Integer.parseInt(str[1])-1+39] = true;\n break;\n default:\n break;\n }\n }",
"str = br.readLine().split(\" \")",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"switch(str[0]){\n case \"S\":\n a[Integer.parseInt(str[1])-1] = true;\n break;\n case \"H\":\n a[Integer.parseInt(str[1])-1+13] = true;\n break;\n case \"C\":\n a[Integer.parseInt(str[1])-1+26] = true;\n break;\n case \"D\":\n a[Integer.parseInt(str[1])-1+39] = true;\n break;\n default:\n break;\n }",
"str[0]",
"str",
"0",
"case \"S\":",
"\"S\"",
"case \"S\":",
"a[Integer.parseInt(str[1])-1] = true",
"a[Integer.parseInt(str[1])-1]",
"a",
"Integer.parseInt(str[1])-1",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"1",
"true",
"break;",
"case \"H\":",
"\"H\"",
"case \"H\":",
"a[Integer.parseInt(str[1])-1+13] = true",
"a[Integer.parseInt(str[1])-1+13]",
"a",
"Integer.parseInt(str[1])-1+13",
"Integer.parseInt(str[1])-1",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"1",
"13",
"true",
"break;",
"case \"C\":",
"\"C\"",
"case \"C\":",
"a[Integer.parseInt(str[1])-1+26] = true",
"a[Integer.parseInt(str[1])-1+26]",
"a",
"Integer.parseInt(str[1])-1+26",
"Integer.parseInt(str[1])-1",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"1",
"26",
"true",
"break;",
"case \"D\":",
"\"D\"",
"case \"D\":",
"a[Integer.parseInt(str[1])-1+39] = true",
"a[Integer.parseInt(str[1])-1+39]",
"a",
"Integer.parseInt(str[1])-1+39",
"Integer.parseInt(str[1])-1",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"1",
"39",
"true",
"break;",
"default:",
"default:",
"break;",
"for(int i=0;i<52;i++){\n if(a[i]==false){\n if(i<13) System.out.println(\"S \"+(i+1));\n else if(i<26) System.out.println(\"H \"+(i+1-13));\n else if(i<39) System.out.println(\"C \"+(i+1-26));\n else System.out.println(\"D \"+(i+1-39));\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<52",
"i",
"52",
"i++",
"i++",
"i",
"{\n if(a[i]==false){\n if(i<13) System.out.println(\"S \"+(i+1));\n else if(i<26) System.out.println(\"H \"+(i+1-13));\n else if(i<39) System.out.println(\"C \"+(i+1-26));\n else System.out.println(\"D \"+(i+1-39));\n }\n }",
"{\n if(a[i]==false){\n if(i<13) System.out.println(\"S \"+(i+1));\n else if(i<26) System.out.println(\"H \"+(i+1-13));\n else if(i<39) System.out.println(\"C \"+(i+1-26));\n else System.out.println(\"D \"+(i+1-39));\n }\n }",
"if(a[i]==false){\n if(i<13) System.out.println(\"S \"+(i+1));\n else if(i<26) System.out.println(\"H \"+(i+1-13));\n else if(i<39) System.out.println(\"C \"+(i+1-26));\n else System.out.println(\"D \"+(i+1-39));\n }",
"a[i]==false",
"a[i]",
"a",
"i",
"false",
"{\n if(i<13) System.out.println(\"S \"+(i+1));\n else if(i<26) System.out.println(\"H \"+(i+1-13));\n else if(i<39) System.out.println(\"C \"+(i+1-26));\n else System.out.println(\"D \"+(i+1-39));\n }",
"if(i<13) System.out.println(\"S \"+(i+1));\n else if(i<26) System.out.println(\"H \"+(i+1-13));\n else if(i<39) System.out.println(\"C \"+(i+1-26));\n else System.out.println(\"D \"+(i+1-39));",
"i<13",
"i",
"13",
"System.out.println(\"S \"+(i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \"+(i+1)",
"\"S \"",
"(i+1)",
"i",
"1",
"if(i<26) System.out.println(\"H \"+(i+1-13));\n else if(i<39) System.out.println(\"C \"+(i+1-26));\n else System.out.println(\"D \"+(i+1-39));",
"i<26",
"i",
"26",
"System.out.println(\"H \"+(i+1-13))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \"+(i+1-13)",
"\"H \"",
"(i+1-13)",
"i+1",
"i",
"1",
"13",
"if(i<39) System.out.println(\"C \"+(i+1-26));\n else System.out.println(\"D \"+(i+1-39));",
"i<39",
"i",
"39",
"System.out.println(\"C \"+(i+1-26))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \"+(i+1-26)",
"\"C \"",
"(i+1-26)",
"i+1",
"i",
"1",
"26",
"System.out.println(\"D \"+(i+1-39))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \"+(i+1-39)",
"\"D \"",
"(i+1-39)",
"i+1",
"i",
"1",
"39",
"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 int n = Integer.parseInt(br.readLine());\n if(n==52) return;\n boolean a[] = new boolean[52];\n String str[] = new String[2];\n for(int i=n;i>0;i--){\n str = br.readLine().split(\" \");\n switch(str[0]){\n case \"S\":\n a[Integer.parseInt(str[1])-1] = true;\n break;\n case \"H\":\n a[Integer.parseInt(str[1])-1+13] = true;\n break;\n case \"C\":\n a[Integer.parseInt(str[1])-1+26] = true;\n break;\n case \"D\":\n a[Integer.parseInt(str[1])-1+39] = true;\n break;\n default:\n break;\n }\n }\n for(int i=0;i<52;i++){\n if(a[i]==false){\n if(i<13) System.out.println(\"S \"+(i+1));\n else if(i<26) System.out.println(\"H \"+(i+1-13));\n else if(i<39) System.out.println(\"C \"+(i+1-26));\n else System.out.println(\"D \"+(i+1-39));\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 int n = Integer.parseInt(br.readLine());\n if(n==52) return;\n boolean a[] = new boolean[52];\n String str[] = new String[2];\n for(int i=n;i>0;i--){\n str = br.readLine().split(\" \");\n switch(str[0]){\n case \"S\":\n a[Integer.parseInt(str[1])-1] = true;\n break;\n case \"H\":\n a[Integer.parseInt(str[1])-1+13] = true;\n break;\n case \"C\":\n a[Integer.parseInt(str[1])-1+26] = true;\n break;\n case \"D\":\n a[Integer.parseInt(str[1])-1+39] = true;\n break;\n default:\n break;\n }\n }\n for(int i=0;i<52;i++){\n if(a[i]==false){\n if(i<13) System.out.println(\"S \"+(i+1));\n else if(i<26) System.out.println(\"H \"+(i+1-13));\n else if(i<39) System.out.println(\"C \"+(i+1-26));\n else System.out.println(\"D \"+(i+1-39));\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));
int n = Integer.parseInt(br.readLine());
if(n==52) return;
boolean a[] = new boolean[52];
String str[] = new String[2];
for(int i=n;i>0;i--){
str = br.readLine().split(" ");
switch(str[0]){
case "S":
a[Integer.parseInt(str[1])-1] = true;
break;
case "H":
a[Integer.parseInt(str[1])-1+13] = true;
break;
case "C":
a[Integer.parseInt(str[1])-1+26] = true;
break;
case "D":
a[Integer.parseInt(str[1])-1+39] = true;
break;
default:
break;
}
}
for(int i=0;i<52;i++){
if(a[i]==false){
if(i<13) System.out.println("S "+(i+1));
else if(i<26) System.out.println("H "+(i+1-13));
else if(i<39) System.out.println("C "+(i+1-26));
else System.out.println("D "+(i+1-39));
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
39,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
14,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
20,
23
],
[
20,
24
],
[
20,
25
],
[
20,
26
],
[
20,
27
],
[
20,
28
],
[
20,
29
],
[
20,
30
],
[
20,
31
],
[
20,
32
],
[
20,
33
],
[
19,
34
],
[
34,
35
],
[
34,
36
],
[
34,
37
],
[
34,
38
],
[
34,
39
],
[
34,
40
],
[
34,
41
],
[
34,
42
],
[
34,
43
],
[
34,
44
],
[
34,
45
],
[
34,
46
],
[
34,
47
],
[
19,
48
],
[
48,
49
],
[
48,
50
],
[
48,
51
],
[
48,
52
],
[
48,
53
],
[
48,
54
],
[
48,
55
],
[
48,
56
],
[
48,
57
],
[
48,
58
],
[
48,
59
],
[
48,
60
],
[
48,
61
],
[
19,
62
],
[
62,
63
],
[
62,
64
],
[
62,
65
],
[
62,
66
],
[
62,
67
],
[
62,
68
],
[
62,
69
],
[
62,
70
],
[
62,
71
],
[
62,
72
],
[
62,
73
],
[
62,
74
],
[
62,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
76,
87
],
[
88,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
88,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
88,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
99,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
110,
112
],
[
105,
113
],
[
88,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
114,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
125,
127
],
[
120,
128
],
[
88,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
130,
133
],
[
129,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
140,
141
],
[
140,
142
],
[
135,
143
],
[
88,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
145,
148
],
[
144,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
155,
156
],
[
155,
157
],
[
150,
158
],
[
8,
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
],
[
172,
177
],
[
177,
178
],
[
177,
179
],
[
172,
180
],
[
180,
181
],
[
181,
182
],
[
172,
183
],
[
184,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
186,
192
],
[
185,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
194,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
198,
203
],
[
203,
204
],
[
203,
205
],
[
205,
206
],
[
205,
207
],
[
194,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
212,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
219,
221
],
[
208,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
222,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
226,
231
],
[
231,
232
],
[
231,
233
],
[
233,
234
],
[
233,
235
],
[
222,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
236,
241
],
[
241,
242
],
[
241,
243
],
[
243,
244
],
[
243,
245
],
[
6,
246
],
[
246,
247
]
] | [
"\nimport java.util.Scanner;\nclass Main {\n\n //static char[] xx = new char[] {'S','H','C','D'};\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int box[][] = {{1,2,3,4,5,6,7,8,9,10,11,12,13},\n \t{1,2,3,4,5,6,7,8,9,10,11,12,13},\n \t{1,2,3,4,5,6,7,8,9,10,11,12,13},\n \t{1,2,3,4,5,6,7,8,9,10,11,12,13}};\n\n for(int i = 0; i < n; i++) {\n String m = sc.next();\n int b = sc.nextInt();\n\n if(m.equals(\"S\")) {\n box[0][b-1] = 0;\n }\n if(m.equals(\"H\")) {\n \tbox[1][b-1] = 0;\n }\n if(m.equals(\"C\")) {\n \tbox[2][b-1] = 0;\n }\n if(m.equals(\"D\")) {\n \tbox[3][b-1] = 0;\n }\n }\n for(int i = 0 ; i< 4; i++) {\n for(int j = 0; j < 13; j++) {\n //if(!box[i][j]) {\n \tif(box[i][j]!=0) {\n \t\tif (i == 0)\n System.out.println(\"S \" + (j + 1));\n else if (i == 1)\n System.out.println(\"H \" + (j + 1));\n else if (i == 2)\n System.out.println(\"C \" + (j + 1));\n else\n System.out.println(\"D \" + (j + 1));\n \t}\n }\n }\n //System.out.println(\"\");\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\n //static char[] xx = new char[] {'S','H','C','D'};\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int box[][] = {{1,2,3,4,5,6,7,8,9,10,11,12,13},\n \t{1,2,3,4,5,6,7,8,9,10,11,12,13},\n \t{1,2,3,4,5,6,7,8,9,10,11,12,13},\n \t{1,2,3,4,5,6,7,8,9,10,11,12,13}};\n\n for(int i = 0; i < n; i++) {\n String m = sc.next();\n int b = sc.nextInt();\n\n if(m.equals(\"S\")) {\n box[0][b-1] = 0;\n }\n if(m.equals(\"H\")) {\n \tbox[1][b-1] = 0;\n }\n if(m.equals(\"C\")) {\n \tbox[2][b-1] = 0;\n }\n if(m.equals(\"D\")) {\n \tbox[3][b-1] = 0;\n }\n }\n for(int i = 0 ; i< 4; i++) {\n for(int j = 0; j < 13; j++) {\n //if(!box[i][j]) {\n \tif(box[i][j]!=0) {\n \t\tif (i == 0)\n System.out.println(\"S \" + (j + 1));\n else if (i == 1)\n System.out.println(\"H \" + (j + 1));\n else if (i == 2)\n System.out.println(\"C \" + (j + 1));\n else\n System.out.println(\"D \" + (j + 1));\n \t}\n }\n }\n //System.out.println(\"\");\n }\n}",
"Main",
"//static char[] xx = new char[] {'S','H','C','D'};\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int box[][] = {{1,2,3,4,5,6,7,8,9,10,11,12,13},\n \t{1,2,3,4,5,6,7,8,9,10,11,12,13},\n \t{1,2,3,4,5,6,7,8,9,10,11,12,13},\n \t{1,2,3,4,5,6,7,8,9,10,11,12,13}};\n\n for(int i = 0; i < n; i++) {\n String m = sc.next();\n int b = sc.nextInt();\n\n if(m.equals(\"S\")) {\n box[0][b-1] = 0;\n }\n if(m.equals(\"H\")) {\n \tbox[1][b-1] = 0;\n }\n if(m.equals(\"C\")) {\n \tbox[2][b-1] = 0;\n }\n if(m.equals(\"D\")) {\n \tbox[3][b-1] = 0;\n }\n }\n for(int i = 0 ; i< 4; i++) {\n for(int j = 0; j < 13; j++) {\n //if(!box[i][j]) {\n \tif(box[i][j]!=0) {\n \t\tif (i == 0)\n System.out.println(\"S \" + (j + 1));\n else if (i == 1)\n System.out.println(\"H \" + (j + 1));\n else if (i == 2)\n System.out.println(\"C \" + (j + 1));\n else\n System.out.println(\"D \" + (j + 1));\n \t}\n }\n }\n //System.out.println(\"\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int box[][] = {{1,2,3,4,5,6,7,8,9,10,11,12,13},\n \t{1,2,3,4,5,6,7,8,9,10,11,12,13},\n \t{1,2,3,4,5,6,7,8,9,10,11,12,13},\n \t{1,2,3,4,5,6,7,8,9,10,11,12,13}};\n\n for(int i = 0; i < n; i++) {\n String m = sc.next();\n int b = sc.nextInt();\n\n if(m.equals(\"S\")) {\n box[0][b-1] = 0;\n }\n if(m.equals(\"H\")) {\n \tbox[1][b-1] = 0;\n }\n if(m.equals(\"C\")) {\n \tbox[2][b-1] = 0;\n }\n if(m.equals(\"D\")) {\n \tbox[3][b-1] = 0;\n }\n }\n for(int i = 0 ; i< 4; i++) {\n for(int j = 0; j < 13; j++) {\n //if(!box[i][j]) {\n \tif(box[i][j]!=0) {\n \t\tif (i == 0)\n System.out.println(\"S \" + (j + 1));\n else if (i == 1)\n System.out.println(\"H \" + (j + 1));\n else if (i == 2)\n System.out.println(\"C \" + (j + 1));\n else\n System.out.println(\"D \" + (j + 1));\n \t}\n }\n }\n //System.out.println(\"\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int box[][] = {{1,2,3,4,5,6,7,8,9,10,11,12,13},\n \t{1,2,3,4,5,6,7,8,9,10,11,12,13},\n \t{1,2,3,4,5,6,7,8,9,10,11,12,13},\n \t{1,2,3,4,5,6,7,8,9,10,11,12,13}};",
"box",
"{{1,2,3,4,5,6,7,8,9,10,11,12,13},\n \t{1,2,3,4,5,6,7,8,9,10,11,12,13},\n \t{1,2,3,4,5,6,7,8,9,10,11,12,13},\n \t{1,2,3,4,5,6,7,8,9,10,11,12,13}}",
"{1,2,3,4,5,6,7,8,9,10,11,12,13}",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"{1,2,3,4,5,6,7,8,9,10,11,12,13}",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"{1,2,3,4,5,6,7,8,9,10,11,12,13}",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"{1,2,3,4,5,6,7,8,9,10,11,12,13}",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"for(int i = 0; i < n; i++) {\n String m = sc.next();\n int b = sc.nextInt();\n\n if(m.equals(\"S\")) {\n box[0][b-1] = 0;\n }\n if(m.equals(\"H\")) {\n \tbox[1][b-1] = 0;\n }\n if(m.equals(\"C\")) {\n \tbox[2][b-1] = 0;\n }\n if(m.equals(\"D\")) {\n \tbox[3][b-1] = 0;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String m = sc.next();\n int b = sc.nextInt();\n\n if(m.equals(\"S\")) {\n box[0][b-1] = 0;\n }\n if(m.equals(\"H\")) {\n \tbox[1][b-1] = 0;\n }\n if(m.equals(\"C\")) {\n \tbox[2][b-1] = 0;\n }\n if(m.equals(\"D\")) {\n \tbox[3][b-1] = 0;\n }\n }",
"{\n String m = sc.next();\n int b = sc.nextInt();\n\n if(m.equals(\"S\")) {\n box[0][b-1] = 0;\n }\n if(m.equals(\"H\")) {\n \tbox[1][b-1] = 0;\n }\n if(m.equals(\"C\")) {\n \tbox[2][b-1] = 0;\n }\n if(m.equals(\"D\")) {\n \tbox[3][b-1] = 0;\n }\n }",
"String m = sc.next();",
"m",
"sc.next()",
"sc.next",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(m.equals(\"S\")) {\n box[0][b-1] = 0;\n }",
"m.equals(\"S\")",
"m.equals",
"m",
"\"S\"",
"{\n box[0][b-1] = 0;\n }",
"box[0][b-1] = 0",
"box[0][b-1]",
"box[0]",
"box",
"0",
"b-1",
"b",
"1",
"0",
"if(m.equals(\"H\")) {\n \tbox[1][b-1] = 0;\n }",
"m.equals(\"H\")",
"m.equals",
"m",
"\"H\"",
"{\n \tbox[1][b-1] = 0;\n }",
"box[1][b-1] = 0",
"box[1][b-1]",
"box[1]",
"box",
"1",
"b-1",
"b",
"1",
"0",
"if(m.equals(\"C\")) {\n \tbox[2][b-1] = 0;\n }",
"m.equals(\"C\")",
"m.equals",
"m",
"\"C\"",
"{\n \tbox[2][b-1] = 0;\n }",
"box[2][b-1] = 0",
"box[2][b-1]",
"box[2]",
"box",
"2",
"b-1",
"b",
"1",
"0",
"if(m.equals(\"D\")) {\n \tbox[3][b-1] = 0;\n }",
"m.equals(\"D\")",
"m.equals",
"m",
"\"D\"",
"{\n \tbox[3][b-1] = 0;\n }",
"box[3][b-1] = 0",
"box[3][b-1]",
"box[3]",
"box",
"3",
"b-1",
"b",
"1",
"0",
"for(int i = 0 ; i< 4; i++) {\n for(int j = 0; j < 13; j++) {\n //if(!box[i][j]) {\n \tif(box[i][j]!=0) {\n \t\tif (i == 0)\n System.out.println(\"S \" + (j + 1));\n else if (i == 1)\n System.out.println(\"H \" + (j + 1));\n else if (i == 2)\n System.out.println(\"C \" + (j + 1));\n else\n System.out.println(\"D \" + (j + 1));\n \t}\n }\n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i< 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < 13; j++) {\n //if(!box[i][j]) {\n \tif(box[i][j]!=0) {\n \t\tif (i == 0)\n System.out.println(\"S \" + (j + 1));\n else if (i == 1)\n System.out.println(\"H \" + (j + 1));\n else if (i == 2)\n System.out.println(\"C \" + (j + 1));\n else\n System.out.println(\"D \" + (j + 1));\n \t}\n }\n }",
"{\n for(int j = 0; j < 13; j++) {\n //if(!box[i][j]) {\n \tif(box[i][j]!=0) {\n \t\tif (i == 0)\n System.out.println(\"S \" + (j + 1));\n else if (i == 1)\n System.out.println(\"H \" + (j + 1));\n else if (i == 2)\n System.out.println(\"C \" + (j + 1));\n else\n System.out.println(\"D \" + (j + 1));\n \t}\n }\n }",
"for(int j = 0; j < 13; j++) {\n //if(!box[i][j]) {\n \tif(box[i][j]!=0) {\n \t\tif (i == 0)\n System.out.println(\"S \" + (j + 1));\n else if (i == 1)\n System.out.println(\"H \" + (j + 1));\n else if (i == 2)\n System.out.println(\"C \" + (j + 1));\n else\n System.out.println(\"D \" + (j + 1));\n \t}\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n //if(!box[i][j]) {\n \tif(box[i][j]!=0) {\n \t\tif (i == 0)\n System.out.println(\"S \" + (j + 1));\n else if (i == 1)\n System.out.println(\"H \" + (j + 1));\n else if (i == 2)\n System.out.println(\"C \" + (j + 1));\n else\n System.out.println(\"D \" + (j + 1));\n \t}\n }",
"{\n //if(!box[i][j]) {\n \tif(box[i][j]!=0) {\n \t\tif (i == 0)\n System.out.println(\"S \" + (j + 1));\n else if (i == 1)\n System.out.println(\"H \" + (j + 1));\n else if (i == 2)\n System.out.println(\"C \" + (j + 1));\n else\n System.out.println(\"D \" + (j + 1));\n \t}\n }",
"if(box[i][j]!=0) {\n \t\tif (i == 0)\n System.out.println(\"S \" + (j + 1));\n else if (i == 1)\n System.out.println(\"H \" + (j + 1));\n else if (i == 2)\n System.out.println(\"C \" + (j + 1));\n else\n System.out.println(\"D \" + (j + 1));\n \t}",
"box[i][j]!=0",
"box[i][j]",
"box[i]",
"box",
"i",
"j",
"0",
"{\n \t\tif (i == 0)\n System.out.println(\"S \" + (j + 1));\n else if (i == 1)\n System.out.println(\"H \" + (j + 1));\n else if (i == 2)\n System.out.println(\"C \" + (j + 1));\n else\n System.out.println(\"D \" + (j + 1));\n \t}",
"if (i == 0)\n System.out.println(\"S \" + (j + 1));\n else if (i == 1)\n System.out.println(\"H \" + (j + 1));\n else if (i == 2)\n System.out.println(\"C \" + (j + 1));\n else\n System.out.println(\"D \" + (j + 1));",
"i == 0",
"i",
"0",
"System.out.println(\"S \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \" + (j + 1)",
"\"S \"",
"(j + 1)",
"j",
"1",
"if (i == 1)\n System.out.println(\"H \" + (j + 1));\n else if (i == 2)\n System.out.println(\"C \" + (j + 1));\n else\n System.out.println(\"D \" + (j + 1));",
"i == 1",
"i",
"1",
"System.out.println(\"H \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \" + (j + 1)",
"\"H \"",
"(j + 1)",
"j",
"1",
"if (i == 2)\n System.out.println(\"C \" + (j + 1));\n else\n System.out.println(\"D \" + (j + 1));",
"i == 2",
"i",
"2",
"System.out.println(\"C \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \" + (j + 1)",
"\"C \"",
"(j + 1)",
"j",
"1",
"System.out.println(\"D \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \" + (j + 1)",
"\"D \"",
"(j + 1)",
"j",
"1",
"String[] args",
"args"
] |
import java.util.Scanner;
class Main {
//static char[] xx = new char[] {'S','H','C','D'};
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int box[][] = {{1,2,3,4,5,6,7,8,9,10,11,12,13},
{1,2,3,4,5,6,7,8,9,10,11,12,13},
{1,2,3,4,5,6,7,8,9,10,11,12,13},
{1,2,3,4,5,6,7,8,9,10,11,12,13}};
for(int i = 0; i < n; i++) {
String m = sc.next();
int b = sc.nextInt();
if(m.equals("S")) {
box[0][b-1] = 0;
}
if(m.equals("H")) {
box[1][b-1] = 0;
}
if(m.equals("C")) {
box[2][b-1] = 0;
}
if(m.equals("D")) {
box[3][b-1] = 0;
}
}
for(int i = 0 ; i< 4; i++) {
for(int j = 0; j < 13; j++) {
//if(!box[i][j]) {
if(box[i][j]!=0) {
if (i == 0)
System.out.println("S " + (j + 1));
else if (i == 1)
System.out.println("H " + (j + 1));
else if (i == 2)
System.out.println("C " + (j + 1));
else
System.out.println("D " + (j + 1));
}
}
}
//System.out.println("");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
13,
17,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
13,
17,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
13,
17,
0,
18,
18,
13,
17,
2,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
34,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
34,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
45,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
45,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
59,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
59,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
73,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
73,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
87,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
97,
99
],
[
92,
100
],
[
8,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
106,
107
],
[
106,
108
],
[
101,
109
],
[
109,
110
],
[
110,
111
],
[
101,
112
],
[
113,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
119,
120
],
[
119,
121
],
[
114,
122
],
[
122,
123
],
[
123,
124
],
[
114,
125
],
[
126,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
128,
134
],
[
127,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
140,
145
],
[
136,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
150,
155
],
[
146,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
160,
165
],
[
156,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
170,
175
],
[
135,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
176,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
183,
185
],
[
6,
186
],
[
186,
187
]
] | [
"import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint length = scanner.nextInt();\n\t\tboolean[][] list = new boolean[4][13];\n\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tString pattern = scanner.next();\n\t\t\tint number = scanner.nextInt();\n\n\t\t\tif (pattern.equals(\"S\"))\n\t\t\t\tlist[0][number - 1] = true;\n\t\t\telse if (pattern.equals(\"H\"))\n\t\t\t\tlist[1][number - 1] = true;\n\t\t\telse if (pattern.equals(\"C\"))\n\t\t\t\tlist[2][number - 1] = true;\n\t\t\telse if (pattern.equals(\"D\"))\n\t\t\t\tlist[3][number - 1] = true;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int i2 = 0; i2 < 13; i2++) {\n\t\t\t\tif (list[i][i2] != true) {\n\t\t\t\t\tif (i == 0)\n\t\t\t\t\t\tSystem.out.print(\"S\");\n\t\t\t\t\telse if (i == 1)\n\t\t\t\t\t\tSystem.out.print(\"H\");\n\t\t\t\t\telse if (i == 2)\n\t\t\t\t\t\tSystem.out.print(\"C\");\n\t\t\t\t\telse if (i == 3)\n\t\t\t\t\t\tSystem.out.print(\"D\");\n\n\t\t\t\t\tSystem.out.println(\" \" + (i2 + 1));\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint length = scanner.nextInt();\n\t\tboolean[][] list = new boolean[4][13];\n\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tString pattern = scanner.next();\n\t\t\tint number = scanner.nextInt();\n\n\t\t\tif (pattern.equals(\"S\"))\n\t\t\t\tlist[0][number - 1] = true;\n\t\t\telse if (pattern.equals(\"H\"))\n\t\t\t\tlist[1][number - 1] = true;\n\t\t\telse if (pattern.equals(\"C\"))\n\t\t\t\tlist[2][number - 1] = true;\n\t\t\telse if (pattern.equals(\"D\"))\n\t\t\t\tlist[3][number - 1] = true;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int i2 = 0; i2 < 13; i2++) {\n\t\t\t\tif (list[i][i2] != true) {\n\t\t\t\t\tif (i == 0)\n\t\t\t\t\t\tSystem.out.print(\"S\");\n\t\t\t\t\telse if (i == 1)\n\t\t\t\t\t\tSystem.out.print(\"H\");\n\t\t\t\t\telse if (i == 2)\n\t\t\t\t\t\tSystem.out.print(\"C\");\n\t\t\t\t\telse if (i == 3)\n\t\t\t\t\t\tSystem.out.print(\"D\");\n\n\t\t\t\t\tSystem.out.println(\" \" + (i2 + 1));\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint length = scanner.nextInt();\n\t\tboolean[][] list = new boolean[4][13];\n\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tString pattern = scanner.next();\n\t\t\tint number = scanner.nextInt();\n\n\t\t\tif (pattern.equals(\"S\"))\n\t\t\t\tlist[0][number - 1] = true;\n\t\t\telse if (pattern.equals(\"H\"))\n\t\t\t\tlist[1][number - 1] = true;\n\t\t\telse if (pattern.equals(\"C\"))\n\t\t\t\tlist[2][number - 1] = true;\n\t\t\telse if (pattern.equals(\"D\"))\n\t\t\t\tlist[3][number - 1] = true;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int i2 = 0; i2 < 13; i2++) {\n\t\t\t\tif (list[i][i2] != true) {\n\t\t\t\t\tif (i == 0)\n\t\t\t\t\t\tSystem.out.print(\"S\");\n\t\t\t\t\telse if (i == 1)\n\t\t\t\t\t\tSystem.out.print(\"H\");\n\t\t\t\t\telse if (i == 2)\n\t\t\t\t\t\tSystem.out.print(\"C\");\n\t\t\t\t\telse if (i == 3)\n\t\t\t\t\t\tSystem.out.print(\"D\");\n\n\t\t\t\t\tSystem.out.println(\" \" + (i2 + 1));\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint length = scanner.nextInt();\n\t\tboolean[][] list = new boolean[4][13];\n\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tString pattern = scanner.next();\n\t\t\tint number = scanner.nextInt();\n\n\t\t\tif (pattern.equals(\"S\"))\n\t\t\t\tlist[0][number - 1] = true;\n\t\t\telse if (pattern.equals(\"H\"))\n\t\t\t\tlist[1][number - 1] = true;\n\t\t\telse if (pattern.equals(\"C\"))\n\t\t\t\tlist[2][number - 1] = true;\n\t\t\telse if (pattern.equals(\"D\"))\n\t\t\t\tlist[3][number - 1] = true;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int i2 = 0; i2 < 13; i2++) {\n\t\t\t\tif (list[i][i2] != true) {\n\t\t\t\t\tif (i == 0)\n\t\t\t\t\t\tSystem.out.print(\"S\");\n\t\t\t\t\telse if (i == 1)\n\t\t\t\t\t\tSystem.out.print(\"H\");\n\t\t\t\t\telse if (i == 2)\n\t\t\t\t\t\tSystem.out.print(\"C\");\n\t\t\t\t\telse if (i == 3)\n\t\t\t\t\t\tSystem.out.print(\"D\");\n\n\t\t\t\t\tSystem.out.println(\" \" + (i2 + 1));\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int length = scanner.nextInt();",
"length",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"boolean[][] list = new boolean[4][13];",
"list",
"new boolean[4][13]",
"4",
"13",
"for (int i = 0; i < length; i++) {\n\t\t\tString pattern = scanner.next();\n\t\t\tint number = scanner.nextInt();\n\n\t\t\tif (pattern.equals(\"S\"))\n\t\t\t\tlist[0][number - 1] = true;\n\t\t\telse if (pattern.equals(\"H\"))\n\t\t\t\tlist[1][number - 1] = true;\n\t\t\telse if (pattern.equals(\"C\"))\n\t\t\t\tlist[2][number - 1] = true;\n\t\t\telse if (pattern.equals(\"D\"))\n\t\t\t\tlist[3][number - 1] = true;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < length",
"i",
"length",
"i++",
"i++",
"i",
"{\n\t\t\tString pattern = scanner.next();\n\t\t\tint number = scanner.nextInt();\n\n\t\t\tif (pattern.equals(\"S\"))\n\t\t\t\tlist[0][number - 1] = true;\n\t\t\telse if (pattern.equals(\"H\"))\n\t\t\t\tlist[1][number - 1] = true;\n\t\t\telse if (pattern.equals(\"C\"))\n\t\t\t\tlist[2][number - 1] = true;\n\t\t\telse if (pattern.equals(\"D\"))\n\t\t\t\tlist[3][number - 1] = true;\n\t\t}",
"{\n\t\t\tString pattern = scanner.next();\n\t\t\tint number = scanner.nextInt();\n\n\t\t\tif (pattern.equals(\"S\"))\n\t\t\t\tlist[0][number - 1] = true;\n\t\t\telse if (pattern.equals(\"H\"))\n\t\t\t\tlist[1][number - 1] = true;\n\t\t\telse if (pattern.equals(\"C\"))\n\t\t\t\tlist[2][number - 1] = true;\n\t\t\telse if (pattern.equals(\"D\"))\n\t\t\t\tlist[3][number - 1] = true;\n\t\t}",
"String pattern = scanner.next();",
"pattern",
"scanner.next()",
"scanner.next",
"scanner",
"int number = scanner.nextInt();",
"number",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"if (pattern.equals(\"S\"))\n\t\t\t\tlist[0][number - 1] = true;\n\t\t\telse if (pattern.equals(\"H\"))\n\t\t\t\tlist[1][number - 1] = true;\n\t\t\telse if (pattern.equals(\"C\"))\n\t\t\t\tlist[2][number - 1] = true;\n\t\t\telse if (pattern.equals(\"D\"))\n\t\t\t\tlist[3][number - 1] = true;",
"pattern.equals(\"S\")",
"pattern.equals",
"pattern",
"\"S\"",
"list[0][number - 1] = true",
"list[0][number - 1]",
"list[0]",
"list",
"0",
"number - 1",
"number",
"1",
"true",
"if (pattern.equals(\"H\"))\n\t\t\t\tlist[1][number - 1] = true;\n\t\t\telse if (pattern.equals(\"C\"))\n\t\t\t\tlist[2][number - 1] = true;\n\t\t\telse if (pattern.equals(\"D\"))\n\t\t\t\tlist[3][number - 1] = true;",
"pattern.equals(\"H\")",
"pattern.equals",
"pattern",
"\"H\"",
"list[1][number - 1] = true",
"list[1][number - 1]",
"list[1]",
"list",
"1",
"number - 1",
"number",
"1",
"true",
"if (pattern.equals(\"C\"))\n\t\t\t\tlist[2][number - 1] = true;\n\t\t\telse if (pattern.equals(\"D\"))\n\t\t\t\tlist[3][number - 1] = true;",
"pattern.equals(\"C\")",
"pattern.equals",
"pattern",
"\"C\"",
"list[2][number - 1] = true",
"list[2][number - 1]",
"list[2]",
"list",
"2",
"number - 1",
"number",
"1",
"true",
"if (pattern.equals(\"D\"))\n\t\t\t\tlist[3][number - 1] = true;",
"pattern.equals(\"D\")",
"pattern.equals",
"pattern",
"\"D\"",
"list[3][number - 1] = true",
"list[3][number - 1]",
"list[3]",
"list",
"3",
"number - 1",
"number",
"1",
"true",
"for (int i = 0; i < 4; i++) {\n\t\t\tfor (int i2 = 0; i2 < 13; i2++) {\n\t\t\t\tif (list[i][i2] != true) {\n\t\t\t\t\tif (i == 0)\n\t\t\t\t\t\tSystem.out.print(\"S\");\n\t\t\t\t\telse if (i == 1)\n\t\t\t\t\t\tSystem.out.print(\"H\");\n\t\t\t\t\telse if (i == 2)\n\t\t\t\t\t\tSystem.out.print(\"C\");\n\t\t\t\t\telse if (i == 3)\n\t\t\t\t\t\tSystem.out.print(\"D\");\n\n\t\t\t\t\tSystem.out.println(\" \" + (i2 + 1));\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int i2 = 0; i2 < 13; i2++) {\n\t\t\t\tif (list[i][i2] != true) {\n\t\t\t\t\tif (i == 0)\n\t\t\t\t\t\tSystem.out.print(\"S\");\n\t\t\t\t\telse if (i == 1)\n\t\t\t\t\t\tSystem.out.print(\"H\");\n\t\t\t\t\telse if (i == 2)\n\t\t\t\t\t\tSystem.out.print(\"C\");\n\t\t\t\t\telse if (i == 3)\n\t\t\t\t\t\tSystem.out.print(\"D\");\n\n\t\t\t\t\tSystem.out.println(\" \" + (i2 + 1));\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int i2 = 0; i2 < 13; i2++) {\n\t\t\t\tif (list[i][i2] != true) {\n\t\t\t\t\tif (i == 0)\n\t\t\t\t\t\tSystem.out.print(\"S\");\n\t\t\t\t\telse if (i == 1)\n\t\t\t\t\t\tSystem.out.print(\"H\");\n\t\t\t\t\telse if (i == 2)\n\t\t\t\t\t\tSystem.out.print(\"C\");\n\t\t\t\t\telse if (i == 3)\n\t\t\t\t\t\tSystem.out.print(\"D\");\n\n\t\t\t\t\tSystem.out.println(\" \" + (i2 + 1));\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"for (int i2 = 0; i2 < 13; i2++) {\n\t\t\t\tif (list[i][i2] != true) {\n\t\t\t\t\tif (i == 0)\n\t\t\t\t\t\tSystem.out.print(\"S\");\n\t\t\t\t\telse if (i == 1)\n\t\t\t\t\t\tSystem.out.print(\"H\");\n\t\t\t\t\telse if (i == 2)\n\t\t\t\t\t\tSystem.out.print(\"C\");\n\t\t\t\t\telse if (i == 3)\n\t\t\t\t\t\tSystem.out.print(\"D\");\n\n\t\t\t\t\tSystem.out.println(\" \" + (i2 + 1));\n\t\t\t\t}\n\n\t\t\t}",
"int i2 = 0;",
"int i2 = 0;",
"i2",
"0",
"i2 < 13",
"i2",
"13",
"i2++",
"i2++",
"i2",
"{\n\t\t\t\tif (list[i][i2] != true) {\n\t\t\t\t\tif (i == 0)\n\t\t\t\t\t\tSystem.out.print(\"S\");\n\t\t\t\t\telse if (i == 1)\n\t\t\t\t\t\tSystem.out.print(\"H\");\n\t\t\t\t\telse if (i == 2)\n\t\t\t\t\t\tSystem.out.print(\"C\");\n\t\t\t\t\telse if (i == 3)\n\t\t\t\t\t\tSystem.out.print(\"D\");\n\n\t\t\t\t\tSystem.out.println(\" \" + (i2 + 1));\n\t\t\t\t}\n\n\t\t\t}",
"{\n\t\t\t\tif (list[i][i2] != true) {\n\t\t\t\t\tif (i == 0)\n\t\t\t\t\t\tSystem.out.print(\"S\");\n\t\t\t\t\telse if (i == 1)\n\t\t\t\t\t\tSystem.out.print(\"H\");\n\t\t\t\t\telse if (i == 2)\n\t\t\t\t\t\tSystem.out.print(\"C\");\n\t\t\t\t\telse if (i == 3)\n\t\t\t\t\t\tSystem.out.print(\"D\");\n\n\t\t\t\t\tSystem.out.println(\" \" + (i2 + 1));\n\t\t\t\t}\n\n\t\t\t}",
"if (list[i][i2] != true) {\n\t\t\t\t\tif (i == 0)\n\t\t\t\t\t\tSystem.out.print(\"S\");\n\t\t\t\t\telse if (i == 1)\n\t\t\t\t\t\tSystem.out.print(\"H\");\n\t\t\t\t\telse if (i == 2)\n\t\t\t\t\t\tSystem.out.print(\"C\");\n\t\t\t\t\telse if (i == 3)\n\t\t\t\t\t\tSystem.out.print(\"D\");\n\n\t\t\t\t\tSystem.out.println(\" \" + (i2 + 1));\n\t\t\t\t}",
"list[i][i2] != true",
"list[i][i2]",
"list[i]",
"list",
"i",
"i2",
"true",
"{\n\t\t\t\t\tif (i == 0)\n\t\t\t\t\t\tSystem.out.print(\"S\");\n\t\t\t\t\telse if (i == 1)\n\t\t\t\t\t\tSystem.out.print(\"H\");\n\t\t\t\t\telse if (i == 2)\n\t\t\t\t\t\tSystem.out.print(\"C\");\n\t\t\t\t\telse if (i == 3)\n\t\t\t\t\t\tSystem.out.print(\"D\");\n\n\t\t\t\t\tSystem.out.println(\" \" + (i2 + 1));\n\t\t\t\t}",
"if (i == 0)\n\t\t\t\t\t\tSystem.out.print(\"S\");\n\t\t\t\t\telse if (i == 1)\n\t\t\t\t\t\tSystem.out.print(\"H\");\n\t\t\t\t\telse if (i == 2)\n\t\t\t\t\t\tSystem.out.print(\"C\");\n\t\t\t\t\telse if (i == 3)\n\t\t\t\t\t\tSystem.out.print(\"D\");",
"i == 0",
"i",
"0",
"System.out.print(\"S\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"S\"",
"if (i == 1)\n\t\t\t\t\t\tSystem.out.print(\"H\");\n\t\t\t\t\telse if (i == 2)\n\t\t\t\t\t\tSystem.out.print(\"C\");\n\t\t\t\t\telse if (i == 3)\n\t\t\t\t\t\tSystem.out.print(\"D\");",
"i == 1",
"i",
"1",
"System.out.print(\"H\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"H\"",
"if (i == 2)\n\t\t\t\t\t\tSystem.out.print(\"C\");\n\t\t\t\t\telse if (i == 3)\n\t\t\t\t\t\tSystem.out.print(\"D\");",
"i == 2",
"i",
"2",
"System.out.print(\"C\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"C\"",
"if (i == 3)\n\t\t\t\t\t\tSystem.out.print(\"D\");",
"i == 3",
"i",
"3",
"System.out.print(\"D\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"D\"",
"System.out.println(\" \" + (i2 + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\" \" + (i2 + 1)",
"\" \"",
"(i2 + 1)",
"i2",
"1",
"String[] args",
"args"
] | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int length = scanner.nextInt();
boolean[][] list = new boolean[4][13];
for (int i = 0; i < length; i++) {
String pattern = scanner.next();
int number = scanner.nextInt();
if (pattern.equals("S"))
list[0][number - 1] = true;
else if (pattern.equals("H"))
list[1][number - 1] = true;
else if (pattern.equals("C"))
list[2][number - 1] = true;
else if (pattern.equals("D"))
list[3][number - 1] = true;
}
for (int i = 0; i < 4; i++) {
for (int i2 = 0; i2 < 13; i2++) {
if (list[i][i2] != true) {
if (i == 0)
System.out.print("S");
else if (i == 1)
System.out.print("H");
else if (i == 2)
System.out.print("C");
else if (i == 3)
System.out.print("D");
System.out.println(" " + (i2 + 1));
}
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
39,
17,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
2,
2,
18,
13,
13,
17,
4,
18,
13,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
2,
2,
13,
17,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
127,
8
],
[
127,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
20,
22
],
[
20,
23
],
[
20,
24
],
[
11,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
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
],
[
51,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
55,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
11,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
11,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
69,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
81,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
81,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
96,
96
],
[
96,
97
],
[
96,
98
],
[
96,
99
],
[
11,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
100,
110
],
[
110,
111
],
[
111,
112
],
[
100,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
9,
124
],
[
124,
125
],
[
0,
126
],
[
126,
127
],
[
126,
128
]
] | [
"import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main{\n\n\t//全てのカードリストを作る\n\t//入力されたカードをリストから除外する\n\t//出力\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tArrayList<String> all_cards=new ArrayList<String>();\n\t\tString[] card_hilt_ary={\"S\",\"H\",\"C\",\"D\"};\n\n\t\t//全てのカードリストを作る\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int j=1;j<=13;j++){\n\t\t\t\tall_cards.add(card_hilt_ary[i]+\" \"+String.valueOf(j));\n\t\t\t}\n\t\t}\n\n\t\t//カードを除外\n\t\tint being_num=sc.nextInt();\n\t\tfor(int i=0;i<being_num;i++){\n\t\t\tString hilt=sc.next();\n\t\t\tString num=sc.next();\n\t\t\t//String being_cards=hilt+num;\n\t\t\tall_cards.remove(hilt+\" \"+num);\n\t\t}\n\n\t\t//出力\n\t\tfor(int i=0;i<all_cards.size();i++){\n\t\t\tSystem.out.println(all_cards.get(i));\n\t\t}\n\t}\n\n}\n",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n\t//全てのカードリストを作る\n\t//入力されたカードをリストから除外する\n\t//出力\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tArrayList<String> all_cards=new ArrayList<String>();\n\t\tString[] card_hilt_ary={\"S\",\"H\",\"C\",\"D\"};\n\n\t\t//全てのカードリストを作る\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int j=1;j<=13;j++){\n\t\t\t\tall_cards.add(card_hilt_ary[i]+\" \"+String.valueOf(j));\n\t\t\t}\n\t\t}\n\n\t\t//カードを除外\n\t\tint being_num=sc.nextInt();\n\t\tfor(int i=0;i<being_num;i++){\n\t\t\tString hilt=sc.next();\n\t\t\tString num=sc.next();\n\t\t\t//String being_cards=hilt+num;\n\t\t\tall_cards.remove(hilt+\" \"+num);\n\t\t}\n\n\t\t//出力\n\t\tfor(int i=0;i<all_cards.size();i++){\n\t\t\tSystem.out.println(all_cards.get(i));\n\t\t}\n\t}\n\n}",
"Main",
"//全てのカードリストを作る\n\t//入力されたカードをリストから除外する\n\t//出力\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tArrayList<String> all_cards=new ArrayList<String>();\n\t\tString[] card_hilt_ary={\"S\",\"H\",\"C\",\"D\"};\n\n\t\t//全てのカードリストを作る\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int j=1;j<=13;j++){\n\t\t\t\tall_cards.add(card_hilt_ary[i]+\" \"+String.valueOf(j));\n\t\t\t}\n\t\t}\n\n\t\t//カードを除外\n\t\tint being_num=sc.nextInt();\n\t\tfor(int i=0;i<being_num;i++){\n\t\t\tString hilt=sc.next();\n\t\t\tString num=sc.next();\n\t\t\t//String being_cards=hilt+num;\n\t\t\tall_cards.remove(hilt+\" \"+num);\n\t\t}\n\n\t\t//出力\n\t\tfor(int i=0;i<all_cards.size();i++){\n\t\t\tSystem.out.println(all_cards.get(i));\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tArrayList<String> all_cards=new ArrayList<String>();\n\t\tString[] card_hilt_ary={\"S\",\"H\",\"C\",\"D\"};\n\n\t\t//全てのカードリストを作る\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int j=1;j<=13;j++){\n\t\t\t\tall_cards.add(card_hilt_ary[i]+\" \"+String.valueOf(j));\n\t\t\t}\n\t\t}\n\n\t\t//カードを除外\n\t\tint being_num=sc.nextInt();\n\t\tfor(int i=0;i<being_num;i++){\n\t\t\tString hilt=sc.next();\n\t\t\tString num=sc.next();\n\t\t\t//String being_cards=hilt+num;\n\t\t\tall_cards.remove(hilt+\" \"+num);\n\t\t}\n\n\t\t//出力\n\t\tfor(int i=0;i<all_cards.size();i++){\n\t\t\tSystem.out.println(all_cards.get(i));\n\t\t}\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"ArrayList<String> all_cards=new ArrayList<String>();",
"all_cards",
"new ArrayList<String>()",
"String[] card_hilt_ary={\"S\",\"H\",\"C\",\"D\"};",
"card_hilt_ary",
"{\"S\",\"H\",\"C\",\"D\"}",
"\"S\"",
"\"H\"",
"\"C\"",
"\"D\"",
"for(int i=0;i<4;i++){\n\t\t\tfor(int j=1;j<=13;j++){\n\t\t\t\tall_cards.add(card_hilt_ary[i]+\" \"+String.valueOf(j));\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=1;j<=13;j++){\n\t\t\t\tall_cards.add(card_hilt_ary[i]+\" \"+String.valueOf(j));\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=1;j<=13;j++){\n\t\t\t\tall_cards.add(card_hilt_ary[i]+\" \"+String.valueOf(j));\n\t\t\t}\n\t\t}",
"for(int j=1;j<=13;j++){\n\t\t\t\tall_cards.add(card_hilt_ary[i]+\" \"+String.valueOf(j));\n\t\t\t}",
"int j=1;",
"int j=1;",
"j",
"1",
"j<=13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\tall_cards.add(card_hilt_ary[i]+\" \"+String.valueOf(j));\n\t\t\t}",
"{\n\t\t\t\tall_cards.add(card_hilt_ary[i]+\" \"+String.valueOf(j));\n\t\t\t}",
"all_cards.add(card_hilt_ary[i]+\" \"+String.valueOf(j))",
"all_cards.add",
"all_cards",
"card_hilt_ary[i]+\" \"+String.valueOf(j)",
"card_hilt_ary[i]+\" \"+String.valueOf(j)",
"card_hilt_ary[i]",
"card_hilt_ary",
"i",
"\" \"",
"String.valueOf(j)",
"String.valueOf",
"String",
"j",
"int being_num=sc.nextInt();",
"being_num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i<being_num;i++){\n\t\t\tString hilt=sc.next();\n\t\t\tString num=sc.next();\n\t\t\t//String being_cards=hilt+num;\n\t\t\tall_cards.remove(hilt+\" \"+num);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<being_num",
"i",
"being_num",
"i++",
"i++",
"i",
"{\n\t\t\tString hilt=sc.next();\n\t\t\tString num=sc.next();\n\t\t\t//String being_cards=hilt+num;\n\t\t\tall_cards.remove(hilt+\" \"+num);\n\t\t}",
"{\n\t\t\tString hilt=sc.next();\n\t\t\tString num=sc.next();\n\t\t\t//String being_cards=hilt+num;\n\t\t\tall_cards.remove(hilt+\" \"+num);\n\t\t}",
"String hilt=sc.next();",
"hilt",
"sc.next()",
"sc.next",
"sc",
"String num=sc.next();",
"num",
"sc.next()",
"sc.next",
"sc",
"all_cards.remove(hilt+\" \"+num)",
"all_cards.remove",
"all_cards",
"hilt+\" \"+num",
"hilt+\" \"+num",
"hilt",
"\" \"",
"num",
"for(int i=0;i<all_cards.size();i++){\n\t\t\tSystem.out.println(all_cards.get(i));\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<all_cards.size()",
"i",
"all_cards.size()",
"all_cards.size",
"all_cards",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(all_cards.get(i));\n\t\t}",
"{\n\t\t\tSystem.out.println(all_cards.get(i));\n\t\t}",
"System.out.println(all_cards.get(i))",
"System.out.println",
"System.out",
"System",
"System.out",
"all_cards.get(i)",
"all_cards.get",
"all_cards",
"i",
"String[] args",
"args",
"public class Main{\n\n\t//全てのカードリストを作る\n\t//入力されたカードをリストから除外する\n\t//出力\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tArrayList<String> all_cards=new ArrayList<String>();\n\t\tString[] card_hilt_ary={\"S\",\"H\",\"C\",\"D\"};\n\n\t\t//全てのカードリストを作る\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int j=1;j<=13;j++){\n\t\t\t\tall_cards.add(card_hilt_ary[i]+\" \"+String.valueOf(j));\n\t\t\t}\n\t\t}\n\n\t\t//カードを除外\n\t\tint being_num=sc.nextInt();\n\t\tfor(int i=0;i<being_num;i++){\n\t\t\tString hilt=sc.next();\n\t\t\tString num=sc.next();\n\t\t\t//String being_cards=hilt+num;\n\t\t\tall_cards.remove(hilt+\" \"+num);\n\t\t}\n\n\t\t//出力\n\t\tfor(int i=0;i<all_cards.size();i++){\n\t\t\tSystem.out.println(all_cards.get(i));\n\t\t}\n\t}\n\n}",
"public class Main{\n\n\t//全てのカードリストを作る\n\t//入力されたカードをリストから除外する\n\t//出力\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tArrayList<String> all_cards=new ArrayList<String>();\n\t\tString[] card_hilt_ary={\"S\",\"H\",\"C\",\"D\"};\n\n\t\t//全てのカードリストを作る\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int j=1;j<=13;j++){\n\t\t\t\tall_cards.add(card_hilt_ary[i]+\" \"+String.valueOf(j));\n\t\t\t}\n\t\t}\n\n\t\t//カードを除外\n\t\tint being_num=sc.nextInt();\n\t\tfor(int i=0;i<being_num;i++){\n\t\t\tString hilt=sc.next();\n\t\t\tString num=sc.next();\n\t\t\t//String being_cards=hilt+num;\n\t\t\tall_cards.remove(hilt+\" \"+num);\n\t\t}\n\n\t\t//出力\n\t\tfor(int i=0;i<all_cards.size();i++){\n\t\t\tSystem.out.println(all_cards.get(i));\n\t\t}\n\t}\n\n}",
"Main"
] | import java.util.ArrayList;
import java.util.Scanner;
public class Main{
//全てのカードリストを作る
//入力されたカードをリストから除外する
//出力
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
ArrayList<String> all_cards=new ArrayList<String>();
String[] card_hilt_ary={"S","H","C","D"};
//全てのカードリストを作る
for(int i=0;i<4;i++){
for(int j=1;j<=13;j++){
all_cards.add(card_hilt_ary[i]+" "+String.valueOf(j));
}
}
//カードを除外
int being_num=sc.nextInt();
for(int i=0;i<being_num;i++){
String hilt=sc.next();
String num=sc.next();
//String being_cards=hilt+num;
all_cards.remove(hilt+" "+num);
}
//出力
for(int i=0;i<all_cards.size();i++){
System.out.println(all_cards.get(i));
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
20,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
39,
17,
17,
17,
17,
28,
13,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
28,
13,
18,
13,
13,
30,
30,
14,
2,
18,
13,
13,
4,
18,
18,
13,
17,
17,
30,
9,
14,
2,
18,
13,
13,
4,
18,
13,
18,
13,
17,
30,
0,
18,
13,
13,
17,
28,
13,
18,
13,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
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
],
[
9,
10
],
[
7,
11
],
[
11,
12
],
[
7,
13
],
[
13,
14
],
[
13,
15
],
[
7,
16
],
[
16,
17
],
[
16,
18
],
[
7,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
21,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
19,
32
],
[
32,
33
],
[
19,
34
],
[
34,
35
],
[
0,
36
],
[
183,
37
],
[
183,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
43,
46
],
[
43,
47
],
[
40,
48
],
[
48,
49
],
[
48,
50
],
[
48,
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
],
[
66,
71
],
[
40,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
72,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
91,
92
],
[
92,
93
],
[
82,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
94,
102
],
[
102,
103
],
[
103,
104
],
[
94,
105
],
[
106,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
109,
114
],
[
106,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
121,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
122,
133
],
[
133,
134
],
[
121,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
140,
141
],
[
141,
142
],
[
140,
143
],
[
143,
144
],
[
143,
145
],
[
135,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
40,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
154,
156
],
[
152,
157
],
[
158,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
159,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
166,
171
],
[
172,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
172,
177
],
[
177,
178
],
[
177,
179
],
[
38,
180
],
[
180,
181
],
[
0,
182
],
[
182,
183
],
[
182,
184
]
] | [
"import java.util.*;\nimport java.io.*;\n\nclass Card{\n char mark;\n int num;\n boolean have = false;\n static List<Card> allCards = new ArrayList<Card>();\n\n Card(char mark, int num){\n\tthis.mark = mark;\n\tthis.num = num;\n\t\n}\n}\n\npublic class Main{\npublic static void main(String[] args){\n\n char[] marks ={'S','H','C','D'};\n \n\tfor(char mark: marks){\n\t\tfor(int i = 0; i < 13; i++){\n\t\t Card.allCards.add(new Card(mark, i+1));\n\t\t}\n\t}\n\n\ttry{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t int n = Integer.parseInt(br.readLine());\n\t \tfor(int a = 0; a < n; a++ ){\n\t \t String[] str = br.readLine().split(\" \");\n\t\t \tfor(Card c : Card.allCards){\n\t\t\t\tif(c.mark != str[0].charAt(0)){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(c.num == Integer.parseInt(str[1])){\n\t\t\t\t\tc.have = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}catch(IOException e){\n\t System.out.println(e);\n\t}\n\n\tfor(Card c : Card.allCards){\n\t\tif(c.have == false){\n\t\t System.out.println(c.mark + \" \" + c.num);\n\t\t}\n\t}\n}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Card{\n char mark;\n int num;\n boolean have = false;\n static List<Card> allCards = new ArrayList<Card>();\n\n Card(char mark, int num){\n\tthis.mark = mark;\n\tthis.num = num;\n\t\n}\n}",
"Card",
"char mark;",
"mark",
"int num;",
"num",
"boolean have = false;",
"have",
"false",
"static List<Card> allCards = new ArrayList<Card>();",
"allCards",
"new ArrayList<Card>()",
"Card(char mark, int num){\n\tthis.mark = mark;\n\tthis.num = num;\n\t\n}",
"Card",
"{\n\tthis.mark = mark;\n\tthis.num = num;\n\t\n}",
"this.mark = mark",
"this.mark",
"this",
"this.mark",
"mark",
"this.num = num",
"this.num",
"this",
"this.num",
"num",
"char mark",
"mark",
"int num",
"num",
"public class Main{\npublic static void main(String[] args){\n\n char[] marks ={'S','H','C','D'};\n \n\tfor(char mark: marks){\n\t\tfor(int i = 0; i < 13; i++){\n\t\t Card.allCards.add(new Card(mark, i+1));\n\t\t}\n\t}\n\n\ttry{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t int n = Integer.parseInt(br.readLine());\n\t \tfor(int a = 0; a < n; a++ ){\n\t \t String[] str = br.readLine().split(\" \");\n\t\t \tfor(Card c : Card.allCards){\n\t\t\t\tif(c.mark != str[0].charAt(0)){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(c.num == Integer.parseInt(str[1])){\n\t\t\t\t\tc.have = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}catch(IOException e){\n\t System.out.println(e);\n\t}\n\n\tfor(Card c : Card.allCards){\n\t\tif(c.have == false){\n\t\t System.out.println(c.mark + \" \" + c.num);\n\t\t}\n\t}\n}\n}",
"Main",
"public static void main(String[] args){\n\n char[] marks ={'S','H','C','D'};\n \n\tfor(char mark: marks){\n\t\tfor(int i = 0; i < 13; i++){\n\t\t Card.allCards.add(new Card(mark, i+1));\n\t\t}\n\t}\n\n\ttry{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t int n = Integer.parseInt(br.readLine());\n\t \tfor(int a = 0; a < n; a++ ){\n\t \t String[] str = br.readLine().split(\" \");\n\t\t \tfor(Card c : Card.allCards){\n\t\t\t\tif(c.mark != str[0].charAt(0)){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(c.num == Integer.parseInt(str[1])){\n\t\t\t\t\tc.have = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}catch(IOException e){\n\t System.out.println(e);\n\t}\n\n\tfor(Card c : Card.allCards){\n\t\tif(c.have == false){\n\t\t System.out.println(c.mark + \" \" + c.num);\n\t\t}\n\t}\n}",
"main",
"{\n\n char[] marks ={'S','H','C','D'};\n \n\tfor(char mark: marks){\n\t\tfor(int i = 0; i < 13; i++){\n\t\t Card.allCards.add(new Card(mark, i+1));\n\t\t}\n\t}\n\n\ttry{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t int n = Integer.parseInt(br.readLine());\n\t \tfor(int a = 0; a < n; a++ ){\n\t \t String[] str = br.readLine().split(\" \");\n\t\t \tfor(Card c : Card.allCards){\n\t\t\t\tif(c.mark != str[0].charAt(0)){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(c.num == Integer.parseInt(str[1])){\n\t\t\t\t\tc.have = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}catch(IOException e){\n\t System.out.println(e);\n\t}\n\n\tfor(Card c : Card.allCards){\n\t\tif(c.have == false){\n\t\t System.out.println(c.mark + \" \" + c.num);\n\t\t}\n\t}\n}",
"char[] marks ={'S','H','C','D'};",
"marks",
"{'S','H','C','D'}",
"'S'",
"'H'",
"'C'",
"'D'",
"for(char mark: marks){\n\t\tfor(int i = 0; i < 13; i++){\n\t\t Card.allCards.add(new Card(mark, i+1));\n\t\t}\n\t}",
"char mark",
"marks",
"{\n\t\tfor(int i = 0; i < 13; i++){\n\t\t Card.allCards.add(new Card(mark, i+1));\n\t\t}\n\t}",
"{\n\t\tfor(int i = 0; i < 13; i++){\n\t\t Card.allCards.add(new Card(mark, i+1));\n\t\t}\n\t}",
"for(int i = 0; i < 13; i++){\n\t\t Card.allCards.add(new Card(mark, i+1));\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t Card.allCards.add(new Card(mark, i+1));\n\t\t}",
"{\n\t\t Card.allCards.add(new Card(mark, i+1));\n\t\t}",
"Card.allCards.add(new Card(mark, i+1))",
"Card.allCards.add",
"Card.allCards",
"Card",
"Card.allCards",
"new Card(mark, i+1)",
"try{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t int n = Integer.parseInt(br.readLine());\n\t \tfor(int a = 0; a < n; a++ ){\n\t \t String[] str = br.readLine().split(\" \");\n\t\t \tfor(Card c : Card.allCards){\n\t\t\t\tif(c.mark != str[0].charAt(0)){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(c.num == Integer.parseInt(str[1])){\n\t\t\t\t\tc.have = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}catch(IOException e){\n\t System.out.println(e);\n\t}",
"catch(IOException e){\n\t System.out.println(e);\n\t}",
"IOException e",
"{\n\t System.out.println(e);\n\t}",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t int n = Integer.parseInt(br.readLine());\n\t \tfor(int a = 0; a < n; a++ ){\n\t \t String[] str = br.readLine().split(\" \");\n\t\t \tfor(Card c : Card.allCards){\n\t\t\t\tif(c.mark != str[0].charAt(0)){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(c.num == Integer.parseInt(str[1])){\n\t\t\t\t\tc.have = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int a = 0; a < n; a++ ){\n\t \t String[] str = br.readLine().split(\" \");\n\t\t \tfor(Card c : Card.allCards){\n\t\t\t\tif(c.mark != str[0].charAt(0)){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(c.num == Integer.parseInt(str[1])){\n\t\t\t\t\tc.have = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int a = 0;",
"int a = 0;",
"a",
"0",
"a < n",
"a",
"n",
"a++",
"a++",
"a",
"{\n\t \t String[] str = br.readLine().split(\" \");\n\t\t \tfor(Card c : Card.allCards){\n\t\t\t\tif(c.mark != str[0].charAt(0)){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(c.num == Integer.parseInt(str[1])){\n\t\t\t\t\tc.have = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t \t String[] str = br.readLine().split(\" \");\n\t\t \tfor(Card c : Card.allCards){\n\t\t\t\tif(c.mark != str[0].charAt(0)){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(c.num == Integer.parseInt(str[1])){\n\t\t\t\t\tc.have = true;\n\t\t\t\t}\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(Card c : Card.allCards){\n\t\t\t\tif(c.mark != str[0].charAt(0)){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(c.num == Integer.parseInt(str[1])){\n\t\t\t\t\tc.have = true;\n\t\t\t\t}\n\t\t\t}",
"Card c",
"Card.allCards",
"Card",
"Card.allCards",
"{\n\t\t\t\tif(c.mark != str[0].charAt(0)){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(c.num == Integer.parseInt(str[1])){\n\t\t\t\t\tc.have = true;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(c.mark != str[0].charAt(0)){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(c.num == Integer.parseInt(str[1])){\n\t\t\t\t\tc.have = true;\n\t\t\t\t}\n\t\t\t}",
"if(c.mark != str[0].charAt(0)){\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"c.mark != str[0].charAt(0)",
"c.mark",
"c",
"c.mark",
"str[0].charAt(0)",
"str[0].charAt",
"str[0]",
"str",
"0",
"0",
"{\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"continue;",
"if(c.num == Integer.parseInt(str[1])){\n\t\t\t\t\tc.have = true;\n\t\t\t\t}",
"c.num == Integer.parseInt(str[1])",
"c.num",
"c",
"c.num",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"{\n\t\t\t\t\tc.have = true;\n\t\t\t\t}",
"c.have = true",
"c.have",
"c",
"c.have",
"true",
"for(Card c : Card.allCards){\n\t\tif(c.have == false){\n\t\t System.out.println(c.mark + \" \" + c.num);\n\t\t}\n\t}",
"Card c",
"Card.allCards",
"Card",
"Card.allCards",
"{\n\t\tif(c.have == false){\n\t\t System.out.println(c.mark + \" \" + c.num);\n\t\t}\n\t}",
"{\n\t\tif(c.have == false){\n\t\t System.out.println(c.mark + \" \" + c.num);\n\t\t}\n\t}",
"if(c.have == false){\n\t\t System.out.println(c.mark + \" \" + c.num);\n\t\t}",
"c.have == false",
"c.have",
"c",
"c.have",
"false",
"{\n\t\t System.out.println(c.mark + \" \" + c.num);\n\t\t}",
"System.out.println(c.mark + \" \" + c.num)",
"System.out.println",
"System.out",
"System",
"System.out",
"c.mark + \" \" + c.num",
"c.mark + \" \" + c.num",
"c.mark",
"c",
"c.mark",
"\" \"",
"c.num",
"c",
"c.num",
"String[] args",
"args",
"public class Main{\npublic static void main(String[] args){\n\n char[] marks ={'S','H','C','D'};\n \n\tfor(char mark: marks){\n\t\tfor(int i = 0; i < 13; i++){\n\t\t Card.allCards.add(new Card(mark, i+1));\n\t\t}\n\t}\n\n\ttry{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t int n = Integer.parseInt(br.readLine());\n\t \tfor(int a = 0; a < n; a++ ){\n\t \t String[] str = br.readLine().split(\" \");\n\t\t \tfor(Card c : Card.allCards){\n\t\t\t\tif(c.mark != str[0].charAt(0)){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(c.num == Integer.parseInt(str[1])){\n\t\t\t\t\tc.have = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}catch(IOException e){\n\t System.out.println(e);\n\t}\n\n\tfor(Card c : Card.allCards){\n\t\tif(c.have == false){\n\t\t System.out.println(c.mark + \" \" + c.num);\n\t\t}\n\t}\n}\n}",
"public class Main{\npublic static void main(String[] args){\n\n char[] marks ={'S','H','C','D'};\n \n\tfor(char mark: marks){\n\t\tfor(int i = 0; i < 13; i++){\n\t\t Card.allCards.add(new Card(mark, i+1));\n\t\t}\n\t}\n\n\ttry{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t int n = Integer.parseInt(br.readLine());\n\t \tfor(int a = 0; a < n; a++ ){\n\t \t String[] str = br.readLine().split(\" \");\n\t\t \tfor(Card c : Card.allCards){\n\t\t\t\tif(c.mark != str[0].charAt(0)){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(c.num == Integer.parseInt(str[1])){\n\t\t\t\t\tc.have = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}catch(IOException e){\n\t System.out.println(e);\n\t}\n\n\tfor(Card c : Card.allCards){\n\t\tif(c.have == false){\n\t\t System.out.println(c.mark + \" \" + c.num);\n\t\t}\n\t}\n}\n}",
"Main"
] | import java.util.*;
import java.io.*;
class Card{
char mark;
int num;
boolean have = false;
static List<Card> allCards = new ArrayList<Card>();
Card(char mark, int num){
this.mark = mark;
this.num = num;
}
}
public class Main{
public static void main(String[] args){
char[] marks ={'S','H','C','D'};
for(char mark: marks){
for(int i = 0; i < 13; i++){
Card.allCards.add(new Card(mark, i+1));
}
}
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
for(int a = 0; a < n; a++ ){
String[] str = br.readLine().split(" ");
for(Card c : Card.allCards){
if(c.mark != str[0].charAt(0)){
continue;
}
if(c.num == Integer.parseInt(str[1])){
c.have = true;
}
}
}
}catch(IOException e){
System.out.println(e);
}
for(Card c : Card.allCards){
if(c.have == false){
System.out.println(c.mark + " " + c.num);
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
2,
17,
13,
17,
30,
4,
18,
13,
2,
2,
17,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
2,
17,
13,
17,
30,
4,
18,
13,
2,
2,
17,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
2,
17,
13,
17,
30,
4,
18,
13,
2,
2,
17,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
2,
17,
13,
17,
30,
4,
18,
13,
2,
2,
17,
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
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
187,
14
],
[
187,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
17,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
33,
34
],
[
17,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
52,
53
],
[
17,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
54,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
72,
74
],
[
68,
75
],
[
67,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
81,
81
],
[
81,
82
],
[
81,
83
],
[
81,
84
],
[
17,
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
],
[
101,
102
],
[
100,
103
],
[
103,
104
],
[
103,
105
],
[
99,
106
],
[
98,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
112,
112
],
[
112,
113
],
[
112,
114
],
[
112,
115
],
[
17,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
121,
122
],
[
121,
123
],
[
116,
124
],
[
124,
125
],
[
125,
126
],
[
116,
127
],
[
128,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
134,
135
],
[
134,
136
],
[
130,
137
],
[
129,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
139,
142
],
[
143,
143
],
[
143,
144
],
[
143,
145
],
[
143,
146
],
[
17,
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
],
[
163,
164
],
[
162,
165
],
[
165,
166
],
[
165,
167
],
[
161,
168
],
[
160,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
170,
173
],
[
174,
174
],
[
174,
175
],
[
174,
176
],
[
174,
177
],
[
17,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
178,
183
],
[
15,
184
],
[
184,
185
],
[
0,
186
],
[
186,
187
],
[
186,
188
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\nimport java.util.ArrayList;\n\npublic class Main{\n\tpublic static void main(String[] args)throws Exception{\n\t\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tlist.add(br.readLine());\n\t\t}\n\t\t\n\t\tfor(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"S \" +i) == false){\n\t\t\t\tsb.append(\"S \"+ i +\"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"H \" +i) == false){\n\t\t\t\tsb.append(\"H \"+ i +\"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"C \" +i) == false){\n\t\t\t\tsb.append(\"C \"+ i +\"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"D \" +i) == false){\n\t\t\t\tsb.append(\"D \"+ i +\"\\n\");\n\t\t\t}\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",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"public class Main{\n\tpublic static void main(String[] args)throws Exception{\n\t\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tlist.add(br.readLine());\n\t\t}\n\t\t\n\t\tfor(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"S \" +i) == false){\n\t\t\t\tsb.append(\"S \"+ i +\"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"H \" +i) == false){\n\t\t\t\tsb.append(\"H \"+ i +\"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"C \" +i) == false){\n\t\t\t\tsb.append(\"C \"+ i +\"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"D \" +i) == false){\n\t\t\t\tsb.append(\"D \"+ i +\"\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}",
"Main",
"public static void main(String[] args)throws Exception{\n\t\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tlist.add(br.readLine());\n\t\t}\n\t\t\n\t\tfor(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"S \" +i) == false){\n\t\t\t\tsb.append(\"S \"+ i +\"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"H \" +i) == false){\n\t\t\t\tsb.append(\"H \"+ i +\"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"C \" +i) == false){\n\t\t\t\tsb.append(\"C \"+ i +\"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"D \" +i) == false){\n\t\t\t\tsb.append(\"D \"+ i +\"\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\n\t}",
"main",
"{\n\t\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tlist.add(br.readLine());\n\t\t}\n\t\t\n\t\tfor(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"S \" +i) == false){\n\t\t\t\tsb.append(\"S \"+ i +\"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"H \" +i) == false){\n\t\t\t\tsb.append(\"H \"+ i +\"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"C \" +i) == false){\n\t\t\t\tsb.append(\"C \"+ i +\"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"D \" +i) == false){\n\t\t\t\tsb.append(\"D \"+ i +\"\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\n\t}",
"ArrayList<String> list = new ArrayList<String>();",
"list",
"new ArrayList<String>()",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int i=0; i<n; i++){\n\t\t\tlist.add(br.readLine());\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tlist.add(br.readLine());\n\t\t}",
"{\n\t\t\tlist.add(br.readLine());\n\t\t}",
"list.add(br.readLine())",
"list.add",
"list",
"br.readLine()",
"br.readLine",
"br",
"for(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"S \" +i) == false){\n\t\t\t\tsb.append(\"S \"+ i +\"\\n\");\n\t\t\t}\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(list.contains(\"S \" +i) == false){\n\t\t\t\tsb.append(\"S \"+ i +\"\\n\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(list.contains(\"S \" +i) == false){\n\t\t\t\tsb.append(\"S \"+ i +\"\\n\");\n\t\t\t}\n\t\t}",
"if(list.contains(\"S \" +i) == false){\n\t\t\t\tsb.append(\"S \"+ i +\"\\n\");\n\t\t\t}",
"list.contains(\"S \" +i) == false",
"list.contains(\"S \" +i)",
"list.contains",
"list",
"\"S \" +i",
"\"S \"",
"i",
"false",
"{\n\t\t\t\tsb.append(\"S \"+ i +\"\\n\");\n\t\t\t}",
"sb.append(\"S \"+ i +\"\\n\")",
"sb.append",
"sb",
"\"S \"+ i +\"\\n\"",
"\"S \"+ i +\"\\n\"",
"\"S \"",
"i",
"\"\\n\"",
"for(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"H \" +i) == false){\n\t\t\t\tsb.append(\"H \"+ i +\"\\n\");\n\t\t\t}\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(list.contains(\"H \" +i) == false){\n\t\t\t\tsb.append(\"H \"+ i +\"\\n\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(list.contains(\"H \" +i) == false){\n\t\t\t\tsb.append(\"H \"+ i +\"\\n\");\n\t\t\t}\n\t\t}",
"if(list.contains(\"H \" +i) == false){\n\t\t\t\tsb.append(\"H \"+ i +\"\\n\");\n\t\t\t}",
"list.contains(\"H \" +i) == false",
"list.contains(\"H \" +i)",
"list.contains",
"list",
"\"H \" +i",
"\"H \"",
"i",
"false",
"{\n\t\t\t\tsb.append(\"H \"+ i +\"\\n\");\n\t\t\t}",
"sb.append(\"H \"+ i +\"\\n\")",
"sb.append",
"sb",
"\"H \"+ i +\"\\n\"",
"\"H \"+ i +\"\\n\"",
"\"H \"",
"i",
"\"\\n\"",
"for(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"C \" +i) == false){\n\t\t\t\tsb.append(\"C \"+ i +\"\\n\");\n\t\t\t}\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(list.contains(\"C \" +i) == false){\n\t\t\t\tsb.append(\"C \"+ i +\"\\n\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(list.contains(\"C \" +i) == false){\n\t\t\t\tsb.append(\"C \"+ i +\"\\n\");\n\t\t\t}\n\t\t}",
"if(list.contains(\"C \" +i) == false){\n\t\t\t\tsb.append(\"C \"+ i +\"\\n\");\n\t\t\t}",
"list.contains(\"C \" +i) == false",
"list.contains(\"C \" +i)",
"list.contains",
"list",
"\"C \" +i",
"\"C \"",
"i",
"false",
"{\n\t\t\t\tsb.append(\"C \"+ i +\"\\n\");\n\t\t\t}",
"sb.append(\"C \"+ i +\"\\n\")",
"sb.append",
"sb",
"\"C \"+ i +\"\\n\"",
"\"C \"+ i +\"\\n\"",
"\"C \"",
"i",
"\"\\n\"",
"for(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"D \" +i) == false){\n\t\t\t\tsb.append(\"D \"+ i +\"\\n\");\n\t\t\t}\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(list.contains(\"D \" +i) == false){\n\t\t\t\tsb.append(\"D \"+ i +\"\\n\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(list.contains(\"D \" +i) == false){\n\t\t\t\tsb.append(\"D \"+ i +\"\\n\");\n\t\t\t}\n\t\t}",
"if(list.contains(\"D \" +i) == false){\n\t\t\t\tsb.append(\"D \"+ i +\"\\n\");\n\t\t\t}",
"list.contains(\"D \" +i) == false",
"list.contains(\"D \" +i)",
"list.contains",
"list",
"\"D \" +i",
"\"D \"",
"i",
"false",
"{\n\t\t\t\tsb.append(\"D \"+ i +\"\\n\");\n\t\t\t}",
"sb.append(\"D \"+ i +\"\\n\")",
"sb.append",
"sb",
"\"D \"+ i +\"\\n\"",
"\"D \"+ i +\"\\n\"",
"\"D \"",
"i",
"\"\\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 Exception{\n\t\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tlist.add(br.readLine());\n\t\t}\n\t\t\n\t\tfor(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"S \" +i) == false){\n\t\t\t\tsb.append(\"S \"+ i +\"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"H \" +i) == false){\n\t\t\t\tsb.append(\"H \"+ i +\"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"C \" +i) == false){\n\t\t\t\tsb.append(\"C \"+ i +\"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"D \" +i) == false){\n\t\t\t\tsb.append(\"D \"+ i +\"\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args)throws Exception{\n\t\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tlist.add(br.readLine());\n\t\t}\n\t\t\n\t\tfor(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"S \" +i) == false){\n\t\t\t\tsb.append(\"S \"+ i +\"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"H \" +i) == false){\n\t\t\t\tsb.append(\"H \"+ i +\"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"C \" +i) == false){\n\t\t\t\tsb.append(\"C \"+ i +\"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=1; i<=13; i++){\n\t\t\tif(list.contains(\"D \" +i) == false){\n\t\t\t\tsb.append(\"D \"+ i +\"\\n\");\n\t\t\t}\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;
import java.util.ArrayList;
public class Main{
public static void main(String[] args)throws Exception{
ArrayList<String> list = new ArrayList<String>();
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
int n = Integer.parseInt(br.readLine());
for(int i=0; i<n; i++){
list.add(br.readLine());
}
for(int i=1; i<=13; i++){
if(list.contains("S " +i) == false){
sb.append("S "+ i +"\n");
}
}
for(int i=1; i<=13; i++){
if(list.contains("H " +i) == false){
sb.append("H "+ i +"\n");
}
}
for(int i=1; i<=13; i++){
if(list.contains("C " +i) == false){
sb.append("C "+ i +"\n");
}
}
for(int i=1; i<=13; i++){
if(list.contains("D " +i) == false){
sb.append("D "+ i +"\n");
}
}
System.out.print(sb);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
35,
18,
13,
17,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
1,
41,
13,
39,
17,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
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
],
[
178,
11
],
[
178,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
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
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
46,
51
],
[
43,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
57,
59
],
[
43,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
66,
76
],
[
60,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
79,
89
],
[
60,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
98,
100
],
[
93,
101
],
[
92,
102
],
[
60,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
111,
112
],
[
111,
113
],
[
106,
114
],
[
105,
115
],
[
60,
116
],
[
116,
117
],
[
14,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
120,
122
],
[
120,
123
],
[
120,
124
],
[
14,
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
],
[
140,
141
],
[
140,
142
],
[
137,
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
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
157,
163
],
[
156,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
165,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
172,
174
],
[
12,
175
],
[
175,
176
],
[
0,
177
],
[
177,
178
],
[
177,
179
]
] | [
"import java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(br.readLine());\n\t\tint[][] c = new int[4][13];\n\t\tfor( int i = 0 ; i < num ; i++ ) {\n\t\t\tString[] card = br.readLine().split(\" \");\n\t\t\tint j = Integer.parseInt(card[1]);\n\t\t\tswitch(card[0]) {\n\t\t\t\tcase \"S\":\n\t\t\t\tc[0][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"H\":\n\t\t\t\tc[1][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"C\":\n\t\t\t\tc[2][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"D\":\n\t\t\t\tc[3][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t/* do nothing */\n\t\t\t}\n\t\t}\n\t\tString[] color = { \"S \", \"H \", \"C \", \"D \"};\n\t\tfor( int i = 0 ; i < 4 ; i++ ) {\n\t\t\tString s = color[i];\n\t\t\tfor( int j = 0 ; j < 13 ; j++ ) {\n\t\t\t\tif ( c[i][j] == 0 ) {\n\t\t\t\t\tSystem.out.println( s + (j+1) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"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 IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(br.readLine());\n\t\tint[][] c = new int[4][13];\n\t\tfor( int i = 0 ; i < num ; i++ ) {\n\t\t\tString[] card = br.readLine().split(\" \");\n\t\t\tint j = Integer.parseInt(card[1]);\n\t\t\tswitch(card[0]) {\n\t\t\t\tcase \"S\":\n\t\t\t\tc[0][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"H\":\n\t\t\t\tc[1][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"C\":\n\t\t\t\tc[2][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"D\":\n\t\t\t\tc[3][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t/* do nothing */\n\t\t\t}\n\t\t}\n\t\tString[] color = { \"S \", \"H \", \"C \", \"D \"};\n\t\tfor( int i = 0 ; i < 4 ; i++ ) {\n\t\t\tString s = color[i];\n\t\t\tfor( int j = 0 ; j < 13 ; j++ ) {\n\t\t\t\tif ( c[i][j] == 0 ) {\n\t\t\t\t\tSystem.out.println( s + (j+1) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(br.readLine());\n\t\tint[][] c = new int[4][13];\n\t\tfor( int i = 0 ; i < num ; i++ ) {\n\t\t\tString[] card = br.readLine().split(\" \");\n\t\t\tint j = Integer.parseInt(card[1]);\n\t\t\tswitch(card[0]) {\n\t\t\t\tcase \"S\":\n\t\t\t\tc[0][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"H\":\n\t\t\t\tc[1][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"C\":\n\t\t\t\tc[2][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"D\":\n\t\t\t\tc[3][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t/* do nothing */\n\t\t\t}\n\t\t}\n\t\tString[] color = { \"S \", \"H \", \"C \", \"D \"};\n\t\tfor( int i = 0 ; i < 4 ; i++ ) {\n\t\t\tString s = color[i];\n\t\t\tfor( int j = 0 ; j < 13 ; j++ ) {\n\t\t\t\tif ( c[i][j] == 0 ) {\n\t\t\t\t\tSystem.out.println( s + (j+1) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(br.readLine());\n\t\tint[][] c = new int[4][13];\n\t\tfor( int i = 0 ; i < num ; i++ ) {\n\t\t\tString[] card = br.readLine().split(\" \");\n\t\t\tint j = Integer.parseInt(card[1]);\n\t\t\tswitch(card[0]) {\n\t\t\t\tcase \"S\":\n\t\t\t\tc[0][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"H\":\n\t\t\t\tc[1][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"C\":\n\t\t\t\tc[2][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"D\":\n\t\t\t\tc[3][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t/* do nothing */\n\t\t\t}\n\t\t}\n\t\tString[] color = { \"S \", \"H \", \"C \", \"D \"};\n\t\tfor( int i = 0 ; i < 4 ; i++ ) {\n\t\t\tString s = color[i];\n\t\t\tfor( int j = 0 ; j < 13 ; j++ ) {\n\t\t\t\tif ( c[i][j] == 0 ) {\n\t\t\t\t\tSystem.out.println( s + (j+1) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int num = Integer.parseInt(br.readLine());",
"num",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int[][] c = new int[4][13];",
"c",
"new int[4][13]",
"4",
"13",
"for( int i = 0 ; i < num ; i++ ) {\n\t\t\tString[] card = br.readLine().split(\" \");\n\t\t\tint j = Integer.parseInt(card[1]);\n\t\t\tswitch(card[0]) {\n\t\t\t\tcase \"S\":\n\t\t\t\tc[0][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"H\":\n\t\t\t\tc[1][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"C\":\n\t\t\t\tc[2][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"D\":\n\t\t\t\tc[3][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t/* do nothing */\n\t\t\t}\n\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\tString[] card = br.readLine().split(\" \");\n\t\t\tint j = Integer.parseInt(card[1]);\n\t\t\tswitch(card[0]) {\n\t\t\t\tcase \"S\":\n\t\t\t\tc[0][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"H\":\n\t\t\t\tc[1][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"C\":\n\t\t\t\tc[2][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"D\":\n\t\t\t\tc[3][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t/* do nothing */\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] card = br.readLine().split(\" \");\n\t\t\tint j = Integer.parseInt(card[1]);\n\t\t\tswitch(card[0]) {\n\t\t\t\tcase \"S\":\n\t\t\t\tc[0][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"H\":\n\t\t\t\tc[1][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"C\":\n\t\t\t\tc[2][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"D\":\n\t\t\t\tc[3][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t/* do nothing */\n\t\t\t}\n\t\t}",
"String[] card = br.readLine().split(\" \");",
"card",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int j = Integer.parseInt(card[1]);",
"j",
"Integer.parseInt(card[1])",
"Integer.parseInt",
"Integer",
"card[1]",
"card",
"1",
"switch(card[0]) {\n\t\t\t\tcase \"S\":\n\t\t\t\tc[0][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"H\":\n\t\t\t\tc[1][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"C\":\n\t\t\t\tc[2][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"D\":\n\t\t\t\tc[3][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t/* do nothing */\n\t\t\t}",
"card[0]",
"card",
"0",
"case \"S\":",
"\"S\"",
"case \"S\":",
"c[0][j-1] = 1",
"c[0][j-1]",
"c[0]",
"c",
"0",
"j-1",
"j",
"1",
"1",
"break;",
"case \"H\":",
"\"H\"",
"case \"H\":",
"c[1][j-1] = 1",
"c[1][j-1]",
"c[1]",
"c",
"1",
"j-1",
"j",
"1",
"1",
"break;",
"case \"C\":",
"\"C\"",
"case \"C\":",
"c[2][j-1] = 1",
"c[2][j-1]",
"c[2]",
"c",
"2",
"j-1",
"j",
"1",
"1",
"break;",
"case \"D\":",
"\"D\"",
"case \"D\":",
"c[3][j-1] = 1",
"c[3][j-1]",
"c[3]",
"c",
"3",
"j-1",
"j",
"1",
"1",
"break;",
"default:",
"default:",
"String[] color = { \"S \", \"H \", \"C \", \"D \"};",
"color",
"{ \"S \", \"H \", \"C \", \"D \"}",
"\"S \"",
"\"H \"",
"\"C \"",
"\"D \"",
"for( int i = 0 ; i < 4 ; i++ ) {\n\t\t\tString s = color[i];\n\t\t\tfor( int j = 0 ; j < 13 ; j++ ) {\n\t\t\t\tif ( c[i][j] == 0 ) {\n\t\t\t\t\tSystem.out.println( s + (j+1) );\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tString s = color[i];\n\t\t\tfor( int j = 0 ; j < 13 ; j++ ) {\n\t\t\t\tif ( c[i][j] == 0 ) {\n\t\t\t\t\tSystem.out.println( s + (j+1) );\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tString s = color[i];\n\t\t\tfor( int j = 0 ; j < 13 ; j++ ) {\n\t\t\t\tif ( c[i][j] == 0 ) {\n\t\t\t\t\tSystem.out.println( s + (j+1) );\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"String s = color[i];",
"s",
"color[i]",
"color",
"i",
"for( int j = 0 ; j < 13 ; j++ ) {\n\t\t\t\tif ( c[i][j] == 0 ) {\n\t\t\t\t\tSystem.out.println( s + (j+1) );\n\t\t\t\t}\n\t\t\t}",
"int j = 0 ;",
"int j = 0 ;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\tif ( c[i][j] == 0 ) {\n\t\t\t\t\tSystem.out.println( s + (j+1) );\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif ( c[i][j] == 0 ) {\n\t\t\t\t\tSystem.out.println( s + (j+1) );\n\t\t\t\t}\n\t\t\t}",
"if ( c[i][j] == 0 ) {\n\t\t\t\t\tSystem.out.println( s + (j+1) );\n\t\t\t\t}",
"c[i][j] == 0",
"c[i][j]",
"c[i]",
"c",
"i",
"j",
"0",
"{\n\t\t\t\t\tSystem.out.println( s + (j+1) );\n\t\t\t\t}",
"System.out.println( s + (j+1) )",
"System.out.println",
"System.out",
"System",
"System.out",
"s + (j+1)",
"s",
"(j+1)",
"j",
"1",
"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\tint num = Integer.parseInt(br.readLine());\n\t\tint[][] c = new int[4][13];\n\t\tfor( int i = 0 ; i < num ; i++ ) {\n\t\t\tString[] card = br.readLine().split(\" \");\n\t\t\tint j = Integer.parseInt(card[1]);\n\t\t\tswitch(card[0]) {\n\t\t\t\tcase \"S\":\n\t\t\t\tc[0][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"H\":\n\t\t\t\tc[1][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"C\":\n\t\t\t\tc[2][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"D\":\n\t\t\t\tc[3][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t/* do nothing */\n\t\t\t}\n\t\t}\n\t\tString[] color = { \"S \", \"H \", \"C \", \"D \"};\n\t\tfor( int i = 0 ; i < 4 ; i++ ) {\n\t\t\tString s = color[i];\n\t\t\tfor( int j = 0 ; j < 13 ; j++ ) {\n\t\t\t\tif ( c[i][j] == 0 ) {\n\t\t\t\t\tSystem.out.println( s + (j+1) );\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) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(br.readLine());\n\t\tint[][] c = new int[4][13];\n\t\tfor( int i = 0 ; i < num ; i++ ) {\n\t\t\tString[] card = br.readLine().split(\" \");\n\t\t\tint j = Integer.parseInt(card[1]);\n\t\t\tswitch(card[0]) {\n\t\t\t\tcase \"S\":\n\t\t\t\tc[0][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"H\":\n\t\t\t\tc[1][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"C\":\n\t\t\t\tc[2][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tcase \"D\":\n\t\t\t\tc[3][j-1] = 1;\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t/* do nothing */\n\t\t\t}\n\t\t}\n\t\tString[] color = { \"S \", \"H \", \"C \", \"D \"};\n\t\tfor( int i = 0 ; i < 4 ; i++ ) {\n\t\t\tString s = color[i];\n\t\t\tfor( int j = 0 ; j < 13 ; j++ ) {\n\t\t\t\tif ( c[i][j] == 0 ) {\n\t\t\t\t\tSystem.out.println( s + (j+1) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] | import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int num = Integer.parseInt(br.readLine());
int[][] c = new int[4][13];
for( int i = 0 ; i < num ; i++ ) {
String[] card = br.readLine().split(" ");
int j = Integer.parseInt(card[1]);
switch(card[0]) {
case "S":
c[0][j-1] = 1;
break;
case "H":
c[1][j-1] = 1;
break;
case "C":
c[2][j-1] = 1;
break;
case "D":
c[3][j-1] = 1;
break;
default:
/* do nothing */
}
}
String[] color = { "S ", "H ", "C ", "D "};
for( int i = 0 ; i < 4 ; i++ ) {
String s = color[i];
for( int j = 0 ; j < 13 ; j++ ) {
if ( c[i][j] == 0 ) {
System.out.println( s + (j+1) );
}
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
0,
13,
4,
18,
13,
41,
13,
39,
17,
17,
17,
17,
41,
13,
0,
13,
20,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
13,
0,
18,
18,
13,
13,
2,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
2,
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
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
23,
26
],
[
23,
27
],
[
8,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
47,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
47,
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
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
71,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
78,
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
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
114,
120
],
[
113,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
128,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
128,
133
],
[
133,
134
],
[
133,
135
],
[
6,
136
],
[
136,
137
]
] | [
"import java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String args[]){\t\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint m, n;\n\t\t\n\t\tn = scan.nextInt();\n\t\tString[] c ={\"S\", \"H\", \"C\", \"D\"}; \n\t\t\n\t\tint a[][];\n\t\ta = new int[4][13];\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tString s = scan.next();\n\t\t\tm = scan.nextInt();\n\t\t\t\n\t\t\tfor(int j = 0; j < 4; j++) {\n\t\t\t\tif(c[j].equals(s)) a[j][m - 1] = 1;\n\t\t\t}\n\t\t}\n\t\t\t\n\t\tfor(int i = 0;i < 4;i++){\n\t\t\tfor(int j = 0; j < 13;j++){\n\t\t\t\tif(a[i][j] == 0){\n\t\t\t\t\tSystem.out.println(c[i] + \" \" + (j + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\t\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\n\tpublic static void main(String args[]){\t\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint m, n;\n\t\t\n\t\tn = scan.nextInt();\n\t\tString[] c ={\"S\", \"H\", \"C\", \"D\"}; \n\t\t\n\t\tint a[][];\n\t\ta = new int[4][13];\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tString s = scan.next();\n\t\t\tm = scan.nextInt();\n\t\t\t\n\t\t\tfor(int j = 0; j < 4; j++) {\n\t\t\t\tif(c[j].equals(s)) a[j][m - 1] = 1;\n\t\t\t}\n\t\t}\n\t\t\t\n\t\tfor(int i = 0;i < 4;i++){\n\t\t\tfor(int j = 0; j < 13;j++){\n\t\t\t\tif(a[i][j] == 0){\n\t\t\t\t\tSystem.out.println(c[i] + \" \" + (j + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\t\n}",
"Main",
"public static void main(String args[]){\t\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint m, n;\n\t\t\n\t\tn = scan.nextInt();\n\t\tString[] c ={\"S\", \"H\", \"C\", \"D\"}; \n\t\t\n\t\tint a[][];\n\t\ta = new int[4][13];\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tString s = scan.next();\n\t\t\tm = scan.nextInt();\n\t\t\t\n\t\t\tfor(int j = 0; j < 4; j++) {\n\t\t\t\tif(c[j].equals(s)) a[j][m - 1] = 1;\n\t\t\t}\n\t\t}\n\t\t\t\n\t\tfor(int i = 0;i < 4;i++){\n\t\t\tfor(int j = 0; j < 13;j++){\n\t\t\t\tif(a[i][j] == 0){\n\t\t\t\t\tSystem.out.println(c[i] + \" \" + (j + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\t\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint m, n;\n\t\t\n\t\tn = scan.nextInt();\n\t\tString[] c ={\"S\", \"H\", \"C\", \"D\"}; \n\t\t\n\t\tint a[][];\n\t\ta = new int[4][13];\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tString s = scan.next();\n\t\t\tm = scan.nextInt();\n\t\t\t\n\t\t\tfor(int j = 0; j < 4; j++) {\n\t\t\t\tif(c[j].equals(s)) a[j][m - 1] = 1;\n\t\t\t}\n\t\t}\n\t\t\t\n\t\tfor(int i = 0;i < 4;i++){\n\t\t\tfor(int j = 0; j < 13;j++){\n\t\t\t\tif(a[i][j] == 0){\n\t\t\t\t\tSystem.out.println(c[i] + \" \" + (j + 1));\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 m",
"m",
"n;",
"n",
"n = scan.nextInt()",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String[] c ={\"S\", \"H\", \"C\", \"D\"};",
"c",
"{\"S\", \"H\", \"C\", \"D\"}",
"\"S\"",
"\"H\"",
"\"C\"",
"\"D\"",
"int a[][];",
"a",
"a = new int[4][13]",
"a",
"new int[4][13]",
"4",
"13",
"for(int i = 0;i < n;i++){\n\t\t\tString s = scan.next();\n\t\t\tm = scan.nextInt();\n\t\t\t\n\t\t\tfor(int j = 0; j < 4; j++) {\n\t\t\t\tif(c[j].equals(s)) a[j][m - 1] = 1;\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 s = scan.next();\n\t\t\tm = scan.nextInt();\n\t\t\t\n\t\t\tfor(int j = 0; j < 4; j++) {\n\t\t\t\tif(c[j].equals(s)) a[j][m - 1] = 1;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString s = scan.next();\n\t\t\tm = scan.nextInt();\n\t\t\t\n\t\t\tfor(int j = 0; j < 4; j++) {\n\t\t\t\tif(c[j].equals(s)) a[j][m - 1] = 1;\n\t\t\t}\n\t\t}",
"String s = scan.next();",
"s",
"scan.next()",
"scan.next",
"scan",
"m = scan.nextInt()",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int j = 0; j < 4; j++) {\n\t\t\t\tif(c[j].equals(s)) a[j][m - 1] = 1;\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 4",
"j",
"4",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(c[j].equals(s)) a[j][m - 1] = 1;\n\t\t\t}",
"{\n\t\t\t\tif(c[j].equals(s)) a[j][m - 1] = 1;\n\t\t\t}",
"if(c[j].equals(s)) a[j][m - 1] = 1;",
"c[j].equals(s)",
"c[j].equals",
"c[j]",
"c",
"j",
"s",
"a[j][m - 1] = 1",
"a[j][m - 1]",
"a[j]",
"a",
"j",
"m - 1",
"m",
"1",
"1",
"for(int i = 0;i < 4;i++){\n\t\t\tfor(int j = 0; j < 13;j++){\n\t\t\t\tif(a[i][j] == 0){\n\t\t\t\t\tSystem.out.println(c[i] + \" \" + (j + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < 13;j++){\n\t\t\t\tif(a[i][j] == 0){\n\t\t\t\t\tSystem.out.println(c[i] + \" \" + (j + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < 13;j++){\n\t\t\t\tif(a[i][j] == 0){\n\t\t\t\t\tSystem.out.println(c[i] + \" \" + (j + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int j = 0; j < 13;j++){\n\t\t\t\tif(a[i][j] == 0){\n\t\t\t\t\tSystem.out.println(c[i] + \" \" + (j + 1));\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(a[i][j] == 0){\n\t\t\t\t\tSystem.out.println(c[i] + \" \" + (j + 1));\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(a[i][j] == 0){\n\t\t\t\t\tSystem.out.println(c[i] + \" \" + (j + 1));\n\t\t\t\t}\n\t\t\t}",
"if(a[i][j] == 0){\n\t\t\t\t\tSystem.out.println(c[i] + \" \" + (j + 1));\n\t\t\t\t}",
"a[i][j] == 0",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"0",
"{\n\t\t\t\t\tSystem.out.println(c[i] + \" \" + (j + 1));\n\t\t\t\t}",
"System.out.println(c[i] + \" \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"c[i] + \" \" + (j + 1)",
"c[i] + \" \" + (j + 1)",
"c[i]",
"c",
"i",
"\" \"",
"(j + 1)",
"j",
"1",
"String args[]",
"args"
] | import java.util.Scanner;
class Main {
public static void main(String args[]){
Scanner scan = new Scanner(System.in);
int m, n;
n = scan.nextInt();
String[] c ={"S", "H", "C", "D"};
int a[][];
a = new int[4][13];
for(int i = 0;i < n;i++){
String s = scan.next();
m = scan.nextInt();
for(int j = 0; j < 4; j++) {
if(c[j].equals(s)) a[j][m - 1] = 1;
}
}
for(int i = 0;i < 4;i++){
for(int j = 0; j < 13;j++){
if(a[i][j] == 0){
System.out.println(c[i] + " " + (j + 1));
}
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
13,
0,
18,
13,
13,
13,
0,
18,
13,
13,
13,
0,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
17,
0,
18,
13,
18,
13,
13,
17,
14,
4,
18,
18,
13,
13,
17,
0,
18,
13,
18,
13,
13,
17,
14,
4,
18,
18,
13,
13,
17,
0,
18,
13,
18,
13,
13,
17,
14,
4,
18,
18,
13,
13,
17,
0,
18,
13,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
289,
5
],
[
289,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
53,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
53,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
74,
82
],
[
82,
83
],
[
83,
84
],
[
74,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
91,
92
],
[
92,
93
],
[
86,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
99,
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
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
114,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
124,
126
],
[
121,
127
],
[
113,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
128,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
138,
140
],
[
135,
141
],
[
113,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
143,
148
],
[
142,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
152,
154
],
[
149,
155
],
[
113,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
157,
162
],
[
156,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
166,
168
],
[
163,
169
],
[
8,
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
],
[
184,
188
],
[
183,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
189,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
196,
198
],
[
8,
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
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
213,
217
],
[
212,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
218,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
225,
227
],
[
8,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
228,
233
],
[
233,
234
],
[
233,
235
],
[
228,
236
],
[
236,
237
],
[
237,
238
],
[
228,
239
],
[
240,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
243,
245
],
[
242,
246
],
[
241,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
247,
252
],
[
252,
253
],
[
252,
254
],
[
254,
255
],
[
254,
256
],
[
8,
257
],
[
257,
258
],
[
258,
259
],
[
259,
260
],
[
259,
261
],
[
257,
262
],
[
262,
263
],
[
262,
264
],
[
257,
265
],
[
265,
266
],
[
266,
267
],
[
257,
268
],
[
269,
269
],
[
269,
270
],
[
270,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
271,
275
],
[
270,
276
],
[
276,
277
],
[
277,
278
],
[
278,
279
],
[
278,
280
],
[
276,
281
],
[
281,
282
],
[
281,
283
],
[
283,
284
],
[
283,
285
],
[
6,
286
],
[
286,
287
],
[
0,
288
],
[
288,
289
],
[
288,
290
]
] | [
"import java.util.Scanner;\n\n\npublic class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\n\t\tint[] num = new int[52];\n\t\tString[] mark = new String[52];\n\n\t\tint[] s = new int[14];\n\t\tint[] h = new int[14];\n\t\tint[] c = new int[14];\n\t\tint[] d = new int[14];\n\n\t\tfor(int i=1;i<=13;i++){\n\t\t\ts[i]=i;\n\t\t\th[i]=i;\n\t\t\tc[i]=i;\n\t\t\td[i]=i;\n\t\t}\n\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tmark[i]=scan.next();\n\t\t\tnum[i]=scan.nextInt();\n\t\t}\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tif(mark[i].equals(\"S\")) s[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"H\")) h[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"C\")) c[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"D\")) d[num[i]] = 0;\n\t\t}\n\n\n\t\tfor(int i=1;i<=13;i++){\n\t\t\tif(s[i] !=0 )System.out.println(\"S \"+s[i]);\n\t\t}\n\t\tfor(int i=1;i<=13;i++){\n\t\t\tif(h[i] !=0 )System.out.println(\"H \"+h[i]);\n\t\t}\n\t\tfor(int i=1;i<=13;i++){\n\t\t\tif(c[i] !=0 )System.out.println(\"C \"+c[i]);\n\t\t}\n\t\tfor(int i=1;i<=13;i++){\n\t\t\tif(d[i] !=0 )System.out.println(\"D \"+d[i]);\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\n\t\tint[] num = new int[52];\n\t\tString[] mark = new String[52];\n\n\t\tint[] s = new int[14];\n\t\tint[] h = new int[14];\n\t\tint[] c = new int[14];\n\t\tint[] d = new int[14];\n\n\t\tfor(int i=1;i<=13;i++){\n\t\t\ts[i]=i;\n\t\t\th[i]=i;\n\t\t\tc[i]=i;\n\t\t\td[i]=i;\n\t\t}\n\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tmark[i]=scan.next();\n\t\t\tnum[i]=scan.nextInt();\n\t\t}\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tif(mark[i].equals(\"S\")) s[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"H\")) h[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"C\")) c[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"D\")) d[num[i]] = 0;\n\t\t}\n\n\n\t\tfor(int i=1;i<=13;i++){\n\t\t\tif(s[i] !=0 )System.out.println(\"S \"+s[i]);\n\t\t}\n\t\tfor(int i=1;i<=13;i++){\n\t\t\tif(h[i] !=0 )System.out.println(\"H \"+h[i]);\n\t\t}\n\t\tfor(int i=1;i<=13;i++){\n\t\t\tif(c[i] !=0 )System.out.println(\"C \"+c[i]);\n\t\t}\n\t\tfor(int i=1;i<=13;i++){\n\t\t\tif(d[i] !=0 )System.out.println(\"D \"+d[i]);\n\t\t}\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\t\n\t\tint[] num = new int[52];\n\t\tString[] mark = new String[52];\n\n\t\tint[] s = new int[14];\n\t\tint[] h = new int[14];\n\t\tint[] c = new int[14];\n\t\tint[] d = new int[14];\n\n\t\tfor(int i=1;i<=13;i++){\n\t\t\ts[i]=i;\n\t\t\th[i]=i;\n\t\t\tc[i]=i;\n\t\t\td[i]=i;\n\t\t}\n\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tmark[i]=scan.next();\n\t\t\tnum[i]=scan.nextInt();\n\t\t}\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tif(mark[i].equals(\"S\")) s[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"H\")) h[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"C\")) c[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"D\")) d[num[i]] = 0;\n\t\t}\n\n\n\t\tfor(int i=1;i<=13;i++){\n\t\t\tif(s[i] !=0 )System.out.println(\"S \"+s[i]);\n\t\t}\n\t\tfor(int i=1;i<=13;i++){\n\t\t\tif(h[i] !=0 )System.out.println(\"H \"+h[i]);\n\t\t}\n\t\tfor(int i=1;i<=13;i++){\n\t\t\tif(c[i] !=0 )System.out.println(\"C \"+c[i]);\n\t\t}\n\t\tfor(int i=1;i<=13;i++){\n\t\t\tif(d[i] !=0 )System.out.println(\"D \"+d[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\n\t\tint[] num = new int[52];\n\t\tString[] mark = new String[52];\n\n\t\tint[] s = new int[14];\n\t\tint[] h = new int[14];\n\t\tint[] c = new int[14];\n\t\tint[] d = new int[14];\n\n\t\tfor(int i=1;i<=13;i++){\n\t\t\ts[i]=i;\n\t\t\th[i]=i;\n\t\t\tc[i]=i;\n\t\t\td[i]=i;\n\t\t}\n\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tmark[i]=scan.next();\n\t\t\tnum[i]=scan.nextInt();\n\t\t}\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tif(mark[i].equals(\"S\")) s[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"H\")) h[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"C\")) c[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"D\")) d[num[i]] = 0;\n\t\t}\n\n\n\t\tfor(int i=1;i<=13;i++){\n\t\t\tif(s[i] !=0 )System.out.println(\"S \"+s[i]);\n\t\t}\n\t\tfor(int i=1;i<=13;i++){\n\t\t\tif(h[i] !=0 )System.out.println(\"H \"+h[i]);\n\t\t}\n\t\tfor(int i=1;i<=13;i++){\n\t\t\tif(c[i] !=0 )System.out.println(\"C \"+c[i]);\n\t\t}\n\t\tfor(int i=1;i<=13;i++){\n\t\t\tif(d[i] !=0 )System.out.println(\"D \"+d[i]);\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[] num = new int[52];",
"num",
"new int[52]",
"52",
"String[] mark = new String[52];",
"mark",
"new String[52]",
"52",
"int[] s = new int[14];",
"s",
"new int[14]",
"14",
"int[] h = new int[14];",
"h",
"new int[14]",
"14",
"int[] c = new int[14];",
"c",
"new int[14]",
"14",
"int[] d = new int[14];",
"d",
"new int[14]",
"14",
"for(int i=1;i<=13;i++){\n\t\t\ts[i]=i;\n\t\t\th[i]=i;\n\t\t\tc[i]=i;\n\t\t\td[i]=i;\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\ts[i]=i;\n\t\t\th[i]=i;\n\t\t\tc[i]=i;\n\t\t\td[i]=i;\n\t\t}",
"{\n\t\t\ts[i]=i;\n\t\t\th[i]=i;\n\t\t\tc[i]=i;\n\t\t\td[i]=i;\n\t\t}",
"s[i]=i",
"s[i]",
"s",
"i",
"i",
"h[i]=i",
"h[i]",
"h",
"i",
"i",
"c[i]=i",
"c[i]",
"c",
"i",
"i",
"d[i]=i",
"d[i]",
"d",
"i",
"i",
"for(int i=0;i<n;i++){\n\t\t\tmark[i]=scan.next();\n\t\t\tnum[i]=scan.nextInt();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tmark[i]=scan.next();\n\t\t\tnum[i]=scan.nextInt();\n\t\t}",
"{\n\t\t\tmark[i]=scan.next();\n\t\t\tnum[i]=scan.nextInt();\n\t\t}",
"mark[i]=scan.next()",
"mark[i]",
"mark",
"i",
"scan.next()",
"scan.next",
"scan",
"num[i]=scan.nextInt()",
"num[i]",
"num",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i=0;i<n;i++){\n\t\t\tif(mark[i].equals(\"S\")) s[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"H\")) h[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"C\")) c[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"D\")) d[num[i]] = 0;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif(mark[i].equals(\"S\")) s[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"H\")) h[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"C\")) c[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"D\")) d[num[i]] = 0;\n\t\t}",
"{\n\t\t\tif(mark[i].equals(\"S\")) s[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"H\")) h[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"C\")) c[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"D\")) d[num[i]] = 0;\n\t\t}",
"if(mark[i].equals(\"S\")) s[num[i]] = 0;",
"mark[i].equals(\"S\")",
"mark[i].equals",
"mark[i]",
"mark",
"i",
"\"S\"",
"s[num[i]] = 0",
"s[num[i]]",
"s",
"num[i]",
"num",
"i",
"0",
"if(mark[i].equals(\"H\")) h[num[i]] = 0;",
"mark[i].equals(\"H\")",
"mark[i].equals",
"mark[i]",
"mark",
"i",
"\"H\"",
"h[num[i]] = 0",
"h[num[i]]",
"h",
"num[i]",
"num",
"i",
"0",
"if(mark[i].equals(\"C\")) c[num[i]] = 0;",
"mark[i].equals(\"C\")",
"mark[i].equals",
"mark[i]",
"mark",
"i",
"\"C\"",
"c[num[i]] = 0",
"c[num[i]]",
"c",
"num[i]",
"num",
"i",
"0",
"if(mark[i].equals(\"D\")) d[num[i]] = 0;",
"mark[i].equals(\"D\")",
"mark[i].equals",
"mark[i]",
"mark",
"i",
"\"D\"",
"d[num[i]] = 0",
"d[num[i]]",
"d",
"num[i]",
"num",
"i",
"0",
"for(int i=1;i<=13;i++){\n\t\t\tif(s[i] !=0 )System.out.println(\"S \"+s[i]);\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(s[i] !=0 )System.out.println(\"S \"+s[i]);\n\t\t}",
"{\n\t\t\tif(s[i] !=0 )System.out.println(\"S \"+s[i]);\n\t\t}",
"if(s[i] !=0 )System.out.println(\"S \"+s[i]);",
"s[i] !=0",
"s[i]",
"s",
"i",
"0",
"System.out.println(\"S \"+s[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \"+s[i]",
"\"S \"",
"s[i]",
"s",
"i",
"for(int i=1;i<=13;i++){\n\t\t\tif(h[i] !=0 )System.out.println(\"H \"+h[i]);\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(h[i] !=0 )System.out.println(\"H \"+h[i]);\n\t\t}",
"{\n\t\t\tif(h[i] !=0 )System.out.println(\"H \"+h[i]);\n\t\t}",
"if(h[i] !=0 )System.out.println(\"H \"+h[i]);",
"h[i] !=0",
"h[i]",
"h",
"i",
"0",
"System.out.println(\"H \"+h[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \"+h[i]",
"\"H \"",
"h[i]",
"h",
"i",
"for(int i=1;i<=13;i++){\n\t\t\tif(c[i] !=0 )System.out.println(\"C \"+c[i]);\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(c[i] !=0 )System.out.println(\"C \"+c[i]);\n\t\t}",
"{\n\t\t\tif(c[i] !=0 )System.out.println(\"C \"+c[i]);\n\t\t}",
"if(c[i] !=0 )System.out.println(\"C \"+c[i]);",
"c[i] !=0",
"c[i]",
"c",
"i",
"0",
"System.out.println(\"C \"+c[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \"+c[i]",
"\"C \"",
"c[i]",
"c",
"i",
"for(int i=1;i<=13;i++){\n\t\t\tif(d[i] !=0 )System.out.println(\"D \"+d[i]);\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(d[i] !=0 )System.out.println(\"D \"+d[i]);\n\t\t}",
"{\n\t\t\tif(d[i] !=0 )System.out.println(\"D \"+d[i]);\n\t\t}",
"if(d[i] !=0 )System.out.println(\"D \"+d[i]);",
"d[i] !=0",
"d[i]",
"d",
"i",
"0",
"System.out.println(\"D \"+d[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \"+d[i]",
"\"D \"",
"d[i]",
"d",
"i",
"String[] args",
"args",
"public class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\n\t\tint[] num = new int[52];\n\t\tString[] mark = new String[52];\n\n\t\tint[] s = new int[14];\n\t\tint[] h = new int[14];\n\t\tint[] c = new int[14];\n\t\tint[] d = new int[14];\n\n\t\tfor(int i=1;i<=13;i++){\n\t\t\ts[i]=i;\n\t\t\th[i]=i;\n\t\t\tc[i]=i;\n\t\t\td[i]=i;\n\t\t}\n\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tmark[i]=scan.next();\n\t\t\tnum[i]=scan.nextInt();\n\t\t}\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tif(mark[i].equals(\"S\")) s[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"H\")) h[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"C\")) c[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"D\")) d[num[i]] = 0;\n\t\t}\n\n\n\t\tfor(int i=1;i<=13;i++){\n\t\t\tif(s[i] !=0 )System.out.println(\"S \"+s[i]);\n\t\t}\n\t\tfor(int i=1;i<=13;i++){\n\t\t\tif(h[i] !=0 )System.out.println(\"H \"+h[i]);\n\t\t}\n\t\tfor(int i=1;i<=13;i++){\n\t\t\tif(c[i] !=0 )System.out.println(\"C \"+c[i]);\n\t\t}\n\t\tfor(int i=1;i<=13;i++){\n\t\t\tif(d[i] !=0 )System.out.println(\"D \"+d[i]);\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\n\t\tint[] num = new int[52];\n\t\tString[] mark = new String[52];\n\n\t\tint[] s = new int[14];\n\t\tint[] h = new int[14];\n\t\tint[] c = new int[14];\n\t\tint[] d = new int[14];\n\n\t\tfor(int i=1;i<=13;i++){\n\t\t\ts[i]=i;\n\t\t\th[i]=i;\n\t\t\tc[i]=i;\n\t\t\td[i]=i;\n\t\t}\n\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tmark[i]=scan.next();\n\t\t\tnum[i]=scan.nextInt();\n\t\t}\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tif(mark[i].equals(\"S\")) s[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"H\")) h[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"C\")) c[num[i]] = 0;\n\t\t\tif(mark[i].equals(\"D\")) d[num[i]] = 0;\n\t\t}\n\n\n\t\tfor(int i=1;i<=13;i++){\n\t\t\tif(s[i] !=0 )System.out.println(\"S \"+s[i]);\n\t\t}\n\t\tfor(int i=1;i<=13;i++){\n\t\t\tif(h[i] !=0 )System.out.println(\"H \"+h[i]);\n\t\t}\n\t\tfor(int i=1;i<=13;i++){\n\t\t\tif(c[i] !=0 )System.out.println(\"C \"+c[i]);\n\t\t}\n\t\tfor(int i=1;i<=13;i++){\n\t\t\tif(d[i] !=0 )System.out.println(\"D \"+d[i]);\n\t\t}\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[] num = new int[52];
String[] mark = new String[52];
int[] s = new int[14];
int[] h = new int[14];
int[] c = new int[14];
int[] d = new int[14];
for(int i=1;i<=13;i++){
s[i]=i;
h[i]=i;
c[i]=i;
d[i]=i;
}
for(int i=0;i<n;i++){
mark[i]=scan.next();
num[i]=scan.nextInt();
}
for(int i=0;i<n;i++){
if(mark[i].equals("S")) s[num[i]] = 0;
if(mark[i].equals("H")) h[num[i]] = 0;
if(mark[i].equals("C")) c[num[i]] = 0;
if(mark[i].equals("D")) d[num[i]] = 0;
}
for(int i=1;i<=13;i++){
if(s[i] !=0 )System.out.println("S "+s[i]);
}
for(int i=1;i<=13;i++){
if(h[i] !=0 )System.out.println("H "+h[i]);
}
for(int i=1;i<=13;i++){
if(c[i] !=0 )System.out.println("C "+c[i]);
}
for(int i=1;i<=13;i++){
if(d[i] !=0 )System.out.println("D "+d[i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
41,
13,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
41,
13,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
41,
13,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
35,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
14,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
35,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
14,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
35,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
14,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
35,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
34,
17,
1,
0,
18,
13,
13,
2,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
18,
13,
13,
12,
13,
30,
4,
18,
20,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
8,
10
],
[
8,
11
],
[
8,
12
],
[
8,
13
],
[
8,
14
],
[
8,
15
],
[
8,
16
],
[
8,
17
],
[
8,
18
],
[
8,
19
],
[
8,
20
],
[
8,
21
],
[
8,
22
],
[
4,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
25,
28
],
[
25,
29
],
[
25,
30
],
[
25,
31
],
[
25,
32
],
[
25,
33
],
[
25,
34
],
[
25,
35
],
[
25,
36
],
[
25,
37
],
[
25,
38
],
[
25,
39
],
[
4,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
42,
45
],
[
42,
46
],
[
42,
47
],
[
42,
48
],
[
42,
49
],
[
42,
50
],
[
42,
51
],
[
42,
52
],
[
42,
53
],
[
42,
54
],
[
42,
55
],
[
42,
56
],
[
4,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
59,
62
],
[
59,
63
],
[
59,
64
],
[
59,
65
],
[
59,
66
],
[
59,
67
],
[
59,
68
],
[
59,
69
],
[
59,
70
],
[
59,
71
],
[
59,
72
],
[
59,
73
],
[
4,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
76,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
85,
96
],
[
97,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
97,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
103,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
108,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
114,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
114,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
114,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
114,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
114,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
183,
187
],
[
114,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
195,
199
],
[
114,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
203,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
207,
211
],
[
114,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
215,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
219,
223
],
[
114,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
227,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
231,
235
],
[
114,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
239,
243
],
[
243,
244
],
[
244,
245
],
[
244,
246
],
[
243,
247
],
[
114,
248
],
[
248,
249
],
[
248,
250
],
[
250,
251
],
[
251,
252
],
[
252,
253
],
[
252,
254
],
[
251,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
255,
259
],
[
114,
260
],
[
260,
261
],
[
260,
262
],
[
262,
263
],
[
263,
264
],
[
264,
265
],
[
264,
266
],
[
263,
267
],
[
267,
268
],
[
268,
269
],
[
268,
270
],
[
267,
271
],
[
103,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
273,
276
],
[
272,
277
],
[
277,
278
],
[
278,
279
],
[
278,
280
],
[
280,
281
],
[
281,
282
],
[
277,
283
],
[
283,
284
],
[
283,
285
],
[
285,
286
],
[
285,
287
],
[
287,
288
],
[
288,
289
],
[
289,
290
],
[
289,
291
],
[
288,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
292,
296
],
[
283,
297
],
[
297,
298
],
[
297,
299
],
[
299,
300
],
[
300,
301
],
[
301,
302
],
[
301,
303
],
[
300,
304
],
[
304,
305
],
[
305,
306
],
[
305,
307
],
[
304,
308
],
[
283,
309
],
[
309,
310
],
[
309,
311
],
[
311,
312
],
[
312,
313
],
[
313,
314
],
[
313,
315
],
[
312,
316
],
[
316,
317
],
[
317,
318
],
[
317,
319
],
[
316,
320
],
[
283,
321
],
[
321,
322
],
[
321,
323
],
[
323,
324
],
[
324,
325
],
[
325,
326
],
[
325,
327
],
[
324,
328
],
[
328,
329
],
[
329,
330
],
[
329,
331
],
[
328,
332
],
[
283,
333
],
[
333,
334
],
[
333,
335
],
[
335,
336
],
[
336,
337
],
[
337,
338
],
[
337,
339
],
[
336,
340
],
[
340,
341
],
[
341,
342
],
[
341,
343
],
[
340,
344
],
[
283,
345
],
[
345,
346
],
[
345,
347
],
[
347,
348
],
[
348,
349
],
[
349,
350
],
[
349,
351
],
[
348,
352
],
[
352,
353
],
[
353,
354
],
[
353,
355
],
[
352,
356
],
[
283,
357
],
[
357,
358
],
[
357,
359
],
[
359,
360
],
[
360,
361
],
[
361,
362
],
[
361,
363
],
[
360,
364
],
[
364,
365
],
[
365,
366
],
[
365,
367
],
[
364,
368
],
[
283,
369
],
[
369,
370
],
[
369,
371
],
[
371,
372
],
[
372,
373
],
[
373,
374
],
[
373,
375
],
[
372,
376
],
[
376,
377
],
[
377,
378
],
[
377,
379
],
[
376,
380
],
[
283,
381
],
[
381,
382
],
[
381,
383
],
[
383,
384
],
[
384,
385
],
[
385,
386
],
[
385,
387
],
[
384,
388
],
[
388,
389
],
[
389,
390
],
[
389,
391
],
[
388,
392
],
[
283,
393
],
[
393,
394
],
[
393,
395
],
[
395,
396
],
[
396,
397
],
[
397,
398
],
[
397,
399
],
[
396,
400
],
[
400,
401
],
[
401,
402
],
[
401,
403
],
[
400,
404
],
[
283,
405
],
[
405,
406
],
[
405,
407
],
[
407,
408
],
[
408,
409
],
[
409,
410
],
[
409,
411
],
[
408,
412
],
[
412,
413
],
[
413,
414
],
[
413,
415
],
[
412,
416
],
[
283,
417
],
[
417,
418
],
[
417,
419
],
[
419,
420
],
[
420,
421
],
[
421,
422
],
[
421,
423
],
[
420,
424
],
[
424,
425
],
[
425,
426
],
[
425,
427
],
[
424,
428
],
[
283,
429
],
[
429,
430
],
[
429,
431
],
[
431,
432
],
[
432,
433
],
[
433,
434
],
[
433,
435
],
[
432,
436
],
[
436,
437
],
[
437,
438
],
[
437,
439
],
[
436,
440
],
[
272,
441
],
[
441,
442
],
[
442,
443
],
[
443,
444
],
[
442,
445
],
[
441,
446
],
[
446,
447
],
[
447,
448
],
[
447,
449
],
[
449,
450
],
[
450,
451
],
[
446,
452
],
[
452,
453
],
[
452,
454
],
[
454,
455
],
[
454,
456
],
[
456,
457
],
[
457,
458
],
[
458,
459
],
[
458,
460
],
[
457,
461
],
[
461,
462
],
[
462,
463
],
[
462,
464
],
[
461,
465
],
[
452,
466
],
[
466,
467
],
[
466,
468
],
[
468,
469
],
[
469,
470
],
[
470,
471
],
[
470,
472
],
[
469,
473
],
[
473,
474
],
[
474,
475
],
[
474,
476
],
[
473,
477
],
[
452,
478
],
[
478,
479
],
[
478,
480
],
[
480,
481
],
[
481,
482
],
[
482,
483
],
[
482,
484
],
[
481,
485
],
[
485,
486
],
[
486,
487
],
[
486,
488
],
[
485,
489
],
[
452,
490
],
[
490,
491
],
[
490,
492
],
[
492,
493
],
[
493,
494
],
[
494,
495
],
[
494,
496
],
[
493,
497
],
[
497,
498
],
[
498,
499
],
[
498,
500
],
[
497,
501
],
[
452,
502
],
[
502,
503
],
[
502,
504
],
[
504,
505
],
[
505,
506
],
[
506,
507
],
[
506,
508
],
[
505,
509
],
[
509,
510
],
[
510,
511
],
[
510,
512
],
[
509,
513
],
[
452,
514
],
[
514,
515
],
[
514,
516
],
[
516,
517
],
[
517,
518
],
[
518,
519
],
[
518,
520
],
[
517,
521
],
[
521,
522
],
[
522,
523
],
[
522,
524
],
[
521,
525
],
[
452,
526
],
[
526,
527
],
[
526,
528
],
[
528,
529
],
[
529,
530
],
[
530,
531
],
[
530,
532
],
[
529,
533
],
[
533,
534
],
[
534,
535
],
[
534,
536
],
[
533,
537
],
[
452,
538
],
[
538,
539
],
[
538,
540
],
[
540,
541
],
[
541,
542
],
[
542,
543
],
[
542,
544
],
[
541,
545
],
[
545,
546
],
[
546,
547
],
[
546,
548
],
[
545,
549
],
[
452,
550
],
[
550,
551
],
[
550,
552
],
[
552,
553
],
[
553,
554
],
[
554,
555
],
[
554,
556
],
[
553,
557
],
[
557,
558
],
[
558,
559
],
[
558,
560
],
[
557,
561
],
[
452,
562
],
[
562,
563
],
[
562,
564
],
[
564,
565
],
[
565,
566
],
[
566,
567
],
[
566,
568
],
[
565,
569
],
[
569,
570
],
[
570,
571
],
[
570,
572
],
[
569,
573
],
[
452,
574
],
[
574,
575
],
[
574,
576
],
[
576,
577
],
[
577,
578
],
[
578,
579
],
[
578,
580
],
[
577,
581
],
[
581,
582
],
[
582,
583
],
[
582,
584
],
[
581,
585
],
[
452,
586
],
[
586,
587
],
[
586,
588
],
[
588,
589
],
[
589,
590
],
[
590,
591
],
[
590,
592
],
[
589,
593
],
[
593,
594
],
[
594,
595
],
[
594,
596
],
[
593,
597
],
[
452,
598
],
[
598,
599
],
[
598,
600
],
[
600,
601
],
[
601,
602
],
[
602,
603
],
[
602,
604
],
[
601,
605
],
[
605,
606
],
[
606,
607
],
[
606,
608
],
[
605,
609
],
[
441,
610
],
[
610,
611
],
[
611,
612
],
[
612,
613
],
[
611,
614
],
[
610,
615
],
[
615,
616
],
[
616,
617
],
[
616,
618
],
[
618,
619
],
[
619,
620
],
[
615,
621
],
[
621,
622
],
[
621,
623
],
[
623,
624
],
[
623,
625
],
[
625,
626
],
[
626,
627
],
[
627,
628
],
[
627,
629
],
[
626,
630
],
[
630,
631
],
[
631,
632
],
[
631,
633
],
[
630,
634
],
[
621,
635
],
[
635,
636
],
[
635,
637
],
[
637,
638
],
[
638,
639
],
[
639,
640
],
[
639,
641
],
[
638,
642
],
[
642,
643
],
[
643,
644
],
[
643,
645
],
[
642,
646
],
[
621,
647
],
[
647,
648
],
[
647,
649
],
[
649,
650
],
[
650,
651
],
[
651,
652
],
[
651,
653
],
[
650,
654
],
[
654,
655
],
[
655,
656
],
[
655,
657
],
[
654,
658
],
[
621,
659
],
[
659,
660
],
[
659,
661
],
[
661,
662
],
[
662,
663
],
[
663,
664
],
[
663,
665
],
[
662,
666
],
[
666,
667
],
[
667,
668
],
[
667,
669
],
[
666,
670
],
[
621,
671
],
[
671,
672
],
[
671,
673
],
[
673,
674
],
[
674,
675
],
[
675,
676
],
[
675,
677
],
[
674,
678
],
[
678,
679
],
[
679,
680
],
[
679,
681
],
[
678,
682
],
[
621,
683
],
[
683,
684
],
[
683,
685
],
[
685,
686
],
[
686,
687
],
[
687,
688
],
[
687,
689
],
[
686,
690
],
[
690,
691
],
[
691,
692
],
[
691,
693
],
[
690,
694
],
[
621,
695
],
[
695,
696
],
[
695,
697
],
[
697,
698
],
[
698,
699
],
[
699,
700
],
[
699,
701
],
[
698,
702
],
[
702,
703
],
[
703,
704
],
[
703,
705
],
[
702,
706
],
[
621,
707
],
[
707,
708
],
[
707,
709
],
[
709,
710
],
[
710,
711
],
[
711,
712
],
[
711,
713
],
[
710,
714
],
[
714,
715
],
[
715,
716
],
[
715,
717
],
[
714,
718
],
[
621,
719
],
[
719,
720
],
[
719,
721
],
[
721,
722
],
[
722,
723
],
[
723,
724
],
[
723,
725
],
[
722,
726
],
[
726,
727
],
[
727,
728
],
[
727,
729
],
[
726,
730
],
[
621,
731
],
[
731,
732
],
[
731,
733
],
[
733,
734
],
[
734,
735
],
[
735,
736
],
[
735,
737
],
[
734,
738
],
[
738,
739
],
[
739,
740
],
[
739,
741
],
[
738,
742
],
[
621,
743
],
[
743,
744
],
[
743,
745
],
[
745,
746
],
[
746,
747
],
[
747,
748
],
[
747,
749
],
[
746,
750
],
[
750,
751
],
[
751,
752
],
[
751,
753
],
[
750,
754
],
[
621,
755
],
[
755,
756
],
[
755,
757
],
[
757,
758
],
[
758,
759
],
[
759,
760
],
[
759,
761
],
[
758,
762
],
[
762,
763
],
[
763,
764
],
[
763,
765
],
[
762,
766
],
[
621,
767
],
[
767,
768
],
[
767,
769
],
[
769,
770
],
[
770,
771
],
[
771,
772
],
[
771,
773
],
[
770,
774
],
[
774,
775
],
[
775,
776
],
[
775,
777
],
[
774,
778
],
[
76,
779
],
[
779,
780
],
[
780,
781
],
[
781,
782
],
[
781,
783
],
[
779,
784
],
[
784,
785
],
[
784,
786
],
[
779,
787
],
[
787,
788
],
[
788,
789
],
[
779,
790
],
[
791,
791
],
[
791,
792
],
[
792,
793
],
[
793,
794
],
[
794,
795
],
[
794,
796
],
[
793,
797
],
[
792,
798
],
[
798,
799
],
[
799,
800
],
[
800,
801
],
[
801,
802
],
[
801,
803
],
[
799,
804
],
[
804,
805
],
[
804,
806
],
[
806,
807
],
[
806,
808
],
[
76,
809
],
[
809,
810
],
[
810,
811
],
[
811,
812
],
[
811,
813
],
[
809,
814
],
[
814,
815
],
[
814,
816
],
[
809,
817
],
[
817,
818
],
[
818,
819
],
[
809,
820
],
[
821,
821
],
[
821,
822
],
[
822,
823
],
[
823,
824
],
[
824,
825
],
[
824,
826
],
[
823,
827
],
[
822,
828
],
[
828,
829
],
[
829,
830
],
[
830,
831
],
[
831,
832
],
[
831,
833
],
[
829,
834
],
[
834,
835
],
[
834,
836
],
[
836,
837
],
[
836,
838
],
[
76,
839
],
[
839,
840
],
[
840,
841
],
[
841,
842
],
[
841,
843
],
[
839,
844
],
[
844,
845
],
[
844,
846
],
[
839,
847
],
[
847,
848
],
[
848,
849
],
[
839,
850
],
[
851,
851
],
[
851,
852
],
[
852,
853
],
[
853,
854
],
[
854,
855
],
[
854,
856
],
[
853,
857
],
[
852,
858
],
[
858,
859
],
[
859,
860
],
[
860,
861
],
[
861,
862
],
[
861,
863
],
[
859,
864
],
[
864,
865
],
[
864,
866
],
[
866,
867
],
[
866,
868
],
[
76,
869
],
[
869,
870
],
[
870,
871
],
[
871,
872
],
[
871,
873
],
[
869,
874
],
[
874,
875
],
[
874,
876
],
[
869,
877
],
[
877,
878
],
[
878,
879
],
[
869,
880
],
[
881,
881
],
[
881,
882
],
[
882,
883
],
[
883,
884
],
[
884,
885
],
[
884,
886
],
[
883,
887
],
[
882,
888
],
[
888,
889
],
[
889,
890
],
[
890,
891
],
[
891,
892
],
[
891,
893
],
[
889,
894
],
[
894,
895
],
[
894,
896
],
[
896,
897
],
[
896,
898
],
[
4,
899
],
[
899,
900
],
[
899,
901
],
[
901,
902
],
[
902,
903
],
[
903,
904
],
[
899,
905
],
[
905,
906
]
] | [
"import java.util.Scanner;\nclass Main {\n\tprivate static int[] S = {0,1,2,3,4,5,6,7,8,9,10,11,12,13};\n\tprivate static int[] H = {0,1,2,3,4,5,6,7,8,9,10,11,12,13};\n\tprivate static int[] C = {0,1,2,3,4,5,6,7,8,9,10,11,12,13};\n\tprivate static int[] D = {0,1,2,3,4,5,6,7,8,9,10,11,12,13};\n\tpublic void kami() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tString j = sc.next();\n\t\t\tif(j.equals(\"S\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"H\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"C\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"D\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int x = 1; x <= 13; x++){\n\t\t\tif(S[x] > 0){\n\t\t\t\tSystem.out.println(\"S \" + S[x]);\n\t\t\t}\n\t\t}\n\t\tfor(int x = 1; x <= 13; x++){\n\t\t\tif(H[x] > 0){\n\t\t\t\tSystem.out.println(\"H \" + H[x]);\n\t\t\t}\n\t\t}\n\t\tfor(int x = 1; x <= 13; x++){\n\t\t\tif(C[x] > 0){\n\t\t\t\tSystem.out.println(\"C \" + C[x]);\n\t\t\t}\n\t\t}\n\t\tfor(int x = 1; x <= 13; x++){\n\t\t\tif(D[x] > 0){\n\t\t\t\tSystem.out.println(\"D \" + D[x]);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\n\t\tnew Main().kami();\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tprivate static int[] S = {0,1,2,3,4,5,6,7,8,9,10,11,12,13};\n\tprivate static int[] H = {0,1,2,3,4,5,6,7,8,9,10,11,12,13};\n\tprivate static int[] C = {0,1,2,3,4,5,6,7,8,9,10,11,12,13};\n\tprivate static int[] D = {0,1,2,3,4,5,6,7,8,9,10,11,12,13};\n\tpublic void kami() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tString j = sc.next();\n\t\t\tif(j.equals(\"S\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"H\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"C\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"D\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int x = 1; x <= 13; x++){\n\t\t\tif(S[x] > 0){\n\t\t\t\tSystem.out.println(\"S \" + S[x]);\n\t\t\t}\n\t\t}\n\t\tfor(int x = 1; x <= 13; x++){\n\t\t\tif(H[x] > 0){\n\t\t\t\tSystem.out.println(\"H \" + H[x]);\n\t\t\t}\n\t\t}\n\t\tfor(int x = 1; x <= 13; x++){\n\t\t\tif(C[x] > 0){\n\t\t\t\tSystem.out.println(\"C \" + C[x]);\n\t\t\t}\n\t\t}\n\t\tfor(int x = 1; x <= 13; x++){\n\t\t\tif(D[x] > 0){\n\t\t\t\tSystem.out.println(\"D \" + D[x]);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\n\t\tnew Main().kami();\n\t}\n\n}",
"Main",
"private static int[] S = {0,1,2,3,4,5,6,7,8,9,10,11,12,13};",
"S",
"{0,1,2,3,4,5,6,7,8,9,10,11,12,13}",
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"private static int[] H = {0,1,2,3,4,5,6,7,8,9,10,11,12,13};",
"H",
"{0,1,2,3,4,5,6,7,8,9,10,11,12,13}",
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"private static int[] C = {0,1,2,3,4,5,6,7,8,9,10,11,12,13};",
"C",
"{0,1,2,3,4,5,6,7,8,9,10,11,12,13}",
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"private static int[] D = {0,1,2,3,4,5,6,7,8,9,10,11,12,13};",
"D",
"{0,1,2,3,4,5,6,7,8,9,10,11,12,13}",
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"public void kami() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tString j = sc.next();\n\t\t\tif(j.equals(\"S\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"H\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"C\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"D\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int x = 1; x <= 13; x++){\n\t\t\tif(S[x] > 0){\n\t\t\t\tSystem.out.println(\"S \" + S[x]);\n\t\t\t}\n\t\t}\n\t\tfor(int x = 1; x <= 13; x++){\n\t\t\tif(H[x] > 0){\n\t\t\t\tSystem.out.println(\"H \" + H[x]);\n\t\t\t}\n\t\t}\n\t\tfor(int x = 1; x <= 13; x++){\n\t\t\tif(C[x] > 0){\n\t\t\t\tSystem.out.println(\"C \" + C[x]);\n\t\t\t}\n\t\t}\n\t\tfor(int x = 1; x <= 13; x++){\n\t\t\tif(D[x] > 0){\n\t\t\t\tSystem.out.println(\"D \" + D[x]);\n\t\t\t}\n\t\t}\n\t}",
"kami",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tString j = sc.next();\n\t\t\tif(j.equals(\"S\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"H\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"C\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"D\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int x = 1; x <= 13; x++){\n\t\t\tif(S[x] > 0){\n\t\t\t\tSystem.out.println(\"S \" + S[x]);\n\t\t\t}\n\t\t}\n\t\tfor(int x = 1; x <= 13; x++){\n\t\t\tif(H[x] > 0){\n\t\t\t\tSystem.out.println(\"H \" + H[x]);\n\t\t\t}\n\t\t}\n\t\tfor(int x = 1; x <= 13; x++){\n\t\t\tif(C[x] > 0){\n\t\t\t\tSystem.out.println(\"C \" + C[x]);\n\t\t\t}\n\t\t}\n\t\tfor(int x = 1; x <= 13; x++){\n\t\t\tif(D[x] > 0){\n\t\t\t\tSystem.out.println(\"D \" + D[x]);\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",
"for(int i = 1; i <= n; i++){\n\t\t\tString j = sc.next();\n\t\t\tif(j.equals(\"S\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"H\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"C\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"D\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tD[J] = D[J] - 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\tString j = sc.next();\n\t\t\tif(j.equals(\"S\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"H\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"C\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"D\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tString j = sc.next();\n\t\t\tif(j.equals(\"S\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"H\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"C\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"D\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"String j = sc.next();",
"j",
"sc.next()",
"sc.next",
"sc",
"if(j.equals(\"S\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"H\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"C\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"D\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\t}\n\t\t\t}",
"j.equals(\"S\")",
"j.equals",
"j",
"\"S\"",
"{\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\t}\n\t\t\t}",
"int J = sc.nextInt();",
"J",
"sc.nextInt()",
"sc.nextInt",
"sc",
"switch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tS[J] = S[J] - J;\n\t\t\t\t}",
"J",
"case 1:",
"1",
"case 1:",
"S[J] = S[J] - J",
"S[J]",
"S",
"J",
"S[J] - J",
"S[J]",
"S",
"J",
"J",
"case 2:",
"2",
"case 2:",
"S[J] = S[J] - J",
"S[J]",
"S",
"J",
"S[J] - J",
"S[J]",
"S",
"J",
"J",
"case 3:",
"3",
"case 3:",
"S[J] = S[J] - J",
"S[J]",
"S",
"J",
"S[J] - J",
"S[J]",
"S",
"J",
"J",
"case 4:",
"4",
"case 4:",
"S[J] = S[J] - J",
"S[J]",
"S",
"J",
"S[J] - J",
"S[J]",
"S",
"J",
"J",
"case 5:",
"5",
"case 5:",
"S[J] = S[J] - J",
"S[J]",
"S",
"J",
"S[J] - J",
"S[J]",
"S",
"J",
"J",
"case 6:",
"6",
"case 6:",
"S[J] = S[J] - J",
"S[J]",
"S",
"J",
"S[J] - J",
"S[J]",
"S",
"J",
"J",
"case 7:",
"7",
"case 7:",
"S[J] = S[J] - J",
"S[J]",
"S",
"J",
"S[J] - J",
"S[J]",
"S",
"J",
"J",
"case 8:",
"8",
"case 8:",
"S[J] = S[J] - J",
"S[J]",
"S",
"J",
"S[J] - J",
"S[J]",
"S",
"J",
"J",
"case 9:",
"9",
"case 9:",
"S[J] = S[J] - J",
"S[J]",
"S",
"J",
"S[J] - J",
"S[J]",
"S",
"J",
"J",
"case 10:",
"10",
"case 10:",
"S[J] = S[J] - J",
"S[J]",
"S",
"J",
"S[J] - J",
"S[J]",
"S",
"J",
"J",
"case 11:",
"11",
"case 11:",
"S[J] = S[J] - J",
"S[J]",
"S",
"J",
"S[J] - J",
"S[J]",
"S",
"J",
"J",
"case 12:",
"12",
"case 12:",
"S[J] = S[J] - J",
"S[J]",
"S",
"J",
"S[J] - J",
"S[J]",
"S",
"J",
"J",
"case 13:",
"13",
"case 13:",
"S[J] = S[J] - J",
"S[J]",
"S",
"J",
"S[J] - J",
"S[J]",
"S",
"J",
"J",
"if(j.equals(\"H\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"C\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"D\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\t}\n\t\t\t}",
"j.equals(\"H\")",
"j.equals",
"j",
"\"H\"",
"{\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\t}\n\t\t\t}",
"int J = sc.nextInt();",
"J",
"sc.nextInt()",
"sc.nextInt",
"sc",
"switch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tH[J] = H[J] - J;\n\t\t\t\t}",
"J",
"case 1:",
"1",
"case 1:",
"H[J] = H[J] - J",
"H[J]",
"H",
"J",
"H[J] - J",
"H[J]",
"H",
"J",
"J",
"case 2:",
"2",
"case 2:",
"H[J] = H[J] - J",
"H[J]",
"H",
"J",
"H[J] - J",
"H[J]",
"H",
"J",
"J",
"case 3:",
"3",
"case 3:",
"H[J] = H[J] - J",
"H[J]",
"H",
"J",
"H[J] - J",
"H[J]",
"H",
"J",
"J",
"case 4:",
"4",
"case 4:",
"H[J] = H[J] - J",
"H[J]",
"H",
"J",
"H[J] - J",
"H[J]",
"H",
"J",
"J",
"case 5:",
"5",
"case 5:",
"H[J] = H[J] - J",
"H[J]",
"H",
"J",
"H[J] - J",
"H[J]",
"H",
"J",
"J",
"case 6:",
"6",
"case 6:",
"H[J] = H[J] - J",
"H[J]",
"H",
"J",
"H[J] - J",
"H[J]",
"H",
"J",
"J",
"case 7:",
"7",
"case 7:",
"H[J] = H[J] - J",
"H[J]",
"H",
"J",
"H[J] - J",
"H[J]",
"H",
"J",
"J",
"case 8:",
"8",
"case 8:",
"H[J] = H[J] - J",
"H[J]",
"H",
"J",
"H[J] - J",
"H[J]",
"H",
"J",
"J",
"case 9:",
"9",
"case 9:",
"H[J] = H[J] - J",
"H[J]",
"H",
"J",
"H[J] - J",
"H[J]",
"H",
"J",
"J",
"case 10:",
"10",
"case 10:",
"H[J] = H[J] - J",
"H[J]",
"H",
"J",
"H[J] - J",
"H[J]",
"H",
"J",
"J",
"case 11:",
"11",
"case 11:",
"H[J] = H[J] - J",
"H[J]",
"H",
"J",
"H[J] - J",
"H[J]",
"H",
"J",
"J",
"case 12:",
"12",
"case 12:",
"H[J] = H[J] - J",
"H[J]",
"H",
"J",
"H[J] - J",
"H[J]",
"H",
"J",
"J",
"case 13:",
"13",
"case 13:",
"H[J] = H[J] - J",
"H[J]",
"H",
"J",
"H[J] - J",
"H[J]",
"H",
"J",
"J",
"if(j.equals(\"C\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\t}\n\t\t\t}else if(j.equals(\"D\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\t}\n\t\t\t}",
"j.equals(\"C\")",
"j.equals",
"j",
"\"C\"",
"{\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\t}\n\t\t\t}",
"int J = sc.nextInt();",
"J",
"sc.nextInt()",
"sc.nextInt",
"sc",
"switch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tC[J] = C[J] - J;\n\t\t\t\t}",
"J",
"case 1:",
"1",
"case 1:",
"C[J] = C[J] - J",
"C[J]",
"C",
"J",
"C[J] - J",
"C[J]",
"C",
"J",
"J",
"case 2:",
"2",
"case 2:",
"C[J] = C[J] - J",
"C[J]",
"C",
"J",
"C[J] - J",
"C[J]",
"C",
"J",
"J",
"case 3:",
"3",
"case 3:",
"C[J] = C[J] - J",
"C[J]",
"C",
"J",
"C[J] - J",
"C[J]",
"C",
"J",
"J",
"case 4:",
"4",
"case 4:",
"C[J] = C[J] - J",
"C[J]",
"C",
"J",
"C[J] - J",
"C[J]",
"C",
"J",
"J",
"case 5:",
"5",
"case 5:",
"C[J] = C[J] - J",
"C[J]",
"C",
"J",
"C[J] - J",
"C[J]",
"C",
"J",
"J",
"case 6:",
"6",
"case 6:",
"C[J] = C[J] - J",
"C[J]",
"C",
"J",
"C[J] - J",
"C[J]",
"C",
"J",
"J",
"case 7:",
"7",
"case 7:",
"C[J] = C[J] - J",
"C[J]",
"C",
"J",
"C[J] - J",
"C[J]",
"C",
"J",
"J",
"case 8:",
"8",
"case 8:",
"C[J] = C[J] - J",
"C[J]",
"C",
"J",
"C[J] - J",
"C[J]",
"C",
"J",
"J",
"case 9:",
"9",
"case 9:",
"C[J] = C[J] - J",
"C[J]",
"C",
"J",
"C[J] - J",
"C[J]",
"C",
"J",
"J",
"case 10:",
"10",
"case 10:",
"C[J] = C[J] - J",
"C[J]",
"C",
"J",
"C[J] - J",
"C[J]",
"C",
"J",
"J",
"case 11:",
"11",
"case 11:",
"C[J] = C[J] - J",
"C[J]",
"C",
"J",
"C[J] - J",
"C[J]",
"C",
"J",
"J",
"case 12:",
"12",
"case 12:",
"C[J] = C[J] - J",
"C[J]",
"C",
"J",
"C[J] - J",
"C[J]",
"C",
"J",
"J",
"case 13:",
"13",
"case 13:",
"C[J] = C[J] - J",
"C[J]",
"C",
"J",
"C[J] - J",
"C[J]",
"C",
"J",
"J",
"if(j.equals(\"D\")){\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\t}\n\t\t\t}",
"j.equals(\"D\")",
"j.equals",
"j",
"\"D\"",
"{\n\t\t\t\tint J = sc.nextInt();\n\t\t\t\tswitch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\t}\n\t\t\t}",
"int J = sc.nextInt();",
"J",
"sc.nextInt()",
"sc.nextInt",
"sc",
"switch(J){\n\t\t\t\tcase 1:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 2:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 3:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 4:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 5:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 6:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 7:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 8:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 9:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 10:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 11:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 12:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\tcase 13:\n\t\t\t\t\tD[J] = D[J] - J;\n\t\t\t\t}",
"J",
"case 1:",
"1",
"case 1:",
"D[J] = D[J] - J",
"D[J]",
"D",
"J",
"D[J] - J",
"D[J]",
"D",
"J",
"J",
"case 2:",
"2",
"case 2:",
"D[J] = D[J] - J",
"D[J]",
"D",
"J",
"D[J] - J",
"D[J]",
"D",
"J",
"J",
"case 3:",
"3",
"case 3:",
"D[J] = D[J] - J",
"D[J]",
"D",
"J",
"D[J] - J",
"D[J]",
"D",
"J",
"J",
"case 4:",
"4",
"case 4:",
"D[J] = D[J] - J",
"D[J]",
"D",
"J",
"D[J] - J",
"D[J]",
"D",
"J",
"J",
"case 5:",
"5",
"case 5:",
"D[J] = D[J] - J",
"D[J]",
"D",
"J",
"D[J] - J",
"D[J]",
"D",
"J",
"J",
"case 6:",
"6",
"case 6:",
"D[J] = D[J] - J",
"D[J]",
"D",
"J",
"D[J] - J",
"D[J]",
"D",
"J",
"J",
"case 7:",
"7",
"case 7:",
"D[J] = D[J] - J",
"D[J]",
"D",
"J",
"D[J] - J",
"D[J]",
"D",
"J",
"J",
"case 8:",
"8",
"case 8:",
"D[J] = D[J] - J",
"D[J]",
"D",
"J",
"D[J] - J",
"D[J]",
"D",
"J",
"J",
"case 9:",
"9",
"case 9:",
"D[J] = D[J] - J",
"D[J]",
"D",
"J",
"D[J] - J",
"D[J]",
"D",
"J",
"J",
"case 10:",
"10",
"case 10:",
"D[J] = D[J] - J",
"D[J]",
"D",
"J",
"D[J] - J",
"D[J]",
"D",
"J",
"J",
"case 11:",
"11",
"case 11:",
"D[J] = D[J] - J",
"D[J]",
"D",
"J",
"D[J] - J",
"D[J]",
"D",
"J",
"J",
"case 12:",
"12",
"case 12:",
"D[J] = D[J] - J",
"D[J]",
"D",
"J",
"D[J] - J",
"D[J]",
"D",
"J",
"J",
"case 13:",
"13",
"case 13:",
"D[J] = D[J] - J",
"D[J]",
"D",
"J",
"D[J] - J",
"D[J]",
"D",
"J",
"J",
"for(int x = 1; x <= 13; x++){\n\t\t\tif(S[x] > 0){\n\t\t\t\tSystem.out.println(\"S \" + S[x]);\n\t\t\t}\n\t\t}",
"int x = 1;",
"int x = 1;",
"x",
"1",
"x <= 13",
"x",
"13",
"x++",
"x++",
"x",
"{\n\t\t\tif(S[x] > 0){\n\t\t\t\tSystem.out.println(\"S \" + S[x]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(S[x] > 0){\n\t\t\t\tSystem.out.println(\"S \" + S[x]);\n\t\t\t}\n\t\t}",
"if(S[x] > 0){\n\t\t\t\tSystem.out.println(\"S \" + S[x]);\n\t\t\t}",
"S[x] > 0",
"S[x]",
"S",
"x",
"0",
"{\n\t\t\t\tSystem.out.println(\"S \" + S[x]);\n\t\t\t}",
"System.out.println(\"S \" + S[x])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \" + S[x]",
"\"S \"",
"S[x]",
"S",
"x",
"for(int x = 1; x <= 13; x++){\n\t\t\tif(H[x] > 0){\n\t\t\t\tSystem.out.println(\"H \" + H[x]);\n\t\t\t}\n\t\t}",
"int x = 1;",
"int x = 1;",
"x",
"1",
"x <= 13",
"x",
"13",
"x++",
"x++",
"x",
"{\n\t\t\tif(H[x] > 0){\n\t\t\t\tSystem.out.println(\"H \" + H[x]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(H[x] > 0){\n\t\t\t\tSystem.out.println(\"H \" + H[x]);\n\t\t\t}\n\t\t}",
"if(H[x] > 0){\n\t\t\t\tSystem.out.println(\"H \" + H[x]);\n\t\t\t}",
"H[x] > 0",
"H[x]",
"H",
"x",
"0",
"{\n\t\t\t\tSystem.out.println(\"H \" + H[x]);\n\t\t\t}",
"System.out.println(\"H \" + H[x])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \" + H[x]",
"\"H \"",
"H[x]",
"H",
"x",
"for(int x = 1; x <= 13; x++){\n\t\t\tif(C[x] > 0){\n\t\t\t\tSystem.out.println(\"C \" + C[x]);\n\t\t\t}\n\t\t}",
"int x = 1;",
"int x = 1;",
"x",
"1",
"x <= 13",
"x",
"13",
"x++",
"x++",
"x",
"{\n\t\t\tif(C[x] > 0){\n\t\t\t\tSystem.out.println(\"C \" + C[x]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(C[x] > 0){\n\t\t\t\tSystem.out.println(\"C \" + C[x]);\n\t\t\t}\n\t\t}",
"if(C[x] > 0){\n\t\t\t\tSystem.out.println(\"C \" + C[x]);\n\t\t\t}",
"C[x] > 0",
"C[x]",
"C",
"x",
"0",
"{\n\t\t\t\tSystem.out.println(\"C \" + C[x]);\n\t\t\t}",
"System.out.println(\"C \" + C[x])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \" + C[x]",
"\"C \"",
"C[x]",
"C",
"x",
"for(int x = 1; x <= 13; x++){\n\t\t\tif(D[x] > 0){\n\t\t\t\tSystem.out.println(\"D \" + D[x]);\n\t\t\t}\n\t\t}",
"int x = 1;",
"int x = 1;",
"x",
"1",
"x <= 13",
"x",
"13",
"x++",
"x++",
"x",
"{\n\t\t\tif(D[x] > 0){\n\t\t\t\tSystem.out.println(\"D \" + D[x]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(D[x] > 0){\n\t\t\t\tSystem.out.println(\"D \" + D[x]);\n\t\t\t}\n\t\t}",
"if(D[x] > 0){\n\t\t\t\tSystem.out.println(\"D \" + D[x]);\n\t\t\t}",
"D[x] > 0",
"D[x]",
"D",
"x",
"0",
"{\n\t\t\t\tSystem.out.println(\"D \" + D[x]);\n\t\t\t}",
"System.out.println(\"D \" + D[x])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \" + D[x]",
"\"D \"",
"D[x]",
"D",
"x",
"public static void main(String[] args) {\n\n\t\tnew Main().kami();\n\t}",
"main",
"{\n\n\t\tnew Main().kami();\n\t}",
"new Main().kami()",
"new Main().kami",
"new Main()",
"String[] args",
"args"
] | import java.util.Scanner;
class Main {
private static int[] S = {0,1,2,3,4,5,6,7,8,9,10,11,12,13};
private static int[] H = {0,1,2,3,4,5,6,7,8,9,10,11,12,13};
private static int[] C = {0,1,2,3,4,5,6,7,8,9,10,11,12,13};
private static int[] D = {0,1,2,3,4,5,6,7,8,9,10,11,12,13};
public void kami() {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for(int i = 1; i <= n; i++){
String j = sc.next();
if(j.equals("S")){
int J = sc.nextInt();
switch(J){
case 1:
S[J] = S[J] - J;
case 2:
S[J] = S[J] - J;
case 3:
S[J] = S[J] - J;
case 4:
S[J] = S[J] - J;
case 5:
S[J] = S[J] - J;
case 6:
S[J] = S[J] - J;
case 7:
S[J] = S[J] - J;
case 8:
S[J] = S[J] - J;
case 9:
S[J] = S[J] - J;
case 10:
S[J] = S[J] - J;
case 11:
S[J] = S[J] - J;
case 12:
S[J] = S[J] - J;
case 13:
S[J] = S[J] - J;
}
}else if(j.equals("H")){
int J = sc.nextInt();
switch(J){
case 1:
H[J] = H[J] - J;
case 2:
H[J] = H[J] - J;
case 3:
H[J] = H[J] - J;
case 4:
H[J] = H[J] - J;
case 5:
H[J] = H[J] - J;
case 6:
H[J] = H[J] - J;
case 7:
H[J] = H[J] - J;
case 8:
H[J] = H[J] - J;
case 9:
H[J] = H[J] - J;
case 10:
H[J] = H[J] - J;
case 11:
H[J] = H[J] - J;
case 12:
H[J] = H[J] - J;
case 13:
H[J] = H[J] - J;
}
}else if(j.equals("C")){
int J = sc.nextInt();
switch(J){
case 1:
C[J] = C[J] - J;
case 2:
C[J] = C[J] - J;
case 3:
C[J] = C[J] - J;
case 4:
C[J] = C[J] - J;
case 5:
C[J] = C[J] - J;
case 6:
C[J] = C[J] - J;
case 7:
C[J] = C[J] - J;
case 8:
C[J] = C[J] - J;
case 9:
C[J] = C[J] - J;
case 10:
C[J] = C[J] - J;
case 11:
C[J] = C[J] - J;
case 12:
C[J] = C[J] - J;
case 13:
C[J] = C[J] - J;
}
}else if(j.equals("D")){
int J = sc.nextInt();
switch(J){
case 1:
D[J] = D[J] - J;
case 2:
D[J] = D[J] - J;
case 3:
D[J] = D[J] - J;
case 4:
D[J] = D[J] - J;
case 5:
D[J] = D[J] - J;
case 6:
D[J] = D[J] - J;
case 7:
D[J] = D[J] - J;
case 8:
D[J] = D[J] - J;
case 9:
D[J] = D[J] - J;
case 10:
D[J] = D[J] - J;
case 11:
D[J] = D[J] - J;
case 12:
D[J] = D[J] - J;
case 13:
D[J] = D[J] - J;
}
}
}
for(int x = 1; x <= 13; x++){
if(S[x] > 0){
System.out.println("S " + S[x]);
}
}
for(int x = 1; x <= 13; x++){
if(H[x] > 0){
System.out.println("H " + H[x]);
}
}
for(int x = 1; x <= 13; x++){
if(C[x] > 0){
System.out.println("C " + C[x]);
}
}
for(int x = 1; x <= 13; x++){
if(D[x] > 0){
System.out.println("D " + D[x]);
}
}
}
public static void main(String[] args) {
new Main().kami();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
20,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
13,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
13,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
13,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
13,
17,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
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
],
[
187,
8
],
[
187,
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
],
[
11,
22
],
[
22,
23
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
11,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
52,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
58,
64
],
[
52,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
65,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
71,
77
],
[
65,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
78,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
84,
90
],
[
78,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
91,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
97,
103
],
[
11,
104
],
[
104,
105
],
[
105,
106
],
[
11,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
107,
115
],
[
115,
116
],
[
116,
117
],
[
107,
118
],
[
119,
119
],
[
119,
120
],
[
120,
121
],
[
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
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
134,
140
],
[
133,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
142,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
146,
151
],
[
142,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
156,
161
],
[
152,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
166,
171
],
[
162,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
172,
177
],
[
141,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
178,
183
],
[
9,
184
],
[
184,
185
],
[
0,
186
],
[
186,
187
],
[
186,
188
]
] | [
"import java.io.IOException;\nimport java.util.Scanner;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t//File fi=new File(\"file.txt\");\n\n\t\tScanner sc=new Scanner(System.in);\n\t\tint t=sc.nextInt();\n\t\t String type;\n\t\t int x;\n\t\t int[][] tp=new int[4][14];\n\t\tfor(int i=0;i<t;i++){\n\t\t\ttype=sc.next();\n\t\t\tx=sc.nextInt();\n\t\t\tif(type.equals(\"S\")){tp[0][x]=1;}\n\t\t\telse if(type.equals(\"H\")){tp[1][x]=1;}\n\t\t\telse if(type.equals(\"C\")){tp[2][x]=1;}\n\t\t\telse if(type.equals(\"D\")){tp[3][x]=1;}\n\t\t\t\n\t\t}sc.close();\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int l = 1;l<14;l++){\n\t\t\t\tif(tp[i][l]==0){\n\t\t\t\t\tif(i==0)System.out.print(\"S \");\n\t\t\t\t\telse if(i==1)System.out.print(\"H \");\n\t\t\t\t\telse if(i==2)System.out.print(\"C \");\n\t\t\t\t\telse System.out.print(\"D \");\n\t\t\t\t\tSystem.out.println(l);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t// TODO 自動生成されたメソッド・スタブ\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\t//File fi=new File(\"file.txt\");\n\n\t\tScanner sc=new Scanner(System.in);\n\t\tint t=sc.nextInt();\n\t\t String type;\n\t\t int x;\n\t\t int[][] tp=new int[4][14];\n\t\tfor(int i=0;i<t;i++){\n\t\t\ttype=sc.next();\n\t\t\tx=sc.nextInt();\n\t\t\tif(type.equals(\"S\")){tp[0][x]=1;}\n\t\t\telse if(type.equals(\"H\")){tp[1][x]=1;}\n\t\t\telse if(type.equals(\"C\")){tp[2][x]=1;}\n\t\t\telse if(type.equals(\"D\")){tp[3][x]=1;}\n\t\t\t\n\t\t}sc.close();\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int l = 1;l<14;l++){\n\t\t\t\tif(tp[i][l]==0){\n\t\t\t\t\tif(i==0)System.out.print(\"S \");\n\t\t\t\t\telse if(i==1)System.out.print(\"H \");\n\t\t\t\t\telse if(i==2)System.out.print(\"C \");\n\t\t\t\t\telse System.out.print(\"D \");\n\t\t\t\t\tSystem.out.println(l);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\t//File fi=new File(\"file.txt\");\n\n\t\tScanner sc=new Scanner(System.in);\n\t\tint t=sc.nextInt();\n\t\t String type;\n\t\t int x;\n\t\t int[][] tp=new int[4][14];\n\t\tfor(int i=0;i<t;i++){\n\t\t\ttype=sc.next();\n\t\t\tx=sc.nextInt();\n\t\t\tif(type.equals(\"S\")){tp[0][x]=1;}\n\t\t\telse if(type.equals(\"H\")){tp[1][x]=1;}\n\t\t\telse if(type.equals(\"C\")){tp[2][x]=1;}\n\t\t\telse if(type.equals(\"D\")){tp[3][x]=1;}\n\t\t\t\n\t\t}sc.close();\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int l = 1;l<14;l++){\n\t\t\t\tif(tp[i][l]==0){\n\t\t\t\t\tif(i==0)System.out.print(\"S \");\n\t\t\t\t\telse if(i==1)System.out.print(\"H \");\n\t\t\t\t\telse if(i==2)System.out.print(\"C \");\n\t\t\t\t\telse System.out.print(\"D \");\n\t\t\t\t\tSystem.out.println(l);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t}",
"main",
"{\n\t\t//File fi=new File(\"file.txt\");\n\n\t\tScanner sc=new Scanner(System.in);\n\t\tint t=sc.nextInt();\n\t\t String type;\n\t\t int x;\n\t\t int[][] tp=new int[4][14];\n\t\tfor(int i=0;i<t;i++){\n\t\t\ttype=sc.next();\n\t\t\tx=sc.nextInt();\n\t\t\tif(type.equals(\"S\")){tp[0][x]=1;}\n\t\t\telse if(type.equals(\"H\")){tp[1][x]=1;}\n\t\t\telse if(type.equals(\"C\")){tp[2][x]=1;}\n\t\t\telse if(type.equals(\"D\")){tp[3][x]=1;}\n\t\t\t\n\t\t}sc.close();\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int l = 1;l<14;l++){\n\t\t\t\tif(tp[i][l]==0){\n\t\t\t\t\tif(i==0)System.out.print(\"S \");\n\t\t\t\t\telse if(i==1)System.out.print(\"H \");\n\t\t\t\t\telse if(i==2)System.out.print(\"C \");\n\t\t\t\t\telse System.out.print(\"D \");\n\t\t\t\t\tSystem.out.println(l);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int t=sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String type;",
"type",
"int x;",
"x",
"int[][] tp=new int[4][14];",
"tp",
"new int[4][14]",
"4",
"14",
"for(int i=0;i<t;i++){\n\t\t\ttype=sc.next();\n\t\t\tx=sc.nextInt();\n\t\t\tif(type.equals(\"S\")){tp[0][x]=1;}\n\t\t\telse if(type.equals(\"H\")){tp[1][x]=1;}\n\t\t\telse if(type.equals(\"C\")){tp[2][x]=1;}\n\t\t\telse if(type.equals(\"D\")){tp[3][x]=1;}\n\t\t\t\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<t",
"i",
"t",
"i++",
"i++",
"i",
"{\n\t\t\ttype=sc.next();\n\t\t\tx=sc.nextInt();\n\t\t\tif(type.equals(\"S\")){tp[0][x]=1;}\n\t\t\telse if(type.equals(\"H\")){tp[1][x]=1;}\n\t\t\telse if(type.equals(\"C\")){tp[2][x]=1;}\n\t\t\telse if(type.equals(\"D\")){tp[3][x]=1;}\n\t\t\t\n\t\t}",
"{\n\t\t\ttype=sc.next();\n\t\t\tx=sc.nextInt();\n\t\t\tif(type.equals(\"S\")){tp[0][x]=1;}\n\t\t\telse if(type.equals(\"H\")){tp[1][x]=1;}\n\t\t\telse if(type.equals(\"C\")){tp[2][x]=1;}\n\t\t\telse if(type.equals(\"D\")){tp[3][x]=1;}\n\t\t\t\n\t\t}",
"type=sc.next()",
"type",
"sc.next()",
"sc.next",
"sc",
"x=sc.nextInt()",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(type.equals(\"S\")){tp[0][x]=1;}\n\t\t\telse if(type.equals(\"H\")){tp[1][x]=1;}\n\t\t\telse if(type.equals(\"C\")){tp[2][x]=1;}\n\t\t\telse if(type.equals(\"D\")){tp[3][x]=1;}",
"type.equals(\"S\")",
"type.equals",
"type",
"\"S\"",
"{tp[0][x]=1;}",
"tp[0][x]=1",
"tp[0][x]",
"tp[0]",
"tp",
"0",
"x",
"1",
"if(type.equals(\"H\")){tp[1][x]=1;}\n\t\t\telse if(type.equals(\"C\")){tp[2][x]=1;}\n\t\t\telse if(type.equals(\"D\")){tp[3][x]=1;}",
"type.equals(\"H\")",
"type.equals",
"type",
"\"H\"",
"{tp[1][x]=1;}",
"tp[1][x]=1",
"tp[1][x]",
"tp[1]",
"tp",
"1",
"x",
"1",
"if(type.equals(\"C\")){tp[2][x]=1;}\n\t\t\telse if(type.equals(\"D\")){tp[3][x]=1;}",
"type.equals(\"C\")",
"type.equals",
"type",
"\"C\"",
"{tp[2][x]=1;}",
"tp[2][x]=1",
"tp[2][x]",
"tp[2]",
"tp",
"2",
"x",
"1",
"if(type.equals(\"D\")){tp[3][x]=1;}",
"type.equals(\"D\")",
"type.equals",
"type",
"\"D\"",
"{tp[3][x]=1;}",
"tp[3][x]=1",
"tp[3][x]",
"tp[3]",
"tp",
"3",
"x",
"1",
"sc.close()",
"sc.close",
"sc",
"for(int i=0;i<4;i++){\n\t\t\tfor(int l = 1;l<14;l++){\n\t\t\t\tif(tp[i][l]==0){\n\t\t\t\t\tif(i==0)System.out.print(\"S \");\n\t\t\t\t\telse if(i==1)System.out.print(\"H \");\n\t\t\t\t\telse if(i==2)System.out.print(\"C \");\n\t\t\t\t\telse System.out.print(\"D \");\n\t\t\t\t\tSystem.out.println(l);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int l = 1;l<14;l++){\n\t\t\t\tif(tp[i][l]==0){\n\t\t\t\t\tif(i==0)System.out.print(\"S \");\n\t\t\t\t\telse if(i==1)System.out.print(\"H \");\n\t\t\t\t\telse if(i==2)System.out.print(\"C \");\n\t\t\t\t\telse System.out.print(\"D \");\n\t\t\t\t\tSystem.out.println(l);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int l = 1;l<14;l++){\n\t\t\t\tif(tp[i][l]==0){\n\t\t\t\t\tif(i==0)System.out.print(\"S \");\n\t\t\t\t\telse if(i==1)System.out.print(\"H \");\n\t\t\t\t\telse if(i==2)System.out.print(\"C \");\n\t\t\t\t\telse System.out.print(\"D \");\n\t\t\t\t\tSystem.out.println(l);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int l = 1;l<14;l++){\n\t\t\t\tif(tp[i][l]==0){\n\t\t\t\t\tif(i==0)System.out.print(\"S \");\n\t\t\t\t\telse if(i==1)System.out.print(\"H \");\n\t\t\t\t\telse if(i==2)System.out.print(\"C \");\n\t\t\t\t\telse System.out.print(\"D \");\n\t\t\t\t\tSystem.out.println(l);\n\t\t\t\t}\n\t\t\t}",
"int l = 1;",
"int l = 1;",
"l",
"1",
"l<14",
"l",
"14",
"l++",
"l++",
"l",
"{\n\t\t\t\tif(tp[i][l]==0){\n\t\t\t\t\tif(i==0)System.out.print(\"S \");\n\t\t\t\t\telse if(i==1)System.out.print(\"H \");\n\t\t\t\t\telse if(i==2)System.out.print(\"C \");\n\t\t\t\t\telse System.out.print(\"D \");\n\t\t\t\t\tSystem.out.println(l);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(tp[i][l]==0){\n\t\t\t\t\tif(i==0)System.out.print(\"S \");\n\t\t\t\t\telse if(i==1)System.out.print(\"H \");\n\t\t\t\t\telse if(i==2)System.out.print(\"C \");\n\t\t\t\t\telse System.out.print(\"D \");\n\t\t\t\t\tSystem.out.println(l);\n\t\t\t\t}\n\t\t\t}",
"if(tp[i][l]==0){\n\t\t\t\t\tif(i==0)System.out.print(\"S \");\n\t\t\t\t\telse if(i==1)System.out.print(\"H \");\n\t\t\t\t\telse if(i==2)System.out.print(\"C \");\n\t\t\t\t\telse System.out.print(\"D \");\n\t\t\t\t\tSystem.out.println(l);\n\t\t\t\t}",
"tp[i][l]==0",
"tp[i][l]",
"tp[i]",
"tp",
"i",
"l",
"0",
"{\n\t\t\t\t\tif(i==0)System.out.print(\"S \");\n\t\t\t\t\telse if(i==1)System.out.print(\"H \");\n\t\t\t\t\telse if(i==2)System.out.print(\"C \");\n\t\t\t\t\telse System.out.print(\"D \");\n\t\t\t\t\tSystem.out.println(l);\n\t\t\t\t}",
"if(i==0)System.out.print(\"S \");\n\t\t\t\t\telse if(i==1)System.out.print(\"H \");\n\t\t\t\t\telse if(i==2)System.out.print(\"C \");\n\t\t\t\t\telse System.out.print(\"D \");",
"i==0",
"i",
"0",
"System.out.print(\"S \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"S \"",
"if(i==1)System.out.print(\"H \");\n\t\t\t\t\telse if(i==2)System.out.print(\"C \");\n\t\t\t\t\telse System.out.print(\"D \");",
"i==1",
"i",
"1",
"System.out.print(\"H \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"H \"",
"if(i==2)System.out.print(\"C \");\n\t\t\t\t\telse System.out.print(\"D \");",
"i==2",
"i",
"2",
"System.out.print(\"C \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"C \"",
"System.out.print(\"D \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"D \"",
"System.out.println(l)",
"System.out.println",
"System.out",
"System",
"System.out",
"l",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t//File fi=new File(\"file.txt\");\n\n\t\tScanner sc=new Scanner(System.in);\n\t\tint t=sc.nextInt();\n\t\t String type;\n\t\t int x;\n\t\t int[][] tp=new int[4][14];\n\t\tfor(int i=0;i<t;i++){\n\t\t\ttype=sc.next();\n\t\t\tx=sc.nextInt();\n\t\t\tif(type.equals(\"S\")){tp[0][x]=1;}\n\t\t\telse if(type.equals(\"H\")){tp[1][x]=1;}\n\t\t\telse if(type.equals(\"C\")){tp[2][x]=1;}\n\t\t\telse if(type.equals(\"D\")){tp[3][x]=1;}\n\t\t\t\n\t\t}sc.close();\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int l = 1;l<14;l++){\n\t\t\t\tif(tp[i][l]==0){\n\t\t\t\t\tif(i==0)System.out.print(\"S \");\n\t\t\t\t\telse if(i==1)System.out.print(\"H \");\n\t\t\t\t\telse if(i==2)System.out.print(\"C \");\n\t\t\t\t\telse System.out.print(\"D \");\n\t\t\t\t\tSystem.out.println(l);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t//File fi=new File(\"file.txt\");\n\n\t\tScanner sc=new Scanner(System.in);\n\t\tint t=sc.nextInt();\n\t\t String type;\n\t\t int x;\n\t\t int[][] tp=new int[4][14];\n\t\tfor(int i=0;i<t;i++){\n\t\t\ttype=sc.next();\n\t\t\tx=sc.nextInt();\n\t\t\tif(type.equals(\"S\")){tp[0][x]=1;}\n\t\t\telse if(type.equals(\"H\")){tp[1][x]=1;}\n\t\t\telse if(type.equals(\"C\")){tp[2][x]=1;}\n\t\t\telse if(type.equals(\"D\")){tp[3][x]=1;}\n\t\t\t\n\t\t}sc.close();\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int l = 1;l<14;l++){\n\t\t\t\tif(tp[i][l]==0){\n\t\t\t\t\tif(i==0)System.out.print(\"S \");\n\t\t\t\t\telse if(i==1)System.out.print(\"H \");\n\t\t\t\t\telse if(i==2)System.out.print(\"C \");\n\t\t\t\t\telse System.out.print(\"D \");\n\t\t\t\t\tSystem.out.println(l);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t// TODO 自動生成されたメソッド・スタブ\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 {
//File fi=new File("file.txt");
Scanner sc=new Scanner(System.in);
int t=sc.nextInt();
String type;
int x;
int[][] tp=new int[4][14];
for(int i=0;i<t;i++){
type=sc.next();
x=sc.nextInt();
if(type.equals("S")){tp[0][x]=1;}
else if(type.equals("H")){tp[1][x]=1;}
else if(type.equals("C")){tp[2][x]=1;}
else if(type.equals("D")){tp[3][x]=1;}
}sc.close();
for(int i=0;i<4;i++){
for(int l = 1;l<14;l++){
if(tp[i][l]==0){
if(i==0)System.out.print("S ");
else if(i==1)System.out.print("H ");
else if(i==2)System.out.print("C ");
else System.out.print("D ");
System.out.println(l);
}
}
}
// TODO 自動生成されたメソッド・スタブ
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
20,
17,
41,
13,
20,
41,
13,
20,
0,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
17,
14,
4,
18,
18,
13,
17,
17,
30,
0,
13,
2,
18,
18,
13,
13,
13,
17,
14,
4,
18,
18,
13,
17,
17,
30,
0,
13,
2,
18,
18,
13,
13,
13,
17,
14,
4,
18,
18,
13,
17,
17,
30,
0,
13,
2,
18,
18,
13,
13,
13,
17,
30,
0,
13,
2,
18,
18,
13,
13,
13,
17,
0,
18,
13,
2,
2,
4,
18,
13,
18,
13,
17,
13,
17,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
41,
13,
14,
2,
2,
13,
17,
18,
18,
13,
13,
13,
30,
0,
13,
17,
14,
2,
2,
13,
17,
18,
18,
13,
13,
13,
30,
0,
13,
17,
14,
2,
2,
13,
17,
18,
18,
13,
13,
13,
30,
0,
13,
17,
30,
0,
13,
17,
14,
2,
2,
2,
13,
17,
17,
17,
30,
0,
13,
17,
30,
0,
13,
2,
2,
13,
17,
17,
4,
18,
13,
2,
2,
2,
13,
17,
13,
17,
14,
2,
4,
18,
13,
17,
30,
4,
18,
13,
2,
4,
18,
13,
17,
4,
18,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
12,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
291,
11
],
[
291,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
14,
19
],
[
19,
20
],
[
14,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
27
],
[
27,
28
],
[
27,
29
],
[
14,
30
],
[
30,
31
],
[
30,
32
],
[
14,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
38,
39
],
[
39,
40
],
[
14,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
56,
61
],
[
53,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
62,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
72,
78
],
[
62,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
79,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
89,
95
],
[
79,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
96,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
106,
112
],
[
96,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
116,
122
],
[
53,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
128,
131
],
[
131,
132
],
[
131,
133
],
[
127,
134
],
[
126,
135
],
[
123,
136
],
[
136,
137
],
[
136,
138
],
[
14,
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
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
161,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
161,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
176,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
180,
184
],
[
175,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
175,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
190,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
194,
198
],
[
189,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
189,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
158,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
209,
213
],
[
208,
214
],
[
207,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
207,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
222,
226
],
[
158,
227
],
[
227,
228
],
[
228,
229
],
[
227,
230
],
[
232,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
231,
235
],
[
232,
236
],
[
14,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
238,
242
],
[
237,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
244,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
247,
251
],
[
244,
252
],
[
252,
253
],
[
253,
254
],
[
243,
255
],
[
255,
256
],
[
256,
257
],
[
257,
258
],
[
257,
259
],
[
255,
260
],
[
14,
261
],
[
261,
262
],
[
262,
263
],
[
12,
264
],
[
264,
265
],
[
291,
266
],
[
266,
267
],
[
266,
268
],
[
268,
269
],
[
266,
270
],
[
270,
271
],
[
266,
272
],
[
272,
273
],
[
266,
274
],
[
274,
275
],
[
266,
276
],
[
276,
277
],
[
266,
278
],
[
278,
279
],
[
278,
280
],
[
280,
281
],
[
281,
282
],
[
282,
283
],
[
282,
284
],
[
281,
285
],
[
278,
286
],
[
286,
287
],
[
266,
288
],
[
266,
289
],
[
0,
290
],
[
290,
291
],
[
290,
292
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tenum priorityFigure{\n\t\tS(0),H(1),C(2),D(3);\n\n\t\tprivate int priority;\n\t\tprivate priorityFigure(int priority){\n\t\t\tthis.priority = priority;\n\t\t}\n\t}\n\tpublic static void main(String[] args) throws IOException{\n\t\tint num, insertionPoint;\n\t\tString[] str, list;\n\t\tlist = new String[52];\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tnum = Integer.parseInt(br.readLine());\n\t\tfor(int i = 0; i < num; i++){\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tif(str[0].equals(\"S\")){\n\t\t\t\tinsertionPoint = priorityFigure.S.priority * 13;\n\t\t\t}else if(str[0].equals(\"H\")){\n\t\t\t\tinsertionPoint = priorityFigure.H.priority * 13;\n\t\t\t}else if(str[0].equals(\"C\")){\n\t\t\t\tinsertionPoint = priorityFigure.C.priority * 13;\n\t\t\t}else{\n\t\t\t\tinsertionPoint = priorityFigure.D.priority * 13;\n\t\t\t}\n\t\t\tlist[Integer.parseInt(str[1]) + insertionPoint - 1] = str[1];\n\t\t}\n\t\tfor(int i = 0; i < 52; i++){\n\t\t\tif(list[i] == null){\n\t\t\t\tString figure;\n\t\t\t\tif(i / 13 == priorityFigure.S.priority){\n\t\t\t\t\tfigure = \"S\";\n\t\t\t\t}else if(i / 13 == priorityFigure.H.priority){\n\t\t\t\t\tfigure = \"H\";\n\t\t\t\t}else if(i / 13 == priorityFigure.C.priority){\n\t\t\t\t\tfigure = \"C\";\n\t\t\t\t}else{\n\t\t\t\t\tfigure = \"D\";\n\t\t\t\t}\n\t\t\t\tif((i + 1) % 13 == 0){\n\t\t\t\t\tnum = 13;\n\t\t\t\t}else{\n\t\t\t\t\tnum =(i + 1) % 13;\n\t\t\t\t}\n\t\t\t\tbuilder.append(figure + \" \" + num + \"\\n\");\n\t\t\t}\n\t\t}\n\t\tif(builder.length()!=0){\n\t\t\tbuilder.delete(builder.length() - 1, builder.length());\n\t\t\tSystem.out.println(builder);\n\t\t}\n\t\tbr.close();\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tenum priorityFigure{\n\t\tS(0),H(1),C(2),D(3);\n\n\t\tprivate int priority;\n\t\tprivate priorityFigure(int priority){\n\t\t\tthis.priority = priority;\n\t\t}\n\t}\n\tpublic static void main(String[] args) throws IOException{\n\t\tint num, insertionPoint;\n\t\tString[] str, list;\n\t\tlist = new String[52];\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tnum = Integer.parseInt(br.readLine());\n\t\tfor(int i = 0; i < num; i++){\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tif(str[0].equals(\"S\")){\n\t\t\t\tinsertionPoint = priorityFigure.S.priority * 13;\n\t\t\t}else if(str[0].equals(\"H\")){\n\t\t\t\tinsertionPoint = priorityFigure.H.priority * 13;\n\t\t\t}else if(str[0].equals(\"C\")){\n\t\t\t\tinsertionPoint = priorityFigure.C.priority * 13;\n\t\t\t}else{\n\t\t\t\tinsertionPoint = priorityFigure.D.priority * 13;\n\t\t\t}\n\t\t\tlist[Integer.parseInt(str[1]) + insertionPoint - 1] = str[1];\n\t\t}\n\t\tfor(int i = 0; i < 52; i++){\n\t\t\tif(list[i] == null){\n\t\t\t\tString figure;\n\t\t\t\tif(i / 13 == priorityFigure.S.priority){\n\t\t\t\t\tfigure = \"S\";\n\t\t\t\t}else if(i / 13 == priorityFigure.H.priority){\n\t\t\t\t\tfigure = \"H\";\n\t\t\t\t}else if(i / 13 == priorityFigure.C.priority){\n\t\t\t\t\tfigure = \"C\";\n\t\t\t\t}else{\n\t\t\t\t\tfigure = \"D\";\n\t\t\t\t}\n\t\t\t\tif((i + 1) % 13 == 0){\n\t\t\t\t\tnum = 13;\n\t\t\t\t}else{\n\t\t\t\t\tnum =(i + 1) % 13;\n\t\t\t\t}\n\t\t\t\tbuilder.append(figure + \" \" + num + \"\\n\");\n\t\t\t}\n\t\t}\n\t\tif(builder.length()!=0){\n\t\t\tbuilder.delete(builder.length() - 1, builder.length());\n\t\t\tSystem.out.println(builder);\n\t\t}\n\t\tbr.close();\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\t\tint num, insertionPoint;\n\t\tString[] str, list;\n\t\tlist = new String[52];\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tnum = Integer.parseInt(br.readLine());\n\t\tfor(int i = 0; i < num; i++){\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tif(str[0].equals(\"S\")){\n\t\t\t\tinsertionPoint = priorityFigure.S.priority * 13;\n\t\t\t}else if(str[0].equals(\"H\")){\n\t\t\t\tinsertionPoint = priorityFigure.H.priority * 13;\n\t\t\t}else if(str[0].equals(\"C\")){\n\t\t\t\tinsertionPoint = priorityFigure.C.priority * 13;\n\t\t\t}else{\n\t\t\t\tinsertionPoint = priorityFigure.D.priority * 13;\n\t\t\t}\n\t\t\tlist[Integer.parseInt(str[1]) + insertionPoint - 1] = str[1];\n\t\t}\n\t\tfor(int i = 0; i < 52; i++){\n\t\t\tif(list[i] == null){\n\t\t\t\tString figure;\n\t\t\t\tif(i / 13 == priorityFigure.S.priority){\n\t\t\t\t\tfigure = \"S\";\n\t\t\t\t}else if(i / 13 == priorityFigure.H.priority){\n\t\t\t\t\tfigure = \"H\";\n\t\t\t\t}else if(i / 13 == priorityFigure.C.priority){\n\t\t\t\t\tfigure = \"C\";\n\t\t\t\t}else{\n\t\t\t\t\tfigure = \"D\";\n\t\t\t\t}\n\t\t\t\tif((i + 1) % 13 == 0){\n\t\t\t\t\tnum = 13;\n\t\t\t\t}else{\n\t\t\t\t\tnum =(i + 1) % 13;\n\t\t\t\t}\n\t\t\t\tbuilder.append(figure + \" \" + num + \"\\n\");\n\t\t\t}\n\t\t}\n\t\tif(builder.length()!=0){\n\t\t\tbuilder.delete(builder.length() - 1, builder.length());\n\t\t\tSystem.out.println(builder);\n\t\t}\n\t\tbr.close();\n\t}",
"main",
"{\n\t\tint num, insertionPoint;\n\t\tString[] str, list;\n\t\tlist = new String[52];\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tnum = Integer.parseInt(br.readLine());\n\t\tfor(int i = 0; i < num; i++){\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tif(str[0].equals(\"S\")){\n\t\t\t\tinsertionPoint = priorityFigure.S.priority * 13;\n\t\t\t}else if(str[0].equals(\"H\")){\n\t\t\t\tinsertionPoint = priorityFigure.H.priority * 13;\n\t\t\t}else if(str[0].equals(\"C\")){\n\t\t\t\tinsertionPoint = priorityFigure.C.priority * 13;\n\t\t\t}else{\n\t\t\t\tinsertionPoint = priorityFigure.D.priority * 13;\n\t\t\t}\n\t\t\tlist[Integer.parseInt(str[1]) + insertionPoint - 1] = str[1];\n\t\t}\n\t\tfor(int i = 0; i < 52; i++){\n\t\t\tif(list[i] == null){\n\t\t\t\tString figure;\n\t\t\t\tif(i / 13 == priorityFigure.S.priority){\n\t\t\t\t\tfigure = \"S\";\n\t\t\t\t}else if(i / 13 == priorityFigure.H.priority){\n\t\t\t\t\tfigure = \"H\";\n\t\t\t\t}else if(i / 13 == priorityFigure.C.priority){\n\t\t\t\t\tfigure = \"C\";\n\t\t\t\t}else{\n\t\t\t\t\tfigure = \"D\";\n\t\t\t\t}\n\t\t\t\tif((i + 1) % 13 == 0){\n\t\t\t\t\tnum = 13;\n\t\t\t\t}else{\n\t\t\t\t\tnum =(i + 1) % 13;\n\t\t\t\t}\n\t\t\t\tbuilder.append(figure + \" \" + num + \"\\n\");\n\t\t\t}\n\t\t}\n\t\tif(builder.length()!=0){\n\t\t\tbuilder.delete(builder.length() - 1, builder.length());\n\t\t\tSystem.out.println(builder);\n\t\t}\n\t\tbr.close();\n\t}",
"int num",
"num",
"insertionPoint;",
"insertionPoint",
"String[] str",
"str",
"list;",
"list",
"list = new String[52]",
"list",
"new String[52]",
"52",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder builder = new StringBuilder();",
"builder",
"new StringBuilder()",
"num = Integer.parseInt(br.readLine())",
"num",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int i = 0; i < num; i++){\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tif(str[0].equals(\"S\")){\n\t\t\t\tinsertionPoint = priorityFigure.S.priority * 13;\n\t\t\t}else if(str[0].equals(\"H\")){\n\t\t\t\tinsertionPoint = priorityFigure.H.priority * 13;\n\t\t\t}else if(str[0].equals(\"C\")){\n\t\t\t\tinsertionPoint = priorityFigure.C.priority * 13;\n\t\t\t}else{\n\t\t\t\tinsertionPoint = priorityFigure.D.priority * 13;\n\t\t\t}\n\t\t\tlist[Integer.parseInt(str[1]) + insertionPoint - 1] = str[1];\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tif(str[0].equals(\"S\")){\n\t\t\t\tinsertionPoint = priorityFigure.S.priority * 13;\n\t\t\t}else if(str[0].equals(\"H\")){\n\t\t\t\tinsertionPoint = priorityFigure.H.priority * 13;\n\t\t\t}else if(str[0].equals(\"C\")){\n\t\t\t\tinsertionPoint = priorityFigure.C.priority * 13;\n\t\t\t}else{\n\t\t\t\tinsertionPoint = priorityFigure.D.priority * 13;\n\t\t\t}\n\t\t\tlist[Integer.parseInt(str[1]) + insertionPoint - 1] = str[1];\n\t\t}",
"{\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tif(str[0].equals(\"S\")){\n\t\t\t\tinsertionPoint = priorityFigure.S.priority * 13;\n\t\t\t}else if(str[0].equals(\"H\")){\n\t\t\t\tinsertionPoint = priorityFigure.H.priority * 13;\n\t\t\t}else if(str[0].equals(\"C\")){\n\t\t\t\tinsertionPoint = priorityFigure.C.priority * 13;\n\t\t\t}else{\n\t\t\t\tinsertionPoint = priorityFigure.D.priority * 13;\n\t\t\t}\n\t\t\tlist[Integer.parseInt(str[1]) + insertionPoint - 1] = str[1];\n\t\t}",
"str = br.readLine().split(\" \")",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"if(str[0].equals(\"S\")){\n\t\t\t\tinsertionPoint = priorityFigure.S.priority * 13;\n\t\t\t}else if(str[0].equals(\"H\")){\n\t\t\t\tinsertionPoint = priorityFigure.H.priority * 13;\n\t\t\t}else if(str[0].equals(\"C\")){\n\t\t\t\tinsertionPoint = priorityFigure.C.priority * 13;\n\t\t\t}else{\n\t\t\t\tinsertionPoint = priorityFigure.D.priority * 13;\n\t\t\t}",
"str[0].equals(\"S\")",
"str[0].equals",
"str[0]",
"str",
"0",
"\"S\"",
"{\n\t\t\t\tinsertionPoint = priorityFigure.S.priority * 13;\n\t\t\t}",
"insertionPoint = priorityFigure.S.priority * 13",
"insertionPoint",
"priorityFigure.S.priority * 13",
"priorityFigure.S.priority",
"priorityFigure.S",
"priorityFigure",
"priorityFigure.S",
"priorityFigure.S.priority",
"13",
"if(str[0].equals(\"H\")){\n\t\t\t\tinsertionPoint = priorityFigure.H.priority * 13;\n\t\t\t}else if(str[0].equals(\"C\")){\n\t\t\t\tinsertionPoint = priorityFigure.C.priority * 13;\n\t\t\t}else{\n\t\t\t\tinsertionPoint = priorityFigure.D.priority * 13;\n\t\t\t}",
"str[0].equals(\"H\")",
"str[0].equals",
"str[0]",
"str",
"0",
"\"H\"",
"{\n\t\t\t\tinsertionPoint = priorityFigure.H.priority * 13;\n\t\t\t}",
"insertionPoint = priorityFigure.H.priority * 13",
"insertionPoint",
"priorityFigure.H.priority * 13",
"priorityFigure.H.priority",
"priorityFigure.H",
"priorityFigure",
"priorityFigure.H",
"priorityFigure.H.priority",
"13",
"if(str[0].equals(\"C\")){\n\t\t\t\tinsertionPoint = priorityFigure.C.priority * 13;\n\t\t\t}else{\n\t\t\t\tinsertionPoint = priorityFigure.D.priority * 13;\n\t\t\t}",
"str[0].equals(\"C\")",
"str[0].equals",
"str[0]",
"str",
"0",
"\"C\"",
"{\n\t\t\t\tinsertionPoint = priorityFigure.C.priority * 13;\n\t\t\t}",
"insertionPoint = priorityFigure.C.priority * 13",
"insertionPoint",
"priorityFigure.C.priority * 13",
"priorityFigure.C.priority",
"priorityFigure.C",
"priorityFigure",
"priorityFigure.C",
"priorityFigure.C.priority",
"13",
"{\n\t\t\t\tinsertionPoint = priorityFigure.D.priority * 13;\n\t\t\t}",
"insertionPoint = priorityFigure.D.priority * 13",
"insertionPoint",
"priorityFigure.D.priority * 13",
"priorityFigure.D.priority",
"priorityFigure.D",
"priorityFigure",
"priorityFigure.D",
"priorityFigure.D.priority",
"13",
"list[Integer.parseInt(str[1]) + insertionPoint - 1] = str[1]",
"list[Integer.parseInt(str[1]) + insertionPoint - 1]",
"list",
"Integer.parseInt(str[1]) + insertionPoint - 1",
"Integer.parseInt(str[1]) + insertionPoint",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"insertionPoint",
"1",
"str[1]",
"str",
"1",
"for(int i = 0; i < 52; i++){\n\t\t\tif(list[i] == null){\n\t\t\t\tString figure;\n\t\t\t\tif(i / 13 == priorityFigure.S.priority){\n\t\t\t\t\tfigure = \"S\";\n\t\t\t\t}else if(i / 13 == priorityFigure.H.priority){\n\t\t\t\t\tfigure = \"H\";\n\t\t\t\t}else if(i / 13 == priorityFigure.C.priority){\n\t\t\t\t\tfigure = \"C\";\n\t\t\t\t}else{\n\t\t\t\t\tfigure = \"D\";\n\t\t\t\t}\n\t\t\t\tif((i + 1) % 13 == 0){\n\t\t\t\t\tnum = 13;\n\t\t\t\t}else{\n\t\t\t\t\tnum =(i + 1) % 13;\n\t\t\t\t}\n\t\t\t\tbuilder.append(figure + \" \" + num + \"\\n\");\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 52",
"i",
"52",
"i++",
"i++",
"i",
"{\n\t\t\tif(list[i] == null){\n\t\t\t\tString figure;\n\t\t\t\tif(i / 13 == priorityFigure.S.priority){\n\t\t\t\t\tfigure = \"S\";\n\t\t\t\t}else if(i / 13 == priorityFigure.H.priority){\n\t\t\t\t\tfigure = \"H\";\n\t\t\t\t}else if(i / 13 == priorityFigure.C.priority){\n\t\t\t\t\tfigure = \"C\";\n\t\t\t\t}else{\n\t\t\t\t\tfigure = \"D\";\n\t\t\t\t}\n\t\t\t\tif((i + 1) % 13 == 0){\n\t\t\t\t\tnum = 13;\n\t\t\t\t}else{\n\t\t\t\t\tnum =(i + 1) % 13;\n\t\t\t\t}\n\t\t\t\tbuilder.append(figure + \" \" + num + \"\\n\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(list[i] == null){\n\t\t\t\tString figure;\n\t\t\t\tif(i / 13 == priorityFigure.S.priority){\n\t\t\t\t\tfigure = \"S\";\n\t\t\t\t}else if(i / 13 == priorityFigure.H.priority){\n\t\t\t\t\tfigure = \"H\";\n\t\t\t\t}else if(i / 13 == priorityFigure.C.priority){\n\t\t\t\t\tfigure = \"C\";\n\t\t\t\t}else{\n\t\t\t\t\tfigure = \"D\";\n\t\t\t\t}\n\t\t\t\tif((i + 1) % 13 == 0){\n\t\t\t\t\tnum = 13;\n\t\t\t\t}else{\n\t\t\t\t\tnum =(i + 1) % 13;\n\t\t\t\t}\n\t\t\t\tbuilder.append(figure + \" \" + num + \"\\n\");\n\t\t\t}\n\t\t}",
"if(list[i] == null){\n\t\t\t\tString figure;\n\t\t\t\tif(i / 13 == priorityFigure.S.priority){\n\t\t\t\t\tfigure = \"S\";\n\t\t\t\t}else if(i / 13 == priorityFigure.H.priority){\n\t\t\t\t\tfigure = \"H\";\n\t\t\t\t}else if(i / 13 == priorityFigure.C.priority){\n\t\t\t\t\tfigure = \"C\";\n\t\t\t\t}else{\n\t\t\t\t\tfigure = \"D\";\n\t\t\t\t}\n\t\t\t\tif((i + 1) % 13 == 0){\n\t\t\t\t\tnum = 13;\n\t\t\t\t}else{\n\t\t\t\t\tnum =(i + 1) % 13;\n\t\t\t\t}\n\t\t\t\tbuilder.append(figure + \" \" + num + \"\\n\");\n\t\t\t}",
"list[i] == null",
"list[i]",
"list",
"i",
"null",
"{\n\t\t\t\tString figure;\n\t\t\t\tif(i / 13 == priorityFigure.S.priority){\n\t\t\t\t\tfigure = \"S\";\n\t\t\t\t}else if(i / 13 == priorityFigure.H.priority){\n\t\t\t\t\tfigure = \"H\";\n\t\t\t\t}else if(i / 13 == priorityFigure.C.priority){\n\t\t\t\t\tfigure = \"C\";\n\t\t\t\t}else{\n\t\t\t\t\tfigure = \"D\";\n\t\t\t\t}\n\t\t\t\tif((i + 1) % 13 == 0){\n\t\t\t\t\tnum = 13;\n\t\t\t\t}else{\n\t\t\t\t\tnum =(i + 1) % 13;\n\t\t\t\t}\n\t\t\t\tbuilder.append(figure + \" \" + num + \"\\n\");\n\t\t\t}",
"String figure;",
"figure",
"if(i / 13 == priorityFigure.S.priority){\n\t\t\t\t\tfigure = \"S\";\n\t\t\t\t}else if(i / 13 == priorityFigure.H.priority){\n\t\t\t\t\tfigure = \"H\";\n\t\t\t\t}else if(i / 13 == priorityFigure.C.priority){\n\t\t\t\t\tfigure = \"C\";\n\t\t\t\t}else{\n\t\t\t\t\tfigure = \"D\";\n\t\t\t\t}",
"i / 13 == priorityFigure.S.priority",
"i / 13",
"i",
"13",
"priorityFigure.S.priority",
"priorityFigure.S",
"priorityFigure",
"priorityFigure.S",
"priorityFigure.S.priority",
"{\n\t\t\t\t\tfigure = \"S\";\n\t\t\t\t}",
"figure = \"S\"",
"figure",
"\"S\"",
"if(i / 13 == priorityFigure.H.priority){\n\t\t\t\t\tfigure = \"H\";\n\t\t\t\t}else if(i / 13 == priorityFigure.C.priority){\n\t\t\t\t\tfigure = \"C\";\n\t\t\t\t}else{\n\t\t\t\t\tfigure = \"D\";\n\t\t\t\t}",
"i / 13 == priorityFigure.H.priority",
"i / 13",
"i",
"13",
"priorityFigure.H.priority",
"priorityFigure.H",
"priorityFigure",
"priorityFigure.H",
"priorityFigure.H.priority",
"{\n\t\t\t\t\tfigure = \"H\";\n\t\t\t\t}",
"figure = \"H\"",
"figure",
"\"H\"",
"if(i / 13 == priorityFigure.C.priority){\n\t\t\t\t\tfigure = \"C\";\n\t\t\t\t}else{\n\t\t\t\t\tfigure = \"D\";\n\t\t\t\t}",
"i / 13 == priorityFigure.C.priority",
"i / 13",
"i",
"13",
"priorityFigure.C.priority",
"priorityFigure.C",
"priorityFigure",
"priorityFigure.C",
"priorityFigure.C.priority",
"{\n\t\t\t\t\tfigure = \"C\";\n\t\t\t\t}",
"figure = \"C\"",
"figure",
"\"C\"",
"{\n\t\t\t\t\tfigure = \"D\";\n\t\t\t\t}",
"figure = \"D\"",
"figure",
"\"D\"",
"if((i + 1) % 13 == 0){\n\t\t\t\t\tnum = 13;\n\t\t\t\t}else{\n\t\t\t\t\tnum =(i + 1) % 13;\n\t\t\t\t}",
"(i + 1) % 13 == 0",
"(i + 1) % 13",
"(i + 1)",
"i",
"1",
"13",
"0",
"{\n\t\t\t\t\tnum = 13;\n\t\t\t\t}",
"num = 13",
"num",
"13",
"{\n\t\t\t\t\tnum =(i + 1) % 13;\n\t\t\t\t}",
"num =(i + 1) % 13",
"num",
"(i + 1) % 13",
"(i + 1)",
"i",
"1",
"13",
"builder.append(figure + \" \" + num + \"\\n\")",
"builder.append",
"builder",
"figure + \" \" + num + \"\\n\"",
"num",
"figure + \" \" + num + \"\\n\"",
"figure",
"\" \"",
"num",
"\"\\n\"",
"if(builder.length()!=0){\n\t\t\tbuilder.delete(builder.length() - 1, builder.length());\n\t\t\tSystem.out.println(builder);\n\t\t}",
"builder.length()!=0",
"builder.length()",
"builder.length",
"builder",
"0",
"{\n\t\t\tbuilder.delete(builder.length() - 1, builder.length());\n\t\t\tSystem.out.println(builder);\n\t\t}",
"builder.delete(builder.length() - 1, builder.length())",
"builder.delete",
"builder",
"builder.length() - 1",
"builder.length()",
"builder.length",
"builder",
"1",
"builder.length()",
"builder.length",
"builder",
"System.out.println(builder)",
"System.out.println",
"System.out",
"System",
"System.out",
"builder",
"br.close()",
"br.close",
"br",
"String[] args",
"args",
"enum priorityFigure{\n\t\tS(0),H(1),C(2),D(3);\n\n\t\tprivate int priority;\n\t\tprivate priorityFigure(int priority){\n\t\t\tthis.priority = priority;\n\t\t}\n\t}",
"priorityFigure",
"S(0)",
"S",
"H(1)",
"H",
"C(2)",
"C",
"D(3)",
"D",
"private int priority;",
"priority",
"private priorityFigure(int priority){\n\t\t\tthis.priority = priority;\n\t\t}",
"priorityFigure",
"{\n\t\t\tthis.priority = priority;\n\t\t}",
"this.priority = priority",
"this.priority",
"this",
"this.priority",
"priority",
"int priority",
"priority",
"import java.io.BufferedReader;\nimport java.",
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic clas",
"public class Main {\n\tenum priorityFigure{\n\t\tS(0),H(1),C(2),D(3);\n\n\t\tprivate int priority;\n\t\tprivate priorityFigure(int priority){\n\t\t\tthis.priority = priority;\n\t\t}\n\t}\n\tpublic static void main(String[] args) throws IOException{\n\t\tint num, insertionPoint;\n\t\tString[] str, list;\n\t\tlist = new String[52];\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tnum = Integer.parseInt(br.readLine());\n\t\tfor(int i = 0; i < num; i++){\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tif(str[0].equals(\"S\")){\n\t\t\t\tinsertionPoint = priorityFigure.S.priority * 13;\n\t\t\t}else if(str[0].equals(\"H\")){\n\t\t\t\tinsertionPoint = priorityFigure.H.priority * 13;\n\t\t\t}else if(str[0].equals(\"C\")){\n\t\t\t\tinsertionPoint = priorityFigure.C.priority * 13;\n\t\t\t}else{\n\t\t\t\tinsertionPoint = priorityFigure.D.priority * 13;\n\t\t\t}\n\t\t\tlist[Integer.parseInt(str[1]) + insertionPoint - 1] = str[1];\n\t\t}\n\t\tfor(int i = 0; i < 52; i++){\n\t\t\tif(list[i] == null){\n\t\t\t\tString figure;\n\t\t\t\tif(i / 13 == priorityFigure.S.priority){\n\t\t\t\t\tfigure = \"S\";\n\t\t\t\t}else if(i / 13 == priorityFigure.H.priority){\n\t\t\t\t\tfigure = \"H\";\n\t\t\t\t}else if(i / 13 == priorityFigure.C.priority){\n\t\t\t\t\tfigure = \"C\";\n\t\t\t\t}else{\n\t\t\t\t\tfigure = \"D\";\n\t\t\t\t}\n\t\t\t\tif((i + 1) % 13 == 0){\n\t\t\t\t\tnum = 13;\n\t\t\t\t}else{\n\t\t\t\t\tnum =(i + 1) % 13;\n\t\t\t\t}\n\t\t\t\tbuilder.append(figure + \" \" + num + \"\\n\");\n\t\t\t}\n\t\t}\n\t\tif(builder.length()!=0){\n\t\t\tbuilder.delete(builder.length() - 1, builder.length());\n\t\t\tSystem.out.println(builder);\n\t\t}\n\t\tbr.close();\n\t}\n}",
"public class Main {\n\tenum priorityFigure{\n\t\tS(0),H(1),C(2),D(3);\n\n\t\tprivate int priority;\n\t\tprivate priorityFigure(int priority){\n\t\t\tthis.priority = priority;\n\t\t}\n\t}\n\tpublic static void main(String[] args) throws IOException{\n\t\tint num, insertionPoint;\n\t\tString[] str, list;\n\t\tlist = new String[52];\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tnum = Integer.parseInt(br.readLine());\n\t\tfor(int i = 0; i < num; i++){\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tif(str[0].equals(\"S\")){\n\t\t\t\tinsertionPoint = priorityFigure.S.priority * 13;\n\t\t\t}else if(str[0].equals(\"H\")){\n\t\t\t\tinsertionPoint = priorityFigure.H.priority * 13;\n\t\t\t}else if(str[0].equals(\"C\")){\n\t\t\t\tinsertionPoint = priorityFigure.C.priority * 13;\n\t\t\t}else{\n\t\t\t\tinsertionPoint = priorityFigure.D.priority * 13;\n\t\t\t}\n\t\t\tlist[Integer.parseInt(str[1]) + insertionPoint - 1] = str[1];\n\t\t}\n\t\tfor(int i = 0; i < 52; i++){\n\t\t\tif(list[i] == null){\n\t\t\t\tString figure;\n\t\t\t\tif(i / 13 == priorityFigure.S.priority){\n\t\t\t\t\tfigure = \"S\";\n\t\t\t\t}else if(i / 13 == priorityFigure.H.priority){\n\t\t\t\t\tfigure = \"H\";\n\t\t\t\t}else if(i / 13 == priorityFigure.C.priority){\n\t\t\t\t\tfigure = \"C\";\n\t\t\t\t}else{\n\t\t\t\t\tfigure = \"D\";\n\t\t\t\t}\n\t\t\t\tif((i + 1) % 13 == 0){\n\t\t\t\t\tnum = 13;\n\t\t\t\t}else{\n\t\t\t\t\tnum =(i + 1) % 13;\n\t\t\t\t}\n\t\t\t\tbuilder.append(figure + \" \" + num + \"\\n\");\n\t\t\t}\n\t\t}\n\t\tif(builder.length()!=0){\n\t\t\tbuilder.delete(builder.length() - 1, builder.length());\n\t\t\tSystem.out.println(builder);\n\t\t}\n\t\tbr.close();\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
enum priorityFigure{
S(0),H(1),C(2),D(3);
private int priority;
private priorityFigure(int priority){
this.priority = priority;
}
}
public static void main(String[] args) throws IOException{
int num, insertionPoint;
String[] str, list;
list = new String[52];
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder builder = new StringBuilder();
num = Integer.parseInt(br.readLine());
for(int i = 0; i < num; i++){
str = br.readLine().split(" ");
if(str[0].equals("S")){
insertionPoint = priorityFigure.S.priority * 13;
}else if(str[0].equals("H")){
insertionPoint = priorityFigure.H.priority * 13;
}else if(str[0].equals("C")){
insertionPoint = priorityFigure.C.priority * 13;
}else{
insertionPoint = priorityFigure.D.priority * 13;
}
list[Integer.parseInt(str[1]) + insertionPoint - 1] = str[1];
}
for(int i = 0; i < 52; i++){
if(list[i] == null){
String figure;
if(i / 13 == priorityFigure.S.priority){
figure = "S";
}else if(i / 13 == priorityFigure.H.priority){
figure = "H";
}else if(i / 13 == priorityFigure.C.priority){
figure = "C";
}else{
figure = "D";
}
if((i + 1) % 13 == 0){
num = 13;
}else{
num =(i + 1) % 13;
}
builder.append(figure + " " + num + "\n");
}
}
if(builder.length()!=0){
builder.delete(builder.length() - 1, builder.length());
System.out.println(builder);
}
br.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
2,
17,
13,
17,
4,
18,
18,
13,
13,
2,
2,
17,
17,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
2,
17,
13,
17,
4,
18,
18,
13,
13,
2,
2,
17,
17,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
2,
17,
13,
17,
4,
18,
18,
13,
13,
2,
2,
17,
17,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
2,
17,
13,
17,
4,
18,
18,
13,
13,
2,
2,
17,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
179,
8
],
[
179,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
11,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
46,
47
],
[
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
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
66,
68
],
[
62,
69
],
[
61,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
76,
76
],
[
76,
77
],
[
76,
78
],
[
76,
79
],
[
11,
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
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
98,
100
],
[
94,
101
],
[
93,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
108,
108
],
[
108,
109
],
[
108,
110
],
[
108,
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
],
[
128,
129
],
[
127,
130
],
[
130,
131
],
[
130,
132
],
[
126,
133
],
[
125,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
140,
140
],
[
140,
141
],
[
140,
142
],
[
140,
143
],
[
11,
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
],
[
160,
161
],
[
159,
162
],
[
162,
163
],
[
162,
164
],
[
158,
165
],
[
157,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
166,
171
],
[
172,
172
],
[
172,
173
],
[
172,
174
],
[
172,
175
],
[
9,
176
],
[
176,
177
],
[
0,
178
],
[
178,
179
],
[
178,
180
]
] | [
"import java.io.*;\nimport java.util.ArrayList;\npublic class Main{\n\tpublic static void main(String[] args)throws Exception{\n\t\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\t\tString str=input.readLine();\n\t\tint n=Integer.parseInt(str);\n\t\tArrayList<String> list=new ArrayList<String>();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tlist.add(input.readLine());\n\t\t}\n\t\tfor(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"S \"+i)==false)\n\t\t\tSystem.out.println(\"S\"+\" \"+i);\n\t\t\t}\n\t\t\n\t\tfor(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"H \"+i)==false)\n\t\t\tSystem.out.println(\"H\"+\" \"+i);\n\t\t}\n\t\tfor(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"C \"+i)==false)\n\t\t\tSystem.out.println(\"C\"+\" \"+i);\n\t\t}\n\t\tfor(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"D \"+i)==false)\n\t\t\tSystem.out.println(\"D\"+\" \"+i);\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"public class Main{\n\tpublic static void main(String[] args)throws Exception{\n\t\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\t\tString str=input.readLine();\n\t\tint n=Integer.parseInt(str);\n\t\tArrayList<String> list=new ArrayList<String>();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tlist.add(input.readLine());\n\t\t}\n\t\tfor(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"S \"+i)==false)\n\t\t\tSystem.out.println(\"S\"+\" \"+i);\n\t\t\t}\n\t\t\n\t\tfor(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"H \"+i)==false)\n\t\t\tSystem.out.println(\"H\"+\" \"+i);\n\t\t}\n\t\tfor(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"C \"+i)==false)\n\t\t\tSystem.out.println(\"C\"+\" \"+i);\n\t\t}\n\t\tfor(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"D \"+i)==false)\n\t\t\tSystem.out.println(\"D\"+\" \"+i);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args)throws Exception{\n\t\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\t\tString str=input.readLine();\n\t\tint n=Integer.parseInt(str);\n\t\tArrayList<String> list=new ArrayList<String>();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tlist.add(input.readLine());\n\t\t}\n\t\tfor(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"S \"+i)==false)\n\t\t\tSystem.out.println(\"S\"+\" \"+i);\n\t\t\t}\n\t\t\n\t\tfor(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"H \"+i)==false)\n\t\t\tSystem.out.println(\"H\"+\" \"+i);\n\t\t}\n\t\tfor(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"C \"+i)==false)\n\t\t\tSystem.out.println(\"C\"+\" \"+i);\n\t\t}\n\t\tfor(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"D \"+i)==false)\n\t\t\tSystem.out.println(\"D\"+\" \"+i);\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\t\tString str=input.readLine();\n\t\tint n=Integer.parseInt(str);\n\t\tArrayList<String> list=new ArrayList<String>();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tlist.add(input.readLine());\n\t\t}\n\t\tfor(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"S \"+i)==false)\n\t\t\tSystem.out.println(\"S\"+\" \"+i);\n\t\t\t}\n\t\t\n\t\tfor(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"H \"+i)==false)\n\t\t\tSystem.out.println(\"H\"+\" \"+i);\n\t\t}\n\t\tfor(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"C \"+i)==false)\n\t\t\tSystem.out.println(\"C\"+\" \"+i);\n\t\t}\n\t\tfor(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"D \"+i)==false)\n\t\t\tSystem.out.println(\"D\"+\" \"+i);\n\t\t}\n\t}",
"BufferedReader input=new BufferedReader(new InputStreamReader(System.in));",
"input",
"new BufferedReader(new InputStreamReader(System.in))",
"String str=input.readLine();",
"str",
"input.readLine()",
"input.readLine",
"input",
"int n=Integer.parseInt(str);",
"n",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"ArrayList<String> list=new ArrayList<String>();",
"list",
"new ArrayList<String>()",
"for(int i=0;i<n;i++){\n\t\t\tlist.add(input.readLine());\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tlist.add(input.readLine());\n\t\t}",
"{\n\t\t\tlist.add(input.readLine());\n\t\t}",
"list.add(input.readLine())",
"list.add",
"list",
"input.readLine()",
"input.readLine",
"input",
"for(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"S \"+i)==false)\n\t\t\tSystem.out.println(\"S\"+\" \"+i);\n\t\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<14",
"i",
"14",
"i++",
"i++",
"i",
"{\n\t\t\tif(list.contains(\"S \"+i)==false)\n\t\t\tSystem.out.println(\"S\"+\" \"+i);\n\t\t\t}",
"{\n\t\t\tif(list.contains(\"S \"+i)==false)\n\t\t\tSystem.out.println(\"S\"+\" \"+i);\n\t\t\t}",
"if(list.contains(\"S \"+i)==false)\n\t\t\tSystem.out.println(\"S\"+\" \"+i);",
"list.contains(\"S \"+i)==false",
"list.contains(\"S \"+i)",
"list.contains",
"list",
"\"S \"+i",
"\"S \"",
"i",
"false",
"System.out.println(\"S\"+\" \"+i)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S\"+\" \"+i",
"\"S\"+\" \"+i",
"\"S\"",
"\" \"",
"i",
"for(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"H \"+i)==false)\n\t\t\tSystem.out.println(\"H\"+\" \"+i);\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<14",
"i",
"14",
"i++",
"i++",
"i",
"{\n\t\t\tif(list.contains(\"H \"+i)==false)\n\t\t\tSystem.out.println(\"H\"+\" \"+i);\n\t\t}",
"{\n\t\t\tif(list.contains(\"H \"+i)==false)\n\t\t\tSystem.out.println(\"H\"+\" \"+i);\n\t\t}",
"if(list.contains(\"H \"+i)==false)\n\t\t\tSystem.out.println(\"H\"+\" \"+i);",
"list.contains(\"H \"+i)==false",
"list.contains(\"H \"+i)",
"list.contains",
"list",
"\"H \"+i",
"\"H \"",
"i",
"false",
"System.out.println(\"H\"+\" \"+i)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H\"+\" \"+i",
"\"H\"+\" \"+i",
"\"H\"",
"\" \"",
"i",
"for(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"C \"+i)==false)\n\t\t\tSystem.out.println(\"C\"+\" \"+i);\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<14",
"i",
"14",
"i++",
"i++",
"i",
"{\n\t\t\tif(list.contains(\"C \"+i)==false)\n\t\t\tSystem.out.println(\"C\"+\" \"+i);\n\t\t}",
"{\n\t\t\tif(list.contains(\"C \"+i)==false)\n\t\t\tSystem.out.println(\"C\"+\" \"+i);\n\t\t}",
"if(list.contains(\"C \"+i)==false)\n\t\t\tSystem.out.println(\"C\"+\" \"+i);",
"list.contains(\"C \"+i)==false",
"list.contains(\"C \"+i)",
"list.contains",
"list",
"\"C \"+i",
"\"C \"",
"i",
"false",
"System.out.println(\"C\"+\" \"+i)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C\"+\" \"+i",
"\"C\"+\" \"+i",
"\"C\"",
"\" \"",
"i",
"for(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"D \"+i)==false)\n\t\t\tSystem.out.println(\"D\"+\" \"+i);\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<14",
"i",
"14",
"i++",
"i++",
"i",
"{\n\t\t\tif(list.contains(\"D \"+i)==false)\n\t\t\tSystem.out.println(\"D\"+\" \"+i);\n\t\t}",
"{\n\t\t\tif(list.contains(\"D \"+i)==false)\n\t\t\tSystem.out.println(\"D\"+\" \"+i);\n\t\t}",
"if(list.contains(\"D \"+i)==false)\n\t\t\tSystem.out.println(\"D\"+\" \"+i);",
"list.contains(\"D \"+i)==false",
"list.contains(\"D \"+i)",
"list.contains",
"list",
"\"D \"+i",
"\"D \"",
"i",
"false",
"System.out.println(\"D\"+\" \"+i)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D\"+\" \"+i",
"\"D\"+\" \"+i",
"\"D\"",
"\" \"",
"i",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args)throws Exception{\n\t\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\t\tString str=input.readLine();\n\t\tint n=Integer.parseInt(str);\n\t\tArrayList<String> list=new ArrayList<String>();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tlist.add(input.readLine());\n\t\t}\n\t\tfor(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"S \"+i)==false)\n\t\t\tSystem.out.println(\"S\"+\" \"+i);\n\t\t\t}\n\t\t\n\t\tfor(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"H \"+i)==false)\n\t\t\tSystem.out.println(\"H\"+\" \"+i);\n\t\t}\n\t\tfor(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"C \"+i)==false)\n\t\t\tSystem.out.println(\"C\"+\" \"+i);\n\t\t}\n\t\tfor(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"D \"+i)==false)\n\t\t\tSystem.out.println(\"D\"+\" \"+i);\n\t\t}\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args)throws Exception{\n\t\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\t\tString str=input.readLine();\n\t\tint n=Integer.parseInt(str);\n\t\tArrayList<String> list=new ArrayList<String>();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tlist.add(input.readLine());\n\t\t}\n\t\tfor(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"S \"+i)==false)\n\t\t\tSystem.out.println(\"S\"+\" \"+i);\n\t\t\t}\n\t\t\n\t\tfor(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"H \"+i)==false)\n\t\t\tSystem.out.println(\"H\"+\" \"+i);\n\t\t}\n\t\tfor(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"C \"+i)==false)\n\t\t\tSystem.out.println(\"C\"+\" \"+i);\n\t\t}\n\t\tfor(int i=1;i<14;i++){\n\t\t\tif(list.contains(\"D \"+i)==false)\n\t\t\tSystem.out.println(\"D\"+\" \"+i);\n\t\t}\n\t}\n}",
"Main"
] | import java.io.*;
import java.util.ArrayList;
public class Main{
public static void main(String[] args)throws Exception{
BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
String str=input.readLine();
int n=Integer.parseInt(str);
ArrayList<String> list=new ArrayList<String>();
for(int i=0;i<n;i++){
list.add(input.readLine());
}
for(int i=1;i<14;i++){
if(list.contains("S "+i)==false)
System.out.println("S"+" "+i);
}
for(int i=1;i<14;i++){
if(list.contains("H "+i)==false)
System.out.println("H"+" "+i);
}
for(int i=1;i<14;i++){
if(list.contains("C "+i)==false)
System.out.println("C"+" "+i);
}
for(int i=1;i<14;i++){
if(list.contains("D "+i)==false)
System.out.println("D"+" "+i);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
28,
13,
4,
18,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
2,
2,
4,
18,
13,
13,
17,
13,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
12,
12,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
102,
11
],
[
102,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
18,
23
],
[
24,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
42,
47
],
[
42,
48
],
[
14,
49
],
[
49,
50
],
[
49,
51
],
[
14,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
14,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
57,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
74,
75
],
[
14,
76
],
[
76,
77
],
[
76,
78
],
[
76,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
12,
87
],
[
87,
88
],
[
102,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
89,
93
],
[
93,
94
],
[
89,
95
],
[
95,
96
],
[
89,
97
],
[
97,
98
],
[
89,
99
],
[
89,
100
],
[
0,
101
],
[
101,
102
],
[
101,
103
]
] | [
"\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic enum mark{\n\n\t\tS,\n\t\tH,\n\t\tC,\n\t\tD;\n\n\t}\n\n\tpublic static void main(String[] args) {\n\n\t\tList<String> allCard = new ArrayList<>();\n\n\t\tfor(mark mark: mark.values()){\n\n\t\t\tfor(int i = 1; i <= 13; i++) {\n\n\t\t\t\tallCard.add(String.valueOf(mark) + \" \" + i);\n\n\t\t\t}\n\t\t}\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint cardCount = in.nextInt();\n\n\t\tfor(int i = 0; i <= cardCount; i++) {\n\n\t\t\tallCard.remove(in.nextLine());\n\n\t\t}\n\n\t\tfor(String result: allCard) {\n\n\t\t\tSystem.out.println(result);\n\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\n\tpublic enum mark{\n\n\t\tS,\n\t\tH,\n\t\tC,\n\t\tD;\n\n\t}\n\n\tpublic static void main(String[] args) {\n\n\t\tList<String> allCard = new ArrayList<>();\n\n\t\tfor(mark mark: mark.values()){\n\n\t\t\tfor(int i = 1; i <= 13; i++) {\n\n\t\t\t\tallCard.add(String.valueOf(mark) + \" \" + i);\n\n\t\t\t}\n\t\t}\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint cardCount = in.nextInt();\n\n\t\tfor(int i = 0; i <= cardCount; i++) {\n\n\t\t\tallCard.remove(in.nextLine());\n\n\t\t}\n\n\t\tfor(String result: allCard) {\n\n\t\t\tSystem.out.println(result);\n\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tList<String> allCard = new ArrayList<>();\n\n\t\tfor(mark mark: mark.values()){\n\n\t\t\tfor(int i = 1; i <= 13; i++) {\n\n\t\t\t\tallCard.add(String.valueOf(mark) + \" \" + i);\n\n\t\t\t}\n\t\t}\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint cardCount = in.nextInt();\n\n\t\tfor(int i = 0; i <= cardCount; i++) {\n\n\t\t\tallCard.remove(in.nextLine());\n\n\t\t}\n\n\t\tfor(String result: allCard) {\n\n\t\t\tSystem.out.println(result);\n\n\t\t}\n\t}",
"main",
"{\n\n\t\tList<String> allCard = new ArrayList<>();\n\n\t\tfor(mark mark: mark.values()){\n\n\t\t\tfor(int i = 1; i <= 13; i++) {\n\n\t\t\t\tallCard.add(String.valueOf(mark) + \" \" + i);\n\n\t\t\t}\n\t\t}\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint cardCount = in.nextInt();\n\n\t\tfor(int i = 0; i <= cardCount; i++) {\n\n\t\t\tallCard.remove(in.nextLine());\n\n\t\t}\n\n\t\tfor(String result: allCard) {\n\n\t\t\tSystem.out.println(result);\n\n\t\t}\n\t}",
"List<String> allCard = new ArrayList<>();",
"allCard",
"new ArrayList<>()",
"for(mark mark: mark.values()){\n\n\t\t\tfor(int i = 1; i <= 13; i++) {\n\n\t\t\t\tallCard.add(String.valueOf(mark) + \" \" + i);\n\n\t\t\t}\n\t\t}",
"mark mark",
"mark.values()",
"mark.values",
"mark",
"{\n\n\t\t\tfor(int i = 1; i <= 13; i++) {\n\n\t\t\t\tallCard.add(String.valueOf(mark) + \" \" + i);\n\n\t\t\t}\n\t\t}",
"{\n\n\t\t\tfor(int i = 1; i <= 13; i++) {\n\n\t\t\t\tallCard.add(String.valueOf(mark) + \" \" + i);\n\n\t\t\t}\n\t\t}",
"for(int i = 1; i <= 13; i++) {\n\n\t\t\t\tallCard.add(String.valueOf(mark) + \" \" + i);\n\n\t\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\n\t\t\t\tallCard.add(String.valueOf(mark) + \" \" + i);\n\n\t\t\t}",
"{\n\n\t\t\t\tallCard.add(String.valueOf(mark) + \" \" + i);\n\n\t\t\t}",
"allCard.add(String.valueOf(mark) + \" \" + i)",
"allCard.add",
"allCard",
"String.valueOf(mark) + \" \" + i",
"String.valueOf(mark) + \" \" + i",
"String.valueOf(mark)",
"String.valueOf",
"String",
"mark",
"\" \"",
"i",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int cardCount = in.nextInt();",
"cardCount",
"in.nextInt()",
"in.nextInt",
"in",
"for(int i = 0; i <= cardCount; i++) {\n\n\t\t\tallCard.remove(in.nextLine());\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= cardCount",
"i",
"cardCount",
"i++",
"i++",
"i",
"{\n\n\t\t\tallCard.remove(in.nextLine());\n\n\t\t}",
"{\n\n\t\t\tallCard.remove(in.nextLine());\n\n\t\t}",
"allCard.remove(in.nextLine())",
"allCard.remove",
"allCard",
"in.nextLine()",
"in.nextLine",
"in",
"for(String result: allCard) {\n\n\t\t\tSystem.out.println(result);\n\n\t\t}",
"String result",
"allCard",
"{\n\n\t\t\tSystem.out.println(result);\n\n\t\t}",
"{\n\n\t\t\tSystem.out.println(result);\n\n\t\t}",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public enum mark{\n\n\t\tS,\n\t\tH,\n\t\tC,\n\t\tD;\n\n\t}",
"mark",
"S",
"S",
"H",
"H",
"C",
"C",
"D",
"D",
"\n\nimport java.util.ArrayList;\nimp",
"\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Ma",
"public class Main {\n\n\tpublic enum mark{\n\n\t\tS,\n\t\tH,\n\t\tC,\n\t\tD;\n\n\t}\n\n\tpublic static void main(String[] args) {\n\n\t\tList<String> allCard = new ArrayList<>();\n\n\t\tfor(mark mark: mark.values()){\n\n\t\t\tfor(int i = 1; i <= 13; i++) {\n\n\t\t\t\tallCard.add(String.valueOf(mark) + \" \" + i);\n\n\t\t\t}\n\t\t}\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint cardCount = in.nextInt();\n\n\t\tfor(int i = 0; i <= cardCount; i++) {\n\n\t\t\tallCard.remove(in.nextLine());\n\n\t\t}\n\n\t\tfor(String result: allCard) {\n\n\t\t\tSystem.out.println(result);\n\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic enum mark{\n\n\t\tS,\n\t\tH,\n\t\tC,\n\t\tD;\n\n\t}\n\n\tpublic static void main(String[] args) {\n\n\t\tList<String> allCard = new ArrayList<>();\n\n\t\tfor(mark mark: mark.values()){\n\n\t\t\tfor(int i = 1; i <= 13; i++) {\n\n\t\t\t\tallCard.add(String.valueOf(mark) + \" \" + i);\n\n\t\t\t}\n\t\t}\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint cardCount = in.nextInt();\n\n\t\tfor(int i = 0; i <= cardCount; i++) {\n\n\t\t\tallCard.remove(in.nextLine());\n\n\t\t}\n\n\t\tfor(String result: allCard) {\n\n\t\t\tSystem.out.println(result);\n\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
public enum mark{
S,
H,
C,
D;
}
public static void main(String[] args) {
List<String> allCard = new ArrayList<>();
for(mark mark: mark.values()){
for(int i = 1; i <= 13; i++) {
allCard.add(String.valueOf(mark) + " " + i);
}
}
Scanner in = new Scanner(System.in);
int cardCount = in.nextInt();
for(int i = 0; i <= cardCount; i++) {
allCard.remove(in.nextLine());
}
for(String result: allCard) {
System.out.println(result);
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
17,
17,
41,
13,
12,
13,
30,
0,
13,
4,
18,
13,
4,
13,
4,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
13,
12,
13,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
35,
13,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
13,
13,
13,
12,
13,
30,
14,
2,
18,
18,
13,
13,
13,
17,
4,
18,
18,
13,
13,
2,
2,
4,
13,
13,
17,
2,
13,
17,
23,
13,
23,
13,
12,
13,
30,
35,
13,
34,
17,
1,
29,
17,
34,
17,
1,
29,
17,
34,
17,
1,
29,
17,
34,
17,
1,
29,
17,
34,
1,
29,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
212,
5
],
[
212,
6
],
[
6,
7
],
[
6,
8
],
[
212,
9
],
[
9,
10
],
[
9,
11
],
[
212,
14
],
[
14,
15
],
[
212,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
18,
24
],
[
24,
25
],
[
18,
26
],
[
26,
27
],
[
16,
28
],
[
28,
29
],
[
212,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
212,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
53,
58
],
[
50,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
50,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
68,
78
],
[
64,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
87,
89
],
[
82,
90
],
[
81,
91
],
[
64,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
95,
103
],
[
94,
104
],
[
64,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
113,
114
],
[
113,
115
],
[
108,
116
],
[
107,
117
],
[
212,
118
],
[
118,
119
],
[
118,
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
],
[
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
],
[
147,
150
],
[
212,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
155,
161
],
[
154,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
168,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
168,
173
],
[
173,
174
],
[
173,
175
],
[
151,
176
],
[
176,
177
],
[
151,
178
],
[
178,
179
],
[
212,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
188,
189
],
[
183,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
193,
194
],
[
183,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
183,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
203,
204
],
[
183,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
180,
209
],
[
209,
210
],
[
0,
211
],
[
211,
212
],
[
211,
213
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tprivate static Scanner sc=new Scanner(System.in);\n\tprivate static boolean[][] cards=new boolean[4][13];\n\tprivate static int n;\n\tpublic static void main (String[] args){\n\t\tn=sc.nextInt();\n\t\tsetAllCardsExist();\n\t\tprintMissingCards();\n\t}\n\tprivate static void setAllCardsExist(){\n\t\tfor(int i=0;i<n;i++){\n\t\t\tsetCardExist();\n\t\t}\n\t}\n\tprivate static void setCardExist(){\n\t\tchar shape=sc.next().charAt(0);\n\t\tint num=sc.nextInt();\n\t\tswitch(shape){\n\t\tcase 'S':\n\t\t\tcards[0][num-1]=true;\n\t\t\tbreak;\n\t\tcase 'H':\n\t\t\tcards[1][num-1]=true;\n\t\t\tbreak;\n\t\tcase 'C':\n\t\t\tcards[2][num-1]=true;\n\t\t\tbreak;\n\t\tcase 'D':\n\t\t\tcards[3][num-1]=true;\n\t\t\tbreak;\n\t\t}\n\t}\n\tprivate static void printMissingCards(){\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\tprintMissingCard(i,j);\n\t\t\t}\n\t\t}\n\t}\n\tprivate static void printMissingCard(int i,int j){\n\t\tif(cards[i][j]==false) System.out.println(getShape(i)+\" \"+(j+1));\n\t}\n\tprivate static char getShape(int i){\n\t\tswitch(i){\n\t\tcase 0:\n\t\t\treturn 'S';\n\t\tcase 1:\n\t\t\treturn 'H';\n\t\tcase 2:\n\t\t\treturn 'C';\n\t\tcase 3:\n\t\t\treturn 'D';\n\t\tdefault:\n\t\t\treturn ' ';\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 boolean[][] cards=new boolean[4][13];\n\tprivate static int n;\n\tpublic static void main (String[] args){\n\t\tn=sc.nextInt();\n\t\tsetAllCardsExist();\n\t\tprintMissingCards();\n\t}\n\tprivate static void setAllCardsExist(){\n\t\tfor(int i=0;i<n;i++){\n\t\t\tsetCardExist();\n\t\t}\n\t}\n\tprivate static void setCardExist(){\n\t\tchar shape=sc.next().charAt(0);\n\t\tint num=sc.nextInt();\n\t\tswitch(shape){\n\t\tcase 'S':\n\t\t\tcards[0][num-1]=true;\n\t\t\tbreak;\n\t\tcase 'H':\n\t\t\tcards[1][num-1]=true;\n\t\t\tbreak;\n\t\tcase 'C':\n\t\t\tcards[2][num-1]=true;\n\t\t\tbreak;\n\t\tcase 'D':\n\t\t\tcards[3][num-1]=true;\n\t\t\tbreak;\n\t\t}\n\t}\n\tprivate static void printMissingCards(){\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\tprintMissingCard(i,j);\n\t\t\t}\n\t\t}\n\t}\n\tprivate static void printMissingCard(int i,int j){\n\t\tif(cards[i][j]==false) System.out.println(getShape(i)+\" \"+(j+1));\n\t}\n\tprivate static char getShape(int i){\n\t\tswitch(i){\n\t\tcase 0:\n\t\t\treturn 'S';\n\t\tcase 1:\n\t\t\treturn 'H';\n\t\tcase 2:\n\t\t\treturn 'C';\n\t\tcase 3:\n\t\t\treturn 'D';\n\t\tdefault:\n\t\t\treturn ' ';\n\t\t}\n\t}\n}",
"Main",
"private static Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"private static boolean[][] cards=new boolean[4][13];",
"cards",
"new boolean[4][13]",
"4",
"13",
"private static int n;",
"n",
"public static void main (String[] args){\n\t\tn=sc.nextInt();\n\t\tsetAllCardsExist();\n\t\tprintMissingCards();\n\t}",
"main",
"{\n\t\tn=sc.nextInt();\n\t\tsetAllCardsExist();\n\t\tprintMissingCards();\n\t}",
"n=sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"setAllCardsExist()",
"setAllCardsExist",
"printMissingCards()",
"printMissingCards",
"String[] args",
"args",
"private static void setAllCardsExist(){\n\t\tfor(int i=0;i<n;i++){\n\t\t\tsetCardExist();\n\t\t}\n\t}",
"setAllCardsExist",
"{\n\t\tfor(int i=0;i<n;i++){\n\t\t\tsetCardExist();\n\t\t}\n\t}",
"for(int i=0;i<n;i++){\n\t\t\tsetCardExist();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tsetCardExist();\n\t\t}",
"{\n\t\t\tsetCardExist();\n\t\t}",
"setCardExist()",
"setCardExist",
"private static void setCardExist(){\n\t\tchar shape=sc.next().charAt(0);\n\t\tint num=sc.nextInt();\n\t\tswitch(shape){\n\t\tcase 'S':\n\t\t\tcards[0][num-1]=true;\n\t\t\tbreak;\n\t\tcase 'H':\n\t\t\tcards[1][num-1]=true;\n\t\t\tbreak;\n\t\tcase 'C':\n\t\t\tcards[2][num-1]=true;\n\t\t\tbreak;\n\t\tcase 'D':\n\t\t\tcards[3][num-1]=true;\n\t\t\tbreak;\n\t\t}\n\t}",
"setCardExist",
"{\n\t\tchar shape=sc.next().charAt(0);\n\t\tint num=sc.nextInt();\n\t\tswitch(shape){\n\t\tcase 'S':\n\t\t\tcards[0][num-1]=true;\n\t\t\tbreak;\n\t\tcase 'H':\n\t\t\tcards[1][num-1]=true;\n\t\t\tbreak;\n\t\tcase 'C':\n\t\t\tcards[2][num-1]=true;\n\t\t\tbreak;\n\t\tcase 'D':\n\t\t\tcards[3][num-1]=true;\n\t\t\tbreak;\n\t\t}\n\t}",
"char shape=sc.next().charAt(0);",
"shape",
"sc.next().charAt(0)",
"sc.next().charAt",
"sc.next()",
"sc.next",
"sc",
"0",
"int num=sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"switch(shape){\n\t\tcase 'S':\n\t\t\tcards[0][num-1]=true;\n\t\t\tbreak;\n\t\tcase 'H':\n\t\t\tcards[1][num-1]=true;\n\t\t\tbreak;\n\t\tcase 'C':\n\t\t\tcards[2][num-1]=true;\n\t\t\tbreak;\n\t\tcase 'D':\n\t\t\tcards[3][num-1]=true;\n\t\t\tbreak;\n\t\t}",
"shape",
"case 'S':",
"'S'",
"case 'S':",
"cards[0][num-1]=true",
"cards[0][num-1]",
"cards[0]",
"cards",
"0",
"num-1",
"num",
"1",
"true",
"break;",
"case 'H':",
"'H'",
"case 'H':",
"cards[1][num-1]=true",
"cards[1][num-1]",
"cards[1]",
"cards",
"1",
"num-1",
"num",
"1",
"true",
"break;",
"case 'C':",
"'C'",
"case 'C':",
"cards[2][num-1]=true",
"cards[2][num-1]",
"cards[2]",
"cards",
"2",
"num-1",
"num",
"1",
"true",
"break;",
"case 'D':",
"'D'",
"case 'D':",
"cards[3][num-1]=true",
"cards[3][num-1]",
"cards[3]",
"cards",
"3",
"num-1",
"num",
"1",
"true",
"break;",
"private static void printMissingCards(){\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\tprintMissingCard(i,j);\n\t\t\t}\n\t\t}\n\t}",
"printMissingCards",
"{\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\tprintMissingCard(i,j);\n\t\t\t}\n\t\t}\n\t}",
"for(int i=0;i<4;i++){\n\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\tprintMissingCard(i,j);\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\tprintMissingCard(i,j);\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\tprintMissingCard(i,j);\n\t\t\t}\n\t\t}",
"for(int j=0;j<13;j++){\n\t\t\t\tprintMissingCard(i,j);\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\tprintMissingCard(i,j);\n\t\t\t}",
"{\n\t\t\t\tprintMissingCard(i,j);\n\t\t\t}",
"printMissingCard(i,j)",
"printMissingCard",
"i",
"j",
"private static void printMissingCard(int i,int j){\n\t\tif(cards[i][j]==false) System.out.println(getShape(i)+\" \"+(j+1));\n\t}",
"printMissingCard",
"{\n\t\tif(cards[i][j]==false) System.out.println(getShape(i)+\" \"+(j+1));\n\t}",
"if(cards[i][j]==false) System.out.println(getShape(i)+\" \"+(j+1));",
"cards[i][j]==false",
"cards[i][j]",
"cards[i]",
"cards",
"i",
"j",
"false",
"System.out.println(getShape(i)+\" \"+(j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"getShape(i)+\" \"+(j+1)",
"getShape(i)+\" \"+(j+1)",
"getShape(i)",
"getShape",
"i",
"\" \"",
"(j+1)",
"j",
"1",
"int i",
"i",
"int j",
"j",
"private static char getShape(int i){\n\t\tswitch(i){\n\t\tcase 0:\n\t\t\treturn 'S';\n\t\tcase 1:\n\t\t\treturn 'H';\n\t\tcase 2:\n\t\t\treturn 'C';\n\t\tcase 3:\n\t\t\treturn 'D';\n\t\tdefault:\n\t\t\treturn ' ';\n\t\t}\n\t}",
"getShape",
"{\n\t\tswitch(i){\n\t\tcase 0:\n\t\t\treturn 'S';\n\t\tcase 1:\n\t\t\treturn 'H';\n\t\tcase 2:\n\t\t\treturn 'C';\n\t\tcase 3:\n\t\t\treturn 'D';\n\t\tdefault:\n\t\t\treturn ' ';\n\t\t}\n\t}",
"switch(i){\n\t\tcase 0:\n\t\t\treturn 'S';\n\t\tcase 1:\n\t\t\treturn 'H';\n\t\tcase 2:\n\t\t\treturn 'C';\n\t\tcase 3:\n\t\t\treturn 'D';\n\t\tdefault:\n\t\t\treturn ' ';\n\t\t}",
"i",
"case 0:",
"0",
"case 0:",
"return 'S';",
"'S'",
"case 1:",
"1",
"case 1:",
"return 'H';",
"'H'",
"case 2:",
"2",
"case 2:",
"return 'C';",
"'C'",
"case 3:",
"3",
"case 3:",
"return 'D';",
"'D'",
"default:",
"default:",
"return ' ';",
"' '",
"int i",
"i",
"public class Main {\n\tprivate static Scanner sc=new Scanner(System.in);\n\tprivate static boolean[][] cards=new boolean[4][13];\n\tprivate static int n;\n\tpublic static void main (String[] args){\n\t\tn=sc.nextInt();\n\t\tsetAllCardsExist();\n\t\tprintMissingCards();\n\t}\n\tprivate static void setAllCardsExist(){\n\t\tfor(int i=0;i<n;i++){\n\t\t\tsetCardExist();\n\t\t}\n\t}\n\tprivate static void setCardExist(){\n\t\tchar shape=sc.next().charAt(0);\n\t\tint num=sc.nextInt();\n\t\tswitch(shape){\n\t\tcase 'S':\n\t\t\tcards[0][num-1]=true;\n\t\t\tbreak;\n\t\tcase 'H':\n\t\t\tcards[1][num-1]=true;\n\t\t\tbreak;\n\t\tcase 'C':\n\t\t\tcards[2][num-1]=true;\n\t\t\tbreak;\n\t\tcase 'D':\n\t\t\tcards[3][num-1]=true;\n\t\t\tbreak;\n\t\t}\n\t}\n\tprivate static void printMissingCards(){\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\tprintMissingCard(i,j);\n\t\t\t}\n\t\t}\n\t}\n\tprivate static void printMissingCard(int i,int j){\n\t\tif(cards[i][j]==false) System.out.println(getShape(i)+\" \"+(j+1));\n\t}\n\tprivate static char getShape(int i){\n\t\tswitch(i){\n\t\tcase 0:\n\t\t\treturn 'S';\n\t\tcase 1:\n\t\t\treturn 'H';\n\t\tcase 2:\n\t\t\treturn 'C';\n\t\tcase 3:\n\t\t\treturn 'D';\n\t\tdefault:\n\t\t\treturn ' ';\n\t\t}\n\t}\n}",
"public class Main {\n\tprivate static Scanner sc=new Scanner(System.in);\n\tprivate static boolean[][] cards=new boolean[4][13];\n\tprivate static int n;\n\tpublic static void main (String[] args){\n\t\tn=sc.nextInt();\n\t\tsetAllCardsExist();\n\t\tprintMissingCards();\n\t}\n\tprivate static void setAllCardsExist(){\n\t\tfor(int i=0;i<n;i++){\n\t\t\tsetCardExist();\n\t\t}\n\t}\n\tprivate static void setCardExist(){\n\t\tchar shape=sc.next().charAt(0);\n\t\tint num=sc.nextInt();\n\t\tswitch(shape){\n\t\tcase 'S':\n\t\t\tcards[0][num-1]=true;\n\t\t\tbreak;\n\t\tcase 'H':\n\t\t\tcards[1][num-1]=true;\n\t\t\tbreak;\n\t\tcase 'C':\n\t\t\tcards[2][num-1]=true;\n\t\t\tbreak;\n\t\tcase 'D':\n\t\t\tcards[3][num-1]=true;\n\t\t\tbreak;\n\t\t}\n\t}\n\tprivate static void printMissingCards(){\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int j=0;j<13;j++){\n\t\t\t\tprintMissingCard(i,j);\n\t\t\t}\n\t\t}\n\t}\n\tprivate static void printMissingCard(int i,int j){\n\t\tif(cards[i][j]==false) System.out.println(getShape(i)+\" \"+(j+1));\n\t}\n\tprivate static char getShape(int i){\n\t\tswitch(i){\n\t\tcase 0:\n\t\t\treturn 'S';\n\t\tcase 1:\n\t\t\treturn 'H';\n\t\tcase 2:\n\t\t\treturn 'C';\n\t\tcase 3:\n\t\t\treturn 'D';\n\t\tdefault:\n\t\t\treturn ' ';\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
private static Scanner sc=new Scanner(System.in);
private static boolean[][] cards=new boolean[4][13];
private static int n;
public static void main (String[] args){
n=sc.nextInt();
setAllCardsExist();
printMissingCards();
}
private static void setAllCardsExist(){
for(int i=0;i<n;i++){
setCardExist();
}
}
private static void setCardExist(){
char shape=sc.next().charAt(0);
int num=sc.nextInt();
switch(shape){
case 'S':
cards[0][num-1]=true;
break;
case 'H':
cards[1][num-1]=true;
break;
case 'C':
cards[2][num-1]=true;
break;
case 'D':
cards[3][num-1]=true;
break;
}
}
private static void printMissingCards(){
for(int i=0;i<4;i++){
for(int j=0;j<13;j++){
printMissingCard(i,j);
}
}
}
private static void printMissingCard(int i,int j){
if(cards[i][j]==false) System.out.println(getShape(i)+" "+(j+1));
}
private static char getShape(int i){
switch(i){
case 0:
return 'S';
case 1:
return 'H';
case 2:
return 'C';
case 3:
return 'D';
default:
return ' ';
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
14,
4,
18,
18,
13,
17,
17,
30,
0,
18,
13,
2,
13,
17,
17,
14,
4,
18,
18,
13,
17,
17,
30,
0,
18,
13,
2,
13,
17,
17,
14,
4,
18,
18,
13,
17,
17,
30,
0,
18,
13,
2,
13,
17,
17,
14,
4,
18,
18,
13,
17,
17,
30,
0,
18,
13,
2,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
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
],
[
263,
11
],
[
263,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
20,
22
],
[
14,
24
],
[
24,
25
],
[
24,
26
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
14,
32
],
[
32,
33
],
[
32,
34
],
[
14,
36
],
[
36,
37
],
[
36,
38
],
[
14,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
45,
46
],
[
14,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
62,
67
],
[
59,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
73,
75
],
[
59,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
76,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
84,
90
],
[
76,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
91,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
99,
105
],
[
91,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
106,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
114,
120
],
[
106,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
121,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
132,
134
],
[
129,
135
],
[
14,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
141,
142
],
[
141,
143
],
[
136,
144
],
[
144,
145
],
[
145,
146
],
[
136,
147
],
[
148,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
149,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
155,
160
],
[
161,
161
],
[
161,
162
],
[
161,
163
],
[
161,
164
],
[
164,
165
],
[
164,
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
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
186,
191
],
[
192,
192
],
[
192,
193
],
[
192,
194
],
[
192,
195
],
[
195,
196
],
[
195,
197
],
[
14,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
198,
203
],
[
203,
204
],
[
203,
205
],
[
198,
206
],
[
206,
207
],
[
207,
208
],
[
198,
209
],
[
210,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
211,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
217,
222
],
[
223,
223
],
[
223,
224
],
[
223,
225
],
[
223,
226
],
[
226,
227
],
[
226,
228
],
[
14,
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
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
248,
253
],
[
254,
254
],
[
254,
255
],
[
254,
256
],
[
254,
257
],
[
257,
258
],
[
257,
259
],
[
12,
260
],
[
260,
261
],
[
0,
262
],
[
262,
263
],
[
262,
264
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args)throws IOException{\n\t\tint rank = 0;\n\t\tString[] look;\n\t\tboolean [] S = new boolean [13];\n\t\tboolean [] H = new boolean [13];\n\t\tboolean [] C = new boolean [13];\n\t\tboolean [] D = new boolean [13];\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint card = Integer.parseInt(br.readLine());\n\n\t\tfor(int i = 0; i < card; i++){\n\t\t\tlook = br.readLine().split(\" \");\n\t\t\trank = Integer.parseInt(look[1]);\n\n\t\t\tif(look[0].equals(\"S\")){\n\t\t\t\tS[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"H\")){\n\t\t\t\tH[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"C\")){\n\t\t\t\tC[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"D\")){\n\t\t\t\tD[rank - 1] = true;\n\t\t\t}\n\t\t}\n\t\tfor(int s = 0; s < 13; s++){\n\t\t\tif(!S[s]){\n\t\t\t\tSystem.out.println(\"S\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}\n\t\tfor(int s = 0; s < 13; s++){\n\t\t\tif(!H[s]){\n\t\t\t\tSystem.out.println(\"H\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}\n\t\tfor(int s = 0; s < 13; s++){\n\t\t\tif(!C[s]){\n\t\t\t\tSystem.out.println(\"C\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}\n\t\tfor(int s = 0; s < 13; s++){\n\t\t\tif(!D[s]){\n\t\t\t\tSystem.out.println(\"D\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args)throws IOException{\n\t\tint rank = 0;\n\t\tString[] look;\n\t\tboolean [] S = new boolean [13];\n\t\tboolean [] H = new boolean [13];\n\t\tboolean [] C = new boolean [13];\n\t\tboolean [] D = new boolean [13];\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint card = Integer.parseInt(br.readLine());\n\n\t\tfor(int i = 0; i < card; i++){\n\t\t\tlook = br.readLine().split(\" \");\n\t\t\trank = Integer.parseInt(look[1]);\n\n\t\t\tif(look[0].equals(\"S\")){\n\t\t\t\tS[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"H\")){\n\t\t\t\tH[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"C\")){\n\t\t\t\tC[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"D\")){\n\t\t\t\tD[rank - 1] = true;\n\t\t\t}\n\t\t}\n\t\tfor(int s = 0; s < 13; s++){\n\t\t\tif(!S[s]){\n\t\t\t\tSystem.out.println(\"S\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}\n\t\tfor(int s = 0; s < 13; s++){\n\t\t\tif(!H[s]){\n\t\t\t\tSystem.out.println(\"H\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}\n\t\tfor(int s = 0; s < 13; s++){\n\t\t\tif(!C[s]){\n\t\t\t\tSystem.out.println(\"C\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}\n\t\tfor(int s = 0; s < 13; s++){\n\t\t\tif(!D[s]){\n\t\t\t\tSystem.out.println(\"D\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args)throws IOException{\n\t\tint rank = 0;\n\t\tString[] look;\n\t\tboolean [] S = new boolean [13];\n\t\tboolean [] H = new boolean [13];\n\t\tboolean [] C = new boolean [13];\n\t\tboolean [] D = new boolean [13];\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint card = Integer.parseInt(br.readLine());\n\n\t\tfor(int i = 0; i < card; i++){\n\t\t\tlook = br.readLine().split(\" \");\n\t\t\trank = Integer.parseInt(look[1]);\n\n\t\t\tif(look[0].equals(\"S\")){\n\t\t\t\tS[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"H\")){\n\t\t\t\tH[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"C\")){\n\t\t\t\tC[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"D\")){\n\t\t\t\tD[rank - 1] = true;\n\t\t\t}\n\t\t}\n\t\tfor(int s = 0; s < 13; s++){\n\t\t\tif(!S[s]){\n\t\t\t\tSystem.out.println(\"S\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}\n\t\tfor(int s = 0; s < 13; s++){\n\t\t\tif(!H[s]){\n\t\t\t\tSystem.out.println(\"H\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}\n\t\tfor(int s = 0; s < 13; s++){\n\t\t\tif(!C[s]){\n\t\t\t\tSystem.out.println(\"C\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}\n\t\tfor(int s = 0; s < 13; s++){\n\t\t\tif(!D[s]){\n\t\t\t\tSystem.out.println(\"D\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tint rank = 0;\n\t\tString[] look;\n\t\tboolean [] S = new boolean [13];\n\t\tboolean [] H = new boolean [13];\n\t\tboolean [] C = new boolean [13];\n\t\tboolean [] D = new boolean [13];\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint card = Integer.parseInt(br.readLine());\n\n\t\tfor(int i = 0; i < card; i++){\n\t\t\tlook = br.readLine().split(\" \");\n\t\t\trank = Integer.parseInt(look[1]);\n\n\t\t\tif(look[0].equals(\"S\")){\n\t\t\t\tS[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"H\")){\n\t\t\t\tH[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"C\")){\n\t\t\t\tC[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"D\")){\n\t\t\t\tD[rank - 1] = true;\n\t\t\t}\n\t\t}\n\t\tfor(int s = 0; s < 13; s++){\n\t\t\tif(!S[s]){\n\t\t\t\tSystem.out.println(\"S\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}\n\t\tfor(int s = 0; s < 13; s++){\n\t\t\tif(!H[s]){\n\t\t\t\tSystem.out.println(\"H\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}\n\t\tfor(int s = 0; s < 13; s++){\n\t\t\tif(!C[s]){\n\t\t\t\tSystem.out.println(\"C\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}\n\t\tfor(int s = 0; s < 13; s++){\n\t\t\tif(!D[s]){\n\t\t\t\tSystem.out.println(\"D\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}\n\t}",
"int rank = 0;",
"rank",
"0",
"String[] look;",
"look",
"boolean [] S = new boolean [13];",
"S",
"new boolean [13]",
"13",
"boolean [] H = new boolean [13];",
"H",
"new boolean [13]",
"13",
"boolean [] C = new boolean [13];",
"C",
"new boolean [13]",
"13",
"boolean [] D = new boolean [13];",
"D",
"new boolean [13]",
"13",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int card = Integer.parseInt(br.readLine());",
"card",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int i = 0; i < card; i++){\n\t\t\tlook = br.readLine().split(\" \");\n\t\t\trank = Integer.parseInt(look[1]);\n\n\t\t\tif(look[0].equals(\"S\")){\n\t\t\t\tS[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"H\")){\n\t\t\t\tH[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"C\")){\n\t\t\t\tC[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"D\")){\n\t\t\t\tD[rank - 1] = true;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < card",
"i",
"card",
"i++",
"i++",
"i",
"{\n\t\t\tlook = br.readLine().split(\" \");\n\t\t\trank = Integer.parseInt(look[1]);\n\n\t\t\tif(look[0].equals(\"S\")){\n\t\t\t\tS[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"H\")){\n\t\t\t\tH[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"C\")){\n\t\t\t\tC[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"D\")){\n\t\t\t\tD[rank - 1] = true;\n\t\t\t}\n\t\t}",
"{\n\t\t\tlook = br.readLine().split(\" \");\n\t\t\trank = Integer.parseInt(look[1]);\n\n\t\t\tif(look[0].equals(\"S\")){\n\t\t\t\tS[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"H\")){\n\t\t\t\tH[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"C\")){\n\t\t\t\tC[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"D\")){\n\t\t\t\tD[rank - 1] = true;\n\t\t\t}\n\t\t}",
"look = br.readLine().split(\" \")",
"look",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"rank = Integer.parseInt(look[1])",
"rank",
"Integer.parseInt(look[1])",
"Integer.parseInt",
"Integer",
"look[1]",
"look",
"1",
"if(look[0].equals(\"S\")){\n\t\t\t\tS[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"H\")){\n\t\t\t\tH[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"C\")){\n\t\t\t\tC[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"D\")){\n\t\t\t\tD[rank - 1] = true;\n\t\t\t}",
"look[0].equals(\"S\")",
"look[0].equals",
"look[0]",
"look",
"0",
"\"S\"",
"{\n\t\t\t\tS[rank - 1] = true;\n\t\t\t}",
"S[rank - 1] = true",
"S[rank - 1]",
"S",
"rank - 1",
"rank",
"1",
"true",
"if(look[0].equals(\"H\")){\n\t\t\t\tH[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"C\")){\n\t\t\t\tC[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"D\")){\n\t\t\t\tD[rank - 1] = true;\n\t\t\t}",
"look[0].equals(\"H\")",
"look[0].equals",
"look[0]",
"look",
"0",
"\"H\"",
"{\n\t\t\t\tH[rank - 1] = true;\n\t\t\t}",
"H[rank - 1] = true",
"H[rank - 1]",
"H",
"rank - 1",
"rank",
"1",
"true",
"if(look[0].equals(\"C\")){\n\t\t\t\tC[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"D\")){\n\t\t\t\tD[rank - 1] = true;\n\t\t\t}",
"look[0].equals(\"C\")",
"look[0].equals",
"look[0]",
"look",
"0",
"\"C\"",
"{\n\t\t\t\tC[rank - 1] = true;\n\t\t\t}",
"C[rank - 1] = true",
"C[rank - 1]",
"C",
"rank - 1",
"rank",
"1",
"true",
"if(look[0].equals(\"D\")){\n\t\t\t\tD[rank - 1] = true;\n\t\t\t}",
"look[0].equals(\"D\")",
"look[0].equals",
"look[0]",
"look",
"0",
"\"D\"",
"{\n\t\t\t\tD[rank - 1] = true;\n\t\t\t}",
"D[rank - 1] = true",
"D[rank - 1]",
"D",
"rank - 1",
"rank",
"1",
"true",
"for(int s = 0; s < 13; s++){\n\t\t\tif(!S[s]){\n\t\t\t\tSystem.out.println(\"S\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}",
"int s = 0;",
"int s = 0;",
"s",
"0",
"s < 13",
"s",
"13",
"s++",
"s++",
"s",
"{\n\t\t\tif(!S[s]){\n\t\t\t\tSystem.out.println(\"S\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(!S[s]){\n\t\t\t\tSystem.out.println(\"S\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}",
"if(!S[s]){\n\t\t\t\tSystem.out.println(\"S\" + \" \" + (s + 1));\n\t\t\t}",
"!S[s]",
"S[s]",
"S",
"s",
"{\n\t\t\t\tSystem.out.println(\"S\" + \" \" + (s + 1));\n\t\t\t}",
"System.out.println(\"S\" + \" \" + (s + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S\" + \" \" + (s + 1)",
"\"S\" + \" \" + (s + 1)",
"\"S\"",
"\" \"",
"(s + 1)",
"s",
"1",
"for(int s = 0; s < 13; s++){\n\t\t\tif(!H[s]){\n\t\t\t\tSystem.out.println(\"H\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}",
"int s = 0;",
"int s = 0;",
"s",
"0",
"s < 13",
"s",
"13",
"s++",
"s++",
"s",
"{\n\t\t\tif(!H[s]){\n\t\t\t\tSystem.out.println(\"H\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(!H[s]){\n\t\t\t\tSystem.out.println(\"H\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}",
"if(!H[s]){\n\t\t\t\tSystem.out.println(\"H\" + \" \" + (s + 1));\n\t\t\t}",
"!H[s]",
"H[s]",
"H",
"s",
"{\n\t\t\t\tSystem.out.println(\"H\" + \" \" + (s + 1));\n\t\t\t}",
"System.out.println(\"H\" + \" \" + (s + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H\" + \" \" + (s + 1)",
"\"H\" + \" \" + (s + 1)",
"\"H\"",
"\" \"",
"(s + 1)",
"s",
"1",
"for(int s = 0; s < 13; s++){\n\t\t\tif(!C[s]){\n\t\t\t\tSystem.out.println(\"C\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}",
"int s = 0;",
"int s = 0;",
"s",
"0",
"s < 13",
"s",
"13",
"s++",
"s++",
"s",
"{\n\t\t\tif(!C[s]){\n\t\t\t\tSystem.out.println(\"C\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(!C[s]){\n\t\t\t\tSystem.out.println(\"C\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}",
"if(!C[s]){\n\t\t\t\tSystem.out.println(\"C\" + \" \" + (s + 1));\n\t\t\t}",
"!C[s]",
"C[s]",
"C",
"s",
"{\n\t\t\t\tSystem.out.println(\"C\" + \" \" + (s + 1));\n\t\t\t}",
"System.out.println(\"C\" + \" \" + (s + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C\" + \" \" + (s + 1)",
"\"C\" + \" \" + (s + 1)",
"\"C\"",
"\" \"",
"(s + 1)",
"s",
"1",
"for(int s = 0; s < 13; s++){\n\t\t\tif(!D[s]){\n\t\t\t\tSystem.out.println(\"D\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}",
"int s = 0;",
"int s = 0;",
"s",
"0",
"s < 13",
"s",
"13",
"s++",
"s++",
"s",
"{\n\t\t\tif(!D[s]){\n\t\t\t\tSystem.out.println(\"D\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(!D[s]){\n\t\t\t\tSystem.out.println(\"D\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}",
"if(!D[s]){\n\t\t\t\tSystem.out.println(\"D\" + \" \" + (s + 1));\n\t\t\t}",
"!D[s]",
"D[s]",
"D",
"s",
"{\n\t\t\t\tSystem.out.println(\"D\" + \" \" + (s + 1));\n\t\t\t}",
"System.out.println(\"D\" + \" \" + (s + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D\" + \" \" + (s + 1)",
"\"D\" + \" \" + (s + 1)",
"\"D\"",
"\" \"",
"(s + 1)",
"s",
"1",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args)throws IOException{\n\t\tint rank = 0;\n\t\tString[] look;\n\t\tboolean [] S = new boolean [13];\n\t\tboolean [] H = new boolean [13];\n\t\tboolean [] C = new boolean [13];\n\t\tboolean [] D = new boolean [13];\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint card = Integer.parseInt(br.readLine());\n\n\t\tfor(int i = 0; i < card; i++){\n\t\t\tlook = br.readLine().split(\" \");\n\t\t\trank = Integer.parseInt(look[1]);\n\n\t\t\tif(look[0].equals(\"S\")){\n\t\t\t\tS[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"H\")){\n\t\t\t\tH[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"C\")){\n\t\t\t\tC[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"D\")){\n\t\t\t\tD[rank - 1] = true;\n\t\t\t}\n\t\t}\n\t\tfor(int s = 0; s < 13; s++){\n\t\t\tif(!S[s]){\n\t\t\t\tSystem.out.println(\"S\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}\n\t\tfor(int s = 0; s < 13; s++){\n\t\t\tif(!H[s]){\n\t\t\t\tSystem.out.println(\"H\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}\n\t\tfor(int s = 0; s < 13; s++){\n\t\t\tif(!C[s]){\n\t\t\t\tSystem.out.println(\"C\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}\n\t\tfor(int s = 0; s < 13; s++){\n\t\t\tif(!D[s]){\n\t\t\t\tSystem.out.println(\"D\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args)throws IOException{\n\t\tint rank = 0;\n\t\tString[] look;\n\t\tboolean [] S = new boolean [13];\n\t\tboolean [] H = new boolean [13];\n\t\tboolean [] C = new boolean [13];\n\t\tboolean [] D = new boolean [13];\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint card = Integer.parseInt(br.readLine());\n\n\t\tfor(int i = 0; i < card; i++){\n\t\t\tlook = br.readLine().split(\" \");\n\t\t\trank = Integer.parseInt(look[1]);\n\n\t\t\tif(look[0].equals(\"S\")){\n\t\t\t\tS[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"H\")){\n\t\t\t\tH[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"C\")){\n\t\t\t\tC[rank - 1] = true;\n\t\t\t}else if(look[0].equals(\"D\")){\n\t\t\t\tD[rank - 1] = true;\n\t\t\t}\n\t\t}\n\t\tfor(int s = 0; s < 13; s++){\n\t\t\tif(!S[s]){\n\t\t\t\tSystem.out.println(\"S\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}\n\t\tfor(int s = 0; s < 13; s++){\n\t\t\tif(!H[s]){\n\t\t\t\tSystem.out.println(\"H\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}\n\t\tfor(int s = 0; s < 13; s++){\n\t\t\tif(!C[s]){\n\t\t\t\tSystem.out.println(\"C\" + \" \" + (s + 1));\n\t\t\t}\n\t\t}\n\t\tfor(int s = 0; s < 13; s++){\n\t\t\tif(!D[s]){\n\t\t\t\tSystem.out.println(\"D\" + \" \" + (s + 1));\n\t\t\t}\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{
int rank = 0;
String[] look;
boolean [] S = new boolean [13];
boolean [] H = new boolean [13];
boolean [] C = new boolean [13];
boolean [] D = new boolean [13];
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int card = Integer.parseInt(br.readLine());
for(int i = 0; i < card; i++){
look = br.readLine().split(" ");
rank = Integer.parseInt(look[1]);
if(look[0].equals("S")){
S[rank - 1] = true;
}else if(look[0].equals("H")){
H[rank - 1] = true;
}else if(look[0].equals("C")){
C[rank - 1] = true;
}else if(look[0].equals("D")){
D[rank - 1] = true;
}
}
for(int s = 0; s < 13; s++){
if(!S[s]){
System.out.println("S" + " " + (s + 1));
}
}
for(int s = 0; s < 13; s++){
if(!H[s]){
System.out.println("H" + " " + (s + 1));
}
}
for(int s = 0; s < 13; s++){
if(!C[s]){
System.out.println("C" + " " + (s + 1));
}
}
for(int s = 0; s < 13; s++){
if(!D[s]){
System.out.println("D" + " " + (s + 1));
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
35,
18,
13,
17,
34,
17,
1,
0,
18,
13,
2,
4,
18,
13,
18,
13,
17,
17,
17,
3,
34,
17,
1,
0,
18,
13,
2,
4,
18,
13,
18,
13,
17,
17,
17,
3,
34,
17,
1,
0,
18,
13,
2,
4,
18,
13,
18,
13,
17,
17,
17,
3,
34,
17,
1,
0,
18,
13,
2,
4,
18,
13,
18,
13,
17,
17,
17,
3,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
14,
40,
18,
13,
13,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
14,
40,
18,
13,
13,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
14,
40,
18,
13,
13,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
14,
40,
18,
13,
13,
4,
18,
18,
13,
13,
2,
17,
2,
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,
25
],
[
25,
26
],
[
25,
27
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
17,
33
],
[
33,
34
],
[
33,
35
],
[
17,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
37,
41
],
[
17,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
42,
46
],
[
17,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
47,
51
],
[
17,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
52,
56
],
[
17,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
62,
63
],
[
63,
64
],
[
17,
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
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
100,
101
],
[
100,
102
],
[
96,
103
],
[
93,
104
],
[
92,
105
],
[
86,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
116,
117
],
[
116,
118
],
[
112,
119
],
[
109,
120
],
[
108,
121
],
[
86,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
132,
133
],
[
132,
134
],
[
128,
135
],
[
125,
136
],
[
124,
137
],
[
86,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
145,
148
],
[
148,
149
],
[
148,
150
],
[
144,
151
],
[
141,
152
],
[
140,
153
],
[
17,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
161,
163
],
[
154,
164
],
[
164,
165
],
[
165,
166
],
[
154,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
173,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
180,
182
],
[
17,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
183,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
190,
192
],
[
183,
193
],
[
193,
194
],
[
194,
195
],
[
183,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
197,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
202,
207
],
[
207,
208
],
[
207,
209
],
[
209,
210
],
[
209,
211
],
[
17,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
212,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
219,
221
],
[
212,
222
],
[
222,
223
],
[
223,
224
],
[
212,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
226,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
231,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
238,
240
],
[
17,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
243,
245
],
[
241,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
248,
250
],
[
241,
251
],
[
251,
252
],
[
252,
253
],
[
241,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
257,
258
],
[
257,
259
],
[
255,
260
],
[
260,
261
],
[
261,
262
],
[
262,
263
],
[
262,
264
],
[
260,
265
],
[
265,
266
],
[
265,
267
],
[
267,
268
],
[
267,
269
],
[
15,
270
],
[
270,
271
]
] | [
"import java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.io.BufferedReader;\nimport java.io.IOException;\n\nclass Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tboolean[] s = new boolean[13];\n\t\tboolean[] h = new boolean[13];\n\t\tboolean[] c = new boolean[13];\n\t\tboolean[] d = new boolean[13];\n\t\tArrays.fill(s, false);\n\t\tArrays.fill(h, false);\n\t\tArrays.fill(c, false);\n\t\tArrays.fill(d, false);\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] strAry = br.readLine().split(\" \");\n\t\t\tswitch (strAry[0]) {\n\t\t\tcase \"S\":\n\t\t\t\ts[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\th[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tc[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\td[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < s.length; i++) if (!s[i]) System.out.println(\"S \" + (i + 1));\n\t\tfor (int i = 0; i < h.length; i++) if (!h[i]) System.out.println(\"H \" + (i + 1));\n\t\tfor (int i = 0; i < c.length; i++) if (!c[i]) System.out.println(\"C \" + (i + 1));\n\t\tfor (int i = 0; i < d.length; i++) if (!d[i]) System.out.println(\"D \" + (i + 1));\n\t}\n}",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tboolean[] s = new boolean[13];\n\t\tboolean[] h = new boolean[13];\n\t\tboolean[] c = new boolean[13];\n\t\tboolean[] d = new boolean[13];\n\t\tArrays.fill(s, false);\n\t\tArrays.fill(h, false);\n\t\tArrays.fill(c, false);\n\t\tArrays.fill(d, false);\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] strAry = br.readLine().split(\" \");\n\t\t\tswitch (strAry[0]) {\n\t\t\tcase \"S\":\n\t\t\t\ts[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\th[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tc[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\td[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < s.length; i++) if (!s[i]) System.out.println(\"S \" + (i + 1));\n\t\tfor (int i = 0; i < h.length; i++) if (!h[i]) System.out.println(\"H \" + (i + 1));\n\t\tfor (int i = 0; i < c.length; i++) if (!c[i]) System.out.println(\"C \" + (i + 1));\n\t\tfor (int i = 0; i < d.length; i++) if (!d[i]) System.out.println(\"D \" + (i + 1));\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tboolean[] s = new boolean[13];\n\t\tboolean[] h = new boolean[13];\n\t\tboolean[] c = new boolean[13];\n\t\tboolean[] d = new boolean[13];\n\t\tArrays.fill(s, false);\n\t\tArrays.fill(h, false);\n\t\tArrays.fill(c, false);\n\t\tArrays.fill(d, false);\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] strAry = br.readLine().split(\" \");\n\t\t\tswitch (strAry[0]) {\n\t\t\tcase \"S\":\n\t\t\t\ts[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\th[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tc[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\td[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < s.length; i++) if (!s[i]) System.out.println(\"S \" + (i + 1));\n\t\tfor (int i = 0; i < h.length; i++) if (!h[i]) System.out.println(\"H \" + (i + 1));\n\t\tfor (int i = 0; i < c.length; i++) if (!c[i]) System.out.println(\"C \" + (i + 1));\n\t\tfor (int i = 0; i < d.length; i++) if (!d[i]) System.out.println(\"D \" + (i + 1));\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tboolean[] s = new boolean[13];\n\t\tboolean[] h = new boolean[13];\n\t\tboolean[] c = new boolean[13];\n\t\tboolean[] d = new boolean[13];\n\t\tArrays.fill(s, false);\n\t\tArrays.fill(h, false);\n\t\tArrays.fill(c, false);\n\t\tArrays.fill(d, false);\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] strAry = br.readLine().split(\" \");\n\t\t\tswitch (strAry[0]) {\n\t\t\tcase \"S\":\n\t\t\t\ts[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\th[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tc[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\td[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < s.length; i++) if (!s[i]) System.out.println(\"S \" + (i + 1));\n\t\tfor (int i = 0; i < h.length; i++) if (!h[i]) System.out.println(\"H \" + (i + 1));\n\t\tfor (int i = 0; i < c.length; i++) if (!c[i]) System.out.println(\"C \" + (i + 1));\n\t\tfor (int i = 0; i < d.length; i++) if (!d[i]) System.out.println(\"D \" + (i + 1));\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"boolean[] s = new boolean[13];",
"s",
"new boolean[13]",
"13",
"boolean[] h = new boolean[13];",
"h",
"new boolean[13]",
"13",
"boolean[] c = new boolean[13];",
"c",
"new boolean[13]",
"13",
"boolean[] d = new boolean[13];",
"d",
"new boolean[13]",
"13",
"Arrays.fill(s, false)",
"Arrays.fill",
"Arrays",
"s",
"false",
"Arrays.fill(h, false)",
"Arrays.fill",
"Arrays",
"h",
"false",
"Arrays.fill(c, false)",
"Arrays.fill",
"Arrays",
"c",
"false",
"Arrays.fill(d, false)",
"Arrays.fill",
"Arrays",
"d",
"false",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for (int i = 0; i < n; i++) {\n\t\t\tString[] strAry = br.readLine().split(\" \");\n\t\t\tswitch (strAry[0]) {\n\t\t\tcase \"S\":\n\t\t\t\ts[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\th[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tc[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\td[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\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[] strAry = br.readLine().split(\" \");\n\t\t\tswitch (strAry[0]) {\n\t\t\tcase \"S\":\n\t\t\t\ts[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\th[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tc[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\td[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] strAry = br.readLine().split(\" \");\n\t\t\tswitch (strAry[0]) {\n\t\t\tcase \"S\":\n\t\t\t\ts[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\th[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tc[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\td[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"String[] strAry = br.readLine().split(\" \");",
"strAry",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"switch (strAry[0]) {\n\t\t\tcase \"S\":\n\t\t\t\ts[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\th[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tc[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\td[Integer.parseInt(strAry[1]) - 1] = true;\n\t\t\t\tbreak;\n\t\t\t}",
"strAry[0]",
"strAry",
"0",
"case \"S\":",
"\"S\"",
"case \"S\":",
"s[Integer.parseInt(strAry[1]) - 1] = true",
"s[Integer.parseInt(strAry[1]) - 1]",
"s",
"Integer.parseInt(strAry[1]) - 1",
"Integer.parseInt(strAry[1])",
"Integer.parseInt",
"Integer",
"strAry[1]",
"strAry",
"1",
"1",
"true",
"break;",
"case \"H\":",
"\"H\"",
"case \"H\":",
"h[Integer.parseInt(strAry[1]) - 1] = true",
"h[Integer.parseInt(strAry[1]) - 1]",
"h",
"Integer.parseInt(strAry[1]) - 1",
"Integer.parseInt(strAry[1])",
"Integer.parseInt",
"Integer",
"strAry[1]",
"strAry",
"1",
"1",
"true",
"break;",
"case \"C\":",
"\"C\"",
"case \"C\":",
"c[Integer.parseInt(strAry[1]) - 1] = true",
"c[Integer.parseInt(strAry[1]) - 1]",
"c",
"Integer.parseInt(strAry[1]) - 1",
"Integer.parseInt(strAry[1])",
"Integer.parseInt",
"Integer",
"strAry[1]",
"strAry",
"1",
"1",
"true",
"break;",
"case \"D\":",
"\"D\"",
"case \"D\":",
"d[Integer.parseInt(strAry[1]) - 1] = true",
"d[Integer.parseInt(strAry[1]) - 1]",
"d",
"Integer.parseInt(strAry[1]) - 1",
"Integer.parseInt(strAry[1])",
"Integer.parseInt",
"Integer",
"strAry[1]",
"strAry",
"1",
"1",
"true",
"break;",
"for (int i = 0; i < s.length; i++) if (!s[i]) System.out.println(\"S \" + (i + 1));",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.length",
"i",
"s.length",
"s",
"s.length",
"i++",
"i++",
"i",
"if (!s[i]) System.out.println(\"S \" + (i + 1));",
"if (!s[i]) System.out.println(\"S \" + (i + 1));",
"!s[i]",
"s[i]",
"s",
"i",
"System.out.println(\"S \" + (i + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \" + (i + 1)",
"\"S \"",
"(i + 1)",
"i",
"1",
"for (int i = 0; i < h.length; i++) if (!h[i]) System.out.println(\"H \" + (i + 1));",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < h.length",
"i",
"h.length",
"h",
"h.length",
"i++",
"i++",
"i",
"if (!h[i]) System.out.println(\"H \" + (i + 1));",
"if (!h[i]) System.out.println(\"H \" + (i + 1));",
"!h[i]",
"h[i]",
"h",
"i",
"System.out.println(\"H \" + (i + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \" + (i + 1)",
"\"H \"",
"(i + 1)",
"i",
"1",
"for (int i = 0; i < c.length; i++) if (!c[i]) System.out.println(\"C \" + (i + 1));",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < c.length",
"i",
"c.length",
"c",
"c.length",
"i++",
"i++",
"i",
"if (!c[i]) System.out.println(\"C \" + (i + 1));",
"if (!c[i]) System.out.println(\"C \" + (i + 1));",
"!c[i]",
"c[i]",
"c",
"i",
"System.out.println(\"C \" + (i + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \" + (i + 1)",
"\"C \"",
"(i + 1)",
"i",
"1",
"for (int i = 0; i < d.length; i++) if (!d[i]) System.out.println(\"D \" + (i + 1));",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < d.length",
"i",
"d.length",
"d",
"d.length",
"i++",
"i++",
"i",
"if (!d[i]) System.out.println(\"D \" + (i + 1));",
"if (!d[i]) System.out.println(\"D \" + (i + 1));",
"!d[i]",
"d[i]",
"d",
"i",
"System.out.println(\"D \" + (i + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \" + (i + 1)",
"\"D \"",
"(i + 1)",
"i",
"1",
"String[] args",
"args"
] | import java.io.InputStreamReader;
import java.util.Arrays;
import java.io.BufferedReader;
import java.io.IOException;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
boolean[] s = new boolean[13];
boolean[] h = new boolean[13];
boolean[] c = new boolean[13];
boolean[] d = new boolean[13];
Arrays.fill(s, false);
Arrays.fill(h, false);
Arrays.fill(c, false);
Arrays.fill(d, false);
int n = Integer.parseInt(br.readLine());
for (int i = 0; i < n; i++) {
String[] strAry = br.readLine().split(" ");
switch (strAry[0]) {
case "S":
s[Integer.parseInt(strAry[1]) - 1] = true;
break;
case "H":
h[Integer.parseInt(strAry[1]) - 1] = true;
break;
case "C":
c[Integer.parseInt(strAry[1]) - 1] = true;
break;
case "D":
d[Integer.parseInt(strAry[1]) - 1] = true;
break;
}
}
for (int i = 0; i < s.length; i++) if (!s[i]) System.out.println("S " + (i + 1));
for (int i = 0; i < h.length; i++) if (!h[i]) System.out.println("H " + (i + 1));
for (int i = 0; i < c.length; i++) if (!c[i]) System.out.println("C " + (i + 1));
for (int i = 0; i < d.length; i++) if (!d[i]) System.out.println("D " + (i + 1));
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
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,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
17,
13,
0,
18,
18,
13,
17,
13,
17,
14,
4,
18,
17,
13,
0,
18,
18,
13,
17,
13,
17,
14,
4,
18,
17,
13,
0,
18,
18,
13,
17,
13,
17,
14,
4,
18,
17,
13,
0,
18,
18,
13,
17,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
48,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
67,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
78,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
83,
89
],
[
67,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
90,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
95,
101
],
[
67,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
102,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
107,
113
],
[
67,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
114,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
119,
125
],
[
8,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
126,
134
],
[
134,
135
],
[
135,
136
],
[
126,
137
],
[
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
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
153,
159
],
[
152,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
165,
170
],
[
160,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
175,
180
],
[
160,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
185,
190
],
[
160,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
195,
200
],
[
160,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
201,
206
],
[
6,
207
],
[
207,
208
]
] | [
"import java.util.Scanner;\nclass Main{\npublic static void main(String[] args){\nScanner scan=new Scanner(System.in);\nint a=scan.nextInt();\nint[][] c=new int[4][14];\nfor(int x=0;x<4;x++){\nfor(int y=1;y<14;y++){\nc[x][y]=0;\n}\n}\nfor(int b=0;b<a;b++){\nString d=scan.next();\nint e=scan.nextInt();\nif(\"S\".equals(d))\nc[0][e]=1;\nif(\"H\".equals(d))\nc[1][e]=1;\nif(\"C\".equals(d))\nc[2][e]=1;\nif(\"D\".equals(d))\nc[3][e]=1;\n}\nfor(int x=0;x<4;x++){\nfor(int y=1;y<14;y++){\nif(c[x][y]==0){\nif(x==0)\nSystem.out.print(\"S \");\nif(x==1)\nSystem.out.print(\"H \");\nif(x==2)\nSystem.out.print(\"C \");\nif(x==3)\nSystem.out.print(\"D \");\nSystem.out.println(y);\n\n}\n}\n}\n}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\npublic static void main(String[] args){\nScanner scan=new Scanner(System.in);\nint a=scan.nextInt();\nint[][] c=new int[4][14];\nfor(int x=0;x<4;x++){\nfor(int y=1;y<14;y++){\nc[x][y]=0;\n}\n}\nfor(int b=0;b<a;b++){\nString d=scan.next();\nint e=scan.nextInt();\nif(\"S\".equals(d))\nc[0][e]=1;\nif(\"H\".equals(d))\nc[1][e]=1;\nif(\"C\".equals(d))\nc[2][e]=1;\nif(\"D\".equals(d))\nc[3][e]=1;\n}\nfor(int x=0;x<4;x++){\nfor(int y=1;y<14;y++){\nif(c[x][y]==0){\nif(x==0)\nSystem.out.print(\"S \");\nif(x==1)\nSystem.out.print(\"H \");\nif(x==2)\nSystem.out.print(\"C \");\nif(x==3)\nSystem.out.print(\"D \");\nSystem.out.println(y);\n\n}\n}\n}\n}\n}",
"Main",
"public static void main(String[] args){\nScanner scan=new Scanner(System.in);\nint a=scan.nextInt();\nint[][] c=new int[4][14];\nfor(int x=0;x<4;x++){\nfor(int y=1;y<14;y++){\nc[x][y]=0;\n}\n}\nfor(int b=0;b<a;b++){\nString d=scan.next();\nint e=scan.nextInt();\nif(\"S\".equals(d))\nc[0][e]=1;\nif(\"H\".equals(d))\nc[1][e]=1;\nif(\"C\".equals(d))\nc[2][e]=1;\nif(\"D\".equals(d))\nc[3][e]=1;\n}\nfor(int x=0;x<4;x++){\nfor(int y=1;y<14;y++){\nif(c[x][y]==0){\nif(x==0)\nSystem.out.print(\"S \");\nif(x==1)\nSystem.out.print(\"H \");\nif(x==2)\nSystem.out.print(\"C \");\nif(x==3)\nSystem.out.print(\"D \");\nSystem.out.println(y);\n\n}\n}\n}\n}",
"main",
"{\nScanner scan=new Scanner(System.in);\nint a=scan.nextInt();\nint[][] c=new int[4][14];\nfor(int x=0;x<4;x++){\nfor(int y=1;y<14;y++){\nc[x][y]=0;\n}\n}\nfor(int b=0;b<a;b++){\nString d=scan.next();\nint e=scan.nextInt();\nif(\"S\".equals(d))\nc[0][e]=1;\nif(\"H\".equals(d))\nc[1][e]=1;\nif(\"C\".equals(d))\nc[2][e]=1;\nif(\"D\".equals(d))\nc[3][e]=1;\n}\nfor(int x=0;x<4;x++){\nfor(int y=1;y<14;y++){\nif(c[x][y]==0){\nif(x==0)\nSystem.out.print(\"S \");\nif(x==1)\nSystem.out.print(\"H \");\nif(x==2)\nSystem.out.print(\"C \");\nif(x==3)\nSystem.out.print(\"D \");\nSystem.out.println(y);\n\n}\n}\n}\n}",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int a=scan.nextInt();",
"a",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[][] c=new int[4][14];",
"c",
"new int[4][14]",
"4",
"14",
"for(int x=0;x<4;x++){\nfor(int y=1;y<14;y++){\nc[x][y]=0;\n}\n}",
"int x=0;",
"int x=0;",
"x",
"0",
"x<4",
"x",
"4",
"x++",
"x++",
"x",
"{\nfor(int y=1;y<14;y++){\nc[x][y]=0;\n}\n}",
"{\nfor(int y=1;y<14;y++){\nc[x][y]=0;\n}\n}",
"for(int y=1;y<14;y++){\nc[x][y]=0;\n}",
"int y=1;",
"int y=1;",
"y",
"1",
"y<14",
"y",
"14",
"y++",
"y++",
"y",
"{\nc[x][y]=0;\n}",
"{\nc[x][y]=0;\n}",
"c[x][y]=0",
"c[x][y]",
"c[x]",
"c",
"x",
"y",
"0",
"for(int b=0;b<a;b++){\nString d=scan.next();\nint e=scan.nextInt();\nif(\"S\".equals(d))\nc[0][e]=1;\nif(\"H\".equals(d))\nc[1][e]=1;\nif(\"C\".equals(d))\nc[2][e]=1;\nif(\"D\".equals(d))\nc[3][e]=1;\n}",
"int b=0;",
"int b=0;",
"b",
"0",
"b<a",
"b",
"a",
"b++",
"b++",
"b",
"{\nString d=scan.next();\nint e=scan.nextInt();\nif(\"S\".equals(d))\nc[0][e]=1;\nif(\"H\".equals(d))\nc[1][e]=1;\nif(\"C\".equals(d))\nc[2][e]=1;\nif(\"D\".equals(d))\nc[3][e]=1;\n}",
"{\nString d=scan.next();\nint e=scan.nextInt();\nif(\"S\".equals(d))\nc[0][e]=1;\nif(\"H\".equals(d))\nc[1][e]=1;\nif(\"C\".equals(d))\nc[2][e]=1;\nif(\"D\".equals(d))\nc[3][e]=1;\n}",
"String d=scan.next();",
"d",
"scan.next()",
"scan.next",
"scan",
"int e=scan.nextInt();",
"e",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(\"S\".equals(d))\nc[0][e]=1;",
"\"S\".equals(d)",
"\"S\".equals",
"\"S\"",
"d",
"c[0][e]=1",
"c[0][e]",
"c[0]",
"c",
"0",
"e",
"1",
"if(\"H\".equals(d))\nc[1][e]=1;",
"\"H\".equals(d)",
"\"H\".equals",
"\"H\"",
"d",
"c[1][e]=1",
"c[1][e]",
"c[1]",
"c",
"1",
"e",
"1",
"if(\"C\".equals(d))\nc[2][e]=1;",
"\"C\".equals(d)",
"\"C\".equals",
"\"C\"",
"d",
"c[2][e]=1",
"c[2][e]",
"c[2]",
"c",
"2",
"e",
"1",
"if(\"D\".equals(d))\nc[3][e]=1;",
"\"D\".equals(d)",
"\"D\".equals",
"\"D\"",
"d",
"c[3][e]=1",
"c[3][e]",
"c[3]",
"c",
"3",
"e",
"1",
"for(int x=0;x<4;x++){\nfor(int y=1;y<14;y++){\nif(c[x][y]==0){\nif(x==0)\nSystem.out.print(\"S \");\nif(x==1)\nSystem.out.print(\"H \");\nif(x==2)\nSystem.out.print(\"C \");\nif(x==3)\nSystem.out.print(\"D \");\nSystem.out.println(y);\n\n}\n}\n}",
"int x=0;",
"int x=0;",
"x",
"0",
"x<4",
"x",
"4",
"x++",
"x++",
"x",
"{\nfor(int y=1;y<14;y++){\nif(c[x][y]==0){\nif(x==0)\nSystem.out.print(\"S \");\nif(x==1)\nSystem.out.print(\"H \");\nif(x==2)\nSystem.out.print(\"C \");\nif(x==3)\nSystem.out.print(\"D \");\nSystem.out.println(y);\n\n}\n}\n}",
"{\nfor(int y=1;y<14;y++){\nif(c[x][y]==0){\nif(x==0)\nSystem.out.print(\"S \");\nif(x==1)\nSystem.out.print(\"H \");\nif(x==2)\nSystem.out.print(\"C \");\nif(x==3)\nSystem.out.print(\"D \");\nSystem.out.println(y);\n\n}\n}\n}",
"for(int y=1;y<14;y++){\nif(c[x][y]==0){\nif(x==0)\nSystem.out.print(\"S \");\nif(x==1)\nSystem.out.print(\"H \");\nif(x==2)\nSystem.out.print(\"C \");\nif(x==3)\nSystem.out.print(\"D \");\nSystem.out.println(y);\n\n}\n}",
"int y=1;",
"int y=1;",
"y",
"1",
"y<14",
"y",
"14",
"y++",
"y++",
"y",
"{\nif(c[x][y]==0){\nif(x==0)\nSystem.out.print(\"S \");\nif(x==1)\nSystem.out.print(\"H \");\nif(x==2)\nSystem.out.print(\"C \");\nif(x==3)\nSystem.out.print(\"D \");\nSystem.out.println(y);\n\n}\n}",
"{\nif(c[x][y]==0){\nif(x==0)\nSystem.out.print(\"S \");\nif(x==1)\nSystem.out.print(\"H \");\nif(x==2)\nSystem.out.print(\"C \");\nif(x==3)\nSystem.out.print(\"D \");\nSystem.out.println(y);\n\n}\n}",
"if(c[x][y]==0){\nif(x==0)\nSystem.out.print(\"S \");\nif(x==1)\nSystem.out.print(\"H \");\nif(x==2)\nSystem.out.print(\"C \");\nif(x==3)\nSystem.out.print(\"D \");\nSystem.out.println(y);\n\n}",
"c[x][y]==0",
"c[x][y]",
"c[x]",
"c",
"x",
"y",
"0",
"{\nif(x==0)\nSystem.out.print(\"S \");\nif(x==1)\nSystem.out.print(\"H \");\nif(x==2)\nSystem.out.print(\"C \");\nif(x==3)\nSystem.out.print(\"D \");\nSystem.out.println(y);\n\n}",
"if(x==0)\nSystem.out.print(\"S \");",
"x==0",
"x",
"0",
"System.out.print(\"S \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"S \"",
"if(x==1)\nSystem.out.print(\"H \");",
"x==1",
"x",
"1",
"System.out.print(\"H \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"H \"",
"if(x==2)\nSystem.out.print(\"C \");",
"x==2",
"x",
"2",
"System.out.print(\"C \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"C \"",
"if(x==3)\nSystem.out.print(\"D \");",
"x==3",
"x",
"3",
"System.out.print(\"D \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"D \"",
"System.out.println(y)",
"System.out.println",
"System.out",
"System",
"System.out",
"y",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int a=scan.nextInt();
int[][] c=new int[4][14];
for(int x=0;x<4;x++){
for(int y=1;y<14;y++){
c[x][y]=0;
}
}
for(int b=0;b<a;b++){
String d=scan.next();
int e=scan.nextInt();
if("S".equals(d))
c[0][e]=1;
if("H".equals(d))
c[1][e]=1;
if("C".equals(d))
c[2][e]=1;
if("D".equals(d))
c[3][e]=1;
}
for(int x=0;x<4;x++){
for(int y=1;y<14;y++){
if(c[x][y]==0){
if(x==0)
System.out.print("S ");
if(x==1)
System.out.print("H ");
if(x==2)
System.out.print("C ");
if(x==3)
System.out.print("D ");
System.out.println(y);
}
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
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,
41,
13,
4,
18,
13,
18,
13,
17,
35,
18,
13,
17,
34,
17,
1,
0,
18,
13,
13,
17,
3,
34,
17,
1,
0,
18,
13,
13,
17,
3,
34,
17,
1,
0,
18,
13,
13,
17,
3,
34,
17,
1,
0,
18,
13,
13,
17,
3,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
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
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
48,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
48,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
65,
67
],
[
48,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
74,
80
],
[
68,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
83,
89
],
[
68,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
92,
98
],
[
68,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
101,
107
],
[
8,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
113,
114
],
[
113,
115
],
[
108,
116
],
[
116,
117
],
[
117,
118
],
[
108,
119
],
[
120,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
121,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
133,
134
],
[
133,
135
],
[
8,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
141,
142
],
[
141,
143
],
[
136,
144
],
[
144,
145
],
[
145,
146
],
[
136,
147
],
[
148,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
149,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
156,
161
],
[
161,
162
],
[
161,
163
],
[
8,
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
],
[
178,
182
],
[
177,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
184,
189
],
[
189,
190
],
[
189,
191
],
[
8,
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
],
[
206,
210
],
[
205,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
212,
217
],
[
217,
218
],
[
217,
219
],
[
6,
220
],
[
220,
221
]
] | [
"import java.io.*;\n\nclass Main {\n\tpublic static void main(String args[]) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n_cards = Integer.parseInt(br.readLine());\n\t\t\n\t\tboolean[] S = new boolean[14];\n\t\tboolean[] H = new boolean[14];\n\t\tboolean[] C = new boolean[14];\n\t\tboolean[] D = new boolean[14];\n\t\t\n\t\tfor (int i = 0; i < n_cards; i++) {\n\t\t\tString sz_input = br.readLine();\n\t\t\tString[] sz_type = sz_input.split(\" \");\n\t\t\tint n_number = Integer.parseInt(sz_type[1]);\n\t\t\t\n\t\t\tswitch (sz_type[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tS[n_number] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tH[n_number] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tC[n_number] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tD[n_number] = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\n\t\tfor (int i = 1; i < 14; i++) {\n\t\t\tif (S[i] == false) {\n\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 1; i < 14; i++) {\n\t\t\tif (H[i] == false) {\n\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 1; i < 14; i++) {\n\t\t\tif (C[i] == false) {\n\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 1; i < 14; i++) {\n\t\t\tif (D[i] == false) {\n\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t}\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 br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n_cards = Integer.parseInt(br.readLine());\n\t\t\n\t\tboolean[] S = new boolean[14];\n\t\tboolean[] H = new boolean[14];\n\t\tboolean[] C = new boolean[14];\n\t\tboolean[] D = new boolean[14];\n\t\t\n\t\tfor (int i = 0; i < n_cards; i++) {\n\t\t\tString sz_input = br.readLine();\n\t\t\tString[] sz_type = sz_input.split(\" \");\n\t\t\tint n_number = Integer.parseInt(sz_type[1]);\n\t\t\t\n\t\t\tswitch (sz_type[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tS[n_number] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tH[n_number] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tC[n_number] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tD[n_number] = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\n\t\tfor (int i = 1; i < 14; i++) {\n\t\t\tif (S[i] == false) {\n\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 1; i < 14; i++) {\n\t\t\tif (H[i] == false) {\n\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 1; i < 14; i++) {\n\t\t\tif (C[i] == false) {\n\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 1; i < 14; i++) {\n\t\t\tif (D[i] == false) {\n\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String args[]) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n_cards = Integer.parseInt(br.readLine());\n\t\t\n\t\tboolean[] S = new boolean[14];\n\t\tboolean[] H = new boolean[14];\n\t\tboolean[] C = new boolean[14];\n\t\tboolean[] D = new boolean[14];\n\t\t\n\t\tfor (int i = 0; i < n_cards; i++) {\n\t\t\tString sz_input = br.readLine();\n\t\t\tString[] sz_type = sz_input.split(\" \");\n\t\t\tint n_number = Integer.parseInt(sz_type[1]);\n\t\t\t\n\t\t\tswitch (sz_type[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tS[n_number] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tH[n_number] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tC[n_number] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tD[n_number] = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\n\t\tfor (int i = 1; i < 14; i++) {\n\t\t\tif (S[i] == false) {\n\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 1; i < 14; i++) {\n\t\t\tif (H[i] == false) {\n\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 1; i < 14; i++) {\n\t\t\tif (C[i] == false) {\n\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 1; i < 14; i++) {\n\t\t\tif (D[i] == false) {\n\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n_cards = Integer.parseInt(br.readLine());\n\t\t\n\t\tboolean[] S = new boolean[14];\n\t\tboolean[] H = new boolean[14];\n\t\tboolean[] C = new boolean[14];\n\t\tboolean[] D = new boolean[14];\n\t\t\n\t\tfor (int i = 0; i < n_cards; i++) {\n\t\t\tString sz_input = br.readLine();\n\t\t\tString[] sz_type = sz_input.split(\" \");\n\t\t\tint n_number = Integer.parseInt(sz_type[1]);\n\t\t\t\n\t\t\tswitch (sz_type[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tS[n_number] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tH[n_number] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tC[n_number] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tD[n_number] = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\n\t\tfor (int i = 1; i < 14; i++) {\n\t\t\tif (S[i] == false) {\n\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 1; i < 14; i++) {\n\t\t\tif (H[i] == false) {\n\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 1; i < 14; i++) {\n\t\t\tif (C[i] == false) {\n\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 1; i < 14; i++) {\n\t\t\tif (D[i] == false) {\n\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t}\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n_cards = Integer.parseInt(br.readLine());",
"n_cards",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"boolean[] S = new boolean[14];",
"S",
"new boolean[14]",
"14",
"boolean[] H = new boolean[14];",
"H",
"new boolean[14]",
"14",
"boolean[] C = new boolean[14];",
"C",
"new boolean[14]",
"14",
"boolean[] D = new boolean[14];",
"D",
"new boolean[14]",
"14",
"for (int i = 0; i < n_cards; i++) {\n\t\t\tString sz_input = br.readLine();\n\t\t\tString[] sz_type = sz_input.split(\" \");\n\t\t\tint n_number = Integer.parseInt(sz_type[1]);\n\t\t\t\n\t\t\tswitch (sz_type[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tS[n_number] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tH[n_number] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tC[n_number] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tD[n_number] = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n_cards",
"i",
"n_cards",
"i++",
"i++",
"i",
"{\n\t\t\tString sz_input = br.readLine();\n\t\t\tString[] sz_type = sz_input.split(\" \");\n\t\t\tint n_number = Integer.parseInt(sz_type[1]);\n\t\t\t\n\t\t\tswitch (sz_type[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tS[n_number] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tH[n_number] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tC[n_number] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tD[n_number] = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString sz_input = br.readLine();\n\t\t\tString[] sz_type = sz_input.split(\" \");\n\t\t\tint n_number = Integer.parseInt(sz_type[1]);\n\t\t\t\n\t\t\tswitch (sz_type[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tS[n_number] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tH[n_number] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tC[n_number] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tD[n_number] = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"String sz_input = br.readLine();",
"sz_input",
"br.readLine()",
"br.readLine",
"br",
"String[] sz_type = sz_input.split(\" \");",
"sz_type",
"sz_input.split(\" \")",
"sz_input.split",
"sz_input",
"\" \"",
"int n_number = Integer.parseInt(sz_type[1]);",
"n_number",
"Integer.parseInt(sz_type[1])",
"Integer.parseInt",
"Integer",
"sz_type[1]",
"sz_type",
"1",
"switch (sz_type[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tS[n_number] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tH[n_number] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tC[n_number] = true;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tD[n_number] = true;\n\t\t\t\tbreak;\n\t\t\t}",
"sz_type[0]",
"sz_type",
"0",
"case \"S\":",
"\"S\"",
"case \"S\":",
"S[n_number] = true",
"S[n_number]",
"S",
"n_number",
"true",
"break;",
"case \"H\":",
"\"H\"",
"case \"H\":",
"H[n_number] = true",
"H[n_number]",
"H",
"n_number",
"true",
"break;",
"case \"C\":",
"\"C\"",
"case \"C\":",
"C[n_number] = true",
"C[n_number]",
"C",
"n_number",
"true",
"break;",
"case \"D\":",
"\"D\"",
"case \"D\":",
"D[n_number] = true",
"D[n_number]",
"D",
"n_number",
"true",
"break;",
"for (int i = 1; i < 14; i++) {\n\t\t\tif (S[i] == false) {\n\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < 14",
"i",
"14",
"i++",
"i++",
"i",
"{\n\t\t\tif (S[i] == false) {\n\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (S[i] == false) {\n\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t}\n\t\t}",
"if (S[i] == false) {\n\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t}",
"S[i] == false",
"S[i]",
"S",
"i",
"false",
"{\n\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t}",
"System.out.println(\"S \" + i)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \" + i",
"\"S \"",
"i",
"for (int i = 1; i < 14; i++) {\n\t\t\tif (H[i] == false) {\n\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < 14",
"i",
"14",
"i++",
"i++",
"i",
"{\n\t\t\tif (H[i] == false) {\n\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (H[i] == false) {\n\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t}\n\t\t}",
"if (H[i] == false) {\n\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t}",
"H[i] == false",
"H[i]",
"H",
"i",
"false",
"{\n\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t}",
"System.out.println(\"H \" + i)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \" + i",
"\"H \"",
"i",
"for (int i = 1; i < 14; i++) {\n\t\t\tif (C[i] == false) {\n\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < 14",
"i",
"14",
"i++",
"i++",
"i",
"{\n\t\t\tif (C[i] == false) {\n\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (C[i] == false) {\n\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t}\n\t\t}",
"if (C[i] == false) {\n\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t}",
"C[i] == false",
"C[i]",
"C",
"i",
"false",
"{\n\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t}",
"System.out.println(\"C \" + i)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \" + i",
"\"C \"",
"i",
"for (int i = 1; i < 14; i++) {\n\t\t\tif (D[i] == false) {\n\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < 14",
"i",
"14",
"i++",
"i++",
"i",
"{\n\t\t\tif (D[i] == false) {\n\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (D[i] == false) {\n\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t}\n\t\t}",
"if (D[i] == false) {\n\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t}",
"D[i] == false",
"D[i]",
"D",
"i",
"false",
"{\n\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t}",
"System.out.println(\"D \" + i)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \" + i",
"\"D \"",
"i",
"String args[]",
"args"
] | import java.io.*;
class Main {
public static void main(String args[]) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n_cards = Integer.parseInt(br.readLine());
boolean[] S = new boolean[14];
boolean[] H = new boolean[14];
boolean[] C = new boolean[14];
boolean[] D = new boolean[14];
for (int i = 0; i < n_cards; i++) {
String sz_input = br.readLine();
String[] sz_type = sz_input.split(" ");
int n_number = Integer.parseInt(sz_type[1]);
switch (sz_type[0]) {
case "S":
S[n_number] = true;
break;
case "H":
H[n_number] = true;
break;
case "C":
C[n_number] = true;
break;
case "D":
D[n_number] = true;
break;
}
}
for (int i = 1; i < 14; i++) {
if (S[i] == false) {
System.out.println("S " + i);
}
}
for (int i = 1; i < 14; i++) {
if (H[i] == false) {
System.out.println("H " + i);
}
}
for (int i = 1; i < 14; i++) {
if (C[i] == false) {
System.out.println("C " + i);
}
}
for (int i = 1; i < 14; i++) {
if (D[i] == false) {
System.out.println("D " + i);
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
17,
17,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
41,
13,
39,
17,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
2,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
164,
5
],
[
164,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
34,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
34,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
45,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
45,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
60,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
60,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
75,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
86,
88
],
[
81,
89
],
[
75,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
90,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
101,
102
],
[
101,
103
],
[
96,
104
],
[
8,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
107,
109
],
[
107,
110
],
[
107,
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
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
139,
145
],
[
138,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
147,
152
],
[
153,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
153,
158
],
[
158,
159
],
[
158,
160
],
[
6,
161
],
[
161,
162
],
[
0,
163
],
[
163,
164
],
[
163,
165
]
] | [
"\n\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// 52????????????????????????\n\t\tint[][] cards = new int[4][13];\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint all_num = in.nextInt();\n\n\t\t// ?????????????????????????????????????´?\n\t\tfor(int i = 0; i < all_num; i++){\n\n\t\t\tString mark = in.next();\n\t\t\tint num = in.nextInt();\n\n\t\t\tif(mark.equals(\"S\")){\n\n\t\t\t\tcards[0][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"H\")) {\n\n\t\t\t\tcards[1][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"C\")) {\n\n\t\t\t\tcards[2][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"D\")) {\n\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}\n\t\t}\n\n\t\t// ????????¨?????????????????????????????????\n\t\tchar[] marks = {'S', 'H', 'C', 'D'};\n\n\t\t// ???????????????????????§?¶????????????????????????????\n\t\tfor(int i = 0; i < 4; i++) {\n\n\t\t\tfor(int j = 0; j < 13; j++) {\n\n\t\t\t\tif(cards[i][j] == 0){\n\n\t\t\t\t\tSystem.out.println(marks[i] + \" \" + (j + 1));\n\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\n\tpublic static void main(String[] args) {\n\n\t\t// 52????????????????????????\n\t\tint[][] cards = new int[4][13];\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint all_num = in.nextInt();\n\n\t\t// ?????????????????????????????????????´?\n\t\tfor(int i = 0; i < all_num; i++){\n\n\t\t\tString mark = in.next();\n\t\t\tint num = in.nextInt();\n\n\t\t\tif(mark.equals(\"S\")){\n\n\t\t\t\tcards[0][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"H\")) {\n\n\t\t\t\tcards[1][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"C\")) {\n\n\t\t\t\tcards[2][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"D\")) {\n\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}\n\t\t}\n\n\t\t// ????????¨?????????????????????????????????\n\t\tchar[] marks = {'S', 'H', 'C', 'D'};\n\n\t\t// ???????????????????????§?¶????????????????????????????\n\t\tfor(int i = 0; i < 4; i++) {\n\n\t\t\tfor(int j = 0; j < 13; j++) {\n\n\t\t\t\tif(cards[i][j] == 0){\n\n\t\t\t\t\tSystem.out.println(marks[i] + \" \" + (j + 1));\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\t// 52????????????????????????\n\t\tint[][] cards = new int[4][13];\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint all_num = in.nextInt();\n\n\t\t// ?????????????????????????????????????´?\n\t\tfor(int i = 0; i < all_num; i++){\n\n\t\t\tString mark = in.next();\n\t\t\tint num = in.nextInt();\n\n\t\t\tif(mark.equals(\"S\")){\n\n\t\t\t\tcards[0][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"H\")) {\n\n\t\t\t\tcards[1][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"C\")) {\n\n\t\t\t\tcards[2][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"D\")) {\n\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}\n\t\t}\n\n\t\t// ????????¨?????????????????????????????????\n\t\tchar[] marks = {'S', 'H', 'C', 'D'};\n\n\t\t// ???????????????????????§?¶????????????????????????????\n\t\tfor(int i = 0; i < 4; i++) {\n\n\t\t\tfor(int j = 0; j < 13; j++) {\n\n\t\t\t\tif(cards[i][j] == 0){\n\n\t\t\t\t\tSystem.out.println(marks[i] + \" \" + (j + 1));\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\n\t\t// 52????????????????????????\n\t\tint[][] cards = new int[4][13];\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint all_num = in.nextInt();\n\n\t\t// ?????????????????????????????????????´?\n\t\tfor(int i = 0; i < all_num; i++){\n\n\t\t\tString mark = in.next();\n\t\t\tint num = in.nextInt();\n\n\t\t\tif(mark.equals(\"S\")){\n\n\t\t\t\tcards[0][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"H\")) {\n\n\t\t\t\tcards[1][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"C\")) {\n\n\t\t\t\tcards[2][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"D\")) {\n\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}\n\t\t}\n\n\t\t// ????????¨?????????????????????????????????\n\t\tchar[] marks = {'S', 'H', 'C', 'D'};\n\n\t\t// ???????????????????????§?¶????????????????????????????\n\t\tfor(int i = 0; i < 4; i++) {\n\n\t\t\tfor(int j = 0; j < 13; j++) {\n\n\t\t\t\tif(cards[i][j] == 0){\n\n\t\t\t\t\tSystem.out.println(marks[i] + \" \" + (j + 1));\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"int[][] cards = new int[4][13];",
"cards",
"new int[4][13]",
"4",
"13",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int all_num = in.nextInt();",
"all_num",
"in.nextInt()",
"in.nextInt",
"in",
"for(int i = 0; i < all_num; i++){\n\n\t\t\tString mark = in.next();\n\t\t\tint num = in.nextInt();\n\n\t\t\tif(mark.equals(\"S\")){\n\n\t\t\t\tcards[0][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"H\")) {\n\n\t\t\t\tcards[1][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"C\")) {\n\n\t\t\t\tcards[2][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"D\")) {\n\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < all_num",
"i",
"all_num",
"i++",
"i++",
"i",
"{\n\n\t\t\tString mark = in.next();\n\t\t\tint num = in.nextInt();\n\n\t\t\tif(mark.equals(\"S\")){\n\n\t\t\t\tcards[0][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"H\")) {\n\n\t\t\t\tcards[1][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"C\")) {\n\n\t\t\t\tcards[2][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"D\")) {\n\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}\n\t\t}",
"{\n\n\t\t\tString mark = in.next();\n\t\t\tint num = in.nextInt();\n\n\t\t\tif(mark.equals(\"S\")){\n\n\t\t\t\tcards[0][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"H\")) {\n\n\t\t\t\tcards[1][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"C\")) {\n\n\t\t\t\tcards[2][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"D\")) {\n\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}\n\t\t}",
"String mark = in.next();",
"mark",
"in.next()",
"in.next",
"in",
"int num = in.nextInt();",
"num",
"in.nextInt()",
"in.nextInt",
"in",
"if(mark.equals(\"S\")){\n\n\t\t\t\tcards[0][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"H\")) {\n\n\t\t\t\tcards[1][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"C\")) {\n\n\t\t\t\tcards[2][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"D\")) {\n\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}",
"mark.equals(\"S\")",
"mark.equals",
"mark",
"\"S\"",
"{\n\n\t\t\t\tcards[0][num - 1] = 1;\n\n\t\t\t}",
"cards[0][num - 1] = 1",
"cards[0][num - 1]",
"cards[0]",
"cards",
"0",
"num - 1",
"num",
"1",
"1",
"if(mark.equals(\"H\")) {\n\n\t\t\t\tcards[1][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"C\")) {\n\n\t\t\t\tcards[2][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"D\")) {\n\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}",
"mark.equals(\"H\")",
"mark.equals",
"mark",
"\"H\"",
"{\n\n\t\t\t\tcards[1][num - 1] = 1;\n\n\t\t\t}",
"cards[1][num - 1] = 1",
"cards[1][num - 1]",
"cards[1]",
"cards",
"1",
"num - 1",
"num",
"1",
"1",
"if(mark.equals(\"C\")) {\n\n\t\t\t\tcards[2][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"D\")) {\n\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}",
"mark.equals(\"C\")",
"mark.equals",
"mark",
"\"C\"",
"{\n\n\t\t\t\tcards[2][num - 1] = 1;\n\n\t\t\t}",
"cards[2][num - 1] = 1",
"cards[2][num - 1]",
"cards[2]",
"cards",
"2",
"num - 1",
"num",
"1",
"1",
"if(mark.equals(\"D\")) {\n\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}",
"mark.equals(\"D\")",
"mark.equals",
"mark",
"\"D\"",
"{\n\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}",
"cards[3][num - 1] = 1",
"cards[3][num - 1]",
"cards[3]",
"cards",
"3",
"num - 1",
"num",
"1",
"1",
"char[] marks = {'S', 'H', 'C', 'D'};",
"marks",
"{'S', 'H', 'C', 'D'}",
"'S'",
"'H'",
"'C'",
"'D'",
"for(int i = 0; i < 4; i++) {\n\n\t\t\tfor(int j = 0; j < 13; j++) {\n\n\t\t\t\tif(cards[i][j] == 0){\n\n\t\t\t\t\tSystem.out.println(marks[i] + \" \" + (j + 1));\n\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\n\t\t\tfor(int j = 0; j < 13; j++) {\n\n\t\t\t\tif(cards[i][j] == 0){\n\n\t\t\t\t\tSystem.out.println(marks[i] + \" \" + (j + 1));\n\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\n\t\t\tfor(int j = 0; j < 13; j++) {\n\n\t\t\t\tif(cards[i][j] == 0){\n\n\t\t\t\t\tSystem.out.println(marks[i] + \" \" + (j + 1));\n\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int j = 0; j < 13; j++) {\n\n\t\t\t\tif(cards[i][j] == 0){\n\n\t\t\t\t\tSystem.out.println(marks[i] + \" \" + (j + 1));\n\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\n\t\t\t\tif(cards[i][j] == 0){\n\n\t\t\t\t\tSystem.out.println(marks[i] + \" \" + (j + 1));\n\n\t\t\t\t}\n\t\t\t}",
"{\n\n\t\t\t\tif(cards[i][j] == 0){\n\n\t\t\t\t\tSystem.out.println(marks[i] + \" \" + (j + 1));\n\n\t\t\t\t}\n\t\t\t}",
"if(cards[i][j] == 0){\n\n\t\t\t\t\tSystem.out.println(marks[i] + \" \" + (j + 1));\n\n\t\t\t\t}",
"cards[i][j] == 0",
"cards[i][j]",
"cards[i]",
"cards",
"i",
"j",
"0",
"{\n\n\t\t\t\t\tSystem.out.println(marks[i] + \" \" + (j + 1));\n\n\t\t\t\t}",
"System.out.println(marks[i] + \" \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"marks[i] + \" \" + (j + 1)",
"marks[i] + \" \" + (j + 1)",
"marks[i]",
"marks",
"i",
"\" \"",
"(j + 1)",
"j",
"1",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// 52????????????????????????\n\t\tint[][] cards = new int[4][13];\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint all_num = in.nextInt();\n\n\t\t// ?????????????????????????????????????´?\n\t\tfor(int i = 0; i < all_num; i++){\n\n\t\t\tString mark = in.next();\n\t\t\tint num = in.nextInt();\n\n\t\t\tif(mark.equals(\"S\")){\n\n\t\t\t\tcards[0][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"H\")) {\n\n\t\t\t\tcards[1][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"C\")) {\n\n\t\t\t\tcards[2][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"D\")) {\n\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}\n\t\t}\n\n\t\t// ????????¨?????????????????????????????????\n\t\tchar[] marks = {'S', 'H', 'C', 'D'};\n\n\t\t// ???????????????????????§?¶????????????????????????????\n\t\tfor(int i = 0; i < 4; i++) {\n\n\t\t\tfor(int j = 0; j < 13; j++) {\n\n\t\t\t\tif(cards[i][j] == 0){\n\n\t\t\t\t\tSystem.out.println(marks[i] + \" \" + (j + 1));\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// 52????????????????????????\n\t\tint[][] cards = new int[4][13];\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint all_num = in.nextInt();\n\n\t\t// ?????????????????????????????????????´?\n\t\tfor(int i = 0; i < all_num; i++){\n\n\t\t\tString mark = in.next();\n\t\t\tint num = in.nextInt();\n\n\t\t\tif(mark.equals(\"S\")){\n\n\t\t\t\tcards[0][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"H\")) {\n\n\t\t\t\tcards[1][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"C\")) {\n\n\t\t\t\tcards[2][num - 1] = 1;\n\n\t\t\t}else if(mark.equals(\"D\")) {\n\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}\n\t\t}\n\n\t\t// ????????¨?????????????????????????????????\n\t\tchar[] marks = {'S', 'H', 'C', 'D'};\n\n\t\t// ???????????????????????§?¶????????????????????????????\n\t\tfor(int i = 0; i < 4; i++) {\n\n\t\t\tfor(int j = 0; j < 13; j++) {\n\n\t\t\t\tif(cards[i][j] == 0){\n\n\t\t\t\t\tSystem.out.println(marks[i] + \" \" + (j + 1));\n\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) {
// 52????????????????????????
int[][] cards = new int[4][13];
Scanner in = new Scanner(System.in);
int all_num = in.nextInt();
// ?????????????????????????????????????´?
for(int i = 0; i < all_num; i++){
String mark = in.next();
int num = in.nextInt();
if(mark.equals("S")){
cards[0][num - 1] = 1;
}else if(mark.equals("H")) {
cards[1][num - 1] = 1;
}else if(mark.equals("C")) {
cards[2][num - 1] = 1;
}else if(mark.equals("D")) {
cards[3][num - 1] = 1;
}
}
// ????????¨?????????????????????????????????
char[] marks = {'S', 'H', 'C', 'D'};
// ???????????????????????§?¶????????????????????????????
for(int i = 0; i < 4; i++) {
for(int j = 0; j < 13; j++) {
if(cards[i][j] == 0){
System.out.println(marks[i] + " " + (j + 1));
}
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
17,
17,
41,
13,
20,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
2,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
4,
18,
13,
17,
30,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
4,
18,
13,
17,
30,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
4,
18,
13,
17,
30,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
30,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
18,
18,
13,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
18,
18,
13,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
18,
18,
13,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
851,
5
],
[
851,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
19,
27
],
[
27,
28
],
[
28,
29
],
[
19,
30
],
[
31,
31
],
[
31,
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
],
[
46,
50
],
[
45,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
54,
56
],
[
8,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
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
],
[
74,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
85,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
96,
102
],
[
91,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
108,
114
],
[
103,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
120,
126
],
[
115,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
132,
138
],
[
127,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
144,
150
],
[
139,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
156,
162
],
[
151,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
163,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
168,
174
],
[
163,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
180,
186
],
[
175,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
193,
197
],
[
192,
198
],
[
187,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
199,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
205,
209
],
[
204,
210
],
[
199,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
211,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
217,
221
],
[
216,
222
],
[
211,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
223,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
229,
233
],
[
228,
234
],
[
223,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
235,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
241,
245
],
[
240,
246
],
[
85,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
248,
251
],
[
247,
252
],
[
252,
253
],
[
253,
254
],
[
254,
255
],
[
254,
256
],
[
253,
257
],
[
257,
258
],
[
258,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
259,
263
],
[
258,
264
],
[
253,
265
],
[
265,
266
],
[
266,
267
],
[
266,
268
],
[
265,
269
],
[
269,
270
],
[
270,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
271,
275
],
[
270,
276
],
[
265,
277
],
[
277,
278
],
[
278,
279
],
[
278,
280
],
[
277,
281
],
[
281,
282
],
[
282,
283
],
[
283,
284
],
[
284,
285
],
[
284,
286
],
[
283,
287
],
[
282,
288
],
[
277,
289
],
[
289,
290
],
[
290,
291
],
[
290,
292
],
[
289,
293
],
[
293,
294
],
[
294,
295
],
[
295,
296
],
[
296,
297
],
[
296,
298
],
[
295,
299
],
[
294,
300
],
[
289,
301
],
[
301,
302
],
[
302,
303
],
[
302,
304
],
[
301,
305
],
[
305,
306
],
[
306,
307
],
[
307,
308
],
[
308,
309
],
[
308,
310
],
[
307,
311
],
[
306,
312
],
[
301,
313
],
[
313,
314
],
[
314,
315
],
[
314,
316
],
[
313,
317
],
[
317,
318
],
[
318,
319
],
[
319,
320
],
[
320,
321
],
[
320,
322
],
[
319,
323
],
[
318,
324
],
[
313,
325
],
[
325,
326
],
[
326,
327
],
[
326,
328
],
[
325,
329
],
[
329,
330
],
[
330,
331
],
[
331,
332
],
[
332,
333
],
[
332,
334
],
[
331,
335
],
[
330,
336
],
[
325,
337
],
[
337,
338
],
[
338,
339
],
[
338,
340
],
[
337,
341
],
[
341,
342
],
[
342,
343
],
[
343,
344
],
[
344,
345
],
[
344,
346
],
[
343,
347
],
[
342,
348
],
[
337,
349
],
[
349,
350
],
[
350,
351
],
[
350,
352
],
[
349,
353
],
[
353,
354
],
[
354,
355
],
[
355,
356
],
[
356,
357
],
[
356,
358
],
[
355,
359
],
[
354,
360
],
[
349,
361
],
[
361,
362
],
[
362,
363
],
[
362,
364
],
[
361,
365
],
[
365,
366
],
[
366,
367
],
[
367,
368
],
[
368,
369
],
[
368,
370
],
[
367,
371
],
[
366,
372
],
[
361,
373
],
[
373,
374
],
[
374,
375
],
[
374,
376
],
[
373,
377
],
[
377,
378
],
[
378,
379
],
[
379,
380
],
[
380,
381
],
[
380,
382
],
[
379,
383
],
[
378,
384
],
[
373,
385
],
[
385,
386
],
[
386,
387
],
[
386,
388
],
[
385,
389
],
[
389,
390
],
[
390,
391
],
[
391,
392
],
[
392,
393
],
[
392,
394
],
[
391,
395
],
[
390,
396
],
[
385,
397
],
[
397,
398
],
[
398,
399
],
[
398,
400
],
[
397,
401
],
[
401,
402
],
[
402,
403
],
[
403,
404
],
[
404,
405
],
[
404,
406
],
[
403,
407
],
[
402,
408
],
[
247,
409
],
[
409,
410
],
[
410,
411
],
[
411,
412
],
[
410,
413
],
[
409,
414
],
[
414,
415
],
[
415,
416
],
[
416,
417
],
[
416,
418
],
[
415,
419
],
[
419,
420
],
[
420,
421
],
[
421,
422
],
[
422,
423
],
[
422,
424
],
[
421,
425
],
[
420,
426
],
[
415,
427
],
[
427,
428
],
[
428,
429
],
[
428,
430
],
[
427,
431
],
[
431,
432
],
[
432,
433
],
[
433,
434
],
[
434,
435
],
[
434,
436
],
[
433,
437
],
[
432,
438
],
[
427,
439
],
[
439,
440
],
[
440,
441
],
[
440,
442
],
[
439,
443
],
[
443,
444
],
[
444,
445
],
[
445,
446
],
[
446,
447
],
[
446,
448
],
[
445,
449
],
[
444,
450
],
[
439,
451
],
[
451,
452
],
[
452,
453
],
[
452,
454
],
[
451,
455
],
[
455,
456
],
[
456,
457
],
[
457,
458
],
[
458,
459
],
[
458,
460
],
[
457,
461
],
[
456,
462
],
[
451,
463
],
[
463,
464
],
[
464,
465
],
[
464,
466
],
[
463,
467
],
[
467,
468
],
[
468,
469
],
[
469,
470
],
[
470,
471
],
[
470,
472
],
[
469,
473
],
[
468,
474
],
[
463,
475
],
[
475,
476
],
[
476,
477
],
[
476,
478
],
[
475,
479
],
[
479,
480
],
[
480,
481
],
[
481,
482
],
[
482,
483
],
[
482,
484
],
[
481,
485
],
[
480,
486
],
[
475,
487
],
[
487,
488
],
[
488,
489
],
[
488,
490
],
[
487,
491
],
[
491,
492
],
[
492,
493
],
[
493,
494
],
[
494,
495
],
[
494,
496
],
[
493,
497
],
[
492,
498
],
[
487,
499
],
[
499,
500
],
[
500,
501
],
[
500,
502
],
[
499,
503
],
[
503,
504
],
[
504,
505
],
[
505,
506
],
[
506,
507
],
[
506,
508
],
[
505,
509
],
[
504,
510
],
[
499,
511
],
[
511,
512
],
[
512,
513
],
[
512,
514
],
[
511,
515
],
[
515,
516
],
[
516,
517
],
[
517,
518
],
[
518,
519
],
[
518,
520
],
[
517,
521
],
[
516,
522
],
[
511,
523
],
[
523,
524
],
[
524,
525
],
[
524,
526
],
[
523,
527
],
[
527,
528
],
[
528,
529
],
[
529,
530
],
[
530,
531
],
[
530,
532
],
[
529,
533
],
[
528,
534
],
[
523,
535
],
[
535,
536
],
[
536,
537
],
[
536,
538
],
[
535,
539
],
[
539,
540
],
[
540,
541
],
[
541,
542
],
[
542,
543
],
[
542,
544
],
[
541,
545
],
[
540,
546
],
[
535,
547
],
[
547,
548
],
[
548,
549
],
[
548,
550
],
[
547,
551
],
[
551,
552
],
[
552,
553
],
[
553,
554
],
[
554,
555
],
[
554,
556
],
[
553,
557
],
[
552,
558
],
[
547,
559
],
[
559,
560
],
[
560,
561
],
[
560,
562
],
[
559,
563
],
[
563,
564
],
[
564,
565
],
[
565,
566
],
[
566,
567
],
[
566,
568
],
[
565,
569
],
[
564,
570
],
[
409,
571
],
[
571,
572
],
[
572,
573
],
[
573,
574
],
[
572,
575
],
[
571,
576
],
[
576,
577
],
[
577,
578
],
[
578,
579
],
[
578,
580
],
[
577,
581
],
[
581,
582
],
[
582,
583
],
[
583,
584
],
[
584,
585
],
[
584,
586
],
[
583,
587
],
[
582,
588
],
[
577,
589
],
[
589,
590
],
[
590,
591
],
[
590,
592
],
[
589,
593
],
[
593,
594
],
[
594,
595
],
[
595,
596
],
[
596,
597
],
[
596,
598
],
[
595,
599
],
[
594,
600
],
[
589,
601
],
[
601,
602
],
[
602,
603
],
[
602,
604
],
[
601,
605
],
[
605,
606
],
[
606,
607
],
[
607,
608
],
[
608,
609
],
[
608,
610
],
[
607,
611
],
[
606,
612
],
[
601,
613
],
[
613,
614
],
[
614,
615
],
[
614,
616
],
[
613,
617
],
[
617,
618
],
[
618,
619
],
[
619,
620
],
[
620,
621
],
[
620,
622
],
[
619,
623
],
[
618,
624
],
[
613,
625
],
[
625,
626
],
[
626,
627
],
[
626,
628
],
[
625,
629
],
[
629,
630
],
[
630,
631
],
[
631,
632
],
[
632,
633
],
[
632,
634
],
[
631,
635
],
[
630,
636
],
[
625,
637
],
[
637,
638
],
[
638,
639
],
[
638,
640
],
[
637,
641
],
[
641,
642
],
[
642,
643
],
[
643,
644
],
[
644,
645
],
[
644,
646
],
[
643,
647
],
[
642,
648
],
[
637,
649
],
[
649,
650
],
[
650,
651
],
[
650,
652
],
[
649,
653
],
[
653,
654
],
[
654,
655
],
[
655,
656
],
[
656,
657
],
[
656,
658
],
[
655,
659
],
[
654,
660
],
[
649,
661
],
[
661,
662
],
[
662,
663
],
[
662,
664
],
[
661,
665
],
[
665,
666
],
[
666,
667
],
[
667,
668
],
[
668,
669
],
[
668,
670
],
[
667,
671
],
[
666,
672
],
[
661,
673
],
[
673,
674
],
[
674,
675
],
[
674,
676
],
[
673,
677
],
[
677,
678
],
[
678,
679
],
[
679,
680
],
[
680,
681
],
[
680,
682
],
[
679,
683
],
[
678,
684
],
[
673,
685
],
[
685,
686
],
[
686,
687
],
[
686,
688
],
[
685,
689
],
[
689,
690
],
[
690,
691
],
[
691,
692
],
[
692,
693
],
[
692,
694
],
[
691,
695
],
[
690,
696
],
[
685,
697
],
[
697,
698
],
[
698,
699
],
[
698,
700
],
[
697,
701
],
[
701,
702
],
[
702,
703
],
[
703,
704
],
[
704,
705
],
[
704,
706
],
[
703,
707
],
[
702,
708
],
[
697,
709
],
[
709,
710
],
[
710,
711
],
[
710,
712
],
[
709,
713
],
[
713,
714
],
[
714,
715
],
[
715,
716
],
[
716,
717
],
[
716,
718
],
[
715,
719
],
[
714,
720
],
[
709,
721
],
[
721,
722
],
[
722,
723
],
[
722,
724
],
[
721,
725
],
[
725,
726
],
[
726,
727
],
[
727,
728
],
[
728,
729
],
[
728,
730
],
[
727,
731
],
[
726,
732
],
[
8,
733
],
[
733,
734
],
[
734,
735
],
[
735,
736
],
[
735,
737
],
[
733,
738
],
[
738,
739
],
[
738,
740
],
[
733,
741
],
[
741,
742
],
[
742,
743
],
[
733,
744
],
[
745,
745
],
[
745,
746
],
[
746,
747
],
[
747,
748
],
[
748,
749
],
[
748,
750
],
[
746,
751
],
[
751,
752
],
[
751,
753
],
[
746,
754
],
[
754,
755
],
[
755,
756
],
[
746,
757
],
[
758,
758
],
[
758,
759
],
[
759,
760
],
[
760,
761
],
[
761,
762
],
[
762,
763
],
[
762,
764
],
[
761,
765
],
[
760,
766
],
[
766,
767
],
[
767,
768
],
[
767,
769
],
[
766,
770
],
[
759,
771
],
[
771,
772
],
[
772,
773
],
[
773,
774
],
[
773,
775
],
[
772,
776
],
[
776,
777
],
[
777,
778
],
[
778,
779
],
[
779,
780
],
[
779,
781
],
[
777,
782
],
[
783,
783
],
[
783,
784
],
[
783,
785
],
[
783,
786
],
[
786,
787
],
[
787,
788
],
[
787,
789
],
[
786,
790
],
[
772,
791
],
[
791,
792
],
[
792,
793
],
[
792,
794
],
[
791,
795
],
[
795,
796
],
[
796,
797
],
[
797,
798
],
[
798,
799
],
[
798,
800
],
[
796,
801
],
[
802,
802
],
[
802,
803
],
[
802,
804
],
[
802,
805
],
[
805,
806
],
[
806,
807
],
[
806,
808
],
[
805,
809
],
[
791,
810
],
[
810,
811
],
[
811,
812
],
[
811,
813
],
[
810,
814
],
[
814,
815
],
[
815,
816
],
[
816,
817
],
[
817,
818
],
[
817,
819
],
[
815,
820
],
[
821,
821
],
[
821,
822
],
[
821,
823
],
[
821,
824
],
[
824,
825
],
[
825,
826
],
[
825,
827
],
[
824,
828
],
[
810,
829
],
[
829,
830
],
[
830,
831
],
[
830,
832
],
[
829,
833
],
[
833,
834
],
[
834,
835
],
[
835,
836
],
[
836,
837
],
[
836,
838
],
[
834,
839
],
[
840,
840
],
[
840,
841
],
[
840,
842
],
[
840,
843
],
[
843,
844
],
[
844,
845
],
[
844,
846
],
[
843,
847
],
[
6,
848
],
[
848,
849
],
[
0,
850
],
[
850,
851
],
[
850,
852
]
] | [
"\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\n\t\tint[][] cards = new int[4][13];\n\t\tint[][] has_cards = new int[4][13];\n\n\t\tfor(int m = 0; m < 4; m++){\n\n\t\t\tfor(int i = 0; i < 13; i++){\n\n\t\t\t\tcards[m][i] = i + 1;\n\t\t\t}\n\t\t}\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint all_num = in.nextInt();\n\n\t\tfor(int i = 0; i < all_num; i++){\n\n\t\t\tString mark = in.next();\n\t\t\tint num = in.nextInt();\n\n\t\t\tif(mark.equals(\"S\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[0][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[0][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[0][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[0][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[0][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[0][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[0][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[0][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[0][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[0][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[0][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[0][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[0][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[1][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[1][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[1][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[1][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[1][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[1][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[1][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[1][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[1][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[1][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[1][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[1][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[2][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[2][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[2][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[2][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[2][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[2][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[2][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[2][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[2][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[2][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[2][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[3][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[3][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[3][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[3][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[3][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[3][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[3][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[3][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[3][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[3][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int m = 0; m < 4; m++) {\n\n\t\t\tfor(int n = 0; n < 13; n++) {\n\n\t\t\t\tif(cards[m][n] != has_cards[m][n]){\n\n\t\t\t\t\tif(m == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + cards[m][n]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\n\t\tint[][] cards = new int[4][13];\n\t\tint[][] has_cards = new int[4][13];\n\n\t\tfor(int m = 0; m < 4; m++){\n\n\t\t\tfor(int i = 0; i < 13; i++){\n\n\t\t\t\tcards[m][i] = i + 1;\n\t\t\t}\n\t\t}\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint all_num = in.nextInt();\n\n\t\tfor(int i = 0; i < all_num; i++){\n\n\t\t\tString mark = in.next();\n\t\t\tint num = in.nextInt();\n\n\t\t\tif(mark.equals(\"S\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[0][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[0][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[0][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[0][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[0][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[0][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[0][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[0][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[0][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[0][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[0][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[0][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[0][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[1][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[1][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[1][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[1][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[1][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[1][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[1][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[1][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[1][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[1][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[1][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[1][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[2][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[2][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[2][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[2][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[2][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[2][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[2][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[2][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[2][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[2][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[2][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[3][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[3][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[3][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[3][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[3][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[3][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[3][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[3][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[3][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[3][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int m = 0; m < 4; m++) {\n\n\t\t\tfor(int n = 0; n < 13; n++) {\n\n\t\t\t\tif(cards[m][n] != has_cards[m][n]){\n\n\t\t\t\t\tif(m == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + cards[m][n]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\n\t\tint[][] cards = new int[4][13];\n\t\tint[][] has_cards = new int[4][13];\n\n\t\tfor(int m = 0; m < 4; m++){\n\n\t\t\tfor(int i = 0; i < 13; i++){\n\n\t\t\t\tcards[m][i] = i + 1;\n\t\t\t}\n\t\t}\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint all_num = in.nextInt();\n\n\t\tfor(int i = 0; i < all_num; i++){\n\n\t\t\tString mark = in.next();\n\t\t\tint num = in.nextInt();\n\n\t\t\tif(mark.equals(\"S\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[0][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[0][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[0][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[0][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[0][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[0][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[0][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[0][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[0][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[0][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[0][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[0][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[0][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[1][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[1][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[1][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[1][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[1][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[1][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[1][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[1][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[1][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[1][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[1][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[1][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[2][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[2][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[2][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[2][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[2][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[2][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[2][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[2][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[2][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[2][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[2][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[3][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[3][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[3][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[3][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[3][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[3][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[3][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[3][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[3][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[3][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int m = 0; m < 4; m++) {\n\n\t\t\tfor(int n = 0; n < 13; n++) {\n\n\t\t\t\tif(cards[m][n] != has_cards[m][n]){\n\n\t\t\t\t\tif(m == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + cards[m][n]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"main",
"{\n\n\n\t\tint[][] cards = new int[4][13];\n\t\tint[][] has_cards = new int[4][13];\n\n\t\tfor(int m = 0; m < 4; m++){\n\n\t\t\tfor(int i = 0; i < 13; i++){\n\n\t\t\t\tcards[m][i] = i + 1;\n\t\t\t}\n\t\t}\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint all_num = in.nextInt();\n\n\t\tfor(int i = 0; i < all_num; i++){\n\n\t\t\tString mark = in.next();\n\t\t\tint num = in.nextInt();\n\n\t\t\tif(mark.equals(\"S\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[0][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[0][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[0][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[0][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[0][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[0][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[0][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[0][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[0][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[0][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[0][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[0][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[0][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[1][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[1][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[1][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[1][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[1][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[1][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[1][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[1][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[1][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[1][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[1][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[1][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[2][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[2][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[2][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[2][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[2][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[2][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[2][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[2][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[2][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[2][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[2][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[3][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[3][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[3][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[3][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[3][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[3][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[3][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[3][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[3][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[3][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int m = 0; m < 4; m++) {\n\n\t\t\tfor(int n = 0; n < 13; n++) {\n\n\t\t\t\tif(cards[m][n] != has_cards[m][n]){\n\n\t\t\t\t\tif(m == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + cards[m][n]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"int[][] cards = new int[4][13];",
"cards",
"new int[4][13]",
"4",
"13",
"int[][] has_cards = new int[4][13];",
"has_cards",
"new int[4][13]",
"4",
"13",
"for(int m = 0; m < 4; m++){\n\n\t\t\tfor(int i = 0; i < 13; i++){\n\n\t\t\t\tcards[m][i] = i + 1;\n\t\t\t}\n\t\t}",
"int m = 0;",
"int m = 0;",
"m",
"0",
"m < 4",
"m",
"4",
"m++",
"m++",
"m",
"{\n\n\t\t\tfor(int i = 0; i < 13; i++){\n\n\t\t\t\tcards[m][i] = i + 1;\n\t\t\t}\n\t\t}",
"{\n\n\t\t\tfor(int i = 0; i < 13; i++){\n\n\t\t\t\tcards[m][i] = i + 1;\n\t\t\t}\n\t\t}",
"for(int i = 0; i < 13; i++){\n\n\t\t\t\tcards[m][i] = i + 1;\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\n\t\t\t\tcards[m][i] = i + 1;\n\t\t\t}",
"{\n\n\t\t\t\tcards[m][i] = i + 1;\n\t\t\t}",
"cards[m][i] = i + 1",
"cards[m][i]",
"cards[m]",
"cards",
"m",
"i",
"i + 1",
"i",
"1",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int all_num = in.nextInt();",
"all_num",
"in.nextInt()",
"in.nextInt",
"in",
"for(int i = 0; i < all_num; i++){\n\n\t\t\tString mark = in.next();\n\t\t\tint num = in.nextInt();\n\n\t\t\tif(mark.equals(\"S\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[0][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[0][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[0][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[0][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[0][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[0][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[0][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[0][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[0][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[0][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[0][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[0][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[0][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[1][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[1][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[1][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[1][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[1][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[1][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[1][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[1][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[1][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[1][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[1][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[1][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[2][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[2][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[2][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[2][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[2][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[2][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[2][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[2][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[2][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[2][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[2][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[3][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[3][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[3][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[3][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[3][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[3][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[3][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[3][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[3][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[3][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < all_num",
"i",
"all_num",
"i++",
"i++",
"i",
"{\n\n\t\t\tString mark = in.next();\n\t\t\tint num = in.nextInt();\n\n\t\t\tif(mark.equals(\"S\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[0][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[0][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[0][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[0][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[0][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[0][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[0][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[0][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[0][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[0][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[0][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[0][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[0][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[1][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[1][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[1][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[1][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[1][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[1][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[1][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[1][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[1][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[1][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[1][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[1][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[2][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[2][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[2][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[2][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[2][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[2][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[2][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[2][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[2][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[2][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[2][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[3][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[3][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[3][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[3][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[3][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[3][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[3][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[3][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[3][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[3][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\n\t\t\tString mark = in.next();\n\t\t\tint num = in.nextInt();\n\n\t\t\tif(mark.equals(\"S\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[0][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[0][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[0][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[0][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[0][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[0][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[0][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[0][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[0][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[0][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[0][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[0][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[0][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[1][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[1][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[1][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[1][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[1][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[1][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[1][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[1][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[1][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[1][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[1][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[1][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[2][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[2][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[2][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[2][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[2][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[2][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[2][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[2][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[2][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[2][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[2][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[3][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[3][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[3][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[3][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[3][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[3][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[3][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[3][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[3][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[3][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"String mark = in.next();",
"mark",
"in.next()",
"in.next",
"in",
"int num = in.nextInt();",
"num",
"in.nextInt()",
"in.nextInt",
"in",
"if(mark.equals(\"S\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[0][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[0][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[0][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[0][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[0][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[0][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[0][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[0][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[0][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[0][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[0][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[0][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[0][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[1][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[1][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[1][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[1][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[1][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[1][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[1][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[1][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[1][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[1][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[1][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[1][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[2][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[2][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[2][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[2][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[2][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[2][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[2][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[2][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[2][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[2][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[2][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[3][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[3][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[3][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[3][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[3][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[3][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[3][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[3][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[3][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[3][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}\n\t\t\t}",
"mark.equals(\"S\")",
"mark.equals",
"mark",
"\"S\"",
"{\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[0][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[0][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[0][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[0][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[0][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[0][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[0][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[0][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[0][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[0][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[0][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[0][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[0][12] = 13;\n\t\t\t\t}\n\t\t\t}",
"if(num == 1){\n\t\t\t\t\thas_cards[0][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[0][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[0][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[0][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[0][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[0][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[0][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[0][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[0][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[0][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[0][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[0][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[0][12] = 13;\n\t\t\t\t}",
"num == 1",
"num",
"1",
"{\n\t\t\t\t\thas_cards[0][0] = 1;\n\t\t\t\t}",
"has_cards[0][0] = 1",
"has_cards[0][0]",
"has_cards[0]",
"has_cards",
"0",
"0",
"1",
"if(num == 2){\n\t\t\t\t\thas_cards[0][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[0][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[0][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[0][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[0][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[0][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[0][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[0][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[0][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[0][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[0][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[0][12] = 13;\n\t\t\t\t}",
"num == 2",
"num",
"2",
"{\n\t\t\t\t\thas_cards[0][1] = 2;\n\t\t\t\t}",
"has_cards[0][1] = 2",
"has_cards[0][1]",
"has_cards[0]",
"has_cards",
"0",
"1",
"2",
"if(num == 3){\n\t\t\t\t\thas_cards[0][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[0][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[0][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[0][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[0][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[0][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[0][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[0][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[0][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[0][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[0][12] = 13;\n\t\t\t\t}",
"num == 3",
"num",
"3",
"{\n\t\t\t\t\thas_cards[0][2] = 3;\n\t\t\t\t}",
"has_cards[0][2] = 3",
"has_cards[0][2]",
"has_cards[0]",
"has_cards",
"0",
"2",
"3",
"if(num == 4){\n\t\t\t\t\thas_cards[0][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[0][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[0][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[0][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[0][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[0][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[0][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[0][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[0][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[0][12] = 13;\n\t\t\t\t}",
"num == 4",
"num",
"4",
"{\n\t\t\t\t\thas_cards[0][3] = 4;\n\t\t\t\t}",
"has_cards[0][3] = 4",
"has_cards[0][3]",
"has_cards[0]",
"has_cards",
"0",
"3",
"4",
"if(num == 5){\n\t\t\t\t\thas_cards[0][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[0][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[0][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[0][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[0][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[0][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[0][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[0][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[0][12] = 13;\n\t\t\t\t}",
"num == 5",
"num",
"5",
"{\n\t\t\t\t\thas_cards[0][4] = 5;\n\t\t\t\t}",
"has_cards[0][4] = 5",
"has_cards[0][4]",
"has_cards[0]",
"has_cards",
"0",
"4",
"5",
"if(num == 6){\n\t\t\t\t\thas_cards[0][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[0][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[0][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[0][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[0][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[0][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[0][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[0][12] = 13;\n\t\t\t\t}",
"num == 6",
"num",
"6",
"{\n\t\t\t\t\thas_cards[0][5] = 6;\n\t\t\t\t}",
"has_cards[0][5] = 6",
"has_cards[0][5]",
"has_cards[0]",
"has_cards",
"0",
"5",
"6",
"if(num == 7){\n\t\t\t\t\thas_cards[0][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[0][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[0][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[0][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[0][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[0][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[0][12] = 13;\n\t\t\t\t}",
"num == 7",
"num",
"7",
"{\n\t\t\t\t\thas_cards[0][6] = 7;\n\t\t\t\t}",
"has_cards[0][6] = 7",
"has_cards[0][6]",
"has_cards[0]",
"has_cards",
"0",
"6",
"7",
"if(num == 8){\n\t\t\t\t\thas_cards[0][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[0][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[0][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[0][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[0][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[0][12] = 13;\n\t\t\t\t}",
"num == 8",
"num",
"8",
"{\n\t\t\t\t\thas_cards[0][7] = 8;\n\t\t\t\t}",
"has_cards[0][7] = 8",
"has_cards[0][7]",
"has_cards[0]",
"has_cards",
"0",
"7",
"8",
"if(num == 9){\n\t\t\t\t\thas_cards[0][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[0][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[0][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[0][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[0][12] = 13;\n\t\t\t\t}",
"num == 9",
"num",
"9",
"{\n\t\t\t\t\thas_cards[0][8] = 9;\n\t\t\t\t}",
"has_cards[0][8] = 9",
"has_cards[0][8]",
"has_cards[0]",
"has_cards",
"0",
"8",
"9",
"if(num == 10){\n\t\t\t\t\thas_cards[0][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[0][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[0][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[0][12] = 13;\n\t\t\t\t}",
"num == 10",
"num",
"10",
"{\n\t\t\t\t\thas_cards[0][9] = 10;\n\t\t\t\t}",
"has_cards[0][9] = 10",
"has_cards[0][9]",
"has_cards[0]",
"has_cards",
"0",
"9",
"10",
"if(num == 11){\n\t\t\t\t\thas_cards[0][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[0][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[0][12] = 13;\n\t\t\t\t}",
"num == 11",
"num",
"11",
"{\n\t\t\t\t\thas_cards[0][10] = 11;\n\t\t\t\t}",
"has_cards[0][10] = 11",
"has_cards[0][10]",
"has_cards[0]",
"has_cards",
"0",
"10",
"11",
"if(num == 12){\n\t\t\t\t\thas_cards[0][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[0][12] = 13;\n\t\t\t\t}",
"num == 12",
"num",
"12",
"{\n\t\t\t\t\thas_cards[0][11] = 12;\n\t\t\t\t}",
"has_cards[0][11] = 12",
"has_cards[0][11]",
"has_cards[0]",
"has_cards",
"0",
"11",
"12",
"if(num == 13){\n\t\t\t\t\thas_cards[0][12] = 13;\n\t\t\t\t}",
"num == 13",
"num",
"13",
"{\n\t\t\t\t\thas_cards[0][12] = 13;\n\t\t\t\t}",
"has_cards[0][12] = 13",
"has_cards[0][12]",
"has_cards[0]",
"has_cards",
"0",
"12",
"13",
"if(mark.equals(\"H\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[1][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[1][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[1][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[1][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[1][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[1][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[1][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[1][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[1][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[1][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[1][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[1][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[2][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[2][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[2][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[2][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[2][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[2][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[2][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[2][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[2][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[2][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[2][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[3][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[3][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[3][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[3][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[3][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[3][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[3][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[3][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[3][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[3][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}\n\t\t\t}",
"mark.equals(\"H\")",
"mark.equals",
"mark",
"\"H\"",
"{\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[1][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[1][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[1][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[1][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[1][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[1][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[1][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[1][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[1][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[1][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[1][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[1][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}\n\t\t\t}",
"if(num == 1){\n\t\t\t\t\thas_cards[1][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[1][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[1][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[1][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[1][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[1][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[1][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[1][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[1][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[1][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[1][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[1][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}",
"num == 1",
"num",
"1",
"{\n\t\t\t\t\thas_cards[1][0] = 1;\n\t\t\t\t}",
"has_cards[1][0] = 1",
"has_cards[1][0]",
"has_cards[1]",
"has_cards",
"1",
"0",
"1",
"if(num == 2){\n\t\t\t\t\thas_cards[1][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[1][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[1][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[1][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[1][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[1][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[1][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[1][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[1][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[1][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[1][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}",
"num == 2",
"num",
"2",
"{\n\t\t\t\t\thas_cards[1][1] = 2;\n\t\t\t\t}",
"has_cards[1][1] = 2",
"has_cards[1][1]",
"has_cards[1]",
"has_cards",
"1",
"1",
"2",
"if(num == 3){\n\t\t\t\t\thas_cards[1][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[1][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[1][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[1][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[1][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[1][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[1][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[1][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[1][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[1][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}",
"num == 3",
"num",
"3",
"{\n\t\t\t\t\thas_cards[1][2] = 3;\n\t\t\t\t}",
"has_cards[1][2] = 3",
"has_cards[1][2]",
"has_cards[1]",
"has_cards",
"1",
"2",
"3",
"if(num == 4){\n\t\t\t\t\thas_cards[1][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[1][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[1][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[1][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[1][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[1][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[1][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[1][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[1][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}",
"num == 4",
"num",
"4",
"{\n\t\t\t\t\thas_cards[1][3] = 4;\n\t\t\t\t}",
"has_cards[1][3] = 4",
"has_cards[1][3]",
"has_cards[1]",
"has_cards",
"1",
"3",
"4",
"if(num == 5){\n\t\t\t\t\thas_cards[1][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[1][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[1][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[1][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[1][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[1][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[1][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[1][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}",
"num == 5",
"num",
"5",
"{\n\t\t\t\t\thas_cards[1][4] = 5;\n\t\t\t\t}",
"has_cards[1][4] = 5",
"has_cards[1][4]",
"has_cards[1]",
"has_cards",
"1",
"4",
"5",
"if(num == 6){\n\t\t\t\t\thas_cards[1][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[1][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[1][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[1][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[1][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[1][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[1][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}",
"num == 6",
"num",
"6",
"{\n\t\t\t\t\thas_cards[1][5] = 6;\n\t\t\t\t}",
"has_cards[1][5] = 6",
"has_cards[1][5]",
"has_cards[1]",
"has_cards",
"1",
"5",
"6",
"if(num == 7){\n\t\t\t\t\thas_cards[1][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[1][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[1][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[1][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[1][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[1][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}",
"num == 7",
"num",
"7",
"{\n\t\t\t\t\thas_cards[1][6] = 7;\n\t\t\t\t}",
"has_cards[1][6] = 7",
"has_cards[1][6]",
"has_cards[1]",
"has_cards",
"1",
"6",
"7",
"if(num == 8){\n\t\t\t\t\thas_cards[1][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[1][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[1][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[1][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[1][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}",
"num == 8",
"num",
"8",
"{\n\t\t\t\t\thas_cards[1][7] = 8;\n\t\t\t\t}",
"has_cards[1][7] = 8",
"has_cards[1][7]",
"has_cards[1]",
"has_cards",
"1",
"7",
"8",
"if(num == 9){\n\t\t\t\t\thas_cards[1][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[1][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[1][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[1][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}",
"num == 9",
"num",
"9",
"{\n\t\t\t\t\thas_cards[1][8] = 9;\n\t\t\t\t}",
"has_cards[1][8] = 9",
"has_cards[1][8]",
"has_cards[1]",
"has_cards",
"1",
"8",
"9",
"if(num == 10){\n\t\t\t\t\thas_cards[1][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[1][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[1][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}",
"num == 10",
"num",
"10",
"{\n\t\t\t\t\thas_cards[1][9] = 10;\n\t\t\t\t}",
"has_cards[1][9] = 10",
"has_cards[1][9]",
"has_cards[1]",
"has_cards",
"1",
"9",
"10",
"if(num == 11){\n\t\t\t\t\thas_cards[1][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[1][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}",
"num == 11",
"num",
"11",
"{\n\t\t\t\t\thas_cards[1][10] = 11;\n\t\t\t\t}",
"has_cards[1][10] = 11",
"has_cards[1][10]",
"has_cards[1]",
"has_cards",
"1",
"10",
"11",
"if(num == 12){\n\t\t\t\t\thas_cards[1][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}",
"num == 12",
"num",
"12",
"{\n\t\t\t\t\thas_cards[1][11] = 12;\n\t\t\t\t}",
"has_cards[1][11] = 12",
"has_cards[1][11]",
"has_cards[1]",
"has_cards",
"1",
"11",
"12",
"if(num == 13){\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}",
"num == 13",
"num",
"13",
"{\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}",
"has_cards[1][12] = 13",
"has_cards[1][12]",
"has_cards[1]",
"has_cards",
"1",
"12",
"13",
"if(mark.equals(\"C\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[2][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[2][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[2][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[2][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[2][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[2][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[2][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[2][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[2][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[2][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[2][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[3][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[3][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[3][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[3][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[3][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[3][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[3][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[3][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[3][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[3][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}\n\t\t\t}",
"mark.equals(\"C\")",
"mark.equals",
"mark",
"\"C\"",
"{\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[2][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[2][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[2][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[2][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[2][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[2][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[2][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[2][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[2][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[2][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[2][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}\n\t\t\t}",
"if(num == 1){\n\t\t\t\t\thas_cards[2][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[2][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[2][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[2][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[2][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[2][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[2][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[2][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[2][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[2][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[2][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}",
"num == 1",
"num",
"1",
"{\n\t\t\t\t\thas_cards[2][0] = 1;\n\t\t\t\t}",
"has_cards[2][0] = 1",
"has_cards[2][0]",
"has_cards[2]",
"has_cards",
"2",
"0",
"1",
"if(num == 2){\n\t\t\t\t\thas_cards[2][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[2][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[2][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[2][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[2][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[2][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[2][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[2][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[2][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[2][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}",
"num == 2",
"num",
"2",
"{\n\t\t\t\t\thas_cards[2][1] = 2;\n\t\t\t\t}",
"has_cards[2][1] = 2",
"has_cards[2][1]",
"has_cards[2]",
"has_cards",
"2",
"1",
"2",
"if(num == 3){\n\t\t\t\t\thas_cards[2][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[2][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[2][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[2][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[2][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[2][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[2][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[2][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[2][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}",
"num == 3",
"num",
"3",
"{\n\t\t\t\t\thas_cards[2][2] = 3;\n\t\t\t\t}",
"has_cards[2][2] = 3",
"has_cards[2][2]",
"has_cards[2]",
"has_cards",
"2",
"2",
"3",
"if(num == 4){\n\t\t\t\t\thas_cards[2][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[2][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[2][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[2][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[2][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[2][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[2][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[2][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}",
"num == 4",
"num",
"4",
"{\n\t\t\t\t\thas_cards[2][3] = 4;\n\t\t\t\t}",
"has_cards[2][3] = 4",
"has_cards[2][3]",
"has_cards[2]",
"has_cards",
"2",
"3",
"4",
"if(num == 5){\n\t\t\t\t\thas_cards[2][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[2][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[2][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[2][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[2][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[2][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[2][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}",
"num == 5",
"num",
"5",
"{\n\t\t\t\t\thas_cards[2][4] = 5;\n\t\t\t\t}",
"has_cards[2][4] = 5",
"has_cards[2][4]",
"has_cards[2]",
"has_cards",
"2",
"4",
"5",
"if(num == 6){\n\t\t\t\t\thas_cards[2][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[2][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[2][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[2][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[2][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[2][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}",
"num == 6",
"num",
"6",
"{\n\t\t\t\t\thas_cards[2][5] = 6;\n\t\t\t\t}",
"has_cards[2][5] = 6",
"has_cards[2][5]",
"has_cards[2]",
"has_cards",
"2",
"5",
"6",
"if(num == 7){\n\t\t\t\t\thas_cards[2][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[2][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[2][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[2][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[2][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}",
"num == 7",
"num",
"7",
"{\n\t\t\t\t\thas_cards[2][6] = 7;\n\t\t\t\t}",
"has_cards[2][6] = 7",
"has_cards[2][6]",
"has_cards[2]",
"has_cards",
"2",
"6",
"7",
"if(num == 8){\n\t\t\t\t\thas_cards[2][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[2][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[2][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[2][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}",
"num == 8",
"num",
"8",
"{\n\t\t\t\t\thas_cards[2][7] = 8;\n\t\t\t\t}",
"has_cards[2][7] = 8",
"has_cards[2][7]",
"has_cards[2]",
"has_cards",
"2",
"7",
"8",
"if(num == 9){\n\t\t\t\t\thas_cards[2][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[2][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[2][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}",
"num == 9",
"num",
"9",
"{\n\t\t\t\t\thas_cards[2][8] = 9;\n\t\t\t\t}",
"has_cards[2][8] = 9",
"has_cards[2][8]",
"has_cards[2]",
"has_cards",
"2",
"8",
"9",
"if(num == 10){\n\t\t\t\t\thas_cards[2][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[2][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}",
"num == 10",
"num",
"10",
"{\n\t\t\t\t\thas_cards[2][9] = 10;\n\t\t\t\t}",
"has_cards[2][9] = 10",
"has_cards[2][9]",
"has_cards[2]",
"has_cards",
"2",
"9",
"10",
"if(num == 11){\n\t\t\t\t\thas_cards[2][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}",
"num == 11",
"num",
"11",
"{\n\t\t\t\t\thas_cards[2][10] = 11;\n\t\t\t\t}",
"has_cards[2][10] = 11",
"has_cards[2][10]",
"has_cards[2]",
"has_cards",
"2",
"10",
"11",
"if(num == 12){\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}",
"num == 12",
"num",
"12",
"{\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}",
"has_cards[2][11] = 12",
"has_cards[2][11]",
"has_cards[2]",
"has_cards",
"2",
"11",
"12",
"if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}",
"num == 13",
"num",
"13",
"{\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}",
"has_cards[2][12] = 13",
"has_cards[2][12]",
"has_cards[2]",
"has_cards",
"2",
"12",
"13",
"if(mark.equals(\"D\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[3][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[3][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[3][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[3][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[3][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[3][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[3][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[3][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[3][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[3][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}\n\t\t\t}",
"mark.equals(\"D\")",
"mark.equals",
"mark",
"\"D\"",
"{\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[3][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[3][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[3][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[3][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[3][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[3][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[3][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[3][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[3][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[3][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}\n\t\t\t}",
"if(num == 1){\n\t\t\t\t\thas_cards[3][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[3][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[3][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[3][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[3][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[3][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[3][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[3][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[3][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[3][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}",
"num == 1",
"num",
"1",
"{\n\t\t\t\t\thas_cards[3][0] = 1;\n\t\t\t\t}",
"has_cards[3][0] = 1",
"has_cards[3][0]",
"has_cards[3]",
"has_cards",
"3",
"0",
"1",
"if(num == 2){\n\t\t\t\t\thas_cards[3][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[3][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[3][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[3][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[3][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[3][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[3][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[3][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[3][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}",
"num == 2",
"num",
"2",
"{\n\t\t\t\t\thas_cards[3][1] = 2;\n\t\t\t\t}",
"has_cards[3][1] = 2",
"has_cards[3][1]",
"has_cards[3]",
"has_cards",
"3",
"1",
"2",
"if(num == 3){\n\t\t\t\t\thas_cards[3][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[3][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[3][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[3][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[3][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[3][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[3][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[3][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}",
"num == 3",
"num",
"3",
"{\n\t\t\t\t\thas_cards[3][2] = 3;\n\t\t\t\t}",
"has_cards[3][2] = 3",
"has_cards[3][2]",
"has_cards[3]",
"has_cards",
"3",
"2",
"3",
"if(num == 4){\n\t\t\t\t\thas_cards[3][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[3][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[3][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[3][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[3][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[3][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[3][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}",
"num == 4",
"num",
"4",
"{\n\t\t\t\t\thas_cards[3][3] = 4;\n\t\t\t\t}",
"has_cards[3][3] = 4",
"has_cards[3][3]",
"has_cards[3]",
"has_cards",
"3",
"3",
"4",
"if(num == 5){\n\t\t\t\t\thas_cards[3][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[3][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[3][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[3][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[3][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[3][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}",
"num == 5",
"num",
"5",
"{\n\t\t\t\t\thas_cards[3][4] = 5;\n\t\t\t\t}",
"has_cards[3][4] = 5",
"has_cards[3][4]",
"has_cards[3]",
"has_cards",
"3",
"4",
"5",
"if(num == 6){\n\t\t\t\t\thas_cards[3][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[3][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[3][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[3][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[3][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}",
"num == 6",
"num",
"6",
"{\n\t\t\t\t\thas_cards[3][5] = 6;\n\t\t\t\t}",
"has_cards[3][5] = 6",
"has_cards[3][5]",
"has_cards[3]",
"has_cards",
"3",
"5",
"6",
"if(num == 7){\n\t\t\t\t\thas_cards[3][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[3][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[3][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[3][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}",
"num == 7",
"num",
"7",
"{\n\t\t\t\t\thas_cards[3][6] = 7;\n\t\t\t\t}",
"has_cards[3][6] = 7",
"has_cards[3][6]",
"has_cards[3]",
"has_cards",
"3",
"6",
"7",
"if(num == 8){\n\t\t\t\t\thas_cards[3][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[3][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[3][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}",
"num == 8",
"num",
"8",
"{\n\t\t\t\t\thas_cards[3][7] = 8;\n\t\t\t\t}",
"has_cards[3][7] = 8",
"has_cards[3][7]",
"has_cards[3]",
"has_cards",
"3",
"7",
"8",
"if(num == 9){\n\t\t\t\t\thas_cards[3][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[3][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}",
"num == 9",
"num",
"9",
"{\n\t\t\t\t\thas_cards[3][8] = 9;\n\t\t\t\t}",
"has_cards[3][8] = 9",
"has_cards[3][8]",
"has_cards[3]",
"has_cards",
"3",
"8",
"9",
"if(num == 10){\n\t\t\t\t\thas_cards[3][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}",
"num == 10",
"num",
"10",
"{\n\t\t\t\t\thas_cards[3][9] = 10;\n\t\t\t\t}",
"has_cards[3][9] = 10",
"has_cards[3][9]",
"has_cards[3]",
"has_cards",
"3",
"9",
"10",
"if(num == 11){\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}",
"num == 11",
"num",
"11",
"{\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}",
"has_cards[3][10] = 11",
"has_cards[3][10]",
"has_cards[3]",
"has_cards",
"3",
"10",
"11",
"if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}",
"num == 12",
"num",
"12",
"{\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}",
"has_cards[3][11] = 12",
"has_cards[3][11]",
"has_cards[3]",
"has_cards",
"3",
"11",
"12",
"if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}",
"num == 13",
"num",
"13",
"{\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}",
"has_cards[3][12] = 13",
"has_cards[3][12]",
"has_cards[3]",
"has_cards",
"3",
"12",
"13",
"for(int m = 0; m < 4; m++) {\n\n\t\t\tfor(int n = 0; n < 13; n++) {\n\n\t\t\t\tif(cards[m][n] != has_cards[m][n]){\n\n\t\t\t\t\tif(m == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + cards[m][n]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int m = 0;",
"int m = 0;",
"m",
"0",
"m < 4",
"m",
"4",
"m++",
"m++",
"m",
"{\n\n\t\t\tfor(int n = 0; n < 13; n++) {\n\n\t\t\t\tif(cards[m][n] != has_cards[m][n]){\n\n\t\t\t\t\tif(m == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + cards[m][n]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\n\t\t\tfor(int n = 0; n < 13; n++) {\n\n\t\t\t\tif(cards[m][n] != has_cards[m][n]){\n\n\t\t\t\t\tif(m == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + cards[m][n]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int n = 0; n < 13; n++) {\n\n\t\t\t\tif(cards[m][n] != has_cards[m][n]){\n\n\t\t\t\t\tif(m == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + cards[m][n]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int n = 0;",
"int n = 0;",
"n",
"0",
"n < 13",
"n",
"13",
"n++",
"n++",
"n",
"{\n\n\t\t\t\tif(cards[m][n] != has_cards[m][n]){\n\n\t\t\t\t\tif(m == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + cards[m][n]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\n\t\t\t\tif(cards[m][n] != has_cards[m][n]){\n\n\t\t\t\t\tif(m == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + cards[m][n]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"if(cards[m][n] != has_cards[m][n]){\n\n\t\t\t\t\tif(m == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + cards[m][n]);\n\t\t\t\t\t}\n\t\t\t\t}",
"cards[m][n] != has_cards[m][n]",
"cards[m][n]",
"cards[m]",
"cards",
"m",
"n",
"has_cards[m][n]",
"has_cards[m]",
"has_cards",
"m",
"n",
"{\n\n\t\t\t\t\tif(m == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + cards[m][n]);\n\t\t\t\t\t}\n\t\t\t\t}",
"if(m == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + cards[m][n]);\n\t\t\t\t\t}",
"m == 0",
"m",
"0",
"{\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + cards[m][n]);\n\t\t\t\t\t}",
"System.out.println(\"S\" + \" \" + cards[m][n])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S\" + \" \" + cards[m][n]",
"\"S\" + \" \" + cards[m][n]",
"\"S\"",
"\" \"",
"cards[m][n]",
"cards[m]",
"cards",
"m",
"n",
"if(m == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + cards[m][n]);\n\t\t\t\t\t}",
"m == 1",
"m",
"1",
"{\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + cards[m][n]);\n\t\t\t\t\t}",
"System.out.println(\"H\" + \" \" + cards[m][n])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H\" + \" \" + cards[m][n]",
"\"H\" + \" \" + cards[m][n]",
"\"H\"",
"\" \"",
"cards[m][n]",
"cards[m]",
"cards",
"m",
"n",
"if(m == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + cards[m][n]);\n\t\t\t\t\t}",
"m == 2",
"m",
"2",
"{\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + cards[m][n]);\n\t\t\t\t\t}",
"System.out.println(\"C\" + \" \" + cards[m][n])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C\" + \" \" + cards[m][n]",
"\"C\" + \" \" + cards[m][n]",
"\"C\"",
"\" \"",
"cards[m][n]",
"cards[m]",
"cards",
"m",
"n",
"if(m == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + cards[m][n]);\n\t\t\t\t\t}",
"m == 3",
"m",
"3",
"{\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + cards[m][n]);\n\t\t\t\t\t}",
"System.out.println(\"D\" + \" \" + cards[m][n])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D\" + \" \" + cards[m][n]",
"\"D\" + \" \" + cards[m][n]",
"\"D\"",
"\" \"",
"cards[m][n]",
"cards[m]",
"cards",
"m",
"n",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\n\t\tint[][] cards = new int[4][13];\n\t\tint[][] has_cards = new int[4][13];\n\n\t\tfor(int m = 0; m < 4; m++){\n\n\t\t\tfor(int i = 0; i < 13; i++){\n\n\t\t\t\tcards[m][i] = i + 1;\n\t\t\t}\n\t\t}\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint all_num = in.nextInt();\n\n\t\tfor(int i = 0; i < all_num; i++){\n\n\t\t\tString mark = in.next();\n\t\t\tint num = in.nextInt();\n\n\t\t\tif(mark.equals(\"S\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[0][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[0][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[0][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[0][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[0][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[0][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[0][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[0][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[0][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[0][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[0][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[0][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[0][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[1][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[1][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[1][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[1][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[1][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[1][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[1][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[1][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[1][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[1][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[1][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[1][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[2][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[2][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[2][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[2][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[2][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[2][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[2][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[2][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[2][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[2][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[2][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[3][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[3][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[3][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[3][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[3][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[3][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[3][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[3][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[3][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[3][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int m = 0; m < 4; m++) {\n\n\t\t\tfor(int n = 0; n < 13; n++) {\n\n\t\t\t\tif(cards[m][n] != has_cards[m][n]){\n\n\t\t\t\t\tif(m == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + cards[m][n]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\n\t\tint[][] cards = new int[4][13];\n\t\tint[][] has_cards = new int[4][13];\n\n\t\tfor(int m = 0; m < 4; m++){\n\n\t\t\tfor(int i = 0; i < 13; i++){\n\n\t\t\t\tcards[m][i] = i + 1;\n\t\t\t}\n\t\t}\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint all_num = in.nextInt();\n\n\t\tfor(int i = 0; i < all_num; i++){\n\n\t\t\tString mark = in.next();\n\t\t\tint num = in.nextInt();\n\n\t\t\tif(mark.equals(\"S\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[0][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[0][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[0][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[0][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[0][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[0][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[0][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[0][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[0][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[0][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[0][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[0][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[0][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[1][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[1][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[1][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[1][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[1][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[1][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[1][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[1][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[1][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[1][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[1][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[1][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[1][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[2][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[2][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[2][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[2][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[2][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[2][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[2][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[2][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[2][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[2][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[2][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[2][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[2][12] = 13;\n\t\t\t\t}\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tif(num == 1){\n\t\t\t\t\thas_cards[3][0] = 1;\n\t\t\t\t}else if(num == 2){\n\t\t\t\t\thas_cards[3][1] = 2;\n\t\t\t\t}else if(num == 3){\n\t\t\t\t\thas_cards[3][2] = 3;\n\t\t\t\t}else if(num == 4){\n\t\t\t\t\thas_cards[3][3] = 4;\n\t\t\t\t}else if(num == 5){\n\t\t\t\t\thas_cards[3][4] = 5;\n\t\t\t\t}else if(num == 6){\n\t\t\t\t\thas_cards[3][5] = 6;\n\t\t\t\t}else if(num == 7){\n\t\t\t\t\thas_cards[3][6] = 7;\n\t\t\t\t}else if(num == 8){\n\t\t\t\t\thas_cards[3][7] = 8;\n\t\t\t\t}else if(num == 9){\n\t\t\t\t\thas_cards[3][8] = 9;\n\t\t\t\t}else if(num == 10){\n\t\t\t\t\thas_cards[3][9] = 10;\n\t\t\t\t}else if(num == 11){\n\t\t\t\t\thas_cards[3][10] = 11;\n\t\t\t\t}else if(num == 12){\n\t\t\t\t\thas_cards[3][11] = 12;\n\t\t\t\t}else if(num == 13){\n\t\t\t\t\thas_cards[3][12] = 13;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int m = 0; m < 4; m++) {\n\n\t\t\tfor(int n = 0; n < 13; n++) {\n\n\t\t\t\tif(cards[m][n] != has_cards[m][n]){\n\n\t\t\t\t\tif(m == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + cards[m][n]);\n\t\t\t\t\t}else if(m == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + cards[m][n]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int[][] cards = new int[4][13];
int[][] has_cards = new int[4][13];
for(int m = 0; m < 4; m++){
for(int i = 0; i < 13; i++){
cards[m][i] = i + 1;
}
}
Scanner in = new Scanner(System.in);
int all_num = in.nextInt();
for(int i = 0; i < all_num; i++){
String mark = in.next();
int num = in.nextInt();
if(mark.equals("S")){
if(num == 1){
has_cards[0][0] = 1;
}else if(num == 2){
has_cards[0][1] = 2;
}else if(num == 3){
has_cards[0][2] = 3;
}else if(num == 4){
has_cards[0][3] = 4;
}else if(num == 5){
has_cards[0][4] = 5;
}else if(num == 6){
has_cards[0][5] = 6;
}else if(num == 7){
has_cards[0][6] = 7;
}else if(num == 8){
has_cards[0][7] = 8;
}else if(num == 9){
has_cards[0][8] = 9;
}else if(num == 10){
has_cards[0][9] = 10;
}else if(num == 11){
has_cards[0][10] = 11;
}else if(num == 12){
has_cards[0][11] = 12;
}else if(num == 13){
has_cards[0][12] = 13;
}
}else if(mark.equals("H")){
if(num == 1){
has_cards[1][0] = 1;
}else if(num == 2){
has_cards[1][1] = 2;
}else if(num == 3){
has_cards[1][2] = 3;
}else if(num == 4){
has_cards[1][3] = 4;
}else if(num == 5){
has_cards[1][4] = 5;
}else if(num == 6){
has_cards[1][5] = 6;
}else if(num == 7){
has_cards[1][6] = 7;
}else if(num == 8){
has_cards[1][7] = 8;
}else if(num == 9){
has_cards[1][8] = 9;
}else if(num == 10){
has_cards[1][9] = 10;
}else if(num == 11){
has_cards[1][10] = 11;
}else if(num == 12){
has_cards[1][11] = 12;
}else if(num == 13){
has_cards[1][12] = 13;
}
}else if(mark.equals("C")){
if(num == 1){
has_cards[2][0] = 1;
}else if(num == 2){
has_cards[2][1] = 2;
}else if(num == 3){
has_cards[2][2] = 3;
}else if(num == 4){
has_cards[2][3] = 4;
}else if(num == 5){
has_cards[2][4] = 5;
}else if(num == 6){
has_cards[2][5] = 6;
}else if(num == 7){
has_cards[2][6] = 7;
}else if(num == 8){
has_cards[2][7] = 8;
}else if(num == 9){
has_cards[2][8] = 9;
}else if(num == 10){
has_cards[2][9] = 10;
}else if(num == 11){
has_cards[2][10] = 11;
}else if(num == 12){
has_cards[2][11] = 12;
}else if(num == 13){
has_cards[2][12] = 13;
}
}else if(mark.equals("D")){
if(num == 1){
has_cards[3][0] = 1;
}else if(num == 2){
has_cards[3][1] = 2;
}else if(num == 3){
has_cards[3][2] = 3;
}else if(num == 4){
has_cards[3][3] = 4;
}else if(num == 5){
has_cards[3][4] = 5;
}else if(num == 6){
has_cards[3][5] = 6;
}else if(num == 7){
has_cards[3][6] = 7;
}else if(num == 8){
has_cards[3][7] = 8;
}else if(num == 9){
has_cards[3][8] = 9;
}else if(num == 10){
has_cards[3][9] = 10;
}else if(num == 11){
has_cards[3][10] = 11;
}else if(num == 12){
has_cards[3][11] = 12;
}else if(num == 13){
has_cards[3][12] = 13;
}
}
}
for(int m = 0; m < 4; m++) {
for(int n = 0; n < 13; n++) {
if(cards[m][n] != has_cards[m][n]){
if(m == 0) {
System.out.println("S" + " " + cards[m][n]);
}else if(m == 1) {
System.out.println("H" + " " + cards[m][n]);
}else if(m == 2) {
System.out.println("C" + " " + cards[m][n]);
}else if(m == 3) {
System.out.println("D" + " " + cards[m][n]);
}
}
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
18,
4,
18,
13,
17,
17,
17,
0,
13,
4,
18,
13,
18,
4,
18,
13,
17,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
13,
2,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
13,
2,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
13,
2,
13,
17,
17,
30,
0,
18,
13,
2,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
14,
2,
13,
17,
30,
0,
13,
4,
18,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
13,
17,
30,
0,
13,
4,
18,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
13,
17,
30,
0,
13,
4,
18,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
13,
30,
0,
13,
4,
18,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
14,
22
],
[
22,
23
],
[
14,
24
],
[
24,
25
],
[
24,
26
],
[
14,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
14,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
52,
53
],
[
14,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
54,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
66,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
75,
79
],
[
74,
80
],
[
66,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
87,
91
],
[
86,
92
],
[
66,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
93,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
99,
105
],
[
93,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
106,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
115,
117
],
[
112,
118
],
[
106,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
119,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
128,
130
],
[
125,
131
],
[
119,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
136,
138
],
[
133,
139
],
[
14,
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
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
168,
169
],
[
167,
170
],
[
170,
171
],
[
170,
172
],
[
164,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
173,
178
],
[
178,
179
],
[
178,
180
],
[
160,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
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
],
[
194,
199
],
[
199,
200
],
[
199,
201
],
[
181,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
202,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
209,
210
],
[
210,
211
],
[
209,
212
],
[
212,
213
],
[
212,
214
],
[
206,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
215,
220
],
[
220,
221
],
[
220,
222
],
[
202,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
227,
228
],
[
226,
229
],
[
229,
230
],
[
229,
231
],
[
223,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
232,
237
],
[
237,
238
],
[
237,
239
],
[
12,
240
],
[
240,
241
]
] | [
"import java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.BufferedReader;\n\nclass Main {\n public static void main(String[] args) throws IOException {\n BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n int x;\n String e, str;\n int card[] = new int[52];\n for (int i = 0; i < 52; i++) {\n card[i] = 0;\n }\n int n = Integer.parseInt(buf.readLine());\n for (int i = 0;i < n; i++) {\n str = buf.readLine();\n e = str.split(\" \", 0)[0];\n x = Integer.parseInt(str.split(\" \", 0)[1]);\n if (e.equals(\"S\")) {\n card[x-1] = 1;\n } else if (e.equals(\"H\")) {\n card[x+12] = 1;\n } else if (e.equals(\"C\")) {\n card[x+25] = 1;\n } else {\n card[x+38] = 1;\n }\n }\n for (int i = 0; i < 52; i++) {\n if (card[i] == 0) {\n if (i < 13) {\n str = String.valueOf(i+1);\n System.out.println(\"S \"+str);\n } else if (i < 26) {\n str = String.valueOf(i-12);\n System.out.println(\"H \"+str);\n } else if (i < 39) {\n str = String.valueOf(i-25);\n System.out.println(\"C \"+str);\n } else {\n str = String.valueOf(i-38);\n System.out.println(\"D \"+str);\n }\n }\n }\n }\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n int x;\n String e, str;\n int card[] = new int[52];\n for (int i = 0; i < 52; i++) {\n card[i] = 0;\n }\n int n = Integer.parseInt(buf.readLine());\n for (int i = 0;i < n; i++) {\n str = buf.readLine();\n e = str.split(\" \", 0)[0];\n x = Integer.parseInt(str.split(\" \", 0)[1]);\n if (e.equals(\"S\")) {\n card[x-1] = 1;\n } else if (e.equals(\"H\")) {\n card[x+12] = 1;\n } else if (e.equals(\"C\")) {\n card[x+25] = 1;\n } else {\n card[x+38] = 1;\n }\n }\n for (int i = 0; i < 52; i++) {\n if (card[i] == 0) {\n if (i < 13) {\n str = String.valueOf(i+1);\n System.out.println(\"S \"+str);\n } else if (i < 26) {\n str = String.valueOf(i-12);\n System.out.println(\"H \"+str);\n } else if (i < 39) {\n str = String.valueOf(i-25);\n System.out.println(\"C \"+str);\n } else {\n str = String.valueOf(i-38);\n System.out.println(\"D \"+str);\n }\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n int x;\n String e, str;\n int card[] = new int[52];\n for (int i = 0; i < 52; i++) {\n card[i] = 0;\n }\n int n = Integer.parseInt(buf.readLine());\n for (int i = 0;i < n; i++) {\n str = buf.readLine();\n e = str.split(\" \", 0)[0];\n x = Integer.parseInt(str.split(\" \", 0)[1]);\n if (e.equals(\"S\")) {\n card[x-1] = 1;\n } else if (e.equals(\"H\")) {\n card[x+12] = 1;\n } else if (e.equals(\"C\")) {\n card[x+25] = 1;\n } else {\n card[x+38] = 1;\n }\n }\n for (int i = 0; i < 52; i++) {\n if (card[i] == 0) {\n if (i < 13) {\n str = String.valueOf(i+1);\n System.out.println(\"S \"+str);\n } else if (i < 26) {\n str = String.valueOf(i-12);\n System.out.println(\"H \"+str);\n } else if (i < 39) {\n str = String.valueOf(i-25);\n System.out.println(\"C \"+str);\n } else {\n str = String.valueOf(i-38);\n System.out.println(\"D \"+str);\n }\n }\n }\n }",
"main",
"{\n BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n int x;\n String e, str;\n int card[] = new int[52];\n for (int i = 0; i < 52; i++) {\n card[i] = 0;\n }\n int n = Integer.parseInt(buf.readLine());\n for (int i = 0;i < n; i++) {\n str = buf.readLine();\n e = str.split(\" \", 0)[0];\n x = Integer.parseInt(str.split(\" \", 0)[1]);\n if (e.equals(\"S\")) {\n card[x-1] = 1;\n } else if (e.equals(\"H\")) {\n card[x+12] = 1;\n } else if (e.equals(\"C\")) {\n card[x+25] = 1;\n } else {\n card[x+38] = 1;\n }\n }\n for (int i = 0; i < 52; i++) {\n if (card[i] == 0) {\n if (i < 13) {\n str = String.valueOf(i+1);\n System.out.println(\"S \"+str);\n } else if (i < 26) {\n str = String.valueOf(i-12);\n System.out.println(\"H \"+str);\n } else if (i < 39) {\n str = String.valueOf(i-25);\n System.out.println(\"C \"+str);\n } else {\n str = String.valueOf(i-38);\n System.out.println(\"D \"+str);\n }\n }\n }\n }",
"BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));",
"buf",
"new BufferedReader(new InputStreamReader(System.in))",
"int x;",
"x",
"String e",
"e",
"str;",
"str",
"int card[] = new int[52];",
"card",
"new int[52]",
"52",
"for (int i = 0; i < 52; i++) {\n card[i] = 0;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 52",
"i",
"52",
"i++",
"i++",
"i",
"{\n card[i] = 0;\n }",
"{\n card[i] = 0;\n }",
"card[i] = 0",
"card[i]",
"card",
"i",
"0",
"int n = Integer.parseInt(buf.readLine());",
"n",
"Integer.parseInt(buf.readLine())",
"Integer.parseInt",
"Integer",
"buf.readLine()",
"buf.readLine",
"buf",
"for (int i = 0;i < n; i++) {\n str = buf.readLine();\n e = str.split(\" \", 0)[0];\n x = Integer.parseInt(str.split(\" \", 0)[1]);\n if (e.equals(\"S\")) {\n card[x-1] = 1;\n } else if (e.equals(\"H\")) {\n card[x+12] = 1;\n } else if (e.equals(\"C\")) {\n card[x+25] = 1;\n } else {\n card[x+38] = 1;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n str = buf.readLine();\n e = str.split(\" \", 0)[0];\n x = Integer.parseInt(str.split(\" \", 0)[1]);\n if (e.equals(\"S\")) {\n card[x-1] = 1;\n } else if (e.equals(\"H\")) {\n card[x+12] = 1;\n } else if (e.equals(\"C\")) {\n card[x+25] = 1;\n } else {\n card[x+38] = 1;\n }\n }",
"{\n str = buf.readLine();\n e = str.split(\" \", 0)[0];\n x = Integer.parseInt(str.split(\" \", 0)[1]);\n if (e.equals(\"S\")) {\n card[x-1] = 1;\n } else if (e.equals(\"H\")) {\n card[x+12] = 1;\n } else if (e.equals(\"C\")) {\n card[x+25] = 1;\n } else {\n card[x+38] = 1;\n }\n }",
"str = buf.readLine()",
"str",
"buf.readLine()",
"buf.readLine",
"buf",
"e = str.split(\" \", 0)[0]",
"e",
"str.split(\" \", 0)[0]",
"str.split(\" \", 0)",
"str.split",
"str",
"\" \"",
"0",
"0",
"x = Integer.parseInt(str.split(\" \", 0)[1])",
"x",
"Integer.parseInt(str.split(\" \", 0)[1])",
"Integer.parseInt",
"Integer",
"str.split(\" \", 0)[1]",
"str.split(\" \", 0)",
"str.split",
"str",
"\" \"",
"0",
"1",
"if (e.equals(\"S\")) {\n card[x-1] = 1;\n } else if (e.equals(\"H\")) {\n card[x+12] = 1;\n } else if (e.equals(\"C\")) {\n card[x+25] = 1;\n } else {\n card[x+38] = 1;\n }",
"e.equals(\"S\")",
"e.equals",
"e",
"\"S\"",
"{\n card[x-1] = 1;\n }",
"card[x-1] = 1",
"card[x-1]",
"card",
"x-1",
"x",
"1",
"1",
"if (e.equals(\"H\")) {\n card[x+12] = 1;\n } else if (e.equals(\"C\")) {\n card[x+25] = 1;\n } else {\n card[x+38] = 1;\n }",
"e.equals(\"H\")",
"e.equals",
"e",
"\"H\"",
"{\n card[x+12] = 1;\n }",
"card[x+12] = 1",
"card[x+12]",
"card",
"x+12",
"x",
"12",
"1",
"if (e.equals(\"C\")) {\n card[x+25] = 1;\n } else {\n card[x+38] = 1;\n }",
"e.equals(\"C\")",
"e.equals",
"e",
"\"C\"",
"{\n card[x+25] = 1;\n }",
"card[x+25] = 1",
"card[x+25]",
"card",
"x+25",
"x",
"25",
"1",
"{\n card[x+38] = 1;\n }",
"card[x+38] = 1",
"card[x+38]",
"card",
"x+38",
"x",
"38",
"1",
"for (int i = 0; i < 52; i++) {\n if (card[i] == 0) {\n if (i < 13) {\n str = String.valueOf(i+1);\n System.out.println(\"S \"+str);\n } else if (i < 26) {\n str = String.valueOf(i-12);\n System.out.println(\"H \"+str);\n } else if (i < 39) {\n str = String.valueOf(i-25);\n System.out.println(\"C \"+str);\n } else {\n str = String.valueOf(i-38);\n System.out.println(\"D \"+str);\n }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 52",
"i",
"52",
"i++",
"i++",
"i",
"{\n if (card[i] == 0) {\n if (i < 13) {\n str = String.valueOf(i+1);\n System.out.println(\"S \"+str);\n } else if (i < 26) {\n str = String.valueOf(i-12);\n System.out.println(\"H \"+str);\n } else if (i < 39) {\n str = String.valueOf(i-25);\n System.out.println(\"C \"+str);\n } else {\n str = String.valueOf(i-38);\n System.out.println(\"D \"+str);\n }\n }\n }",
"{\n if (card[i] == 0) {\n if (i < 13) {\n str = String.valueOf(i+1);\n System.out.println(\"S \"+str);\n } else if (i < 26) {\n str = String.valueOf(i-12);\n System.out.println(\"H \"+str);\n } else if (i < 39) {\n str = String.valueOf(i-25);\n System.out.println(\"C \"+str);\n } else {\n str = String.valueOf(i-38);\n System.out.println(\"D \"+str);\n }\n }\n }",
"if (card[i] == 0) {\n if (i < 13) {\n str = String.valueOf(i+1);\n System.out.println(\"S \"+str);\n } else if (i < 26) {\n str = String.valueOf(i-12);\n System.out.println(\"H \"+str);\n } else if (i < 39) {\n str = String.valueOf(i-25);\n System.out.println(\"C \"+str);\n } else {\n str = String.valueOf(i-38);\n System.out.println(\"D \"+str);\n }\n }",
"card[i] == 0",
"card[i]",
"card",
"i",
"0",
"{\n if (i < 13) {\n str = String.valueOf(i+1);\n System.out.println(\"S \"+str);\n } else if (i < 26) {\n str = String.valueOf(i-12);\n System.out.println(\"H \"+str);\n } else if (i < 39) {\n str = String.valueOf(i-25);\n System.out.println(\"C \"+str);\n } else {\n str = String.valueOf(i-38);\n System.out.println(\"D \"+str);\n }\n }",
"if (i < 13) {\n str = String.valueOf(i+1);\n System.out.println(\"S \"+str);\n } else if (i < 26) {\n str = String.valueOf(i-12);\n System.out.println(\"H \"+str);\n } else if (i < 39) {\n str = String.valueOf(i-25);\n System.out.println(\"C \"+str);\n } else {\n str = String.valueOf(i-38);\n System.out.println(\"D \"+str);\n }",
"i < 13",
"i",
"13",
"{\n str = String.valueOf(i+1);\n System.out.println(\"S \"+str);\n }",
"str = String.valueOf(i+1)",
"str",
"String.valueOf(i+1)",
"String.valueOf",
"String",
"i+1",
"i",
"1",
"System.out.println(\"S \"+str)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \"+str",
"\"S \"",
"str",
"if (i < 26) {\n str = String.valueOf(i-12);\n System.out.println(\"H \"+str);\n } else if (i < 39) {\n str = String.valueOf(i-25);\n System.out.println(\"C \"+str);\n } else {\n str = String.valueOf(i-38);\n System.out.println(\"D \"+str);\n }",
"i < 26",
"i",
"26",
"{\n str = String.valueOf(i-12);\n System.out.println(\"H \"+str);\n }",
"str = String.valueOf(i-12)",
"str",
"String.valueOf(i-12)",
"String.valueOf",
"String",
"i-12",
"i",
"12",
"System.out.println(\"H \"+str)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \"+str",
"\"H \"",
"str",
"if (i < 39) {\n str = String.valueOf(i-25);\n System.out.println(\"C \"+str);\n } else {\n str = String.valueOf(i-38);\n System.out.println(\"D \"+str);\n }",
"i < 39",
"i",
"39",
"{\n str = String.valueOf(i-25);\n System.out.println(\"C \"+str);\n }",
"str = String.valueOf(i-25)",
"str",
"String.valueOf(i-25)",
"String.valueOf",
"String",
"i-25",
"i",
"25",
"System.out.println(\"C \"+str)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \"+str",
"\"C \"",
"str",
"{\n str = String.valueOf(i-38);\n System.out.println(\"D \"+str);\n }",
"str = String.valueOf(i-38)",
"str",
"String.valueOf(i-38)",
"String.valueOf",
"String",
"i-38",
"i",
"38",
"System.out.println(\"D \"+str)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \"+str",
"\"D \"",
"str",
"String[] args",
"args"
] | import java.io.IOException;
import java.io.InputStreamReader;
import java.io.BufferedReader;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
int x;
String e, str;
int card[] = new int[52];
for (int i = 0; i < 52; i++) {
card[i] = 0;
}
int n = Integer.parseInt(buf.readLine());
for (int i = 0;i < n; i++) {
str = buf.readLine();
e = str.split(" ", 0)[0];
x = Integer.parseInt(str.split(" ", 0)[1]);
if (e.equals("S")) {
card[x-1] = 1;
} else if (e.equals("H")) {
card[x+12] = 1;
} else if (e.equals("C")) {
card[x+25] = 1;
} else {
card[x+38] = 1;
}
}
for (int i = 0; i < 52; i++) {
if (card[i] == 0) {
if (i < 13) {
str = String.valueOf(i+1);
System.out.println("S "+str);
} else if (i < 26) {
str = String.valueOf(i-12);
System.out.println("H "+str);
} else if (i < 39) {
str = String.valueOf(i-25);
System.out.println("C "+str);
} else {
str = String.valueOf(i-38);
System.out.println("D "+str);
}
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
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,
11,
1,
41,
13,
4,
18,
13,
2,
13,
17,
1,
0,
13,
4,
18,
13,
30,
30,
4,
18,
13,
13,
4,
18,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
18,
4,
18,
4,
18,
13,
13,
17,
17,
41,
13,
4,
18,
13,
18,
4,
18,
4,
18,
13,
13,
17,
17,
14,
4,
18,
13,
17,
30,
4,
18,
13,
13,
14,
4,
18,
13,
17,
30,
4,
18,
13,
13,
14,
4,
18,
13,
17,
30,
4,
18,
13,
13,
14,
4,
18,
13,
17,
30,
4,
18,
13,
13,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
13,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
13,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
13,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
13,
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
],
[
239,
23
],
[
239,
24
],
[
24,
25
],
[
239,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
39,
40
],
[
32,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
50,
51
],
[
32,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
29,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
56,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
63,
70
],
[
70,
71
],
[
70,
72
],
[
63,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
63,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
56,
85
],
[
85,
86
],
[
86,
87
],
[
56,
88
],
[
88,
89
],
[
88,
90
],
[
56,
91
],
[
91,
92
],
[
91,
93
],
[
56,
94
],
[
94,
95
],
[
94,
96
],
[
56,
97
],
[
97,
98
],
[
97,
99
],
[
56,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
100,
110
],
[
110,
111
],
[
111,
112
],
[
100,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
118,
124
],
[
117,
125
],
[
114,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
128,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
132,
138
],
[
131,
139
],
[
114,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
141,
144
],
[
140,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
140,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
151,
154
],
[
150,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
156,
159
],
[
150,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
161,
164
],
[
160,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
166,
169
],
[
160,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
171,
174
],
[
170,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
176,
179
],
[
56,
180
],
[
180,
181
],
[
180,
182
],
[
180,
183
],
[
184,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
185,
190
],
[
190,
191
],
[
190,
192
],
[
56,
193
],
[
193,
194
],
[
193,
195
],
[
193,
196
],
[
197,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
198,
203
],
[
203,
204
],
[
203,
205
],
[
56,
206
],
[
206,
207
],
[
206,
208
],
[
206,
209
],
[
210,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
211,
216
],
[
216,
217
],
[
216,
218
],
[
56,
219
],
[
219,
220
],
[
219,
221
],
[
219,
222
],
[
223,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
224,
229
],
[
229,
230
],
[
229,
231
],
[
56,
232
],
[
232,
233
],
[
233,
234
],
[
232,
235
],
[
26,
236
],
[
236,
237
],
[
0,
238
],
[
238,
239
],
[
238,
240
]
] | [
"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;\n\npublic class Main{\n\n static StringBuilder sb;\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\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\n\t // lines.add(\"47\");\n\t // lines.add(\"S 10\");\n\t // lines.add(\"S 11\");\n\t // lines.add(\"S 12\");\n\t // lines.add(\"S 13\");\n\t // lines.add(\"H 1\");\n\n\t br.close();\n\n\t List<Integer> S = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\t List<Integer> H = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\t List<Integer> C = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\t List<Integer> D = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\n\t for (int i = 1; i < lines.size(); i++) {\n\t\tString type = lines.get(i).split(\" \")[0];\n\t\tInteger num = Integer.parseInt(lines.get(i).split(\" \")[1]);\n\t\tif (type.equals(\"S\")) {\n\t\t S.remove(num);\n\t\t} else if (type.equals(\"H\")) {\n\t\t H.remove(num);\n\t\t} else if (type.equals(\"C\")) {\n\t\t C.remove(num);\n\t\t} else if (type.equals(\"D\")) {\n\t\t D.remove(num);\n\t\t}\n\t }\n\n\t for (Integer s : S) { System.out.println(\"S \" + s); }\n\t for (Integer s : H) { System.out.println(\"H \" + s); }\n\t for (Integer s : C) { System.out.println(\"C \" + s); }\n\t for (Integer s : D) { System.out.println(\"D \" + s); }\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",
"public class Main{\n\n static StringBuilder sb;\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\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\n\t // lines.add(\"47\");\n\t // lines.add(\"S 10\");\n\t // lines.add(\"S 11\");\n\t // lines.add(\"S 12\");\n\t // lines.add(\"S 13\");\n\t // lines.add(\"H 1\");\n\n\t br.close();\n\n\t List<Integer> S = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\t List<Integer> H = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\t List<Integer> C = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\t List<Integer> D = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\n\t for (int i = 1; i < lines.size(); i++) {\n\t\tString type = lines.get(i).split(\" \")[0];\n\t\tInteger num = Integer.parseInt(lines.get(i).split(\" \")[1]);\n\t\tif (type.equals(\"S\")) {\n\t\t S.remove(num);\n\t\t} else if (type.equals(\"H\")) {\n\t\t H.remove(num);\n\t\t} else if (type.equals(\"C\")) {\n\t\t C.remove(num);\n\t\t} else if (type.equals(\"D\")) {\n\t\t D.remove(num);\n\t\t}\n\t }\n\n\t for (Integer s : S) { System.out.println(\"S \" + s); }\n\t for (Integer s : H) { System.out.println(\"H \" + s); }\n\t for (Integer s : C) { System.out.println(\"C \" + s); }\n\t for (Integer s : D) { System.out.println(\"D \" + s); }\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",
"static StringBuilder sb;",
"sb",
"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\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\n\t // lines.add(\"47\");\n\t // lines.add(\"S 10\");\n\t // lines.add(\"S 11\");\n\t // lines.add(\"S 12\");\n\t // lines.add(\"S 13\");\n\t // lines.add(\"H 1\");\n\n\t br.close();\n\n\t List<Integer> S = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\t List<Integer> H = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\t List<Integer> C = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\t List<Integer> D = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\n\t for (int i = 1; i < lines.size(); i++) {\n\t\tString type = lines.get(i).split(\" \")[0];\n\t\tInteger num = Integer.parseInt(lines.get(i).split(\" \")[1]);\n\t\tif (type.equals(\"S\")) {\n\t\t S.remove(num);\n\t\t} else if (type.equals(\"H\")) {\n\t\t H.remove(num);\n\t\t} else if (type.equals(\"C\")) {\n\t\t C.remove(num);\n\t\t} else if (type.equals(\"D\")) {\n\t\t D.remove(num);\n\t\t}\n\t }\n\n\t for (Integer s : S) { System.out.println(\"S \" + s); }\n\t for (Integer s : H) { System.out.println(\"H \" + s); }\n\t for (Integer s : C) { System.out.println(\"C \" + s); }\n\t for (Integer s : D) { System.out.println(\"D \" + s); }\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\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\n\t // lines.add(\"47\");\n\t // lines.add(\"S 10\");\n\t // lines.add(\"S 11\");\n\t // lines.add(\"S 12\");\n\t // lines.add(\"S 13\");\n\t // lines.add(\"H 1\");\n\n\t br.close();\n\n\t List<Integer> S = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\t List<Integer> H = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\t List<Integer> C = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\t List<Integer> D = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\n\t for (int i = 1; i < lines.size(); i++) {\n\t\tString type = lines.get(i).split(\" \")[0];\n\t\tInteger num = Integer.parseInt(lines.get(i).split(\" \")[1]);\n\t\tif (type.equals(\"S\")) {\n\t\t S.remove(num);\n\t\t} else if (type.equals(\"H\")) {\n\t\t H.remove(num);\n\t\t} else if (type.equals(\"C\")) {\n\t\t C.remove(num);\n\t\t} else if (type.equals(\"D\")) {\n\t\t D.remove(num);\n\t\t}\n\t }\n\n\t for (Integer s : S) { System.out.println(\"S \" + s); }\n\t for (Integer s : H) { System.out.println(\"H \" + s); }\n\t for (Integer s : C) { System.out.println(\"C \" + s); }\n\t for (Integer s : D) { System.out.println(\"D \" + s); }\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\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\n\t // lines.add(\"47\");\n\t // lines.add(\"S 10\");\n\t // lines.add(\"S 11\");\n\t // lines.add(\"S 12\");\n\t // lines.add(\"S 13\");\n\t // lines.add(\"H 1\");\n\n\t br.close();\n\n\t List<Integer> S = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\t List<Integer> H = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\t List<Integer> C = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\t List<Integer> D = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\n\t for (int i = 1; i < lines.size(); i++) {\n\t\tString type = lines.get(i).split(\" \")[0];\n\t\tInteger num = Integer.parseInt(lines.get(i).split(\" \")[1]);\n\t\tif (type.equals(\"S\")) {\n\t\t S.remove(num);\n\t\t} else if (type.equals(\"H\")) {\n\t\t H.remove(num);\n\t\t} else if (type.equals(\"C\")) {\n\t\t C.remove(num);\n\t\t} else if (type.equals(\"D\")) {\n\t\t D.remove(num);\n\t\t}\n\t }\n\n\t for (Integer s : S) { System.out.println(\"S \" + s); }\n\t for (Integer s : H) { System.out.println(\"H \" + s); }\n\t for (Integer s : C) { System.out.println(\"C \" + s); }\n\t for (Integer s : D) { System.out.println(\"D \" + s); }\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\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\n\t // lines.add(\"47\");\n\t // lines.add(\"S 10\");\n\t // lines.add(\"S 11\");\n\t // lines.add(\"S 12\");\n\t // lines.add(\"S 13\");\n\t // lines.add(\"H 1\");\n\n\t br.close();\n\n\t List<Integer> S = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\t List<Integer> H = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\t List<Integer> C = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\t List<Integer> D = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\n\t for (int i = 1; i < lines.size(); i++) {\n\t\tString type = lines.get(i).split(\" \")[0];\n\t\tInteger num = Integer.parseInt(lines.get(i).split(\" \")[1]);\n\t\tif (type.equals(\"S\")) {\n\t\t S.remove(num);\n\t\t} else if (type.equals(\"H\")) {\n\t\t H.remove(num);\n\t\t} else if (type.equals(\"C\")) {\n\t\t C.remove(num);\n\t\t} else if (type.equals(\"D\")) {\n\t\t D.remove(num);\n\t\t}\n\t }\n\n\t for (Integer s : S) { System.out.println(\"S \" + s); }\n\t for (Integer s : H) { System.out.println(\"H \" + s); }\n\t for (Integer s : C) { System.out.println(\"C \" + s); }\n\t for (Integer s : D) { System.out.println(\"D \" + s); }\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>()",
"for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }",
"String line = br.readLine();",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"line != null",
"line",
"null",
"line = br.readLine()",
"line = br.readLine()",
"line",
"br.readLine()",
"br.readLine",
"br",
"{\n\t\tlines.add(line);\n\t }",
"{\n\t\tlines.add(line);\n\t }",
"lines.add(line)",
"lines.add",
"lines",
"line",
"br.close()",
"br.close",
"br",
"List<Integer> S = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));",
"S",
"new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13))",
"List<Integer> H = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));",
"H",
"new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13))",
"List<Integer> C = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));",
"C",
"new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13))",
"List<Integer> D = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));",
"D",
"new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13))",
"for (int i = 1; i < lines.size(); i++) {\n\t\tString type = lines.get(i).split(\" \")[0];\n\t\tInteger num = Integer.parseInt(lines.get(i).split(\" \")[1]);\n\t\tif (type.equals(\"S\")) {\n\t\t S.remove(num);\n\t\t} else if (type.equals(\"H\")) {\n\t\t H.remove(num);\n\t\t} else if (type.equals(\"C\")) {\n\t\t C.remove(num);\n\t\t} else if (type.equals(\"D\")) {\n\t\t D.remove(num);\n\t\t}\n\t }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < lines.size()",
"i",
"lines.size()",
"lines.size",
"lines",
"i++",
"i++",
"i",
"{\n\t\tString type = lines.get(i).split(\" \")[0];\n\t\tInteger num = Integer.parseInt(lines.get(i).split(\" \")[1]);\n\t\tif (type.equals(\"S\")) {\n\t\t S.remove(num);\n\t\t} else if (type.equals(\"H\")) {\n\t\t H.remove(num);\n\t\t} else if (type.equals(\"C\")) {\n\t\t C.remove(num);\n\t\t} else if (type.equals(\"D\")) {\n\t\t D.remove(num);\n\t\t}\n\t }",
"{\n\t\tString type = lines.get(i).split(\" \")[0];\n\t\tInteger num = Integer.parseInt(lines.get(i).split(\" \")[1]);\n\t\tif (type.equals(\"S\")) {\n\t\t S.remove(num);\n\t\t} else if (type.equals(\"H\")) {\n\t\t H.remove(num);\n\t\t} else if (type.equals(\"C\")) {\n\t\t C.remove(num);\n\t\t} else if (type.equals(\"D\")) {\n\t\t D.remove(num);\n\t\t}\n\t }",
"String type = lines.get(i).split(\" \")[0];",
"type",
"lines.get(i).split(\" \")[0]",
"lines.get(i).split(\" \")",
"lines.get(i).split",
"lines.get(i)",
"lines.get",
"lines",
"i",
"\" \"",
"0",
"Integer num = Integer.parseInt(lines.get(i).split(\" \")[1]);",
"num",
"Integer.parseInt(lines.get(i).split(\" \")[1])",
"Integer.parseInt",
"Integer",
"lines.get(i).split(\" \")[1]",
"lines.get(i).split(\" \")",
"lines.get(i).split",
"lines.get(i)",
"lines.get",
"lines",
"i",
"\" \"",
"1",
"if (type.equals(\"S\")) {\n\t\t S.remove(num);\n\t\t} else if (type.equals(\"H\")) {\n\t\t H.remove(num);\n\t\t} else if (type.equals(\"C\")) {\n\t\t C.remove(num);\n\t\t} else if (type.equals(\"D\")) {\n\t\t D.remove(num);\n\t\t}",
"type.equals(\"S\")",
"type.equals",
"type",
"\"S\"",
"{\n\t\t S.remove(num);\n\t\t}",
"S.remove(num)",
"S.remove",
"S",
"num",
"if (type.equals(\"H\")) {\n\t\t H.remove(num);\n\t\t} else if (type.equals(\"C\")) {\n\t\t C.remove(num);\n\t\t} else if (type.equals(\"D\")) {\n\t\t D.remove(num);\n\t\t}",
"type.equals(\"H\")",
"type.equals",
"type",
"\"H\"",
"{\n\t\t H.remove(num);\n\t\t}",
"H.remove(num)",
"H.remove",
"H",
"num",
"if (type.equals(\"C\")) {\n\t\t C.remove(num);\n\t\t} else if (type.equals(\"D\")) {\n\t\t D.remove(num);\n\t\t}",
"type.equals(\"C\")",
"type.equals",
"type",
"\"C\"",
"{\n\t\t C.remove(num);\n\t\t}",
"C.remove(num)",
"C.remove",
"C",
"num",
"if (type.equals(\"D\")) {\n\t\t D.remove(num);\n\t\t}",
"type.equals(\"D\")",
"type.equals",
"type",
"\"D\"",
"{\n\t\t D.remove(num);\n\t\t}",
"D.remove(num)",
"D.remove",
"D",
"num",
"for (Integer s : S) { System.out.println(\"S \" + s); }",
"Integer s",
"S",
"{ System.out.println(\"S \" + s); }",
"{ System.out.println(\"S \" + s); }",
"System.out.println(\"S \" + s)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \" + s",
"\"S \"",
"s",
"for (Integer s : H) { System.out.println(\"H \" + s); }",
"Integer s",
"H",
"{ System.out.println(\"H \" + s); }",
"{ System.out.println(\"H \" + s); }",
"System.out.println(\"H \" + s)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \" + s",
"\"H \"",
"s",
"for (Integer s : C) { System.out.println(\"C \" + s); }",
"Integer s",
"C",
"{ System.out.println(\"C \" + s); }",
"{ System.out.println(\"C \" + s); }",
"System.out.println(\"C \" + s)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \" + s",
"\"C \"",
"s",
"for (Integer s : D) { System.out.println(\"D \" + s); }",
"Integer s",
"D",
"{ System.out.println(\"D \" + s); }",
"{ System.out.println(\"D \" + s); }",
"System.out.println(\"D \" + s)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \" + s",
"\"D \"",
"s",
"System.exit(0)",
"System.exit",
"System",
"0",
"String[] args",
"args",
"public class Main{\n\n static StringBuilder sb;\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\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\n\t // lines.add(\"47\");\n\t // lines.add(\"S 10\");\n\t // lines.add(\"S 11\");\n\t // lines.add(\"S 12\");\n\t // lines.add(\"S 13\");\n\t // lines.add(\"H 1\");\n\n\t br.close();\n\n\t List<Integer> S = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\t List<Integer> H = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\t List<Integer> C = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\t List<Integer> D = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\n\t for (int i = 1; i < lines.size(); i++) {\n\t\tString type = lines.get(i).split(\" \")[0];\n\t\tInteger num = Integer.parseInt(lines.get(i).split(\" \")[1]);\n\t\tif (type.equals(\"S\")) {\n\t\t S.remove(num);\n\t\t} else if (type.equals(\"H\")) {\n\t\t H.remove(num);\n\t\t} else if (type.equals(\"C\")) {\n\t\t C.remove(num);\n\t\t} else if (type.equals(\"D\")) {\n\t\t D.remove(num);\n\t\t}\n\t }\n\n\t for (Integer s : S) { System.out.println(\"S \" + s); }\n\t for (Integer s : H) { System.out.println(\"H \" + s); }\n\t for (Integer s : C) { System.out.println(\"C \" + s); }\n\t for (Integer s : D) { System.out.println(\"D \" + s); }\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 static StringBuilder sb;\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\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\n\t // lines.add(\"47\");\n\t // lines.add(\"S 10\");\n\t // lines.add(\"S 11\");\n\t // lines.add(\"S 12\");\n\t // lines.add(\"S 13\");\n\t // lines.add(\"H 1\");\n\n\t br.close();\n\n\t List<Integer> S = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\t List<Integer> H = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\t List<Integer> C = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\t List<Integer> D = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));\n\n\t for (int i = 1; i < lines.size(); i++) {\n\t\tString type = lines.get(i).split(\" \")[0];\n\t\tInteger num = Integer.parseInt(lines.get(i).split(\" \")[1]);\n\t\tif (type.equals(\"S\")) {\n\t\t S.remove(num);\n\t\t} else if (type.equals(\"H\")) {\n\t\t H.remove(num);\n\t\t} else if (type.equals(\"C\")) {\n\t\t C.remove(num);\n\t\t} else if (type.equals(\"D\")) {\n\t\t D.remove(num);\n\t\t}\n\t }\n\n\t for (Integer s : S) { System.out.println(\"S \" + s); }\n\t for (Integer s : H) { System.out.println(\"H \" + s); }\n\t for (Integer s : C) { System.out.println(\"C \" + s); }\n\t for (Integer s : D) { System.out.println(\"D \" + s); }\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;
public class Main{
static StringBuilder sb;
public static void main(String[] args) {
try {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
List<String> lines = new ArrayList<String>();
for (String line = br.readLine(); line != null; line = br.readLine()) {
lines.add(line);
}
// lines.add("47");
// lines.add("S 10");
// lines.add("S 11");
// lines.add("S 12");
// lines.add("S 13");
// lines.add("H 1");
br.close();
List<Integer> S = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));
List<Integer> H = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));
List<Integer> C = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));
List<Integer> D = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13));
for (int i = 1; i < lines.size(); i++) {
String type = lines.get(i).split(" ")[0];
Integer num = Integer.parseInt(lines.get(i).split(" ")[1]);
if (type.equals("S")) {
S.remove(num);
} else if (type.equals("H")) {
H.remove(num);
} else if (type.equals("C")) {
C.remove(num);
} else if (type.equals("D")) {
D.remove(num);
}
}
for (Integer s : S) { System.out.println("S " + s); }
for (Integer s : H) { System.out.println("H " + s); }
for (Integer s : C) { System.out.println("C " + s); }
for (Integer s : D) { System.out.println("D " + s); }
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,
6,
13,
12,
13,
30,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
0,
18,
13,
13,
17,
0,
18,
13,
13,
17,
0,
18,
13,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
14,
4,
18,
18,
13,
17,
17,
30,
0,
18,
13,
13,
17,
14,
4,
18,
18,
13,
17,
17,
30,
0,
18,
13,
13,
17,
14,
4,
18,
18,
13,
17,
17,
30,
0,
18,
13,
13,
17,
14,
4,
18,
18,
13,
17,
17,
30,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
17,
2,
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,
13
],
[
13,
14
],
[
13,
15
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
37,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
37,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
8,
58
],
[
58,
59
],
[
58,
60
],
[
8,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
67,
68
],
[
8,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
69,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
84,
89
],
[
81,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
96,
97
],
[
96,
98
],
[
92,
99
],
[
81,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
100,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
100,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
113,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
113,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
126,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
126,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
140,
145
],
[
139,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
8,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
152,
157
],
[
157,
158
],
[
157,
159
],
[
152,
160
],
[
160,
161
],
[
161,
162
],
[
152,
163
],
[
164,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
170,
175
],
[
175,
176
],
[
175,
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
],
[
194,
196
],
[
193,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
198,
203
],
[
203,
204
],
[
203,
205
],
[
205,
206
],
[
205,
207
],
[
8,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
208,
213
],
[
213,
214
],
[
213,
215
],
[
208,
216
],
[
216,
217
],
[
217,
218
],
[
208,
219
],
[
220,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
221,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
226,
231
],
[
231,
232
],
[
231,
233
],
[
233,
234
],
[
233,
235
],
[
8,
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
],
[
259,
260
],
[
259,
261
],
[
261,
262
],
[
261,
263
],
[
6,
264
],
[
264,
265
]
] | [
"import java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tboolean[] numH= new boolean[13];\n\t\tboolean[] numS= new boolean[13];\n\t\tboolean[] numC= new boolean[13];\n\t\tboolean[] numD= new boolean[13];\n\t\tfor(int i=0;i<13;i++){\n\t\t\tnumH[i]=true;\n\t\t\tnumS[i]=true;\n\t\t\tnumC[i]=true;\n\t\t\tnumD[i]=true;\n\t\t}\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=Integer.parseInt(sc.nextLine());\n\n\t\tfor(int j=0;j<n;j++){\n\t\t\tString[] input = sc.nextLine().split(\" \");\n\t\t\tint i=Integer.parseInt(input[1])-1;\n\t\t\tif(input[0].equals(\"H\")){\n\t\t\t\tnumH[i]=false;\n\t\t\t}else if(input[0].equals(\"S\")){\n\t\t\t\tnumS[i]=false;\n\t\t\t}else if(input[0].equals(\"C\")){\n\t\t\t\tnumC[i]=false;\n\t\t\t}else if(input[0].equals(\"D\")){\n\t\t\t\tnumD[i]=false;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(numS[i]){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(numH[i]){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(numC[i]){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(numD[i]){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n\tpublic static void main(String[] args){\n\t\tboolean[] numH= new boolean[13];\n\t\tboolean[] numS= new boolean[13];\n\t\tboolean[] numC= new boolean[13];\n\t\tboolean[] numD= new boolean[13];\n\t\tfor(int i=0;i<13;i++){\n\t\t\tnumH[i]=true;\n\t\t\tnumS[i]=true;\n\t\t\tnumC[i]=true;\n\t\t\tnumD[i]=true;\n\t\t}\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=Integer.parseInt(sc.nextLine());\n\n\t\tfor(int j=0;j<n;j++){\n\t\t\tString[] input = sc.nextLine().split(\" \");\n\t\t\tint i=Integer.parseInt(input[1])-1;\n\t\t\tif(input[0].equals(\"H\")){\n\t\t\t\tnumH[i]=false;\n\t\t\t}else if(input[0].equals(\"S\")){\n\t\t\t\tnumS[i]=false;\n\t\t\t}else if(input[0].equals(\"C\")){\n\t\t\t\tnumC[i]=false;\n\t\t\t}else if(input[0].equals(\"D\")){\n\t\t\t\tnumD[i]=false;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(numS[i]){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(numH[i]){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(numC[i]){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(numD[i]){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tboolean[] numH= new boolean[13];\n\t\tboolean[] numS= new boolean[13];\n\t\tboolean[] numC= new boolean[13];\n\t\tboolean[] numD= new boolean[13];\n\t\tfor(int i=0;i<13;i++){\n\t\t\tnumH[i]=true;\n\t\t\tnumS[i]=true;\n\t\t\tnumC[i]=true;\n\t\t\tnumD[i]=true;\n\t\t}\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=Integer.parseInt(sc.nextLine());\n\n\t\tfor(int j=0;j<n;j++){\n\t\t\tString[] input = sc.nextLine().split(\" \");\n\t\t\tint i=Integer.parseInt(input[1])-1;\n\t\t\tif(input[0].equals(\"H\")){\n\t\t\t\tnumH[i]=false;\n\t\t\t}else if(input[0].equals(\"S\")){\n\t\t\t\tnumS[i]=false;\n\t\t\t}else if(input[0].equals(\"C\")){\n\t\t\t\tnumC[i]=false;\n\t\t\t}else if(input[0].equals(\"D\")){\n\t\t\t\tnumD[i]=false;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(numS[i]){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(numH[i]){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(numC[i]){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(numD[i]){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tboolean[] numH= new boolean[13];\n\t\tboolean[] numS= new boolean[13];\n\t\tboolean[] numC= new boolean[13];\n\t\tboolean[] numD= new boolean[13];\n\t\tfor(int i=0;i<13;i++){\n\t\t\tnumH[i]=true;\n\t\t\tnumS[i]=true;\n\t\t\tnumC[i]=true;\n\t\t\tnumD[i]=true;\n\t\t}\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=Integer.parseInt(sc.nextLine());\n\n\t\tfor(int j=0;j<n;j++){\n\t\t\tString[] input = sc.nextLine().split(\" \");\n\t\t\tint i=Integer.parseInt(input[1])-1;\n\t\t\tif(input[0].equals(\"H\")){\n\t\t\t\tnumH[i]=false;\n\t\t\t}else if(input[0].equals(\"S\")){\n\t\t\t\tnumS[i]=false;\n\t\t\t}else if(input[0].equals(\"C\")){\n\t\t\t\tnumC[i]=false;\n\t\t\t}else if(input[0].equals(\"D\")){\n\t\t\t\tnumD[i]=false;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(numS[i]){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(numH[i]){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(numC[i]){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(numD[i]){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}\n\t}",
"boolean[] numH= new boolean[13];",
"numH",
"new boolean[13]",
"13",
"boolean[] numS= new boolean[13];",
"numS",
"new boolean[13]",
"13",
"boolean[] numC= new boolean[13];",
"numC",
"new boolean[13]",
"13",
"boolean[] numD= new boolean[13];",
"numD",
"new boolean[13]",
"13",
"for(int i=0;i<13;i++){\n\t\t\tnumH[i]=true;\n\t\t\tnumS[i]=true;\n\t\t\tnumC[i]=true;\n\t\t\tnumD[i]=true;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tnumH[i]=true;\n\t\t\tnumS[i]=true;\n\t\t\tnumC[i]=true;\n\t\t\tnumD[i]=true;\n\t\t}",
"{\n\t\t\tnumH[i]=true;\n\t\t\tnumS[i]=true;\n\t\t\tnumC[i]=true;\n\t\t\tnumD[i]=true;\n\t\t}",
"numH[i]=true",
"numH[i]",
"numH",
"i",
"true",
"numS[i]=true",
"numS[i]",
"numS",
"i",
"true",
"numC[i]=true",
"numC[i]",
"numC",
"i",
"true",
"numD[i]=true",
"numD[i]",
"numD",
"i",
"true",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=Integer.parseInt(sc.nextLine());",
"n",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for(int j=0;j<n;j++){\n\t\t\tString[] input = sc.nextLine().split(\" \");\n\t\t\tint i=Integer.parseInt(input[1])-1;\n\t\t\tif(input[0].equals(\"H\")){\n\t\t\t\tnumH[i]=false;\n\t\t\t}else if(input[0].equals(\"S\")){\n\t\t\t\tnumS[i]=false;\n\t\t\t}else if(input[0].equals(\"C\")){\n\t\t\t\tnumC[i]=false;\n\t\t\t}else if(input[0].equals(\"D\")){\n\t\t\t\tnumD[i]=false;\n\t\t\t}\n\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<n",
"j",
"n",
"j++",
"j++",
"j",
"{\n\t\t\tString[] input = sc.nextLine().split(\" \");\n\t\t\tint i=Integer.parseInt(input[1])-1;\n\t\t\tif(input[0].equals(\"H\")){\n\t\t\t\tnumH[i]=false;\n\t\t\t}else if(input[0].equals(\"S\")){\n\t\t\t\tnumS[i]=false;\n\t\t\t}else if(input[0].equals(\"C\")){\n\t\t\t\tnumC[i]=false;\n\t\t\t}else if(input[0].equals(\"D\")){\n\t\t\t\tnumD[i]=false;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] input = sc.nextLine().split(\" \");\n\t\t\tint i=Integer.parseInt(input[1])-1;\n\t\t\tif(input[0].equals(\"H\")){\n\t\t\t\tnumH[i]=false;\n\t\t\t}else if(input[0].equals(\"S\")){\n\t\t\t\tnumS[i]=false;\n\t\t\t}else if(input[0].equals(\"C\")){\n\t\t\t\tnumC[i]=false;\n\t\t\t}else if(input[0].equals(\"D\")){\n\t\t\t\tnumD[i]=false;\n\t\t\t}\n\t\t}",
"String[] input = sc.nextLine().split(\" \");",
"input",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"int i=Integer.parseInt(input[1])-1;",
"i",
"Integer.parseInt(input[1])-1",
"Integer.parseInt(input[1])",
"Integer.parseInt",
"Integer",
"input[1]",
"input",
"1",
"1",
"if(input[0].equals(\"H\")){\n\t\t\t\tnumH[i]=false;\n\t\t\t}else if(input[0].equals(\"S\")){\n\t\t\t\tnumS[i]=false;\n\t\t\t}else if(input[0].equals(\"C\")){\n\t\t\t\tnumC[i]=false;\n\t\t\t}else if(input[0].equals(\"D\")){\n\t\t\t\tnumD[i]=false;\n\t\t\t}",
"input[0].equals(\"H\")",
"input[0].equals",
"input[0]",
"input",
"0",
"\"H\"",
"{\n\t\t\t\tnumH[i]=false;\n\t\t\t}",
"numH[i]=false",
"numH[i]",
"numH",
"i",
"false",
"if(input[0].equals(\"S\")){\n\t\t\t\tnumS[i]=false;\n\t\t\t}else if(input[0].equals(\"C\")){\n\t\t\t\tnumC[i]=false;\n\t\t\t}else if(input[0].equals(\"D\")){\n\t\t\t\tnumD[i]=false;\n\t\t\t}",
"input[0].equals(\"S\")",
"input[0].equals",
"input[0]",
"input",
"0",
"\"S\"",
"{\n\t\t\t\tnumS[i]=false;\n\t\t\t}",
"numS[i]=false",
"numS[i]",
"numS",
"i",
"false",
"if(input[0].equals(\"C\")){\n\t\t\t\tnumC[i]=false;\n\t\t\t}else if(input[0].equals(\"D\")){\n\t\t\t\tnumD[i]=false;\n\t\t\t}",
"input[0].equals(\"C\")",
"input[0].equals",
"input[0]",
"input",
"0",
"\"C\"",
"{\n\t\t\t\tnumC[i]=false;\n\t\t\t}",
"numC[i]=false",
"numC[i]",
"numC",
"i",
"false",
"if(input[0].equals(\"D\")){\n\t\t\t\tnumD[i]=false;\n\t\t\t}",
"input[0].equals(\"D\")",
"input[0].equals",
"input[0]",
"input",
"0",
"\"D\"",
"{\n\t\t\t\tnumD[i]=false;\n\t\t\t}",
"numD[i]=false",
"numD[i]",
"numD",
"i",
"false",
"for(int i=0;i<13;i++){\n\t\t\tif(numS[i]){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(numS[i]){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(numS[i]){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}",
"if(numS[i]){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}",
"numS[i]",
"numS",
"i",
"{\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}",
"System.out.println(\"S \"+(i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \"+(i+1)",
"\"S \"",
"(i+1)",
"i",
"1",
"for(int i=0;i<13;i++){\n\t\t\tif(numH[i]){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(numH[i]){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(numH[i]){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}",
"if(numH[i]){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}",
"numH[i]",
"numH",
"i",
"{\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}",
"System.out.println(\"H \"+(i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \"+(i+1)",
"\"H \"",
"(i+1)",
"i",
"1",
"for(int i=0;i<13;i++){\n\t\t\tif(numC[i]){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(numC[i]){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(numC[i]){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}",
"if(numC[i]){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}",
"numC[i]",
"numC",
"i",
"{\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}",
"System.out.println(\"C \"+(i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \"+(i+1)",
"\"C \"",
"(i+1)",
"i",
"1",
"for(int i=0;i<13;i++){\n\t\t\tif(numD[i]){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(numD[i]){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(numD[i]){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}",
"if(numD[i]){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}",
"numD[i]",
"numD",
"i",
"{\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}",
"System.out.println(\"D \"+(i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \"+(i+1)",
"\"D \"",
"(i+1)",
"i",
"1",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String[] args){
boolean[] numH= new boolean[13];
boolean[] numS= new boolean[13];
boolean[] numC= new boolean[13];
boolean[] numD= new boolean[13];
for(int i=0;i<13;i++){
numH[i]=true;
numS[i]=true;
numC[i]=true;
numD[i]=true;
}
Scanner sc = new Scanner(System.in);
int n=Integer.parseInt(sc.nextLine());
for(int j=0;j<n;j++){
String[] input = sc.nextLine().split(" ");
int i=Integer.parseInt(input[1])-1;
if(input[0].equals("H")){
numH[i]=false;
}else if(input[0].equals("S")){
numS[i]=false;
}else if(input[0].equals("C")){
numC[i]=false;
}else if(input[0].equals("D")){
numD[i]=false;
}
}
for(int i=0;i<13;i++){
if(numS[i]){
System.out.println("S "+(i+1));
}
}
for(int i=0;i<13;i++){
if(numH[i]){
System.out.println("H "+(i+1));
}
}
for(int i=0;i<13;i++){
if(numC[i]){
System.out.println("C "+(i+1));
}
}
for(int i=0;i<13;i++){
if(numD[i]){
System.out.println("D "+(i+1));
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
35,
13,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
35,
13,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
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
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
34,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
34,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
49,
59
],
[
45,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
62,
72
],
[
45,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
75,
85
],
[
45,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
88,
98
],
[
8,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
99,
110
],
[
111,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
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
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
126,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
146,
148
],
[
138,
149
],
[
134,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
153,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
160,
162
],
[
152,
163
],
[
134,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
174,
176
],
[
166,
177
],
[
134,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
181,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
188,
190
],
[
180,
191
],
[
6,
192
],
[
192,
193
]
] | [
"import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n boolean[][] cards = new boolean[4][13];\n for (int i = 0; i < n; i++) {\n String str = sc.next();\n int no = sc.nextInt();\n switch (str) {\n case \"S\" : \n cards[0][no - 1] = true;\n break;\n case \"H\" :\n cards[1][no - 1] = true;\n break;\n case \"C\" :\n cards[2][no - 1] = true;\n break;\n case \"D\" :\n cards[3][no - 1] = true;\n break;\n }\n }\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 13; j++) {\n if (cards[i][j] == false) {\n switch (i) {\n case 0 :\n System.out.println(\"S \" + (j + 1));\n break;\n case 1 :\n System.out.println(\"H \" + (j + 1));\n break;\n case 2 :\n System.out.println(\"C \" + (j + 1));\n break;\n case 3 :\n System.out.println(\"D \" + (j + 1));\n break;\n }\n }\n }\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n boolean[][] cards = new boolean[4][13];\n for (int i = 0; i < n; i++) {\n String str = sc.next();\n int no = sc.nextInt();\n switch (str) {\n case \"S\" : \n cards[0][no - 1] = true;\n break;\n case \"H\" :\n cards[1][no - 1] = true;\n break;\n case \"C\" :\n cards[2][no - 1] = true;\n break;\n case \"D\" :\n cards[3][no - 1] = true;\n break;\n }\n }\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 13; j++) {\n if (cards[i][j] == false) {\n switch (i) {\n case 0 :\n System.out.println(\"S \" + (j + 1));\n break;\n case 1 :\n System.out.println(\"H \" + (j + 1));\n break;\n case 2 :\n System.out.println(\"C \" + (j + 1));\n break;\n case 3 :\n System.out.println(\"D \" + (j + 1));\n break;\n }\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 boolean[][] cards = new boolean[4][13];\n for (int i = 0; i < n; i++) {\n String str = sc.next();\n int no = sc.nextInt();\n switch (str) {\n case \"S\" : \n cards[0][no - 1] = true;\n break;\n case \"H\" :\n cards[1][no - 1] = true;\n break;\n case \"C\" :\n cards[2][no - 1] = true;\n break;\n case \"D\" :\n cards[3][no - 1] = true;\n break;\n }\n }\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 13; j++) {\n if (cards[i][j] == false) {\n switch (i) {\n case 0 :\n System.out.println(\"S \" + (j + 1));\n break;\n case 1 :\n System.out.println(\"H \" + (j + 1));\n break;\n case 2 :\n System.out.println(\"C \" + (j + 1));\n break;\n case 3 :\n System.out.println(\"D \" + (j + 1));\n break;\n }\n }\n }\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n boolean[][] cards = new boolean[4][13];\n for (int i = 0; i < n; i++) {\n String str = sc.next();\n int no = sc.nextInt();\n switch (str) {\n case \"S\" : \n cards[0][no - 1] = true;\n break;\n case \"H\" :\n cards[1][no - 1] = true;\n break;\n case \"C\" :\n cards[2][no - 1] = true;\n break;\n case \"D\" :\n cards[3][no - 1] = true;\n break;\n }\n }\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 13; j++) {\n if (cards[i][j] == false) {\n switch (i) {\n case 0 :\n System.out.println(\"S \" + (j + 1));\n break;\n case 1 :\n System.out.println(\"H \" + (j + 1));\n break;\n case 2 :\n System.out.println(\"C \" + (j + 1));\n break;\n case 3 :\n System.out.println(\"D \" + (j + 1));\n break;\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",
"boolean[][] cards = new boolean[4][13];",
"cards",
"new boolean[4][13]",
"4",
"13",
"for (int i = 0; i < n; i++) {\n String str = sc.next();\n int no = sc.nextInt();\n switch (str) {\n case \"S\" : \n cards[0][no - 1] = true;\n break;\n case \"H\" :\n cards[1][no - 1] = true;\n break;\n case \"C\" :\n cards[2][no - 1] = true;\n break;\n case \"D\" :\n cards[3][no - 1] = true;\n break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String str = sc.next();\n int no = sc.nextInt();\n switch (str) {\n case \"S\" : \n cards[0][no - 1] = true;\n break;\n case \"H\" :\n cards[1][no - 1] = true;\n break;\n case \"C\" :\n cards[2][no - 1] = true;\n break;\n case \"D\" :\n cards[3][no - 1] = true;\n break;\n }\n }",
"{\n String str = sc.next();\n int no = sc.nextInt();\n switch (str) {\n case \"S\" : \n cards[0][no - 1] = true;\n break;\n case \"H\" :\n cards[1][no - 1] = true;\n break;\n case \"C\" :\n cards[2][no - 1] = true;\n break;\n case \"D\" :\n cards[3][no - 1] = true;\n break;\n }\n }",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"int no = sc.nextInt();",
"no",
"sc.nextInt()",
"sc.nextInt",
"sc",
"switch (str) {\n case \"S\" : \n cards[0][no - 1] = true;\n break;\n case \"H\" :\n cards[1][no - 1] = true;\n break;\n case \"C\" :\n cards[2][no - 1] = true;\n break;\n case \"D\" :\n cards[3][no - 1] = true;\n break;\n }",
"str",
"case \"S\" :",
"\"S\"",
"case \"S\" :",
"cards[0][no - 1] = true",
"cards[0][no - 1]",
"cards[0]",
"cards",
"0",
"no - 1",
"no",
"1",
"true",
"break;",
"case \"H\" :",
"\"H\"",
"case \"H\" :",
"cards[1][no - 1] = true",
"cards[1][no - 1]",
"cards[1]",
"cards",
"1",
"no - 1",
"no",
"1",
"true",
"break;",
"case \"C\" :",
"\"C\"",
"case \"C\" :",
"cards[2][no - 1] = true",
"cards[2][no - 1]",
"cards[2]",
"cards",
"2",
"no - 1",
"no",
"1",
"true",
"break;",
"case \"D\" :",
"\"D\"",
"case \"D\" :",
"cards[3][no - 1] = true",
"cards[3][no - 1]",
"cards[3]",
"cards",
"3",
"no - 1",
"no",
"1",
"true",
"break;",
"for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 13; j++) {\n if (cards[i][j] == false) {\n switch (i) {\n case 0 :\n System.out.println(\"S \" + (j + 1));\n break;\n case 1 :\n System.out.println(\"H \" + (j + 1));\n break;\n case 2 :\n System.out.println(\"C \" + (j + 1));\n break;\n case 3 :\n System.out.println(\"D \" + (j + 1));\n break;\n }\n }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < 13; j++) {\n if (cards[i][j] == false) {\n switch (i) {\n case 0 :\n System.out.println(\"S \" + (j + 1));\n break;\n case 1 :\n System.out.println(\"H \" + (j + 1));\n break;\n case 2 :\n System.out.println(\"C \" + (j + 1));\n break;\n case 3 :\n System.out.println(\"D \" + (j + 1));\n break;\n }\n }\n }\n }",
"{\n for (int j = 0; j < 13; j++) {\n if (cards[i][j] == false) {\n switch (i) {\n case 0 :\n System.out.println(\"S \" + (j + 1));\n break;\n case 1 :\n System.out.println(\"H \" + (j + 1));\n break;\n case 2 :\n System.out.println(\"C \" + (j + 1));\n break;\n case 3 :\n System.out.println(\"D \" + (j + 1));\n break;\n }\n }\n }\n }",
"for (int j = 0; j < 13; j++) {\n if (cards[i][j] == false) {\n switch (i) {\n case 0 :\n System.out.println(\"S \" + (j + 1));\n break;\n case 1 :\n System.out.println(\"H \" + (j + 1));\n break;\n case 2 :\n System.out.println(\"C \" + (j + 1));\n break;\n case 3 :\n System.out.println(\"D \" + (j + 1));\n break;\n }\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n if (cards[i][j] == false) {\n switch (i) {\n case 0 :\n System.out.println(\"S \" + (j + 1));\n break;\n case 1 :\n System.out.println(\"H \" + (j + 1));\n break;\n case 2 :\n System.out.println(\"C \" + (j + 1));\n break;\n case 3 :\n System.out.println(\"D \" + (j + 1));\n break;\n }\n }\n }",
"{\n if (cards[i][j] == false) {\n switch (i) {\n case 0 :\n System.out.println(\"S \" + (j + 1));\n break;\n case 1 :\n System.out.println(\"H \" + (j + 1));\n break;\n case 2 :\n System.out.println(\"C \" + (j + 1));\n break;\n case 3 :\n System.out.println(\"D \" + (j + 1));\n break;\n }\n }\n }",
"if (cards[i][j] == false) {\n switch (i) {\n case 0 :\n System.out.println(\"S \" + (j + 1));\n break;\n case 1 :\n System.out.println(\"H \" + (j + 1));\n break;\n case 2 :\n System.out.println(\"C \" + (j + 1));\n break;\n case 3 :\n System.out.println(\"D \" + (j + 1));\n break;\n }\n }",
"cards[i][j] == false",
"cards[i][j]",
"cards[i]",
"cards",
"i",
"j",
"false",
"{\n switch (i) {\n case 0 :\n System.out.println(\"S \" + (j + 1));\n break;\n case 1 :\n System.out.println(\"H \" + (j + 1));\n break;\n case 2 :\n System.out.println(\"C \" + (j + 1));\n break;\n case 3 :\n System.out.println(\"D \" + (j + 1));\n break;\n }\n }",
"switch (i) {\n case 0 :\n System.out.println(\"S \" + (j + 1));\n break;\n case 1 :\n System.out.println(\"H \" + (j + 1));\n break;\n case 2 :\n System.out.println(\"C \" + (j + 1));\n break;\n case 3 :\n System.out.println(\"D \" + (j + 1));\n break;\n }",
"i",
"case 0 :",
"0",
"case 0 :",
"System.out.println(\"S \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \" + (j + 1)",
"\"S \"",
"(j + 1)",
"j",
"1",
"break;",
"case 1 :",
"1",
"case 1 :",
"System.out.println(\"H \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \" + (j + 1)",
"\"H \"",
"(j + 1)",
"j",
"1",
"break;",
"case 2 :",
"2",
"case 2 :",
"System.out.println(\"C \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \" + (j + 1)",
"\"C \"",
"(j + 1)",
"j",
"1",
"break;",
"case 3 :",
"3",
"case 3 :",
"System.out.println(\"D \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \" + (j + 1)",
"\"D \"",
"(j + 1)",
"j",
"1",
"break;",
"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();
boolean[][] cards = new boolean[4][13];
for (int i = 0; i < n; i++) {
String str = sc.next();
int no = sc.nextInt();
switch (str) {
case "S" :
cards[0][no - 1] = true;
break;
case "H" :
cards[1][no - 1] = true;
break;
case "C" :
cards[2][no - 1] = true;
break;
case "D" :
cards[3][no - 1] = true;
break;
}
}
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 13; j++) {
if (cards[i][j] == false) {
switch (i) {
case 0 :
System.out.println("S " + (j + 1));
break;
case 1 :
System.out.println("H " + (j + 1));
break;
case 2 :
System.out.println("C " + (j + 1));
break;
case 3 :
System.out.println("D " + (j + 1));
break;
}
}
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
28,
13,
13,
30,
30,
4,
18,
13,
13,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
28,
13,
13,
30,
30,
4,
18,
4,
18,
13,
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
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
90,
17
],
[
90,
18
],
[
18,
19
],
[
18,
20
],
[
90,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
23,
30
],
[
30,
31
],
[
30,
32
],
[
23,
33
],
[
33,
34
],
[
33,
35
],
[
33,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
23,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
48,
49
],
[
23,
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
],
[
63,
66
],
[
66,
67
],
[
67,
68
],
[
23,
69
],
[
69,
70
],
[
69,
71
],
[
69,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
74,
80
],
[
23,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
21,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class Main {\n\n\tprivate static String[] card = new String[]{\n\t\t\t\"S 1\", \"S 2\", \"S 3\", \"S 4\", \"S 5\", \"S 6\", \"S 7\", \"S 8\", \"S 9\", \"S 10\", \"S 11\", \"S 12\", \"S 13\",\n\t\t\t\"H 1\", \"H 2\", \"H 3\", \"H 4\", \"H 5\", \"H 6\", \"H 7\", \"H 8\", \"H 9\", \"H 10\", \"H 11\", \"H 12\", \"H 13\",\n\t\t\t\"C 1\", \"C 2\", \"C 3\", \"C 4\", \"C 5\", \"C 6\", \"C 7\", \"C 8\", \"C 9\", \"C 10\", \"C 11\", \"C 12\", \"C 13\",\n\t\t\t\"D 1\", \"D 2\", \"D 3\", \"D 4\", \"D 5\", \"D 6\", \"D 7\", \"D 8\", \"D 9\", \"D 10\", \"D 11\", \"D 12\", \"D 13\"\n\t};\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<String> list = new ArrayList<String>();\n\n\t\tfor (String str : card) {\n\t\t\tlist.add(str);\n\t\t}\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlist.remove(br.readLine());\n\t\t}\n\n\t\tfor (String string : list) {\n\t\t\tsb.append(string).append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"public class Main {\n\n\tprivate static String[] card = new String[]{\n\t\t\t\"S 1\", \"S 2\", \"S 3\", \"S 4\", \"S 5\", \"S 6\", \"S 7\", \"S 8\", \"S 9\", \"S 10\", \"S 11\", \"S 12\", \"S 13\",\n\t\t\t\"H 1\", \"H 2\", \"H 3\", \"H 4\", \"H 5\", \"H 6\", \"H 7\", \"H 8\", \"H 9\", \"H 10\", \"H 11\", \"H 12\", \"H 13\",\n\t\t\t\"C 1\", \"C 2\", \"C 3\", \"C 4\", \"C 5\", \"C 6\", \"C 7\", \"C 8\", \"C 9\", \"C 10\", \"C 11\", \"C 12\", \"C 13\",\n\t\t\t\"D 1\", \"D 2\", \"D 3\", \"D 4\", \"D 5\", \"D 6\", \"D 7\", \"D 8\", \"D 9\", \"D 10\", \"D 11\", \"D 12\", \"D 13\"\n\t};\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<String> list = new ArrayList<String>();\n\n\t\tfor (String str : card) {\n\t\t\tlist.add(str);\n\t\t}\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlist.remove(br.readLine());\n\t\t}\n\n\t\tfor (String string : list) {\n\t\t\tsb.append(string).append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n}",
"Main",
"private static String[] card = new String[]{\n\t\t\t\"S 1\", \"S 2\", \"S 3\", \"S 4\", \"S 5\", \"S 6\", \"S 7\", \"S 8\", \"S 9\", \"S 10\", \"S 11\", \"S 12\", \"S 13\",\n\t\t\t\"H 1\", \"H 2\", \"H 3\", \"H 4\", \"H 5\", \"H 6\", \"H 7\", \"H 8\", \"H 9\", \"H 10\", \"H 11\", \"H 12\", \"H 13\",\n\t\t\t\"C 1\", \"C 2\", \"C 3\", \"C 4\", \"C 5\", \"C 6\", \"C 7\", \"C 8\", \"C 9\", \"C 10\", \"C 11\", \"C 12\", \"C 13\",\n\t\t\t\"D 1\", \"D 2\", \"D 3\", \"D 4\", \"D 5\", \"D 6\", \"D 7\", \"D 8\", \"D 9\", \"D 10\", \"D 11\", \"D 12\", \"D 13\"\n\t};",
"card",
"new String[]{\n\t\t\t\"S 1\", \"S 2\", \"S 3\", \"S 4\", \"S 5\", \"S 6\", \"S 7\", \"S 8\", \"S 9\", \"S 10\", \"S 11\", \"S 12\", \"S 13\",\n\t\t\t\"H 1\", \"H 2\", \"H 3\", \"H 4\", \"H 5\", \"H 6\", \"H 7\", \"H 8\", \"H 9\", \"H 10\", \"H 11\", \"H 12\", \"H 13\",\n\t\t\t\"C 1\", \"C 2\", \"C 3\", \"C 4\", \"C 5\", \"C 6\", \"C 7\", \"C 8\", \"C 9\", \"C 10\", \"C 11\", \"C 12\", \"C 13\",\n\t\t\t\"D 1\", \"D 2\", \"D 3\", \"D 4\", \"D 5\", \"D 6\", \"D 7\", \"D 8\", \"D 9\", \"D 10\", \"D 11\", \"D 12\", \"D 13\"\n\t}",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<String> list = new ArrayList<String>();\n\n\t\tfor (String str : card) {\n\t\t\tlist.add(str);\n\t\t}\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlist.remove(br.readLine());\n\t\t}\n\n\t\tfor (String string : list) {\n\t\t\tsb.append(string).append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<String> list = new ArrayList<String>();\n\n\t\tfor (String str : card) {\n\t\t\tlist.add(str);\n\t\t}\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlist.remove(br.readLine());\n\t\t}\n\n\t\tfor (String string : list) {\n\t\t\tsb.append(string).append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"List<String> list = new ArrayList<String>();",
"list",
"new ArrayList<String>()",
"for (String str : card) {\n\t\t\tlist.add(str);\n\t\t}",
"String str",
"card",
"{\n\t\t\tlist.add(str);\n\t\t}",
"{\n\t\t\tlist.add(str);\n\t\t}",
"list.add(str)",
"list.add",
"list",
"str",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for (int i = 0; i < n; i++) {\n\t\t\tlist.remove(br.readLine());\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tlist.remove(br.readLine());\n\t\t}",
"{\n\t\t\tlist.remove(br.readLine());\n\t\t}",
"list.remove(br.readLine())",
"list.remove",
"list",
"br.readLine()",
"br.readLine",
"br",
"for (String string : list) {\n\t\t\tsb.append(string).append(\"\\n\");\n\t\t}",
"String string",
"list",
"{\n\t\t\tsb.append(string).append(\"\\n\");\n\t\t}",
"{\n\t\t\tsb.append(string).append(\"\\n\");\n\t\t}",
"sb.append(string).append(\"\\n\")",
"sb.append(string).append",
"sb.append(string)",
"sb.append",
"sb",
"string",
"\"\\n\"",
"System.out.print(sb)",
"System.out.print",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args",
"public class Main {\n\n\tprivate static String[] card = new String[]{\n\t\t\t\"S 1\", \"S 2\", \"S 3\", \"S 4\", \"S 5\", \"S 6\", \"S 7\", \"S 8\", \"S 9\", \"S 10\", \"S 11\", \"S 12\", \"S 13\",\n\t\t\t\"H 1\", \"H 2\", \"H 3\", \"H 4\", \"H 5\", \"H 6\", \"H 7\", \"H 8\", \"H 9\", \"H 10\", \"H 11\", \"H 12\", \"H 13\",\n\t\t\t\"C 1\", \"C 2\", \"C 3\", \"C 4\", \"C 5\", \"C 6\", \"C 7\", \"C 8\", \"C 9\", \"C 10\", \"C 11\", \"C 12\", \"C 13\",\n\t\t\t\"D 1\", \"D 2\", \"D 3\", \"D 4\", \"D 5\", \"D 6\", \"D 7\", \"D 8\", \"D 9\", \"D 10\", \"D 11\", \"D 12\", \"D 13\"\n\t};\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<String> list = new ArrayList<String>();\n\n\t\tfor (String str : card) {\n\t\t\tlist.add(str);\n\t\t}\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlist.remove(br.readLine());\n\t\t}\n\n\t\tfor (String string : list) {\n\t\t\tsb.append(string).append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n}",
"public class Main {\n\n\tprivate static String[] card = new String[]{\n\t\t\t\"S 1\", \"S 2\", \"S 3\", \"S 4\", \"S 5\", \"S 6\", \"S 7\", \"S 8\", \"S 9\", \"S 10\", \"S 11\", \"S 12\", \"S 13\",\n\t\t\t\"H 1\", \"H 2\", \"H 3\", \"H 4\", \"H 5\", \"H 6\", \"H 7\", \"H 8\", \"H 9\", \"H 10\", \"H 11\", \"H 12\", \"H 13\",\n\t\t\t\"C 1\", \"C 2\", \"C 3\", \"C 4\", \"C 5\", \"C 6\", \"C 7\", \"C 8\", \"C 9\", \"C 10\", \"C 11\", \"C 12\", \"C 13\",\n\t\t\t\"D 1\", \"D 2\", \"D 3\", \"D 4\", \"D 5\", \"D 6\", \"D 7\", \"D 8\", \"D 9\", \"D 10\", \"D 11\", \"D 12\", \"D 13\"\n\t};\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<String> list = new ArrayList<String>();\n\n\t\tfor (String str : card) {\n\t\t\tlist.add(str);\n\t\t}\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlist.remove(br.readLine());\n\t\t}\n\n\t\tfor (String string : list) {\n\t\t\tsb.append(string).append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
public class Main {
private static String[] card = new String[]{
"S 1", "S 2", "S 3", "S 4", "S 5", "S 6", "S 7", "S 8", "S 9", "S 10", "S 11", "S 12", "S 13",
"H 1", "H 2", "H 3", "H 4", "H 5", "H 6", "H 7", "H 8", "H 9", "H 10", "H 11", "H 12", "H 13",
"C 1", "C 2", "C 3", "C 4", "C 5", "C 6", "C 7", "C 8", "C 9", "C 10", "C 11", "C 12", "C 13",
"D 1", "D 2", "D 3", "D 4", "D 5", "D 6", "D 7", "D 8", "D 9", "D 10", "D 11", "D 12", "D 13"
};
public static void main(String[] args) throws NumberFormatException, IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
List<String> list = new ArrayList<String>();
for (String str : card) {
list.add(str);
}
int n = Integer.parseInt(br.readLine());
for (int i = 0; i < n; i++) {
list.remove(br.readLine());
}
for (String string : list) {
sb.append(string).append("\n");
}
System.out.print(sb);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
17,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
41,
13,
4,
18,
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,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
35,
4,
18,
18,
13,
17,
17,
34,
17,
1,
0,
18,
18,
13,
17,
13,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
13,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
13,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
13,
17,
3,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
35,
13,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
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
],
[
265,
11
],
[
265,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
49,
55
],
[
14,
56
],
[
56,
57
],
[
56,
58
],
[
14,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
59,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
59,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
72,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
72,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
84,
92
],
[
92,
93
],
[
93,
94
],
[
84,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
96,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
96,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
114,
115
],
[
114,
116
],
[
110,
117
],
[
96,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
118,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
128,
134
],
[
127,
135
],
[
118,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
139,
145
],
[
138,
146
],
[
118,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
150,
156
],
[
149,
157
],
[
118,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
161,
167
],
[
160,
168
],
[
14,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
169,
174
],
[
174,
175
],
[
174,
176
],
[
169,
177
],
[
177,
178
],
[
178,
179
],
[
169,
180
],
[
181,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
182,
187
],
[
187,
188
],
[
187,
189
],
[
182,
190
],
[
190,
191
],
[
191,
192
],
[
182,
193
],
[
194,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
197,
201
],
[
196,
202
],
[
195,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
209,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
216,
218
],
[
208,
219
],
[
204,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
223,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
230,
232
],
[
222,
233
],
[
204,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
237,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
244,
246
],
[
236,
247
],
[
204,
248
],
[
248,
249
],
[
248,
250
],
[
250,
251
],
[
251,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
251,
256
],
[
256,
257
],
[
256,
258
],
[
258,
259
],
[
258,
260
],
[
250,
261
],
[
12,
262
],
[
262,
263
],
[
0,
264
],
[
264,
265
],
[
264,
266
]
] | [
"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\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint[][] cards = new int[4][13];\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tcards[i][j] = 0;\n\t\t\t}\t\n\t\t}\n\t\t\n\t\tString x = \"\";\n\t\ttry {\n\t\t\tx = in.readLine();\n\t\t\tint num = Integer.parseInt(x);\n\t\t\t\n\t\t\tfor (int i = 0; i < num; i++) {\n\t\t\t\tx = in.readLine();\n\t\t\t\tString[] card = x.split(\" \");\n\n\t\t\t\tint number = (Integer.parseInt(card[1]) - 1);\n\t\t\t\tswitch (card[0].charAt(0)) {\n\t\t\t\tcase 'S' :\n\t\t\t\t\tcards[0][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'H' :\n\t\t\t\t\tcards[1][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'C' :\n\t\t\t\t\tcards[2][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'D' :\n\t\t\t\t\tcards[3][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (cards[i][j] == 0) {\n\t\t\t\t\tswitch (i) {\n\t\t\t\t\tcase 0 :\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1 :\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2 :\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3 :\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\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\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint[][] cards = new int[4][13];\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tcards[i][j] = 0;\n\t\t\t}\t\n\t\t}\n\t\t\n\t\tString x = \"\";\n\t\ttry {\n\t\t\tx = in.readLine();\n\t\t\tint num = Integer.parseInt(x);\n\t\t\t\n\t\t\tfor (int i = 0; i < num; i++) {\n\t\t\t\tx = in.readLine();\n\t\t\t\tString[] card = x.split(\" \");\n\n\t\t\t\tint number = (Integer.parseInt(card[1]) - 1);\n\t\t\t\tswitch (card[0].charAt(0)) {\n\t\t\t\tcase 'S' :\n\t\t\t\t\tcards[0][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'H' :\n\t\t\t\t\tcards[1][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'C' :\n\t\t\t\t\tcards[2][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'D' :\n\t\t\t\t\tcards[3][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (cards[i][j] == 0) {\n\t\t\t\t\tswitch (i) {\n\t\t\t\t\tcase 0 :\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1 :\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2 :\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3 :\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint[][] cards = new int[4][13];\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tcards[i][j] = 0;\n\t\t\t}\t\n\t\t}\n\t\t\n\t\tString x = \"\";\n\t\ttry {\n\t\t\tx = in.readLine();\n\t\t\tint num = Integer.parseInt(x);\n\t\t\t\n\t\t\tfor (int i = 0; i < num; i++) {\n\t\t\t\tx = in.readLine();\n\t\t\t\tString[] card = x.split(\" \");\n\n\t\t\t\tint number = (Integer.parseInt(card[1]) - 1);\n\t\t\t\tswitch (card[0].charAt(0)) {\n\t\t\t\tcase 'S' :\n\t\t\t\t\tcards[0][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'H' :\n\t\t\t\t\tcards[1][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'C' :\n\t\t\t\t\tcards[2][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'D' :\n\t\t\t\t\tcards[3][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (cards[i][j] == 0) {\n\t\t\t\t\tswitch (i) {\n\t\t\t\t\tcase 0 :\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1 :\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2 :\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3 :\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint[][] cards = new int[4][13];\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tcards[i][j] = 0;\n\t\t\t}\t\n\t\t}\n\t\t\n\t\tString x = \"\";\n\t\ttry {\n\t\t\tx = in.readLine();\n\t\t\tint num = Integer.parseInt(x);\n\t\t\t\n\t\t\tfor (int i = 0; i < num; i++) {\n\t\t\t\tx = in.readLine();\n\t\t\t\tString[] card = x.split(\" \");\n\n\t\t\t\tint number = (Integer.parseInt(card[1]) - 1);\n\t\t\t\tswitch (card[0].charAt(0)) {\n\t\t\t\tcase 'S' :\n\t\t\t\t\tcards[0][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'H' :\n\t\t\t\t\tcards[1][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'C' :\n\t\t\t\t\tcards[2][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'D' :\n\t\t\t\t\tcards[3][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (cards[i][j] == 0) {\n\t\t\t\t\tswitch (i) {\n\t\t\t\t\tcase 0 :\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1 :\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2 :\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3 :\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"int[][] cards = new int[4][13];",
"cards",
"new int[4][13]",
"4",
"13",
"for (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tcards[i][j] = 0;\n\t\t\t}\t\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tcards[i][j] = 0;\n\t\t\t}\t\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tcards[i][j] = 0;\n\t\t\t}\t\n\t\t}",
"for (int j = 0; j < 13; j++) {\n\t\t\t\tcards[i][j] = 0;\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\tcards[i][j] = 0;\n\t\t\t}",
"{\n\t\t\t\tcards[i][j] = 0;\n\t\t\t}",
"cards[i][j] = 0",
"cards[i][j]",
"cards[i]",
"cards",
"i",
"j",
"0",
"String x = \"\";",
"x",
"\"\"",
"try {\n\t\t\tx = in.readLine();\n\t\t\tint num = Integer.parseInt(x);\n\t\t\t\n\t\t\tfor (int i = 0; i < num; i++) {\n\t\t\t\tx = in.readLine();\n\t\t\t\tString[] card = x.split(\" \");\n\n\t\t\t\tint number = (Integer.parseInt(card[1]) - 1);\n\t\t\t\tswitch (card[0].charAt(0)) {\n\t\t\t\tcase 'S' :\n\t\t\t\t\tcards[0][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'H' :\n\t\t\t\t\tcards[1][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'C' :\n\t\t\t\t\tcards[2][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'D' :\n\t\t\t\t\tcards[3][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}",
"catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}",
"NumberFormatException e",
"{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}",
"IOException e",
"{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\tx = in.readLine();\n\t\t\tint num = Integer.parseInt(x);\n\t\t\t\n\t\t\tfor (int i = 0; i < num; i++) {\n\t\t\t\tx = in.readLine();\n\t\t\t\tString[] card = x.split(\" \");\n\n\t\t\t\tint number = (Integer.parseInt(card[1]) - 1);\n\t\t\t\tswitch (card[0].charAt(0)) {\n\t\t\t\tcase 'S' :\n\t\t\t\t\tcards[0][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'H' :\n\t\t\t\t\tcards[1][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'C' :\n\t\t\t\t\tcards[2][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'D' :\n\t\t\t\t\tcards[3][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"x = in.readLine()",
"x",
"in.readLine()",
"in.readLine",
"in",
"int num = Integer.parseInt(x);",
"num",
"Integer.parseInt(x)",
"Integer.parseInt",
"Integer",
"x",
"for (int i = 0; i < num; i++) {\n\t\t\t\tx = in.readLine();\n\t\t\t\tString[] card = x.split(\" \");\n\n\t\t\t\tint number = (Integer.parseInt(card[1]) - 1);\n\t\t\t\tswitch (card[0].charAt(0)) {\n\t\t\t\tcase 'S' :\n\t\t\t\t\tcards[0][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'H' :\n\t\t\t\t\tcards[1][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'C' :\n\t\t\t\t\tcards[2][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'D' :\n\t\t\t\t\tcards[3][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\t\tx = in.readLine();\n\t\t\t\tString[] card = x.split(\" \");\n\n\t\t\t\tint number = (Integer.parseInt(card[1]) - 1);\n\t\t\t\tswitch (card[0].charAt(0)) {\n\t\t\t\tcase 'S' :\n\t\t\t\t\tcards[0][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'H' :\n\t\t\t\t\tcards[1][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'C' :\n\t\t\t\t\tcards[2][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'D' :\n\t\t\t\t\tcards[3][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tx = in.readLine();\n\t\t\t\tString[] card = x.split(\" \");\n\n\t\t\t\tint number = (Integer.parseInt(card[1]) - 1);\n\t\t\t\tswitch (card[0].charAt(0)) {\n\t\t\t\tcase 'S' :\n\t\t\t\t\tcards[0][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'H' :\n\t\t\t\t\tcards[1][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'C' :\n\t\t\t\t\tcards[2][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'D' :\n\t\t\t\t\tcards[3][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"x = in.readLine()",
"x",
"in.readLine()",
"in.readLine",
"in",
"String[] card = x.split(\" \");",
"card",
"x.split(\" \")",
"x.split",
"x",
"\" \"",
"int number = (Integer.parseInt(card[1]) - 1);",
"number",
"(Integer.parseInt(card[1]) - 1)",
"Integer.parseInt(card[1])",
"Integer.parseInt",
"Integer",
"card[1]",
"card",
"1",
"1",
"switch (card[0].charAt(0)) {\n\t\t\t\tcase 'S' :\n\t\t\t\t\tcards[0][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'H' :\n\t\t\t\t\tcards[1][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'C' :\n\t\t\t\t\tcards[2][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'D' :\n\t\t\t\t\tcards[3][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"card[0].charAt(0)",
"card[0].charAt",
"card[0]",
"card",
"0",
"0",
"case 'S' :",
"'S'",
"case 'S' :",
"cards[0][number] = 1",
"cards[0][number]",
"cards[0]",
"cards",
"0",
"number",
"1",
"break;",
"case 'H' :",
"'H'",
"case 'H' :",
"cards[1][number] = 1",
"cards[1][number]",
"cards[1]",
"cards",
"1",
"number",
"1",
"break;",
"case 'C' :",
"'C'",
"case 'C' :",
"cards[2][number] = 1",
"cards[2][number]",
"cards[2]",
"cards",
"2",
"number",
"1",
"break;",
"case 'D' :",
"'D'",
"case 'D' :",
"cards[3][number] = 1",
"cards[3][number]",
"cards[3]",
"cards",
"3",
"number",
"1",
"break;",
"for (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (cards[i][j] == 0) {\n\t\t\t\t\tswitch (i) {\n\t\t\t\t\tcase 0 :\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1 :\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2 :\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3 :\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (cards[i][j] == 0) {\n\t\t\t\t\tswitch (i) {\n\t\t\t\t\tcase 0 :\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1 :\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2 :\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3 :\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (cards[i][j] == 0) {\n\t\t\t\t\tswitch (i) {\n\t\t\t\t\tcase 0 :\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1 :\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2 :\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3 :\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t}",
"for (int j = 0; j < 13; j++) {\n\t\t\t\tif (cards[i][j] == 0) {\n\t\t\t\t\tswitch (i) {\n\t\t\t\t\tcase 0 :\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1 :\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2 :\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3 :\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\tif (cards[i][j] == 0) {\n\t\t\t\t\tswitch (i) {\n\t\t\t\t\tcase 0 :\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1 :\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2 :\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3 :\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif (cards[i][j] == 0) {\n\t\t\t\t\tswitch (i) {\n\t\t\t\t\tcase 0 :\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1 :\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2 :\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3 :\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"if (cards[i][j] == 0) {\n\t\t\t\t\tswitch (i) {\n\t\t\t\t\tcase 0 :\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1 :\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2 :\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3 :\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"cards[i][j] == 0",
"cards[i][j]",
"cards[i]",
"cards",
"i",
"j",
"0",
"{\n\t\t\t\t\tswitch (i) {\n\t\t\t\t\tcase 0 :\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1 :\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2 :\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3 :\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"switch (i) {\n\t\t\t\t\tcase 0 :\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1 :\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2 :\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3 :\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"i",
"case 0 :",
"0",
"case 0 :",
"System.out.println(\"S \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \" + (j + 1)",
"\"S \"",
"(j + 1)",
"j",
"1",
"break;",
"case 1 :",
"1",
"case 1 :",
"System.out.println(\"H \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \" + (j + 1)",
"\"H \"",
"(j + 1)",
"j",
"1",
"break;",
"case 2 :",
"2",
"case 2 :",
"System.out.println(\"C \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \" + (j + 1)",
"\"C \"",
"(j + 1)",
"j",
"1",
"break;",
"case 3 :",
"3",
"case 3 :",
"System.out.println(\"D \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \" + (j + 1)",
"\"D \"",
"(j + 1)",
"j",
"1",
"break;",
"String[] args",
"args",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint[][] cards = new int[4][13];\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tcards[i][j] = 0;\n\t\t\t}\t\n\t\t}\n\t\t\n\t\tString x = \"\";\n\t\ttry {\n\t\t\tx = in.readLine();\n\t\t\tint num = Integer.parseInt(x);\n\t\t\t\n\t\t\tfor (int i = 0; i < num; i++) {\n\t\t\t\tx = in.readLine();\n\t\t\t\tString[] card = x.split(\" \");\n\n\t\t\t\tint number = (Integer.parseInt(card[1]) - 1);\n\t\t\t\tswitch (card[0].charAt(0)) {\n\t\t\t\tcase 'S' :\n\t\t\t\t\tcards[0][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'H' :\n\t\t\t\t\tcards[1][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'C' :\n\t\t\t\t\tcards[2][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'D' :\n\t\t\t\t\tcards[3][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (cards[i][j] == 0) {\n\t\t\t\t\tswitch (i) {\n\t\t\t\t\tcase 0 :\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1 :\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2 :\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3 :\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}\n}",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint[][] cards = new int[4][13];\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tcards[i][j] = 0;\n\t\t\t}\t\n\t\t}\n\t\t\n\t\tString x = \"\";\n\t\ttry {\n\t\t\tx = in.readLine();\n\t\t\tint num = Integer.parseInt(x);\n\t\t\t\n\t\t\tfor (int i = 0; i < num; i++) {\n\t\t\t\tx = in.readLine();\n\t\t\t\tString[] card = x.split(\" \");\n\n\t\t\t\tint number = (Integer.parseInt(card[1]) - 1);\n\t\t\t\tswitch (card[0].charAt(0)) {\n\t\t\t\tcase 'S' :\n\t\t\t\t\tcards[0][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'H' :\n\t\t\t\t\tcards[1][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'C' :\n\t\t\t\t\tcards[2][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'D' :\n\t\t\t\t\tcards[3][number] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (cards[i][j] == 0) {\n\t\t\t\t\tswitch (i) {\n\t\t\t\t\tcase 0 :\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1 :\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2 :\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3 :\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\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 in = new BufferedReader(new InputStreamReader(System.in));
int[][] cards = new int[4][13];
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 13; j++) {
cards[i][j] = 0;
}
}
String x = "";
try {
x = in.readLine();
int num = Integer.parseInt(x);
for (int i = 0; i < num; i++) {
x = in.readLine();
String[] card = x.split(" ");
int number = (Integer.parseInt(card[1]) - 1);
switch (card[0].charAt(0)) {
case 'S' :
cards[0][number] = 1;
break;
case 'H' :
cards[1][number] = 1;
break;
case 'C' :
cards[2][number] = 1;
break;
case 'D' :
cards[3][number] = 1;
break;
}
}
} catch (NumberFormatException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 13; j++) {
if (cards[i][j] == 0) {
switch (i) {
case 0 :
System.out.println("S " + (j + 1));
break;
case 1 :
System.out.println("H " + (j + 1));
break;
case 2 :
System.out.println("C " + (j + 1));
break;
case 3 :
System.out.println("D " + (j + 1));
break;
}
}
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
13,
13,
41,
13,
39,
17,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
20,
4,
18,
13,
18,
13,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
14,
4,
18,
4,
18,
13,
13,
13,
30,
9,
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
],
[
135,
8
],
[
135,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
11,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
30,
40
],
[
40,
41
],
[
41,
42
],
[
30,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
44,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
11,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
57,
60
],
[
57,
61
],
[
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
],
[
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
],
[
87,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
94,
96
],
[
87,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
87,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
87,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
87,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
87,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
117,
123
],
[
116,
124
],
[
124,
125
],
[
87,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
9,
132
],
[
132,
133
],
[
0,
134
],
[
134,
135
],
[
134,
136
]
] | [
"import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\t\t\n\t\tString[] cards = new String[n];\n\t\tfor (int i = 0; i < cards.length; i++) {\n\t\t\tString c = sc.nextLine();\n\t\t\tcards[i] = c;\n\t\t}\n\t\t\n\t\tString[] suit = {\"S\",\"H\",\"C\",\"D\"};\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 1 ; j <= 13; j++) {\n\t\t\t\tStringBuilder card = new StringBuilder();\n\t\t\t\tcard.append(suit[i]);\n\t\t\t\tcard.append(\" \");\n\t\t\t\tString js = String.valueOf(j);\n\t\t\t\tcard.append(js);\n\t\t\t\tString str = card.toString();\n\t\t\t\tif (Arrays.asList(cards).contains(str)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(card);\n\t\t\t}\n\t\t}\n\t}\n\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\t\t\n\t\tString[] cards = new String[n];\n\t\tfor (int i = 0; i < cards.length; i++) {\n\t\t\tString c = sc.nextLine();\n\t\t\tcards[i] = c;\n\t\t}\n\t\t\n\t\tString[] suit = {\"S\",\"H\",\"C\",\"D\"};\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 1 ; j <= 13; j++) {\n\t\t\t\tStringBuilder card = new StringBuilder();\n\t\t\t\tcard.append(suit[i]);\n\t\t\t\tcard.append(\" \");\n\t\t\t\tString js = String.valueOf(j);\n\t\t\t\tcard.append(js);\n\t\t\t\tString str = card.toString();\n\t\t\t\tif (Arrays.asList(cards).contains(str)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(card);\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\t\t\n\t\tString[] cards = new String[n];\n\t\tfor (int i = 0; i < cards.length; i++) {\n\t\t\tString c = sc.nextLine();\n\t\t\tcards[i] = c;\n\t\t}\n\t\t\n\t\tString[] suit = {\"S\",\"H\",\"C\",\"D\"};\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 1 ; j <= 13; j++) {\n\t\t\t\tStringBuilder card = new StringBuilder();\n\t\t\t\tcard.append(suit[i]);\n\t\t\t\tcard.append(\" \");\n\t\t\t\tString js = String.valueOf(j);\n\t\t\t\tcard.append(js);\n\t\t\t\tString str = card.toString();\n\t\t\t\tif (Arrays.asList(cards).contains(str)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(card);\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\t\t\n\t\tString[] cards = new String[n];\n\t\tfor (int i = 0; i < cards.length; i++) {\n\t\t\tString c = sc.nextLine();\n\t\t\tcards[i] = c;\n\t\t}\n\t\t\n\t\tString[] suit = {\"S\",\"H\",\"C\",\"D\"};\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 1 ; j <= 13; j++) {\n\t\t\t\tStringBuilder card = new StringBuilder();\n\t\t\t\tcard.append(suit[i]);\n\t\t\t\tcard.append(\" \");\n\t\t\t\tString js = String.valueOf(j);\n\t\t\t\tcard.append(js);\n\t\t\t\tString str = card.toString();\n\t\t\t\tif (Arrays.asList(cards).contains(str)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(card);\n\t\t\t}\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",
"int n = Integer.parseInt(line1);",
"n",
"Integer.parseInt(line1)",
"Integer.parseInt",
"Integer",
"line1",
"String[] cards = new String[n];",
"cards",
"new String[n]",
"n",
"for (int i = 0; i < cards.length; i++) {\n\t\t\tString c = sc.nextLine();\n\t\t\tcards[i] = c;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < cards.length",
"i",
"cards.length",
"cards",
"cards.length",
"i++",
"i++",
"i",
"{\n\t\t\tString c = sc.nextLine();\n\t\t\tcards[i] = c;\n\t\t}",
"{\n\t\t\tString c = sc.nextLine();\n\t\t\tcards[i] = c;\n\t\t}",
"String c = sc.nextLine();",
"c",
"sc.nextLine()",
"sc.nextLine",
"sc",
"cards[i] = c",
"cards[i]",
"cards",
"i",
"c",
"String[] suit = {\"S\",\"H\",\"C\",\"D\"};",
"suit",
"{\"S\",\"H\",\"C\",\"D\"}",
"\"S\"",
"\"H\"",
"\"C\"",
"\"D\"",
"for (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 1 ; j <= 13; j++) {\n\t\t\t\tStringBuilder card = new StringBuilder();\n\t\t\t\tcard.append(suit[i]);\n\t\t\t\tcard.append(\" \");\n\t\t\t\tString js = String.valueOf(j);\n\t\t\t\tcard.append(js);\n\t\t\t\tString str = card.toString();\n\t\t\t\tif (Arrays.asList(cards).contains(str)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(card);\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 1 ; j <= 13; j++) {\n\t\t\t\tStringBuilder card = new StringBuilder();\n\t\t\t\tcard.append(suit[i]);\n\t\t\t\tcard.append(\" \");\n\t\t\t\tString js = String.valueOf(j);\n\t\t\t\tcard.append(js);\n\t\t\t\tString str = card.toString();\n\t\t\t\tif (Arrays.asList(cards).contains(str)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(card);\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 1 ; j <= 13; j++) {\n\t\t\t\tStringBuilder card = new StringBuilder();\n\t\t\t\tcard.append(suit[i]);\n\t\t\t\tcard.append(\" \");\n\t\t\t\tString js = String.valueOf(j);\n\t\t\t\tcard.append(js);\n\t\t\t\tString str = card.toString();\n\t\t\t\tif (Arrays.asList(cards).contains(str)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(card);\n\t\t\t}\n\t\t}",
"for (int j = 1 ; j <= 13; j++) {\n\t\t\t\tStringBuilder card = new StringBuilder();\n\t\t\t\tcard.append(suit[i]);\n\t\t\t\tcard.append(\" \");\n\t\t\t\tString js = String.valueOf(j);\n\t\t\t\tcard.append(js);\n\t\t\t\tString str = card.toString();\n\t\t\t\tif (Arrays.asList(cards).contains(str)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(card);\n\t\t\t}",
"int j = 1 ;",
"int j = 1 ;",
"j",
"1",
"j <= 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\tStringBuilder card = new StringBuilder();\n\t\t\t\tcard.append(suit[i]);\n\t\t\t\tcard.append(\" \");\n\t\t\t\tString js = String.valueOf(j);\n\t\t\t\tcard.append(js);\n\t\t\t\tString str = card.toString();\n\t\t\t\tif (Arrays.asList(cards).contains(str)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(card);\n\t\t\t}",
"{\n\t\t\t\tStringBuilder card = new StringBuilder();\n\t\t\t\tcard.append(suit[i]);\n\t\t\t\tcard.append(\" \");\n\t\t\t\tString js = String.valueOf(j);\n\t\t\t\tcard.append(js);\n\t\t\t\tString str = card.toString();\n\t\t\t\tif (Arrays.asList(cards).contains(str)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(card);\n\t\t\t}",
"StringBuilder card = new StringBuilder();",
"card",
"new StringBuilder()",
"card.append(suit[i])",
"card.append",
"card",
"suit[i]",
"suit",
"i",
"card.append(\" \")",
"card.append",
"card",
"\" \"",
"String js = String.valueOf(j);",
"js",
"String.valueOf(j)",
"String.valueOf",
"String",
"j",
"card.append(js)",
"card.append",
"card",
"js",
"String str = card.toString();",
"str",
"card.toString()",
"card.toString",
"card",
"if (Arrays.asList(cards).contains(str)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"Arrays.asList(cards).contains(str)",
"Arrays.asList(cards).contains",
"Arrays.asList(cards)",
"Arrays.asList",
"Arrays",
"cards",
"str",
"{\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"continue;",
"System.out.println(card)",
"System.out.println",
"System.out",
"System",
"System.out",
"card",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\t\t\n\t\tString[] cards = new String[n];\n\t\tfor (int i = 0; i < cards.length; i++) {\n\t\t\tString c = sc.nextLine();\n\t\t\tcards[i] = c;\n\t\t}\n\t\t\n\t\tString[] suit = {\"S\",\"H\",\"C\",\"D\"};\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 1 ; j <= 13; j++) {\n\t\t\t\tStringBuilder card = new StringBuilder();\n\t\t\t\tcard.append(suit[i]);\n\t\t\t\tcard.append(\" \");\n\t\t\t\tString js = String.valueOf(j);\n\t\t\t\tcard.append(js);\n\t\t\t\tString str = card.toString();\n\t\t\t\tif (Arrays.asList(cards).contains(str)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(card);\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\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\t\t\n\t\tString[] cards = new String[n];\n\t\tfor (int i = 0; i < cards.length; i++) {\n\t\t\tString c = sc.nextLine();\n\t\t\tcards[i] = c;\n\t\t}\n\t\t\n\t\tString[] suit = {\"S\",\"H\",\"C\",\"D\"};\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 1 ; j <= 13; j++) {\n\t\t\t\tStringBuilder card = new StringBuilder();\n\t\t\t\tcard.append(suit[i]);\n\t\t\t\tcard.append(\" \");\n\t\t\t\tString js = String.valueOf(j);\n\t\t\t\tcard.append(js);\n\t\t\t\tString str = card.toString();\n\t\t\t\tif (Arrays.asList(cards).contains(str)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(card);\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main"
] | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
String line1 = sc.nextLine();
int n = Integer.parseInt(line1);
String[] cards = new String[n];
for (int i = 0; i < cards.length; i++) {
String c = sc.nextLine();
cards[i] = c;
}
String[] suit = {"S","H","C","D"};
for (int i = 0; i < 4; i++) {
for (int j = 1 ; j <= 13; j++) {
StringBuilder card = new StringBuilder();
card.append(suit[i]);
card.append(" ");
String js = String.valueOf(j);
card.append(js);
String str = card.toString();
if (Arrays.asList(cards).contains(str)) {
continue;
}
System.out.println(card);
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
0,
13,
17,
0,
13,
17,
0,
13,
4,
18,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
20,
11,
1,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
11,
1,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
2,
13,
17,
0,
13,
17,
0,
13,
17,
11,
1,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
4,
18,
13,
13,
17,
30,
4,
18,
13,
2,
4,
18,
13,
13,
17,
17,
11,
1,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
17,
30,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
4,
18,
13,
13,
4,
18,
13,
17,
4,
18,
13,
0,
13,
17,
11,
1,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
2,
13,
17,
0,
13,
17,
0,
13,
17,
11,
1,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
4,
18,
13,
13,
17,
30,
4,
18,
13,
2,
4,
18,
13,
13,
17,
17,
11,
1,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
17,
30,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
4,
18,
13,
13,
4,
18,
13,
17,
4,
18,
13,
0,
13,
17,
11,
1,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
2,
13,
17,
0,
13,
17,
0,
13,
17,
11,
1,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
4,
18,
13,
13,
17,
30,
4,
18,
13,
2,
4,
18,
13,
13,
17,
17,
11,
1,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
17,
30,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
4,
18,
13,
13,
4,
18,
13,
17,
4,
18,
13,
0,
13,
17,
11,
1,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
2,
13,
17,
0,
13,
17,
0,
13,
17,
11,
1,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
4,
18,
13,
13,
17,
30,
4,
18,
13,
2,
4,
18,
13,
13,
17,
17,
11,
1,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
17,
30,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
4,
18,
13,
13,
4,
18,
13,
17,
4,
18,
13,
0,
13,
17,
11,
1,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
2,
13,
17,
4,
18,
18,
13,
13,
20,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
464,
5
],
[
464,
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,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
8,
38
],
[
38,
39
],
[
38,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
47,
48
],
[
41,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
54,
55
],
[
55,
56
],
[
50,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
60,
61
],
[
61,
62
],
[
8,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
69,
70
],
[
63,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
76,
78
],
[
8,
79
],
[
79,
80
],
[
79,
81
],
[
8,
82
],
[
82,
83
],
[
82,
84
],
[
8,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
91,
92
],
[
85,
93
],
[
94,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
96,
102
],
[
95,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
107,
112
],
[
104,
113
],
[
8,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
119,
120
],
[
120,
121
],
[
114,
122
],
[
123,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
125,
130
],
[
124,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
132,
135
],
[
131,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
131,
140
],
[
140,
141
],
[
141,
142
],
[
140,
143
],
[
143,
144
],
[
144,
145
],
[
143,
146
],
[
131,
147
],
[
147,
148
],
[
148,
149
],
[
147,
150
],
[
8,
151
],
[
151,
152
],
[
152,
153
],
[
8,
154
],
[
154,
155
],
[
154,
156
],
[
8,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
159,
161
],
[
157,
162
],
[
162,
163
],
[
163,
164
],
[
157,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
167,
170
],
[
170,
171
],
[
170,
172
],
[
8,
173
],
[
173,
174
],
[
173,
175
],
[
8,
176
],
[
176,
177
],
[
176,
178
],
[
8,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
181,
183
],
[
179,
184
],
[
184,
185
],
[
185,
186
],
[
179,
187
],
[
188,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
192,
195
],
[
190,
196
],
[
189,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
198,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
202,
205
],
[
201,
206
],
[
198,
207
],
[
8,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
210,
212
],
[
208,
213
],
[
213,
214
],
[
214,
215
],
[
208,
216
],
[
217,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
220,
223
],
[
219,
224
],
[
218,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
226,
229
],
[
225,
230
],
[
230,
231
],
[
231,
232
],
[
230,
233
],
[
225,
234
],
[
234,
235
],
[
235,
236
],
[
234,
237
],
[
237,
238
],
[
238,
239
],
[
237,
240
],
[
225,
241
],
[
241,
242
],
[
242,
243
],
[
241,
244
],
[
8,
245
],
[
245,
246
],
[
246,
247
],
[
8,
248
],
[
248,
249
],
[
248,
250
],
[
8,
251
],
[
251,
252
],
[
251,
253
],
[
253,
254
],
[
253,
255
],
[
251,
256
],
[
256,
257
],
[
257,
258
],
[
251,
259
],
[
259,
260
],
[
260,
261
],
[
261,
262
],
[
262,
263
],
[
261,
264
],
[
264,
265
],
[
264,
266
],
[
8,
267
],
[
267,
268
],
[
267,
269
],
[
8,
270
],
[
270,
271
],
[
270,
272
],
[
8,
273
],
[
273,
274
],
[
273,
275
],
[
275,
276
],
[
275,
277
],
[
273,
278
],
[
278,
279
],
[
279,
280
],
[
273,
281
],
[
282,
282
],
[
282,
283
],
[
283,
284
],
[
284,
285
],
[
285,
286
],
[
286,
287
],
[
287,
288
],
[
286,
289
],
[
284,
290
],
[
283,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
292,
295
],
[
295,
296
],
[
296,
297
],
[
297,
298
],
[
296,
299
],
[
295,
300
],
[
292,
301
],
[
8,
302
],
[
302,
303
],
[
302,
304
],
[
304,
305
],
[
304,
306
],
[
302,
307
],
[
307,
308
],
[
308,
309
],
[
302,
310
],
[
311,
311
],
[
311,
312
],
[
312,
313
],
[
313,
314
],
[
314,
315
],
[
315,
316
],
[
314,
317
],
[
313,
318
],
[
312,
319
],
[
319,
320
],
[
320,
321
],
[
321,
322
],
[
320,
323
],
[
319,
324
],
[
324,
325
],
[
325,
326
],
[
324,
327
],
[
319,
328
],
[
328,
329
],
[
329,
330
],
[
328,
331
],
[
331,
332
],
[
332,
333
],
[
331,
334
],
[
319,
335
],
[
335,
336
],
[
336,
337
],
[
335,
338
],
[
8,
339
],
[
339,
340
],
[
340,
341
],
[
8,
342
],
[
342,
343
],
[
342,
344
],
[
8,
345
],
[
345,
346
],
[
345,
347
],
[
347,
348
],
[
347,
349
],
[
345,
350
],
[
350,
351
],
[
351,
352
],
[
345,
353
],
[
353,
354
],
[
354,
355
],
[
355,
356
],
[
356,
357
],
[
355,
358
],
[
358,
359
],
[
358,
360
],
[
8,
361
],
[
361,
362
],
[
361,
363
],
[
8,
364
],
[
364,
365
],
[
364,
366
],
[
8,
367
],
[
367,
368
],
[
367,
369
],
[
369,
370
],
[
369,
371
],
[
367,
372
],
[
372,
373
],
[
373,
374
],
[
367,
375
],
[
376,
376
],
[
376,
377
],
[
377,
378
],
[
378,
379
],
[
379,
380
],
[
380,
381
],
[
381,
382
],
[
380,
383
],
[
378,
384
],
[
377,
385
],
[
385,
386
],
[
386,
387
],
[
387,
388
],
[
386,
389
],
[
389,
390
],
[
390,
391
],
[
391,
392
],
[
390,
393
],
[
389,
394
],
[
386,
395
],
[
8,
396
],
[
396,
397
],
[
396,
398
],
[
398,
399
],
[
398,
400
],
[
396,
401
],
[
401,
402
],
[
402,
403
],
[
396,
404
],
[
405,
405
],
[
405,
406
],
[
406,
407
],
[
407,
408
],
[
408,
409
],
[
409,
410
],
[
408,
411
],
[
407,
412
],
[
406,
413
],
[
413,
414
],
[
414,
415
],
[
415,
416
],
[
414,
417
],
[
413,
418
],
[
418,
419
],
[
419,
420
],
[
418,
421
],
[
413,
422
],
[
422,
423
],
[
423,
424
],
[
422,
425
],
[
425,
426
],
[
426,
427
],
[
425,
428
],
[
413,
429
],
[
429,
430
],
[
430,
431
],
[
429,
432
],
[
8,
433
],
[
433,
434
],
[
434,
435
],
[
8,
436
],
[
436,
437
],
[
436,
438
],
[
8,
439
],
[
439,
440
],
[
439,
441
],
[
441,
442
],
[
441,
443
],
[
439,
444
],
[
444,
445
],
[
445,
446
],
[
439,
447
],
[
447,
448
],
[
448,
449
],
[
449,
450
],
[
450,
451
],
[
449,
452
],
[
452,
453
],
[
452,
454
],
[
8,
455
],
[
455,
456
],
[
456,
457
],
[
457,
458
],
[
457,
459
],
[
455,
460
],
[
6,
461
],
[
461,
462
],
[
0,
463
],
[
463,
464
],
[
463,
465
]
] | [
"\n\nimport java.util.*;\n\npublic class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n, count, i;\n\t\ti = 0;\n\t\tcount = 0;// for?????§?????¨\n\t\tn = scan.nextInt();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<String> list = new ArrayList<String>();\n\t\tList<Integer> list2 = new ArrayList<Integer>();\n\t\tList<Integer> list3 = new ArrayList<Integer>();\n\t\t// ??????????????????????????±?????\\???\n\t\tfor (; count < n; count++) {\n\t\t\tlist.add(scan.next());// ??????\n\t\t\tlist2.add(scan.nextInt());// ??°???\n\t\t}\n\n\t\t// list3????????????\n\t\tfor (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t}\n\n\t\t// S???????????????)?????????\n\t\tcount = 0;\n\t\ti = 0;\n\t\tfor (; count < n; count++) {// n??????????????????\n\t\t\tif (list.get(count).equals(\"S\")) {// S??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}\n\t\t// S(????????????)?????????StringBuilder?????\\???\n\t\tfor (; i < 13; i++) {\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"S\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// list3????????????\n\t\tlist3.clear();\n\t\ti = 0;\n\t\tfor (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t} // S(???????????????????????????????????§\n\n\t\t// H????????????)?????????\n\t\tcount = 0;\n\t\ti = 0;\n\t\tfor (; count < n; count++) {// n??????????????????\n\t\t\tif (list.get(count).equals(\"H\")) {// H??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}\n\t\t// H(?????????)?????????StringBuilder?????\\???\n\t\tfor (; i < 13; i++) {\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"H\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// list3????????????\n\t\tlist3.clear();\n\t\ti = 0;\n\t\tfor (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t} // H(????????????????????????????????§\n\t\t\n\t\t// C????????????)?????????\n\t\tcount = 0;\n\t\ti = 0;\n\t\tfor (; count < n; count++) {// n??????????????????\n\t\t\tif (list.get(count).equals(\"C\")) {// C??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}\n\t\t// H(?????????)?????????StringBuilder?????\\???\n\t\tfor (; i < 13; i++) {\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"C\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// list3????????????\n\t\tlist3.clear();\n\t\ti = 0;\n\t\tfor (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t}//C(????????????????????????????????§\n\t\t\n\t\t// D????????????)?????????\n\t\t\t\tcount = 0;\n\t\t\t\ti = 0;\n\t\t\t\tfor (; count < n; count++) {// n??????????????????\n\t\t\t\t\tif (list.get(count).equals(\"D\")) {//D??§?????????????????????????????????\n\t\t\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// D(?????????)?????????StringBuilder?????\\???\n\t\t\t\tfor (; i < 13; i++) {\n\t\t\t\t\tif (list3.get(i) != 0) {\n\t\t\t\t\t\tsb.append(\"D\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t\tsb.append(list3.get(i));\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// list3????????????\n\t\t\t\tlist3.clear();\n\t\t\t\ti = 0;\n\t\t\t\tfor (; i < 13; i++) {\n\t\t\t\t\tlist3.add(i+1);\n\t\t\t\t}//D(????????????????????????????????§\n\n\t\tSystem.out.print(new String(sb));\n\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n, count, i;\n\t\ti = 0;\n\t\tcount = 0;// for?????§?????¨\n\t\tn = scan.nextInt();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<String> list = new ArrayList<String>();\n\t\tList<Integer> list2 = new ArrayList<Integer>();\n\t\tList<Integer> list3 = new ArrayList<Integer>();\n\t\t// ??????????????????????????±?????\\???\n\t\tfor (; count < n; count++) {\n\t\t\tlist.add(scan.next());// ??????\n\t\t\tlist2.add(scan.nextInt());// ??°???\n\t\t}\n\n\t\t// list3????????????\n\t\tfor (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t}\n\n\t\t// S???????????????)?????????\n\t\tcount = 0;\n\t\ti = 0;\n\t\tfor (; count < n; count++) {// n??????????????????\n\t\t\tif (list.get(count).equals(\"S\")) {// S??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}\n\t\t// S(????????????)?????????StringBuilder?????\\???\n\t\tfor (; i < 13; i++) {\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"S\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// list3????????????\n\t\tlist3.clear();\n\t\ti = 0;\n\t\tfor (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t} // S(???????????????????????????????????§\n\n\t\t// H????????????)?????????\n\t\tcount = 0;\n\t\ti = 0;\n\t\tfor (; count < n; count++) {// n??????????????????\n\t\t\tif (list.get(count).equals(\"H\")) {// H??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}\n\t\t// H(?????????)?????????StringBuilder?????\\???\n\t\tfor (; i < 13; i++) {\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"H\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// list3????????????\n\t\tlist3.clear();\n\t\ti = 0;\n\t\tfor (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t} // H(????????????????????????????????§\n\t\t\n\t\t// C????????????)?????????\n\t\tcount = 0;\n\t\ti = 0;\n\t\tfor (; count < n; count++) {// n??????????????????\n\t\t\tif (list.get(count).equals(\"C\")) {// C??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}\n\t\t// H(?????????)?????????StringBuilder?????\\???\n\t\tfor (; i < 13; i++) {\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"C\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// list3????????????\n\t\tlist3.clear();\n\t\ti = 0;\n\t\tfor (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t}//C(????????????????????????????????§\n\t\t\n\t\t// D????????????)?????????\n\t\t\t\tcount = 0;\n\t\t\t\ti = 0;\n\t\t\t\tfor (; count < n; count++) {// n??????????????????\n\t\t\t\t\tif (list.get(count).equals(\"D\")) {//D??§?????????????????????????????????\n\t\t\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// D(?????????)?????????StringBuilder?????\\???\n\t\t\t\tfor (; i < 13; i++) {\n\t\t\t\t\tif (list3.get(i) != 0) {\n\t\t\t\t\t\tsb.append(\"D\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t\tsb.append(list3.get(i));\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// list3????????????\n\t\t\t\tlist3.clear();\n\t\t\t\ti = 0;\n\t\t\t\tfor (; i < 13; i++) {\n\t\t\t\t\tlist3.add(i+1);\n\t\t\t\t}//D(????????????????????????????????§\n\n\t\tSystem.out.print(new String(sb));\n\n\t}\n}",
"Main",
"public static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n, count, i;\n\t\ti = 0;\n\t\tcount = 0;// for?????§?????¨\n\t\tn = scan.nextInt();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<String> list = new ArrayList<String>();\n\t\tList<Integer> list2 = new ArrayList<Integer>();\n\t\tList<Integer> list3 = new ArrayList<Integer>();\n\t\t// ??????????????????????????±?????\\???\n\t\tfor (; count < n; count++) {\n\t\t\tlist.add(scan.next());// ??????\n\t\t\tlist2.add(scan.nextInt());// ??°???\n\t\t}\n\n\t\t// list3????????????\n\t\tfor (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t}\n\n\t\t// S???????????????)?????????\n\t\tcount = 0;\n\t\ti = 0;\n\t\tfor (; count < n; count++) {// n??????????????????\n\t\t\tif (list.get(count).equals(\"S\")) {// S??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}\n\t\t// S(????????????)?????????StringBuilder?????\\???\n\t\tfor (; i < 13; i++) {\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"S\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// list3????????????\n\t\tlist3.clear();\n\t\ti = 0;\n\t\tfor (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t} // S(???????????????????????????????????§\n\n\t\t// H????????????)?????????\n\t\tcount = 0;\n\t\ti = 0;\n\t\tfor (; count < n; count++) {// n??????????????????\n\t\t\tif (list.get(count).equals(\"H\")) {// H??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}\n\t\t// H(?????????)?????????StringBuilder?????\\???\n\t\tfor (; i < 13; i++) {\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"H\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// list3????????????\n\t\tlist3.clear();\n\t\ti = 0;\n\t\tfor (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t} // H(????????????????????????????????§\n\t\t\n\t\t// C????????????)?????????\n\t\tcount = 0;\n\t\ti = 0;\n\t\tfor (; count < n; count++) {// n??????????????????\n\t\t\tif (list.get(count).equals(\"C\")) {// C??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}\n\t\t// H(?????????)?????????StringBuilder?????\\???\n\t\tfor (; i < 13; i++) {\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"C\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// list3????????????\n\t\tlist3.clear();\n\t\ti = 0;\n\t\tfor (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t}//C(????????????????????????????????§\n\t\t\n\t\t// D????????????)?????????\n\t\t\t\tcount = 0;\n\t\t\t\ti = 0;\n\t\t\t\tfor (; count < n; count++) {// n??????????????????\n\t\t\t\t\tif (list.get(count).equals(\"D\")) {//D??§?????????????????????????????????\n\t\t\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// D(?????????)?????????StringBuilder?????\\???\n\t\t\t\tfor (; i < 13; i++) {\n\t\t\t\t\tif (list3.get(i) != 0) {\n\t\t\t\t\t\tsb.append(\"D\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t\tsb.append(list3.get(i));\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// list3????????????\n\t\t\t\tlist3.clear();\n\t\t\t\ti = 0;\n\t\t\t\tfor (; i < 13; i++) {\n\t\t\t\t\tlist3.add(i+1);\n\t\t\t\t}//D(????????????????????????????????§\n\n\t\tSystem.out.print(new String(sb));\n\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n, count, i;\n\t\ti = 0;\n\t\tcount = 0;// for?????§?????¨\n\t\tn = scan.nextInt();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<String> list = new ArrayList<String>();\n\t\tList<Integer> list2 = new ArrayList<Integer>();\n\t\tList<Integer> list3 = new ArrayList<Integer>();\n\t\t// ??????????????????????????±?????\\???\n\t\tfor (; count < n; count++) {\n\t\t\tlist.add(scan.next());// ??????\n\t\t\tlist2.add(scan.nextInt());// ??°???\n\t\t}\n\n\t\t// list3????????????\n\t\tfor (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t}\n\n\t\t// S???????????????)?????????\n\t\tcount = 0;\n\t\ti = 0;\n\t\tfor (; count < n; count++) {// n??????????????????\n\t\t\tif (list.get(count).equals(\"S\")) {// S??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}\n\t\t// S(????????????)?????????StringBuilder?????\\???\n\t\tfor (; i < 13; i++) {\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"S\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// list3????????????\n\t\tlist3.clear();\n\t\ti = 0;\n\t\tfor (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t} // S(???????????????????????????????????§\n\n\t\t// H????????????)?????????\n\t\tcount = 0;\n\t\ti = 0;\n\t\tfor (; count < n; count++) {// n??????????????????\n\t\t\tif (list.get(count).equals(\"H\")) {// H??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}\n\t\t// H(?????????)?????????StringBuilder?????\\???\n\t\tfor (; i < 13; i++) {\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"H\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// list3????????????\n\t\tlist3.clear();\n\t\ti = 0;\n\t\tfor (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t} // H(????????????????????????????????§\n\t\t\n\t\t// C????????????)?????????\n\t\tcount = 0;\n\t\ti = 0;\n\t\tfor (; count < n; count++) {// n??????????????????\n\t\t\tif (list.get(count).equals(\"C\")) {// C??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}\n\t\t// H(?????????)?????????StringBuilder?????\\???\n\t\tfor (; i < 13; i++) {\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"C\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// list3????????????\n\t\tlist3.clear();\n\t\ti = 0;\n\t\tfor (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t}//C(????????????????????????????????§\n\t\t\n\t\t// D????????????)?????????\n\t\t\t\tcount = 0;\n\t\t\t\ti = 0;\n\t\t\t\tfor (; count < n; count++) {// n??????????????????\n\t\t\t\t\tif (list.get(count).equals(\"D\")) {//D??§?????????????????????????????????\n\t\t\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// D(?????????)?????????StringBuilder?????\\???\n\t\t\t\tfor (; i < 13; i++) {\n\t\t\t\t\tif (list3.get(i) != 0) {\n\t\t\t\t\t\tsb.append(\"D\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t\tsb.append(list3.get(i));\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// list3????????????\n\t\t\t\tlist3.clear();\n\t\t\t\ti = 0;\n\t\t\t\tfor (; i < 13; i++) {\n\t\t\t\t\tlist3.add(i+1);\n\t\t\t\t}//D(????????????????????????????????§\n\n\t\tSystem.out.print(new String(sb));\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n",
"n",
"count",
"count",
"i;",
"i",
"i = 0",
"i",
"0",
"count = 0",
"count",
"0",
"n = scan.nextInt()",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"List<String> list = new ArrayList<String>();",
"list",
"new ArrayList<String>()",
"List<Integer> list2 = new ArrayList<Integer>();",
"list2",
"new ArrayList<Integer>()",
"List<Integer> list3 = new ArrayList<Integer>();",
"list3",
"new ArrayList<Integer>()",
"for (; count < n; count++) {\n\t\t\tlist.add(scan.next());// ??????\n\t\t\tlist2.add(scan.nextInt());// ??°???\n\t\t}",
";",
"count < n",
"count",
"n",
"count++",
"count++",
"count",
"{\n\t\t\tlist.add(scan.next());// ??????\n\t\t\tlist2.add(scan.nextInt());// ??°???\n\t\t}",
"{\n\t\t\tlist.add(scan.next());// ??????\n\t\t\tlist2.add(scan.nextInt());// ??°???\n\t\t}",
"list.add(scan.next())",
"list.add",
"list",
"scan.next()",
"scan.next",
"scan",
"list2.add(scan.nextInt())",
"list2.add",
"list2",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t}",
";",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tlist3.add(i+1);\n\t\t}",
"{\n\t\t\tlist3.add(i+1);\n\t\t}",
"list3.add(i+1)",
"list3.add",
"list3",
"i+1",
"i",
"1",
"count = 0",
"count",
"0",
"i = 0",
"i",
"0",
"for (; count < n; count++) {// n??????????????????\n\t\t\tif (list.get(count).equals(\"S\")) {// S??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}",
";",
"count < n",
"count",
"n",
"count++",
"count++",
"count",
"{// n??????????????????\n\t\t\tif (list.get(count).equals(\"S\")) {// S??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}",
"{// n??????????????????\n\t\t\tif (list.get(count).equals(\"S\")) {// S??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}",
"if (list.get(count).equals(\"S\")) {// S??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}",
"list.get(count).equals(\"S\")",
"list.get(count).equals",
"list.get(count)",
"list.get",
"list",
"count",
"\"S\"",
"{// S??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}",
"list3.set(list2.get(count) - 1, 0)",
"list3.set",
"list3",
"list2.get(count) - 1",
"list2.get(count)",
"list2.get",
"list2",
"count",
"1",
"0",
"for (; i < 13; i++) {\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"S\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}",
";",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"S\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"S\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}",
"if (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"S\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}",
"list3.get(i) != 0",
"list3.get(i)",
"list3.get",
"list3",
"i",
"0",
"{\n\t\t\t\tsb.append(\"S\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}",
"sb.append(\"S\")",
"sb.append",
"sb",
"\"S\"",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"sb.append(list3.get(i))",
"sb.append",
"sb",
"list3.get(i)",
"list3.get",
"list3",
"i",
"sb.append(\"\\n\")",
"sb.append",
"sb",
"\"\\n\"",
"list3.clear()",
"list3.clear",
"list3",
"i = 0",
"i",
"0",
"for (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t} // S(???????????????????????????????????§",
";",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tlist3.add(i+1);\n\t\t} // S(???????????????????????????????????§",
"{\n\t\t\tlist3.add(i+1);\n\t\t}",
"list3.add(i+1)",
"list3.add",
"list3",
"i+1",
"i",
"1",
"count = 0",
"count",
"0",
"i = 0",
"i",
"0",
"for (; count < n; count++) {// n??????????????????\n\t\t\tif (list.get(count).equals(\"H\")) {// H??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}",
";",
"count < n",
"count",
"n",
"count++",
"count++",
"count",
"{// n??????????????????\n\t\t\tif (list.get(count).equals(\"H\")) {// H??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}",
"{// n??????????????????\n\t\t\tif (list.get(count).equals(\"H\")) {// H??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}",
"if (list.get(count).equals(\"H\")) {// H??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}",
"list.get(count).equals(\"H\")",
"list.get(count).equals",
"list.get(count)",
"list.get",
"list",
"count",
"\"H\"",
"{// H??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}",
"list3.set(list2.get(count) - 1, 0)",
"list3.set",
"list3",
"list2.get(count) - 1",
"list2.get(count)",
"list2.get",
"list2",
"count",
"1",
"0",
"for (; i < 13; i++) {\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"H\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}",
";",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"H\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"H\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}",
"if (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"H\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}",
"list3.get(i) != 0",
"list3.get(i)",
"list3.get",
"list3",
"i",
"0",
"{\n\t\t\t\tsb.append(\"H\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}",
"sb.append(\"H\")",
"sb.append",
"sb",
"\"H\"",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"sb.append(list3.get(i))",
"sb.append",
"sb",
"list3.get(i)",
"list3.get",
"list3",
"i",
"sb.append(\"\\n\")",
"sb.append",
"sb",
"\"\\n\"",
"list3.clear()",
"list3.clear",
"list3",
"i = 0",
"i",
"0",
"for (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t} // H(????????????????????????????????§",
";",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tlist3.add(i+1);\n\t\t} // H(????????????????????????????????§",
"{\n\t\t\tlist3.add(i+1);\n\t\t}",
"list3.add(i+1)",
"list3.add",
"list3",
"i+1",
"i",
"1",
"count = 0",
"count",
"0",
"i = 0",
"i",
"0",
"for (; count < n; count++) {// n??????????????????\n\t\t\tif (list.get(count).equals(\"C\")) {// C??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}",
";",
"count < n",
"count",
"n",
"count++",
"count++",
"count",
"{// n??????????????????\n\t\t\tif (list.get(count).equals(\"C\")) {// C??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}",
"{// n??????????????????\n\t\t\tif (list.get(count).equals(\"C\")) {// C??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}",
"if (list.get(count).equals(\"C\")) {// C??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}",
"list.get(count).equals(\"C\")",
"list.get(count).equals",
"list.get(count)",
"list.get",
"list",
"count",
"\"C\"",
"{// C??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}",
"list3.set(list2.get(count) - 1, 0)",
"list3.set",
"list3",
"list2.get(count) - 1",
"list2.get(count)",
"list2.get",
"list2",
"count",
"1",
"0",
"for (; i < 13; i++) {\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"C\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}",
";",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"C\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"C\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}",
"if (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"C\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}",
"list3.get(i) != 0",
"list3.get(i)",
"list3.get",
"list3",
"i",
"0",
"{\n\t\t\t\tsb.append(\"C\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}",
"sb.append(\"C\")",
"sb.append",
"sb",
"\"C\"",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"sb.append(list3.get(i))",
"sb.append",
"sb",
"list3.get(i)",
"list3.get",
"list3",
"i",
"sb.append(\"\\n\")",
"sb.append",
"sb",
"\"\\n\"",
"list3.clear()",
"list3.clear",
"list3",
"i = 0",
"i",
"0",
"for (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t}//C(????????????????????????????????§",
";",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tlist3.add(i+1);\n\t\t}//C(????????????????????????????????§",
"{\n\t\t\tlist3.add(i+1);\n\t\t}",
"list3.add(i+1)",
"list3.add",
"list3",
"i+1",
"i",
"1",
"count = 0",
"count",
"0",
"i = 0",
"i",
"0",
"for (; count < n; count++) {// n??????????????????\n\t\t\t\t\tif (list.get(count).equals(\"D\")) {//D??§?????????????????????????????????\n\t\t\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t\t\t}\n\t\t\t\t}",
";",
"count < n",
"count",
"n",
"count++",
"count++",
"count",
"{// n??????????????????\n\t\t\t\t\tif (list.get(count).equals(\"D\")) {//D??§?????????????????????????????????\n\t\t\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t\t\t}\n\t\t\t\t}",
"{// n??????????????????\n\t\t\t\t\tif (list.get(count).equals(\"D\")) {//D??§?????????????????????????????????\n\t\t\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t\t\t}\n\t\t\t\t}",
"if (list.get(count).equals(\"D\")) {//D??§?????????????????????????????????\n\t\t\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t\t\t}",
"list.get(count).equals(\"D\")",
"list.get(count).equals",
"list.get(count)",
"list.get",
"list",
"count",
"\"D\"",
"{//D??§?????????????????????????????????\n\t\t\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t\t\t}",
"list3.set(list2.get(count) - 1, 0)",
"list3.set",
"list3",
"list2.get(count) - 1",
"list2.get(count)",
"list2.get",
"list2",
"count",
"1",
"0",
"for (; i < 13; i++) {\n\t\t\t\t\tif (list3.get(i) != 0) {\n\t\t\t\t\t\tsb.append(\"D\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t\tsb.append(list3.get(i));\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}",
";",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\t\t\tif (list3.get(i) != 0) {\n\t\t\t\t\t\tsb.append(\"D\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t\tsb.append(list3.get(i));\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\tif (list3.get(i) != 0) {\n\t\t\t\t\t\tsb.append(\"D\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t\tsb.append(list3.get(i));\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}",
"if (list3.get(i) != 0) {\n\t\t\t\t\t\tsb.append(\"D\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t\tsb.append(list3.get(i));\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}",
"list3.get(i) != 0",
"list3.get(i)",
"list3.get",
"list3",
"i",
"0",
"{\n\t\t\t\t\t\tsb.append(\"D\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t\tsb.append(list3.get(i));\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}",
"sb.append(\"D\")",
"sb.append",
"sb",
"\"D\"",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"sb.append(list3.get(i))",
"sb.append",
"sb",
"list3.get(i)",
"list3.get",
"list3",
"i",
"sb.append(\"\\n\")",
"sb.append",
"sb",
"\"\\n\"",
"list3.clear()",
"list3.clear",
"list3",
"i = 0",
"i",
"0",
"for (; i < 13; i++) {\n\t\t\t\t\tlist3.add(i+1);\n\t\t\t\t}//D(????????????????????????????????§",
";",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\t\t\tlist3.add(i+1);\n\t\t\t\t}//D(????????????????????????????????§",
"{\n\t\t\t\t\tlist3.add(i+1);\n\t\t\t\t}",
"list3.add(i+1)",
"list3.add",
"list3",
"i+1",
"i",
"1",
"System.out.print(new String(sb))",
"System.out.print",
"System.out",
"System",
"System.out",
"new String(sb)",
"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, count, i;\n\t\ti = 0;\n\t\tcount = 0;// for?????§?????¨\n\t\tn = scan.nextInt();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<String> list = new ArrayList<String>();\n\t\tList<Integer> list2 = new ArrayList<Integer>();\n\t\tList<Integer> list3 = new ArrayList<Integer>();\n\t\t// ??????????????????????????±?????\\???\n\t\tfor (; count < n; count++) {\n\t\t\tlist.add(scan.next());// ??????\n\t\t\tlist2.add(scan.nextInt());// ??°???\n\t\t}\n\n\t\t// list3????????????\n\t\tfor (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t}\n\n\t\t// S???????????????)?????????\n\t\tcount = 0;\n\t\ti = 0;\n\t\tfor (; count < n; count++) {// n??????????????????\n\t\t\tif (list.get(count).equals(\"S\")) {// S??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}\n\t\t// S(????????????)?????????StringBuilder?????\\???\n\t\tfor (; i < 13; i++) {\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"S\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// list3????????????\n\t\tlist3.clear();\n\t\ti = 0;\n\t\tfor (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t} // S(???????????????????????????????????§\n\n\t\t// H????????????)?????????\n\t\tcount = 0;\n\t\ti = 0;\n\t\tfor (; count < n; count++) {// n??????????????????\n\t\t\tif (list.get(count).equals(\"H\")) {// H??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}\n\t\t// H(?????????)?????????StringBuilder?????\\???\n\t\tfor (; i < 13; i++) {\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"H\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// list3????????????\n\t\tlist3.clear();\n\t\ti = 0;\n\t\tfor (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t} // H(????????????????????????????????§\n\t\t\n\t\t// C????????????)?????????\n\t\tcount = 0;\n\t\ti = 0;\n\t\tfor (; count < n; count++) {// n??????????????????\n\t\t\tif (list.get(count).equals(\"C\")) {// C??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}\n\t\t// H(?????????)?????????StringBuilder?????\\???\n\t\tfor (; i < 13; i++) {\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"C\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// list3????????????\n\t\tlist3.clear();\n\t\ti = 0;\n\t\tfor (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t}//C(????????????????????????????????§\n\t\t\n\t\t// D????????????)?????????\n\t\t\t\tcount = 0;\n\t\t\t\ti = 0;\n\t\t\t\tfor (; count < n; count++) {// n??????????????????\n\t\t\t\t\tif (list.get(count).equals(\"D\")) {//D??§?????????????????????????????????\n\t\t\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// D(?????????)?????????StringBuilder?????\\???\n\t\t\t\tfor (; i < 13; i++) {\n\t\t\t\t\tif (list3.get(i) != 0) {\n\t\t\t\t\t\tsb.append(\"D\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t\tsb.append(list3.get(i));\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// list3????????????\n\t\t\t\tlist3.clear();\n\t\t\t\ti = 0;\n\t\t\t\tfor (; i < 13; i++) {\n\t\t\t\t\tlist3.add(i+1);\n\t\t\t\t}//D(????????????????????????????????§\n\n\t\tSystem.out.print(new String(sb));\n\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, count, i;\n\t\ti = 0;\n\t\tcount = 0;// for?????§?????¨\n\t\tn = scan.nextInt();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<String> list = new ArrayList<String>();\n\t\tList<Integer> list2 = new ArrayList<Integer>();\n\t\tList<Integer> list3 = new ArrayList<Integer>();\n\t\t// ??????????????????????????±?????\\???\n\t\tfor (; count < n; count++) {\n\t\t\tlist.add(scan.next());// ??????\n\t\t\tlist2.add(scan.nextInt());// ??°???\n\t\t}\n\n\t\t// list3????????????\n\t\tfor (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t}\n\n\t\t// S???????????????)?????????\n\t\tcount = 0;\n\t\ti = 0;\n\t\tfor (; count < n; count++) {// n??????????????????\n\t\t\tif (list.get(count).equals(\"S\")) {// S??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}\n\t\t// S(????????????)?????????StringBuilder?????\\???\n\t\tfor (; i < 13; i++) {\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"S\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// list3????????????\n\t\tlist3.clear();\n\t\ti = 0;\n\t\tfor (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t} // S(???????????????????????????????????§\n\n\t\t// H????????????)?????????\n\t\tcount = 0;\n\t\ti = 0;\n\t\tfor (; count < n; count++) {// n??????????????????\n\t\t\tif (list.get(count).equals(\"H\")) {// H??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}\n\t\t// H(?????????)?????????StringBuilder?????\\???\n\t\tfor (; i < 13; i++) {\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"H\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// list3????????????\n\t\tlist3.clear();\n\t\ti = 0;\n\t\tfor (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t} // H(????????????????????????????????§\n\t\t\n\t\t// C????????????)?????????\n\t\tcount = 0;\n\t\ti = 0;\n\t\tfor (; count < n; count++) {// n??????????????????\n\t\t\tif (list.get(count).equals(\"C\")) {// C??§?????????????????????????????????\n\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t}\n\t\t}\n\t\t// H(?????????)?????????StringBuilder?????\\???\n\t\tfor (; i < 13; i++) {\n\t\t\tif (list3.get(i) != 0) {\n\t\t\t\tsb.append(\"C\");\n\t\t\t\tsb.append(\" \");\n\t\t\t\tsb.append(list3.get(i));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// list3????????????\n\t\tlist3.clear();\n\t\ti = 0;\n\t\tfor (; i < 13; i++) {\n\t\t\tlist3.add(i+1);\n\t\t}//C(????????????????????????????????§\n\t\t\n\t\t// D????????????)?????????\n\t\t\t\tcount = 0;\n\t\t\t\ti = 0;\n\t\t\t\tfor (; count < n; count++) {// n??????????????????\n\t\t\t\t\tif (list.get(count).equals(\"D\")) {//D??§?????????????????????????????????\n\t\t\t\t\t\tlist3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// D(?????????)?????????StringBuilder?????\\???\n\t\t\t\tfor (; i < 13; i++) {\n\t\t\t\t\tif (list3.get(i) != 0) {\n\t\t\t\t\t\tsb.append(\"D\");\n\t\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t\tsb.append(list3.get(i));\n\t\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// list3????????????\n\t\t\t\tlist3.clear();\n\t\t\t\ti = 0;\n\t\t\t\tfor (; i < 13; i++) {\n\t\t\t\t\tlist3.add(i+1);\n\t\t\t\t}//D(????????????????????????????????§\n\n\t\tSystem.out.print(new String(sb));\n\n\t}\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
int n, count, i;
i = 0;
count = 0;// for?????§?????¨
n = scan.nextInt();
StringBuilder sb = new StringBuilder();
List<String> list = new ArrayList<String>();
List<Integer> list2 = new ArrayList<Integer>();
List<Integer> list3 = new ArrayList<Integer>();
// ??????????????????????????±?????\???
for (; count < n; count++) {
list.add(scan.next());// ??????
list2.add(scan.nextInt());// ??°???
}
// list3????????????
for (; i < 13; i++) {
list3.add(i+1);
}
// S???????????????)?????????
count = 0;
i = 0;
for (; count < n; count++) {// n??????????????????
if (list.get(count).equals("S")) {// S??§?????????????????????????????????
list3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????
}
}
// S(????????????)?????????StringBuilder?????\???
for (; i < 13; i++) {
if (list3.get(i) != 0) {
sb.append("S");
sb.append(" ");
sb.append(list3.get(i));
sb.append("\n");
}
}
// list3????????????
list3.clear();
i = 0;
for (; i < 13; i++) {
list3.add(i+1);
} // S(???????????????????????????????????§
// H????????????)?????????
count = 0;
i = 0;
for (; count < n; count++) {// n??????????????????
if (list.get(count).equals("H")) {// H??§?????????????????????????????????
list3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????
}
}
// H(?????????)?????????StringBuilder?????\???
for (; i < 13; i++) {
if (list3.get(i) != 0) {
sb.append("H");
sb.append(" ");
sb.append(list3.get(i));
sb.append("\n");
}
}
// list3????????????
list3.clear();
i = 0;
for (; i < 13; i++) {
list3.add(i+1);
} // H(????????????????????????????????§
// C????????????)?????????
count = 0;
i = 0;
for (; count < n; count++) {// n??????????????????
if (list.get(count).equals("C")) {// C??§?????????????????????????????????
list3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????
}
}
// H(?????????)?????????StringBuilder?????\???
for (; i < 13; i++) {
if (list3.get(i) != 0) {
sb.append("C");
sb.append(" ");
sb.append(list3.get(i));
sb.append("\n");
}
}
// list3????????????
list3.clear();
i = 0;
for (; i < 13; i++) {
list3.add(i+1);
}//C(????????????????????????????????§
// D????????????)?????????
count = 0;
i = 0;
for (; count < n; count++) {// n??????????????????
if (list.get(count).equals("D")) {//D??§?????????????????????????????????
list3.set(list2.get(count) - 1, 0);// ?????????????????°??????list3??§0???????????????
}
}
// D(?????????)?????????StringBuilder?????\???
for (; i < 13; i++) {
if (list3.get(i) != 0) {
sb.append("D");
sb.append(" ");
sb.append(list3.get(i));
sb.append("\n");
}
}
// list3????????????
list3.clear();
i = 0;
for (; i < 13; i++) {
list3.add(i+1);
}//D(????????????????????????????????§
System.out.print(new String(sb));
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
39,
17,
17,
17,
17,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
0,
18,
13,
2,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
13,
2,
2,
13,
17,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
13,
2,
2,
13,
17,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
13,
2,
2,
13,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
2,
13,
17,
17,
2,
2,
13,
17,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
154,
5
],
[
154,
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
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
23,
26
],
[
23,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
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
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
44,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
55,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
61,
67
],
[
55,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
68,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
74,
82
],
[
68,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
83,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
89,
97
],
[
83,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
98,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
104,
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
],
[
127,
131
],
[
126,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
139,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
142,
144
],
[
139,
145
],
[
139,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
6,
151
],
[
151,
152
],
[
0,
153
],
[
153,
154
],
[
153,
155
]
] | [
"import java.util.Scanner;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tString design;\n\t\tint num;\n\t\tString[] mark = {\"S\", \"H\", \"C\", \"D\"};\n\t\t\n\t\tboolean[] tramp = new boolean[52];\t\t// spade,heart,clover,diamond??????\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\n\t\t\tdesign = scan.next();\n\t\t\tnum = scan.nextInt();\n\t\t\tif (design.equals(\"S\")) {\n\t\t\t\ttramp[num - 1] = true;\n\t\t\t} else if (design.equals(\"H\")) {\n\t\t\t\ttramp[num + 13 - 1] = true;\n\t\t\t} else if (design.equals(\"C\")) {\n\t\t\t\ttramp[num + 26 - 1] = true;\n\t\t\t} else if (design.equals(\"D\")) {\n\t\t\t\ttramp[num + 39 - 1] = true;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 52; i++) {\n\t\t\tif (tramp[i] == false) {\n\t\t\t\tSystem.out.println(mark[i/13] + \" \" + (i % 13 + 1));\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\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tString design;\n\t\tint num;\n\t\tString[] mark = {\"S\", \"H\", \"C\", \"D\"};\n\t\t\n\t\tboolean[] tramp = new boolean[52];\t\t// spade,heart,clover,diamond??????\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\n\t\t\tdesign = scan.next();\n\t\t\tnum = scan.nextInt();\n\t\t\tif (design.equals(\"S\")) {\n\t\t\t\ttramp[num - 1] = true;\n\t\t\t} else if (design.equals(\"H\")) {\n\t\t\t\ttramp[num + 13 - 1] = true;\n\t\t\t} else if (design.equals(\"C\")) {\n\t\t\t\ttramp[num + 26 - 1] = true;\n\t\t\t} else if (design.equals(\"D\")) {\n\t\t\t\ttramp[num + 39 - 1] = true;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 52; i++) {\n\t\t\tif (tramp[i] == false) {\n\t\t\t\tSystem.out.println(mark[i/13] + \" \" + (i % 13 + 1));\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tString design;\n\t\tint num;\n\t\tString[] mark = {\"S\", \"H\", \"C\", \"D\"};\n\t\t\n\t\tboolean[] tramp = new boolean[52];\t\t// spade,heart,clover,diamond??????\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\n\t\t\tdesign = scan.next();\n\t\t\tnum = scan.nextInt();\n\t\t\tif (design.equals(\"S\")) {\n\t\t\t\ttramp[num - 1] = true;\n\t\t\t} else if (design.equals(\"H\")) {\n\t\t\t\ttramp[num + 13 - 1] = true;\n\t\t\t} else if (design.equals(\"C\")) {\n\t\t\t\ttramp[num + 26 - 1] = true;\n\t\t\t} else if (design.equals(\"D\")) {\n\t\t\t\ttramp[num + 39 - 1] = true;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 52; i++) {\n\t\t\tif (tramp[i] == false) {\n\t\t\t\tSystem.out.println(mark[i/13] + \" \" + (i % 13 + 1));\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tString design;\n\t\tint num;\n\t\tString[] mark = {\"S\", \"H\", \"C\", \"D\"};\n\t\t\n\t\tboolean[] tramp = new boolean[52];\t\t// spade,heart,clover,diamond??????\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\n\t\t\tdesign = scan.next();\n\t\t\tnum = scan.nextInt();\n\t\t\tif (design.equals(\"S\")) {\n\t\t\t\ttramp[num - 1] = true;\n\t\t\t} else if (design.equals(\"H\")) {\n\t\t\t\ttramp[num + 13 - 1] = true;\n\t\t\t} else if (design.equals(\"C\")) {\n\t\t\t\ttramp[num + 26 - 1] = true;\n\t\t\t} else if (design.equals(\"D\")) {\n\t\t\t\ttramp[num + 39 - 1] = true;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 52; i++) {\n\t\t\tif (tramp[i] == false) {\n\t\t\t\tSystem.out.println(mark[i/13] + \" \" + (i % 13 + 1));\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",
"String design;",
"design",
"int num;",
"num",
"String[] mark = {\"S\", \"H\", \"C\", \"D\"};",
"mark",
"{\"S\", \"H\", \"C\", \"D\"}",
"\"S\"",
"\"H\"",
"\"C\"",
"\"D\"",
"boolean[] tramp = new boolean[52];",
"tramp",
"new boolean[52]",
"52",
"for (int i = 0; i < n; i++) {\n\t\t\t\n\t\t\tdesign = scan.next();\n\t\t\tnum = scan.nextInt();\n\t\t\tif (design.equals(\"S\")) {\n\t\t\t\ttramp[num - 1] = true;\n\t\t\t} else if (design.equals(\"H\")) {\n\t\t\t\ttramp[num + 13 - 1] = true;\n\t\t\t} else if (design.equals(\"C\")) {\n\t\t\t\ttramp[num + 26 - 1] = true;\n\t\t\t} else if (design.equals(\"D\")) {\n\t\t\t\ttramp[num + 39 - 1] = true;\n\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\n\t\t\tdesign = scan.next();\n\t\t\tnum = scan.nextInt();\n\t\t\tif (design.equals(\"S\")) {\n\t\t\t\ttramp[num - 1] = true;\n\t\t\t} else if (design.equals(\"H\")) {\n\t\t\t\ttramp[num + 13 - 1] = true;\n\t\t\t} else if (design.equals(\"C\")) {\n\t\t\t\ttramp[num + 26 - 1] = true;\n\t\t\t} else if (design.equals(\"D\")) {\n\t\t\t\ttramp[num + 39 - 1] = true;\n\t\t\t}\n\t\t\t\n\t\t}",
"{\n\t\t\t\n\t\t\tdesign = scan.next();\n\t\t\tnum = scan.nextInt();\n\t\t\tif (design.equals(\"S\")) {\n\t\t\t\ttramp[num - 1] = true;\n\t\t\t} else if (design.equals(\"H\")) {\n\t\t\t\ttramp[num + 13 - 1] = true;\n\t\t\t} else if (design.equals(\"C\")) {\n\t\t\t\ttramp[num + 26 - 1] = true;\n\t\t\t} else if (design.equals(\"D\")) {\n\t\t\t\ttramp[num + 39 - 1] = true;\n\t\t\t}\n\t\t\t\n\t\t}",
"design = scan.next()",
"design",
"scan.next()",
"scan.next",
"scan",
"num = scan.nextInt()",
"num",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if (design.equals(\"S\")) {\n\t\t\t\ttramp[num - 1] = true;\n\t\t\t} else if (design.equals(\"H\")) {\n\t\t\t\ttramp[num + 13 - 1] = true;\n\t\t\t} else if (design.equals(\"C\")) {\n\t\t\t\ttramp[num + 26 - 1] = true;\n\t\t\t} else if (design.equals(\"D\")) {\n\t\t\t\ttramp[num + 39 - 1] = true;\n\t\t\t}",
"design.equals(\"S\")",
"design.equals",
"design",
"\"S\"",
"{\n\t\t\t\ttramp[num - 1] = true;\n\t\t\t}",
"tramp[num - 1] = true",
"tramp[num - 1]",
"tramp",
"num - 1",
"num",
"1",
"true",
"if (design.equals(\"H\")) {\n\t\t\t\ttramp[num + 13 - 1] = true;\n\t\t\t} else if (design.equals(\"C\")) {\n\t\t\t\ttramp[num + 26 - 1] = true;\n\t\t\t} else if (design.equals(\"D\")) {\n\t\t\t\ttramp[num + 39 - 1] = true;\n\t\t\t}",
"design.equals(\"H\")",
"design.equals",
"design",
"\"H\"",
"{\n\t\t\t\ttramp[num + 13 - 1] = true;\n\t\t\t}",
"tramp[num + 13 - 1] = true",
"tramp[num + 13 - 1]",
"tramp",
"num + 13 - 1",
"num + 13",
"num",
"13",
"1",
"true",
"if (design.equals(\"C\")) {\n\t\t\t\ttramp[num + 26 - 1] = true;\n\t\t\t} else if (design.equals(\"D\")) {\n\t\t\t\ttramp[num + 39 - 1] = true;\n\t\t\t}",
"design.equals(\"C\")",
"design.equals",
"design",
"\"C\"",
"{\n\t\t\t\ttramp[num + 26 - 1] = true;\n\t\t\t}",
"tramp[num + 26 - 1] = true",
"tramp[num + 26 - 1]",
"tramp",
"num + 26 - 1",
"num + 26",
"num",
"26",
"1",
"true",
"if (design.equals(\"D\")) {\n\t\t\t\ttramp[num + 39 - 1] = true;\n\t\t\t}",
"design.equals(\"D\")",
"design.equals",
"design",
"\"D\"",
"{\n\t\t\t\ttramp[num + 39 - 1] = true;\n\t\t\t}",
"tramp[num + 39 - 1] = true",
"tramp[num + 39 - 1]",
"tramp",
"num + 39 - 1",
"num + 39",
"num",
"39",
"1",
"true",
"for (int i = 0; i < 52; i++) {\n\t\t\tif (tramp[i] == false) {\n\t\t\t\tSystem.out.println(mark[i/13] + \" \" + (i % 13 + 1));\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 52",
"i",
"52",
"i++",
"i++",
"i",
"{\n\t\t\tif (tramp[i] == false) {\n\t\t\t\tSystem.out.println(mark[i/13] + \" \" + (i % 13 + 1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (tramp[i] == false) {\n\t\t\t\tSystem.out.println(mark[i/13] + \" \" + (i % 13 + 1));\n\t\t\t}\n\t\t}",
"if (tramp[i] == false) {\n\t\t\t\tSystem.out.println(mark[i/13] + \" \" + (i % 13 + 1));\n\t\t\t}",
"tramp[i] == false",
"tramp[i]",
"tramp",
"i",
"false",
"{\n\t\t\t\tSystem.out.println(mark[i/13] + \" \" + (i % 13 + 1));\n\t\t\t}",
"System.out.println(mark[i/13] + \" \" + (i % 13 + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"mark[i/13] + \" \" + (i % 13 + 1)",
"mark[i/13] + \" \" + (i % 13 + 1)",
"mark[i/13]",
"mark",
"i/13",
"i",
"13",
"\" \"",
"(i % 13 + 1)",
"i % 13",
"i",
"13",
"1",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tString design;\n\t\tint num;\n\t\tString[] mark = {\"S\", \"H\", \"C\", \"D\"};\n\t\t\n\t\tboolean[] tramp = new boolean[52];\t\t// spade,heart,clover,diamond??????\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\n\t\t\tdesign = scan.next();\n\t\t\tnum = scan.nextInt();\n\t\t\tif (design.equals(\"S\")) {\n\t\t\t\ttramp[num - 1] = true;\n\t\t\t} else if (design.equals(\"H\")) {\n\t\t\t\ttramp[num + 13 - 1] = true;\n\t\t\t} else if (design.equals(\"C\")) {\n\t\t\t\ttramp[num + 26 - 1] = true;\n\t\t\t} else if (design.equals(\"D\")) {\n\t\t\t\ttramp[num + 39 - 1] = true;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 52; i++) {\n\t\t\tif (tramp[i] == false) {\n\t\t\t\tSystem.out.println(mark[i/13] + \" \" + (i % 13 + 1));\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\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tString design;\n\t\tint num;\n\t\tString[] mark = {\"S\", \"H\", \"C\", \"D\"};\n\t\t\n\t\tboolean[] tramp = new boolean[52];\t\t// spade,heart,clover,diamond??????\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\n\t\t\tdesign = scan.next();\n\t\t\tnum = scan.nextInt();\n\t\t\tif (design.equals(\"S\")) {\n\t\t\t\ttramp[num - 1] = true;\n\t\t\t} else if (design.equals(\"H\")) {\n\t\t\t\ttramp[num + 13 - 1] = true;\n\t\t\t} else if (design.equals(\"C\")) {\n\t\t\t\ttramp[num + 26 - 1] = true;\n\t\t\t} else if (design.equals(\"D\")) {\n\t\t\t\ttramp[num + 39 - 1] = true;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 52; i++) {\n\t\t\tif (tramp[i] == false) {\n\t\t\t\tSystem.out.println(mark[i/13] + \" \" + (i % 13 + 1));\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) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
String design;
int num;
String[] mark = {"S", "H", "C", "D"};
boolean[] tramp = new boolean[52]; // spade,heart,clover,diamond??????
for (int i = 0; i < n; i++) {
design = scan.next();
num = scan.nextInt();
if (design.equals("S")) {
tramp[num - 1] = true;
} else if (design.equals("H")) {
tramp[num + 13 - 1] = true;
} else if (design.equals("C")) {
tramp[num + 26 - 1] = true;
} else if (design.equals("D")) {
tramp[num + 39 - 1] = true;
}
}
for (int i = 0; i < 52; i++) {
if (tramp[i] == false) {
System.out.println(mark[i/13] + " " + (i % 13 + 1));
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
0,
18,
13,
13,
18,
13,
17,
0,
18,
13,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
17,
30,
0,
13,
40,
17,
0,
13,
18,
13,
13,
14,
4,
18,
18,
13,
13,
17,
30,
0,
13,
17,
0,
13,
18,
13,
13,
14,
4,
18,
18,
13,
13,
17,
30,
0,
13,
17,
0,
13,
18,
13,
13,
14,
4,
18,
18,
13,
13,
17,
30,
0,
13,
17,
0,
13,
18,
13,
13,
0,
18,
13,
13,
17,
41,
13,
20,
2,
17,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
0,
18,
13,
13,
2,
13,
17,
40,
13,
30,
11,
1,
41,
13,
17,
2,
13,
2,
17,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
18,
13,
13,
17,
17,
17,
30,
14,
2,
2,
18,
13,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
18,
13,
13,
17,
14,
2,
2,
2,
18,
13,
13,
17,
17,
17,
30,
14,
2,
2,
18,
13,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
18,
13,
13,
17,
14,
2,
2,
2,
18,
13,
13,
17,
17,
17,
30,
14,
2,
2,
18,
13,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
18,
13,
13,
17,
14,
2,
2,
2,
18,
13,
13,
17,
17,
17,
30,
14,
2,
2,
18,
13,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
18,
13,
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
],
[
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
],
[
14,
33
],
[
33,
34
],
[
33,
35
],
[
14,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
52,
57
],
[
49,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
49,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
72,
74
],
[
14,
75
],
[
75,
76
],
[
75,
77
],
[
14,
79
],
[
79,
80
],
[
79,
81
],
[
14,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
82,
90
],
[
90,
91
],
[
91,
92
],
[
82,
93
],
[
94,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
14,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
100,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
113,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
120,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
127,
129
],
[
113,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
130,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
143,
145
],
[
130,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
147,
152
],
[
146,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
159,
161
],
[
146,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
162,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
175,
177
],
[
112,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
182
],
[
14,
183
],
[
183,
184
],
[
183,
185
],
[
186,
187
],
[
186,
188
],
[
14,
189
],
[
189,
190
],
[
189,
191
],
[
14,
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
],
[
206,
210
],
[
205,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
212,
216
],
[
216,
217
],
[
216,
218
],
[
211,
219
],
[
219,
220
],
[
205,
221
],
[
14,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
222,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
229,
231
],
[
222,
232
],
[
232,
233
],
[
233,
234
],
[
222,
235
],
[
236,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
240,
244
],
[
239,
245
],
[
238,
246
],
[
237,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
250,
254
],
[
249,
255
],
[
248,
256
],
[
256,
257
],
[
257,
258
],
[
258,
259
],
[
259,
260
],
[
259,
261
],
[
257,
262
],
[
248,
263
],
[
263,
264
],
[
264,
265
],
[
265,
266
],
[
266,
267
],
[
266,
268
],
[
264,
269
],
[
269,
270
],
[
269,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
271,
275
],
[
237,
276
],
[
276,
277
],
[
277,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
280,
282
],
[
279,
283
],
[
278,
284
],
[
277,
285
],
[
276,
286
],
[
286,
287
],
[
287,
288
],
[
288,
289
],
[
289,
290
],
[
290,
291
],
[
290,
292
],
[
289,
293
],
[
288,
294
],
[
287,
295
],
[
295,
296
],
[
296,
297
],
[
297,
298
],
[
298,
299
],
[
298,
300
],
[
296,
301
],
[
287,
302
],
[
302,
303
],
[
303,
304
],
[
304,
305
],
[
305,
306
],
[
305,
307
],
[
303,
308
],
[
308,
309
],
[
308,
310
],
[
310,
311
],
[
311,
312
],
[
311,
313
],
[
310,
314
],
[
276,
315
],
[
315,
316
],
[
316,
317
],
[
317,
318
],
[
318,
319
],
[
319,
320
],
[
319,
321
],
[
318,
322
],
[
317,
323
],
[
316,
324
],
[
315,
325
],
[
325,
326
],
[
326,
327
],
[
327,
328
],
[
328,
329
],
[
329,
330
],
[
329,
331
],
[
328,
332
],
[
327,
333
],
[
326,
334
],
[
334,
335
],
[
335,
336
],
[
336,
337
],
[
337,
338
],
[
337,
339
],
[
335,
340
],
[
326,
341
],
[
341,
342
],
[
342,
343
],
[
343,
344
],
[
344,
345
],
[
344,
346
],
[
342,
347
],
[
347,
348
],
[
347,
349
],
[
349,
350
],
[
350,
351
],
[
350,
352
],
[
349,
353
],
[
315,
354
],
[
354,
355
],
[
355,
356
],
[
356,
357
],
[
357,
358
],
[
358,
359
],
[
358,
360
],
[
357,
361
],
[
356,
362
],
[
355,
363
],
[
354,
364
],
[
364,
365
],
[
365,
366
],
[
366,
367
],
[
367,
368
],
[
368,
369
],
[
368,
370
],
[
367,
371
],
[
366,
372
],
[
365,
373
],
[
373,
374
],
[
374,
375
],
[
375,
376
],
[
376,
377
],
[
376,
378
],
[
374,
379
],
[
365,
380
],
[
380,
381
],
[
381,
382
],
[
382,
383
],
[
383,
384
],
[
383,
385
],
[
381,
386
],
[
386,
387
],
[
386,
388
],
[
388,
389
],
[
389,
390
],
[
389,
391
],
[
388,
392
],
[
12,
393
],
[
393,
394
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString kosu=br.readLine();\n\t\tint nako=Integer.parseInt(kosu);\n\t\tint[] suji=new int[nako];\n\t\tString[] egara=new String[nako];\n\n\t\tfor(int j=0; j<nako; j++){\n\t\t\tString strArr[] = br.readLine().split(\" \");\n\t\t\tegara[j]=(strArr[0]);\n\t\t\tsuji[j]=Integer.parseInt(strArr[1]);\n\t\t\t\n\t\t}\n\n\t\tint[] trump=new int[52];\n\t\tint tmp=0;\n\n\t\tfor(int i=0; i<52; i++){\n\t\t\ttrump[i]=0;\n\t\t}\n\n\t\tfor(int i=0; i<nako; i++){\n\n\t\t\tif(egara[i].equals(\"S\")){\n\t\t\t\ttmp=-1;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"H\")){\n\t\t\t\ttmp=12;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"C\")){\n\t\t\t\ttmp=25;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"D\")){\n\t\t\t\ttmp=38;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\n\t\t\ttrump[tmp]=1;\n\t\t}\n\n\n\t\tint[] none_card=new int[52-nako];\n\t\tint none_count=0;\n\n\t\tfor(int i=0; i<52; i++){\n\t\t\tif(trump[i]==0){\n\t\t\t\tnone_card[none_count]=i+1;\n\t\t\t\tnone_count++;\n\t\t\t}\n\t\t\telse{}\n\t\t}\n\n\t\tfor(int i=0; i<52-nako; i++){\n\t\t\tif((none_card[i]-1)/13==0){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"S 13\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"S \"+none_card[i]%13);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==1){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\tSystem.out.println(\"H 13\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"H \"+none_card[i]%13);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==2){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"C 13\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"C \"+none_card[i]%13);\n\t\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==3){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"D 13\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"D \"+none_card[i]%13);\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString kosu=br.readLine();\n\t\tint nako=Integer.parseInt(kosu);\n\t\tint[] suji=new int[nako];\n\t\tString[] egara=new String[nako];\n\n\t\tfor(int j=0; j<nako; j++){\n\t\t\tString strArr[] = br.readLine().split(\" \");\n\t\t\tegara[j]=(strArr[0]);\n\t\t\tsuji[j]=Integer.parseInt(strArr[1]);\n\t\t\t\n\t\t}\n\n\t\tint[] trump=new int[52];\n\t\tint tmp=0;\n\n\t\tfor(int i=0; i<52; i++){\n\t\t\ttrump[i]=0;\n\t\t}\n\n\t\tfor(int i=0; i<nako; i++){\n\n\t\t\tif(egara[i].equals(\"S\")){\n\t\t\t\ttmp=-1;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"H\")){\n\t\t\t\ttmp=12;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"C\")){\n\t\t\t\ttmp=25;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"D\")){\n\t\t\t\ttmp=38;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\n\t\t\ttrump[tmp]=1;\n\t\t}\n\n\n\t\tint[] none_card=new int[52-nako];\n\t\tint none_count=0;\n\n\t\tfor(int i=0; i<52; i++){\n\t\t\tif(trump[i]==0){\n\t\t\t\tnone_card[none_count]=i+1;\n\t\t\t\tnone_count++;\n\t\t\t}\n\t\t\telse{}\n\t\t}\n\n\t\tfor(int i=0; i<52-nako; i++){\n\t\t\tif((none_card[i]-1)/13==0){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"S 13\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"S \"+none_card[i]%13);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==1){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\tSystem.out.println(\"H 13\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"H \"+none_card[i]%13);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==2){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"C 13\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"C \"+none_card[i]%13);\n\t\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==3){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"D 13\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"D \"+none_card[i]%13);\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString kosu=br.readLine();\n\t\tint nako=Integer.parseInt(kosu);\n\t\tint[] suji=new int[nako];\n\t\tString[] egara=new String[nako];\n\n\t\tfor(int j=0; j<nako; j++){\n\t\t\tString strArr[] = br.readLine().split(\" \");\n\t\t\tegara[j]=(strArr[0]);\n\t\t\tsuji[j]=Integer.parseInt(strArr[1]);\n\t\t\t\n\t\t}\n\n\t\tint[] trump=new int[52];\n\t\tint tmp=0;\n\n\t\tfor(int i=0; i<52; i++){\n\t\t\ttrump[i]=0;\n\t\t}\n\n\t\tfor(int i=0; i<nako; i++){\n\n\t\t\tif(egara[i].equals(\"S\")){\n\t\t\t\ttmp=-1;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"H\")){\n\t\t\t\ttmp=12;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"C\")){\n\t\t\t\ttmp=25;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"D\")){\n\t\t\t\ttmp=38;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\n\t\t\ttrump[tmp]=1;\n\t\t}\n\n\n\t\tint[] none_card=new int[52-nako];\n\t\tint none_count=0;\n\n\t\tfor(int i=0; i<52; i++){\n\t\t\tif(trump[i]==0){\n\t\t\t\tnone_card[none_count]=i+1;\n\t\t\t\tnone_count++;\n\t\t\t}\n\t\t\telse{}\n\t\t}\n\n\t\tfor(int i=0; i<52-nako; i++){\n\t\t\tif((none_card[i]-1)/13==0){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"S 13\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"S \"+none_card[i]%13);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==1){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\tSystem.out.println(\"H 13\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"H \"+none_card[i]%13);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==2){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"C 13\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"C \"+none_card[i]%13);\n\t\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==3){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"D 13\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"D \"+none_card[i]%13);\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString kosu=br.readLine();\n\t\tint nako=Integer.parseInt(kosu);\n\t\tint[] suji=new int[nako];\n\t\tString[] egara=new String[nako];\n\n\t\tfor(int j=0; j<nako; j++){\n\t\t\tString strArr[] = br.readLine().split(\" \");\n\t\t\tegara[j]=(strArr[0]);\n\t\t\tsuji[j]=Integer.parseInt(strArr[1]);\n\t\t\t\n\t\t}\n\n\t\tint[] trump=new int[52];\n\t\tint tmp=0;\n\n\t\tfor(int i=0; i<52; i++){\n\t\t\ttrump[i]=0;\n\t\t}\n\n\t\tfor(int i=0; i<nako; i++){\n\n\t\t\tif(egara[i].equals(\"S\")){\n\t\t\t\ttmp=-1;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"H\")){\n\t\t\t\ttmp=12;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"C\")){\n\t\t\t\ttmp=25;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"D\")){\n\t\t\t\ttmp=38;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\n\t\t\ttrump[tmp]=1;\n\t\t}\n\n\n\t\tint[] none_card=new int[52-nako];\n\t\tint none_count=0;\n\n\t\tfor(int i=0; i<52; i++){\n\t\t\tif(trump[i]==0){\n\t\t\t\tnone_card[none_count]=i+1;\n\t\t\t\tnone_count++;\n\t\t\t}\n\t\t\telse{}\n\t\t}\n\n\t\tfor(int i=0; i<52-nako; i++){\n\t\t\tif((none_card[i]-1)/13==0){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"S 13\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"S \"+none_card[i]%13);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==1){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\tSystem.out.println(\"H 13\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"H \"+none_card[i]%13);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==2){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"C 13\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"C \"+none_card[i]%13);\n\t\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==3){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"D 13\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"D \"+none_card[i]%13);\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String kosu=br.readLine();",
"kosu",
"br.readLine()",
"br.readLine",
"br",
"int nako=Integer.parseInt(kosu);",
"nako",
"Integer.parseInt(kosu)",
"Integer.parseInt",
"Integer",
"kosu",
"int[] suji=new int[nako];",
"suji",
"new int[nako]",
"nako",
"String[] egara=new String[nako];",
"egara",
"new String[nako]",
"nako",
"for(int j=0; j<nako; j++){\n\t\t\tString strArr[] = br.readLine().split(\" \");\n\t\t\tegara[j]=(strArr[0]);\n\t\t\tsuji[j]=Integer.parseInt(strArr[1]);\n\t\t\t\n\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<nako",
"j",
"nako",
"j++",
"j++",
"j",
"{\n\t\t\tString strArr[] = br.readLine().split(\" \");\n\t\t\tegara[j]=(strArr[0]);\n\t\t\tsuji[j]=Integer.parseInt(strArr[1]);\n\t\t\t\n\t\t}",
"{\n\t\t\tString strArr[] = br.readLine().split(\" \");\n\t\t\tegara[j]=(strArr[0]);\n\t\t\tsuji[j]=Integer.parseInt(strArr[1]);\n\t\t\t\n\t\t}",
"String strArr[] = br.readLine().split(\" \");",
"strArr",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"egara[j]=(strArr[0])",
"egara[j]",
"egara",
"j",
"(strArr[0])",
"strArr",
"0",
"suji[j]=Integer.parseInt(strArr[1])",
"suji[j]",
"suji",
"j",
"Integer.parseInt(strArr[1])",
"Integer.parseInt",
"Integer",
"strArr[1]",
"strArr",
"1",
"int[] trump=new int[52];",
"trump",
"new int[52]",
"52",
"int tmp=0;",
"tmp",
"0",
"for(int i=0; i<52; i++){\n\t\t\ttrump[i]=0;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<52",
"i",
"52",
"i++",
"i++",
"i",
"{\n\t\t\ttrump[i]=0;\n\t\t}",
"{\n\t\t\ttrump[i]=0;\n\t\t}",
"trump[i]=0",
"trump[i]",
"trump",
"i",
"0",
"for(int i=0; i<nako; i++){\n\n\t\t\tif(egara[i].equals(\"S\")){\n\t\t\t\ttmp=-1;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"H\")){\n\t\t\t\ttmp=12;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"C\")){\n\t\t\t\ttmp=25;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"D\")){\n\t\t\t\ttmp=38;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\n\t\t\ttrump[tmp]=1;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<nako",
"i",
"nako",
"i++",
"i++",
"i",
"{\n\n\t\t\tif(egara[i].equals(\"S\")){\n\t\t\t\ttmp=-1;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"H\")){\n\t\t\t\ttmp=12;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"C\")){\n\t\t\t\ttmp=25;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"D\")){\n\t\t\t\ttmp=38;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\n\t\t\ttrump[tmp]=1;\n\t\t}",
"{\n\n\t\t\tif(egara[i].equals(\"S\")){\n\t\t\t\ttmp=-1;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"H\")){\n\t\t\t\ttmp=12;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"C\")){\n\t\t\t\ttmp=25;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"D\")){\n\t\t\t\ttmp=38;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\n\t\t\ttrump[tmp]=1;\n\t\t}",
"if(egara[i].equals(\"S\")){\n\t\t\t\ttmp=-1;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"H\")){\n\t\t\t\ttmp=12;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"C\")){\n\t\t\t\ttmp=25;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"D\")){\n\t\t\t\ttmp=38;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}",
"egara[i].equals(\"S\")",
"egara[i].equals",
"egara[i]",
"egara",
"i",
"\"S\"",
"{\n\t\t\t\ttmp=-1;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}",
"tmp=-1",
"tmp",
"-1",
"1",
"tmp+=suji[i]",
"tmp",
"suji[i]",
"suji",
"i",
"if(egara[i].equals(\"H\")){\n\t\t\t\ttmp=12;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"C\")){\n\t\t\t\ttmp=25;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"D\")){\n\t\t\t\ttmp=38;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}",
"egara[i].equals(\"H\")",
"egara[i].equals",
"egara[i]",
"egara",
"i",
"\"H\"",
"{\n\t\t\t\ttmp=12;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}",
"tmp=12",
"tmp",
"12",
"tmp+=suji[i]",
"tmp",
"suji[i]",
"suji",
"i",
"if(egara[i].equals(\"C\")){\n\t\t\t\ttmp=25;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}\n\t\t\telse if(egara[i].equals(\"D\")){\n\t\t\t\ttmp=38;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}",
"egara[i].equals(\"C\")",
"egara[i].equals",
"egara[i]",
"egara",
"i",
"\"C\"",
"{\n\t\t\t\ttmp=25;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}",
"tmp=25",
"tmp",
"25",
"tmp+=suji[i]",
"tmp",
"suji[i]",
"suji",
"i",
"if(egara[i].equals(\"D\")){\n\t\t\t\ttmp=38;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}",
"egara[i].equals(\"D\")",
"egara[i].equals",
"egara[i]",
"egara",
"i",
"\"D\"",
"{\n\t\t\t\ttmp=38;\n\t\t\t\ttmp+=suji[i];\n\t\t\t}",
"tmp=38",
"tmp",
"38",
"tmp+=suji[i]",
"tmp",
"suji[i]",
"suji",
"i",
"trump[tmp]=1",
"trump[tmp]",
"trump",
"tmp",
"1",
"int[] none_card=new int[52-nako];",
"none_card",
"new int[52-nako]",
"52-nako",
"52",
"nako",
"int none_count=0;",
"none_count",
"0",
"for(int i=0; i<52; i++){\n\t\t\tif(trump[i]==0){\n\t\t\t\tnone_card[none_count]=i+1;\n\t\t\t\tnone_count++;\n\t\t\t}\n\t\t\telse{}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<52",
"i",
"52",
"i++",
"i++",
"i",
"{\n\t\t\tif(trump[i]==0){\n\t\t\t\tnone_card[none_count]=i+1;\n\t\t\t\tnone_count++;\n\t\t\t}\n\t\t\telse{}\n\t\t}",
"{\n\t\t\tif(trump[i]==0){\n\t\t\t\tnone_card[none_count]=i+1;\n\t\t\t\tnone_count++;\n\t\t\t}\n\t\t\telse{}\n\t\t}",
"if(trump[i]==0){\n\t\t\t\tnone_card[none_count]=i+1;\n\t\t\t\tnone_count++;\n\t\t\t}\n\t\t\telse{}",
"trump[i]==0",
"trump[i]",
"trump",
"i",
"0",
"{\n\t\t\t\tnone_card[none_count]=i+1;\n\t\t\t\tnone_count++;\n\t\t\t}",
"none_card[none_count]=i+1",
"none_card[none_count]",
"none_card",
"none_count",
"i+1",
"i",
"1",
"none_count++",
"none_count",
"{}",
"for(int i=0; i<52-nako; i++){\n\t\t\tif((none_card[i]-1)/13==0){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"S 13\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"S \"+none_card[i]%13);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==1){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\tSystem.out.println(\"H 13\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"H \"+none_card[i]%13);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==2){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"C 13\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"C \"+none_card[i]%13);\n\t\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==3){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"D 13\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"D \"+none_card[i]%13);\n\t\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<52-nako",
"i",
"52-nako",
"52",
"nako",
"i++",
"i++",
"i",
"{\n\t\t\tif((none_card[i]-1)/13==0){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"S 13\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"S \"+none_card[i]%13);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==1){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\tSystem.out.println(\"H 13\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"H \"+none_card[i]%13);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==2){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"C 13\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"C \"+none_card[i]%13);\n\t\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==3){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"D 13\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"D \"+none_card[i]%13);\n\t\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tif((none_card[i]-1)/13==0){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"S 13\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"S \"+none_card[i]%13);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==1){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\tSystem.out.println(\"H 13\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"H \"+none_card[i]%13);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==2){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"C 13\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"C \"+none_card[i]%13);\n\t\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==3){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"D 13\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"D \"+none_card[i]%13);\n\t\t\t\t\t}\n\t\t\t}\n\t\t}",
"if((none_card[i]-1)/13==0){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"S 13\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"S \"+none_card[i]%13);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==1){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\tSystem.out.println(\"H 13\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"H \"+none_card[i]%13);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==2){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"C 13\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"C \"+none_card[i]%13);\n\t\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==3){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"D 13\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"D \"+none_card[i]%13);\n\t\t\t\t\t}\n\t\t\t}",
"(none_card[i]-1)/13==0",
"(none_card[i]-1)/13",
"(none_card[i]-1)",
"none_card[i]",
"none_card",
"i",
"1",
"13",
"0",
"{\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"S 13\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"S \"+none_card[i]%13);\n\t\t\t\t}\n\t\t\t}",
"if(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"S 13\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"S \"+none_card[i]%13);\n\t\t\t\t}",
"none_card[i]%13==0",
"none_card[i]%13",
"none_card[i]",
"none_card",
"i",
"13",
"0",
"{\n\t\t\t\t\tSystem.out.println(\"S 13\");\n\t\t\t\t}",
"System.out.println(\"S 13\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S 13\"",
"{\n\t\t\t\t\tSystem.out.println(\"S \"+none_card[i]%13);\n\t\t\t\t}",
"System.out.println(\"S \"+none_card[i]%13)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \"+none_card[i]%13",
"\"S \"",
"none_card[i]%13",
"none_card[i]",
"none_card",
"i",
"13",
"if((none_card[i]-1)/13==1){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\tSystem.out.println(\"H 13\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"H \"+none_card[i]%13);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==2){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"C 13\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"C \"+none_card[i]%13);\n\t\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==3){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"D 13\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"D \"+none_card[i]%13);\n\t\t\t\t\t}\n\t\t\t}",
"(none_card[i]-1)/13==1",
"(none_card[i]-1)/13",
"(none_card[i]-1)",
"none_card[i]",
"none_card",
"i",
"1",
"13",
"1",
"{\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\tSystem.out.println(\"H 13\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"H \"+none_card[i]%13);\n\t\t\t\t}\n\t\t\t}",
"if(none_card[i]%13==0){\n\t\t\t\tSystem.out.println(\"H 13\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"H \"+none_card[i]%13);\n\t\t\t\t}",
"none_card[i]%13==0",
"none_card[i]%13",
"none_card[i]",
"none_card",
"i",
"13",
"0",
"{\n\t\t\t\tSystem.out.println(\"H 13\");\n\t\t\t\t}",
"System.out.println(\"H 13\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H 13\"",
"{\n\t\t\t\t\tSystem.out.println(\"H \"+none_card[i]%13);\n\t\t\t\t}",
"System.out.println(\"H \"+none_card[i]%13)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \"+none_card[i]%13",
"\"H \"",
"none_card[i]%13",
"none_card[i]",
"none_card",
"i",
"13",
"if((none_card[i]-1)/13==2){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"C 13\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"C \"+none_card[i]%13);\n\t\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if((none_card[i]-1)/13==3){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"D 13\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"D \"+none_card[i]%13);\n\t\t\t\t\t}\n\t\t\t}",
"(none_card[i]-1)/13==2",
"(none_card[i]-1)/13",
"(none_card[i]-1)",
"none_card[i]",
"none_card",
"i",
"1",
"13",
"2",
"{\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"C 13\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"C \"+none_card[i]%13);\n\t\t\t\t\t}\n\t\t\t}",
"if(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"C 13\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"C \"+none_card[i]%13);\n\t\t\t\t\t}",
"none_card[i]%13==0",
"none_card[i]%13",
"none_card[i]",
"none_card",
"i",
"13",
"0",
"{\n\t\t\t\t\tSystem.out.println(\"C 13\");\n\t\t\t\t\t}",
"System.out.println(\"C 13\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C 13\"",
"{\n\t\t\t\t\t\tSystem.out.println(\"C \"+none_card[i]%13);\n\t\t\t\t\t}",
"System.out.println(\"C \"+none_card[i]%13)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \"+none_card[i]%13",
"\"C \"",
"none_card[i]%13",
"none_card[i]",
"none_card",
"i",
"13",
"if((none_card[i]-1)/13==3){\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"D 13\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"D \"+none_card[i]%13);\n\t\t\t\t\t}\n\t\t\t}",
"(none_card[i]-1)/13==3",
"(none_card[i]-1)/13",
"(none_card[i]-1)",
"none_card[i]",
"none_card",
"i",
"1",
"13",
"3",
"{\n\t\t\t\tif(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"D 13\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"D \"+none_card[i]%13);\n\t\t\t\t\t}\n\t\t\t}",
"if(none_card[i]%13==0){\n\t\t\t\t\tSystem.out.println(\"D 13\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"D \"+none_card[i]%13);\n\t\t\t\t\t}",
"none_card[i]%13==0",
"none_card[i]%13",
"none_card[i]",
"none_card",
"i",
"13",
"0",
"{\n\t\t\t\t\tSystem.out.println(\"D 13\");\n\t\t\t\t\t}",
"System.out.println(\"D 13\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D 13\"",
"{\n\t\t\t\t\t\tSystem.out.println(\"D \"+none_card[i]%13);\n\t\t\t\t\t}",
"System.out.println(\"D \"+none_card[i]%13)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \"+none_card[i]%13",
"\"D \"",
"none_card[i]%13",
"none_card[i]",
"none_card",
"i",
"13",
"String[] args",
"args"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String kosu=br.readLine();
int nako=Integer.parseInt(kosu);
int[] suji=new int[nako];
String[] egara=new String[nako];
for(int j=0; j<nako; j++){
String strArr[] = br.readLine().split(" ");
egara[j]=(strArr[0]);
suji[j]=Integer.parseInt(strArr[1]);
}
int[] trump=new int[52];
int tmp=0;
for(int i=0; i<52; i++){
trump[i]=0;
}
for(int i=0; i<nako; i++){
if(egara[i].equals("S")){
tmp=-1;
tmp+=suji[i];
}
else if(egara[i].equals("H")){
tmp=12;
tmp+=suji[i];
}
else if(egara[i].equals("C")){
tmp=25;
tmp+=suji[i];
}
else if(egara[i].equals("D")){
tmp=38;
tmp+=suji[i];
}
trump[tmp]=1;
}
int[] none_card=new int[52-nako];
int none_count=0;
for(int i=0; i<52; i++){
if(trump[i]==0){
none_card[none_count]=i+1;
none_count++;
}
else{}
}
for(int i=0; i<52-nako; i++){
if((none_card[i]-1)/13==0){
if(none_card[i]%13==0){
System.out.println("S 13");
}
else{
System.out.println("S "+none_card[i]%13);
}
}
else if((none_card[i]-1)/13==1){
if(none_card[i]%13==0){
System.out.println("H 13");
}
else{
System.out.println("H "+none_card[i]%13);
}
}
else if((none_card[i]-1)/13==2){
if(none_card[i]%13==0){
System.out.println("C 13");
}
else{
System.out.println("C "+none_card[i]%13);
}
}
else if((none_card[i]-1)/13==3){
if(none_card[i]%13==0){
System.out.println("D 13");
}
else{
System.out.println("D "+none_card[i]%13);
}
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
39,
17,
17,
17,
17,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
0,
13,
17,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
0,
13,
17,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
0,
13,
17,
30,
30,
0,
18,
13,
2,
2,
17,
13,
13,
2,
2,
18,
13,
13,
17,
4,
18,
13,
2,
13,
17,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
0,
13,
17,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
0,
18,
13,
13,
2,
2,
13,
17,
4,
18,
13,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
0,
13,
17,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
0,
13,
17,
30,
30,
14,
4,
18,
18,
13,
13,
18,
13,
13,
30,
0,
18,
13,
13,
17,
30,
9,
11,
1,
41,
13,
17,
2,
13,
17,
1,
0,
13,
17,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
231,
11
],
[
231,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
20,
22
],
[
20,
23
],
[
20,
24
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
14,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
29,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
43,
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
],
[
66,
68
],
[
57,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
79,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
88,
90
],
[
14,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
96,
97
],
[
97,
98
],
[
14,
99
],
[
99,
100
],
[
99,
101
],
[
14,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
103,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
103,
115
],
[
116,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
119,
124
],
[
116,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
127,
129
],
[
116,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
132,
135
],
[
135,
136
],
[
135,
137
],
[
116,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
143,
143
],
[
143,
144
],
[
143,
145
],
[
143,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
14,
150
],
[
150,
151
],
[
150,
152
],
[
14,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
159,
160
],
[
159,
161
],
[
154,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
154,
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
],
[
177,
179
],
[
168,
180
],
[
181,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
183,
188
],
[
188,
189
],
[
188,
190
],
[
182,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
192,
196
],
[
182,
197
],
[
197,
198
],
[
14,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
199,
204
],
[
204,
205
],
[
204,
206
],
[
199,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
199,
211
],
[
212,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
214,
218
],
[
213,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
220,
225
],
[
225,
226
],
[
225,
227
],
[
12,
228
],
[
228,
229
],
[
0,
230
],
[
230,
231
],
[
230,
232
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] mark = { \"S\", \"H\", \"C\", \"D\" };\n\t\tString[] allCard = new String[52];\n\t\tfor (int x = 0; x < 4; x += 1) {\n\t\t\tfor (int y = 0; y < 13; y += 1) {\n\t\t\t\tfor (int z = 0; z < 52; z += 1) {\n\t\t\t\t\tallCard[13 * x + y] = (mark[x] + \" \" + Integer\n\t\t\t\t\t\t\t.toString(y + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint n = Integer.parseInt(in.readLine());\n\t\tString[] myCard = new String[n];\n\t\tfor (int i = 0; i < n; i += 1) {\n\t\t\tString[] inputMyCard = in.readLine().split(\" \");\n\t\t\tString thisMark = inputMyCard[0];\n\t\t\tint num = Integer.parseInt(inputMyCard[1]);\n\t\t\tmyCard[i] = thisMark + \" \" + Integer.toString(num);\n\t\t}\n\t\tBoolean[] existCard = new Boolean[52];\n\t\tfor (int p = 0; p < n; p += 1) {\n\t\t\tfor (int q = 0; q < 52; q += 1) {\n\t\t\t\tif (myCard[p].equals(allCard[q])) {\n\t\t\t\t\texistCard[q] = true;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int s = 0; s < 52; s += 1) {\n\t\t\tif (existCard[s] == null) {\n\t\t\t\tSystem.out.println(allCard[s]);\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] mark = { \"S\", \"H\", \"C\", \"D\" };\n\t\tString[] allCard = new String[52];\n\t\tfor (int x = 0; x < 4; x += 1) {\n\t\t\tfor (int y = 0; y < 13; y += 1) {\n\t\t\t\tfor (int z = 0; z < 52; z += 1) {\n\t\t\t\t\tallCard[13 * x + y] = (mark[x] + \" \" + Integer\n\t\t\t\t\t\t\t.toString(y + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint n = Integer.parseInt(in.readLine());\n\t\tString[] myCard = new String[n];\n\t\tfor (int i = 0; i < n; i += 1) {\n\t\t\tString[] inputMyCard = in.readLine().split(\" \");\n\t\t\tString thisMark = inputMyCard[0];\n\t\t\tint num = Integer.parseInt(inputMyCard[1]);\n\t\t\tmyCard[i] = thisMark + \" \" + Integer.toString(num);\n\t\t}\n\t\tBoolean[] existCard = new Boolean[52];\n\t\tfor (int p = 0; p < n; p += 1) {\n\t\t\tfor (int q = 0; q < 52; q += 1) {\n\t\t\t\tif (myCard[p].equals(allCard[q])) {\n\t\t\t\t\texistCard[q] = true;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int s = 0; s < 52; s += 1) {\n\t\t\tif (existCard[s] == null) {\n\t\t\t\tSystem.out.println(allCard[s]);\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] mark = { \"S\", \"H\", \"C\", \"D\" };\n\t\tString[] allCard = new String[52];\n\t\tfor (int x = 0; x < 4; x += 1) {\n\t\t\tfor (int y = 0; y < 13; y += 1) {\n\t\t\t\tfor (int z = 0; z < 52; z += 1) {\n\t\t\t\t\tallCard[13 * x + y] = (mark[x] + \" \" + Integer\n\t\t\t\t\t\t\t.toString(y + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint n = Integer.parseInt(in.readLine());\n\t\tString[] myCard = new String[n];\n\t\tfor (int i = 0; i < n; i += 1) {\n\t\t\tString[] inputMyCard = in.readLine().split(\" \");\n\t\t\tString thisMark = inputMyCard[0];\n\t\t\tint num = Integer.parseInt(inputMyCard[1]);\n\t\t\tmyCard[i] = thisMark + \" \" + Integer.toString(num);\n\t\t}\n\t\tBoolean[] existCard = new Boolean[52];\n\t\tfor (int p = 0; p < n; p += 1) {\n\t\t\tfor (int q = 0; q < 52; q += 1) {\n\t\t\t\tif (myCard[p].equals(allCard[q])) {\n\t\t\t\t\texistCard[q] = true;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int s = 0; s < 52; s += 1) {\n\t\t\tif (existCard[s] == null) {\n\t\t\t\tSystem.out.println(allCard[s]);\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] mark = { \"S\", \"H\", \"C\", \"D\" };\n\t\tString[] allCard = new String[52];\n\t\tfor (int x = 0; x < 4; x += 1) {\n\t\t\tfor (int y = 0; y < 13; y += 1) {\n\t\t\t\tfor (int z = 0; z < 52; z += 1) {\n\t\t\t\t\tallCard[13 * x + y] = (mark[x] + \" \" + Integer\n\t\t\t\t\t\t\t.toString(y + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint n = Integer.parseInt(in.readLine());\n\t\tString[] myCard = new String[n];\n\t\tfor (int i = 0; i < n; i += 1) {\n\t\t\tString[] inputMyCard = in.readLine().split(\" \");\n\t\t\tString thisMark = inputMyCard[0];\n\t\t\tint num = Integer.parseInt(inputMyCard[1]);\n\t\t\tmyCard[i] = thisMark + \" \" + Integer.toString(num);\n\t\t}\n\t\tBoolean[] existCard = new Boolean[52];\n\t\tfor (int p = 0; p < n; p += 1) {\n\t\t\tfor (int q = 0; q < 52; q += 1) {\n\t\t\t\tif (myCard[p].equals(allCard[q])) {\n\t\t\t\t\texistCard[q] = true;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int s = 0; s < 52; s += 1) {\n\t\t\tif (existCard[s] == null) {\n\t\t\t\tSystem.out.println(allCard[s]);\n\t\t\t}\n\t\t}\n\t}",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] mark = { \"S\", \"H\", \"C\", \"D\" };",
"mark",
"{ \"S\", \"H\", \"C\", \"D\" }",
"\"S\"",
"\"H\"",
"\"C\"",
"\"D\"",
"String[] allCard = new String[52];",
"allCard",
"new String[52]",
"52",
"for (int x = 0; x < 4; x += 1) {\n\t\t\tfor (int y = 0; y < 13; y += 1) {\n\t\t\t\tfor (int z = 0; z < 52; z += 1) {\n\t\t\t\t\tallCard[13 * x + y] = (mark[x] + \" \" + Integer\n\t\t\t\t\t\t\t.toString(y + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < 4",
"x",
"4",
"x += 1",
"x += 1",
"x",
"1",
"{\n\t\t\tfor (int y = 0; y < 13; y += 1) {\n\t\t\t\tfor (int z = 0; z < 52; z += 1) {\n\t\t\t\t\tallCard[13 * x + y] = (mark[x] + \" \" + Integer\n\t\t\t\t\t\t\t.toString(y + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int y = 0; y < 13; y += 1) {\n\t\t\t\tfor (int z = 0; z < 52; z += 1) {\n\t\t\t\t\tallCard[13 * x + y] = (mark[x] + \" \" + Integer\n\t\t\t\t\t\t\t.toString(y + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int y = 0; y < 13; y += 1) {\n\t\t\t\tfor (int z = 0; z < 52; z += 1) {\n\t\t\t\t\tallCard[13 * x + y] = (mark[x] + \" \" + Integer\n\t\t\t\t\t\t\t.toString(y + 1));\n\t\t\t\t}\n\t\t\t}",
"int y = 0;",
"int y = 0;",
"y",
"0",
"y < 13",
"y",
"13",
"y += 1",
"y += 1",
"y",
"1",
"{\n\t\t\t\tfor (int z = 0; z < 52; z += 1) {\n\t\t\t\t\tallCard[13 * x + y] = (mark[x] + \" \" + Integer\n\t\t\t\t\t\t\t.toString(y + 1));\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor (int z = 0; z < 52; z += 1) {\n\t\t\t\t\tallCard[13 * x + y] = (mark[x] + \" \" + Integer\n\t\t\t\t\t\t\t.toString(y + 1));\n\t\t\t\t}\n\t\t\t}",
"for (int z = 0; z < 52; z += 1) {\n\t\t\t\t\tallCard[13 * x + y] = (mark[x] + \" \" + Integer\n\t\t\t\t\t\t\t.toString(y + 1));\n\t\t\t\t}",
"int z = 0;",
"int z = 0;",
"z",
"0",
"z < 52",
"z",
"52",
"z += 1",
"z += 1",
"z",
"1",
"{\n\t\t\t\t\tallCard[13 * x + y] = (mark[x] + \" \" + Integer\n\t\t\t\t\t\t\t.toString(y + 1));\n\t\t\t\t}",
"{\n\t\t\t\t\tallCard[13 * x + y] = (mark[x] + \" \" + Integer\n\t\t\t\t\t\t\t.toString(y + 1));\n\t\t\t\t}",
"allCard[13 * x + y] = (mark[x] + \" \" + Integer\n\t\t\t\t\t\t\t.toString(y + 1))",
"allCard[13 * x + y]",
"allCard",
"13 * x + y",
"13 * x",
"13",
"x",
"y",
"(mark[x] + \" \" + Integer\n\t\t\t\t\t\t\t.toString(y + 1))",
"mark[x] + \" \" + Integer\n\t\t\t\t\t\t\t.toString(y + 1)",
"mark[x]",
"mark",
"x",
"\" \"",
"Integer\n\t\t\t\t\t\t\t.toString(y + 1)",
"Integer\n\t\t\t\t\t\t\t.toString",
"Integer",
"y + 1",
"y",
"1",
"int n = Integer.parseInt(in.readLine());",
"n",
"Integer.parseInt(in.readLine())",
"Integer.parseInt",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"String[] myCard = new String[n];",
"myCard",
"new String[n]",
"n",
"for (int i = 0; i < n; i += 1) {\n\t\t\tString[] inputMyCard = in.readLine().split(\" \");\n\t\t\tString thisMark = inputMyCard[0];\n\t\t\tint num = Integer.parseInt(inputMyCard[1]);\n\t\t\tmyCard[i] = thisMark + \" \" + Integer.toString(num);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i += 1",
"i += 1",
"i",
"1",
"{\n\t\t\tString[] inputMyCard = in.readLine().split(\" \");\n\t\t\tString thisMark = inputMyCard[0];\n\t\t\tint num = Integer.parseInt(inputMyCard[1]);\n\t\t\tmyCard[i] = thisMark + \" \" + Integer.toString(num);\n\t\t}",
"{\n\t\t\tString[] inputMyCard = in.readLine().split(\" \");\n\t\t\tString thisMark = inputMyCard[0];\n\t\t\tint num = Integer.parseInt(inputMyCard[1]);\n\t\t\tmyCard[i] = thisMark + \" \" + Integer.toString(num);\n\t\t}",
"String[] inputMyCard = in.readLine().split(\" \");",
"inputMyCard",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"String thisMark = inputMyCard[0];",
"thisMark",
"inputMyCard[0]",
"inputMyCard",
"0",
"int num = Integer.parseInt(inputMyCard[1]);",
"num",
"Integer.parseInt(inputMyCard[1])",
"Integer.parseInt",
"Integer",
"inputMyCard[1]",
"inputMyCard",
"1",
"myCard[i] = thisMark + \" \" + Integer.toString(num)",
"myCard[i]",
"myCard",
"i",
"thisMark + \" \" + Integer.toString(num)",
"thisMark + \" \" + Integer.toString(num)",
"thisMark",
"\" \"",
"Integer.toString(num)",
"Integer.toString",
"Integer",
"num",
"Boolean[] existCard = new Boolean[52];",
"existCard",
"new Boolean[52]",
"52",
"for (int p = 0; p < n; p += 1) {\n\t\t\tfor (int q = 0; q < 52; q += 1) {\n\t\t\t\tif (myCard[p].equals(allCard[q])) {\n\t\t\t\t\texistCard[q] = true;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\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 += 1",
"p += 1",
"p",
"1",
"{\n\t\t\tfor (int q = 0; q < 52; q += 1) {\n\t\t\t\tif (myCard[p].equals(allCard[q])) {\n\t\t\t\t\texistCard[q] = true;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int q = 0; q < 52; q += 1) {\n\t\t\t\tif (myCard[p].equals(allCard[q])) {\n\t\t\t\t\texistCard[q] = true;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int q = 0; q < 52; q += 1) {\n\t\t\t\tif (myCard[p].equals(allCard[q])) {\n\t\t\t\t\texistCard[q] = true;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}",
"int q = 0;",
"int q = 0;",
"q",
"0",
"q < 52",
"q",
"52",
"q += 1",
"q += 1",
"q",
"1",
"{\n\t\t\t\tif (myCard[p].equals(allCard[q])) {\n\t\t\t\t\texistCard[q] = true;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif (myCard[p].equals(allCard[q])) {\n\t\t\t\t\texistCard[q] = true;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}",
"if (myCard[p].equals(allCard[q])) {\n\t\t\t\t\texistCard[q] = true;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"myCard[p].equals(allCard[q])",
"myCard[p].equals",
"myCard[p]",
"myCard",
"p",
"allCard[q]",
"allCard",
"q",
"{\n\t\t\t\t\texistCard[q] = true;\n\t\t\t\t}",
"existCard[q] = true",
"existCard[q]",
"existCard",
"q",
"true",
"{\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"continue;",
"for (int s = 0; s < 52; s += 1) {\n\t\t\tif (existCard[s] == null) {\n\t\t\t\tSystem.out.println(allCard[s]);\n\t\t\t}\n\t\t}",
"int s = 0;",
"int s = 0;",
"s",
"0",
"s < 52",
"s",
"52",
"s += 1",
"s += 1",
"s",
"1",
"{\n\t\t\tif (existCard[s] == null) {\n\t\t\t\tSystem.out.println(allCard[s]);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (existCard[s] == null) {\n\t\t\t\tSystem.out.println(allCard[s]);\n\t\t\t}\n\t\t}",
"if (existCard[s] == null) {\n\t\t\t\tSystem.out.println(allCard[s]);\n\t\t\t}",
"existCard[s] == null",
"existCard[s]",
"existCard",
"s",
"null",
"{\n\t\t\t\tSystem.out.println(allCard[s]);\n\t\t\t}",
"System.out.println(allCard[s])",
"System.out.println",
"System.out",
"System",
"System.out",
"allCard[s]",
"allCard",
"s",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] mark = { \"S\", \"H\", \"C\", \"D\" };\n\t\tString[] allCard = new String[52];\n\t\tfor (int x = 0; x < 4; x += 1) {\n\t\t\tfor (int y = 0; y < 13; y += 1) {\n\t\t\t\tfor (int z = 0; z < 52; z += 1) {\n\t\t\t\t\tallCard[13 * x + y] = (mark[x] + \" \" + Integer\n\t\t\t\t\t\t\t.toString(y + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint n = Integer.parseInt(in.readLine());\n\t\tString[] myCard = new String[n];\n\t\tfor (int i = 0; i < n; i += 1) {\n\t\t\tString[] inputMyCard = in.readLine().split(\" \");\n\t\t\tString thisMark = inputMyCard[0];\n\t\t\tint num = Integer.parseInt(inputMyCard[1]);\n\t\t\tmyCard[i] = thisMark + \" \" + Integer.toString(num);\n\t\t}\n\t\tBoolean[] existCard = new Boolean[52];\n\t\tfor (int p = 0; p < n; p += 1) {\n\t\t\tfor (int q = 0; q < 52; q += 1) {\n\t\t\t\tif (myCard[p].equals(allCard[q])) {\n\t\t\t\t\texistCard[q] = true;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int s = 0; s < 52; s += 1) {\n\t\t\tif (existCard[s] == null) {\n\t\t\t\tSystem.out.println(allCard[s]);\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] mark = { \"S\", \"H\", \"C\", \"D\" };\n\t\tString[] allCard = new String[52];\n\t\tfor (int x = 0; x < 4; x += 1) {\n\t\t\tfor (int y = 0; y < 13; y += 1) {\n\t\t\t\tfor (int z = 0; z < 52; z += 1) {\n\t\t\t\t\tallCard[13 * x + y] = (mark[x] + \" \" + Integer\n\t\t\t\t\t\t\t.toString(y + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint n = Integer.parseInt(in.readLine());\n\t\tString[] myCard = new String[n];\n\t\tfor (int i = 0; i < n; i += 1) {\n\t\t\tString[] inputMyCard = in.readLine().split(\" \");\n\t\t\tString thisMark = inputMyCard[0];\n\t\t\tint num = Integer.parseInt(inputMyCard[1]);\n\t\t\tmyCard[i] = thisMark + \" \" + Integer.toString(num);\n\t\t}\n\t\tBoolean[] existCard = new Boolean[52];\n\t\tfor (int p = 0; p < n; p += 1) {\n\t\t\tfor (int q = 0; q < 52; q += 1) {\n\t\t\t\tif (myCard[p].equals(allCard[q])) {\n\t\t\t\t\texistCard[q] = true;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int s = 0; s < 52; s += 1) {\n\t\t\tif (existCard[s] == null) {\n\t\t\t\tSystem.out.println(allCard[s]);\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String[] mark = { "S", "H", "C", "D" };
String[] allCard = new String[52];
for (int x = 0; x < 4; x += 1) {
for (int y = 0; y < 13; y += 1) {
for (int z = 0; z < 52; z += 1) {
allCard[13 * x + y] = (mark[x] + " " + Integer
.toString(y + 1));
}
}
}
int n = Integer.parseInt(in.readLine());
String[] myCard = new String[n];
for (int i = 0; i < n; i += 1) {
String[] inputMyCard = in.readLine().split(" ");
String thisMark = inputMyCard[0];
int num = Integer.parseInt(inputMyCard[1]);
myCard[i] = thisMark + " " + Integer.toString(num);
}
Boolean[] existCard = new Boolean[52];
for (int p = 0; p < n; p += 1) {
for (int q = 0; q < 52; q += 1) {
if (myCard[p].equals(allCard[q])) {
existCard[q] = true;
} else {
continue;
}
}
}
for (int s = 0; s < 52; s += 1) {
if (existCard[s] == null) {
System.out.println(allCard[s]);
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
20,
41,
13,
20,
0,
13,
4,
18,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
2,
17,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
2,
17,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
2,
17,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
2,
17,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
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
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
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
],
[
45,
48
],
[
48,
49
],
[
49,
50
],
[
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
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
69,
71
],
[
65,
72
],
[
64,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
11,
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
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
100,
101
],
[
100,
102
],
[
96,
103
],
[
95,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
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
],
[
129,
130
],
[
128,
131
],
[
131,
132
],
[
131,
133
],
[
127,
134
],
[
126,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
141,
142
],
[
141,
143
],
[
11,
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
],
[
160,
161
],
[
159,
162
],
[
162,
163
],
[
162,
164
],
[
158,
165
],
[
157,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
11,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
9,
180
],
[
180,
181
]
] | [
"import java.io.*;\nimport java.util.ArrayList;\nclass Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tint i,j,m;\n\t\tArrayList<String> str = new ArrayList<>();\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tm = Integer.parseInt(in.readLine());\n for(i=0;i<m;i++){\n str.add(in.readLine());\n }\n for (i = 1; i < 14; i++) {\n if (str.contains(\"S \" + i) == false) {\n System.out.println(\"S \" + i);\n }\n }\n for (i = 1; i < 14; i++) {\n if (str.contains(\"H \" + i) == false) {\n System.out.println(\"H \" + i);\n }\n }\n for (i = 1; i < 14; i++) {\n if (str.contains(\"C \" + i) == false) {\n System.out.println(\"C \" + i);\n }\n }\n for (i = 1; i < 14; i++) {\n if (str.contains(\"D \" + i) == false) {\n System.out.println(\"D \" + i);\n }\n }\n\t\tSystem.out.flush();\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tint i,j,m;\n\t\tArrayList<String> str = new ArrayList<>();\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tm = Integer.parseInt(in.readLine());\n for(i=0;i<m;i++){\n str.add(in.readLine());\n }\n for (i = 1; i < 14; i++) {\n if (str.contains(\"S \" + i) == false) {\n System.out.println(\"S \" + i);\n }\n }\n for (i = 1; i < 14; i++) {\n if (str.contains(\"H \" + i) == false) {\n System.out.println(\"H \" + i);\n }\n }\n for (i = 1; i < 14; i++) {\n if (str.contains(\"C \" + i) == false) {\n System.out.println(\"C \" + i);\n }\n }\n for (i = 1; i < 14; i++) {\n if (str.contains(\"D \" + i) == false) {\n System.out.println(\"D \" + i);\n }\n }\n\t\tSystem.out.flush();\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tint i,j,m;\n\t\tArrayList<String> str = new ArrayList<>();\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tm = Integer.parseInt(in.readLine());\n for(i=0;i<m;i++){\n str.add(in.readLine());\n }\n for (i = 1; i < 14; i++) {\n if (str.contains(\"S \" + i) == false) {\n System.out.println(\"S \" + i);\n }\n }\n for (i = 1; i < 14; i++) {\n if (str.contains(\"H \" + i) == false) {\n System.out.println(\"H \" + i);\n }\n }\n for (i = 1; i < 14; i++) {\n if (str.contains(\"C \" + i) == false) {\n System.out.println(\"C \" + i);\n }\n }\n for (i = 1; i < 14; i++) {\n if (str.contains(\"D \" + i) == false) {\n System.out.println(\"D \" + i);\n }\n }\n\t\tSystem.out.flush();\n\t}",
"main",
"{\n\t\tint i,j,m;\n\t\tArrayList<String> str = new ArrayList<>();\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tm = Integer.parseInt(in.readLine());\n for(i=0;i<m;i++){\n str.add(in.readLine());\n }\n for (i = 1; i < 14; i++) {\n if (str.contains(\"S \" + i) == false) {\n System.out.println(\"S \" + i);\n }\n }\n for (i = 1; i < 14; i++) {\n if (str.contains(\"H \" + i) == false) {\n System.out.println(\"H \" + i);\n }\n }\n for (i = 1; i < 14; i++) {\n if (str.contains(\"C \" + i) == false) {\n System.out.println(\"C \" + i);\n }\n }\n for (i = 1; i < 14; i++) {\n if (str.contains(\"D \" + i) == false) {\n System.out.println(\"D \" + i);\n }\n }\n\t\tSystem.out.flush();\n\t}",
"int i",
"i",
"j",
"j",
"m;",
"m",
"ArrayList<String> str = new ArrayList<>();",
"str",
"new ArrayList<>()",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"m = Integer.parseInt(in.readLine())",
"m",
"Integer.parseInt(in.readLine())",
"Integer.parseInt",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"for(i=0;i<m;i++){\n str.add(in.readLine());\n }",
"i=0;",
"i=0",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n str.add(in.readLine());\n }",
"{\n str.add(in.readLine());\n }",
"str.add(in.readLine())",
"str.add",
"str",
"in.readLine()",
"in.readLine",
"in",
"for (i = 1; i < 14; i++) {\n if (str.contains(\"S \" + i) == false) {\n System.out.println(\"S \" + i);\n }\n }",
"i = 1;",
"i = 1",
"i",
"1",
"i < 14",
"i",
"14",
"i++",
"i++",
"i",
"{\n if (str.contains(\"S \" + i) == false) {\n System.out.println(\"S \" + i);\n }\n }",
"{\n if (str.contains(\"S \" + i) == false) {\n System.out.println(\"S \" + i);\n }\n }",
"if (str.contains(\"S \" + i) == false) {\n System.out.println(\"S \" + i);\n }",
"str.contains(\"S \" + i) == false",
"str.contains(\"S \" + i)",
"str.contains",
"str",
"\"S \" + i",
"\"S \"",
"i",
"false",
"{\n System.out.println(\"S \" + i);\n }",
"System.out.println(\"S \" + i)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \" + i",
"\"S \"",
"i",
"for (i = 1; i < 14; i++) {\n if (str.contains(\"H \" + i) == false) {\n System.out.println(\"H \" + i);\n }\n }",
"i = 1;",
"i = 1",
"i",
"1",
"i < 14",
"i",
"14",
"i++",
"i++",
"i",
"{\n if (str.contains(\"H \" + i) == false) {\n System.out.println(\"H \" + i);\n }\n }",
"{\n if (str.contains(\"H \" + i) == false) {\n System.out.println(\"H \" + i);\n }\n }",
"if (str.contains(\"H \" + i) == false) {\n System.out.println(\"H \" + i);\n }",
"str.contains(\"H \" + i) == false",
"str.contains(\"H \" + i)",
"str.contains",
"str",
"\"H \" + i",
"\"H \"",
"i",
"false",
"{\n System.out.println(\"H \" + i);\n }",
"System.out.println(\"H \" + i)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \" + i",
"\"H \"",
"i",
"for (i = 1; i < 14; i++) {\n if (str.contains(\"C \" + i) == false) {\n System.out.println(\"C \" + i);\n }\n }",
"i = 1;",
"i = 1",
"i",
"1",
"i < 14",
"i",
"14",
"i++",
"i++",
"i",
"{\n if (str.contains(\"C \" + i) == false) {\n System.out.println(\"C \" + i);\n }\n }",
"{\n if (str.contains(\"C \" + i) == false) {\n System.out.println(\"C \" + i);\n }\n }",
"if (str.contains(\"C \" + i) == false) {\n System.out.println(\"C \" + i);\n }",
"str.contains(\"C \" + i) == false",
"str.contains(\"C \" + i)",
"str.contains",
"str",
"\"C \" + i",
"\"C \"",
"i",
"false",
"{\n System.out.println(\"C \" + i);\n }",
"System.out.println(\"C \" + i)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \" + i",
"\"C \"",
"i",
"for (i = 1; i < 14; i++) {\n if (str.contains(\"D \" + i) == false) {\n System.out.println(\"D \" + i);\n }\n }",
"i = 1;",
"i = 1",
"i",
"1",
"i < 14",
"i",
"14",
"i++",
"i++",
"i",
"{\n if (str.contains(\"D \" + i) == false) {\n System.out.println(\"D \" + i);\n }\n }",
"{\n if (str.contains(\"D \" + i) == false) {\n System.out.println(\"D \" + i);\n }\n }",
"if (str.contains(\"D \" + i) == false) {\n System.out.println(\"D \" + i);\n }",
"str.contains(\"D \" + i) == false",
"str.contains(\"D \" + i)",
"str.contains",
"str",
"\"D \" + i",
"\"D \"",
"i",
"false",
"{\n System.out.println(\"D \" + i);\n }",
"System.out.println(\"D \" + i)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \" + i",
"\"D \"",
"i",
"System.out.flush()",
"System.out.flush",
"System.out",
"System",
"System.out",
"String[] args",
"args"
] | import java.io.*;
import java.util.ArrayList;
class Main{
public static void main(String[] args) throws IOException {
int i,j,m;
ArrayList<String> str = new ArrayList<>();
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
m = Integer.parseInt(in.readLine());
for(i=0;i<m;i++){
str.add(in.readLine());
}
for (i = 1; i < 14; i++) {
if (str.contains("S " + i) == false) {
System.out.println("S " + i);
}
}
for (i = 1; i < 14; i++) {
if (str.contains("H " + i) == false) {
System.out.println("H " + i);
}
}
for (i = 1; i < 14; i++) {
if (str.contains("C " + i) == false) {
System.out.println("C " + i);
}
}
for (i = 1; i < 14; i++) {
if (str.contains("D " + i) == false) {
System.out.println("D " + i);
}
}
System.out.flush();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
35,
13,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
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,
14,
40,
18,
18,
13,
13,
13,
30,
35,
13,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
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
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
34,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
34,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
49,
59
],
[
45,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
62,
72
],
[
45,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
75,
85
],
[
45,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
88,
98
],
[
8,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
106,
108
],
[
99,
109
],
[
109,
110
],
[
110,
111
],
[
99,
112
],
[
113,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
114,
126
],
[
126,
127
],
[
127,
128
],
[
114,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
131,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
144,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
151,
153
],
[
143,
154
],
[
139,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
158,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
165,
167
],
[
157,
168
],
[
139,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
172,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
179,
181
],
[
171,
182
],
[
139,
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
],
[
185,
196
],
[
6,
197
],
[
197,
198
],
[
0,
199
],
[
199,
200
],
[
199,
201
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) throws Exception {\n Scanner input = new Scanner(System.in);\n int x = input.nextInt();\n boolean[][] cards = new boolean[4][13];\n for(int i = 0; i < x; i++){\n String s = input.next();\n int num = input.nextInt();\n switch(s){\n case \"S\":\n cards[0][num-1] = true;\n break;\n case \"H\":\n cards[1][num-1] = true;\n break;\n case \"C\":\n cards[2][num-1] = true;\n break;\n case \"D\":\n cards[3][num-1] = true;\n break;\n }\n }\n for(int i = 0; i < cards.length; i++){\n for(int n = 0; n < cards[i].length; n++){\n if(!cards[i][n]){\n switch(i){\n case 0:\n System.out.println(\"S \"+(n+1));\n break;\n case 1:\n System.out.println(\"H \"+(n+1));\n break;\n case 2:\n System.out.println(\"C \"+(n+1));\n break;\n case 3:\n System.out.println(\"D \"+(n+1));\n break;\n }\n }\n }\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n Scanner input = new Scanner(System.in);\n int x = input.nextInt();\n boolean[][] cards = new boolean[4][13];\n for(int i = 0; i < x; i++){\n String s = input.next();\n int num = input.nextInt();\n switch(s){\n case \"S\":\n cards[0][num-1] = true;\n break;\n case \"H\":\n cards[1][num-1] = true;\n break;\n case \"C\":\n cards[2][num-1] = true;\n break;\n case \"D\":\n cards[3][num-1] = true;\n break;\n }\n }\n for(int i = 0; i < cards.length; i++){\n for(int n = 0; n < cards[i].length; n++){\n if(!cards[i][n]){\n switch(i){\n case 0:\n System.out.println(\"S \"+(n+1));\n break;\n case 1:\n System.out.println(\"H \"+(n+1));\n break;\n case 2:\n System.out.println(\"C \"+(n+1));\n break;\n case 3:\n System.out.println(\"D \"+(n+1));\n break;\n }\n }\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner input = new Scanner(System.in);\n int x = input.nextInt();\n boolean[][] cards = new boolean[4][13];\n for(int i = 0; i < x; i++){\n String s = input.next();\n int num = input.nextInt();\n switch(s){\n case \"S\":\n cards[0][num-1] = true;\n break;\n case \"H\":\n cards[1][num-1] = true;\n break;\n case \"C\":\n cards[2][num-1] = true;\n break;\n case \"D\":\n cards[3][num-1] = true;\n break;\n }\n }\n for(int i = 0; i < cards.length; i++){\n for(int n = 0; n < cards[i].length; n++){\n if(!cards[i][n]){\n switch(i){\n case 0:\n System.out.println(\"S \"+(n+1));\n break;\n case 1:\n System.out.println(\"H \"+(n+1));\n break;\n case 2:\n System.out.println(\"C \"+(n+1));\n break;\n case 3:\n System.out.println(\"D \"+(n+1));\n break;\n }\n }\n }\n }\n }",
"main",
"{\n Scanner input = new Scanner(System.in);\n int x = input.nextInt();\n boolean[][] cards = new boolean[4][13];\n for(int i = 0; i < x; i++){\n String s = input.next();\n int num = input.nextInt();\n switch(s){\n case \"S\":\n cards[0][num-1] = true;\n break;\n case \"H\":\n cards[1][num-1] = true;\n break;\n case \"C\":\n cards[2][num-1] = true;\n break;\n case \"D\":\n cards[3][num-1] = true;\n break;\n }\n }\n for(int i = 0; i < cards.length; i++){\n for(int n = 0; n < cards[i].length; n++){\n if(!cards[i][n]){\n switch(i){\n case 0:\n System.out.println(\"S \"+(n+1));\n break;\n case 1:\n System.out.println(\"H \"+(n+1));\n break;\n case 2:\n System.out.println(\"C \"+(n+1));\n break;\n case 3:\n System.out.println(\"D \"+(n+1));\n break;\n }\n }\n }\n }\n }",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"int x = input.nextInt();",
"x",
"input.nextInt()",
"input.nextInt",
"input",
"boolean[][] cards = new boolean[4][13];",
"cards",
"new boolean[4][13]",
"4",
"13",
"for(int i = 0; i < x; i++){\n String s = input.next();\n int num = input.nextInt();\n switch(s){\n case \"S\":\n cards[0][num-1] = true;\n break;\n case \"H\":\n cards[1][num-1] = true;\n break;\n case \"C\":\n cards[2][num-1] = true;\n break;\n case \"D\":\n cards[3][num-1] = true;\n break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < x",
"i",
"x",
"i++",
"i++",
"i",
"{\n String s = input.next();\n int num = input.nextInt();\n switch(s){\n case \"S\":\n cards[0][num-1] = true;\n break;\n case \"H\":\n cards[1][num-1] = true;\n break;\n case \"C\":\n cards[2][num-1] = true;\n break;\n case \"D\":\n cards[3][num-1] = true;\n break;\n }\n }",
"{\n String s = input.next();\n int num = input.nextInt();\n switch(s){\n case \"S\":\n cards[0][num-1] = true;\n break;\n case \"H\":\n cards[1][num-1] = true;\n break;\n case \"C\":\n cards[2][num-1] = true;\n break;\n case \"D\":\n cards[3][num-1] = true;\n break;\n }\n }",
"String s = input.next();",
"s",
"input.next()",
"input.next",
"input",
"int num = input.nextInt();",
"num",
"input.nextInt()",
"input.nextInt",
"input",
"switch(s){\n case \"S\":\n cards[0][num-1] = true;\n break;\n case \"H\":\n cards[1][num-1] = true;\n break;\n case \"C\":\n cards[2][num-1] = true;\n break;\n case \"D\":\n cards[3][num-1] = true;\n break;\n }",
"s",
"case \"S\":",
"\"S\"",
"case \"S\":",
"cards[0][num-1] = true",
"cards[0][num-1]",
"cards[0]",
"cards",
"0",
"num-1",
"num",
"1",
"true",
"break;",
"case \"H\":",
"\"H\"",
"case \"H\":",
"cards[1][num-1] = true",
"cards[1][num-1]",
"cards[1]",
"cards",
"1",
"num-1",
"num",
"1",
"true",
"break;",
"case \"C\":",
"\"C\"",
"case \"C\":",
"cards[2][num-1] = true",
"cards[2][num-1]",
"cards[2]",
"cards",
"2",
"num-1",
"num",
"1",
"true",
"break;",
"case \"D\":",
"\"D\"",
"case \"D\":",
"cards[3][num-1] = true",
"cards[3][num-1]",
"cards[3]",
"cards",
"3",
"num-1",
"num",
"1",
"true",
"break;",
"for(int i = 0; i < cards.length; i++){\n for(int n = 0; n < cards[i].length; n++){\n if(!cards[i][n]){\n switch(i){\n case 0:\n System.out.println(\"S \"+(n+1));\n break;\n case 1:\n System.out.println(\"H \"+(n+1));\n break;\n case 2:\n System.out.println(\"C \"+(n+1));\n break;\n case 3:\n System.out.println(\"D \"+(n+1));\n break;\n }\n }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < cards.length",
"i",
"cards.length",
"cards",
"cards.length",
"i++",
"i++",
"i",
"{\n for(int n = 0; n < cards[i].length; n++){\n if(!cards[i][n]){\n switch(i){\n case 0:\n System.out.println(\"S \"+(n+1));\n break;\n case 1:\n System.out.println(\"H \"+(n+1));\n break;\n case 2:\n System.out.println(\"C \"+(n+1));\n break;\n case 3:\n System.out.println(\"D \"+(n+1));\n break;\n }\n }\n }\n }",
"{\n for(int n = 0; n < cards[i].length; n++){\n if(!cards[i][n]){\n switch(i){\n case 0:\n System.out.println(\"S \"+(n+1));\n break;\n case 1:\n System.out.println(\"H \"+(n+1));\n break;\n case 2:\n System.out.println(\"C \"+(n+1));\n break;\n case 3:\n System.out.println(\"D \"+(n+1));\n break;\n }\n }\n }\n }",
"for(int n = 0; n < cards[i].length; n++){\n if(!cards[i][n]){\n switch(i){\n case 0:\n System.out.println(\"S \"+(n+1));\n break;\n case 1:\n System.out.println(\"H \"+(n+1));\n break;\n case 2:\n System.out.println(\"C \"+(n+1));\n break;\n case 3:\n System.out.println(\"D \"+(n+1));\n break;\n }\n }\n }",
"int n = 0;",
"int n = 0;",
"n",
"0",
"n < cards[i].length",
"n",
"cards[i].length",
"cards[i]",
"cards",
"i",
"cards[i].length",
"n++",
"n++",
"n",
"{\n if(!cards[i][n]){\n switch(i){\n case 0:\n System.out.println(\"S \"+(n+1));\n break;\n case 1:\n System.out.println(\"H \"+(n+1));\n break;\n case 2:\n System.out.println(\"C \"+(n+1));\n break;\n case 3:\n System.out.println(\"D \"+(n+1));\n break;\n }\n }\n }",
"{\n if(!cards[i][n]){\n switch(i){\n case 0:\n System.out.println(\"S \"+(n+1));\n break;\n case 1:\n System.out.println(\"H \"+(n+1));\n break;\n case 2:\n System.out.println(\"C \"+(n+1));\n break;\n case 3:\n System.out.println(\"D \"+(n+1));\n break;\n }\n }\n }",
"if(!cards[i][n]){\n switch(i){\n case 0:\n System.out.println(\"S \"+(n+1));\n break;\n case 1:\n System.out.println(\"H \"+(n+1));\n break;\n case 2:\n System.out.println(\"C \"+(n+1));\n break;\n case 3:\n System.out.println(\"D \"+(n+1));\n break;\n }\n }",
"!cards[i][n]",
"cards[i][n]",
"cards[i]",
"cards",
"i",
"n",
"{\n switch(i){\n case 0:\n System.out.println(\"S \"+(n+1));\n break;\n case 1:\n System.out.println(\"H \"+(n+1));\n break;\n case 2:\n System.out.println(\"C \"+(n+1));\n break;\n case 3:\n System.out.println(\"D \"+(n+1));\n break;\n }\n }",
"switch(i){\n case 0:\n System.out.println(\"S \"+(n+1));\n break;\n case 1:\n System.out.println(\"H \"+(n+1));\n break;\n case 2:\n System.out.println(\"C \"+(n+1));\n break;\n case 3:\n System.out.println(\"D \"+(n+1));\n break;\n }",
"i",
"case 0:",
"0",
"case 0:",
"System.out.println(\"S \"+(n+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \"+(n+1)",
"\"S \"",
"(n+1)",
"n",
"1",
"break;",
"case 1:",
"1",
"case 1:",
"System.out.println(\"H \"+(n+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \"+(n+1)",
"\"H \"",
"(n+1)",
"n",
"1",
"break;",
"case 2:",
"2",
"case 2:",
"System.out.println(\"C \"+(n+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \"+(n+1)",
"\"C \"",
"(n+1)",
"n",
"1",
"break;",
"case 3:",
"3",
"case 3:",
"System.out.println(\"D \"+(n+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \"+(n+1)",
"\"D \"",
"(n+1)",
"n",
"1",
"break;",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n Scanner input = new Scanner(System.in);\n int x = input.nextInt();\n boolean[][] cards = new boolean[4][13];\n for(int i = 0; i < x; i++){\n String s = input.next();\n int num = input.nextInt();\n switch(s){\n case \"S\":\n cards[0][num-1] = true;\n break;\n case \"H\":\n cards[1][num-1] = true;\n break;\n case \"C\":\n cards[2][num-1] = true;\n break;\n case \"D\":\n cards[3][num-1] = true;\n break;\n }\n }\n for(int i = 0; i < cards.length; i++){\n for(int n = 0; n < cards[i].length; n++){\n if(!cards[i][n]){\n switch(i){\n case 0:\n System.out.println(\"S \"+(n+1));\n break;\n case 1:\n System.out.println(\"H \"+(n+1));\n break;\n case 2:\n System.out.println(\"C \"+(n+1));\n break;\n case 3:\n System.out.println(\"D \"+(n+1));\n break;\n }\n }\n }\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n Scanner input = new Scanner(System.in);\n int x = input.nextInt();\n boolean[][] cards = new boolean[4][13];\n for(int i = 0; i < x; i++){\n String s = input.next();\n int num = input.nextInt();\n switch(s){\n case \"S\":\n cards[0][num-1] = true;\n break;\n case \"H\":\n cards[1][num-1] = true;\n break;\n case \"C\":\n cards[2][num-1] = true;\n break;\n case \"D\":\n cards[3][num-1] = true;\n break;\n }\n }\n for(int i = 0; i < cards.length; i++){\n for(int n = 0; n < cards[i].length; n++){\n if(!cards[i][n]){\n switch(i){\n case 0:\n System.out.println(\"S \"+(n+1));\n break;\n case 1:\n System.out.println(\"H \"+(n+1));\n break;\n case 2:\n System.out.println(\"C \"+(n+1));\n break;\n case 3:\n System.out.println(\"D \"+(n+1));\n break;\n }\n }\n }\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner input = new Scanner(System.in);
int x = input.nextInt();
boolean[][] cards = new boolean[4][13];
for(int i = 0; i < x; i++){
String s = input.next();
int num = input.nextInt();
switch(s){
case "S":
cards[0][num-1] = true;
break;
case "H":
cards[1][num-1] = true;
break;
case "C":
cards[2][num-1] = true;
break;
case "D":
cards[3][num-1] = true;
break;
}
}
for(int i = 0; i < cards.length; i++){
for(int n = 0; n < cards[i].length; n++){
if(!cards[i][n]){
switch(i){
case 0:
System.out.println("S "+(n+1));
break;
case 1:
System.out.println("H "+(n+1));
break;
case 2:
System.out.println("C "+(n+1));
break;
case 3:
System.out.println("D "+(n+1));
break;
}
}
}
}
}
} |
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
17,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
14,
4,
18,
17,
13,
30,
0,
13,
17,
14,
4,
18,
17,
13,
30,
0,
13,
17,
14,
4,
18,
17,
13,
30,
0,
13,
17,
14,
4,
18,
17,
13,
30,
0,
13,
17,
0,
13,
4,
18,
13,
0,
18,
18,
13,
13,
2,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
225,
2
],
[
225,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
11,
16
],
[
16,
17
],
[
16,
18
],
[
11,
19
],
[
19,
20
],
[
20,
21
],
[
11,
22
],
[
23,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
29,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
24,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
37,
43
],
[
5,
44
],
[
44,
45
],
[
44,
46
],
[
5,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
5,
52
],
[
52,
53
],
[
5,
54
],
[
54,
55
],
[
54,
56
],
[
5,
57
],
[
57,
58
],
[
5,
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
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
77,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
71,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
86,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
71,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
95,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
71,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
104,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
71,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
71,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
123,
125
],
[
118,
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
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
154,
160
],
[
153,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
174,
176
],
[
161,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
182,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
189,
191
],
[
161,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
192,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
197,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
204,
206
],
[
161,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
207,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
212,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
219,
221
],
[
3,
222
],
[
222,
223
],
[
0,
224
],
[
224,
225
],
[
224,
226
]
] | [
"public class Main {\n public static void main(String[] srgs) {\n\n // ???????????????????????°??????????????????????????¨?????????.\n // ?????????????´? (?????????) ??????????????????.\n int[][] trump = new int[4][13];\n for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 13; j ++) { trump[i][j] = 0; }\n }\n\n // ??????????????????????????????.\n // ???????????????????????´??° (?????£?????????????????????????????°) ???????????????.\n java.util.Scanner sc = new java.util.Scanner(System.in);\n int n = sc.nextInt();\n\n // ?????????????????????????????? (??????????????????) ???????????????.\n // ???????????????????????´??° (?????????????????°) ???????????????.\n // ?????¨??°????????????????????????????´? (?????????) ????????¢??????.\n String gara;\n int yoso = 4;\n int kazu;\n for (int i = 0; i < n; i ++) {\n gara = sc.next();\n if (\"S\".equals(gara)) { yoso = 0; }\n if (\"H\".equals(gara)) { yoso = 1; }\n if (\"C\".equals(gara)) { yoso = 2; }\n if (\"D\".equals(gara)) { yoso = 3; }\n kazu = sc.nextInt();\n trump[yoso][kazu - 1] = 1;\n }\n\n for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 13; j ++) {\n if (trump[i][j] == 0) {\n if (i == 0) { System.out.println(\"S \" + (j + 1)); }\n if (i == 1) { System.out.println(\"H \" + (j + 1)); }\n if (i == 2) { System.out.println(\"C \" + (j + 1)); }\n if (i == 3) { System.out.println(\"D \" + (j + 1)); }\n }\n }\n }\n }\n}",
"public class Main {\n public static void main(String[] srgs) {\n\n // ???????????????????????°??????????????????????????¨?????????.\n // ?????????????´? (?????????) ??????????????????.\n int[][] trump = new int[4][13];\n for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 13; j ++) { trump[i][j] = 0; }\n }\n\n // ??????????????????????????????.\n // ???????????????????????´??° (?????£?????????????????????????????°) ???????????????.\n java.util.Scanner sc = new java.util.Scanner(System.in);\n int n = sc.nextInt();\n\n // ?????????????????????????????? (??????????????????) ???????????????.\n // ???????????????????????´??° (?????????????????°) ???????????????.\n // ?????¨??°????????????????????????????´? (?????????) ????????¢??????.\n String gara;\n int yoso = 4;\n int kazu;\n for (int i = 0; i < n; i ++) {\n gara = sc.next();\n if (\"S\".equals(gara)) { yoso = 0; }\n if (\"H\".equals(gara)) { yoso = 1; }\n if (\"C\".equals(gara)) { yoso = 2; }\n if (\"D\".equals(gara)) { yoso = 3; }\n kazu = sc.nextInt();\n trump[yoso][kazu - 1] = 1;\n }\n\n for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 13; j ++) {\n if (trump[i][j] == 0) {\n if (i == 0) { System.out.println(\"S \" + (j + 1)); }\n if (i == 1) { System.out.println(\"H \" + (j + 1)); }\n if (i == 2) { System.out.println(\"C \" + (j + 1)); }\n if (i == 3) { System.out.println(\"D \" + (j + 1)); }\n }\n }\n }\n }\n}",
"Main",
"public static void main(String[] srgs) {\n\n // ???????????????????????°??????????????????????????¨?????????.\n // ?????????????´? (?????????) ??????????????????.\n int[][] trump = new int[4][13];\n for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 13; j ++) { trump[i][j] = 0; }\n }\n\n // ??????????????????????????????.\n // ???????????????????????´??° (?????£?????????????????????????????°) ???????????????.\n java.util.Scanner sc = new java.util.Scanner(System.in);\n int n = sc.nextInt();\n\n // ?????????????????????????????? (??????????????????) ???????????????.\n // ???????????????????????´??° (?????????????????°) ???????????????.\n // ?????¨??°????????????????????????????´? (?????????) ????????¢??????.\n String gara;\n int yoso = 4;\n int kazu;\n for (int i = 0; i < n; i ++) {\n gara = sc.next();\n if (\"S\".equals(gara)) { yoso = 0; }\n if (\"H\".equals(gara)) { yoso = 1; }\n if (\"C\".equals(gara)) { yoso = 2; }\n if (\"D\".equals(gara)) { yoso = 3; }\n kazu = sc.nextInt();\n trump[yoso][kazu - 1] = 1;\n }\n\n for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 13; j ++) {\n if (trump[i][j] == 0) {\n if (i == 0) { System.out.println(\"S \" + (j + 1)); }\n if (i == 1) { System.out.println(\"H \" + (j + 1)); }\n if (i == 2) { System.out.println(\"C \" + (j + 1)); }\n if (i == 3) { System.out.println(\"D \" + (j + 1)); }\n }\n }\n }\n }",
"main",
"{\n\n // ???????????????????????°??????????????????????????¨?????????.\n // ?????????????´? (?????????) ??????????????????.\n int[][] trump = new int[4][13];\n for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 13; j ++) { trump[i][j] = 0; }\n }\n\n // ??????????????????????????????.\n // ???????????????????????´??° (?????£?????????????????????????????°) ???????????????.\n java.util.Scanner sc = new java.util.Scanner(System.in);\n int n = sc.nextInt();\n\n // ?????????????????????????????? (??????????????????) ???????????????.\n // ???????????????????????´??° (?????????????????°) ???????????????.\n // ?????¨??°????????????????????????????´? (?????????) ????????¢??????.\n String gara;\n int yoso = 4;\n int kazu;\n for (int i = 0; i < n; i ++) {\n gara = sc.next();\n if (\"S\".equals(gara)) { yoso = 0; }\n if (\"H\".equals(gara)) { yoso = 1; }\n if (\"C\".equals(gara)) { yoso = 2; }\n if (\"D\".equals(gara)) { yoso = 3; }\n kazu = sc.nextInt();\n trump[yoso][kazu - 1] = 1;\n }\n\n for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 13; j ++) {\n if (trump[i][j] == 0) {\n if (i == 0) { System.out.println(\"S \" + (j + 1)); }\n if (i == 1) { System.out.println(\"H \" + (j + 1)); }\n if (i == 2) { System.out.println(\"C \" + (j + 1)); }\n if (i == 3) { System.out.println(\"D \" + (j + 1)); }\n }\n }\n }\n }",
"int[][] trump = new int[4][13];",
"trump",
"new int[4][13]",
"4",
"13",
"for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 13; j ++) { trump[i][j] = 0; }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i ++",
"i ++",
"i",
"{\n for (int j = 0; j < 13; j ++) { trump[i][j] = 0; }\n }",
"{\n for (int j = 0; j < 13; j ++) { trump[i][j] = 0; }\n }",
"for (int j = 0; j < 13; j ++) { trump[i][j] = 0; }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 13",
"j",
"13",
"j ++",
"j ++",
"j",
"{ trump[i][j] = 0; }",
"{ trump[i][j] = 0; }",
"trump[i][j] = 0",
"trump[i][j]",
"trump[i]",
"trump",
"i",
"j",
"0",
"java.util.Scanner sc = new java.util.Scanner(System.in);",
"sc",
"new java.util.Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String gara;",
"gara",
"int yoso = 4;",
"yoso",
"4",
"int kazu;",
"kazu",
"for (int i = 0; i < n; i ++) {\n gara = sc.next();\n if (\"S\".equals(gara)) { yoso = 0; }\n if (\"H\".equals(gara)) { yoso = 1; }\n if (\"C\".equals(gara)) { yoso = 2; }\n if (\"D\".equals(gara)) { yoso = 3; }\n kazu = sc.nextInt();\n trump[yoso][kazu - 1] = 1;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i ++",
"i ++",
"i",
"{\n gara = sc.next();\n if (\"S\".equals(gara)) { yoso = 0; }\n if (\"H\".equals(gara)) { yoso = 1; }\n if (\"C\".equals(gara)) { yoso = 2; }\n if (\"D\".equals(gara)) { yoso = 3; }\n kazu = sc.nextInt();\n trump[yoso][kazu - 1] = 1;\n }",
"{\n gara = sc.next();\n if (\"S\".equals(gara)) { yoso = 0; }\n if (\"H\".equals(gara)) { yoso = 1; }\n if (\"C\".equals(gara)) { yoso = 2; }\n if (\"D\".equals(gara)) { yoso = 3; }\n kazu = sc.nextInt();\n trump[yoso][kazu - 1] = 1;\n }",
"gara = sc.next()",
"gara",
"sc.next()",
"sc.next",
"sc",
"if (\"S\".equals(gara)) { yoso = 0; }",
"\"S\".equals(gara)",
"\"S\".equals",
"\"S\"",
"gara",
"{ yoso = 0; }",
"yoso = 0",
"yoso",
"0",
"if (\"H\".equals(gara)) { yoso = 1; }",
"\"H\".equals(gara)",
"\"H\".equals",
"\"H\"",
"gara",
"{ yoso = 1; }",
"yoso = 1",
"yoso",
"1",
"if (\"C\".equals(gara)) { yoso = 2; }",
"\"C\".equals(gara)",
"\"C\".equals",
"\"C\"",
"gara",
"{ yoso = 2; }",
"yoso = 2",
"yoso",
"2",
"if (\"D\".equals(gara)) { yoso = 3; }",
"\"D\".equals(gara)",
"\"D\".equals",
"\"D\"",
"gara",
"{ yoso = 3; }",
"yoso = 3",
"yoso",
"3",
"kazu = sc.nextInt()",
"kazu",
"sc.nextInt()",
"sc.nextInt",
"sc",
"trump[yoso][kazu - 1] = 1",
"trump[yoso][kazu - 1]",
"trump[yoso]",
"trump",
"yoso",
"kazu - 1",
"kazu",
"1",
"1",
"for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 13; j ++) {\n if (trump[i][j] == 0) {\n if (i == 0) { System.out.println(\"S \" + (j + 1)); }\n if (i == 1) { System.out.println(\"H \" + (j + 1)); }\n if (i == 2) { System.out.println(\"C \" + (j + 1)); }\n if (i == 3) { System.out.println(\"D \" + (j + 1)); }\n }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i ++",
"i ++",
"i",
"{\n for (int j = 0; j < 13; j ++) {\n if (trump[i][j] == 0) {\n if (i == 0) { System.out.println(\"S \" + (j + 1)); }\n if (i == 1) { System.out.println(\"H \" + (j + 1)); }\n if (i == 2) { System.out.println(\"C \" + (j + 1)); }\n if (i == 3) { System.out.println(\"D \" + (j + 1)); }\n }\n }\n }",
"{\n for (int j = 0; j < 13; j ++) {\n if (trump[i][j] == 0) {\n if (i == 0) { System.out.println(\"S \" + (j + 1)); }\n if (i == 1) { System.out.println(\"H \" + (j + 1)); }\n if (i == 2) { System.out.println(\"C \" + (j + 1)); }\n if (i == 3) { System.out.println(\"D \" + (j + 1)); }\n }\n }\n }",
"for (int j = 0; j < 13; j ++) {\n if (trump[i][j] == 0) {\n if (i == 0) { System.out.println(\"S \" + (j + 1)); }\n if (i == 1) { System.out.println(\"H \" + (j + 1)); }\n if (i == 2) { System.out.println(\"C \" + (j + 1)); }\n if (i == 3) { System.out.println(\"D \" + (j + 1)); }\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 13",
"j",
"13",
"j ++",
"j ++",
"j",
"{\n if (trump[i][j] == 0) {\n if (i == 0) { System.out.println(\"S \" + (j + 1)); }\n if (i == 1) { System.out.println(\"H \" + (j + 1)); }\n if (i == 2) { System.out.println(\"C \" + (j + 1)); }\n if (i == 3) { System.out.println(\"D \" + (j + 1)); }\n }\n }",
"{\n if (trump[i][j] == 0) {\n if (i == 0) { System.out.println(\"S \" + (j + 1)); }\n if (i == 1) { System.out.println(\"H \" + (j + 1)); }\n if (i == 2) { System.out.println(\"C \" + (j + 1)); }\n if (i == 3) { System.out.println(\"D \" + (j + 1)); }\n }\n }",
"if (trump[i][j] == 0) {\n if (i == 0) { System.out.println(\"S \" + (j + 1)); }\n if (i == 1) { System.out.println(\"H \" + (j + 1)); }\n if (i == 2) { System.out.println(\"C \" + (j + 1)); }\n if (i == 3) { System.out.println(\"D \" + (j + 1)); }\n }",
"trump[i][j] == 0",
"trump[i][j]",
"trump[i]",
"trump",
"i",
"j",
"0",
"{\n if (i == 0) { System.out.println(\"S \" + (j + 1)); }\n if (i == 1) { System.out.println(\"H \" + (j + 1)); }\n if (i == 2) { System.out.println(\"C \" + (j + 1)); }\n if (i == 3) { System.out.println(\"D \" + (j + 1)); }\n }",
"if (i == 0) { System.out.println(\"S \" + (j + 1)); }",
"i == 0",
"i",
"0",
"{ System.out.println(\"S \" + (j + 1)); }",
"System.out.println(\"S \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \" + (j + 1)",
"\"S \"",
"(j + 1)",
"j",
"1",
"if (i == 1) { System.out.println(\"H \" + (j + 1)); }",
"i == 1",
"i",
"1",
"{ System.out.println(\"H \" + (j + 1)); }",
"System.out.println(\"H \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \" + (j + 1)",
"\"H \"",
"(j + 1)",
"j",
"1",
"if (i == 2) { System.out.println(\"C \" + (j + 1)); }",
"i == 2",
"i",
"2",
"{ System.out.println(\"C \" + (j + 1)); }",
"System.out.println(\"C \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \" + (j + 1)",
"\"C \"",
"(j + 1)",
"j",
"1",
"if (i == 3) { System.out.println(\"D \" + (j + 1)); }",
"i == 3",
"i",
"3",
"{ System.out.println(\"D \" + (j + 1)); }",
"System.out.println(\"D \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \" + (j + 1)",
"\"D \"",
"(j + 1)",
"j",
"1",
"String[] srgs",
"srgs",
"public class Main {\n public static void main(String[] srgs) {\n\n // ???????????????????????°??????????????????????????¨?????????.\n // ?????????????´? (?????????) ??????????????????.\n int[][] trump = new int[4][13];\n for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 13; j ++) { trump[i][j] = 0; }\n }\n\n // ??????????????????????????????.\n // ???????????????????????´??° (?????£?????????????????????????????°) ???????????????.\n java.util.Scanner sc = new java.util.Scanner(System.in);\n int n = sc.nextInt();\n\n // ?????????????????????????????? (??????????????????) ???????????????.\n // ???????????????????????´??° (?????????????????°) ???????????????.\n // ?????¨??°????????????????????????????´? (?????????) ????????¢??????.\n String gara;\n int yoso = 4;\n int kazu;\n for (int i = 0; i < n; i ++) {\n gara = sc.next();\n if (\"S\".equals(gara)) { yoso = 0; }\n if (\"H\".equals(gara)) { yoso = 1; }\n if (\"C\".equals(gara)) { yoso = 2; }\n if (\"D\".equals(gara)) { yoso = 3; }\n kazu = sc.nextInt();\n trump[yoso][kazu - 1] = 1;\n }\n\n for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 13; j ++) {\n if (trump[i][j] == 0) {\n if (i == 0) { System.out.println(\"S \" + (j + 1)); }\n if (i == 1) { System.out.println(\"H \" + (j + 1)); }\n if (i == 2) { System.out.println(\"C \" + (j + 1)); }\n if (i == 3) { System.out.println(\"D \" + (j + 1)); }\n }\n }\n }\n }\n}",
"public class Main {\n public static void main(String[] srgs) {\n\n // ???????????????????????°??????????????????????????¨?????????.\n // ?????????????´? (?????????) ??????????????????.\n int[][] trump = new int[4][13];\n for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 13; j ++) { trump[i][j] = 0; }\n }\n\n // ??????????????????????????????.\n // ???????????????????????´??° (?????£?????????????????????????????°) ???????????????.\n java.util.Scanner sc = new java.util.Scanner(System.in);\n int n = sc.nextInt();\n\n // ?????????????????????????????? (??????????????????) ???????????????.\n // ???????????????????????´??° (?????????????????°) ???????????????.\n // ?????¨??°????????????????????????????´? (?????????) ????????¢??????.\n String gara;\n int yoso = 4;\n int kazu;\n for (int i = 0; i < n; i ++) {\n gara = sc.next();\n if (\"S\".equals(gara)) { yoso = 0; }\n if (\"H\".equals(gara)) { yoso = 1; }\n if (\"C\".equals(gara)) { yoso = 2; }\n if (\"D\".equals(gara)) { yoso = 3; }\n kazu = sc.nextInt();\n trump[yoso][kazu - 1] = 1;\n }\n\n for (int i = 0; i < 4; i ++) {\n for (int j = 0; j < 13; j ++) {\n if (trump[i][j] == 0) {\n if (i == 0) { System.out.println(\"S \" + (j + 1)); }\n if (i == 1) { System.out.println(\"H \" + (j + 1)); }\n if (i == 2) { System.out.println(\"C \" + (j + 1)); }\n if (i == 3) { System.out.println(\"D \" + (j + 1)); }\n }\n }\n }\n }\n}",
"Main"
] | public class Main {
public static void main(String[] srgs) {
// ???????????????????????°??????????????????????????¨?????????.
// ?????????????´? (?????????) ??????????????????.
int[][] trump = new int[4][13];
for (int i = 0; i < 4; i ++) {
for (int j = 0; j < 13; j ++) { trump[i][j] = 0; }
}
// ??????????????????????????????.
// ???????????????????????´??° (?????£?????????????????????????????°) ???????????????.
java.util.Scanner sc = new java.util.Scanner(System.in);
int n = sc.nextInt();
// ?????????????????????????????? (??????????????????) ???????????????.
// ???????????????????????´??° (?????????????????°) ???????????????.
// ?????¨??°????????????????????????????´? (?????????) ????????¢??????.
String gara;
int yoso = 4;
int kazu;
for (int i = 0; i < n; i ++) {
gara = sc.next();
if ("S".equals(gara)) { yoso = 0; }
if ("H".equals(gara)) { yoso = 1; }
if ("C".equals(gara)) { yoso = 2; }
if ("D".equals(gara)) { yoso = 3; }
kazu = sc.nextInt();
trump[yoso][kazu - 1] = 1;
}
for (int i = 0; i < 4; i ++) {
for (int j = 0; j < 13; j ++) {
if (trump[i][j] == 0) {
if (i == 0) { System.out.println("S " + (j + 1)); }
if (i == 1) { System.out.println("H " + (j + 1)); }
if (i == 2) { System.out.println("C " + (j + 1)); }
if (i == 3) { System.out.println("D " + (j + 1)); }
}
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
4,
18,
13,
13,
17,
41,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
0,
18,
13,
2,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
13,
2,
2,
17,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
13,
2,
2,
17,
13,
17,
17,
30,
0,
18,
13,
2,
2,
17,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
18,
13,
13,
30,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
187,
8
],
[
187,
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
],
[
11,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
24,
28
],
[
11,
29
],
[
29,
30
],
[
11,
31
],
[
31,
32
],
[
11,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
45,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
56,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
62,
68
],
[
56,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
69,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
75,
83
],
[
69,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
84,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
90,
98
],
[
84,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
100,
108
],
[
11,
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
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
140,
142
],
[
128,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
155,
157
],
[
143,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
170,
172
],
[
158,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
174,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
181,
183
],
[
9,
184
],
[
184,
185
],
[
0,
186
],
[
186,
187
],
[
186,
188
]
] | [
"\nimport java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\t\n\t\tint n = stdIn.nextInt();\n\t\t\n\t\tboolean[] hantei = new boolean[52];\n\t\tArrays.fill(hantei,false);\n\t\t\n\t\tString pattern;\n\t\tint number;\n\t\t\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tpattern = stdIn.next();\n\t\t\tnumber = stdIn.nextInt();\n\t\t\t\n\t\t\tif(pattern.equals(\"S\"))\n\t\t\t{\n\t\t\t\thantei[number-1] = true;\n\t\t\t}\n\t\t\telse if(pattern.equals(\"H\"))\n\t\t\t{\n\t\t\t\thantei[13+number-1] = true;\n\t\t\t}\n\t\t\telse if(pattern.equals(\"C\"))\n\t\t\t{\n\t\t\t\thantei[26+number-1] = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\thantei[39+number-1] = true;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tfor(int i=0;i<52;i++)\n\t\t{\n\t\t\tif(!hantei[i])\n\t\t\t{\n\t\t\t\tif(i<13)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t\t}\n\t\t\t\telse if(i<26)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"H \"+(i-12));\n\t\t\t\t}\n\t\t\t\telse if(i<39)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"C \"+(i-25));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"D \"+(i-38));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\t\n\t\tint n = stdIn.nextInt();\n\t\t\n\t\tboolean[] hantei = new boolean[52];\n\t\tArrays.fill(hantei,false);\n\t\t\n\t\tString pattern;\n\t\tint number;\n\t\t\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tpattern = stdIn.next();\n\t\t\tnumber = stdIn.nextInt();\n\t\t\t\n\t\t\tif(pattern.equals(\"S\"))\n\t\t\t{\n\t\t\t\thantei[number-1] = true;\n\t\t\t}\n\t\t\telse if(pattern.equals(\"H\"))\n\t\t\t{\n\t\t\t\thantei[13+number-1] = true;\n\t\t\t}\n\t\t\telse if(pattern.equals(\"C\"))\n\t\t\t{\n\t\t\t\thantei[26+number-1] = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\thantei[39+number-1] = true;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tfor(int i=0;i<52;i++)\n\t\t{\n\t\t\tif(!hantei[i])\n\t\t\t{\n\t\t\t\tif(i<13)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t\t}\n\t\t\t\telse if(i<26)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"H \"+(i-12));\n\t\t\t\t}\n\t\t\t\telse if(i<39)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"C \"+(i-25));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"D \"+(i-38));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\t\n\t\tint n = stdIn.nextInt();\n\t\t\n\t\tboolean[] hantei = new boolean[52];\n\t\tArrays.fill(hantei,false);\n\t\t\n\t\tString pattern;\n\t\tint number;\n\t\t\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tpattern = stdIn.next();\n\t\t\tnumber = stdIn.nextInt();\n\t\t\t\n\t\t\tif(pattern.equals(\"S\"))\n\t\t\t{\n\t\t\t\thantei[number-1] = true;\n\t\t\t}\n\t\t\telse if(pattern.equals(\"H\"))\n\t\t\t{\n\t\t\t\thantei[13+number-1] = true;\n\t\t\t}\n\t\t\telse if(pattern.equals(\"C\"))\n\t\t\t{\n\t\t\t\thantei[26+number-1] = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\thantei[39+number-1] = true;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tfor(int i=0;i<52;i++)\n\t\t{\n\t\t\tif(!hantei[i])\n\t\t\t{\n\t\t\t\tif(i<13)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t\t}\n\t\t\t\telse if(i<26)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"H \"+(i-12));\n\t\t\t\t}\n\t\t\t\telse if(i<39)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"C \"+(i-25));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"D \"+(i-38));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\t\n\t\tint n = stdIn.nextInt();\n\t\t\n\t\tboolean[] hantei = new boolean[52];\n\t\tArrays.fill(hantei,false);\n\t\t\n\t\tString pattern;\n\t\tint number;\n\t\t\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tpattern = stdIn.next();\n\t\t\tnumber = stdIn.nextInt();\n\t\t\t\n\t\t\tif(pattern.equals(\"S\"))\n\t\t\t{\n\t\t\t\thantei[number-1] = true;\n\t\t\t}\n\t\t\telse if(pattern.equals(\"H\"))\n\t\t\t{\n\t\t\t\thantei[13+number-1] = true;\n\t\t\t}\n\t\t\telse if(pattern.equals(\"C\"))\n\t\t\t{\n\t\t\t\thantei[26+number-1] = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\thantei[39+number-1] = true;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tfor(int i=0;i<52;i++)\n\t\t{\n\t\t\tif(!hantei[i])\n\t\t\t{\n\t\t\t\tif(i<13)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t\t}\n\t\t\t\telse if(i<26)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"H \"+(i-12));\n\t\t\t\t}\n\t\t\t\telse if(i<39)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"C \"+(i-25));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"D \"+(i-38));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int n = stdIn.nextInt();",
"n",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"boolean[] hantei = new boolean[52];",
"hantei",
"new boolean[52]",
"52",
"Arrays.fill(hantei,false)",
"Arrays.fill",
"Arrays",
"hantei",
"false",
"String pattern;",
"pattern",
"int number;",
"number",
"for(int i=0;i<n;i++)\n\t\t{\n\t\t\tpattern = stdIn.next();\n\t\t\tnumber = stdIn.nextInt();\n\t\t\t\n\t\t\tif(pattern.equals(\"S\"))\n\t\t\t{\n\t\t\t\thantei[number-1] = true;\n\t\t\t}\n\t\t\telse if(pattern.equals(\"H\"))\n\t\t\t{\n\t\t\t\thantei[13+number-1] = true;\n\t\t\t}\n\t\t\telse if(pattern.equals(\"C\"))\n\t\t\t{\n\t\t\t\thantei[26+number-1] = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\thantei[39+number-1] = true;\n\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\tpattern = stdIn.next();\n\t\t\tnumber = stdIn.nextInt();\n\t\t\t\n\t\t\tif(pattern.equals(\"S\"))\n\t\t\t{\n\t\t\t\thantei[number-1] = true;\n\t\t\t}\n\t\t\telse if(pattern.equals(\"H\"))\n\t\t\t{\n\t\t\t\thantei[13+number-1] = true;\n\t\t\t}\n\t\t\telse if(pattern.equals(\"C\"))\n\t\t\t{\n\t\t\t\thantei[26+number-1] = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\thantei[39+number-1] = true;\n\t\t\t}\n\t\t\t\n\t\t}",
"{\n\t\t\tpattern = stdIn.next();\n\t\t\tnumber = stdIn.nextInt();\n\t\t\t\n\t\t\tif(pattern.equals(\"S\"))\n\t\t\t{\n\t\t\t\thantei[number-1] = true;\n\t\t\t}\n\t\t\telse if(pattern.equals(\"H\"))\n\t\t\t{\n\t\t\t\thantei[13+number-1] = true;\n\t\t\t}\n\t\t\telse if(pattern.equals(\"C\"))\n\t\t\t{\n\t\t\t\thantei[26+number-1] = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\thantei[39+number-1] = true;\n\t\t\t}\n\t\t\t\n\t\t}",
"pattern = stdIn.next()",
"pattern",
"stdIn.next()",
"stdIn.next",
"stdIn",
"number = stdIn.nextInt()",
"number",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"if(pattern.equals(\"S\"))\n\t\t\t{\n\t\t\t\thantei[number-1] = true;\n\t\t\t}\n\t\t\telse if(pattern.equals(\"H\"))\n\t\t\t{\n\t\t\t\thantei[13+number-1] = true;\n\t\t\t}\n\t\t\telse if(pattern.equals(\"C\"))\n\t\t\t{\n\t\t\t\thantei[26+number-1] = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\thantei[39+number-1] = true;\n\t\t\t}",
"pattern.equals(\"S\")",
"pattern.equals",
"pattern",
"\"S\"",
"{\n\t\t\t\thantei[number-1] = true;\n\t\t\t}",
"hantei[number-1] = true",
"hantei[number-1]",
"hantei",
"number-1",
"number",
"1",
"true",
"if(pattern.equals(\"H\"))\n\t\t\t{\n\t\t\t\thantei[13+number-1] = true;\n\t\t\t}\n\t\t\telse if(pattern.equals(\"C\"))\n\t\t\t{\n\t\t\t\thantei[26+number-1] = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\thantei[39+number-1] = true;\n\t\t\t}",
"pattern.equals(\"H\")",
"pattern.equals",
"pattern",
"\"H\"",
"{\n\t\t\t\thantei[13+number-1] = true;\n\t\t\t}",
"hantei[13+number-1] = true",
"hantei[13+number-1]",
"hantei",
"13+number-1",
"13+number",
"13",
"number",
"1",
"true",
"if(pattern.equals(\"C\"))\n\t\t\t{\n\t\t\t\thantei[26+number-1] = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\thantei[39+number-1] = true;\n\t\t\t}",
"pattern.equals(\"C\")",
"pattern.equals",
"pattern",
"\"C\"",
"{\n\t\t\t\thantei[26+number-1] = true;\n\t\t\t}",
"hantei[26+number-1] = true",
"hantei[26+number-1]",
"hantei",
"26+number-1",
"26+number",
"26",
"number",
"1",
"true",
"{\n\t\t\t\thantei[39+number-1] = true;\n\t\t\t}",
"hantei[39+number-1] = true",
"hantei[39+number-1]",
"hantei",
"39+number-1",
"39+number",
"39",
"number",
"1",
"true",
"for(int i=0;i<52;i++)\n\t\t{\n\t\t\tif(!hantei[i])\n\t\t\t{\n\t\t\t\tif(i<13)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t\t}\n\t\t\t\telse if(i<26)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"H \"+(i-12));\n\t\t\t\t}\n\t\t\t\telse if(i<39)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"C \"+(i-25));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"D \"+(i-38));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<52",
"i",
"52",
"i++",
"i++",
"i",
"{\n\t\t\tif(!hantei[i])\n\t\t\t{\n\t\t\t\tif(i<13)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t\t}\n\t\t\t\telse if(i<26)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"H \"+(i-12));\n\t\t\t\t}\n\t\t\t\telse if(i<39)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"C \"+(i-25));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"D \"+(i-38));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(!hantei[i])\n\t\t\t{\n\t\t\t\tif(i<13)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t\t}\n\t\t\t\telse if(i<26)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"H \"+(i-12));\n\t\t\t\t}\n\t\t\t\telse if(i<39)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"C \"+(i-25));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"D \"+(i-38));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"if(!hantei[i])\n\t\t\t{\n\t\t\t\tif(i<13)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t\t}\n\t\t\t\telse if(i<26)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"H \"+(i-12));\n\t\t\t\t}\n\t\t\t\telse if(i<39)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"C \"+(i-25));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"D \"+(i-38));\n\t\t\t\t}\n\t\t\t}",
"!hantei[i]",
"hantei[i]",
"hantei",
"i",
"{\n\t\t\t\tif(i<13)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t\t}\n\t\t\t\telse if(i<26)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"H \"+(i-12));\n\t\t\t\t}\n\t\t\t\telse if(i<39)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"C \"+(i-25));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"D \"+(i-38));\n\t\t\t\t}\n\t\t\t}",
"if(i<13)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t\t}\n\t\t\t\telse if(i<26)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"H \"+(i-12));\n\t\t\t\t}\n\t\t\t\telse if(i<39)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"C \"+(i-25));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"D \"+(i-38));\n\t\t\t\t}",
"i<13",
"i",
"13",
"{\n\t\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t\t}",
"System.out.println(\"S \"+(i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \"+(i+1)",
"\"S \"",
"(i+1)",
"i",
"1",
"if(i<26)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"H \"+(i-12));\n\t\t\t\t}\n\t\t\t\telse if(i<39)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"C \"+(i-25));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"D \"+(i-38));\n\t\t\t\t}",
"i<26",
"i",
"26",
"{\n\t\t\t\t\tSystem.out.println(\"H \"+(i-12));\n\t\t\t\t}",
"System.out.println(\"H \"+(i-12))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \"+(i-12)",
"\"H \"",
"(i-12)",
"i",
"12",
"if(i<39)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"C \"+(i-25));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"D \"+(i-38));\n\t\t\t\t}",
"i<39",
"i",
"39",
"{\n\t\t\t\t\tSystem.out.println(\"C \"+(i-25));\n\t\t\t\t}",
"System.out.println(\"C \"+(i-25))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \"+(i-25)",
"\"C \"",
"(i-25)",
"i",
"25",
"{\n\t\t\t\t\tSystem.out.println(\"D \"+(i-38));\n\t\t\t\t}",
"System.out.println(\"D \"+(i-38))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \"+(i-38)",
"\"D \"",
"(i-38)",
"i",
"38",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\t\n\t\tint n = stdIn.nextInt();\n\t\t\n\t\tboolean[] hantei = new boolean[52];\n\t\tArrays.fill(hantei,false);\n\t\t\n\t\tString pattern;\n\t\tint number;\n\t\t\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tpattern = stdIn.next();\n\t\t\tnumber = stdIn.nextInt();\n\t\t\t\n\t\t\tif(pattern.equals(\"S\"))\n\t\t\t{\n\t\t\t\thantei[number-1] = true;\n\t\t\t}\n\t\t\telse if(pattern.equals(\"H\"))\n\t\t\t{\n\t\t\t\thantei[13+number-1] = true;\n\t\t\t}\n\t\t\telse if(pattern.equals(\"C\"))\n\t\t\t{\n\t\t\t\thantei[26+number-1] = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\thantei[39+number-1] = true;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tfor(int i=0;i<52;i++)\n\t\t{\n\t\t\tif(!hantei[i])\n\t\t\t{\n\t\t\t\tif(i<13)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t\t}\n\t\t\t\telse if(i<26)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"H \"+(i-12));\n\t\t\t\t}\n\t\t\t\telse if(i<39)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"C \"+(i-25));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"D \"+(i-38));\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{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\t\n\t\tint n = stdIn.nextInt();\n\t\t\n\t\tboolean[] hantei = new boolean[52];\n\t\tArrays.fill(hantei,false);\n\t\t\n\t\tString pattern;\n\t\tint number;\n\t\t\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tpattern = stdIn.next();\n\t\t\tnumber = stdIn.nextInt();\n\t\t\t\n\t\t\tif(pattern.equals(\"S\"))\n\t\t\t{\n\t\t\t\thantei[number-1] = true;\n\t\t\t}\n\t\t\telse if(pattern.equals(\"H\"))\n\t\t\t{\n\t\t\t\thantei[13+number-1] = true;\n\t\t\t}\n\t\t\telse if(pattern.equals(\"C\"))\n\t\t\t{\n\t\t\t\thantei[26+number-1] = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\thantei[39+number-1] = true;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tfor(int i=0;i<52;i++)\n\t\t{\n\t\t\tif(!hantei[i])\n\t\t\t{\n\t\t\t\tif(i<13)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t\t}\n\t\t\t\telse if(i<26)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"H \"+(i-12));\n\t\t\t\t}\n\t\t\t\telse if(i<39)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"C \"+(i-25));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"D \"+(i-38));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args)
{
Scanner stdIn = new Scanner(System.in);
int n = stdIn.nextInt();
boolean[] hantei = new boolean[52];
Arrays.fill(hantei,false);
String pattern;
int number;
for(int i=0;i<n;i++)
{
pattern = stdIn.next();
number = stdIn.nextInt();
if(pattern.equals("S"))
{
hantei[number-1] = true;
}
else if(pattern.equals("H"))
{
hantei[13+number-1] = true;
}
else if(pattern.equals("C"))
{
hantei[26+number-1] = true;
}
else
{
hantei[39+number-1] = true;
}
}
for(int i=0;i<52;i++)
{
if(!hantei[i])
{
if(i<13)
{
System.out.println("S "+(i+1));
}
else if(i<26)
{
System.out.println("H "+(i-12));
}
else if(i<39)
{
System.out.println("C "+(i-25));
}
else
{
System.out.println("D "+(i-38));
}
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
17,
17,
41,
13,
39,
17,
17,
17,
17,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
17,
35,
18,
13,
17,
34,
17,
1,
0,
13,
17,
3,
34,
17,
1,
0,
13,
17,
3,
34,
17,
1,
0,
13,
17,
3,
34,
17,
1,
0,
13,
17,
3,
41,
13,
4,
18,
13,
18,
13,
17,
0,
18,
18,
13,
13,
2,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
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
],
[
163,
11
],
[
163,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
22,
24
],
[
22,
25
],
[
22,
26
],
[
14,
27
],
[
27,
28
],
[
27,
29
],
[
14,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
35,
36
],
[
36,
37
],
[
14,
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
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
53,
58
],
[
50,
59
],
[
59,
60
],
[
59,
61
],
[
50,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
62,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
62,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
62,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
50,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
99,
100
],
[
99,
101
],
[
50,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
107,
109
],
[
102,
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
],
[
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
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
138,
144
],
[
137,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
146,
151
],
[
152,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
152,
157
],
[
157,
158
],
[
157,
159
],
[
12,
160
],
[
160,
161
],
[
0,
162
],
[
162,
163
],
[
162,
164
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tboolean[][] card = new boolean[4][13];\n\t\tString markList[] = { \"S\", \"H\", \"C\", \"D\" };\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] cardTemp = br.readLine().split(\" \");\n\t\t\tint mark = 0;\n\t\t\tswitch (cardTemp[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tmark = 0;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tmark = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tmark = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tmark = 3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint number = Integer.parseInt(cardTemp[1]);\n\n\t\t\tcard[mark][number - 1] = true;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (card[i][j] == false) {\n\t\t\t\t\tSystem.out.println(markList[i] + \" \" + (j + 1));\n\t\t\t\t}\n\t\t\t}\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\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tboolean[][] card = new boolean[4][13];\n\t\tString markList[] = { \"S\", \"H\", \"C\", \"D\" };\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] cardTemp = br.readLine().split(\" \");\n\t\t\tint mark = 0;\n\t\t\tswitch (cardTemp[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tmark = 0;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tmark = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tmark = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tmark = 3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint number = Integer.parseInt(cardTemp[1]);\n\n\t\t\tcard[mark][number - 1] = true;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (card[i][j] == false) {\n\t\t\t\t\tSystem.out.println(markList[i] + \" \" + (j + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tboolean[][] card = new boolean[4][13];\n\t\tString markList[] = { \"S\", \"H\", \"C\", \"D\" };\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] cardTemp = br.readLine().split(\" \");\n\t\t\tint mark = 0;\n\t\t\tswitch (cardTemp[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tmark = 0;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tmark = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tmark = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tmark = 3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint number = Integer.parseInt(cardTemp[1]);\n\n\t\t\tcard[mark][number - 1] = true;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (card[i][j] == false) {\n\t\t\t\t\tSystem.out.println(markList[i] + \" \" + (j + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tboolean[][] card = new boolean[4][13];\n\t\tString markList[] = { \"S\", \"H\", \"C\", \"D\" };\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] cardTemp = br.readLine().split(\" \");\n\t\t\tint mark = 0;\n\t\t\tswitch (cardTemp[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tmark = 0;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tmark = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tmark = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tmark = 3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint number = Integer.parseInt(cardTemp[1]);\n\n\t\t\tcard[mark][number - 1] = true;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (card[i][j] == false) {\n\t\t\t\t\tSystem.out.println(markList[i] + \" \" + (j + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"boolean[][] card = new boolean[4][13];",
"card",
"new boolean[4][13]",
"4",
"13",
"String markList[] = { \"S\", \"H\", \"C\", \"D\" };",
"markList",
"{ \"S\", \"H\", \"C\", \"D\" }",
"\"S\"",
"\"H\"",
"\"C\"",
"\"D\"",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for (int i = 0; i < n; i++) {\n\t\t\tString[] cardTemp = br.readLine().split(\" \");\n\t\t\tint mark = 0;\n\t\t\tswitch (cardTemp[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tmark = 0;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tmark = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tmark = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tmark = 3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint number = Integer.parseInt(cardTemp[1]);\n\n\t\t\tcard[mark][number - 1] = true;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString[] cardTemp = br.readLine().split(\" \");\n\t\t\tint mark = 0;\n\t\t\tswitch (cardTemp[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tmark = 0;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tmark = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tmark = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tmark = 3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint number = Integer.parseInt(cardTemp[1]);\n\n\t\t\tcard[mark][number - 1] = true;\n\t\t}",
"{\n\t\t\tString[] cardTemp = br.readLine().split(\" \");\n\t\t\tint mark = 0;\n\t\t\tswitch (cardTemp[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tmark = 0;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tmark = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tmark = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tmark = 3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint number = Integer.parseInt(cardTemp[1]);\n\n\t\t\tcard[mark][number - 1] = true;\n\t\t}",
"String[] cardTemp = br.readLine().split(\" \");",
"cardTemp",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int mark = 0;",
"mark",
"0",
"switch (cardTemp[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tmark = 0;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tmark = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tmark = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tmark = 3;\n\t\t\t\tbreak;\n\t\t\t}",
"cardTemp[0]",
"cardTemp",
"0",
"case \"S\":",
"\"S\"",
"case \"S\":",
"mark = 0",
"mark",
"0",
"break;",
"case \"H\":",
"\"H\"",
"case \"H\":",
"mark = 1",
"mark",
"1",
"break;",
"case \"C\":",
"\"C\"",
"case \"C\":",
"mark = 2",
"mark",
"2",
"break;",
"case \"D\":",
"\"D\"",
"case \"D\":",
"mark = 3",
"mark",
"3",
"break;",
"int number = Integer.parseInt(cardTemp[1]);",
"number",
"Integer.parseInt(cardTemp[1])",
"Integer.parseInt",
"Integer",
"cardTemp[1]",
"cardTemp",
"1",
"card[mark][number - 1] = true",
"card[mark][number - 1]",
"card[mark]",
"card",
"mark",
"number - 1",
"number",
"1",
"true",
"for (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (card[i][j] == false) {\n\t\t\t\t\tSystem.out.println(markList[i] + \" \" + (j + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (card[i][j] == false) {\n\t\t\t\t\tSystem.out.println(markList[i] + \" \" + (j + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (card[i][j] == false) {\n\t\t\t\t\tSystem.out.println(markList[i] + \" \" + (j + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int j = 0; j < 13; j++) {\n\t\t\t\tif (card[i][j] == false) {\n\t\t\t\t\tSystem.out.println(markList[i] + \" \" + (j + 1));\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\tif (card[i][j] == false) {\n\t\t\t\t\tSystem.out.println(markList[i] + \" \" + (j + 1));\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif (card[i][j] == false) {\n\t\t\t\t\tSystem.out.println(markList[i] + \" \" + (j + 1));\n\t\t\t\t}\n\t\t\t}",
"if (card[i][j] == false) {\n\t\t\t\t\tSystem.out.println(markList[i] + \" \" + (j + 1));\n\t\t\t\t}",
"card[i][j] == false",
"card[i][j]",
"card[i]",
"card",
"i",
"j",
"false",
"{\n\t\t\t\t\tSystem.out.println(markList[i] + \" \" + (j + 1));\n\t\t\t\t}",
"System.out.println(markList[i] + \" \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"markList[i] + \" \" + (j + 1)",
"markList[i] + \" \" + (j + 1)",
"markList[i]",
"markList",
"i",
"\" \"",
"(j + 1)",
"j",
"1",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tboolean[][] card = new boolean[4][13];\n\t\tString markList[] = { \"S\", \"H\", \"C\", \"D\" };\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] cardTemp = br.readLine().split(\" \");\n\t\t\tint mark = 0;\n\t\t\tswitch (cardTemp[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tmark = 0;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tmark = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tmark = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tmark = 3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint number = Integer.parseInt(cardTemp[1]);\n\n\t\t\tcard[mark][number - 1] = true;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (card[i][j] == false) {\n\t\t\t\t\tSystem.out.println(markList[i] + \" \" + (j + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tboolean[][] card = new boolean[4][13];\n\t\tString markList[] = { \"S\", \"H\", \"C\", \"D\" };\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] cardTemp = br.readLine().split(\" \");\n\t\t\tint mark = 0;\n\t\t\tswitch (cardTemp[0]) {\n\t\t\tcase \"S\":\n\t\t\t\tmark = 0;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tmark = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tmark = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tmark = 3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint number = Integer.parseInt(cardTemp[1]);\n\n\t\t\tcard[mark][number - 1] = true;\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (card[i][j] == false) {\n\t\t\t\t\tSystem.out.println(markList[i] + \" \" + (j + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t}\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 NumberFormatException, IOException {
boolean[][] card = new boolean[4][13];
String markList[] = { "S", "H", "C", "D" };
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
for (int i = 0; i < n; i++) {
String[] cardTemp = br.readLine().split(" ");
int mark = 0;
switch (cardTemp[0]) {
case "S":
mark = 0;
break;
case "H":
mark = 1;
break;
case "C":
mark = 2;
break;
case "D":
mark = 3;
break;
}
int number = Integer.parseInt(cardTemp[1]);
card[mark][number - 1] = true;
}
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 13; j++) {
if (card[i][j] == false) {
System.out.println(markList[i] + " " + (j + 1));
}
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
0,
13,
20,
17,
17,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
14,
2,
18,
13,
13,
18,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
18,
13,
13,
18,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
18,
13,
13,
18,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
18,
13,
13,
18,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
4,
18,
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
],
[
8,
11
],
[
11,
12
],
[
11,
13
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
29,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
24,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
36,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
36,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
62,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
36,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
77,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
88,
90
],
[
83,
91
],
[
36,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
92,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
103,
104
],
[
103,
105
],
[
98,
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
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
134,
140
],
[
133,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
147,
148
],
[
147,
149
],
[
142,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
158,
160
],
[
142,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
166,
167
],
[
166,
168
],
[
161,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
170,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
177,
179
],
[
161,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
185,
186
],
[
185,
187
],
[
180,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
189,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
196,
198
],
[
180,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
200,
204
],
[
204,
205
],
[
204,
206
],
[
199,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
208,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
215,
217
],
[
8,
218
],
[
218,
219
],
[
219,
220
],
[
6,
221
],
[
221,
222
],
[
0,
223
],
[
223,
224
],
[
223,
225
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String args[]){\n\n\t\t//???????????£?¨??????????\n\t\tint Card [][];\n\t\tCard = new int[4][13];\n\n\t\t//????????°????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\n\n\t\t//N?????°?????????\n\t\tfor(int i = 0; i < N ; i++){\n\n\t\t\t//????????¨??°???????????£?????????\n\t\t\tString Mark = sc.next();\n\t\t\tint Suji = sc.nextInt();\n\n\t\t\t//?????????S?????£??????1\n\t\t\tif(Mark.equals (\"S\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[0][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????H?????£??????1\n\t\t\tif(Mark.equals (\"H\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[1][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????C?????£??????1\n\t\t\tif(Mark.equals (\"C\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[2][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????D?????£??????1\n\t\t\tif(Mark.equals (\"D\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[3][Suji-1] = 1;\n\t\t\t}\n\t\t}\n\n\t\t//?????£??????????????¨\n\t\tfor (int i = 0; i < 4; i++){\n\t\t\tfor (int j = 0; j < 13; j++){\n\t\t\t\t//1??????????????£????????????\n\t\t\t\tif(Card[i][j] == 0){\n\n\t\t\t\t\t//0?????£??????S\n\t\t\t\t\tif(Card[i] == Card[0]){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t//1?????£??????H\n\t\t\t\t\t}else if(Card[i] == Card[1]){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t//2?????£??????C\n\t\t\t\t\t}else if(Card[i] == Card[2]){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t//3?????£??????D\n\t\t\t\t\t}else if(Card[i] == Card[3]){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String args[]){\n\n\t\t//???????????£?¨??????????\n\t\tint Card [][];\n\t\tCard = new int[4][13];\n\n\t\t//????????°????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\n\n\t\t//N?????°?????????\n\t\tfor(int i = 0; i < N ; i++){\n\n\t\t\t//????????¨??°???????????£?????????\n\t\t\tString Mark = sc.next();\n\t\t\tint Suji = sc.nextInt();\n\n\t\t\t//?????????S?????£??????1\n\t\t\tif(Mark.equals (\"S\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[0][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????H?????£??????1\n\t\t\tif(Mark.equals (\"H\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[1][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????C?????£??????1\n\t\t\tif(Mark.equals (\"C\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[2][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????D?????£??????1\n\t\t\tif(Mark.equals (\"D\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[3][Suji-1] = 1;\n\t\t\t}\n\t\t}\n\n\t\t//?????£??????????????¨\n\t\tfor (int i = 0; i < 4; i++){\n\t\t\tfor (int j = 0; j < 13; j++){\n\t\t\t\t//1??????????????£????????????\n\t\t\t\tif(Card[i][j] == 0){\n\n\t\t\t\t\t//0?????£??????S\n\t\t\t\t\tif(Card[i] == Card[0]){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t//1?????£??????H\n\t\t\t\t\t}else if(Card[i] == Card[1]){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t//2?????£??????C\n\t\t\t\t\t}else if(Card[i] == Card[2]){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t//3?????£??????D\n\t\t\t\t\t}else if(Card[i] == Card[3]){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String args[]){\n\n\t\t//???????????£?¨??????????\n\t\tint Card [][];\n\t\tCard = new int[4][13];\n\n\t\t//????????°????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\n\n\t\t//N?????°?????????\n\t\tfor(int i = 0; i < N ; i++){\n\n\t\t\t//????????¨??°???????????£?????????\n\t\t\tString Mark = sc.next();\n\t\t\tint Suji = sc.nextInt();\n\n\t\t\t//?????????S?????£??????1\n\t\t\tif(Mark.equals (\"S\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[0][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????H?????£??????1\n\t\t\tif(Mark.equals (\"H\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[1][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????C?????£??????1\n\t\t\tif(Mark.equals (\"C\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[2][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????D?????£??????1\n\t\t\tif(Mark.equals (\"D\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[3][Suji-1] = 1;\n\t\t\t}\n\t\t}\n\n\t\t//?????£??????????????¨\n\t\tfor (int i = 0; i < 4; i++){\n\t\t\tfor (int j = 0; j < 13; j++){\n\t\t\t\t//1??????????????£????????????\n\t\t\t\tif(Card[i][j] == 0){\n\n\t\t\t\t\t//0?????£??????S\n\t\t\t\t\tif(Card[i] == Card[0]){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t//1?????£??????H\n\t\t\t\t\t}else if(Card[i] == Card[1]){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t//2?????£??????C\n\t\t\t\t\t}else if(Card[i] == Card[2]){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t//3?????£??????D\n\t\t\t\t\t}else if(Card[i] == Card[3]){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}",
"main",
"{\n\n\t\t//???????????£?¨??????????\n\t\tint Card [][];\n\t\tCard = new int[4][13];\n\n\t\t//????????°????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\n\n\t\t//N?????°?????????\n\t\tfor(int i = 0; i < N ; i++){\n\n\t\t\t//????????¨??°???????????£?????????\n\t\t\tString Mark = sc.next();\n\t\t\tint Suji = sc.nextInt();\n\n\t\t\t//?????????S?????£??????1\n\t\t\tif(Mark.equals (\"S\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[0][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????H?????£??????1\n\t\t\tif(Mark.equals (\"H\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[1][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????C?????£??????1\n\t\t\tif(Mark.equals (\"C\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[2][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????D?????£??????1\n\t\t\tif(Mark.equals (\"D\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[3][Suji-1] = 1;\n\t\t\t}\n\t\t}\n\n\t\t//?????£??????????????¨\n\t\tfor (int i = 0; i < 4; i++){\n\t\t\tfor (int j = 0; j < 13; j++){\n\t\t\t\t//1??????????????£????????????\n\t\t\t\tif(Card[i][j] == 0){\n\n\t\t\t\t\t//0?????£??????S\n\t\t\t\t\tif(Card[i] == Card[0]){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t//1?????£??????H\n\t\t\t\t\t}else if(Card[i] == Card[1]){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t//2?????£??????C\n\t\t\t\t\t}else if(Card[i] == Card[2]){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t//3?????£??????D\n\t\t\t\t\t}else if(Card[i] == Card[3]){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}",
"int Card [][];",
"Card",
"Card = new int[4][13]",
"Card",
"new int[4][13]",
"4",
"13",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < N ; i++){\n\n\t\t\t//????????¨??°???????????£?????????\n\t\t\tString Mark = sc.next();\n\t\t\tint Suji = sc.nextInt();\n\n\t\t\t//?????????S?????£??????1\n\t\t\tif(Mark.equals (\"S\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[0][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????H?????£??????1\n\t\t\tif(Mark.equals (\"H\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[1][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????C?????£??????1\n\t\t\tif(Mark.equals (\"C\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[2][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????D?????£??????1\n\t\t\tif(Mark.equals (\"D\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[3][Suji-1] = 1;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\n\t\t\t//????????¨??°???????????£?????????\n\t\t\tString Mark = sc.next();\n\t\t\tint Suji = sc.nextInt();\n\n\t\t\t//?????????S?????£??????1\n\t\t\tif(Mark.equals (\"S\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[0][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????H?????£??????1\n\t\t\tif(Mark.equals (\"H\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[1][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????C?????£??????1\n\t\t\tif(Mark.equals (\"C\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[2][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????D?????£??????1\n\t\t\tif(Mark.equals (\"D\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[3][Suji-1] = 1;\n\t\t\t}\n\t\t}",
"{\n\n\t\t\t//????????¨??°???????????£?????????\n\t\t\tString Mark = sc.next();\n\t\t\tint Suji = sc.nextInt();\n\n\t\t\t//?????????S?????£??????1\n\t\t\tif(Mark.equals (\"S\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[0][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????H?????£??????1\n\t\t\tif(Mark.equals (\"H\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[1][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????C?????£??????1\n\t\t\tif(Mark.equals (\"C\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[2][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????D?????£??????1\n\t\t\tif(Mark.equals (\"D\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[3][Suji-1] = 1;\n\t\t\t}\n\t\t}",
"String Mark = sc.next();",
"Mark",
"sc.next()",
"sc.next",
"sc",
"int Suji = sc.nextInt();",
"Suji",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(Mark.equals (\"S\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[0][Suji-1] = 1;\n\t\t\t}",
"Mark.equals (\"S\")",
"Mark.equals",
"Mark",
"\"S\"",
"{\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[0][Suji-1] = 1;\n\t\t\t}",
"Card[0][Suji-1] = 1",
"Card[0][Suji-1]",
"Card[0]",
"Card",
"0",
"Suji-1",
"Suji",
"1",
"1",
"if(Mark.equals (\"H\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[1][Suji-1] = 1;\n\t\t\t}",
"Mark.equals (\"H\")",
"Mark.equals",
"Mark",
"\"H\"",
"{\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[1][Suji-1] = 1;\n\t\t\t}",
"Card[1][Suji-1] = 1",
"Card[1][Suji-1]",
"Card[1]",
"Card",
"1",
"Suji-1",
"Suji",
"1",
"1",
"if(Mark.equals (\"C\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[2][Suji-1] = 1;\n\t\t\t}",
"Mark.equals (\"C\")",
"Mark.equals",
"Mark",
"\"C\"",
"{\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[2][Suji-1] = 1;\n\t\t\t}",
"Card[2][Suji-1] = 1",
"Card[2][Suji-1]",
"Card[2]",
"Card",
"2",
"Suji-1",
"Suji",
"1",
"1",
"if(Mark.equals (\"D\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[3][Suji-1] = 1;\n\t\t\t}",
"Mark.equals (\"D\")",
"Mark.equals",
"Mark",
"\"D\"",
"{\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[3][Suji-1] = 1;\n\t\t\t}",
"Card[3][Suji-1] = 1",
"Card[3][Suji-1]",
"Card[3]",
"Card",
"3",
"Suji-1",
"Suji",
"1",
"1",
"for (int i = 0; i < 4; i++){\n\t\t\tfor (int j = 0; j < 13; j++){\n\t\t\t\t//1??????????????£????????????\n\t\t\t\tif(Card[i][j] == 0){\n\n\t\t\t\t\t//0?????£??????S\n\t\t\t\t\tif(Card[i] == Card[0]){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t//1?????£??????H\n\t\t\t\t\t}else if(Card[i] == Card[1]){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t//2?????£??????C\n\t\t\t\t\t}else if(Card[i] == Card[2]){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t//3?????£??????D\n\t\t\t\t\t}else if(Card[i] == Card[3]){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\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 < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < 13; j++){\n\t\t\t\t//1??????????????£????????????\n\t\t\t\tif(Card[i][j] == 0){\n\n\t\t\t\t\t//0?????£??????S\n\t\t\t\t\tif(Card[i] == Card[0]){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t//1?????£??????H\n\t\t\t\t\t}else if(Card[i] == Card[1]){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t//2?????£??????C\n\t\t\t\t\t}else if(Card[i] == Card[2]){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t//3?????£??????D\n\t\t\t\t\t}else if(Card[i] == Card[3]){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < 13; j++){\n\t\t\t\t//1??????????????£????????????\n\t\t\t\tif(Card[i][j] == 0){\n\n\t\t\t\t\t//0?????£??????S\n\t\t\t\t\tif(Card[i] == Card[0]){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t//1?????£??????H\n\t\t\t\t\t}else if(Card[i] == Card[1]){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t//2?????£??????C\n\t\t\t\t\t}else if(Card[i] == Card[2]){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t//3?????£??????D\n\t\t\t\t\t}else if(Card[i] == Card[3]){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int j = 0; j < 13; j++){\n\t\t\t\t//1??????????????£????????????\n\t\t\t\tif(Card[i][j] == 0){\n\n\t\t\t\t\t//0?????£??????S\n\t\t\t\t\tif(Card[i] == Card[0]){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t//1?????£??????H\n\t\t\t\t\t}else if(Card[i] == Card[1]){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t//2?????£??????C\n\t\t\t\t\t}else if(Card[i] == Card[2]){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t//3?????£??????D\n\t\t\t\t\t}else if(Card[i] == Card[3]){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\t//1??????????????£????????????\n\t\t\t\tif(Card[i][j] == 0){\n\n\t\t\t\t\t//0?????£??????S\n\t\t\t\t\tif(Card[i] == Card[0]){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t//1?????£??????H\n\t\t\t\t\t}else if(Card[i] == Card[1]){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t//2?????£??????C\n\t\t\t\t\t}else if(Card[i] == Card[2]){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t//3?????£??????D\n\t\t\t\t\t}else if(Card[i] == Card[3]){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\t//1??????????????£????????????\n\t\t\t\tif(Card[i][j] == 0){\n\n\t\t\t\t\t//0?????£??????S\n\t\t\t\t\tif(Card[i] == Card[0]){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t//1?????£??????H\n\t\t\t\t\t}else if(Card[i] == Card[1]){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t//2?????£??????C\n\t\t\t\t\t}else if(Card[i] == Card[2]){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t//3?????£??????D\n\t\t\t\t\t}else if(Card[i] == Card[3]){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"if(Card[i][j] == 0){\n\n\t\t\t\t\t//0?????£??????S\n\t\t\t\t\tif(Card[i] == Card[0]){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t//1?????£??????H\n\t\t\t\t\t}else if(Card[i] == Card[1]){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t//2?????£??????C\n\t\t\t\t\t}else if(Card[i] == Card[2]){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t//3?????£??????D\n\t\t\t\t\t}else if(Card[i] == Card[3]){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}",
"Card[i][j] == 0",
"Card[i][j]",
"Card[i]",
"Card",
"i",
"j",
"0",
"{\n\n\t\t\t\t\t//0?????£??????S\n\t\t\t\t\tif(Card[i] == Card[0]){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t//1?????£??????H\n\t\t\t\t\t}else if(Card[i] == Card[1]){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t//2?????£??????C\n\t\t\t\t\t}else if(Card[i] == Card[2]){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t//3?????£??????D\n\t\t\t\t\t}else if(Card[i] == Card[3]){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}",
"if(Card[i] == Card[0]){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t//1?????£??????H\n\t\t\t\t\t}else if(Card[i] == Card[1]){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t//2?????£??????C\n\t\t\t\t\t}else if(Card[i] == Card[2]){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t//3?????£??????D\n\t\t\t\t\t}else if(Card[i] == Card[3]){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}",
"Card[i] == Card[0]",
"Card[i]",
"Card",
"i",
"Card[0]",
"Card",
"0",
"{\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t//1?????£??????H\n\t\t\t\t\t}",
"System.out.println(\"S \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \" + (j + 1)",
"\"S \"",
"(j + 1)",
"j",
"1",
"if(Card[i] == Card[1]){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t//2?????£??????C\n\t\t\t\t\t}else if(Card[i] == Card[2]){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t//3?????£??????D\n\t\t\t\t\t}else if(Card[i] == Card[3]){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}",
"Card[i] == Card[1]",
"Card[i]",
"Card",
"i",
"Card[1]",
"Card",
"1",
"{\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t//2?????£??????C\n\t\t\t\t\t}",
"System.out.println(\"H \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \" + (j + 1)",
"\"H \"",
"(j + 1)",
"j",
"1",
"if(Card[i] == Card[2]){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t//3?????£??????D\n\t\t\t\t\t}else if(Card[i] == Card[3]){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}",
"Card[i] == Card[2]",
"Card[i]",
"Card",
"i",
"Card[2]",
"Card",
"2",
"{\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t//3?????£??????D\n\t\t\t\t\t}",
"System.out.println(\"C \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \" + (j + 1)",
"\"C \"",
"(j + 1)",
"j",
"1",
"if(Card[i] == Card[3]){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}",
"Card[i] == Card[3]",
"Card[i]",
"Card",
"i",
"Card[3]",
"Card",
"3",
"{\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}",
"System.out.println(\"D \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \" + (j + 1)",
"\"D \"",
"(j + 1)",
"j",
"1",
"sc.close()",
"sc.close",
"sc",
"String args[]",
"args",
"public class Main{\n\tpublic static void main(String args[]){\n\n\t\t//???????????£?¨??????????\n\t\tint Card [][];\n\t\tCard = new int[4][13];\n\n\t\t//????????°????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\n\n\t\t//N?????°?????????\n\t\tfor(int i = 0; i < N ; i++){\n\n\t\t\t//????????¨??°???????????£?????????\n\t\t\tString Mark = sc.next();\n\t\t\tint Suji = sc.nextInt();\n\n\t\t\t//?????????S?????£??????1\n\t\t\tif(Mark.equals (\"S\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[0][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????H?????£??????1\n\t\t\tif(Mark.equals (\"H\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[1][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????C?????£??????1\n\t\t\tif(Mark.equals (\"C\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[2][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????D?????£??????1\n\t\t\tif(Mark.equals (\"D\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[3][Suji-1] = 1;\n\t\t\t}\n\t\t}\n\n\t\t//?????£??????????????¨\n\t\tfor (int i = 0; i < 4; i++){\n\t\t\tfor (int j = 0; j < 13; j++){\n\t\t\t\t//1??????????????£????????????\n\t\t\t\tif(Card[i][j] == 0){\n\n\t\t\t\t\t//0?????£??????S\n\t\t\t\t\tif(Card[i] == Card[0]){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t//1?????£??????H\n\t\t\t\t\t}else if(Card[i] == Card[1]){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t//2?????£??????C\n\t\t\t\t\t}else if(Card[i] == Card[2]){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t//3?????£??????D\n\t\t\t\t\t}else if(Card[i] == Card[3]){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n}",
"public class Main{\n\tpublic static void main(String args[]){\n\n\t\t//???????????£?¨??????????\n\t\tint Card [][];\n\t\tCard = new int[4][13];\n\n\t\t//????????°????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\n\n\t\t//N?????°?????????\n\t\tfor(int i = 0; i < N ; i++){\n\n\t\t\t//????????¨??°???????????£?????????\n\t\t\tString Mark = sc.next();\n\t\t\tint Suji = sc.nextInt();\n\n\t\t\t//?????????S?????£??????1\n\t\t\tif(Mark.equals (\"S\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[0][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????H?????£??????1\n\t\t\tif(Mark.equals (\"H\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[1][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????C?????£??????1\n\t\t\tif(Mark.equals (\"C\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[2][Suji-1] = 1;\n\t\t\t}\n\t\t\t//?????????D?????£??????1\n\t\t\tif(Mark.equals (\"D\")){\n\t\t\t\t//??£??\\??????\n\t\t\t\tCard[3][Suji-1] = 1;\n\t\t\t}\n\t\t}\n\n\t\t//?????£??????????????¨\n\t\tfor (int i = 0; i < 4; i++){\n\t\t\tfor (int j = 0; j < 13; j++){\n\t\t\t\t//1??????????????£????????????\n\t\t\t\tif(Card[i][j] == 0){\n\n\t\t\t\t\t//0?????£??????S\n\t\t\t\t\tif(Card[i] == Card[0]){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t//1?????£??????H\n\t\t\t\t\t}else if(Card[i] == Card[1]){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t//2?????£??????C\n\t\t\t\t\t}else if(Card[i] == Card[2]){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t//3?????£??????D\n\t\t\t\t\t}else if(Card[i] == Card[3]){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String args[]){
//???????????£?¨??????????
int Card [][];
Card = new int[4][13];
//????????°????????????????????????????????????
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
//N?????°?????????
for(int i = 0; i < N ; i++){
//????????¨??°???????????£?????????
String Mark = sc.next();
int Suji = sc.nextInt();
//?????????S?????£??????1
if(Mark.equals ("S")){
//??£??\??????
Card[0][Suji-1] = 1;
}
//?????????H?????£??????1
if(Mark.equals ("H")){
//??£??\??????
Card[1][Suji-1] = 1;
}
//?????????C?????£??????1
if(Mark.equals ("C")){
//??£??\??????
Card[2][Suji-1] = 1;
}
//?????????D?????£??????1
if(Mark.equals ("D")){
//??£??\??????
Card[3][Suji-1] = 1;
}
}
//?????£??????????????¨
for (int i = 0; i < 4; i++){
for (int j = 0; j < 13; j++){
//1??????????????£????????????
if(Card[i][j] == 0){
//0?????£??????S
if(Card[i] == Card[0]){
System.out.println("S " + (j + 1));
//1?????£??????H
}else if(Card[i] == Card[1]){
System.out.println("H " + (j + 1));
//2?????£??????C
}else if(Card[i] == Card[2]){
System.out.println("C " + (j + 1));
//3?????£??????D
}else if(Card[i] == Card[3]){
System.out.println("D " + (j + 1));
}
}
}
}
sc.close();
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
20,
23,
13,
12,
13,
30,
4,
18,
20,
6,
13,
41,
13,
39,
17,
17,
17,
17,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
4,
18,
13,
18,
13,
13,
30,
0,
18,
18,
13,
13,
2,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
2,
13,
17,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
144,
5
],
[
144,
6
],
[
6,
7
],
[
6,
8
],
[
144,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
9,
13
],
[
13,
14
],
[
144,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
144,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
25,
28
],
[
25,
29
],
[
21,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
32,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
43,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
55,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
83,
85
],
[
79,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
92,
94
],
[
87,
95
],
[
32,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
96,
104
],
[
104,
105
],
[
105,
106
],
[
96,
107
],
[
108,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
114,
115
],
[
114,
116
],
[
109,
117
],
[
117,
118
],
[
118,
119
],
[
109,
120
],
[
121,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
122,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
135,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
135,
140
],
[
140,
141
],
[
140,
142
],
[
0,
143
],
[
143,
144
],
[
143,
145
]
] | [
"import java.util.*;\n \npublic class Main {\n Scanner sc = new Scanner(System.in);\n \n public static void main(String[] args) {\n new Main(); \n }\n \n public Main() {\n new TEST().doIt();\n }\n class TEST{\n \tString c[] = {\"S\",\"H\",\"C\",\"D\"};\n void doIt(){\n \tint n = sc.nextInt();\n \tboolean t[][] = new boolean [4][13];\n \tfor(int i = 0;i < n;i++){\n \t\tString str = sc.next();\n \t\tint num = sc.nextInt();\n \t\tfor(int j = 0;j < 4;j++){\n \t\t\tif(str.equals(c[j])){\n \t\t\t\tt[j][num-1] = true;\n \t\t\t}\n \t\t}\n \t}\n \tfor(int i = 0;i < 4;i++){\n \t\tfor(int j = 0;j < 13;j++){\n \t\t\tif(!t[i][j])System.out.println(c[i]+\" \"+(j+1));\n \t\t}\n \t}\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n Scanner sc = new Scanner(System.in);\n \n public static void main(String[] args) {\n new Main(); \n }\n \n public Main() {\n new TEST().doIt();\n }\n class TEST{\n \tString c[] = {\"S\",\"H\",\"C\",\"D\"};\n void doIt(){\n \tint n = sc.nextInt();\n \tboolean t[][] = new boolean [4][13];\n \tfor(int i = 0;i < n;i++){\n \t\tString str = sc.next();\n \t\tint num = sc.nextInt();\n \t\tfor(int j = 0;j < 4;j++){\n \t\t\tif(str.equals(c[j])){\n \t\t\t\tt[j][num-1] = true;\n \t\t\t}\n \t\t}\n \t}\n \tfor(int i = 0;i < 4;i++){\n \t\tfor(int j = 0;j < 13;j++){\n \t\t\tif(!t[i][j])System.out.println(c[i]+\" \"+(j+1));\n \t\t}\n \t}\n }\n }\n}",
"Main",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) {\n new Main(); \n }",
"main",
"{\n new Main(); \n }",
"new Main()",
"String[] args",
"args",
"public Main() {\n new TEST().doIt();\n }",
"Main",
"{\n new TEST().doIt();\n }",
"new TEST().doIt()",
"new TEST().doIt",
"new TEST()",
"class TEST{\n \tString c[] = {\"S\",\"H\",\"C\",\"D\"};\n void doIt(){\n \tint n = sc.nextInt();\n \tboolean t[][] = new boolean [4][13];\n \tfor(int i = 0;i < n;i++){\n \t\tString str = sc.next();\n \t\tint num = sc.nextInt();\n \t\tfor(int j = 0;j < 4;j++){\n \t\t\tif(str.equals(c[j])){\n \t\t\t\tt[j][num-1] = true;\n \t\t\t}\n \t\t}\n \t}\n \tfor(int i = 0;i < 4;i++){\n \t\tfor(int j = 0;j < 13;j++){\n \t\t\tif(!t[i][j])System.out.println(c[i]+\" \"+(j+1));\n \t\t}\n \t}\n }\n }",
"TEST",
"String c[] = {\"S\",\"H\",\"C\",\"D\"};",
"c",
"{\"S\",\"H\",\"C\",\"D\"}",
"\"S\"",
"\"H\"",
"\"C\"",
"\"D\"",
"void doIt(){\n \tint n = sc.nextInt();\n \tboolean t[][] = new boolean [4][13];\n \tfor(int i = 0;i < n;i++){\n \t\tString str = sc.next();\n \t\tint num = sc.nextInt();\n \t\tfor(int j = 0;j < 4;j++){\n \t\t\tif(str.equals(c[j])){\n \t\t\t\tt[j][num-1] = true;\n \t\t\t}\n \t\t}\n \t}\n \tfor(int i = 0;i < 4;i++){\n \t\tfor(int j = 0;j < 13;j++){\n \t\t\tif(!t[i][j])System.out.println(c[i]+\" \"+(j+1));\n \t\t}\n \t}\n }",
"doIt",
"{\n \tint n = sc.nextInt();\n \tboolean t[][] = new boolean [4][13];\n \tfor(int i = 0;i < n;i++){\n \t\tString str = sc.next();\n \t\tint num = sc.nextInt();\n \t\tfor(int j = 0;j < 4;j++){\n \t\t\tif(str.equals(c[j])){\n \t\t\t\tt[j][num-1] = true;\n \t\t\t}\n \t\t}\n \t}\n \tfor(int i = 0;i < 4;i++){\n \t\tfor(int j = 0;j < 13;j++){\n \t\t\tif(!t[i][j])System.out.println(c[i]+\" \"+(j+1));\n \t\t}\n \t}\n }",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"boolean t[][] = new boolean [4][13];",
"t",
"new boolean [4][13]",
"4",
"13",
"for(int i = 0;i < n;i++){\n \t\tString str = sc.next();\n \t\tint num = sc.nextInt();\n \t\tfor(int j = 0;j < 4;j++){\n \t\t\tif(str.equals(c[j])){\n \t\t\t\tt[j][num-1] = true;\n \t\t\t}\n \t\t}\n \t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \t\tString str = sc.next();\n \t\tint num = sc.nextInt();\n \t\tfor(int j = 0;j < 4;j++){\n \t\t\tif(str.equals(c[j])){\n \t\t\t\tt[j][num-1] = true;\n \t\t\t}\n \t\t}\n \t}",
"{\n \t\tString str = sc.next();\n \t\tint num = sc.nextInt();\n \t\tfor(int j = 0;j < 4;j++){\n \t\t\tif(str.equals(c[j])){\n \t\t\t\tt[j][num-1] = true;\n \t\t\t}\n \t\t}\n \t}",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j = 0;j < 4;j++){\n \t\t\tif(str.equals(c[j])){\n \t\t\t\tt[j][num-1] = true;\n \t\t\t}\n \t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 4",
"j",
"4",
"j++",
"j++",
"j",
"{\n \t\t\tif(str.equals(c[j])){\n \t\t\t\tt[j][num-1] = true;\n \t\t\t}\n \t\t}",
"{\n \t\t\tif(str.equals(c[j])){\n \t\t\t\tt[j][num-1] = true;\n \t\t\t}\n \t\t}",
"if(str.equals(c[j])){\n \t\t\t\tt[j][num-1] = true;\n \t\t\t}",
"str.equals(c[j])",
"str.equals",
"str",
"c[j]",
"c",
"j",
"{\n \t\t\t\tt[j][num-1] = true;\n \t\t\t}",
"t[j][num-1] = true",
"t[j][num-1]",
"t[j]",
"t",
"j",
"num-1",
"num",
"1",
"true",
"for(int i = 0;i < 4;i++){\n \t\tfor(int j = 0;j < 13;j++){\n \t\t\tif(!t[i][j])System.out.println(c[i]+\" \"+(j+1));\n \t\t}\n \t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n \t\tfor(int j = 0;j < 13;j++){\n \t\t\tif(!t[i][j])System.out.println(c[i]+\" \"+(j+1));\n \t\t}\n \t}",
"{\n \t\tfor(int j = 0;j < 13;j++){\n \t\t\tif(!t[i][j])System.out.println(c[i]+\" \"+(j+1));\n \t\t}\n \t}",
"for(int j = 0;j < 13;j++){\n \t\t\tif(!t[i][j])System.out.println(c[i]+\" \"+(j+1));\n \t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n \t\t\tif(!t[i][j])System.out.println(c[i]+\" \"+(j+1));\n \t\t}",
"{\n \t\t\tif(!t[i][j])System.out.println(c[i]+\" \"+(j+1));\n \t\t}",
"if(!t[i][j])System.out.println(c[i]+\" \"+(j+1));",
"!t[i][j]",
"t[i][j]",
"t[i]",
"t",
"i",
"j",
"System.out.println(c[i]+\" \"+(j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"c[i]+\" \"+(j+1)",
"c[i]+\" \"+(j+1)",
"c[i]",
"c",
"i",
"\" \"",
"(j+1)",
"j",
"1",
"public class Main {\n Scanner sc = new Scanner(System.in);\n \n public static void main(String[] args) {\n new Main(); \n }\n \n public Main() {\n new TEST().doIt();\n }\n class TEST{\n \tString c[] = {\"S\",\"H\",\"C\",\"D\"};\n void doIt(){\n \tint n = sc.nextInt();\n \tboolean t[][] = new boolean [4][13];\n \tfor(int i = 0;i < n;i++){\n \t\tString str = sc.next();\n \t\tint num = sc.nextInt();\n \t\tfor(int j = 0;j < 4;j++){\n \t\t\tif(str.equals(c[j])){\n \t\t\t\tt[j][num-1] = true;\n \t\t\t}\n \t\t}\n \t}\n \tfor(int i = 0;i < 4;i++){\n \t\tfor(int j = 0;j < 13;j++){\n \t\t\tif(!t[i][j])System.out.println(c[i]+\" \"+(j+1));\n \t\t}\n \t}\n }\n }\n}",
"public class Main {\n Scanner sc = new Scanner(System.in);\n \n public static void main(String[] args) {\n new Main(); \n }\n \n public Main() {\n new TEST().doIt();\n }\n class TEST{\n \tString c[] = {\"S\",\"H\",\"C\",\"D\"};\n void doIt(){\n \tint n = sc.nextInt();\n \tboolean t[][] = new boolean [4][13];\n \tfor(int i = 0;i < n;i++){\n \t\tString str = sc.next();\n \t\tint num = sc.nextInt();\n \t\tfor(int j = 0;j < 4;j++){\n \t\t\tif(str.equals(c[j])){\n \t\t\t\tt[j][num-1] = true;\n \t\t\t}\n \t\t}\n \t}\n \tfor(int i = 0;i < 4;i++){\n \t\tfor(int j = 0;j < 13;j++){\n \t\t\tif(!t[i][j])System.out.println(c[i]+\" \"+(j+1));\n \t\t}\n \t}\n }\n }\n}",
"Main"
] | import java.util.*;
public class Main {
Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
new Main();
}
public Main() {
new TEST().doIt();
}
class TEST{
String c[] = {"S","H","C","D"};
void doIt(){
int n = sc.nextInt();
boolean t[][] = new boolean [4][13];
for(int i = 0;i < n;i++){
String str = sc.next();
int num = sc.nextInt();
for(int j = 0;j < 4;j++){
if(str.equals(c[j])){
t[j][num-1] = true;
}
}
}
for(int i = 0;i < 4;i++){
for(int j = 0;j < 13;j++){
if(!t[i][j])System.out.println(c[i]+" "+(j+1));
}
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
41,
13,
41,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
35,
13,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
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,
14,
2,
18,
18,
13,
13,
13,
17,
30,
35,
13,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
201,
5
],
[
201,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
40,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
56,
64
],
[
55,
65
],
[
51,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
68,
78
],
[
51,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
87,
89
],
[
82,
90
],
[
81,
91
],
[
51,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
95,
103
],
[
94,
104
],
[
8,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
105,
113
],
[
113,
114
],
[
114,
115
],
[
105,
116
],
[
117,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
118,
126
],
[
126,
127
],
[
127,
128
],
[
118,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
132,
138
],
[
131,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
145,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
152,
154
],
[
144,
155
],
[
140,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
159,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
166,
168
],
[
158,
169
],
[
140,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
173,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
180,
182
],
[
172,
183
],
[
140,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
187,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
194,
196
],
[
186,
197
],
[
6,
198
],
[
198,
199
],
[
0,
200
],
[
200,
201
],
[
200,
202
]
] | [
"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[][] card = new int[4][13];\n\t\tString mark;\n\t\tint num;\n\t\tint i;\n\n\t\t//入力されたカード\n\t\tfor (i = 0; i < n; i++) {\n\t\t\tmark = sc.next();\n\t\t\tnum = sc.nextInt();\n\t\t\tswitch (mark) {\n\t\t\tcase \"S\":\n\t\t\t\tcard[0][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tcard[1][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tcard[2][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tcard[3][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t//ないカード\n\t\tfor (num = 0; num <= 3; num++) {\n\t\t\tfor (i = 0; i <= 12; i++) {\n\t\t\t\tif (card[num][i] == 0) {\n\t\t\t\t\tswitch (num) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (i+1));\n\t\t\t\t\t\tbreak;\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\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[][] card = new int[4][13];\n\t\tString mark;\n\t\tint num;\n\t\tint i;\n\n\t\t//入力されたカード\n\t\tfor (i = 0; i < n; i++) {\n\t\t\tmark = sc.next();\n\t\t\tnum = sc.nextInt();\n\t\t\tswitch (mark) {\n\t\t\tcase \"S\":\n\t\t\t\tcard[0][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tcard[1][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tcard[2][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tcard[3][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t//ないカード\n\t\tfor (num = 0; num <= 3; num++) {\n\t\t\tfor (i = 0; i <= 12; i++) {\n\t\t\t\tif (card[num][i] == 0) {\n\t\t\t\t\tswitch (num) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[][] card = new int[4][13];\n\t\tString mark;\n\t\tint num;\n\t\tint i;\n\n\t\t//入力されたカード\n\t\tfor (i = 0; i < n; i++) {\n\t\t\tmark = sc.next();\n\t\t\tnum = sc.nextInt();\n\t\t\tswitch (mark) {\n\t\t\tcase \"S\":\n\t\t\t\tcard[0][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tcard[1][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tcard[2][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tcard[3][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t//ないカード\n\t\tfor (num = 0; num <= 3; num++) {\n\t\t\tfor (i = 0; i <= 12; i++) {\n\t\t\t\tif (card[num][i] == 0) {\n\t\t\t\t\tswitch (num) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[][] card = new int[4][13];\n\t\tString mark;\n\t\tint num;\n\t\tint i;\n\n\t\t//入力されたカード\n\t\tfor (i = 0; i < n; i++) {\n\t\t\tmark = sc.next();\n\t\t\tnum = sc.nextInt();\n\t\t\tswitch (mark) {\n\t\t\tcase \"S\":\n\t\t\t\tcard[0][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tcard[1][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tcard[2][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tcard[3][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t//ないカード\n\t\tfor (num = 0; num <= 3; num++) {\n\t\t\tfor (i = 0; i <= 12; i++) {\n\t\t\t\tif (card[num][i] == 0) {\n\t\t\t\t\tswitch (num) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\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",
"int[][] card = new int[4][13];",
"card",
"new int[4][13]",
"4",
"13",
"String mark;",
"mark",
"int num;",
"num",
"int i;",
"i",
"for (i = 0; i < n; i++) {\n\t\t\tmark = sc.next();\n\t\t\tnum = sc.nextInt();\n\t\t\tswitch (mark) {\n\t\t\tcase \"S\":\n\t\t\t\tcard[0][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tcard[1][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tcard[2][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tcard[3][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tmark = sc.next();\n\t\t\tnum = sc.nextInt();\n\t\t\tswitch (mark) {\n\t\t\tcase \"S\":\n\t\t\t\tcard[0][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tcard[1][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tcard[2][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tcard[3][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tmark = sc.next();\n\t\t\tnum = sc.nextInt();\n\t\t\tswitch (mark) {\n\t\t\tcase \"S\":\n\t\t\t\tcard[0][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tcard[1][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tcard[2][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tcard[3][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"mark = sc.next()",
"mark",
"sc.next()",
"sc.next",
"sc",
"num = sc.nextInt()",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"switch (mark) {\n\t\t\tcase \"S\":\n\t\t\t\tcard[0][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tcard[1][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tcard[2][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tcard[3][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\t}",
"mark",
"case \"S\":",
"\"S\"",
"case \"S\":",
"card[0][num - 1] = 1",
"card[0][num - 1]",
"card[0]",
"card",
"0",
"num - 1",
"num",
"1",
"1",
"break;",
"case \"H\":",
"\"H\"",
"case \"H\":",
"card[1][num - 1] = 1",
"card[1][num - 1]",
"card[1]",
"card",
"1",
"num - 1",
"num",
"1",
"1",
"break;",
"case \"C\":",
"\"C\"",
"case \"C\":",
"card[2][num - 1] = 1",
"card[2][num - 1]",
"card[2]",
"card",
"2",
"num - 1",
"num",
"1",
"1",
"break;",
"case \"D\":",
"\"D\"",
"case \"D\":",
"card[3][num - 1] = 1",
"card[3][num - 1]",
"card[3]",
"card",
"3",
"num - 1",
"num",
"1",
"1",
"break;",
"for (num = 0; num <= 3; num++) {\n\t\t\tfor (i = 0; i <= 12; i++) {\n\t\t\t\tif (card[num][i] == 0) {\n\t\t\t\t\tswitch (num) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"num = 0;",
"num = 0",
"num",
"0",
"num <= 3",
"num",
"3",
"num++",
"num++",
"num",
"{\n\t\t\tfor (i = 0; i <= 12; i++) {\n\t\t\t\tif (card[num][i] == 0) {\n\t\t\t\t\tswitch (num) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (i = 0; i <= 12; i++) {\n\t\t\t\tif (card[num][i] == 0) {\n\t\t\t\t\tswitch (num) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (i = 0; i <= 12; i++) {\n\t\t\t\tif (card[num][i] == 0) {\n\t\t\t\t\tswitch (num) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i <= 12",
"i",
"12",
"i++",
"i++",
"i",
"{\n\t\t\t\tif (card[num][i] == 0) {\n\t\t\t\t\tswitch (num) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif (card[num][i] == 0) {\n\t\t\t\t\tswitch (num) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"if (card[num][i] == 0) {\n\t\t\t\t\tswitch (num) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"card[num][i] == 0",
"card[num][i]",
"card[num]",
"card",
"num",
"i",
"0",
"{\n\t\t\t\t\tswitch (num) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"switch (num) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"num",
"case 0:",
"0",
"case 0:",
"System.out.println(\"S \" + (i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \" + (i+1)",
"\"S \"",
"(i+1)",
"i",
"1",
"break;",
"case 1:",
"1",
"case 1:",
"System.out.println(\"H \" + (i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \" + (i+1)",
"\"H \"",
"(i+1)",
"i",
"1",
"break;",
"case 2:",
"2",
"case 2:",
"System.out.println(\"C \" + (i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \" + (i+1)",
"\"C \"",
"(i+1)",
"i",
"1",
"break;",
"case 3:",
"3",
"case 3:",
"System.out.println(\"D \" + (i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \" + (i+1)",
"\"D \"",
"(i+1)",
"i",
"1",
"break;",
"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[][] card = new int[4][13];\n\t\tString mark;\n\t\tint num;\n\t\tint i;\n\n\t\t//入力されたカード\n\t\tfor (i = 0; i < n; i++) {\n\t\t\tmark = sc.next();\n\t\t\tnum = sc.nextInt();\n\t\t\tswitch (mark) {\n\t\t\tcase \"S\":\n\t\t\t\tcard[0][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tcard[1][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tcard[2][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tcard[3][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t//ないカード\n\t\tfor (num = 0; num <= 3; num++) {\n\t\t\tfor (i = 0; i <= 12; i++) {\n\t\t\t\tif (card[num][i] == 0) {\n\t\t\t\t\tswitch (num) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\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\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[][] card = new int[4][13];\n\t\tString mark;\n\t\tint num;\n\t\tint i;\n\n\t\t//入力されたカード\n\t\tfor (i = 0; i < n; i++) {\n\t\t\tmark = sc.next();\n\t\t\tnum = sc.nextInt();\n\t\t\tswitch (mark) {\n\t\t\tcase \"S\":\n\t\t\t\tcard[0][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\tcard[1][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tcard[2][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\tcard[3][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t//ないカード\n\t\tfor (num = 0; num <= 3; num++) {\n\t\t\tfor (i = 0; i <= 12; i++) {\n\t\t\t\tif (card[num][i] == 0) {\n\t\t\t\t\tswitch (num) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (i+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\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) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[][] card = new int[4][13];
String mark;
int num;
int i;
//入力されたカード
for (i = 0; i < n; i++) {
mark = sc.next();
num = sc.nextInt();
switch (mark) {
case "S":
card[0][num - 1] = 1;
break;
case "H":
card[1][num - 1] = 1;
break;
case "C":
card[2][num - 1] = 1;
break;
case "D":
card[3][num - 1] = 1;
break;
}
}
//ないカード
for (num = 0; num <= 3; num++) {
for (i = 0; i <= 12; i++) {
if (card[num][i] == 0) {
switch (num) {
case 0:
System.out.println("S " + (i+1));
break;
case 1:
System.out.println("H " + (i+1));
break;
case 2:
System.out.println("C " + (i+1));
break;
case 3:
System.out.println("D " + (i+1));
break;
}
}
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
4,
13,
13,
13,
13,
4,
18,
13,
17,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
14,
4,
18,
18,
13,
13,
13,
13,
29,
35,
13,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
13,
3,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
13,
3,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
13,
3,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
13,
3,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
41,
13,
4,
18,
13,
17,
35,
18,
13,
17,
34,
17,
1,
0,
13,
17,
3,
34,
17,
1,
0,
13,
17,
3,
34,
17,
1,
0,
13,
17,
3,
34,
17,
1,
0,
13,
17,
3,
0,
13,
4,
18,
13,
18,
13,
17,
23,
13,
12,
13,
30,
14,
2,
2,
13,
13,
2,
13,
13,
29,
17,
29,
17,
23,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
248,
8
],
[
248,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
18,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
25,
32
],
[
32,
33
],
[
32,
34
],
[
25,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
25,
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
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
78,
81
],
[
78,
82
],
[
11,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
9,
87
],
[
87,
88
],
[
248,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
99,
101
],
[
92,
102
],
[
102,
103
],
[
103,
104
],
[
92,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
107,
113
],
[
106,
114
],
[
91,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
125,
126
],
[
125,
127
],
[
119,
128
],
[
115,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
137,
138
],
[
137,
139
],
[
131,
140
],
[
115,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
144,
149
],
[
149,
150
],
[
149,
151
],
[
143,
152
],
[
115,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
156,
161
],
[
161,
162
],
[
161,
163
],
[
155,
164
],
[
89,
165
],
[
165,
166
],
[
89,
167
],
[
167,
168
],
[
89,
169
],
[
169,
170
],
[
0,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
171,
175
],
[
175,
176
],
[
171,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
183,
184
],
[
182,
185
],
[
179,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
186,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
192,
196
],
[
186,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
199,
203
],
[
186,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
206,
210
],
[
186,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
213,
217
],
[
179,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
221,
222
],
[
220,
223
],
[
223,
224
],
[
223,
225
],
[
177,
226
],
[
226,
227
],
[
171,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
232,
236
],
[
236,
237
],
[
236,
238
],
[
231,
239
],
[
239,
240
],
[
231,
241
],
[
241,
242
],
[
228,
243
],
[
243,
244
],
[
228,
245
],
[
245,
246
],
[
0,
247
],
[
247,
248
],
[
247,
249
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\twhile ((s = stdIn.readLine()) != null) {\n\t\t\tint pcs = Integer.valueOf(s);\n\t\t\tCard[] mine = new Card[pcs];\n\t\t\tfor (int i = 0; i < pcs; i++) {\n\t\t\t\tmine[i] = new Card(stdIn.readLine());\n\t\t\t}\n\t\t\tfor (int m = 0; m < 4; m++)\n\t\t\t\tfor (int r = 1; r <= 13; r++)\n\t\t\t\t\tdoMain(m, r, mine);\n\t\t}\n\t\tSystem.exit(0);\n\t}\n\n\tprivate static void doMain(int mark, int rank, Card[] mine) {\n\t\tfor (int i = 0; i < mine.length; i++)\n\t\t\tif (mine[i].isEqual(mark, rank))\n\t\t\t\treturn;\n\t\tswitch (mark) {\n\t\tcase (0):\n\t\t\tSystem.out.println(\"S \" + rank);\n\t\t\tbreak;\n\t\tcase (1):\n\t\t\tSystem.out.println(\"H \" + rank);\n\t\t\tbreak;\n\t\tcase (2):\n\t\t\tSystem.out.println(\"C \" + rank);\n\t\t\tbreak;\n\t\tcase (3):\n\t\t\tSystem.out.println(\"D \" + rank);\n\t\t\tbreak;\n\t\t}\n\t}\n}\n\nclass Card {\n\tpublic Card(String s) {\n\t\tString[] se = s.split(\" \");\n\t\tswitch (se[0]) {\n\t\tcase (\"S\"):\n\t\t\tmark = 0;\n\t\t\tbreak;\n\t\tcase (\"H\"):\n\t\t\tmark = 1;\n\t\t\tbreak;\n\t\tcase (\"C\"):\n\t\t\tmark = 2;\n\t\t\tbreak;\n\t\tcase (\"D\"):\n\t\t\tmark = 3;\n\t\t\tbreak;\n\t\t}\n\t\trank = Integer.valueOf(se[1]);\n\t}\n\n\tpublic boolean isEqual(int mark2, int rank2) {\n\t\tif (mark == mark2 && rank == rank2)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}\n\n\tprivate int mark;\n\tprivate int rank;\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\twhile ((s = stdIn.readLine()) != null) {\n\t\t\tint pcs = Integer.valueOf(s);\n\t\t\tCard[] mine = new Card[pcs];\n\t\t\tfor (int i = 0; i < pcs; i++) {\n\t\t\t\tmine[i] = new Card(stdIn.readLine());\n\t\t\t}\n\t\t\tfor (int m = 0; m < 4; m++)\n\t\t\t\tfor (int r = 1; r <= 13; r++)\n\t\t\t\t\tdoMain(m, r, mine);\n\t\t}\n\t\tSystem.exit(0);\n\t}\n\n\tprivate static void doMain(int mark, int rank, Card[] mine) {\n\t\tfor (int i = 0; i < mine.length; i++)\n\t\t\tif (mine[i].isEqual(mark, rank))\n\t\t\t\treturn;\n\t\tswitch (mark) {\n\t\tcase (0):\n\t\t\tSystem.out.println(\"S \" + rank);\n\t\t\tbreak;\n\t\tcase (1):\n\t\t\tSystem.out.println(\"H \" + rank);\n\t\t\tbreak;\n\t\tcase (2):\n\t\t\tSystem.out.println(\"C \" + rank);\n\t\t\tbreak;\n\t\tcase (3):\n\t\t\tSystem.out.println(\"D \" + rank);\n\t\t\tbreak;\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\twhile ((s = stdIn.readLine()) != null) {\n\t\t\tint pcs = Integer.valueOf(s);\n\t\t\tCard[] mine = new Card[pcs];\n\t\t\tfor (int i = 0; i < pcs; i++) {\n\t\t\t\tmine[i] = new Card(stdIn.readLine());\n\t\t\t}\n\t\t\tfor (int m = 0; m < 4; m++)\n\t\t\t\tfor (int r = 1; r <= 13; r++)\n\t\t\t\t\tdoMain(m, r, mine);\n\t\t}\n\t\tSystem.exit(0);\n\t}",
"main",
"{\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\twhile ((s = stdIn.readLine()) != null) {\n\t\t\tint pcs = Integer.valueOf(s);\n\t\t\tCard[] mine = new Card[pcs];\n\t\t\tfor (int i = 0; i < pcs; i++) {\n\t\t\t\tmine[i] = new Card(stdIn.readLine());\n\t\t\t}\n\t\t\tfor (int m = 0; m < 4; m++)\n\t\t\t\tfor (int r = 1; r <= 13; r++)\n\t\t\t\t\tdoMain(m, r, mine);\n\t\t}\n\t\tSystem.exit(0);\n\t}",
"BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));",
"stdIn",
"new BufferedReader(new InputStreamReader(System.in))",
"String s;",
"s",
"while ((s = stdIn.readLine()) != null) {\n\t\t\tint pcs = Integer.valueOf(s);\n\t\t\tCard[] mine = new Card[pcs];\n\t\t\tfor (int i = 0; i < pcs; i++) {\n\t\t\t\tmine[i] = new Card(stdIn.readLine());\n\t\t\t}\n\t\t\tfor (int m = 0; m < 4; m++)\n\t\t\t\tfor (int r = 1; r <= 13; r++)\n\t\t\t\t\tdoMain(m, r, mine);\n\t\t}",
"(s = stdIn.readLine()) != null",
"(s = stdIn.readLine())",
"s",
"stdIn.readLine()",
"stdIn.readLine",
"stdIn",
"null",
"{\n\t\t\tint pcs = Integer.valueOf(s);\n\t\t\tCard[] mine = new Card[pcs];\n\t\t\tfor (int i = 0; i < pcs; i++) {\n\t\t\t\tmine[i] = new Card(stdIn.readLine());\n\t\t\t}\n\t\t\tfor (int m = 0; m < 4; m++)\n\t\t\t\tfor (int r = 1; r <= 13; r++)\n\t\t\t\t\tdoMain(m, r, mine);\n\t\t}",
"int pcs = Integer.valueOf(s);",
"pcs",
"Integer.valueOf(s)",
"Integer.valueOf",
"Integer",
"s",
"Card[] mine = new Card[pcs];",
"mine",
"new Card[pcs]",
"pcs",
"for (int i = 0; i < pcs; i++) {\n\t\t\t\tmine[i] = new Card(stdIn.readLine());\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < pcs",
"i",
"pcs",
"i++",
"i++",
"i",
"{\n\t\t\t\tmine[i] = new Card(stdIn.readLine());\n\t\t\t}",
"{\n\t\t\t\tmine[i] = new Card(stdIn.readLine());\n\t\t\t}",
"mine[i] = new Card(stdIn.readLine())",
"mine[i]",
"mine",
"i",
"new Card(stdIn.readLine())",
"for (int m = 0; m < 4; m++)\n\t\t\t\tfor (int r = 1; r <= 13; r++)\n\t\t\t\t\tdoMain(m, r, mine);",
"int m = 0;",
"int m = 0;",
"m",
"0",
"m < 4",
"m",
"4",
"m++",
"m++",
"m",
"for (int r = 1; r <= 13; r++)\n\t\t\t\t\tdoMain(m, r, mine);",
"for (int r = 1; r <= 13; r++)\n\t\t\t\t\tdoMain(m, r, mine);",
"int r = 1;",
"int r = 1;",
"r",
"1",
"r <= 13",
"r",
"13",
"r++",
"r++",
"r",
"doMain(m, r, mine);",
"doMain(m, r, mine)",
"doMain",
"m",
"r",
"mine",
"System.exit(0)",
"System.exit",
"System",
"0",
"String[] args",
"args",
"private static void doMain(int mark, int rank, Card[] mine) {\n\t\tfor (int i = 0; i < mine.length; i++)\n\t\t\tif (mine[i].isEqual(mark, rank))\n\t\t\t\treturn;\n\t\tswitch (mark) {\n\t\tcase (0):\n\t\t\tSystem.out.println(\"S \" + rank);\n\t\t\tbreak;\n\t\tcase (1):\n\t\t\tSystem.out.println(\"H \" + rank);\n\t\t\tbreak;\n\t\tcase (2):\n\t\t\tSystem.out.println(\"C \" + rank);\n\t\t\tbreak;\n\t\tcase (3):\n\t\t\tSystem.out.println(\"D \" + rank);\n\t\t\tbreak;\n\t\t}\n\t}",
"doMain",
"{\n\t\tfor (int i = 0; i < mine.length; i++)\n\t\t\tif (mine[i].isEqual(mark, rank))\n\t\t\t\treturn;\n\t\tswitch (mark) {\n\t\tcase (0):\n\t\t\tSystem.out.println(\"S \" + rank);\n\t\t\tbreak;\n\t\tcase (1):\n\t\t\tSystem.out.println(\"H \" + rank);\n\t\t\tbreak;\n\t\tcase (2):\n\t\t\tSystem.out.println(\"C \" + rank);\n\t\t\tbreak;\n\t\tcase (3):\n\t\t\tSystem.out.println(\"D \" + rank);\n\t\t\tbreak;\n\t\t}\n\t}",
"for (int i = 0; i < mine.length; i++)\n\t\t\tif (mine[i].isEqual(mark, rank))\n\t\t\t\treturn;",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < mine.length",
"i",
"mine.length",
"mine",
"mine.length",
"i++",
"i++",
"i",
"if (mine[i].isEqual(mark, rank))\n\t\t\t\treturn;",
"if (mine[i].isEqual(mark, rank))\n\t\t\t\treturn;",
"mine[i].isEqual(mark, rank)",
"mine[i].isEqual",
"mine[i]",
"mine",
"i",
"mark",
"rank",
"return;",
"switch (mark) {\n\t\tcase (0):\n\t\t\tSystem.out.println(\"S \" + rank);\n\t\t\tbreak;\n\t\tcase (1):\n\t\t\tSystem.out.println(\"H \" + rank);\n\t\t\tbreak;\n\t\tcase (2):\n\t\t\tSystem.out.println(\"C \" + rank);\n\t\t\tbreak;\n\t\tcase (3):\n\t\t\tSystem.out.println(\"D \" + rank);\n\t\t\tbreak;\n\t\t}",
"mark",
"case (0):",
"(0)",
"case (0):",
"System.out.println(\"S \" + rank)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \" + rank",
"\"S \"",
"rank",
"break;",
"case (1):",
"(1)",
"case (1):",
"System.out.println(\"H \" + rank)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \" + rank",
"\"H \"",
"rank",
"break;",
"case (2):",
"(2)",
"case (2):",
"System.out.println(\"C \" + rank)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \" + rank",
"\"C \"",
"rank",
"break;",
"case (3):",
"(3)",
"case (3):",
"System.out.println(\"D \" + rank)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \" + rank",
"\"D \"",
"rank",
"break;",
"int mark",
"mark",
"int rank",
"rank",
"Card[] mine",
"mine",
"class Card {\n\tpublic Card(String s) {\n\t\tString[] se = s.split(\" \");\n\t\tswitch (se[0]) {\n\t\tcase (\"S\"):\n\t\t\tmark = 0;\n\t\t\tbreak;\n\t\tcase (\"H\"):\n\t\t\tmark = 1;\n\t\t\tbreak;\n\t\tcase (\"C\"):\n\t\t\tmark = 2;\n\t\t\tbreak;\n\t\tcase (\"D\"):\n\t\t\tmark = 3;\n\t\t\tbreak;\n\t\t}\n\t\trank = Integer.valueOf(se[1]);\n\t}\n\n\tpublic boolean isEqual(int mark2, int rank2) {\n\t\tif (mark == mark2 && rank == rank2)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}\n\n\tprivate int mark;\n\tprivate int rank;\n}",
"Card",
"private int mark;",
"mark",
"private int rank;",
"rank",
"public Card(String s) {\n\t\tString[] se = s.split(\" \");\n\t\tswitch (se[0]) {\n\t\tcase (\"S\"):\n\t\t\tmark = 0;\n\t\t\tbreak;\n\t\tcase (\"H\"):\n\t\t\tmark = 1;\n\t\t\tbreak;\n\t\tcase (\"C\"):\n\t\t\tmark = 2;\n\t\t\tbreak;\n\t\tcase (\"D\"):\n\t\t\tmark = 3;\n\t\t\tbreak;\n\t\t}\n\t\trank = Integer.valueOf(se[1]);\n\t}",
"Card",
"{\n\t\tString[] se = s.split(\" \");\n\t\tswitch (se[0]) {\n\t\tcase (\"S\"):\n\t\t\tmark = 0;\n\t\t\tbreak;\n\t\tcase (\"H\"):\n\t\t\tmark = 1;\n\t\t\tbreak;\n\t\tcase (\"C\"):\n\t\t\tmark = 2;\n\t\t\tbreak;\n\t\tcase (\"D\"):\n\t\t\tmark = 3;\n\t\t\tbreak;\n\t\t}\n\t\trank = Integer.valueOf(se[1]);\n\t}",
"String[] se = s.split(\" \");",
"se",
"s.split(\" \")",
"s.split",
"s",
"\" \"",
"switch (se[0]) {\n\t\tcase (\"S\"):\n\t\t\tmark = 0;\n\t\t\tbreak;\n\t\tcase (\"H\"):\n\t\t\tmark = 1;\n\t\t\tbreak;\n\t\tcase (\"C\"):\n\t\t\tmark = 2;\n\t\t\tbreak;\n\t\tcase (\"D\"):\n\t\t\tmark = 3;\n\t\t\tbreak;\n\t\t}",
"se[0]",
"se",
"0",
"case (\"S\"):",
"(\"S\")",
"case (\"S\"):",
"mark = 0",
"mark",
"0",
"break;",
"case (\"H\"):",
"(\"H\")",
"case (\"H\"):",
"mark = 1",
"mark",
"1",
"break;",
"case (\"C\"):",
"(\"C\")",
"case (\"C\"):",
"mark = 2",
"mark",
"2",
"break;",
"case (\"D\"):",
"(\"D\")",
"case (\"D\"):",
"mark = 3",
"mark",
"3",
"break;",
"rank = Integer.valueOf(se[1])",
"rank",
"Integer.valueOf(se[1])",
"Integer.valueOf",
"Integer",
"se[1]",
"se",
"1",
"String s",
"s",
"public boolean isEqual(int mark2, int rank2) {\n\t\tif (mark == mark2 && rank == rank2)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"isEqual",
"{\n\t\tif (mark == mark2 && rank == rank2)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"if (mark == mark2 && rank == rank2)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;",
"mark == mark2 && rank == rank2",
"mark == mark2",
"mark",
"mark2",
"rank == rank2",
"rank",
"rank2",
"return true;",
"true",
"return false;",
"false",
"int mark2",
"mark2",
"int rank2",
"rank2",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\twhile ((s = stdIn.readLine()) != null) {\n\t\t\tint pcs = Integer.valueOf(s);\n\t\t\tCard[] mine = new Card[pcs];\n\t\t\tfor (int i = 0; i < pcs; i++) {\n\t\t\t\tmine[i] = new Card(stdIn.readLine());\n\t\t\t}\n\t\t\tfor (int m = 0; m < 4; m++)\n\t\t\t\tfor (int r = 1; r <= 13; r++)\n\t\t\t\t\tdoMain(m, r, mine);\n\t\t}\n\t\tSystem.exit(0);\n\t}\n\n\tprivate static void doMain(int mark, int rank, Card[] mine) {\n\t\tfor (int i = 0; i < mine.length; i++)\n\t\t\tif (mine[i].isEqual(mark, rank))\n\t\t\t\treturn;\n\t\tswitch (mark) {\n\t\tcase (0):\n\t\t\tSystem.out.println(\"S \" + rank);\n\t\t\tbreak;\n\t\tcase (1):\n\t\t\tSystem.out.println(\"H \" + rank);\n\t\t\tbreak;\n\t\tcase (2):\n\t\t\tSystem.out.println(\"C \" + rank);\n\t\t\tbreak;\n\t\tcase (3):\n\t\t\tSystem.out.println(\"D \" + rank);\n\t\t\tbreak;\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\twhile ((s = stdIn.readLine()) != null) {\n\t\t\tint pcs = Integer.valueOf(s);\n\t\t\tCard[] mine = new Card[pcs];\n\t\t\tfor (int i = 0; i < pcs; i++) {\n\t\t\t\tmine[i] = new Card(stdIn.readLine());\n\t\t\t}\n\t\t\tfor (int m = 0; m < 4; m++)\n\t\t\t\tfor (int r = 1; r <= 13; r++)\n\t\t\t\t\tdoMain(m, r, mine);\n\t\t}\n\t\tSystem.exit(0);\n\t}\n\n\tprivate static void doMain(int mark, int rank, Card[] mine) {\n\t\tfor (int i = 0; i < mine.length; i++)\n\t\t\tif (mine[i].isEqual(mark, rank))\n\t\t\t\treturn;\n\t\tswitch (mark) {\n\t\tcase (0):\n\t\t\tSystem.out.println(\"S \" + rank);\n\t\t\tbreak;\n\t\tcase (1):\n\t\t\tSystem.out.println(\"H \" + rank);\n\t\t\tbreak;\n\t\tcase (2):\n\t\t\tSystem.out.println(\"C \" + rank);\n\t\t\tbreak;\n\t\tcase (3):\n\t\t\tSystem.out.println(\"D \" + rank);\n\t\t\tbreak;\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 Exception {
BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
String s;
while ((s = stdIn.readLine()) != null) {
int pcs = Integer.valueOf(s);
Card[] mine = new Card[pcs];
for (int i = 0; i < pcs; i++) {
mine[i] = new Card(stdIn.readLine());
}
for (int m = 0; m < 4; m++)
for (int r = 1; r <= 13; r++)
doMain(m, r, mine);
}
System.exit(0);
}
private static void doMain(int mark, int rank, Card[] mine) {
for (int i = 0; i < mine.length; i++)
if (mine[i].isEqual(mark, rank))
return;
switch (mark) {
case (0):
System.out.println("S " + rank);
break;
case (1):
System.out.println("H " + rank);
break;
case (2):
System.out.println("C " + rank);
break;
case (3):
System.out.println("D " + rank);
break;
}
}
}
class Card {
public Card(String s) {
String[] se = s.split(" ");
switch (se[0]) {
case ("S"):
mark = 0;
break;
case ("H"):
mark = 1;
break;
case ("C"):
mark = 2;
break;
case ("D"):
mark = 3;
break;
}
rank = Integer.valueOf(se[1]);
}
public boolean isEqual(int mark2, int rank2) {
if (mark == mark2 && rank == rank2)
return true;
else
return false;
}
private int mark;
private int rank;
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
41,
13,
39,
17,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
2,
2,
18,
13,
13,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
109,
11
],
[
109,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
31,
33
],
[
31,
34
],
[
31,
35
],
[
14,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
14,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
74,
84
],
[
84,
85
],
[
85,
86
],
[
74,
87
],
[
88,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
93,
94
],
[
14,
95
],
[
95,
96
],
[
95,
97
],
[
95,
98
],
[
99,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
12,
106
],
[
106,
107
],
[
0,
108
],
[
108,
109
],
[
108,
110
]
] | [
"import java.util.ArrayList;\nimport java.util.List;\nimport 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 = Integer.parseInt(sc.nextLine());\n\t\tList<String> list = new ArrayList<String>();\n\t\tString[] mark ={\"S\",\"H\",\"C\",\"D\"};\n\n\t\tfor(int i=0;i<=3;i++){\n\t\t\tfor(int j=0;j<=12;j++){\n\t\t\t\tlist.add(mark[i]+\" \"+(j+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<=n-1;i++){\n\t\t\tlist.remove(sc.nextLine());\n\t\t}\n\t\tfor(String ans:list){\n\t\t\tSystem.out.println(ans);\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\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tList<String> list = new ArrayList<String>();\n\t\tString[] mark ={\"S\",\"H\",\"C\",\"D\"};\n\n\t\tfor(int i=0;i<=3;i++){\n\t\t\tfor(int j=0;j<=12;j++){\n\t\t\t\tlist.add(mark[i]+\" \"+(j+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<=n-1;i++){\n\t\t\tlist.remove(sc.nextLine());\n\t\t}\n\t\tfor(String ans:list){\n\t\t\tSystem.out.println(ans);\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 = Integer.parseInt(sc.nextLine());\n\t\tList<String> list = new ArrayList<String>();\n\t\tString[] mark ={\"S\",\"H\",\"C\",\"D\"};\n\n\t\tfor(int i=0;i<=3;i++){\n\t\t\tfor(int j=0;j<=12;j++){\n\t\t\t\tlist.add(mark[i]+\" \"+(j+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<=n-1;i++){\n\t\t\tlist.remove(sc.nextLine());\n\t\t}\n\t\tfor(String ans:list){\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tList<String> list = new ArrayList<String>();\n\t\tString[] mark ={\"S\",\"H\",\"C\",\"D\"};\n\n\t\tfor(int i=0;i<=3;i++){\n\t\t\tfor(int j=0;j<=12;j++){\n\t\t\t\tlist.add(mark[i]+\" \"+(j+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<=n-1;i++){\n\t\t\tlist.remove(sc.nextLine());\n\t\t}\n\t\tfor(String ans:list){\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.nextLine());",
"n",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"List<String> list = new ArrayList<String>();",
"list",
"new ArrayList<String>()",
"String[] mark ={\"S\",\"H\",\"C\",\"D\"};",
"mark",
"{\"S\",\"H\",\"C\",\"D\"}",
"\"S\"",
"\"H\"",
"\"C\"",
"\"D\"",
"for(int i=0;i<=3;i++){\n\t\t\tfor(int j=0;j<=12;j++){\n\t\t\t\tlist.add(mark[i]+\" \"+(j+1));\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<=3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<=12;j++){\n\t\t\t\tlist.add(mark[i]+\" \"+(j+1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<=12;j++){\n\t\t\t\tlist.add(mark[i]+\" \"+(j+1));\n\t\t\t}\n\t\t}",
"for(int j=0;j<=12;j++){\n\t\t\t\tlist.add(mark[i]+\" \"+(j+1));\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<=12",
"j",
"12",
"j++",
"j++",
"j",
"{\n\t\t\t\tlist.add(mark[i]+\" \"+(j+1));\n\t\t\t}",
"{\n\t\t\t\tlist.add(mark[i]+\" \"+(j+1));\n\t\t\t}",
"list.add(mark[i]+\" \"+(j+1))",
"list.add",
"list",
"mark[i]+\" \"+(j+1)",
"mark[i]+\" \"+(j+1)",
"mark[i]",
"mark",
"i",
"\" \"",
"(j+1)",
"j",
"1",
"for(int i=0;i<=n-1;i++){\n\t\t\tlist.remove(sc.nextLine());\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<=n-1",
"i",
"n-1",
"n",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tlist.remove(sc.nextLine());\n\t\t}",
"{\n\t\t\tlist.remove(sc.nextLine());\n\t\t}",
"list.remove(sc.nextLine())",
"list.remove",
"list",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for(String ans:list){\n\t\t\tSystem.out.println(ans);\n\t\t}",
"String ans",
"list",
"{\n\t\t\tSystem.out.println(ans);\n\t\t}",
"{\n\t\t\tSystem.out.println(ans);\n\t\t}",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"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 = Integer.parseInt(sc.nextLine());\n\t\tList<String> list = new ArrayList<String>();\n\t\tString[] mark ={\"S\",\"H\",\"C\",\"D\"};\n\n\t\tfor(int i=0;i<=3;i++){\n\t\t\tfor(int j=0;j<=12;j++){\n\t\t\t\tlist.add(mark[i]+\" \"+(j+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<=n-1;i++){\n\t\t\tlist.remove(sc.nextLine());\n\t\t}\n\t\tfor(String ans:list){\n\t\t\tSystem.out.println(ans);\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 = Integer.parseInt(sc.nextLine());\n\t\tList<String> list = new ArrayList<String>();\n\t\tString[] mark ={\"S\",\"H\",\"C\",\"D\"};\n\n\t\tfor(int i=0;i<=3;i++){\n\t\t\tfor(int j=0;j<=12;j++){\n\t\t\t\tlist.add(mark[i]+\" \"+(j+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<=n-1;i++){\n\t\t\tlist.remove(sc.nextLine());\n\t\t}\n\t\tfor(String ans:list){\n\t\t\tSystem.out.println(ans);\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 sc = new Scanner(System.in);
int n = Integer.parseInt(sc.nextLine());
List<String> list = new ArrayList<String>();
String[] mark ={"S","H","C","D"};
for(int i=0;i<=3;i++){
for(int j=0;j<=12;j++){
list.add(mark[i]+" "+(j+1));
}
}
for(int i=0;i<=n-1;i++){
list.remove(sc.nextLine());
}
for(String ans:list){
System.out.println(ans);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
17,
17,
41,
13,
39,
17,
17,
17,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
17,
41,
13,
20,
41,
13,
17,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
35,
13,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
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,
14,
2,
18,
18,
13,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
2,
13,
17,
4,
18,
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,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
16,
18
],
[
16,
19
],
[
16,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
27,
37
],
[
37,
38
],
[
38,
39
],
[
27,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
42,
54
],
[
54,
55
],
[
55,
56
],
[
42,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
59,
65
],
[
8,
66
],
[
66,
67
],
[
66,
68
],
[
8,
69
],
[
69,
70
],
[
69,
71
],
[
8,
72
],
[
72,
73
],
[
72,
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
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
89,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
89,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
110,
112
],
[
105,
113
],
[
104,
114
],
[
100,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
123,
125
],
[
118,
126
],
[
117,
127
],
[
100,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
136,
137
],
[
136,
138
],
[
131,
139
],
[
130,
140
],
[
100,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
149,
150
],
[
149,
151
],
[
144,
152
],
[
143,
153
],
[
8,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
161,
163
],
[
154,
164
],
[
164,
165
],
[
165,
166
],
[
154,
167
],
[
168,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
169,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
176,
180
],
[
169,
181
],
[
181,
182
],
[
182,
183
],
[
169,
184
],
[
185,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
188,
192
],
[
187,
193
],
[
186,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
195,
200
],
[
201,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
201,
206
],
[
206,
207
],
[
206,
208
],
[
8,
209
],
[
209,
210
],
[
210,
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\n\t\tint[][] card = new int[4][13];\n\t\tString[] card_symbol = { \"S\" , \"H\" , \"C\" , \"D\" };\n\t\tString in_symbol=\"\";\n\t\tint in_num=0;\n\n \t//初期化\n \tfor( int i = 0 ; i < card.length ; i++ ) {\n \t\tfor ( int j = 0 ; j < card[i].length ; j++ ) {\n \t\t\tcard[i][j] = 0;\n \t\t}\n\n \t}\n\n \tScanner sc= new Scanner( System.in );\n \tint card_num = 0;\n \tcard_num = sc.nextInt();\n\n\n \tfor ( int i = 0 ; i < card_num ; i++ ) {\n \t\tin_symbol = sc.next();\n \t\tin_num = sc.nextInt();\n\n \tswitch( in_symbol ) {\n \t\tcase \"S\":\n \t\t\tcard[0][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"H\":\n \t\t\tcard[1][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"C\":\n \t\t\tcard[2][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"D\":\n \t\t\tcard[3][in_num-1] = 1;\n \t\t\tbreak;\n \t}\n \t}\n\n \tfor( int i = 0 ; i < card.length ; i++ ) {\n \t\tfor ( int j = 0 ; j < card[i].length ; j++ ) {\n \t\t\tif( card[i][j] == 0 ) {\n \t\t\t\tSystem.out.println( card_symbol[i] + \" \" + ( j + 1 ) );\n \t\t\t}\n \t\t}\n \t}\n \tsc.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint[][] card = new int[4][13];\n\t\tString[] card_symbol = { \"S\" , \"H\" , \"C\" , \"D\" };\n\t\tString in_symbol=\"\";\n\t\tint in_num=0;\n\n \t//初期化\n \tfor( int i = 0 ; i < card.length ; i++ ) {\n \t\tfor ( int j = 0 ; j < card[i].length ; j++ ) {\n \t\t\tcard[i][j] = 0;\n \t\t}\n\n \t}\n\n \tScanner sc= new Scanner( System.in );\n \tint card_num = 0;\n \tcard_num = sc.nextInt();\n\n\n \tfor ( int i = 0 ; i < card_num ; i++ ) {\n \t\tin_symbol = sc.next();\n \t\tin_num = sc.nextInt();\n\n \tswitch( in_symbol ) {\n \t\tcase \"S\":\n \t\t\tcard[0][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"H\":\n \t\t\tcard[1][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"C\":\n \t\t\tcard[2][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"D\":\n \t\t\tcard[3][in_num-1] = 1;\n \t\t\tbreak;\n \t}\n \t}\n\n \tfor( int i = 0 ; i < card.length ; i++ ) {\n \t\tfor ( int j = 0 ; j < card[i].length ; j++ ) {\n \t\t\tif( card[i][j] == 0 ) {\n \t\t\t\tSystem.out.println( card_symbol[i] + \" \" + ( j + 1 ) );\n \t\t\t}\n \t\t}\n \t}\n \tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tint[][] card = new int[4][13];\n\t\tString[] card_symbol = { \"S\" , \"H\" , \"C\" , \"D\" };\n\t\tString in_symbol=\"\";\n\t\tint in_num=0;\n\n \t//初期化\n \tfor( int i = 0 ; i < card.length ; i++ ) {\n \t\tfor ( int j = 0 ; j < card[i].length ; j++ ) {\n \t\t\tcard[i][j] = 0;\n \t\t}\n\n \t}\n\n \tScanner sc= new Scanner( System.in );\n \tint card_num = 0;\n \tcard_num = sc.nextInt();\n\n\n \tfor ( int i = 0 ; i < card_num ; i++ ) {\n \t\tin_symbol = sc.next();\n \t\tin_num = sc.nextInt();\n\n \tswitch( in_symbol ) {\n \t\tcase \"S\":\n \t\t\tcard[0][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"H\":\n \t\t\tcard[1][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"C\":\n \t\t\tcard[2][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"D\":\n \t\t\tcard[3][in_num-1] = 1;\n \t\t\tbreak;\n \t}\n \t}\n\n \tfor( int i = 0 ; i < card.length ; i++ ) {\n \t\tfor ( int j = 0 ; j < card[i].length ; j++ ) {\n \t\t\tif( card[i][j] == 0 ) {\n \t\t\t\tSystem.out.println( card_symbol[i] + \" \" + ( j + 1 ) );\n \t\t\t}\n \t\t}\n \t}\n \tsc.close();\n\t}",
"main",
"{\n\n\t\tint[][] card = new int[4][13];\n\t\tString[] card_symbol = { \"S\" , \"H\" , \"C\" , \"D\" };\n\t\tString in_symbol=\"\";\n\t\tint in_num=0;\n\n \t//初期化\n \tfor( int i = 0 ; i < card.length ; i++ ) {\n \t\tfor ( int j = 0 ; j < card[i].length ; j++ ) {\n \t\t\tcard[i][j] = 0;\n \t\t}\n\n \t}\n\n \tScanner sc= new Scanner( System.in );\n \tint card_num = 0;\n \tcard_num = sc.nextInt();\n\n\n \tfor ( int i = 0 ; i < card_num ; i++ ) {\n \t\tin_symbol = sc.next();\n \t\tin_num = sc.nextInt();\n\n \tswitch( in_symbol ) {\n \t\tcase \"S\":\n \t\t\tcard[0][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"H\":\n \t\t\tcard[1][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"C\":\n \t\t\tcard[2][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"D\":\n \t\t\tcard[3][in_num-1] = 1;\n \t\t\tbreak;\n \t}\n \t}\n\n \tfor( int i = 0 ; i < card.length ; i++ ) {\n \t\tfor ( int j = 0 ; j < card[i].length ; j++ ) {\n \t\t\tif( card[i][j] == 0 ) {\n \t\t\t\tSystem.out.println( card_symbol[i] + \" \" + ( j + 1 ) );\n \t\t\t}\n \t\t}\n \t}\n \tsc.close();\n\t}",
"int[][] card = new int[4][13];",
"card",
"new int[4][13]",
"4",
"13",
"String[] card_symbol = { \"S\" , \"H\" , \"C\" , \"D\" };",
"card_symbol",
"{ \"S\" , \"H\" , \"C\" , \"D\" }",
"\"S\"",
"\"H\"",
"\"C\"",
"\"D\"",
"String in_symbol=\"\";",
"in_symbol",
"\"\"",
"int in_num=0;",
"in_num",
"0",
"for( int i = 0 ; i < card.length ; i++ ) {\n \t\tfor ( int j = 0 ; j < card[i].length ; j++ ) {\n \t\t\tcard[i][j] = 0;\n \t\t}\n\n \t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < card.length",
"i",
"card.length",
"card",
"card.length",
"i++",
"i++",
"i",
"{\n \t\tfor ( int j = 0 ; j < card[i].length ; j++ ) {\n \t\t\tcard[i][j] = 0;\n \t\t}\n\n \t}",
"{\n \t\tfor ( int j = 0 ; j < card[i].length ; j++ ) {\n \t\t\tcard[i][j] = 0;\n \t\t}\n\n \t}",
"for ( int j = 0 ; j < card[i].length ; j++ ) {\n \t\t\tcard[i][j] = 0;\n \t\t}",
"int j = 0 ;",
"int j = 0 ;",
"j",
"0",
"j < card[i].length",
"j",
"card[i].length",
"card[i]",
"card",
"i",
"card[i].length",
"j++",
"j++",
"j",
"{\n \t\t\tcard[i][j] = 0;\n \t\t}",
"{\n \t\t\tcard[i][j] = 0;\n \t\t}",
"card[i][j] = 0",
"card[i][j]",
"card[i]",
"card",
"i",
"j",
"0",
"Scanner sc= new Scanner( System.in );",
"sc",
"new Scanner( System.in )",
"int card_num = 0;",
"card_num",
"0",
"card_num = sc.nextInt()",
"card_num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for ( int i = 0 ; i < card_num ; i++ ) {\n \t\tin_symbol = sc.next();\n \t\tin_num = sc.nextInt();\n\n \tswitch( in_symbol ) {\n \t\tcase \"S\":\n \t\t\tcard[0][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"H\":\n \t\t\tcard[1][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"C\":\n \t\t\tcard[2][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"D\":\n \t\t\tcard[3][in_num-1] = 1;\n \t\t\tbreak;\n \t}\n \t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < card_num",
"i",
"card_num",
"i++",
"i++",
"i",
"{\n \t\tin_symbol = sc.next();\n \t\tin_num = sc.nextInt();\n\n \tswitch( in_symbol ) {\n \t\tcase \"S\":\n \t\t\tcard[0][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"H\":\n \t\t\tcard[1][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"C\":\n \t\t\tcard[2][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"D\":\n \t\t\tcard[3][in_num-1] = 1;\n \t\t\tbreak;\n \t}\n \t}",
"{\n \t\tin_symbol = sc.next();\n \t\tin_num = sc.nextInt();\n\n \tswitch( in_symbol ) {\n \t\tcase \"S\":\n \t\t\tcard[0][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"H\":\n \t\t\tcard[1][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"C\":\n \t\t\tcard[2][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"D\":\n \t\t\tcard[3][in_num-1] = 1;\n \t\t\tbreak;\n \t}\n \t}",
"in_symbol = sc.next()",
"in_symbol",
"sc.next()",
"sc.next",
"sc",
"in_num = sc.nextInt()",
"in_num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"switch( in_symbol ) {\n \t\tcase \"S\":\n \t\t\tcard[0][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"H\":\n \t\t\tcard[1][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"C\":\n \t\t\tcard[2][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"D\":\n \t\t\tcard[3][in_num-1] = 1;\n \t\t\tbreak;\n \t}",
"in_symbol",
"case \"S\":",
"\"S\"",
"case \"S\":",
"card[0][in_num-1] = 1",
"card[0][in_num-1]",
"card[0]",
"card",
"0",
"in_num-1",
"in_num",
"1",
"1",
"break;",
"case \"H\":",
"\"H\"",
"case \"H\":",
"card[1][in_num-1] = 1",
"card[1][in_num-1]",
"card[1]",
"card",
"1",
"in_num-1",
"in_num",
"1",
"1",
"break;",
"case \"C\":",
"\"C\"",
"case \"C\":",
"card[2][in_num-1] = 1",
"card[2][in_num-1]",
"card[2]",
"card",
"2",
"in_num-1",
"in_num",
"1",
"1",
"break;",
"case \"D\":",
"\"D\"",
"case \"D\":",
"card[3][in_num-1] = 1",
"card[3][in_num-1]",
"card[3]",
"card",
"3",
"in_num-1",
"in_num",
"1",
"1",
"break;",
"for( int i = 0 ; i < card.length ; i++ ) {\n \t\tfor ( int j = 0 ; j < card[i].length ; j++ ) {\n \t\t\tif( card[i][j] == 0 ) {\n \t\t\t\tSystem.out.println( card_symbol[i] + \" \" + ( j + 1 ) );\n \t\t\t}\n \t\t}\n \t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < card.length",
"i",
"card.length",
"card",
"card.length",
"i++",
"i++",
"i",
"{\n \t\tfor ( int j = 0 ; j < card[i].length ; j++ ) {\n \t\t\tif( card[i][j] == 0 ) {\n \t\t\t\tSystem.out.println( card_symbol[i] + \" \" + ( j + 1 ) );\n \t\t\t}\n \t\t}\n \t}",
"{\n \t\tfor ( int j = 0 ; j < card[i].length ; j++ ) {\n \t\t\tif( card[i][j] == 0 ) {\n \t\t\t\tSystem.out.println( card_symbol[i] + \" \" + ( j + 1 ) );\n \t\t\t}\n \t\t}\n \t}",
"for ( int j = 0 ; j < card[i].length ; j++ ) {\n \t\t\tif( card[i][j] == 0 ) {\n \t\t\t\tSystem.out.println( card_symbol[i] + \" \" + ( j + 1 ) );\n \t\t\t}\n \t\t}",
"int j = 0 ;",
"int j = 0 ;",
"j",
"0",
"j < card[i].length",
"j",
"card[i].length",
"card[i]",
"card",
"i",
"card[i].length",
"j++",
"j++",
"j",
"{\n \t\t\tif( card[i][j] == 0 ) {\n \t\t\t\tSystem.out.println( card_symbol[i] + \" \" + ( j + 1 ) );\n \t\t\t}\n \t\t}",
"{\n \t\t\tif( card[i][j] == 0 ) {\n \t\t\t\tSystem.out.println( card_symbol[i] + \" \" + ( j + 1 ) );\n \t\t\t}\n \t\t}",
"if( card[i][j] == 0 ) {\n \t\t\t\tSystem.out.println( card_symbol[i] + \" \" + ( j + 1 ) );\n \t\t\t}",
"card[i][j] == 0",
"card[i][j]",
"card[i]",
"card",
"i",
"j",
"0",
"{\n \t\t\t\tSystem.out.println( card_symbol[i] + \" \" + ( j + 1 ) );\n \t\t\t}",
"System.out.println( card_symbol[i] + \" \" + ( j + 1 ) )",
"System.out.println",
"System.out",
"System",
"System.out",
"card_symbol[i] + \" \" + ( j + 1 )",
"card_symbol[i] + \" \" + ( j + 1 )",
"card_symbol[i]",
"card_symbol",
"i",
"\" \"",
"( j + 1 )",
"j",
"1",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint[][] card = new int[4][13];\n\t\tString[] card_symbol = { \"S\" , \"H\" , \"C\" , \"D\" };\n\t\tString in_symbol=\"\";\n\t\tint in_num=0;\n\n \t//初期化\n \tfor( int i = 0 ; i < card.length ; i++ ) {\n \t\tfor ( int j = 0 ; j < card[i].length ; j++ ) {\n \t\t\tcard[i][j] = 0;\n \t\t}\n\n \t}\n\n \tScanner sc= new Scanner( System.in );\n \tint card_num = 0;\n \tcard_num = sc.nextInt();\n\n\n \tfor ( int i = 0 ; i < card_num ; i++ ) {\n \t\tin_symbol = sc.next();\n \t\tin_num = sc.nextInt();\n\n \tswitch( in_symbol ) {\n \t\tcase \"S\":\n \t\t\tcard[0][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"H\":\n \t\t\tcard[1][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"C\":\n \t\t\tcard[2][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"D\":\n \t\t\tcard[3][in_num-1] = 1;\n \t\t\tbreak;\n \t}\n \t}\n\n \tfor( int i = 0 ; i < card.length ; i++ ) {\n \t\tfor ( int j = 0 ; j < card[i].length ; j++ ) {\n \t\t\tif( card[i][j] == 0 ) {\n \t\t\t\tSystem.out.println( card_symbol[i] + \" \" + ( j + 1 ) );\n \t\t\t}\n \t\t}\n \t}\n \tsc.close();\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint[][] card = new int[4][13];\n\t\tString[] card_symbol = { \"S\" , \"H\" , \"C\" , \"D\" };\n\t\tString in_symbol=\"\";\n\t\tint in_num=0;\n\n \t//初期化\n \tfor( int i = 0 ; i < card.length ; i++ ) {\n \t\tfor ( int j = 0 ; j < card[i].length ; j++ ) {\n \t\t\tcard[i][j] = 0;\n \t\t}\n\n \t}\n\n \tScanner sc= new Scanner( System.in );\n \tint card_num = 0;\n \tcard_num = sc.nextInt();\n\n\n \tfor ( int i = 0 ; i < card_num ; i++ ) {\n \t\tin_symbol = sc.next();\n \t\tin_num = sc.nextInt();\n\n \tswitch( in_symbol ) {\n \t\tcase \"S\":\n \t\t\tcard[0][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"H\":\n \t\t\tcard[1][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"C\":\n \t\t\tcard[2][in_num-1] = 1;\n \t\t\tbreak;\n \t\tcase \"D\":\n \t\t\tcard[3][in_num-1] = 1;\n \t\t\tbreak;\n \t}\n \t}\n\n \tfor( int i = 0 ; i < card.length ; i++ ) {\n \t\tfor ( int j = 0 ; j < card[i].length ; j++ ) {\n \t\t\tif( card[i][j] == 0 ) {\n \t\t\t\tSystem.out.println( card_symbol[i] + \" \" + ( j + 1 ) );\n \t\t\t}\n \t\t}\n \t}\n \tsc.close();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int[][] card = new int[4][13];
String[] card_symbol = { "S" , "H" , "C" , "D" };
String in_symbol="";
int in_num=0;
//初期化
for( int i = 0 ; i < card.length ; i++ ) {
for ( int j = 0 ; j < card[i].length ; j++ ) {
card[i][j] = 0;
}
}
Scanner sc= new Scanner( System.in );
int card_num = 0;
card_num = sc.nextInt();
for ( int i = 0 ; i < card_num ; i++ ) {
in_symbol = sc.next();
in_num = sc.nextInt();
switch( in_symbol ) {
case "S":
card[0][in_num-1] = 1;
break;
case "H":
card[1][in_num-1] = 1;
break;
case "C":
card[2][in_num-1] = 1;
break;
case "D":
card[3][in_num-1] = 1;
break;
}
}
for( int i = 0 ; i < card.length ; i++ ) {
for ( int j = 0 ; j < card[i].length ; j++ ) {
if( card[i][j] == 0 ) {
System.out.println( card_symbol[i] + " " + ( j + 1 ) );
}
}
}
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
20,
41,
13,
20,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
4,
18,
13,
2,
17,
13,
30,
4,
18,
18,
13,
13,
2,
17,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
4,
18,
13,
2,
17,
13,
30,
4,
18,
18,
13,
13,
2,
17,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
4,
18,
13,
2,
17,
13,
30,
4,
18,
18,
13,
13,
2,
17,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
4,
18,
13,
2,
17,
13,
30,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
17,
19
],
[
14,
20
],
[
20,
21
],
[
20,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
45,
46
],
[
14,
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
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
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
],
[
93,
94
],
[
92,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
14,
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
],
[
123,
124
],
[
122,
125
],
[
125,
126
],
[
125,
127
],
[
120,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
14,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
142,
143
],
[
142,
144
],
[
137,
145
],
[
145,
146
],
[
146,
147
],
[
137,
148
],
[
149,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
152,
155
],
[
155,
156
],
[
155,
157
],
[
150,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
159,
164
],
[
164,
165
],
[
164,
166
],
[
12,
167
],
[
167,
168
]
] | [
"import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint n;\n\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tList<String> cards = new ArrayList<>();\n\n\t\tn = stdIn.nextInt();\n\n\t\tfor(int i = 0; i <= n; i++) {\n\t\t\tcards.add(stdIn.nextLine());\n\t\t}\n\n\t\tfor(int i = 1; i < 14; i++) {\n\t\t\tif(!(cards.contains(\"S \" + i))) {\n\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 1; i < 14; i++) {\n\t\t\tif(!(cards.contains(\"H \" + i))) {\n\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 1; i < 14; i++) {\n\t\t\tif(!(cards.contains(\"C \" + i))) {\n\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 1; i < 14; i++) {\n\t\t\tif(!(cards.contains(\"D \" + i))) {\n\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t}\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",
"class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint n;\n\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tList<String> cards = new ArrayList<>();\n\n\t\tn = stdIn.nextInt();\n\n\t\tfor(int i = 0; i <= n; i++) {\n\t\t\tcards.add(stdIn.nextLine());\n\t\t}\n\n\t\tfor(int i = 1; i < 14; i++) {\n\t\t\tif(!(cards.contains(\"S \" + i))) {\n\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 1; i < 14; i++) {\n\t\t\tif(!(cards.contains(\"H \" + i))) {\n\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 1; i < 14; i++) {\n\t\t\tif(!(cards.contains(\"C \" + i))) {\n\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 1; i < 14; i++) {\n\t\t\tif(!(cards.contains(\"D \" + i))) {\n\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tint n;\n\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tList<String> cards = new ArrayList<>();\n\n\t\tn = stdIn.nextInt();\n\n\t\tfor(int i = 0; i <= n; i++) {\n\t\t\tcards.add(stdIn.nextLine());\n\t\t}\n\n\t\tfor(int i = 1; i < 14; i++) {\n\t\t\tif(!(cards.contains(\"S \" + i))) {\n\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 1; i < 14; i++) {\n\t\t\tif(!(cards.contains(\"H \" + i))) {\n\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 1; i < 14; i++) {\n\t\t\tif(!(cards.contains(\"C \" + i))) {\n\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 1; i < 14; i++) {\n\t\t\tif(!(cards.contains(\"D \" + i))) {\n\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\n\t\tint n;\n\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tList<String> cards = new ArrayList<>();\n\n\t\tn = stdIn.nextInt();\n\n\t\tfor(int i = 0; i <= n; i++) {\n\t\t\tcards.add(stdIn.nextLine());\n\t\t}\n\n\t\tfor(int i = 1; i < 14; i++) {\n\t\t\tif(!(cards.contains(\"S \" + i))) {\n\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 1; i < 14; i++) {\n\t\t\tif(!(cards.contains(\"H \" + i))) {\n\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 1; i < 14; i++) {\n\t\t\tif(!(cards.contains(\"C \" + i))) {\n\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 1; i < 14; i++) {\n\t\t\tif(!(cards.contains(\"D \" + i))) {\n\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t}\n\t\t}\n\t}",
"int n;",
"n",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"List<String> cards = new ArrayList<>();",
"cards",
"new ArrayList<>()",
"n = stdIn.nextInt()",
"n",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"for(int i = 0; i <= n; i++) {\n\t\t\tcards.add(stdIn.nextLine());\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tcards.add(stdIn.nextLine());\n\t\t}",
"{\n\t\t\tcards.add(stdIn.nextLine());\n\t\t}",
"cards.add(stdIn.nextLine())",
"cards.add",
"cards",
"stdIn.nextLine()",
"stdIn.nextLine",
"stdIn",
"for(int i = 1; i < 14; i++) {\n\t\t\tif(!(cards.contains(\"S \" + i))) {\n\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < 14",
"i",
"14",
"i++",
"i++",
"i",
"{\n\t\t\tif(!(cards.contains(\"S \" + i))) {\n\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(!(cards.contains(\"S \" + i))) {\n\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t}\n\t\t}",
"if(!(cards.contains(\"S \" + i))) {\n\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t}",
"!(cards.contains(\"S \" + i))",
"(cards.contains(\"S \" + i))",
"cards.contains",
"cards",
"\"S \" + i",
"\"S \"",
"i",
"{\n\t\t\t\tSystem.out.println(\"S \" + i);\n\t\t\t}",
"System.out.println(\"S \" + i)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \" + i",
"\"S \"",
"i",
"for(int i = 1; i < 14; i++) {\n\t\t\tif(!(cards.contains(\"H \" + i))) {\n\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < 14",
"i",
"14",
"i++",
"i++",
"i",
"{\n\t\t\tif(!(cards.contains(\"H \" + i))) {\n\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(!(cards.contains(\"H \" + i))) {\n\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t}\n\t\t}",
"if(!(cards.contains(\"H \" + i))) {\n\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t}",
"!(cards.contains(\"H \" + i))",
"(cards.contains(\"H \" + i))",
"cards.contains",
"cards",
"\"H \" + i",
"\"H \"",
"i",
"{\n\t\t\t\tSystem.out.println(\"H \" + i);\n\t\t\t}",
"System.out.println(\"H \" + i)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \" + i",
"\"H \"",
"i",
"for(int i = 1; i < 14; i++) {\n\t\t\tif(!(cards.contains(\"C \" + i))) {\n\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < 14",
"i",
"14",
"i++",
"i++",
"i",
"{\n\t\t\tif(!(cards.contains(\"C \" + i))) {\n\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(!(cards.contains(\"C \" + i))) {\n\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t}\n\t\t}",
"if(!(cards.contains(\"C \" + i))) {\n\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t}",
"!(cards.contains(\"C \" + i))",
"(cards.contains(\"C \" + i))",
"cards.contains",
"cards",
"\"C \" + i",
"\"C \"",
"i",
"{\n\t\t\t\tSystem.out.println(\"C \" + i);\n\t\t\t}",
"System.out.println(\"C \" + i)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \" + i",
"\"C \"",
"i",
"for(int i = 1; i < 14; i++) {\n\t\t\tif(!(cards.contains(\"D \" + i))) {\n\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < 14",
"i",
"14",
"i++",
"i++",
"i",
"{\n\t\t\tif(!(cards.contains(\"D \" + i))) {\n\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(!(cards.contains(\"D \" + i))) {\n\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t}\n\t\t}",
"if(!(cards.contains(\"D \" + i))) {\n\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t}",
"!(cards.contains(\"D \" + i))",
"(cards.contains(\"D \" + i))",
"cards.contains",
"cards",
"\"D \" + i",
"\"D \"",
"i",
"{\n\t\t\t\tSystem.out.println(\"D \" + i);\n\t\t\t}",
"System.out.println(\"D \" + i)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \" + i",
"\"D \"",
"i",
"String[] args",
"args"
] | import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
class Main {
public static void main(String[] args) {
int n;
Scanner stdIn = new Scanner(System.in);
List<String> cards = new ArrayList<>();
n = stdIn.nextInt();
for(int i = 0; i <= n; i++) {
cards.add(stdIn.nextLine());
}
for(int i = 1; i < 14; i++) {
if(!(cards.contains("S " + i))) {
System.out.println("S " + i);
}
}
for(int i = 1; i < 14; i++) {
if(!(cards.contains("H " + i))) {
System.out.println("H " + i);
}
}
for(int i = 1; i < 14; i++) {
if(!(cards.contains("C " + i))) {
System.out.println("C " + i);
}
}
for(int i = 1; i < 14; i++) {
if(!(cards.contains("D " + i))) {
System.out.println("D " + i);
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
48,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
48,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
63,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
63,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
78,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
89,
91
],
[
84,
92
],
[
78,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
93,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
104,
105
],
[
104,
106
],
[
99,
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
],
[
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
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
135,
141
],
[
134,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
155,
157
],
[
143,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
170,
172
],
[
158,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
173,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
178,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
185,
187
],
[
173,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
188,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
193,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
200,
202
],
[
9,
203
],
[
203,
204
]
] | [
"import java.util.Scanner;\nimport java.util.Arrays;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tboolean[][] numbers = new boolean[4][13];\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString mark = scanner.next();\n\t\t\tint card = scanner.nextInt();\n\t\t\tif(mark.equals(\"S\")){\n\t\t\t\tnumbers[0][card-1] = true;\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tnumbers[1][card-1] = true;\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tnumbers[2][card-1] = true;\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tnumbers[3][card-1] = true;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 13; j++){\n\t\t\t\tif(numbers[i][j] == false){\n\t\t\t\t\tif(i==0){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t}else if(i==1){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t}else if(i==2){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t}else if(i==3){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\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",
"import java.util.Arrays;",
"Arrays",
"java.util",
"class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tboolean[][] numbers = new boolean[4][13];\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString mark = scanner.next();\n\t\t\tint card = scanner.nextInt();\n\t\t\tif(mark.equals(\"S\")){\n\t\t\t\tnumbers[0][card-1] = true;\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tnumbers[1][card-1] = true;\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tnumbers[2][card-1] = true;\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tnumbers[3][card-1] = true;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 13; j++){\n\t\t\t\tif(numbers[i][j] == false){\n\t\t\t\t\tif(i==0){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t}else if(i==1){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t}else if(i==2){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t}else if(i==3){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tboolean[][] numbers = new boolean[4][13];\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString mark = scanner.next();\n\t\t\tint card = scanner.nextInt();\n\t\t\tif(mark.equals(\"S\")){\n\t\t\t\tnumbers[0][card-1] = true;\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tnumbers[1][card-1] = true;\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tnumbers[2][card-1] = true;\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tnumbers[3][card-1] = true;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 13; j++){\n\t\t\t\tif(numbers[i][j] == false){\n\t\t\t\t\tif(i==0){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t}else if(i==1){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t}else if(i==2){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t}else if(i==3){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tboolean[][] numbers = new boolean[4][13];\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString mark = scanner.next();\n\t\t\tint card = scanner.nextInt();\n\t\t\tif(mark.equals(\"S\")){\n\t\t\t\tnumbers[0][card-1] = true;\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tnumbers[1][card-1] = true;\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tnumbers[2][card-1] = true;\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tnumbers[3][card-1] = true;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 13; j++){\n\t\t\t\tif(numbers[i][j] == false){\n\t\t\t\t\tif(i==0){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t}else if(i==1){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t}else if(i==2){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t}else if(i==3){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"boolean[][] numbers = new boolean[4][13];",
"numbers",
"new boolean[4][13]",
"4",
"13",
"for(int i = 0; i < n; i++){\n\t\t\tString mark = scanner.next();\n\t\t\tint card = scanner.nextInt();\n\t\t\tif(mark.equals(\"S\")){\n\t\t\t\tnumbers[0][card-1] = true;\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tnumbers[1][card-1] = true;\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tnumbers[2][card-1] = true;\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tnumbers[3][card-1] = true;\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 mark = scanner.next();\n\t\t\tint card = scanner.nextInt();\n\t\t\tif(mark.equals(\"S\")){\n\t\t\t\tnumbers[0][card-1] = true;\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tnumbers[1][card-1] = true;\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tnumbers[2][card-1] = true;\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tnumbers[3][card-1] = true;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString mark = scanner.next();\n\t\t\tint card = scanner.nextInt();\n\t\t\tif(mark.equals(\"S\")){\n\t\t\t\tnumbers[0][card-1] = true;\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tnumbers[1][card-1] = true;\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tnumbers[2][card-1] = true;\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tnumbers[3][card-1] = true;\n\t\t\t}\n\t\t}",
"String mark = scanner.next();",
"mark",
"scanner.next()",
"scanner.next",
"scanner",
"int card = scanner.nextInt();",
"card",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"if(mark.equals(\"S\")){\n\t\t\t\tnumbers[0][card-1] = true;\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tnumbers[1][card-1] = true;\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tnumbers[2][card-1] = true;\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tnumbers[3][card-1] = true;\n\t\t\t}",
"mark.equals(\"S\")",
"mark.equals",
"mark",
"\"S\"",
"{\n\t\t\t\tnumbers[0][card-1] = true;\n\t\t\t}",
"numbers[0][card-1] = true",
"numbers[0][card-1]",
"numbers[0]",
"numbers",
"0",
"card-1",
"card",
"1",
"true",
"if(mark.equals(\"H\")){\n\t\t\t\tnumbers[1][card-1] = true;\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tnumbers[2][card-1] = true;\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tnumbers[3][card-1] = true;\n\t\t\t}",
"mark.equals(\"H\")",
"mark.equals",
"mark",
"\"H\"",
"{\n\t\t\t\tnumbers[1][card-1] = true;\n\t\t\t}",
"numbers[1][card-1] = true",
"numbers[1][card-1]",
"numbers[1]",
"numbers",
"1",
"card-1",
"card",
"1",
"true",
"if(mark.equals(\"C\")){\n\t\t\t\tnumbers[2][card-1] = true;\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tnumbers[3][card-1] = true;\n\t\t\t}",
"mark.equals(\"C\")",
"mark.equals",
"mark",
"\"C\"",
"{\n\t\t\t\tnumbers[2][card-1] = true;\n\t\t\t}",
"numbers[2][card-1] = true",
"numbers[2][card-1]",
"numbers[2]",
"numbers",
"2",
"card-1",
"card",
"1",
"true",
"if(mark.equals(\"D\")){\n\t\t\t\tnumbers[3][card-1] = true;\n\t\t\t}",
"mark.equals(\"D\")",
"mark.equals",
"mark",
"\"D\"",
"{\n\t\t\t\tnumbers[3][card-1] = true;\n\t\t\t}",
"numbers[3][card-1] = true",
"numbers[3][card-1]",
"numbers[3]",
"numbers",
"3",
"card-1",
"card",
"1",
"true",
"for(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 13; j++){\n\t\t\t\tif(numbers[i][j] == false){\n\t\t\t\t\tif(i==0){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t}else if(i==1){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t}else if(i==2){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t}else if(i==3){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\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 < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < 13; j++){\n\t\t\t\tif(numbers[i][j] == false){\n\t\t\t\t\tif(i==0){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t}else if(i==1){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t}else if(i==2){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t}else if(i==3){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < 13; j++){\n\t\t\t\tif(numbers[i][j] == false){\n\t\t\t\t\tif(i==0){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t}else if(i==1){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t}else if(i==2){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t}else if(i==3){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int j = 0; j < 13; j++){\n\t\t\t\tif(numbers[i][j] == false){\n\t\t\t\t\tif(i==0){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t}else if(i==1){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t}else if(i==2){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t}else if(i==3){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(numbers[i][j] == false){\n\t\t\t\t\tif(i==0){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t}else if(i==1){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t}else if(i==2){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t}else if(i==3){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(numbers[i][j] == false){\n\t\t\t\t\tif(i==0){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t}else if(i==1){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t}else if(i==2){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t}else if(i==3){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"if(numbers[i][j] == false){\n\t\t\t\t\tif(i==0){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t}else if(i==1){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t}else if(i==2){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t}else if(i==3){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}",
"numbers[i][j] == false",
"numbers[i][j]",
"numbers[i]",
"numbers",
"i",
"j",
"false",
"{\n\t\t\t\t\tif(i==0){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t}else if(i==1){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t}else if(i==2){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t}else if(i==3){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}",
"if(i==0){\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t}else if(i==1){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t}else if(i==2){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t}else if(i==3){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}",
"i==0",
"i",
"0",
"{\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j + 1));\n\t\t\t\t\t}",
"System.out.println(\"S \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \" + (j + 1)",
"\"S \"",
"(j + 1)",
"j",
"1",
"if(i==1){\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t}else if(i==2){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t}else if(i==3){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}",
"i==1",
"i",
"1",
"{\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j + 1));\n\t\t\t\t\t}",
"System.out.println(\"H \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \" + (j + 1)",
"\"H \"",
"(j + 1)",
"j",
"1",
"if(i==2){\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t}else if(i==3){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}",
"i==2",
"i",
"2",
"{\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j + 1));\n\t\t\t\t\t}",
"System.out.println(\"C \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \" + (j + 1)",
"\"C \"",
"(j + 1)",
"j",
"1",
"if(i==3){\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}",
"i==3",
"i",
"3",
"{\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j + 1));\n\t\t\t\t\t}",
"System.out.println(\"D \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \" + (j + 1)",
"\"D \"",
"(j + 1)",
"j",
"1",
"String[] args",
"args"
] | import java.util.Scanner;
import java.util.Arrays;
class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
boolean[][] numbers = new boolean[4][13];
for(int i = 0; i < n; i++){
String mark = scanner.next();
int card = scanner.nextInt();
if(mark.equals("S")){
numbers[0][card-1] = true;
}else if(mark.equals("H")){
numbers[1][card-1] = true;
}else if(mark.equals("C")){
numbers[2][card-1] = true;
}else if(mark.equals("D")){
numbers[3][card-1] = true;
}
}
for(int i = 0; i < 4; i++){
for(int j = 0; j < 13; j++){
if(numbers[i][j] == false){
if(i==0){
System.out.println("S " + (j + 1));
}else if(i==1){
System.out.println("H " + (j + 1));
}else if(i==2){
System.out.println("C " + (j + 1));
}else if(i==3){
System.out.println("D " + (j + 1));
}
}
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
0,
18,
13,
13,
17,
0,
18,
13,
13,
17,
0,
18,
13,
13,
17,
41,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
0,
18,
13,
2,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
13,
2,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
13,
2,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
13,
2,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
2,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
276,
5
],
[
276,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
45,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
45,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
8,
66
],
[
66,
67
],
[
8,
68
],
[
68,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
82,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
82,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
93,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
99,
105
],
[
93,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
106,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
115,
117
],
[
112,
118
],
[
106,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
119,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
128,
130
],
[
125,
131
],
[
119,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
132,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
141,
143
],
[
138,
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
],
[
159,
163
],
[
158,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
165,
170
],
[
171,
171
],
[
171,
172
],
[
171,
173
],
[
171,
174
],
[
174,
175
],
[
174,
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
],
[
191,
195
],
[
190,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
197,
202
],
[
203,
203
],
[
203,
204
],
[
203,
205
],
[
203,
206
],
[
206,
207
],
[
206,
208
],
[
8,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
209,
214
],
[
214,
215
],
[
214,
216
],
[
209,
217
],
[
217,
218
],
[
218,
219
],
[
209,
220
],
[
221,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
223,
227
],
[
222,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
231,
233
],
[
229,
234
],
[
235,
235
],
[
235,
236
],
[
235,
237
],
[
235,
238
],
[
238,
239
],
[
238,
240
],
[
8,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
243,
245
],
[
241,
246
],
[
246,
247
],
[
246,
248
],
[
241,
249
],
[
249,
250
],
[
250,
251
],
[
241,
252
],
[
253,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
255,
259
],
[
254,
260
],
[
260,
261
],
[
261,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
261,
266
],
[
267,
267
],
[
267,
268
],
[
267,
269
],
[
267,
270
],
[
270,
271
],
[
270,
272
],
[
6,
273
],
[
273,
274
],
[
0,
275
],
[
275,
276
],
[
275,
277
]
] | [
"import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner x = new Scanner(System.in);\n\t\tint n = x.nextInt();\n\t\tint[] s = new int[13];\n\t\tint[] h = new int[13];\n\t\tint[] c = new int[13];\n\t\tint[] d = new int[13];\n\t\tfor(int f = 0 ; f < 13 ; f++ ){\n\t\t\ts[f] = 0 ;\n\t\t\th[f] = 0 ;\n\t\t\tc[f] = 0 ;\n\t\t\td[f] = 0 ;\n\t\t}\n\t\tString mk ;\n\t\tint su;\n\t\tfor(int g = 1 ; g <= n ; g++){\n\t\t\tmk = x.next();\n\t\t\tsu = x.nextInt();\n\t\t\tif(mk.equals(\"S\")){\n\t\t\t\ts[su-1] = 1;\n\t\t\t}else if(mk.equals(\"H\")){\n\t\t\t\th[su-1] = 1;\n\t\t\t}else if(mk.equals(\"C\")){\n\t\t\t\tc[su-1] = 1;\n\t\t\t}else if(mk.equals(\"D\")){\n\t\t\t\td[su-1] = 1;\n\t\t\t}\n\t\t}\n\t\t\tfor(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(s[j] == 0){\n\t\t\t\tSystem.out.println(\"S\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(h[j] == 0){\n\t\t\t\tSystem.out.println(\"H\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(c[j] == 0){\n\t\t\t\tSystem.out.println(\"C\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(d[j] == 0){\n\t\t\t\tSystem.out.println(\"D\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\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 x = new Scanner(System.in);\n\t\tint n = x.nextInt();\n\t\tint[] s = new int[13];\n\t\tint[] h = new int[13];\n\t\tint[] c = new int[13];\n\t\tint[] d = new int[13];\n\t\tfor(int f = 0 ; f < 13 ; f++ ){\n\t\t\ts[f] = 0 ;\n\t\t\th[f] = 0 ;\n\t\t\tc[f] = 0 ;\n\t\t\td[f] = 0 ;\n\t\t}\n\t\tString mk ;\n\t\tint su;\n\t\tfor(int g = 1 ; g <= n ; g++){\n\t\t\tmk = x.next();\n\t\t\tsu = x.nextInt();\n\t\t\tif(mk.equals(\"S\")){\n\t\t\t\ts[su-1] = 1;\n\t\t\t}else if(mk.equals(\"H\")){\n\t\t\t\th[su-1] = 1;\n\t\t\t}else if(mk.equals(\"C\")){\n\t\t\t\tc[su-1] = 1;\n\t\t\t}else if(mk.equals(\"D\")){\n\t\t\t\td[su-1] = 1;\n\t\t\t}\n\t\t}\n\t\t\tfor(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(s[j] == 0){\n\t\t\t\tSystem.out.println(\"S\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(h[j] == 0){\n\t\t\t\tSystem.out.println(\"H\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(c[j] == 0){\n\t\t\t\tSystem.out.println(\"C\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(d[j] == 0){\n\t\t\t\tSystem.out.println(\"D\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner x = new Scanner(System.in);\n\t\tint n = x.nextInt();\n\t\tint[] s = new int[13];\n\t\tint[] h = new int[13];\n\t\tint[] c = new int[13];\n\t\tint[] d = new int[13];\n\t\tfor(int f = 0 ; f < 13 ; f++ ){\n\t\t\ts[f] = 0 ;\n\t\t\th[f] = 0 ;\n\t\t\tc[f] = 0 ;\n\t\t\td[f] = 0 ;\n\t\t}\n\t\tString mk ;\n\t\tint su;\n\t\tfor(int g = 1 ; g <= n ; g++){\n\t\t\tmk = x.next();\n\t\t\tsu = x.nextInt();\n\t\t\tif(mk.equals(\"S\")){\n\t\t\t\ts[su-1] = 1;\n\t\t\t}else if(mk.equals(\"H\")){\n\t\t\t\th[su-1] = 1;\n\t\t\t}else if(mk.equals(\"C\")){\n\t\t\t\tc[su-1] = 1;\n\t\t\t}else if(mk.equals(\"D\")){\n\t\t\t\td[su-1] = 1;\n\t\t\t}\n\t\t}\n\t\t\tfor(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(s[j] == 0){\n\t\t\t\tSystem.out.println(\"S\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(h[j] == 0){\n\t\t\t\tSystem.out.println(\"H\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(c[j] == 0){\n\t\t\t\tSystem.out.println(\"C\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(d[j] == 0){\n\t\t\t\tSystem.out.println(\"D\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}\n\t}",
"main",
"{\n\t\tScanner x = new Scanner(System.in);\n\t\tint n = x.nextInt();\n\t\tint[] s = new int[13];\n\t\tint[] h = new int[13];\n\t\tint[] c = new int[13];\n\t\tint[] d = new int[13];\n\t\tfor(int f = 0 ; f < 13 ; f++ ){\n\t\t\ts[f] = 0 ;\n\t\t\th[f] = 0 ;\n\t\t\tc[f] = 0 ;\n\t\t\td[f] = 0 ;\n\t\t}\n\t\tString mk ;\n\t\tint su;\n\t\tfor(int g = 1 ; g <= n ; g++){\n\t\t\tmk = x.next();\n\t\t\tsu = x.nextInt();\n\t\t\tif(mk.equals(\"S\")){\n\t\t\t\ts[su-1] = 1;\n\t\t\t}else if(mk.equals(\"H\")){\n\t\t\t\th[su-1] = 1;\n\t\t\t}else if(mk.equals(\"C\")){\n\t\t\t\tc[su-1] = 1;\n\t\t\t}else if(mk.equals(\"D\")){\n\t\t\t\td[su-1] = 1;\n\t\t\t}\n\t\t}\n\t\t\tfor(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(s[j] == 0){\n\t\t\t\tSystem.out.println(\"S\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(h[j] == 0){\n\t\t\t\tSystem.out.println(\"H\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(c[j] == 0){\n\t\t\t\tSystem.out.println(\"C\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(d[j] == 0){\n\t\t\t\tSystem.out.println(\"D\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}\n\t}",
"Scanner x = new Scanner(System.in);",
"x",
"new Scanner(System.in)",
"int n = x.nextInt();",
"n",
"x.nextInt()",
"x.nextInt",
"x",
"int[] s = new int[13];",
"s",
"new int[13]",
"13",
"int[] h = new int[13];",
"h",
"new int[13]",
"13",
"int[] c = new int[13];",
"c",
"new int[13]",
"13",
"int[] d = new int[13];",
"d",
"new int[13]",
"13",
"for(int f = 0 ; f < 13 ; f++ ){\n\t\t\ts[f] = 0 ;\n\t\t\th[f] = 0 ;\n\t\t\tc[f] = 0 ;\n\t\t\td[f] = 0 ;\n\t\t}",
"int f = 0 ;",
"int f = 0 ;",
"f",
"0",
"f < 13",
"f",
"13",
"f++",
"f++",
"f",
"{\n\t\t\ts[f] = 0 ;\n\t\t\th[f] = 0 ;\n\t\t\tc[f] = 0 ;\n\t\t\td[f] = 0 ;\n\t\t}",
"{\n\t\t\ts[f] = 0 ;\n\t\t\th[f] = 0 ;\n\t\t\tc[f] = 0 ;\n\t\t\td[f] = 0 ;\n\t\t}",
"s[f] = 0",
"s[f]",
"s",
"f",
"0",
"h[f] = 0",
"h[f]",
"h",
"f",
"0",
"c[f] = 0",
"c[f]",
"c",
"f",
"0",
"d[f] = 0",
"d[f]",
"d",
"f",
"0",
"String mk ;",
"mk",
"int su;",
"su",
"for(int g = 1 ; g <= n ; g++){\n\t\t\tmk = x.next();\n\t\t\tsu = x.nextInt();\n\t\t\tif(mk.equals(\"S\")){\n\t\t\t\ts[su-1] = 1;\n\t\t\t}else if(mk.equals(\"H\")){\n\t\t\t\th[su-1] = 1;\n\t\t\t}else if(mk.equals(\"C\")){\n\t\t\t\tc[su-1] = 1;\n\t\t\t}else if(mk.equals(\"D\")){\n\t\t\t\td[su-1] = 1;\n\t\t\t}\n\t\t}",
"int g = 1 ;",
"int g = 1 ;",
"g",
"1",
"g <= n",
"g",
"n",
"g++",
"g++",
"g",
"{\n\t\t\tmk = x.next();\n\t\t\tsu = x.nextInt();\n\t\t\tif(mk.equals(\"S\")){\n\t\t\t\ts[su-1] = 1;\n\t\t\t}else if(mk.equals(\"H\")){\n\t\t\t\th[su-1] = 1;\n\t\t\t}else if(mk.equals(\"C\")){\n\t\t\t\tc[su-1] = 1;\n\t\t\t}else if(mk.equals(\"D\")){\n\t\t\t\td[su-1] = 1;\n\t\t\t}\n\t\t}",
"{\n\t\t\tmk = x.next();\n\t\t\tsu = x.nextInt();\n\t\t\tif(mk.equals(\"S\")){\n\t\t\t\ts[su-1] = 1;\n\t\t\t}else if(mk.equals(\"H\")){\n\t\t\t\th[su-1] = 1;\n\t\t\t}else if(mk.equals(\"C\")){\n\t\t\t\tc[su-1] = 1;\n\t\t\t}else if(mk.equals(\"D\")){\n\t\t\t\td[su-1] = 1;\n\t\t\t}\n\t\t}",
"mk = x.next()",
"mk",
"x.next()",
"x.next",
"x",
"su = x.nextInt()",
"su",
"x.nextInt()",
"x.nextInt",
"x",
"if(mk.equals(\"S\")){\n\t\t\t\ts[su-1] = 1;\n\t\t\t}else if(mk.equals(\"H\")){\n\t\t\t\th[su-1] = 1;\n\t\t\t}else if(mk.equals(\"C\")){\n\t\t\t\tc[su-1] = 1;\n\t\t\t}else if(mk.equals(\"D\")){\n\t\t\t\td[su-1] = 1;\n\t\t\t}",
"mk.equals(\"S\")",
"mk.equals",
"mk",
"\"S\"",
"{\n\t\t\t\ts[su-1] = 1;\n\t\t\t}",
"s[su-1] = 1",
"s[su-1]",
"s",
"su-1",
"su",
"1",
"1",
"if(mk.equals(\"H\")){\n\t\t\t\th[su-1] = 1;\n\t\t\t}else if(mk.equals(\"C\")){\n\t\t\t\tc[su-1] = 1;\n\t\t\t}else if(mk.equals(\"D\")){\n\t\t\t\td[su-1] = 1;\n\t\t\t}",
"mk.equals(\"H\")",
"mk.equals",
"mk",
"\"H\"",
"{\n\t\t\t\th[su-1] = 1;\n\t\t\t}",
"h[su-1] = 1",
"h[su-1]",
"h",
"su-1",
"su",
"1",
"1",
"if(mk.equals(\"C\")){\n\t\t\t\tc[su-1] = 1;\n\t\t\t}else if(mk.equals(\"D\")){\n\t\t\t\td[su-1] = 1;\n\t\t\t}",
"mk.equals(\"C\")",
"mk.equals",
"mk",
"\"C\"",
"{\n\t\t\t\tc[su-1] = 1;\n\t\t\t}",
"c[su-1] = 1",
"c[su-1]",
"c",
"su-1",
"su",
"1",
"1",
"if(mk.equals(\"D\")){\n\t\t\t\td[su-1] = 1;\n\t\t\t}",
"mk.equals(\"D\")",
"mk.equals",
"mk",
"\"D\"",
"{\n\t\t\t\td[su-1] = 1;\n\t\t\t}",
"d[su-1] = 1",
"d[su-1]",
"d",
"su-1",
"su",
"1",
"1",
"for(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(s[j] == 0){\n\t\t\t\tSystem.out.println(\"S\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}",
"int j = 0 ;",
"int j = 0 ;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(s[j] == 0){\n\t\t\t\tSystem.out.println(\"S\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(s[j] == 0){\n\t\t\t\tSystem.out.println(\"S\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}",
"if(s[j] == 0){\n\t\t\t\tSystem.out.println(\"S\"+\" \"+ (j+1));\n\t\t\t\t}",
"s[j] == 0",
"s[j]",
"s",
"j",
"0",
"{\n\t\t\t\tSystem.out.println(\"S\"+\" \"+ (j+1));\n\t\t\t\t}",
"System.out.println(\"S\"+\" \"+ (j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S\"+\" \"+ (j+1)",
"\"S\"+\" \"+ (j+1)",
"\"S\"",
"\" \"",
"(j+1)",
"j",
"1",
"for(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(h[j] == 0){\n\t\t\t\tSystem.out.println(\"H\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}",
"int j = 0 ;",
"int j = 0 ;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(h[j] == 0){\n\t\t\t\tSystem.out.println(\"H\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(h[j] == 0){\n\t\t\t\tSystem.out.println(\"H\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}",
"if(h[j] == 0){\n\t\t\t\tSystem.out.println(\"H\"+\" \"+ (j+1));\n\t\t\t\t}",
"h[j] == 0",
"h[j]",
"h",
"j",
"0",
"{\n\t\t\t\tSystem.out.println(\"H\"+\" \"+ (j+1));\n\t\t\t\t}",
"System.out.println(\"H\"+\" \"+ (j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H\"+\" \"+ (j+1)",
"\"H\"+\" \"+ (j+1)",
"\"H\"",
"\" \"",
"(j+1)",
"j",
"1",
"for(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(c[j] == 0){\n\t\t\t\tSystem.out.println(\"C\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}",
"int j = 0 ;",
"int j = 0 ;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(c[j] == 0){\n\t\t\t\tSystem.out.println(\"C\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(c[j] == 0){\n\t\t\t\tSystem.out.println(\"C\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}",
"if(c[j] == 0){\n\t\t\t\tSystem.out.println(\"C\"+\" \"+ (j+1));\n\t\t\t\t}",
"c[j] == 0",
"c[j]",
"c",
"j",
"0",
"{\n\t\t\t\tSystem.out.println(\"C\"+\" \"+ (j+1));\n\t\t\t\t}",
"System.out.println(\"C\"+\" \"+ (j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C\"+\" \"+ (j+1)",
"\"C\"+\" \"+ (j+1)",
"\"C\"",
"\" \"",
"(j+1)",
"j",
"1",
"for(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(d[j] == 0){\n\t\t\t\tSystem.out.println(\"D\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}",
"int j = 0 ;",
"int j = 0 ;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(d[j] == 0){\n\t\t\t\tSystem.out.println(\"D\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(d[j] == 0){\n\t\t\t\tSystem.out.println(\"D\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}",
"if(d[j] == 0){\n\t\t\t\tSystem.out.println(\"D\"+\" \"+ (j+1));\n\t\t\t\t}",
"d[j] == 0",
"d[j]",
"d",
"j",
"0",
"{\n\t\t\t\tSystem.out.println(\"D\"+\" \"+ (j+1));\n\t\t\t\t}",
"System.out.println(\"D\"+\" \"+ (j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D\"+\" \"+ (j+1)",
"\"D\"+\" \"+ (j+1)",
"\"D\"",
"\" \"",
"(j+1)",
"j",
"1",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner x = new Scanner(System.in);\n\t\tint n = x.nextInt();\n\t\tint[] s = new int[13];\n\t\tint[] h = new int[13];\n\t\tint[] c = new int[13];\n\t\tint[] d = new int[13];\n\t\tfor(int f = 0 ; f < 13 ; f++ ){\n\t\t\ts[f] = 0 ;\n\t\t\th[f] = 0 ;\n\t\t\tc[f] = 0 ;\n\t\t\td[f] = 0 ;\n\t\t}\n\t\tString mk ;\n\t\tint su;\n\t\tfor(int g = 1 ; g <= n ; g++){\n\t\t\tmk = x.next();\n\t\t\tsu = x.nextInt();\n\t\t\tif(mk.equals(\"S\")){\n\t\t\t\ts[su-1] = 1;\n\t\t\t}else if(mk.equals(\"H\")){\n\t\t\t\th[su-1] = 1;\n\t\t\t}else if(mk.equals(\"C\")){\n\t\t\t\tc[su-1] = 1;\n\t\t\t}else if(mk.equals(\"D\")){\n\t\t\t\td[su-1] = 1;\n\t\t\t}\n\t\t}\n\t\t\tfor(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(s[j] == 0){\n\t\t\t\tSystem.out.println(\"S\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(h[j] == 0){\n\t\t\t\tSystem.out.println(\"H\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(c[j] == 0){\n\t\t\t\tSystem.out.println(\"C\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(d[j] == 0){\n\t\t\t\tSystem.out.println(\"D\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner x = new Scanner(System.in);\n\t\tint n = x.nextInt();\n\t\tint[] s = new int[13];\n\t\tint[] h = new int[13];\n\t\tint[] c = new int[13];\n\t\tint[] d = new int[13];\n\t\tfor(int f = 0 ; f < 13 ; f++ ){\n\t\t\ts[f] = 0 ;\n\t\t\th[f] = 0 ;\n\t\t\tc[f] = 0 ;\n\t\t\td[f] = 0 ;\n\t\t}\n\t\tString mk ;\n\t\tint su;\n\t\tfor(int g = 1 ; g <= n ; g++){\n\t\t\tmk = x.next();\n\t\t\tsu = x.nextInt();\n\t\t\tif(mk.equals(\"S\")){\n\t\t\t\ts[su-1] = 1;\n\t\t\t}else if(mk.equals(\"H\")){\n\t\t\t\th[su-1] = 1;\n\t\t\t}else if(mk.equals(\"C\")){\n\t\t\t\tc[su-1] = 1;\n\t\t\t}else if(mk.equals(\"D\")){\n\t\t\t\td[su-1] = 1;\n\t\t\t}\n\t\t}\n\t\t\tfor(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(s[j] == 0){\n\t\t\t\tSystem.out.println(\"S\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(h[j] == 0){\n\t\t\t\tSystem.out.println(\"H\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(c[j] == 0){\n\t\t\t\tSystem.out.println(\"C\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j = 0 ; j < 13 ; j++){\n\t\t\t\tif(d[j] == 0){\n\t\t\t\tSystem.out.println(\"D\"+\" \"+ (j+1));\n\t\t\t\t}\n\t\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner x = new Scanner(System.in);
int n = x.nextInt();
int[] s = new int[13];
int[] h = new int[13];
int[] c = new int[13];
int[] d = new int[13];
for(int f = 0 ; f < 13 ; f++ ){
s[f] = 0 ;
h[f] = 0 ;
c[f] = 0 ;
d[f] = 0 ;
}
String mk ;
int su;
for(int g = 1 ; g <= n ; g++){
mk = x.next();
su = x.nextInt();
if(mk.equals("S")){
s[su-1] = 1;
}else if(mk.equals("H")){
h[su-1] = 1;
}else if(mk.equals("C")){
c[su-1] = 1;
}else if(mk.equals("D")){
d[su-1] = 1;
}
}
for(int j = 0 ; j < 13 ; j++){
if(s[j] == 0){
System.out.println("S"+" "+ (j+1));
}
}
for(int j = 0 ; j < 13 ; j++){
if(h[j] == 0){
System.out.println("H"+" "+ (j+1));
}
}
for(int j = 0 ; j < 13 ; j++){
if(c[j] == 0){
System.out.println("C"+" "+ (j+1));
}
}
for(int j = 0 ; j < 13 ; j++){
if(d[j] == 0){
System.out.println("D"+" "+ (j+1));
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
20,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
17,
35,
13,
34,
17,
1,
0,
13,
13,
3,
34,
17,
1,
0,
13,
13,
3,
34,
17,
1,
0,
13,
13,
3,
34,
17,
1,
0,
13,
13,
3,
0,
18,
18,
13,
13,
2,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
41,
13,
17,
35,
13,
34,
17,
1,
0,
13,
17,
3,
34,
17,
1,
0,
13,
17,
3,
34,
17,
1,
0,
13,
17,
3,
34,
17,
1,
0,
13,
17,
3,
4,
18,
18,
13,
13,
17,
13,
2,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
219,
5
],
[
219,
6
],
[
6,
7
],
[
6,
8
],
[
219,
9
],
[
9,
10
],
[
9,
11
],
[
219,
12
],
[
12,
13
],
[
12,
14
],
[
219,
15
],
[
15,
16
],
[
15,
17
],
[
219,
18
],
[
18,
19
],
[
18,
20
],
[
219,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
23,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
23,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
79,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
79,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
79,
96
],
[
96,
97
],
[
96,
98
],
[
79,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
99,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
99,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
99,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
79,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
134,
136
],
[
129,
137
],
[
23,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
143,
144
],
[
143,
145
],
[
138,
146
],
[
146,
147
],
[
147,
148
],
[
138,
149
],
[
150,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
156,
157
],
[
156,
158
],
[
151,
159
],
[
159,
160
],
[
160,
161
],
[
151,
162
],
[
163,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
165,
171
],
[
164,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
180,
184
],
[
176,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
176,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
194,
198
],
[
176,
199
],
[
199,
200
],
[
199,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
172,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
206,
211
],
[
206,
212
],
[
206,
213
],
[
213,
214
],
[
213,
215
],
[
21,
216
],
[
216,
217
],
[
0,
218
],
[
218,
219
],
[
218,
220
]
] | [
"import java.util.*;\n\npublic class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\tpublic static final int\n\t\tSp = 0, Ha = 1, Cu = 2, Di = 3;\n\n\tpublic static void main(String[] args){\n\t\tboolean[][] trump = new boolean[4][13];\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 13; j++){\n\t\t\t\ttrump[i][j] = false;\n\t\t\t}\n\t\t}\n\t\tint n = scan.nextInt();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString m = scan.next();\n\t\t\tint num = scan.nextInt();\n\t\t\tchar mc = m.charAt(0);\n\t\t\tint a = 0;\n\t\t\tswitch(mc){\n\t\t\t\tcase 'S' :\n\t\t\t\t\ta = Sp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'H' :\n\t\t\t\t\ta = Ha;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'C' :\n\t\t\t\t\ta = Cu;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'D' :\n\t\t\t\t\ta = Di;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttrump[a][num - 1] = true;\n\t\t}\n\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 13; j++){\n\t\t\t\tif(trump[i][j] == false){\n\t\t\t\t\tchar mc = 0;\n\t\t\t\t\tswitch(i){\n\t\t\t\t\t\tcase 0 :\n\t\t\t\t\t\t\tmc = 'S';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\tmc = 'H';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2 :\n\t\t\t\t\t\t\tmc = 'C';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3 :\n\t\t\t\t\t\t\tmc = 'D';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"%c %d\\n\", mc, j + 1);\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\tpublic static final int\n\t\tSp = 0, Ha = 1, Cu = 2, Di = 3;\n\n\tpublic static void main(String[] args){\n\t\tboolean[][] trump = new boolean[4][13];\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 13; j++){\n\t\t\t\ttrump[i][j] = false;\n\t\t\t}\n\t\t}\n\t\tint n = scan.nextInt();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString m = scan.next();\n\t\t\tint num = scan.nextInt();\n\t\t\tchar mc = m.charAt(0);\n\t\t\tint a = 0;\n\t\t\tswitch(mc){\n\t\t\t\tcase 'S' :\n\t\t\t\t\ta = Sp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'H' :\n\t\t\t\t\ta = Ha;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'C' :\n\t\t\t\t\ta = Cu;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'D' :\n\t\t\t\t\ta = Di;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttrump[a][num - 1] = true;\n\t\t}\n\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 13; j++){\n\t\t\t\tif(trump[i][j] == false){\n\t\t\t\t\tchar mc = 0;\n\t\t\t\t\tswitch(i){\n\t\t\t\t\t\tcase 0 :\n\t\t\t\t\t\t\tmc = 'S';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\tmc = 'H';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2 :\n\t\t\t\t\t\t\tmc = 'C';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3 :\n\t\t\t\t\t\t\tmc = 'D';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"%c %d\\n\", mc, j + 1);\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 final int\n\t\tSp = 0",
"Sp",
"0",
"Ha = 1",
"Ha",
"1",
"Cu = 2",
"Cu",
"2",
"Di = 3;",
"Di",
"3",
"public static void main(String[] args){\n\t\tboolean[][] trump = new boolean[4][13];\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 13; j++){\n\t\t\t\ttrump[i][j] = false;\n\t\t\t}\n\t\t}\n\t\tint n = scan.nextInt();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString m = scan.next();\n\t\t\tint num = scan.nextInt();\n\t\t\tchar mc = m.charAt(0);\n\t\t\tint a = 0;\n\t\t\tswitch(mc){\n\t\t\t\tcase 'S' :\n\t\t\t\t\ta = Sp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'H' :\n\t\t\t\t\ta = Ha;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'C' :\n\t\t\t\t\ta = Cu;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'D' :\n\t\t\t\t\ta = Di;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttrump[a][num - 1] = true;\n\t\t}\n\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 13; j++){\n\t\t\t\tif(trump[i][j] == false){\n\t\t\t\t\tchar mc = 0;\n\t\t\t\t\tswitch(i){\n\t\t\t\t\t\tcase 0 :\n\t\t\t\t\t\t\tmc = 'S';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\tmc = 'H';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2 :\n\t\t\t\t\t\t\tmc = 'C';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3 :\n\t\t\t\t\t\t\tmc = 'D';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"%c %d\\n\", mc, j + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tboolean[][] trump = new boolean[4][13];\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 13; j++){\n\t\t\t\ttrump[i][j] = false;\n\t\t\t}\n\t\t}\n\t\tint n = scan.nextInt();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString m = scan.next();\n\t\t\tint num = scan.nextInt();\n\t\t\tchar mc = m.charAt(0);\n\t\t\tint a = 0;\n\t\t\tswitch(mc){\n\t\t\t\tcase 'S' :\n\t\t\t\t\ta = Sp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'H' :\n\t\t\t\t\ta = Ha;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'C' :\n\t\t\t\t\ta = Cu;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'D' :\n\t\t\t\t\ta = Di;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttrump[a][num - 1] = true;\n\t\t}\n\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 13; j++){\n\t\t\t\tif(trump[i][j] == false){\n\t\t\t\t\tchar mc = 0;\n\t\t\t\t\tswitch(i){\n\t\t\t\t\t\tcase 0 :\n\t\t\t\t\t\t\tmc = 'S';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\tmc = 'H';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2 :\n\t\t\t\t\t\t\tmc = 'C';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3 :\n\t\t\t\t\t\t\tmc = 'D';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"%c %d\\n\", mc, j + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"boolean[][] trump = new boolean[4][13];",
"trump",
"new boolean[4][13]",
"4",
"13",
"for(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 13; j++){\n\t\t\t\ttrump[i][j] = false;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < 13; j++){\n\t\t\t\ttrump[i][j] = false;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < 13; j++){\n\t\t\t\ttrump[i][j] = false;\n\t\t\t}\n\t\t}",
"for(int j = 0; j < 13; j++){\n\t\t\t\ttrump[i][j] = false;\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\ttrump[i][j] = false;\n\t\t\t}",
"{\n\t\t\t\ttrump[i][j] = false;\n\t\t\t}",
"trump[i][j] = false",
"trump[i][j]",
"trump[i]",
"trump",
"i",
"j",
"false",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 0; i < n; i++){\n\t\t\tString m = scan.next();\n\t\t\tint num = scan.nextInt();\n\t\t\tchar mc = m.charAt(0);\n\t\t\tint a = 0;\n\t\t\tswitch(mc){\n\t\t\t\tcase 'S' :\n\t\t\t\t\ta = Sp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'H' :\n\t\t\t\t\ta = Ha;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'C' :\n\t\t\t\t\ta = Cu;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'D' :\n\t\t\t\t\ta = Di;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttrump[a][num - 1] = true;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString m = scan.next();\n\t\t\tint num = scan.nextInt();\n\t\t\tchar mc = m.charAt(0);\n\t\t\tint a = 0;\n\t\t\tswitch(mc){\n\t\t\t\tcase 'S' :\n\t\t\t\t\ta = Sp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'H' :\n\t\t\t\t\ta = Ha;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'C' :\n\t\t\t\t\ta = Cu;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'D' :\n\t\t\t\t\ta = Di;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttrump[a][num - 1] = true;\n\t\t}",
"{\n\t\t\tString m = scan.next();\n\t\t\tint num = scan.nextInt();\n\t\t\tchar mc = m.charAt(0);\n\t\t\tint a = 0;\n\t\t\tswitch(mc){\n\t\t\t\tcase 'S' :\n\t\t\t\t\ta = Sp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'H' :\n\t\t\t\t\ta = Ha;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'C' :\n\t\t\t\t\ta = Cu;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'D' :\n\t\t\t\t\ta = Di;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttrump[a][num - 1] = true;\n\t\t}",
"String m = scan.next();",
"m",
"scan.next()",
"scan.next",
"scan",
"int num = scan.nextInt();",
"num",
"scan.nextInt()",
"scan.nextInt",
"scan",
"char mc = m.charAt(0);",
"mc",
"m.charAt(0)",
"m.charAt",
"m",
"0",
"int a = 0;",
"a",
"0",
"switch(mc){\n\t\t\t\tcase 'S' :\n\t\t\t\t\ta = Sp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'H' :\n\t\t\t\t\ta = Ha;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'C' :\n\t\t\t\t\ta = Cu;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'D' :\n\t\t\t\t\ta = Di;\n\t\t\t\t\tbreak;\n\t\t\t}",
"mc",
"case 'S' :",
"'S'",
"case 'S' :",
"a = Sp",
"a",
"Sp",
"break;",
"case 'H' :",
"'H'",
"case 'H' :",
"a = Ha",
"a",
"Ha",
"break;",
"case 'C' :",
"'C'",
"case 'C' :",
"a = Cu",
"a",
"Cu",
"break;",
"case 'D' :",
"'D'",
"case 'D' :",
"a = Di",
"a",
"Di",
"break;",
"trump[a][num - 1] = true",
"trump[a][num - 1]",
"trump[a]",
"trump",
"a",
"num - 1",
"num",
"1",
"true",
"for(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 13; j++){\n\t\t\t\tif(trump[i][j] == false){\n\t\t\t\t\tchar mc = 0;\n\t\t\t\t\tswitch(i){\n\t\t\t\t\t\tcase 0 :\n\t\t\t\t\t\t\tmc = 'S';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\tmc = 'H';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2 :\n\t\t\t\t\t\t\tmc = 'C';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3 :\n\t\t\t\t\t\t\tmc = 'D';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"%c %d\\n\", mc, j + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < 13; j++){\n\t\t\t\tif(trump[i][j] == false){\n\t\t\t\t\tchar mc = 0;\n\t\t\t\t\tswitch(i){\n\t\t\t\t\t\tcase 0 :\n\t\t\t\t\t\t\tmc = 'S';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\tmc = 'H';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2 :\n\t\t\t\t\t\t\tmc = 'C';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3 :\n\t\t\t\t\t\t\tmc = 'D';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"%c %d\\n\", mc, j + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < 13; j++){\n\t\t\t\tif(trump[i][j] == false){\n\t\t\t\t\tchar mc = 0;\n\t\t\t\t\tswitch(i){\n\t\t\t\t\t\tcase 0 :\n\t\t\t\t\t\t\tmc = 'S';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\tmc = 'H';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2 :\n\t\t\t\t\t\t\tmc = 'C';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3 :\n\t\t\t\t\t\t\tmc = 'D';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"%c %d\\n\", mc, j + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int j = 0; j < 13; j++){\n\t\t\t\tif(trump[i][j] == false){\n\t\t\t\t\tchar mc = 0;\n\t\t\t\t\tswitch(i){\n\t\t\t\t\t\tcase 0 :\n\t\t\t\t\t\t\tmc = 'S';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\tmc = 'H';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2 :\n\t\t\t\t\t\t\tmc = 'C';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3 :\n\t\t\t\t\t\t\tmc = 'D';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"%c %d\\n\", mc, j + 1);\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(trump[i][j] == false){\n\t\t\t\t\tchar mc = 0;\n\t\t\t\t\tswitch(i){\n\t\t\t\t\t\tcase 0 :\n\t\t\t\t\t\t\tmc = 'S';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\tmc = 'H';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2 :\n\t\t\t\t\t\t\tmc = 'C';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3 :\n\t\t\t\t\t\t\tmc = 'D';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"%c %d\\n\", mc, j + 1);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(trump[i][j] == false){\n\t\t\t\t\tchar mc = 0;\n\t\t\t\t\tswitch(i){\n\t\t\t\t\t\tcase 0 :\n\t\t\t\t\t\t\tmc = 'S';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\tmc = 'H';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2 :\n\t\t\t\t\t\t\tmc = 'C';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3 :\n\t\t\t\t\t\t\tmc = 'D';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"%c %d\\n\", mc, j + 1);\n\t\t\t\t}\n\t\t\t}",
"if(trump[i][j] == false){\n\t\t\t\t\tchar mc = 0;\n\t\t\t\t\tswitch(i){\n\t\t\t\t\t\tcase 0 :\n\t\t\t\t\t\t\tmc = 'S';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\tmc = 'H';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2 :\n\t\t\t\t\t\t\tmc = 'C';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3 :\n\t\t\t\t\t\t\tmc = 'D';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"%c %d\\n\", mc, j + 1);\n\t\t\t\t}",
"trump[i][j] == false",
"trump[i][j]",
"trump[i]",
"trump",
"i",
"j",
"false",
"{\n\t\t\t\t\tchar mc = 0;\n\t\t\t\t\tswitch(i){\n\t\t\t\t\t\tcase 0 :\n\t\t\t\t\t\t\tmc = 'S';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\tmc = 'H';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2 :\n\t\t\t\t\t\t\tmc = 'C';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3 :\n\t\t\t\t\t\t\tmc = 'D';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"%c %d\\n\", mc, j + 1);\n\t\t\t\t}",
"char mc = 0;",
"mc",
"0",
"switch(i){\n\t\t\t\t\t\tcase 0 :\n\t\t\t\t\t\t\tmc = 'S';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\tmc = 'H';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2 :\n\t\t\t\t\t\t\tmc = 'C';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3 :\n\t\t\t\t\t\t\tmc = 'D';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"i",
"case 0 :",
"0",
"case 0 :",
"mc = 'S'",
"mc",
"'S'",
"break;",
"case 1 :",
"1",
"case 1 :",
"mc = 'H'",
"mc",
"'H'",
"break;",
"case 2 :",
"2",
"case 2 :",
"mc = 'C'",
"mc",
"'C'",
"break;",
"case 3 :",
"3",
"case 3 :",
"mc = 'D'",
"mc",
"'D'",
"break;",
"System.out.printf(\"%c %d\\n\", mc, j + 1)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c %d\\n\"",
"mc",
"j + 1",
"j",
"1",
"String[] args",
"args",
"public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\tpublic static final int\n\t\tSp = 0, Ha = 1, Cu = 2, Di = 3;\n\n\tpublic static void main(String[] args){\n\t\tboolean[][] trump = new boolean[4][13];\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 13; j++){\n\t\t\t\ttrump[i][j] = false;\n\t\t\t}\n\t\t}\n\t\tint n = scan.nextInt();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString m = scan.next();\n\t\t\tint num = scan.nextInt();\n\t\t\tchar mc = m.charAt(0);\n\t\t\tint a = 0;\n\t\t\tswitch(mc){\n\t\t\t\tcase 'S' :\n\t\t\t\t\ta = Sp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'H' :\n\t\t\t\t\ta = Ha;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'C' :\n\t\t\t\t\ta = Cu;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'D' :\n\t\t\t\t\ta = Di;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttrump[a][num - 1] = true;\n\t\t}\n\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 13; j++){\n\t\t\t\tif(trump[i][j] == false){\n\t\t\t\t\tchar mc = 0;\n\t\t\t\t\tswitch(i){\n\t\t\t\t\t\tcase 0 :\n\t\t\t\t\t\t\tmc = 'S';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\tmc = 'H';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2 :\n\t\t\t\t\t\t\tmc = 'C';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3 :\n\t\t\t\t\t\t\tmc = 'D';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"%c %d\\n\", mc, j + 1);\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\tpublic static final int\n\t\tSp = 0, Ha = 1, Cu = 2, Di = 3;\n\n\tpublic static void main(String[] args){\n\t\tboolean[][] trump = new boolean[4][13];\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 13; j++){\n\t\t\t\ttrump[i][j] = false;\n\t\t\t}\n\t\t}\n\t\tint n = scan.nextInt();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString m = scan.next();\n\t\t\tint num = scan.nextInt();\n\t\t\tchar mc = m.charAt(0);\n\t\t\tint a = 0;\n\t\t\tswitch(mc){\n\t\t\t\tcase 'S' :\n\t\t\t\t\ta = Sp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'H' :\n\t\t\t\t\ta = Ha;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'C' :\n\t\t\t\t\ta = Cu;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'D' :\n\t\t\t\t\ta = Di;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttrump[a][num - 1] = true;\n\t\t}\n\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 13; j++){\n\t\t\t\tif(trump[i][j] == false){\n\t\t\t\t\tchar mc = 0;\n\t\t\t\t\tswitch(i){\n\t\t\t\t\t\tcase 0 :\n\t\t\t\t\t\t\tmc = 'S';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\tmc = 'H';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2 :\n\t\t\t\t\t\t\tmc = 'C';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3 :\n\t\t\t\t\t\t\tmc = 'D';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"%c %d\\n\", mc, j + 1);\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 final int
Sp = 0, Ha = 1, Cu = 2, Di = 3;
public static void main(String[] args){
boolean[][] trump = new boolean[4][13];
for(int i = 0; i < 4; i++){
for(int j = 0; j < 13; j++){
trump[i][j] = false;
}
}
int n = scan.nextInt();
for(int i = 0; i < n; i++){
String m = scan.next();
int num = scan.nextInt();
char mc = m.charAt(0);
int a = 0;
switch(mc){
case 'S' :
a = Sp;
break;
case 'H' :
a = Ha;
break;
case 'C' :
a = Cu;
break;
case 'D' :
a = Di;
break;
}
trump[a][num - 1] = true;
}
for(int i = 0; i < 4; i++){
for(int j = 0; j < 13; j++){
if(trump[i][j] == false){
char mc = 0;
switch(i){
case 0 :
mc = 'S';
break;
case 1 :
mc = 'H';
break;
case 2 :
mc = 'C';
break;
case 3 :
mc = 'D';
break;
}
System.out.printf("%c %d\n", mc, j + 1);
}
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
39,
17,
17,
17,
17,
41,
13,
20,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
18,
18,
13,
4,
13,
13,
2,
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,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
2,
13,
17,
23,
13,
12,
13,
30,
41,
13,
17,
14,
4,
18,
13,
17,
0,
13,
17,
14,
4,
18,
13,
17,
0,
13,
17,
14,
4,
18,
13,
17,
0,
13,
17,
14,
4,
18,
13,
17,
0,
13,
17,
29,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
158,
5
],
[
158,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
19,
21
],
[
19,
22
],
[
19,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
53,
59
],
[
59,
60
],
[
59,
61
],
[
52,
62
],
[
8,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
63,
73
],
[
73,
74
],
[
74,
75
],
[
63,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
78,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
92,
98
],
[
91,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
105,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
6,
113
],
[
113,
114
],
[
158,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
121,
126
],
[
126,
127
],
[
126,
128
],
[
121,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
130,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
129,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
138,
141
],
[
137,
142
],
[
142,
143
],
[
142,
144
],
[
137,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
145,
150
],
[
150,
151
],
[
150,
152
],
[
117,
153
],
[
153,
154
],
[
115,
155
],
[
155,
156
],
[
0,
157
],
[
157,
158
],
[
157,
159
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\n\t\tString[] patterns = { \"S\", \"H\", \"C\", \"D\" };\n\t\tint cards[][] = new int[4][13];\n\n\t\t//入力されたカードを配列に2次元配列に格納する\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tString str = sc.next();\n\t\t\tint num = sc.nextInt();\n\t\t\tcards[convert(str)][num-1] = num;\n\t\t}\n\n\t\t//不足してるカードを出力する\n\t\tfor (int i = 0; i < patterns.length; i++) {\n\t\t\tfor (int j = 0; j < 13; j++ ) {\n\t\t\t\tif(cards[i][j] == 0)\n\t\t\t\t\tSystem.out.println(patterns[i] + \" \" + (j+1));\n\t\t\t}\n\t\t}\n\t}\n\t\n\tpublic static int convert(String str){\n\t\tint value = 0;\n\t\tif(str.equals(\"S\")) value = 0;\n\t\telse if(str.equals(\"H\")) value = 1;\n\t\telse if(str.equals(\"C\")) value = 2;\n\t\telse if(str.equals(\"D\")) value = 3;\n\t\treturn value;\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\n\t\tString[] patterns = { \"S\", \"H\", \"C\", \"D\" };\n\t\tint cards[][] = new int[4][13];\n\n\t\t//入力されたカードを配列に2次元配列に格納する\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tString str = sc.next();\n\t\t\tint num = sc.nextInt();\n\t\t\tcards[convert(str)][num-1] = num;\n\t\t}\n\n\t\t//不足してるカードを出力する\n\t\tfor (int i = 0; i < patterns.length; i++) {\n\t\t\tfor (int j = 0; j < 13; j++ ) {\n\t\t\t\tif(cards[i][j] == 0)\n\t\t\t\t\tSystem.out.println(patterns[i] + \" \" + (j+1));\n\t\t\t}\n\t\t}\n\t}\n\t\n\tpublic static int convert(String str){\n\t\tint value = 0;\n\t\tif(str.equals(\"S\")) value = 0;\n\t\telse if(str.equals(\"H\")) value = 1;\n\t\telse if(str.equals(\"C\")) value = 2;\n\t\telse if(str.equals(\"D\")) value = 3;\n\t\treturn value;\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\n\t\tString[] patterns = { \"S\", \"H\", \"C\", \"D\" };\n\t\tint cards[][] = new int[4][13];\n\n\t\t//入力されたカードを配列に2次元配列に格納する\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tString str = sc.next();\n\t\t\tint num = sc.nextInt();\n\t\t\tcards[convert(str)][num-1] = num;\n\t\t}\n\n\t\t//不足してるカードを出力する\n\t\tfor (int i = 0; i < patterns.length; i++) {\n\t\t\tfor (int j = 0; j < 13; j++ ) {\n\t\t\t\tif(cards[i][j] == 0)\n\t\t\t\t\tSystem.out.println(patterns[i] + \" \" + (j+1));\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\n\t\tString[] patterns = { \"S\", \"H\", \"C\", \"D\" };\n\t\tint cards[][] = new int[4][13];\n\n\t\t//入力されたカードを配列に2次元配列に格納する\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tString str = sc.next();\n\t\t\tint num = sc.nextInt();\n\t\t\tcards[convert(str)][num-1] = num;\n\t\t}\n\n\t\t//不足してるカードを出力する\n\t\tfor (int i = 0; i < patterns.length; i++) {\n\t\t\tfor (int j = 0; j < 13; j++ ) {\n\t\t\t\tif(cards[i][j] == 0)\n\t\t\t\t\tSystem.out.println(patterns[i] + \" \" + (j+1));\n\t\t\t}\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] patterns = { \"S\", \"H\", \"C\", \"D\" };",
"patterns",
"{ \"S\", \"H\", \"C\", \"D\" }",
"\"S\"",
"\"H\"",
"\"C\"",
"\"D\"",
"int cards[][] = new int[4][13];",
"cards",
"new int[4][13]",
"4",
"13",
"for (int i = 0; i < a; i++) {\n\t\t\tString str = sc.next();\n\t\t\tint num = sc.nextInt();\n\t\t\tcards[convert(str)][num-1] = num;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a",
"i",
"a",
"i++",
"i++",
"i",
"{\n\t\t\tString str = sc.next();\n\t\t\tint num = sc.nextInt();\n\t\t\tcards[convert(str)][num-1] = num;\n\t\t}",
"{\n\t\t\tString str = sc.next();\n\t\t\tint num = sc.nextInt();\n\t\t\tcards[convert(str)][num-1] = num;\n\t\t}",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"cards[convert(str)][num-1] = num",
"cards[convert(str)][num-1]",
"cards[convert(str)]",
"cards",
"convert(str)",
"convert",
"str",
"num-1",
"num",
"1",
"num",
"for (int i = 0; i < patterns.length; i++) {\n\t\t\tfor (int j = 0; j < 13; j++ ) {\n\t\t\t\tif(cards[i][j] == 0)\n\t\t\t\t\tSystem.out.println(patterns[i] + \" \" + (j+1));\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < patterns.length",
"i",
"patterns.length",
"patterns",
"patterns.length",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < 13; j++ ) {\n\t\t\t\tif(cards[i][j] == 0)\n\t\t\t\t\tSystem.out.println(patterns[i] + \" \" + (j+1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < 13; j++ ) {\n\t\t\t\tif(cards[i][j] == 0)\n\t\t\t\t\tSystem.out.println(patterns[i] + \" \" + (j+1));\n\t\t\t}\n\t\t}",
"for (int j = 0; j < 13; j++ ) {\n\t\t\t\tif(cards[i][j] == 0)\n\t\t\t\t\tSystem.out.println(patterns[i] + \" \" + (j+1));\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(cards[i][j] == 0)\n\t\t\t\t\tSystem.out.println(patterns[i] + \" \" + (j+1));\n\t\t\t}",
"{\n\t\t\t\tif(cards[i][j] == 0)\n\t\t\t\t\tSystem.out.println(patterns[i] + \" \" + (j+1));\n\t\t\t}",
"if(cards[i][j] == 0)\n\t\t\t\t\tSystem.out.println(patterns[i] + \" \" + (j+1));",
"cards[i][j] == 0",
"cards[i][j]",
"cards[i]",
"cards",
"i",
"j",
"0",
"System.out.println(patterns[i] + \" \" + (j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"patterns[i] + \" \" + (j+1)",
"patterns[i] + \" \" + (j+1)",
"patterns[i]",
"patterns",
"i",
"\" \"",
"(j+1)",
"j",
"1",
"String[] args",
"args",
"public static int convert(String str){\n\t\tint value = 0;\n\t\tif(str.equals(\"S\")) value = 0;\n\t\telse if(str.equals(\"H\")) value = 1;\n\t\telse if(str.equals(\"C\")) value = 2;\n\t\telse if(str.equals(\"D\")) value = 3;\n\t\treturn value;\n\t}",
"convert",
"{\n\t\tint value = 0;\n\t\tif(str.equals(\"S\")) value = 0;\n\t\telse if(str.equals(\"H\")) value = 1;\n\t\telse if(str.equals(\"C\")) value = 2;\n\t\telse if(str.equals(\"D\")) value = 3;\n\t\treturn value;\n\t}",
"int value = 0;",
"value",
"0",
"if(str.equals(\"S\")) value = 0;\n\t\telse if(str.equals(\"H\")) value = 1;\n\t\telse if(str.equals(\"C\")) value = 2;\n\t\telse if(str.equals(\"D\")) value = 3;",
"str.equals(\"S\")",
"str.equals",
"str",
"\"S\"",
"value = 0",
"value",
"0",
"if(str.equals(\"H\")) value = 1;\n\t\telse if(str.equals(\"C\")) value = 2;\n\t\telse if(str.equals(\"D\")) value = 3;",
"str.equals(\"H\")",
"str.equals",
"str",
"\"H\"",
"value = 1",
"value",
"1",
"if(str.equals(\"C\")) value = 2;\n\t\telse if(str.equals(\"D\")) value = 3;",
"str.equals(\"C\")",
"str.equals",
"str",
"\"C\"",
"value = 2",
"value",
"2",
"if(str.equals(\"D\")) value = 3;",
"str.equals(\"D\")",
"str.equals",
"str",
"\"D\"",
"value = 3",
"value",
"3",
"return value;",
"value",
"String str",
"str",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\n\t\tString[] patterns = { \"S\", \"H\", \"C\", \"D\" };\n\t\tint cards[][] = new int[4][13];\n\n\t\t//入力されたカードを配列に2次元配列に格納する\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tString str = sc.next();\n\t\t\tint num = sc.nextInt();\n\t\t\tcards[convert(str)][num-1] = num;\n\t\t}\n\n\t\t//不足してるカードを出力する\n\t\tfor (int i = 0; i < patterns.length; i++) {\n\t\t\tfor (int j = 0; j < 13; j++ ) {\n\t\t\t\tif(cards[i][j] == 0)\n\t\t\t\t\tSystem.out.println(patterns[i] + \" \" + (j+1));\n\t\t\t}\n\t\t}\n\t}\n\t\n\tpublic static int convert(String str){\n\t\tint value = 0;\n\t\tif(str.equals(\"S\")) value = 0;\n\t\telse if(str.equals(\"H\")) value = 1;\n\t\telse if(str.equals(\"C\")) value = 2;\n\t\telse if(str.equals(\"D\")) value = 3;\n\t\treturn value;\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 a = sc.nextInt();\n\n\t\tString[] patterns = { \"S\", \"H\", \"C\", \"D\" };\n\t\tint cards[][] = new int[4][13];\n\n\t\t//入力されたカードを配列に2次元配列に格納する\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tString str = sc.next();\n\t\t\tint num = sc.nextInt();\n\t\t\tcards[convert(str)][num-1] = num;\n\t\t}\n\n\t\t//不足してるカードを出力する\n\t\tfor (int i = 0; i < patterns.length; i++) {\n\t\t\tfor (int j = 0; j < 13; j++ ) {\n\t\t\t\tif(cards[i][j] == 0)\n\t\t\t\t\tSystem.out.println(patterns[i] + \" \" + (j+1));\n\t\t\t}\n\t\t}\n\t}\n\t\n\tpublic static int convert(String str){\n\t\tint value = 0;\n\t\tif(str.equals(\"S\")) value = 0;\n\t\telse if(str.equals(\"H\")) value = 1;\n\t\telse if(str.equals(\"C\")) value = 2;\n\t\telse if(str.equals(\"D\")) value = 3;\n\t\treturn value;\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
String[] patterns = { "S", "H", "C", "D" };
int cards[][] = new int[4][13];
//入力されたカードを配列に2次元配列に格納する
for (int i = 0; i < a; i++) {
String str = sc.next();
int num = sc.nextInt();
cards[convert(str)][num-1] = num;
}
//不足してるカードを出力する
for (int i = 0; i < patterns.length; i++) {
for (int j = 0; j < 13; j++ ) {
if(cards[i][j] == 0)
System.out.println(patterns[i] + " " + (j+1));
}
}
}
public static int convert(String str){
int value = 0;
if(str.equals("S")) value = 0;
else if(str.equals("H")) value = 1;
else if(str.equals("C")) value = 2;
else if(str.equals("D")) value = 3;
return value;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
20,
4,
18,
13,
17,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
4,
18,
13,
13,
4,
18,
13,
41,
13,
20,
41,
13,
39,
17,
17,
17,
17,
28,
13,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
20,
4,
18,
13,
17,
13,
4,
18,
13,
17,
4,
18,
13,
13,
14,
2,
4,
18,
13,
13,
40,
17,
30,
4,
18,
13,
13,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
2,
4,
18,
13,
17,
17,
4,
18,
13,
17,
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
],
[
146,
11
],
[
146,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
42,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
38,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
14,
60
],
[
60,
61
],
[
61,
62
],
[
14,
63
],
[
63,
64
],
[
63,
65
],
[
14,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
68,
71
],
[
68,
72
],
[
14,
73
],
[
73,
74
],
[
73,
75
],
[
73,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
78,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
94,
98
],
[
90,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
99,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
90,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
108,
113
],
[
113,
114
],
[
107,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
14,
120
],
[
120,
121
],
[
120,
122
],
[
120,
123
],
[
124,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
132,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
132,
137
],
[
131,
138
],
[
138,
139
],
[
139,
140
],
[
138,
141
],
[
132,
142
],
[
12,
143
],
[
143,
144
],
[
0,
145
],
[
145,
146
],
[
145,
147
]
] | [
"import java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\t// 所持しているカードの入力\n\n\t\tArrayList<HashMap<String, String>> existCards = new ArrayList<>();\n\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tHashMap<String, String> card = new HashMap<>();\n\t\t\tcard.put(\"mark\", sc.next());\n\t\t\tcard.put(\"rank\", sc.next());\n\t\t\texistCards.add(card);\n\t\t}\n\n\t\tsc.close();\n\n\t\t// 抜けているカードを割り出す\n\t\tArrayList<HashMap<String, String>> notExistsCards = new ArrayList<>();\n\n\t\t// 1つづつカードを調べる\n\t\tString marks[] = {\"S\", \"H\", \"C\", \"D\"};\n\t\tfor(String mark : marks) {\n\t\t\tfor(int i=1; i<=13; i++) {\n\t\t\t\tHashMap<String, String> checkCard = new HashMap<>();\n\t\t\t\tcheckCard.put(\"mark\", mark);\n\t\t\t\tcheckCard.put(\"rank\", String.valueOf(i));\n\t\t\t\tif(existCards.indexOf(checkCard) == -1) {\n\t\t\t\t\tnotExistsCards.add(checkCard);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// 出力\n\t\tfor(HashMap<String, String> card : notExistsCards) {\n\t\t\tSystem.out.print(card.get(\"mark\") + \" \" + card.get(\"rank\") + \"\\n\");\n\t\t}\n\n\t}\n\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\t// 所持しているカードの入力\n\n\t\tArrayList<HashMap<String, String>> existCards = new ArrayList<>();\n\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tHashMap<String, String> card = new HashMap<>();\n\t\t\tcard.put(\"mark\", sc.next());\n\t\t\tcard.put(\"rank\", sc.next());\n\t\t\texistCards.add(card);\n\t\t}\n\n\t\tsc.close();\n\n\t\t// 抜けているカードを割り出す\n\t\tArrayList<HashMap<String, String>> notExistsCards = new ArrayList<>();\n\n\t\t// 1つづつカードを調べる\n\t\tString marks[] = {\"S\", \"H\", \"C\", \"D\"};\n\t\tfor(String mark : marks) {\n\t\t\tfor(int i=1; i<=13; i++) {\n\t\t\t\tHashMap<String, String> checkCard = new HashMap<>();\n\t\t\t\tcheckCard.put(\"mark\", mark);\n\t\t\t\tcheckCard.put(\"rank\", String.valueOf(i));\n\t\t\t\tif(existCards.indexOf(checkCard) == -1) {\n\t\t\t\t\tnotExistsCards.add(checkCard);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// 出力\n\t\tfor(HashMap<String, String> card : notExistsCards) {\n\t\t\tSystem.out.print(card.get(\"mark\") + \" \" + card.get(\"rank\") + \"\\n\");\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\t// 所持しているカードの入力\n\n\t\tArrayList<HashMap<String, String>> existCards = new ArrayList<>();\n\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tHashMap<String, String> card = new HashMap<>();\n\t\t\tcard.put(\"mark\", sc.next());\n\t\t\tcard.put(\"rank\", sc.next());\n\t\t\texistCards.add(card);\n\t\t}\n\n\t\tsc.close();\n\n\t\t// 抜けているカードを割り出す\n\t\tArrayList<HashMap<String, String>> notExistsCards = new ArrayList<>();\n\n\t\t// 1つづつカードを調べる\n\t\tString marks[] = {\"S\", \"H\", \"C\", \"D\"};\n\t\tfor(String mark : marks) {\n\t\t\tfor(int i=1; i<=13; i++) {\n\t\t\t\tHashMap<String, String> checkCard = new HashMap<>();\n\t\t\t\tcheckCard.put(\"mark\", mark);\n\t\t\t\tcheckCard.put(\"rank\", String.valueOf(i));\n\t\t\t\tif(existCards.indexOf(checkCard) == -1) {\n\t\t\t\t\tnotExistsCards.add(checkCard);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// 出力\n\t\tfor(HashMap<String, String> card : notExistsCards) {\n\t\t\tSystem.out.print(card.get(\"mark\") + \" \" + card.get(\"rank\") + \"\\n\");\n\t\t}\n\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\t// 所持しているカードの入力\n\n\t\tArrayList<HashMap<String, String>> existCards = new ArrayList<>();\n\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tHashMap<String, String> card = new HashMap<>();\n\t\t\tcard.put(\"mark\", sc.next());\n\t\t\tcard.put(\"rank\", sc.next());\n\t\t\texistCards.add(card);\n\t\t}\n\n\t\tsc.close();\n\n\t\t// 抜けているカードを割り出す\n\t\tArrayList<HashMap<String, String>> notExistsCards = new ArrayList<>();\n\n\t\t// 1つづつカードを調べる\n\t\tString marks[] = {\"S\", \"H\", \"C\", \"D\"};\n\t\tfor(String mark : marks) {\n\t\t\tfor(int i=1; i<=13; i++) {\n\t\t\t\tHashMap<String, String> checkCard = new HashMap<>();\n\t\t\t\tcheckCard.put(\"mark\", mark);\n\t\t\t\tcheckCard.put(\"rank\", String.valueOf(i));\n\t\t\t\tif(existCards.indexOf(checkCard) == -1) {\n\t\t\t\t\tnotExistsCards.add(checkCard);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// 出力\n\t\tfor(HashMap<String, String> card : notExistsCards) {\n\t\t\tSystem.out.print(card.get(\"mark\") + \" \" + card.get(\"rank\") + \"\\n\");\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",
"ArrayList<HashMap<String, String>> existCards = new ArrayList<>();",
"existCards",
"new ArrayList<>()",
"for(int i=0; i<n; i++) {\n\t\t\tHashMap<String, String> card = new HashMap<>();\n\t\t\tcard.put(\"mark\", sc.next());\n\t\t\tcard.put(\"rank\", sc.next());\n\t\t\texistCards.add(card);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tHashMap<String, String> card = new HashMap<>();\n\t\t\tcard.put(\"mark\", sc.next());\n\t\t\tcard.put(\"rank\", sc.next());\n\t\t\texistCards.add(card);\n\t\t}",
"{\n\t\t\tHashMap<String, String> card = new HashMap<>();\n\t\t\tcard.put(\"mark\", sc.next());\n\t\t\tcard.put(\"rank\", sc.next());\n\t\t\texistCards.add(card);\n\t\t}",
"HashMap<String, String> card = new HashMap<>();",
"card",
"new HashMap<>()",
"card.put(\"mark\", sc.next())",
"card.put",
"card",
"\"mark\"",
"sc.next()",
"sc.next",
"sc",
"card.put(\"rank\", sc.next())",
"card.put",
"card",
"\"rank\"",
"sc.next()",
"sc.next",
"sc",
"existCards.add(card)",
"existCards.add",
"existCards",
"card",
"sc.close()",
"sc.close",
"sc",
"ArrayList<HashMap<String, String>> notExistsCards = new ArrayList<>();",
"notExistsCards",
"new ArrayList<>()",
"String marks[] = {\"S\", \"H\", \"C\", \"D\"};",
"marks",
"{\"S\", \"H\", \"C\", \"D\"}",
"\"S\"",
"\"H\"",
"\"C\"",
"\"D\"",
"for(String mark : marks) {\n\t\t\tfor(int i=1; i<=13; i++) {\n\t\t\t\tHashMap<String, String> checkCard = new HashMap<>();\n\t\t\t\tcheckCard.put(\"mark\", mark);\n\t\t\t\tcheckCard.put(\"rank\", String.valueOf(i));\n\t\t\t\tif(existCards.indexOf(checkCard) == -1) {\n\t\t\t\t\tnotExistsCards.add(checkCard);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"String mark",
"marks",
"{\n\t\t\tfor(int i=1; i<=13; i++) {\n\t\t\t\tHashMap<String, String> checkCard = new HashMap<>();\n\t\t\t\tcheckCard.put(\"mark\", mark);\n\t\t\t\tcheckCard.put(\"rank\", String.valueOf(i));\n\t\t\t\tif(existCards.indexOf(checkCard) == -1) {\n\t\t\t\t\tnotExistsCards.add(checkCard);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int i=1; i<=13; i++) {\n\t\t\t\tHashMap<String, String> checkCard = new HashMap<>();\n\t\t\t\tcheckCard.put(\"mark\", mark);\n\t\t\t\tcheckCard.put(\"rank\", String.valueOf(i));\n\t\t\t\tif(existCards.indexOf(checkCard) == -1) {\n\t\t\t\t\tnotExistsCards.add(checkCard);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int i=1; i<=13; i++) {\n\t\t\t\tHashMap<String, String> checkCard = new HashMap<>();\n\t\t\t\tcheckCard.put(\"mark\", mark);\n\t\t\t\tcheckCard.put(\"rank\", String.valueOf(i));\n\t\t\t\tif(existCards.indexOf(checkCard) == -1) {\n\t\t\t\t\tnotExistsCards.add(checkCard);\n\t\t\t\t}\n\t\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\t\tHashMap<String, String> checkCard = new HashMap<>();\n\t\t\t\tcheckCard.put(\"mark\", mark);\n\t\t\t\tcheckCard.put(\"rank\", String.valueOf(i));\n\t\t\t\tif(existCards.indexOf(checkCard) == -1) {\n\t\t\t\t\tnotExistsCards.add(checkCard);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tHashMap<String, String> checkCard = new HashMap<>();\n\t\t\t\tcheckCard.put(\"mark\", mark);\n\t\t\t\tcheckCard.put(\"rank\", String.valueOf(i));\n\t\t\t\tif(existCards.indexOf(checkCard) == -1) {\n\t\t\t\t\tnotExistsCards.add(checkCard);\n\t\t\t\t}\n\t\t\t}",
"HashMap<String, String> checkCard = new HashMap<>();",
"checkCard",
"new HashMap<>()",
"checkCard.put(\"mark\", mark)",
"checkCard.put",
"checkCard",
"\"mark\"",
"mark",
"checkCard.put(\"rank\", String.valueOf(i))",
"checkCard.put",
"checkCard",
"\"rank\"",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"if(existCards.indexOf(checkCard) == -1) {\n\t\t\t\t\tnotExistsCards.add(checkCard);\n\t\t\t\t}",
"existCards.indexOf(checkCard) == -1",
"existCards.indexOf(checkCard)",
"existCards.indexOf",
"existCards",
"checkCard",
"-1",
"1",
"{\n\t\t\t\t\tnotExistsCards.add(checkCard);\n\t\t\t\t}",
"notExistsCards.add(checkCard)",
"notExistsCards.add",
"notExistsCards",
"checkCard",
"for(HashMap<String, String> card : notExistsCards) {\n\t\t\tSystem.out.print(card.get(\"mark\") + \" \" + card.get(\"rank\") + \"\\n\");\n\t\t}",
"HashMap<String, String> card",
"notExistsCards",
"{\n\t\t\tSystem.out.print(card.get(\"mark\") + \" \" + card.get(\"rank\") + \"\\n\");\n\t\t}",
"{\n\t\t\tSystem.out.print(card.get(\"mark\") + \" \" + card.get(\"rank\") + \"\\n\");\n\t\t}",
"System.out.print(card.get(\"mark\") + \" \" + card.get(\"rank\") + \"\\n\")",
"System.out.print",
"System.out",
"System",
"System.out",
"card.get(\"mark\") + \" \" + card.get(\"rank\") + \"\\n\"",
"card.get(\"rank\")",
"card.get(\"mark\") + \" \" + card.get(\"rank\") + \"\\n\"",
"card.get(\"mark\")",
"card.get",
"card",
"\"mark\"",
"\" \"",
"card.get(\"rank\")",
"card.get",
"card",
"\"rank\"",
"\"\\n\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\t// 所持しているカードの入力\n\n\t\tArrayList<HashMap<String, String>> existCards = new ArrayList<>();\n\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tHashMap<String, String> card = new HashMap<>();\n\t\t\tcard.put(\"mark\", sc.next());\n\t\t\tcard.put(\"rank\", sc.next());\n\t\t\texistCards.add(card);\n\t\t}\n\n\t\tsc.close();\n\n\t\t// 抜けているカードを割り出す\n\t\tArrayList<HashMap<String, String>> notExistsCards = new ArrayList<>();\n\n\t\t// 1つづつカードを調べる\n\t\tString marks[] = {\"S\", \"H\", \"C\", \"D\"};\n\t\tfor(String mark : marks) {\n\t\t\tfor(int i=1; i<=13; i++) {\n\t\t\t\tHashMap<String, String> checkCard = new HashMap<>();\n\t\t\t\tcheckCard.put(\"mark\", mark);\n\t\t\t\tcheckCard.put(\"rank\", String.valueOf(i));\n\t\t\t\tif(existCards.indexOf(checkCard) == -1) {\n\t\t\t\t\tnotExistsCards.add(checkCard);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// 出力\n\t\tfor(HashMap<String, String> card : notExistsCards) {\n\t\t\tSystem.out.print(card.get(\"mark\") + \" \" + card.get(\"rank\") + \"\\n\");\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\t// 所持しているカードの入力\n\n\t\tArrayList<HashMap<String, String>> existCards = new ArrayList<>();\n\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tHashMap<String, String> card = new HashMap<>();\n\t\t\tcard.put(\"mark\", sc.next());\n\t\t\tcard.put(\"rank\", sc.next());\n\t\t\texistCards.add(card);\n\t\t}\n\n\t\tsc.close();\n\n\t\t// 抜けているカードを割り出す\n\t\tArrayList<HashMap<String, String>> notExistsCards = new ArrayList<>();\n\n\t\t// 1つづつカードを調べる\n\t\tString marks[] = {\"S\", \"H\", \"C\", \"D\"};\n\t\tfor(String mark : marks) {\n\t\t\tfor(int i=1; i<=13; i++) {\n\t\t\t\tHashMap<String, String> checkCard = new HashMap<>();\n\t\t\t\tcheckCard.put(\"mark\", mark);\n\t\t\t\tcheckCard.put(\"rank\", String.valueOf(i));\n\t\t\t\tif(existCards.indexOf(checkCard) == -1) {\n\t\t\t\t\tnotExistsCards.add(checkCard);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// 出力\n\t\tfor(HashMap<String, String> card : notExistsCards) {\n\t\t\tSystem.out.print(card.get(\"mark\") + \" \" + card.get(\"rank\") + \"\\n\");\n\t\t}\n\n\t}\n\n}",
"Main"
] | import java.util.ArrayList;
import java.util.HashMap;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
// 所持しているカードの入力
ArrayList<HashMap<String, String>> existCards = new ArrayList<>();
for(int i=0; i<n; i++) {
HashMap<String, String> card = new HashMap<>();
card.put("mark", sc.next());
card.put("rank", sc.next());
existCards.add(card);
}
sc.close();
// 抜けているカードを割り出す
ArrayList<HashMap<String, String>> notExistsCards = new ArrayList<>();
// 1つづつカードを調べる
String marks[] = {"S", "H", "C", "D"};
for(String mark : marks) {
for(int i=1; i<=13; i++) {
HashMap<String, String> checkCard = new HashMap<>();
checkCard.put("mark", mark);
checkCard.put("rank", String.valueOf(i));
if(existCards.indexOf(checkCard) == -1) {
notExistsCards.add(checkCard);
}
}
}
// 出力
for(HashMap<String, String> card : notExistsCards) {
System.out.print(card.get("mark") + " " + card.get("rank") + "\n");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
4,
13,
13,
13,
14,
4,
18,
13,
17,
30,
4,
13,
13,
13,
14,
4,
18,
13,
17,
30,
4,
13,
13,
13,
14,
4,
18,
13,
17,
30,
4,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
23,
13,
12,
13,
30,
0,
18,
13,
2,
13,
17,
17,
23,
13,
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
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
48,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
59,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
65,
68
],
[
48,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
69,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
75,
78
],
[
48,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
79,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
85,
88
],
[
48,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
89,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
95,
98
],
[
8,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
99,
110
],
[
111,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
112,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
126,
128
],
[
8,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
129,
137
],
[
137,
138
],
[
138,
139
],
[
129,
140
],
[
141,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
142,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
149,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
156,
158
],
[
8,
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
],
[
181,
182
],
[
181,
183
],
[
179,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
186,
188
],
[
8,
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
],
[
211,
212
],
[
211,
213
],
[
209,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
216,
218
],
[
6,
219
],
[
219,
220
],
[
236,
221
],
[
221,
222
],
[
221,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
227,
228
],
[
227,
229
],
[
224,
230
],
[
221,
231
],
[
231,
232
],
[
221,
233
],
[
233,
234
],
[
0,
235
],
[
235,
236
],
[
235,
237
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[]args){\n //カード枚数\n int number=0;\n //入力を格納する配列\n int[] S = new int[13];\n int[] H = new int[13];\n int[] C = new int[13];\n int[] D = new int[13];\n \n Scanner scan = new Scanner(System.in);\n //枚数を格納\n number = scan.nextInt();\n \n for(int i=0;i<number;i++){\n String design = scan.next();\n int cnum = scan.nextInt();\n \n if(design.equals(\"S\")){\n check(S,cnum);\n }\n if(design.equals(\"H\")){\n check(H,cnum);\n }\n if(design.equals(\"C\")){\n check(C,cnum);\n }\n if(design.equals(\"D\")){\n check(D,cnum);\n }\n \n }\n \n for(int i=0;i<13;i++){\n if(S[i]==0){\n System.out.println(\"S \"+(i+1));\n }\n }\n for(int i=0;i<13;i++){\n if(H[i]==0){\n System.out.println(\"H \"+(i+1));\n }\n }\n for(int i=0;i<13;i++){\n if(C[i]==0){\n System.out.println(\"C \"+(i+1));\n }\n }\n for(int i=0;i<13;i++){\n if(D[i]==0){\n System.out.println(\"D \"+(i+1));\n }\n }\n \n \n }\n\n private static void check(int[] design, int cnum) {\n design[cnum-1]=1;\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[]args){\n //カード枚数\n int number=0;\n //入力を格納する配列\n int[] S = new int[13];\n int[] H = new int[13];\n int[] C = new int[13];\n int[] D = new int[13];\n \n Scanner scan = new Scanner(System.in);\n //枚数を格納\n number = scan.nextInt();\n \n for(int i=0;i<number;i++){\n String design = scan.next();\n int cnum = scan.nextInt();\n \n if(design.equals(\"S\")){\n check(S,cnum);\n }\n if(design.equals(\"H\")){\n check(H,cnum);\n }\n if(design.equals(\"C\")){\n check(C,cnum);\n }\n if(design.equals(\"D\")){\n check(D,cnum);\n }\n \n }\n \n for(int i=0;i<13;i++){\n if(S[i]==0){\n System.out.println(\"S \"+(i+1));\n }\n }\n for(int i=0;i<13;i++){\n if(H[i]==0){\n System.out.println(\"H \"+(i+1));\n }\n }\n for(int i=0;i<13;i++){\n if(C[i]==0){\n System.out.println(\"C \"+(i+1));\n }\n }\n for(int i=0;i<13;i++){\n if(D[i]==0){\n System.out.println(\"D \"+(i+1));\n }\n }\n \n \n }\n\n private static void check(int[] design, int cnum) {\n design[cnum-1]=1;\n }\n}",
"Main",
"public static void main(String[]args){\n //カード枚数\n int number=0;\n //入力を格納する配列\n int[] S = new int[13];\n int[] H = new int[13];\n int[] C = new int[13];\n int[] D = new int[13];\n \n Scanner scan = new Scanner(System.in);\n //枚数を格納\n number = scan.nextInt();\n \n for(int i=0;i<number;i++){\n String design = scan.next();\n int cnum = scan.nextInt();\n \n if(design.equals(\"S\")){\n check(S,cnum);\n }\n if(design.equals(\"H\")){\n check(H,cnum);\n }\n if(design.equals(\"C\")){\n check(C,cnum);\n }\n if(design.equals(\"D\")){\n check(D,cnum);\n }\n \n }\n \n for(int i=0;i<13;i++){\n if(S[i]==0){\n System.out.println(\"S \"+(i+1));\n }\n }\n for(int i=0;i<13;i++){\n if(H[i]==0){\n System.out.println(\"H \"+(i+1));\n }\n }\n for(int i=0;i<13;i++){\n if(C[i]==0){\n System.out.println(\"C \"+(i+1));\n }\n }\n for(int i=0;i<13;i++){\n if(D[i]==0){\n System.out.println(\"D \"+(i+1));\n }\n }\n \n \n }",
"main",
"{\n //カード枚数\n int number=0;\n //入力を格納する配列\n int[] S = new int[13];\n int[] H = new int[13];\n int[] C = new int[13];\n int[] D = new int[13];\n \n Scanner scan = new Scanner(System.in);\n //枚数を格納\n number = scan.nextInt();\n \n for(int i=0;i<number;i++){\n String design = scan.next();\n int cnum = scan.nextInt();\n \n if(design.equals(\"S\")){\n check(S,cnum);\n }\n if(design.equals(\"H\")){\n check(H,cnum);\n }\n if(design.equals(\"C\")){\n check(C,cnum);\n }\n if(design.equals(\"D\")){\n check(D,cnum);\n }\n \n }\n \n for(int i=0;i<13;i++){\n if(S[i]==0){\n System.out.println(\"S \"+(i+1));\n }\n }\n for(int i=0;i<13;i++){\n if(H[i]==0){\n System.out.println(\"H \"+(i+1));\n }\n }\n for(int i=0;i<13;i++){\n if(C[i]==0){\n System.out.println(\"C \"+(i+1));\n }\n }\n for(int i=0;i<13;i++){\n if(D[i]==0){\n System.out.println(\"D \"+(i+1));\n }\n }\n \n \n }",
"int number=0;",
"number",
"0",
"int[] S = new int[13];",
"S",
"new int[13]",
"13",
"int[] H = new int[13];",
"H",
"new int[13]",
"13",
"int[] C = new int[13];",
"C",
"new int[13]",
"13",
"int[] D = new int[13];",
"D",
"new int[13]",
"13",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"number = scan.nextInt()",
"number",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i=0;i<number;i++){\n String design = scan.next();\n int cnum = scan.nextInt();\n \n if(design.equals(\"S\")){\n check(S,cnum);\n }\n if(design.equals(\"H\")){\n check(H,cnum);\n }\n if(design.equals(\"C\")){\n check(C,cnum);\n }\n if(design.equals(\"D\")){\n check(D,cnum);\n }\n \n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<number",
"i",
"number",
"i++",
"i++",
"i",
"{\n String design = scan.next();\n int cnum = scan.nextInt();\n \n if(design.equals(\"S\")){\n check(S,cnum);\n }\n if(design.equals(\"H\")){\n check(H,cnum);\n }\n if(design.equals(\"C\")){\n check(C,cnum);\n }\n if(design.equals(\"D\")){\n check(D,cnum);\n }\n \n }",
"{\n String design = scan.next();\n int cnum = scan.nextInt();\n \n if(design.equals(\"S\")){\n check(S,cnum);\n }\n if(design.equals(\"H\")){\n check(H,cnum);\n }\n if(design.equals(\"C\")){\n check(C,cnum);\n }\n if(design.equals(\"D\")){\n check(D,cnum);\n }\n \n }",
"String design = scan.next();",
"design",
"scan.next()",
"scan.next",
"scan",
"int cnum = scan.nextInt();",
"cnum",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(design.equals(\"S\")){\n check(S,cnum);\n }",
"design.equals(\"S\")",
"design.equals",
"design",
"\"S\"",
"{\n check(S,cnum);\n }",
"check(S,cnum)",
"check",
"S",
"cnum",
"if(design.equals(\"H\")){\n check(H,cnum);\n }",
"design.equals(\"H\")",
"design.equals",
"design",
"\"H\"",
"{\n check(H,cnum);\n }",
"check(H,cnum)",
"check",
"H",
"cnum",
"if(design.equals(\"C\")){\n check(C,cnum);\n }",
"design.equals(\"C\")",
"design.equals",
"design",
"\"C\"",
"{\n check(C,cnum);\n }",
"check(C,cnum)",
"check",
"C",
"cnum",
"if(design.equals(\"D\")){\n check(D,cnum);\n }",
"design.equals(\"D\")",
"design.equals",
"design",
"\"D\"",
"{\n check(D,cnum);\n }",
"check(D,cnum)",
"check",
"D",
"cnum",
"for(int i=0;i<13;i++){\n if(S[i]==0){\n System.out.println(\"S \"+(i+1));\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<13",
"i",
"13",
"i++",
"i++",
"i",
"{\n if(S[i]==0){\n System.out.println(\"S \"+(i+1));\n }\n }",
"{\n if(S[i]==0){\n System.out.println(\"S \"+(i+1));\n }\n }",
"if(S[i]==0){\n System.out.println(\"S \"+(i+1));\n }",
"S[i]==0",
"S[i]",
"S",
"i",
"0",
"{\n System.out.println(\"S \"+(i+1));\n }",
"System.out.println(\"S \"+(i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \"+(i+1)",
"\"S \"",
"(i+1)",
"i",
"1",
"for(int i=0;i<13;i++){\n if(H[i]==0){\n System.out.println(\"H \"+(i+1));\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<13",
"i",
"13",
"i++",
"i++",
"i",
"{\n if(H[i]==0){\n System.out.println(\"H \"+(i+1));\n }\n }",
"{\n if(H[i]==0){\n System.out.println(\"H \"+(i+1));\n }\n }",
"if(H[i]==0){\n System.out.println(\"H \"+(i+1));\n }",
"H[i]==0",
"H[i]",
"H",
"i",
"0",
"{\n System.out.println(\"H \"+(i+1));\n }",
"System.out.println(\"H \"+(i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \"+(i+1)",
"\"H \"",
"(i+1)",
"i",
"1",
"for(int i=0;i<13;i++){\n if(C[i]==0){\n System.out.println(\"C \"+(i+1));\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<13",
"i",
"13",
"i++",
"i++",
"i",
"{\n if(C[i]==0){\n System.out.println(\"C \"+(i+1));\n }\n }",
"{\n if(C[i]==0){\n System.out.println(\"C \"+(i+1));\n }\n }",
"if(C[i]==0){\n System.out.println(\"C \"+(i+1));\n }",
"C[i]==0",
"C[i]",
"C",
"i",
"0",
"{\n System.out.println(\"C \"+(i+1));\n }",
"System.out.println(\"C \"+(i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \"+(i+1)",
"\"C \"",
"(i+1)",
"i",
"1",
"for(int i=0;i<13;i++){\n if(D[i]==0){\n System.out.println(\"D \"+(i+1));\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<13",
"i",
"13",
"i++",
"i++",
"i",
"{\n if(D[i]==0){\n System.out.println(\"D \"+(i+1));\n }\n }",
"{\n if(D[i]==0){\n System.out.println(\"D \"+(i+1));\n }\n }",
"if(D[i]==0){\n System.out.println(\"D \"+(i+1));\n }",
"D[i]==0",
"D[i]",
"D",
"i",
"0",
"{\n System.out.println(\"D \"+(i+1));\n }",
"System.out.println(\"D \"+(i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \"+(i+1)",
"\"D \"",
"(i+1)",
"i",
"1",
"String[]args",
"args",
"private static void check(int[] design, int cnum) {\n design[cnum-1]=1;\n }",
"check",
"{\n design[cnum-1]=1;\n }",
"design[cnum-1]=1",
"design[cnum-1]",
"design",
"cnum-1",
"cnum",
"1",
"1",
"int[] design",
"design",
"int cnum",
"cnum",
"public class Main{\n public static void main(String[]args){\n //カード枚数\n int number=0;\n //入力を格納する配列\n int[] S = new int[13];\n int[] H = new int[13];\n int[] C = new int[13];\n int[] D = new int[13];\n \n Scanner scan = new Scanner(System.in);\n //枚数を格納\n number = scan.nextInt();\n \n for(int i=0;i<number;i++){\n String design = scan.next();\n int cnum = scan.nextInt();\n \n if(design.equals(\"S\")){\n check(S,cnum);\n }\n if(design.equals(\"H\")){\n check(H,cnum);\n }\n if(design.equals(\"C\")){\n check(C,cnum);\n }\n if(design.equals(\"D\")){\n check(D,cnum);\n }\n \n }\n \n for(int i=0;i<13;i++){\n if(S[i]==0){\n System.out.println(\"S \"+(i+1));\n }\n }\n for(int i=0;i<13;i++){\n if(H[i]==0){\n System.out.println(\"H \"+(i+1));\n }\n }\n for(int i=0;i<13;i++){\n if(C[i]==0){\n System.out.println(\"C \"+(i+1));\n }\n }\n for(int i=0;i<13;i++){\n if(D[i]==0){\n System.out.println(\"D \"+(i+1));\n }\n }\n \n \n }\n\n private static void check(int[] design, int cnum) {\n design[cnum-1]=1;\n }\n}",
"public class Main{\n public static void main(String[]args){\n //カード枚数\n int number=0;\n //入力を格納する配列\n int[] S = new int[13];\n int[] H = new int[13];\n int[] C = new int[13];\n int[] D = new int[13];\n \n Scanner scan = new Scanner(System.in);\n //枚数を格納\n number = scan.nextInt();\n \n for(int i=0;i<number;i++){\n String design = scan.next();\n int cnum = scan.nextInt();\n \n if(design.equals(\"S\")){\n check(S,cnum);\n }\n if(design.equals(\"H\")){\n check(H,cnum);\n }\n if(design.equals(\"C\")){\n check(C,cnum);\n }\n if(design.equals(\"D\")){\n check(D,cnum);\n }\n \n }\n \n for(int i=0;i<13;i++){\n if(S[i]==0){\n System.out.println(\"S \"+(i+1));\n }\n }\n for(int i=0;i<13;i++){\n if(H[i]==0){\n System.out.println(\"H \"+(i+1));\n }\n }\n for(int i=0;i<13;i++){\n if(C[i]==0){\n System.out.println(\"C \"+(i+1));\n }\n }\n for(int i=0;i<13;i++){\n if(D[i]==0){\n System.out.println(\"D \"+(i+1));\n }\n }\n \n \n }\n\n private static void check(int[] design, int cnum) {\n design[cnum-1]=1;\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[]args){
//カード枚数
int number=0;
//入力を格納する配列
int[] S = new int[13];
int[] H = new int[13];
int[] C = new int[13];
int[] D = new int[13];
Scanner scan = new Scanner(System.in);
//枚数を格納
number = scan.nextInt();
for(int i=0;i<number;i++){
String design = scan.next();
int cnum = scan.nextInt();
if(design.equals("S")){
check(S,cnum);
}
if(design.equals("H")){
check(H,cnum);
}
if(design.equals("C")){
check(C,cnum);
}
if(design.equals("D")){
check(D,cnum);
}
}
for(int i=0;i<13;i++){
if(S[i]==0){
System.out.println("S "+(i+1));
}
}
for(int i=0;i<13;i++){
if(H[i]==0){
System.out.println("H "+(i+1));
}
}
for(int i=0;i<13;i++){
if(C[i]==0){
System.out.println("C "+(i+1));
}
}
for(int i=0;i<13;i++){
if(D[i]==0){
System.out.println("D "+(i+1));
}
}
}
private static void check(int[] design, int cnum) {
design[cnum-1]=1;
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
35,
13,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
35,
13,
34,
17,
1,
4,
18,
18,
13,
13,
17,
2,
13,
17,
3,
34,
17,
1,
4,
18,
18,
13,
13,
17,
2,
13,
17,
3,
34,
17,
1,
4,
18,
18,
13,
13,
17,
2,
13,
17,
3,
34,
17,
1,
4,
18,
18,
13,
13,
17,
2,
13,
17,
3,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
191,
5
],
[
191,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
34,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
34,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
49,
59
],
[
45,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
62,
72
],
[
45,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
75,
85
],
[
45,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
88,
98
],
[
8,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
99,
110
],
[
111,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
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
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
126,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
139,
145
],
[
145,
146
],
[
145,
147
],
[
138,
148
],
[
134,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
152,
157
],
[
152,
158
],
[
158,
159
],
[
158,
160
],
[
151,
161
],
[
134,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
165,
170
],
[
165,
171
],
[
171,
172
],
[
171,
173
],
[
164,
174
],
[
134,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
178,
183
],
[
178,
184
],
[
184,
185
],
[
184,
186
],
[
177,
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 {\n Scanner sc = new Scanner(System.in);\n \n boolean[][] cardHasFlag = new boolean[4][13];\n \n int n = sc.nextInt();\n \n for (int i = 0; i < n; i++) {\n String make = sc.next();\n int card = sc.nextInt();\n \n switch(make) {\n case \"S\" :\n cardHasFlag[0][card-1] = true;\n break;\n case \"H\" :\n cardHasFlag[1][card-1] = true;\n break;\n case \"C\" :\n cardHasFlag[2][card-1] = true;\n break;\n case \"D\" :\n cardHasFlag[3][card-1] = true;\n break;\n }\n }\n \n for (int i = 0; i < 4; i++) {\n for (int j = 0 ; j < 13; j++) {\n if (cardHasFlag[i][j] == false) {\n switch (i) {\n case 0 :\n System.out.printf(\"S %d\\n\", j+1);\n break;\n case 1 :\n System.out.printf(\"H %d\\n\", j+1);\n break;\n case 2 :\n System.out.printf(\"C %d\\n\", j+1);\n break;\n case 3 :\n System.out.printf(\"D %d\\n\", j+1);\n break;\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 \n boolean[][] cardHasFlag = new boolean[4][13];\n \n int n = sc.nextInt();\n \n for (int i = 0; i < n; i++) {\n String make = sc.next();\n int card = sc.nextInt();\n \n switch(make) {\n case \"S\" :\n cardHasFlag[0][card-1] = true;\n break;\n case \"H\" :\n cardHasFlag[1][card-1] = true;\n break;\n case \"C\" :\n cardHasFlag[2][card-1] = true;\n break;\n case \"D\" :\n cardHasFlag[3][card-1] = true;\n break;\n }\n }\n \n for (int i = 0; i < 4; i++) {\n for (int j = 0 ; j < 13; j++) {\n if (cardHasFlag[i][j] == false) {\n switch (i) {\n case 0 :\n System.out.printf(\"S %d\\n\", j+1);\n break;\n case 1 :\n System.out.printf(\"H %d\\n\", j+1);\n break;\n case 2 :\n System.out.printf(\"C %d\\n\", j+1);\n break;\n case 3 :\n System.out.printf(\"D %d\\n\", j+1);\n break;\n }\n }\n }\n }\n }\n}",
"Main",
"public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n \n boolean[][] cardHasFlag = new boolean[4][13];\n \n int n = sc.nextInt();\n \n for (int i = 0; i < n; i++) {\n String make = sc.next();\n int card = sc.nextInt();\n \n switch(make) {\n case \"S\" :\n cardHasFlag[0][card-1] = true;\n break;\n case \"H\" :\n cardHasFlag[1][card-1] = true;\n break;\n case \"C\" :\n cardHasFlag[2][card-1] = true;\n break;\n case \"D\" :\n cardHasFlag[3][card-1] = true;\n break;\n }\n }\n \n for (int i = 0; i < 4; i++) {\n for (int j = 0 ; j < 13; j++) {\n if (cardHasFlag[i][j] == false) {\n switch (i) {\n case 0 :\n System.out.printf(\"S %d\\n\", j+1);\n break;\n case 1 :\n System.out.printf(\"H %d\\n\", j+1);\n break;\n case 2 :\n System.out.printf(\"C %d\\n\", j+1);\n break;\n case 3 :\n System.out.printf(\"D %d\\n\", j+1);\n break;\n }\n }\n }\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n \n boolean[][] cardHasFlag = new boolean[4][13];\n \n int n = sc.nextInt();\n \n for (int i = 0; i < n; i++) {\n String make = sc.next();\n int card = sc.nextInt();\n \n switch(make) {\n case \"S\" :\n cardHasFlag[0][card-1] = true;\n break;\n case \"H\" :\n cardHasFlag[1][card-1] = true;\n break;\n case \"C\" :\n cardHasFlag[2][card-1] = true;\n break;\n case \"D\" :\n cardHasFlag[3][card-1] = true;\n break;\n }\n }\n \n for (int i = 0; i < 4; i++) {\n for (int j = 0 ; j < 13; j++) {\n if (cardHasFlag[i][j] == false) {\n switch (i) {\n case 0 :\n System.out.printf(\"S %d\\n\", j+1);\n break;\n case 1 :\n System.out.printf(\"H %d\\n\", j+1);\n break;\n case 2 :\n System.out.printf(\"C %d\\n\", j+1);\n break;\n case 3 :\n System.out.printf(\"D %d\\n\", j+1);\n break;\n }\n }\n }\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"boolean[][] cardHasFlag = new boolean[4][13];",
"cardHasFlag",
"new boolean[4][13]",
"4",
"13",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < n; i++) {\n String make = sc.next();\n int card = sc.nextInt();\n \n switch(make) {\n case \"S\" :\n cardHasFlag[0][card-1] = true;\n break;\n case \"H\" :\n cardHasFlag[1][card-1] = true;\n break;\n case \"C\" :\n cardHasFlag[2][card-1] = true;\n break;\n case \"D\" :\n cardHasFlag[3][card-1] = true;\n break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String make = sc.next();\n int card = sc.nextInt();\n \n switch(make) {\n case \"S\" :\n cardHasFlag[0][card-1] = true;\n break;\n case \"H\" :\n cardHasFlag[1][card-1] = true;\n break;\n case \"C\" :\n cardHasFlag[2][card-1] = true;\n break;\n case \"D\" :\n cardHasFlag[3][card-1] = true;\n break;\n }\n }",
"{\n String make = sc.next();\n int card = sc.nextInt();\n \n switch(make) {\n case \"S\" :\n cardHasFlag[0][card-1] = true;\n break;\n case \"H\" :\n cardHasFlag[1][card-1] = true;\n break;\n case \"C\" :\n cardHasFlag[2][card-1] = true;\n break;\n case \"D\" :\n cardHasFlag[3][card-1] = true;\n break;\n }\n }",
"String make = sc.next();",
"make",
"sc.next()",
"sc.next",
"sc",
"int card = sc.nextInt();",
"card",
"sc.nextInt()",
"sc.nextInt",
"sc",
"switch(make) {\n case \"S\" :\n cardHasFlag[0][card-1] = true;\n break;\n case \"H\" :\n cardHasFlag[1][card-1] = true;\n break;\n case \"C\" :\n cardHasFlag[2][card-1] = true;\n break;\n case \"D\" :\n cardHasFlag[3][card-1] = true;\n break;\n }",
"make",
"case \"S\" :",
"\"S\"",
"case \"S\" :",
"cardHasFlag[0][card-1] = true",
"cardHasFlag[0][card-1]",
"cardHasFlag[0]",
"cardHasFlag",
"0",
"card-1",
"card",
"1",
"true",
"break;",
"case \"H\" :",
"\"H\"",
"case \"H\" :",
"cardHasFlag[1][card-1] = true",
"cardHasFlag[1][card-1]",
"cardHasFlag[1]",
"cardHasFlag",
"1",
"card-1",
"card",
"1",
"true",
"break;",
"case \"C\" :",
"\"C\"",
"case \"C\" :",
"cardHasFlag[2][card-1] = true",
"cardHasFlag[2][card-1]",
"cardHasFlag[2]",
"cardHasFlag",
"2",
"card-1",
"card",
"1",
"true",
"break;",
"case \"D\" :",
"\"D\"",
"case \"D\" :",
"cardHasFlag[3][card-1] = true",
"cardHasFlag[3][card-1]",
"cardHasFlag[3]",
"cardHasFlag",
"3",
"card-1",
"card",
"1",
"true",
"break;",
"for (int i = 0; i < 4; i++) {\n for (int j = 0 ; j < 13; j++) {\n if (cardHasFlag[i][j] == false) {\n switch (i) {\n case 0 :\n System.out.printf(\"S %d\\n\", j+1);\n break;\n case 1 :\n System.out.printf(\"H %d\\n\", j+1);\n break;\n case 2 :\n System.out.printf(\"C %d\\n\", j+1);\n break;\n case 3 :\n System.out.printf(\"D %d\\n\", j+1);\n break;\n }\n }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n for (int j = 0 ; j < 13; j++) {\n if (cardHasFlag[i][j] == false) {\n switch (i) {\n case 0 :\n System.out.printf(\"S %d\\n\", j+1);\n break;\n case 1 :\n System.out.printf(\"H %d\\n\", j+1);\n break;\n case 2 :\n System.out.printf(\"C %d\\n\", j+1);\n break;\n case 3 :\n System.out.printf(\"D %d\\n\", j+1);\n break;\n }\n }\n }\n }",
"{\n for (int j = 0 ; j < 13; j++) {\n if (cardHasFlag[i][j] == false) {\n switch (i) {\n case 0 :\n System.out.printf(\"S %d\\n\", j+1);\n break;\n case 1 :\n System.out.printf(\"H %d\\n\", j+1);\n break;\n case 2 :\n System.out.printf(\"C %d\\n\", j+1);\n break;\n case 3 :\n System.out.printf(\"D %d\\n\", j+1);\n break;\n }\n }\n }\n }",
"for (int j = 0 ; j < 13; j++) {\n if (cardHasFlag[i][j] == false) {\n switch (i) {\n case 0 :\n System.out.printf(\"S %d\\n\", j+1);\n break;\n case 1 :\n System.out.printf(\"H %d\\n\", j+1);\n break;\n case 2 :\n System.out.printf(\"C %d\\n\", j+1);\n break;\n case 3 :\n System.out.printf(\"D %d\\n\", j+1);\n break;\n }\n }\n }",
"int j = 0 ;",
"int j = 0 ;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n if (cardHasFlag[i][j] == false) {\n switch (i) {\n case 0 :\n System.out.printf(\"S %d\\n\", j+1);\n break;\n case 1 :\n System.out.printf(\"H %d\\n\", j+1);\n break;\n case 2 :\n System.out.printf(\"C %d\\n\", j+1);\n break;\n case 3 :\n System.out.printf(\"D %d\\n\", j+1);\n break;\n }\n }\n }",
"{\n if (cardHasFlag[i][j] == false) {\n switch (i) {\n case 0 :\n System.out.printf(\"S %d\\n\", j+1);\n break;\n case 1 :\n System.out.printf(\"H %d\\n\", j+1);\n break;\n case 2 :\n System.out.printf(\"C %d\\n\", j+1);\n break;\n case 3 :\n System.out.printf(\"D %d\\n\", j+1);\n break;\n }\n }\n }",
"if (cardHasFlag[i][j] == false) {\n switch (i) {\n case 0 :\n System.out.printf(\"S %d\\n\", j+1);\n break;\n case 1 :\n System.out.printf(\"H %d\\n\", j+1);\n break;\n case 2 :\n System.out.printf(\"C %d\\n\", j+1);\n break;\n case 3 :\n System.out.printf(\"D %d\\n\", j+1);\n break;\n }\n }",
"cardHasFlag[i][j] == false",
"cardHasFlag[i][j]",
"cardHasFlag[i]",
"cardHasFlag",
"i",
"j",
"false",
"{\n switch (i) {\n case 0 :\n System.out.printf(\"S %d\\n\", j+1);\n break;\n case 1 :\n System.out.printf(\"H %d\\n\", j+1);\n break;\n case 2 :\n System.out.printf(\"C %d\\n\", j+1);\n break;\n case 3 :\n System.out.printf(\"D %d\\n\", j+1);\n break;\n }\n }",
"switch (i) {\n case 0 :\n System.out.printf(\"S %d\\n\", j+1);\n break;\n case 1 :\n System.out.printf(\"H %d\\n\", j+1);\n break;\n case 2 :\n System.out.printf(\"C %d\\n\", j+1);\n break;\n case 3 :\n System.out.printf(\"D %d\\n\", j+1);\n break;\n }",
"i",
"case 0 :",
"0",
"case 0 :",
"System.out.printf(\"S %d\\n\", j+1)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"S %d\\n\"",
"j+1",
"j",
"1",
"break;",
"case 1 :",
"1",
"case 1 :",
"System.out.printf(\"H %d\\n\", j+1)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"H %d\\n\"",
"j+1",
"j",
"1",
"break;",
"case 2 :",
"2",
"case 2 :",
"System.out.printf(\"C %d\\n\", j+1)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"C %d\\n\"",
"j+1",
"j",
"1",
"break;",
"case 3 :",
"3",
"case 3 :",
"System.out.printf(\"D %d\\n\", j+1)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"D %d\\n\"",
"j+1",
"j",
"1",
"break;",
"String[] args",
"args",
"public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n \n boolean[][] cardHasFlag = new boolean[4][13];\n \n int n = sc.nextInt();\n \n for (int i = 0; i < n; i++) {\n String make = sc.next();\n int card = sc.nextInt();\n \n switch(make) {\n case \"S\" :\n cardHasFlag[0][card-1] = true;\n break;\n case \"H\" :\n cardHasFlag[1][card-1] = true;\n break;\n case \"C\" :\n cardHasFlag[2][card-1] = true;\n break;\n case \"D\" :\n cardHasFlag[3][card-1] = true;\n break;\n }\n }\n \n for (int i = 0; i < 4; i++) {\n for (int j = 0 ; j < 13; j++) {\n if (cardHasFlag[i][j] == false) {\n switch (i) {\n case 0 :\n System.out.printf(\"S %d\\n\", j+1);\n break;\n case 1 :\n System.out.printf(\"H %d\\n\", j+1);\n break;\n case 2 :\n System.out.printf(\"C %d\\n\", j+1);\n break;\n case 3 :\n System.out.printf(\"D %d\\n\", j+1);\n break;\n }\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 \n boolean[][] cardHasFlag = new boolean[4][13];\n \n int n = sc.nextInt();\n \n for (int i = 0; i < n; i++) {\n String make = sc.next();\n int card = sc.nextInt();\n \n switch(make) {\n case \"S\" :\n cardHasFlag[0][card-1] = true;\n break;\n case \"H\" :\n cardHasFlag[1][card-1] = true;\n break;\n case \"C\" :\n cardHasFlag[2][card-1] = true;\n break;\n case \"D\" :\n cardHasFlag[3][card-1] = true;\n break;\n }\n }\n \n for (int i = 0; i < 4; i++) {\n for (int j = 0 ; j < 13; j++) {\n if (cardHasFlag[i][j] == false) {\n switch (i) {\n case 0 :\n System.out.printf(\"S %d\\n\", j+1);\n break;\n case 1 :\n System.out.printf(\"H %d\\n\", j+1);\n break;\n case 2 :\n System.out.printf(\"C %d\\n\", j+1);\n break;\n case 3 :\n System.out.printf(\"D %d\\n\", j+1);\n break;\n }\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);
boolean[][] cardHasFlag = new boolean[4][13];
int n = sc.nextInt();
for (int i = 0; i < n; i++) {
String make = sc.next();
int card = sc.nextInt();
switch(make) {
case "S" :
cardHasFlag[0][card-1] = true;
break;
case "H" :
cardHasFlag[1][card-1] = true;
break;
case "C" :
cardHasFlag[2][card-1] = true;
break;
case "D" :
cardHasFlag[3][card-1] = true;
break;
}
}
for (int i = 0; i < 4; i++) {
for (int j = 0 ; j < 13; j++) {
if (cardHasFlag[i][j] == false) {
switch (i) {
case 0 :
System.out.printf("S %d\n", j+1);
break;
case 1 :
System.out.printf("H %d\n", j+1);
break;
case 2 :
System.out.printf("C %d\n", j+1);
break;
case 3 :
System.out.printf("D %d\n", j+1);
break;
}
}
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
0,
18,
13,
13,
0,
18,
13,
13,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
35,
13,
34,
17,
1,
0,
13,
4,
18,
13,
0,
18,
13,
2,
13,
17,
17,
3,
34,
17,
1,
0,
13,
4,
18,
13,
0,
18,
13,
2,
13,
17,
17,
3,
34,
17,
1,
0,
13,
4,
18,
13,
0,
18,
13,
2,
13,
17,
17,
3,
34,
17,
1,
0,
13,
4,
18,
13,
0,
18,
13,
2,
13,
17,
17,
3,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
18,
13,
13,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
18,
13,
13,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
18,
13,
13,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
18,
13,
13,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
266,
5
],
[
266,
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
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
8,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
79,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
89,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
98,
100
],
[
95,
101
],
[
89,
102
],
[
85,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
105,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
114,
116
],
[
111,
117
],
[
105,
118
],
[
85,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
121,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
130,
132
],
[
127,
133
],
[
121,
134
],
[
85,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
137,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
146,
148
],
[
143,
149
],
[
137,
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
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
169,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
176,
178
],
[
8,
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
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
192,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
197,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
204,
206
],
[
8,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
207,
212
],
[
212,
213
],
[
212,
214
],
[
207,
215
],
[
215,
216
],
[
216,
217
],
[
207,
218
],
[
219,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
220,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
227,
229
],
[
225,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
232,
234
],
[
8,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
237,
239
],
[
235,
240
],
[
240,
241
],
[
240,
242
],
[
235,
243
],
[
243,
244
],
[
244,
245
],
[
235,
246
],
[
247,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
248,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
253,
258
],
[
258,
259
],
[
258,
260
],
[
260,
261
],
[
260,
262
],
[
6,
263
],
[
263,
264
],
[
0,
265
],
[
265,
266
],
[
265,
267
]
] | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n String token;\n int rank;\n boolean[] S = new boolean[13];\n boolean[] H = new boolean[13];\n boolean[] C = new boolean[13];\n boolean[] D = new boolean[13];\n\n for (int i = 0; i < 13; i++) {\n S[i] = H[i] = C[i] = D[i] = false;\n }\n\n for (int i = 0; i < n; i++) {\n token = scan.next();\n switch (token) {\n case \"S\":\n rank = scan.nextInt();\n S[rank -1] = true;\n break;\n case \"H\":\n rank = scan.nextInt();\n H[rank -1] = true;\n break;\n case \"C\":\n rank = scan.nextInt();\n C[rank -1] = true;\n break;\n case \"D\":\n rank = scan.nextInt();\n D[rank -1] = true;\n break;\n }\n }\n\n for (int i = 0; i < 13; i++) {\n if (!S[i]) System.out.println(\"S \" + (i + 1));\n }\n for (int i = 0; i < 13; i++) {\n if (!H[i]) System.out.println(\"H \" + (i + 1));\n }\n for (int i = 0; i < 13; i++) {\n if (!C[i]) System.out.println(\"C \" + (i + 1));\n }\n for (int i = 0; i < 13; i++) {\n if (!D[i]) System.out.println(\"D \" + (i + 1));\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n String token;\n int rank;\n boolean[] S = new boolean[13];\n boolean[] H = new boolean[13];\n boolean[] C = new boolean[13];\n boolean[] D = new boolean[13];\n\n for (int i = 0; i < 13; i++) {\n S[i] = H[i] = C[i] = D[i] = false;\n }\n\n for (int i = 0; i < n; i++) {\n token = scan.next();\n switch (token) {\n case \"S\":\n rank = scan.nextInt();\n S[rank -1] = true;\n break;\n case \"H\":\n rank = scan.nextInt();\n H[rank -1] = true;\n break;\n case \"C\":\n rank = scan.nextInt();\n C[rank -1] = true;\n break;\n case \"D\":\n rank = scan.nextInt();\n D[rank -1] = true;\n break;\n }\n }\n\n for (int i = 0; i < 13; i++) {\n if (!S[i]) System.out.println(\"S \" + (i + 1));\n }\n for (int i = 0; i < 13; i++) {\n if (!H[i]) System.out.println(\"H \" + (i + 1));\n }\n for (int i = 0; i < 13; i++) {\n if (!C[i]) System.out.println(\"C \" + (i + 1));\n }\n for (int i = 0; i < 13; i++) {\n if (!D[i]) System.out.println(\"D \" + (i + 1));\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n String token;\n int rank;\n boolean[] S = new boolean[13];\n boolean[] H = new boolean[13];\n boolean[] C = new boolean[13];\n boolean[] D = new boolean[13];\n\n for (int i = 0; i < 13; i++) {\n S[i] = H[i] = C[i] = D[i] = false;\n }\n\n for (int i = 0; i < n; i++) {\n token = scan.next();\n switch (token) {\n case \"S\":\n rank = scan.nextInt();\n S[rank -1] = true;\n break;\n case \"H\":\n rank = scan.nextInt();\n H[rank -1] = true;\n break;\n case \"C\":\n rank = scan.nextInt();\n C[rank -1] = true;\n break;\n case \"D\":\n rank = scan.nextInt();\n D[rank -1] = true;\n break;\n }\n }\n\n for (int i = 0; i < 13; i++) {\n if (!S[i]) System.out.println(\"S \" + (i + 1));\n }\n for (int i = 0; i < 13; i++) {\n if (!H[i]) System.out.println(\"H \" + (i + 1));\n }\n for (int i = 0; i < 13; i++) {\n if (!C[i]) System.out.println(\"C \" + (i + 1));\n }\n for (int i = 0; i < 13; i++) {\n if (!D[i]) System.out.println(\"D \" + (i + 1));\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n String token;\n int rank;\n boolean[] S = new boolean[13];\n boolean[] H = new boolean[13];\n boolean[] C = new boolean[13];\n boolean[] D = new boolean[13];\n\n for (int i = 0; i < 13; i++) {\n S[i] = H[i] = C[i] = D[i] = false;\n }\n\n for (int i = 0; i < n; i++) {\n token = scan.next();\n switch (token) {\n case \"S\":\n rank = scan.nextInt();\n S[rank -1] = true;\n break;\n case \"H\":\n rank = scan.nextInt();\n H[rank -1] = true;\n break;\n case \"C\":\n rank = scan.nextInt();\n C[rank -1] = true;\n break;\n case \"D\":\n rank = scan.nextInt();\n D[rank -1] = true;\n break;\n }\n }\n\n for (int i = 0; i < 13; i++) {\n if (!S[i]) System.out.println(\"S \" + (i + 1));\n }\n for (int i = 0; i < 13; i++) {\n if (!H[i]) System.out.println(\"H \" + (i + 1));\n }\n for (int i = 0; i < 13; i++) {\n if (!C[i]) System.out.println(\"C \" + (i + 1));\n }\n for (int i = 0; i < 13; i++) {\n if (!D[i]) System.out.println(\"D \" + (i + 1));\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String token;",
"token",
"int rank;",
"rank",
"boolean[] S = new boolean[13];",
"S",
"new boolean[13]",
"13",
"boolean[] H = new boolean[13];",
"H",
"new boolean[13]",
"13",
"boolean[] C = new boolean[13];",
"C",
"new boolean[13]",
"13",
"boolean[] D = new boolean[13];",
"D",
"new boolean[13]",
"13",
"for (int i = 0; i < 13; i++) {\n S[i] = H[i] = C[i] = D[i] = false;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n S[i] = H[i] = C[i] = D[i] = false;\n }",
"{\n S[i] = H[i] = C[i] = D[i] = false;\n }",
"S[i] = H[i] = C[i] = D[i] = false",
"S[i]",
"S",
"i",
"H[i] = C[i] = D[i] = false",
"H[i]",
"H",
"i",
"C[i] = D[i] = false",
"C[i]",
"C",
"i",
"D[i] = false",
"D[i]",
"D",
"i",
"false",
"for (int i = 0; i < n; i++) {\n token = scan.next();\n switch (token) {\n case \"S\":\n rank = scan.nextInt();\n S[rank -1] = true;\n break;\n case \"H\":\n rank = scan.nextInt();\n H[rank -1] = true;\n break;\n case \"C\":\n rank = scan.nextInt();\n C[rank -1] = true;\n break;\n case \"D\":\n rank = scan.nextInt();\n D[rank -1] = true;\n break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n token = scan.next();\n switch (token) {\n case \"S\":\n rank = scan.nextInt();\n S[rank -1] = true;\n break;\n case \"H\":\n rank = scan.nextInt();\n H[rank -1] = true;\n break;\n case \"C\":\n rank = scan.nextInt();\n C[rank -1] = true;\n break;\n case \"D\":\n rank = scan.nextInt();\n D[rank -1] = true;\n break;\n }\n }",
"{\n token = scan.next();\n switch (token) {\n case \"S\":\n rank = scan.nextInt();\n S[rank -1] = true;\n break;\n case \"H\":\n rank = scan.nextInt();\n H[rank -1] = true;\n break;\n case \"C\":\n rank = scan.nextInt();\n C[rank -1] = true;\n break;\n case \"D\":\n rank = scan.nextInt();\n D[rank -1] = true;\n break;\n }\n }",
"token = scan.next()",
"token",
"scan.next()",
"scan.next",
"scan",
"switch (token) {\n case \"S\":\n rank = scan.nextInt();\n S[rank -1] = true;\n break;\n case \"H\":\n rank = scan.nextInt();\n H[rank -1] = true;\n break;\n case \"C\":\n rank = scan.nextInt();\n C[rank -1] = true;\n break;\n case \"D\":\n rank = scan.nextInt();\n D[rank -1] = true;\n break;\n }",
"token",
"case \"S\":",
"\"S\"",
"case \"S\":",
"rank = scan.nextInt()",
"rank",
"scan.nextInt()",
"scan.nextInt",
"scan",
"S[rank -1] = true",
"S[rank -1]",
"S",
"rank -1",
"rank",
"1",
"true",
"break;",
"case \"H\":",
"\"H\"",
"case \"H\":",
"rank = scan.nextInt()",
"rank",
"scan.nextInt()",
"scan.nextInt",
"scan",
"H[rank -1] = true",
"H[rank -1]",
"H",
"rank -1",
"rank",
"1",
"true",
"break;",
"case \"C\":",
"\"C\"",
"case \"C\":",
"rank = scan.nextInt()",
"rank",
"scan.nextInt()",
"scan.nextInt",
"scan",
"C[rank -1] = true",
"C[rank -1]",
"C",
"rank -1",
"rank",
"1",
"true",
"break;",
"case \"D\":",
"\"D\"",
"case \"D\":",
"rank = scan.nextInt()",
"rank",
"scan.nextInt()",
"scan.nextInt",
"scan",
"D[rank -1] = true",
"D[rank -1]",
"D",
"rank -1",
"rank",
"1",
"true",
"break;",
"for (int i = 0; i < 13; i++) {\n if (!S[i]) System.out.println(\"S \" + (i + 1));\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n if (!S[i]) System.out.println(\"S \" + (i + 1));\n }",
"{\n if (!S[i]) System.out.println(\"S \" + (i + 1));\n }",
"if (!S[i]) System.out.println(\"S \" + (i + 1));",
"!S[i]",
"S[i]",
"S",
"i",
"System.out.println(\"S \" + (i + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \" + (i + 1)",
"\"S \"",
"(i + 1)",
"i",
"1",
"for (int i = 0; i < 13; i++) {\n if (!H[i]) System.out.println(\"H \" + (i + 1));\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n if (!H[i]) System.out.println(\"H \" + (i + 1));\n }",
"{\n if (!H[i]) System.out.println(\"H \" + (i + 1));\n }",
"if (!H[i]) System.out.println(\"H \" + (i + 1));",
"!H[i]",
"H[i]",
"H",
"i",
"System.out.println(\"H \" + (i + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \" + (i + 1)",
"\"H \"",
"(i + 1)",
"i",
"1",
"for (int i = 0; i < 13; i++) {\n if (!C[i]) System.out.println(\"C \" + (i + 1));\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n if (!C[i]) System.out.println(\"C \" + (i + 1));\n }",
"{\n if (!C[i]) System.out.println(\"C \" + (i + 1));\n }",
"if (!C[i]) System.out.println(\"C \" + (i + 1));",
"!C[i]",
"C[i]",
"C",
"i",
"System.out.println(\"C \" + (i + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \" + (i + 1)",
"\"C \"",
"(i + 1)",
"i",
"1",
"for (int i = 0; i < 13; i++) {\n if (!D[i]) System.out.println(\"D \" + (i + 1));\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n if (!D[i]) System.out.println(\"D \" + (i + 1));\n }",
"{\n if (!D[i]) System.out.println(\"D \" + (i + 1));\n }",
"if (!D[i]) System.out.println(\"D \" + (i + 1));",
"!D[i]",
"D[i]",
"D",
"i",
"System.out.println(\"D \" + (i + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \" + (i + 1)",
"\"D \"",
"(i + 1)",
"i",
"1",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n String token;\n int rank;\n boolean[] S = new boolean[13];\n boolean[] H = new boolean[13];\n boolean[] C = new boolean[13];\n boolean[] D = new boolean[13];\n\n for (int i = 0; i < 13; i++) {\n S[i] = H[i] = C[i] = D[i] = false;\n }\n\n for (int i = 0; i < n; i++) {\n token = scan.next();\n switch (token) {\n case \"S\":\n rank = scan.nextInt();\n S[rank -1] = true;\n break;\n case \"H\":\n rank = scan.nextInt();\n H[rank -1] = true;\n break;\n case \"C\":\n rank = scan.nextInt();\n C[rank -1] = true;\n break;\n case \"D\":\n rank = scan.nextInt();\n D[rank -1] = true;\n break;\n }\n }\n\n for (int i = 0; i < 13; i++) {\n if (!S[i]) System.out.println(\"S \" + (i + 1));\n }\n for (int i = 0; i < 13; i++) {\n if (!H[i]) System.out.println(\"H \" + (i + 1));\n }\n for (int i = 0; i < 13; i++) {\n if (!C[i]) System.out.println(\"C \" + (i + 1));\n }\n for (int i = 0; i < 13; i++) {\n if (!D[i]) System.out.println(\"D \" + (i + 1));\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n String token;\n int rank;\n boolean[] S = new boolean[13];\n boolean[] H = new boolean[13];\n boolean[] C = new boolean[13];\n boolean[] D = new boolean[13];\n\n for (int i = 0; i < 13; i++) {\n S[i] = H[i] = C[i] = D[i] = false;\n }\n\n for (int i = 0; i < n; i++) {\n token = scan.next();\n switch (token) {\n case \"S\":\n rank = scan.nextInt();\n S[rank -1] = true;\n break;\n case \"H\":\n rank = scan.nextInt();\n H[rank -1] = true;\n break;\n case \"C\":\n rank = scan.nextInt();\n C[rank -1] = true;\n break;\n case \"D\":\n rank = scan.nextInt();\n D[rank -1] = true;\n break;\n }\n }\n\n for (int i = 0; i < 13; i++) {\n if (!S[i]) System.out.println(\"S \" + (i + 1));\n }\n for (int i = 0; i < 13; i++) {\n if (!H[i]) System.out.println(\"H \" + (i + 1));\n }\n for (int i = 0; i < 13; i++) {\n if (!C[i]) System.out.println(\"C \" + (i + 1));\n }\n for (int i = 0; i < 13; i++) {\n if (!D[i]) System.out.println(\"D \" + (i + 1));\n }\n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
String token;
int rank;
boolean[] S = new boolean[13];
boolean[] H = new boolean[13];
boolean[] C = new boolean[13];
boolean[] D = new boolean[13];
for (int i = 0; i < 13; i++) {
S[i] = H[i] = C[i] = D[i] = false;
}
for (int i = 0; i < n; i++) {
token = scan.next();
switch (token) {
case "S":
rank = scan.nextInt();
S[rank -1] = true;
break;
case "H":
rank = scan.nextInt();
H[rank -1] = true;
break;
case "C":
rank = scan.nextInt();
C[rank -1] = true;
break;
case "D":
rank = scan.nextInt();
D[rank -1] = true;
break;
}
}
for (int i = 0; i < 13; i++) {
if (!S[i]) System.out.println("S " + (i + 1));
}
for (int i = 0; i < 13; i++) {
if (!H[i]) System.out.println("H " + (i + 1));
}
for (int i = 0; i < 13; i++) {
if (!C[i]) System.out.println("C " + (i + 1));
}
for (int i = 0; i < 13; i++) {
if (!D[i]) System.out.println("D " + (i + 1));
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
17,
17,
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,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
17,
41,
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,
0,
13,
8,
4,
18,
17,
18,
13,
17,
17,
8,
4,
18,
17,
18,
13,
17,
17,
8,
4,
18,
17,
18,
13,
17,
17,
8,
4,
18,
17,
18,
13,
17,
17,
17,
0,
13,
4,
18,
13,
18,
13,
17,
4,
18,
18,
18,
13,
13,
13,
17,
28,
13,
13,
30,
30,
28,
13,
13,
30,
30,
14,
2,
40,
4,
18,
13,
2,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
2,
4,
18,
13,
17,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
8,
2,
17,
13,
17,
8,
2,
17,
13,
17,
8,
2,
17,
13,
17,
8,
2,
17,
13,
17,
17,
0,
18,
36,
13,
13,
0,
18,
36,
13,
17,
23,
13,
23,
13,
12,
13,
30,
29,
18,
36,
13,
12,
13,
30,
29,
18,
36,
13,
12,
13,
30,
29,
18,
36,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
267,
5
],
[
267,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
20,
30
],
[
30,
31
],
[
31,
32
],
[
20,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
35,
47
],
[
47,
48
],
[
48,
49
],
[
35,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
52,
58
],
[
8,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
65,
66
],
[
8,
67
],
[
67,
68
],
[
67,
69
],
[
8,
71
],
[
71,
72
],
[
8,
73
],
[
73,
74
],
[
73,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
76,
87
],
[
88,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
91,
96
],
[
88,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
103,
104
],
[
103,
105
],
[
99,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
111,
112
],
[
111,
113
],
[
107,
114
],
[
107,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
119,
120
],
[
119,
121
],
[
115,
122
],
[
115,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
127,
128
],
[
127,
129
],
[
123,
130
],
[
123,
131
],
[
88,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
137,
138
],
[
137,
139
],
[
88,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
142,
146
],
[
140,
147
],
[
8,
148
],
[
148,
149
],
[
148,
150
],
[
148,
151
],
[
152,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
153,
156
],
[
157,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
159,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
164,
168
],
[
158,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
169,
174
],
[
175,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
175,
179
],
[
175,
180
],
[
180,
181
],
[
181,
182
],
[
6,
183
],
[
183,
184
],
[
0,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
185,
189
],
[
189,
190
],
[
185,
191
],
[
191,
192
],
[
185,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
196,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
200,
204
],
[
200,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
205,
209
],
[
205,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
210,
214
],
[
210,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
215,
219
],
[
215,
220
],
[
195,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
221,
225
],
[
195,
226
],
[
226,
227
],
[
227,
228
],
[
227,
229
],
[
226,
230
],
[
193,
231
],
[
231,
232
],
[
193,
233
],
[
233,
234
],
[
185,
235
],
[
235,
236
],
[
235,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
185,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
246,
248
],
[
185,
249
],
[
249,
250
],
[
249,
251
],
[
251,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
185,
256
],
[
256,
257
],
[
256,
258
],
[
258,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
259,
263
],
[
256,
264
],
[
264,
265
],
[
0,
266
],
[
266,
267
],
[
266,
268
]
] | [
"import java.io.*;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tCard[][] cardSet = new Card[4][14];\n\t\tfor (int i = 0 ; i < cardSet.length; i++) {\n\t\t\tfor (int j = 0; j < cardSet[i].length; j++) {\n\t\t\t\tcardSet[i][j] = new Card(i, j);\n\t\t\t}\n\t\t}\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tString[] str = new String[2];\n\t\tint a, b = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tstr = br.readLine().split(\"\\\\s+\");\n\t\t\ta = \"S\".equals(str[0]) ? 0 : \"H\".equals(str[0]) ? 1 : \"C\".equals(str[0]) ? 2 : \"D\".equals(str[0]) ? 3 : 4;\n\t\t\tb = Integer.parseInt(str[1]);\n\t\t\tcardSet[a][b].setIsOwn(true);;\n\t\t}\n\n\t\tfor (Card[] cards : cardSet) {\n\t\t\tfor (Card card : cards) {\n\t\t\t\tif (!card.getIsOwn() && card.getNumber() != 0) System.out.println(card.getSuitbyRom() + \" \" + card.getNumber());\n\t\t\t}\n\t\t}\n\t}\n}\n\nclass Card {\n\tprivate String suitbyRom;\n\tprivate int number;\n\tprivate Boolean isOwn;\n\t\n\tpublic Card(int i, int j) {\n\t\tthis.suitbyRom = 0 == i ? \"S\" : 1 == i ? \"H\" : 2 == i ? \"C\" : 3 == i ? \"D\" : \"X\";\n\t\tthis.number = j;\n\t\tthis.isOwn = false;\n\t}\n\t\n\tpublic String getSuitbyRom() {\n\t\treturn this.suitbyRom;\n\t}\n\t\n\tpublic int getNumber() {\n\t\treturn this.number;\n\t}\n\t\n\tpublic Boolean getIsOwn() {\n\t\treturn this.isOwn;\n\t}\n\t\n\tpublic void setIsOwn(Boolean bool) {\n\t\tthis.isOwn = bool;\n\t}\n\t\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\t\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tCard[][] cardSet = new Card[4][14];\n\t\tfor (int i = 0 ; i < cardSet.length; i++) {\n\t\t\tfor (int j = 0; j < cardSet[i].length; j++) {\n\t\t\t\tcardSet[i][j] = new Card(i, j);\n\t\t\t}\n\t\t}\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tString[] str = new String[2];\n\t\tint a, b = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tstr = br.readLine().split(\"\\\\s+\");\n\t\t\ta = \"S\".equals(str[0]) ? 0 : \"H\".equals(str[0]) ? 1 : \"C\".equals(str[0]) ? 2 : \"D\".equals(str[0]) ? 3 : 4;\n\t\t\tb = Integer.parseInt(str[1]);\n\t\t\tcardSet[a][b].setIsOwn(true);;\n\t\t}\n\n\t\tfor (Card[] cards : cardSet) {\n\t\t\tfor (Card card : cards) {\n\t\t\t\tif (!card.getIsOwn() && card.getNumber() != 0) System.out.println(card.getSuitbyRom() + \" \" + card.getNumber());\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tCard[][] cardSet = new Card[4][14];\n\t\tfor (int i = 0 ; i < cardSet.length; i++) {\n\t\t\tfor (int j = 0; j < cardSet[i].length; j++) {\n\t\t\t\tcardSet[i][j] = new Card(i, j);\n\t\t\t}\n\t\t}\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tString[] str = new String[2];\n\t\tint a, b = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tstr = br.readLine().split(\"\\\\s+\");\n\t\t\ta = \"S\".equals(str[0]) ? 0 : \"H\".equals(str[0]) ? 1 : \"C\".equals(str[0]) ? 2 : \"D\".equals(str[0]) ? 3 : 4;\n\t\t\tb = Integer.parseInt(str[1]);\n\t\t\tcardSet[a][b].setIsOwn(true);;\n\t\t}\n\n\t\tfor (Card[] cards : cardSet) {\n\t\t\tfor (Card card : cards) {\n\t\t\t\tif (!card.getIsOwn() && card.getNumber() != 0) System.out.println(card.getSuitbyRom() + \" \" + card.getNumber());\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tCard[][] cardSet = new Card[4][14];\n\t\tfor (int i = 0 ; i < cardSet.length; i++) {\n\t\t\tfor (int j = 0; j < cardSet[i].length; j++) {\n\t\t\t\tcardSet[i][j] = new Card(i, j);\n\t\t\t}\n\t\t}\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tString[] str = new String[2];\n\t\tint a, b = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tstr = br.readLine().split(\"\\\\s+\");\n\t\t\ta = \"S\".equals(str[0]) ? 0 : \"H\".equals(str[0]) ? 1 : \"C\".equals(str[0]) ? 2 : \"D\".equals(str[0]) ? 3 : 4;\n\t\t\tb = Integer.parseInt(str[1]);\n\t\t\tcardSet[a][b].setIsOwn(true);;\n\t\t}\n\n\t\tfor (Card[] cards : cardSet) {\n\t\t\tfor (Card card : cards) {\n\t\t\t\tif (!card.getIsOwn() && card.getNumber() != 0) System.out.println(card.getSuitbyRom() + \" \" + card.getNumber());\n\t\t\t}\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"Card[][] cardSet = new Card[4][14];",
"cardSet",
"new Card[4][14]",
"4",
"14",
"for (int i = 0 ; i < cardSet.length; i++) {\n\t\t\tfor (int j = 0; j < cardSet[i].length; j++) {\n\t\t\t\tcardSet[i][j] = new Card(i, j);\n\t\t\t}\n\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < cardSet.length",
"i",
"cardSet.length",
"cardSet",
"cardSet.length",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < cardSet[i].length; j++) {\n\t\t\t\tcardSet[i][j] = new Card(i, j);\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < cardSet[i].length; j++) {\n\t\t\t\tcardSet[i][j] = new Card(i, j);\n\t\t\t}\n\t\t}",
"for (int j = 0; j < cardSet[i].length; j++) {\n\t\t\t\tcardSet[i][j] = new Card(i, j);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < cardSet[i].length",
"j",
"cardSet[i].length",
"cardSet[i]",
"cardSet",
"i",
"cardSet[i].length",
"j++",
"j++",
"j",
"{\n\t\t\t\tcardSet[i][j] = new Card(i, j);\n\t\t\t}",
"{\n\t\t\t\tcardSet[i][j] = new Card(i, j);\n\t\t\t}",
"cardSet[i][j] = new Card(i, j)",
"cardSet[i][j]",
"cardSet[i]",
"cardSet",
"i",
"j",
"new Card(i, j)",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String[] str = new String[2];",
"str",
"new String[2]",
"2",
"int a",
"a",
"b = 0;",
"b",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\tstr = br.readLine().split(\"\\\\s+\");\n\t\t\ta = \"S\".equals(str[0]) ? 0 : \"H\".equals(str[0]) ? 1 : \"C\".equals(str[0]) ? 2 : \"D\".equals(str[0]) ? 3 : 4;\n\t\t\tb = Integer.parseInt(str[1]);\n\t\t\tcardSet[a][b].setIsOwn(true);;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tstr = br.readLine().split(\"\\\\s+\");\n\t\t\ta = \"S\".equals(str[0]) ? 0 : \"H\".equals(str[0]) ? 1 : \"C\".equals(str[0]) ? 2 : \"D\".equals(str[0]) ? 3 : 4;\n\t\t\tb = Integer.parseInt(str[1]);\n\t\t\tcardSet[a][b].setIsOwn(true);;\n\t\t}",
"{\n\t\t\tstr = br.readLine().split(\"\\\\s+\");\n\t\t\ta = \"S\".equals(str[0]) ? 0 : \"H\".equals(str[0]) ? 1 : \"C\".equals(str[0]) ? 2 : \"D\".equals(str[0]) ? 3 : 4;\n\t\t\tb = Integer.parseInt(str[1]);\n\t\t\tcardSet[a][b].setIsOwn(true);;\n\t\t}",
"str = br.readLine().split(\"\\\\s+\")",
"str",
"br.readLine().split(\"\\\\s+\")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\"\\\\s+\"",
"a = \"S\".equals(str[0]) ? 0 : \"H\".equals(str[0]) ? 1 : \"C\".equals(str[0]) ? 2 : \"D\".equals(str[0]) ? 3 : 4",
"a",
"\"S\".equals(str[0]) ? 0 : \"H\".equals(str[0]) ? 1 : \"C\".equals(str[0]) ? 2 : \"D\".equals(str[0]) ? 3 : 4",
"\"S\".equals(str[0])",
"\"S\".equals",
"\"S\"",
"str[0]",
"str",
"0",
"0",
"\"H\".equals(str[0]) ? 1 : \"C\".equals(str[0]) ? 2 : \"D\".equals(str[0]) ? 3 : 4",
"\"H\".equals(str[0])",
"\"H\".equals",
"\"H\"",
"str[0]",
"str",
"0",
"1",
"\"C\".equals(str[0]) ? 2 : \"D\".equals(str[0]) ? 3 : 4",
"\"C\".equals(str[0])",
"\"C\".equals",
"\"C\"",
"str[0]",
"str",
"0",
"2",
"\"D\".equals(str[0]) ? 3 : 4",
"\"D\".equals(str[0])",
"\"D\".equals",
"\"D\"",
"str[0]",
"str",
"0",
"3",
"4",
"b = Integer.parseInt(str[1])",
"b",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"cardSet[a][b].setIsOwn(true)",
"cardSet[a][b].setIsOwn",
"cardSet[a][b]",
"cardSet[a]",
"cardSet",
"a",
"b",
"true",
"for (Card[] cards : cardSet) {\n\t\t\tfor (Card card : cards) {\n\t\t\t\tif (!card.getIsOwn() && card.getNumber() != 0) System.out.println(card.getSuitbyRom() + \" \" + card.getNumber());\n\t\t\t}\n\t\t}",
"Card[] cards",
"cardSet",
"{\n\t\t\tfor (Card card : cards) {\n\t\t\t\tif (!card.getIsOwn() && card.getNumber() != 0) System.out.println(card.getSuitbyRom() + \" \" + card.getNumber());\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (Card card : cards) {\n\t\t\t\tif (!card.getIsOwn() && card.getNumber() != 0) System.out.println(card.getSuitbyRom() + \" \" + card.getNumber());\n\t\t\t}\n\t\t}",
"for (Card card : cards) {\n\t\t\t\tif (!card.getIsOwn() && card.getNumber() != 0) System.out.println(card.getSuitbyRom() + \" \" + card.getNumber());\n\t\t\t}",
"Card card",
"cards",
"{\n\t\t\t\tif (!card.getIsOwn() && card.getNumber() != 0) System.out.println(card.getSuitbyRom() + \" \" + card.getNumber());\n\t\t\t}",
"{\n\t\t\t\tif (!card.getIsOwn() && card.getNumber() != 0) System.out.println(card.getSuitbyRom() + \" \" + card.getNumber());\n\t\t\t}",
"if (!card.getIsOwn() && card.getNumber() != 0) System.out.println(card.getSuitbyRom() + \" \" + card.getNumber());",
"!card.getIsOwn() && card.getNumber() != 0",
"!card.getIsOwn()",
"card.getIsOwn()",
"card.getIsOwn",
"card",
"card.getNumber() != 0",
"card.getNumber()",
"card.getNumber",
"card",
"0",
"System.out.println(card.getSuitbyRom() + \" \" + card.getNumber())",
"System.out.println",
"System.out",
"System",
"System.out",
"card.getSuitbyRom() + \" \" + card.getNumber()",
"card.getSuitbyRom() + \" \" + card.getNumber()",
"card.getSuitbyRom()",
"card.getSuitbyRom",
"card",
"\" \"",
"card.getNumber()",
"card.getNumber",
"card",
"String[] args",
"args",
"class Card {\n\tprivate String suitbyRom;\n\tprivate int number;\n\tprivate Boolean isOwn;\n\t\n\tpublic Card(int i, int j) {\n\t\tthis.suitbyRom = 0 == i ? \"S\" : 1 == i ? \"H\" : 2 == i ? \"C\" : 3 == i ? \"D\" : \"X\";\n\t\tthis.number = j;\n\t\tthis.isOwn = false;\n\t}\n\t\n\tpublic String getSuitbyRom() {\n\t\treturn this.suitbyRom;\n\t}\n\t\n\tpublic int getNumber() {\n\t\treturn this.number;\n\t}\n\t\n\tpublic Boolean getIsOwn() {\n\t\treturn this.isOwn;\n\t}\n\t\n\tpublic void setIsOwn(Boolean bool) {\n\t\tthis.isOwn = bool;\n\t}\n\t\n}",
"Card",
"private String suitbyRom;",
"suitbyRom",
"private int number;",
"number",
"private Boolean isOwn;",
"isOwn",
"public Card(int i, int j) {\n\t\tthis.suitbyRom = 0 == i ? \"S\" : 1 == i ? \"H\" : 2 == i ? \"C\" : 3 == i ? \"D\" : \"X\";\n\t\tthis.number = j;\n\t\tthis.isOwn = false;\n\t}",
"Card",
"{\n\t\tthis.suitbyRom = 0 == i ? \"S\" : 1 == i ? \"H\" : 2 == i ? \"C\" : 3 == i ? \"D\" : \"X\";\n\t\tthis.number = j;\n\t\tthis.isOwn = false;\n\t}",
"this.suitbyRom = 0 == i ? \"S\" : 1 == i ? \"H\" : 2 == i ? \"C\" : 3 == i ? \"D\" : \"X\"",
"this.suitbyRom",
"this",
"this.suitbyRom",
"0 == i ? \"S\" : 1 == i ? \"H\" : 2 == i ? \"C\" : 3 == i ? \"D\" : \"X\"",
"0 == i",
"0",
"i",
"\"S\"",
"1 == i ? \"H\" : 2 == i ? \"C\" : 3 == i ? \"D\" : \"X\"",
"1 == i",
"1",
"i",
"\"H\"",
"2 == i ? \"C\" : 3 == i ? \"D\" : \"X\"",
"2 == i",
"2",
"i",
"\"C\"",
"3 == i ? \"D\" : \"X\"",
"3 == i",
"3",
"i",
"\"D\"",
"\"X\"",
"this.number = j",
"this.number",
"this",
"this.number",
"j",
"this.isOwn = false",
"this.isOwn",
"this",
"this.isOwn",
"false",
"int i",
"i",
"int j",
"j",
"public String getSuitbyRom() {\n\t\treturn this.suitbyRom;\n\t}",
"getSuitbyRom",
"{\n\t\treturn this.suitbyRom;\n\t}",
"return this.suitbyRom;",
"this.suitbyRom",
"this",
"this.suitbyRom",
"public int getNumber() {\n\t\treturn this.number;\n\t}",
"getNumber",
"{\n\t\treturn this.number;\n\t}",
"return this.number;",
"this.number",
"this",
"this.number",
"public Boolean getIsOwn() {\n\t\treturn this.isOwn;\n\t}",
"getIsOwn",
"{\n\t\treturn this.isOwn;\n\t}",
"return this.isOwn;",
"this.isOwn",
"this",
"this.isOwn",
"public void setIsOwn(Boolean bool) {\n\t\tthis.isOwn = bool;\n\t}",
"setIsOwn",
"{\n\t\tthis.isOwn = bool;\n\t}",
"this.isOwn = bool",
"this.isOwn",
"this",
"this.isOwn",
"bool",
"Boolean bool",
"bool",
"public class Main {\n\t\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tCard[][] cardSet = new Card[4][14];\n\t\tfor (int i = 0 ; i < cardSet.length; i++) {\n\t\t\tfor (int j = 0; j < cardSet[i].length; j++) {\n\t\t\t\tcardSet[i][j] = new Card(i, j);\n\t\t\t}\n\t\t}\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tString[] str = new String[2];\n\t\tint a, b = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tstr = br.readLine().split(\"\\\\s+\");\n\t\t\ta = \"S\".equals(str[0]) ? 0 : \"H\".equals(str[0]) ? 1 : \"C\".equals(str[0]) ? 2 : \"D\".equals(str[0]) ? 3 : 4;\n\t\t\tb = Integer.parseInt(str[1]);\n\t\t\tcardSet[a][b].setIsOwn(true);;\n\t\t}\n\n\t\tfor (Card[] cards : cardSet) {\n\t\t\tfor (Card card : cards) {\n\t\t\t\tif (!card.getIsOwn() && card.getNumber() != 0) System.out.println(card.getSuitbyRom() + \" \" + card.getNumber());\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main {\n\t\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tCard[][] cardSet = new Card[4][14];\n\t\tfor (int i = 0 ; i < cardSet.length; i++) {\n\t\t\tfor (int j = 0; j < cardSet[i].length; j++) {\n\t\t\t\tcardSet[i][j] = new Card(i, j);\n\t\t\t}\n\t\t}\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tString[] str = new String[2];\n\t\tint a, b = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tstr = br.readLine().split(\"\\\\s+\");\n\t\t\ta = \"S\".equals(str[0]) ? 0 : \"H\".equals(str[0]) ? 1 : \"C\".equals(str[0]) ? 2 : \"D\".equals(str[0]) ? 3 : 4;\n\t\t\tb = Integer.parseInt(str[1]);\n\t\t\tcardSet[a][b].setIsOwn(true);;\n\t\t}\n\n\t\tfor (Card[] cards : cardSet) {\n\t\t\tfor (Card card : cards) {\n\t\t\t\tif (!card.getIsOwn() && card.getNumber() != 0) System.out.println(card.getSuitbyRom() + \" \" + card.getNumber());\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] | import java.io.*;
public class Main {
public static void main(String[] args) throws NumberFormatException, IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
Card[][] cardSet = new Card[4][14];
for (int i = 0 ; i < cardSet.length; i++) {
for (int j = 0; j < cardSet[i].length; j++) {
cardSet[i][j] = new Card(i, j);
}
}
int n = Integer.parseInt(br.readLine());
String[] str = new String[2];
int a, b = 0;
for (int i = 0; i < n; i++) {
str = br.readLine().split("\\s+");
a = "S".equals(str[0]) ? 0 : "H".equals(str[0]) ? 1 : "C".equals(str[0]) ? 2 : "D".equals(str[0]) ? 3 : 4;
b = Integer.parseInt(str[1]);
cardSet[a][b].setIsOwn(true);;
}
for (Card[] cards : cardSet) {
for (Card card : cards) {
if (!card.getIsOwn() && card.getNumber() != 0) System.out.println(card.getSuitbyRom() + " " + card.getNumber());
}
}
}
}
class Card {
private String suitbyRom;
private int number;
private Boolean isOwn;
public Card(int i, int j) {
this.suitbyRom = 0 == i ? "S" : 1 == i ? "H" : 2 == i ? "C" : 3 == i ? "D" : "X";
this.number = j;
this.isOwn = false;
}
public String getSuitbyRom() {
return this.suitbyRom;
}
public int getNumber() {
return this.number;
}
public Boolean getIsOwn() {
return this.isOwn;
}
public void setIsOwn(Boolean bool) {
this.isOwn = bool;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
39,
17,
17,
17,
17,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
17,
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,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
14,
4,
18,
18,
13,
17,
17,
30,
0,
18,
18,
13,
17,
13,
17,
14,
4,
18,
18,
13,
17,
17,
30,
0,
18,
18,
13,
17,
13,
17,
14,
4,
18,
18,
13,
17,
17,
30,
0,
18,
18,
13,
17,
13,
17,
14,
4,
18,
18,
13,
17,
17,
30,
0,
18,
18,
13,
17,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
182,
8
],
[
182,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
11,
13
],
[
11,
14
],
[
11,
15
],
[
182,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
18,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
27,
28
],
[
28,
29
],
[
18,
30
],
[
30,
31
],
[
30,
32
],
[
18,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
47,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
47,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
47,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
70,
72
],
[
47,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
73,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
81,
87
],
[
73,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
88,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
96,
102
],
[
88,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
103,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
111,
117
],
[
103,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
118,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
126,
132
],
[
18,
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
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
159,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
173,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
173,
177
],
[
173,
178
],
[
16,
179
],
[
179,
180
],
[
0,
181
],
[
181,
182
],
[
181,
183
]
] | [
"import java.util.Scanner;\nimport java.lang.Math;\npublic class Main{\n public static String[] MARKS = {\"S\", \"H\", \"C\", \"D\"};\n public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint n = Integer.parseInt(scan.nextLine());\n\tboolean[][] cards = new boolean[4][14];\n\tfor (int cnt = 0; cnt < n; cnt++) {\n\t String input = scan.nextLine();\n\t String[] sequence = input.split(\" \");\n\t String[] inputs = input.split(\" \");\n\t int number = Integer.parseInt(inputs[1]);\n\t if (inputs[0].equals(\"S\")) {\n\t\tcards[0][number] = true;\n\t } else if (inputs[0].equals(\"H\")) {\n\t\tcards[1][number] = true;\n\t } else if (inputs[0].equals(\"C\")) {\n\t\tcards[2][number] = true;\n\t } else if (inputs[0].equals(\"D\")) {\n\t\tcards[3][number] = true;\n\t }\n\t}\n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 1; j < 14; j++) {\n\t\tif (!cards[i][j]) {\n\t\t System.out.println(MARKS[i] + \" \" + j);\n\t\t}\n\t }\n\t}\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.lang.Math;",
"Math",
"java.lang",
"public class Main{\n public static String[] MARKS = {\"S\", \"H\", \"C\", \"D\"};\n public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint n = Integer.parseInt(scan.nextLine());\n\tboolean[][] cards = new boolean[4][14];\n\tfor (int cnt = 0; cnt < n; cnt++) {\n\t String input = scan.nextLine();\n\t String[] sequence = input.split(\" \");\n\t String[] inputs = input.split(\" \");\n\t int number = Integer.parseInt(inputs[1]);\n\t if (inputs[0].equals(\"S\")) {\n\t\tcards[0][number] = true;\n\t } else if (inputs[0].equals(\"H\")) {\n\t\tcards[1][number] = true;\n\t } else if (inputs[0].equals(\"C\")) {\n\t\tcards[2][number] = true;\n\t } else if (inputs[0].equals(\"D\")) {\n\t\tcards[3][number] = true;\n\t }\n\t}\n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 1; j < 14; j++) {\n\t\tif (!cards[i][j]) {\n\t\t System.out.println(MARKS[i] + \" \" + j);\n\t\t}\n\t }\n\t}\n }\n}",
"Main",
"public static String[] MARKS = {\"S\", \"H\", \"C\", \"D\"};",
"MARKS",
"{\"S\", \"H\", \"C\", \"D\"}",
"\"S\"",
"\"H\"",
"\"C\"",
"\"D\"",
"public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint n = Integer.parseInt(scan.nextLine());\n\tboolean[][] cards = new boolean[4][14];\n\tfor (int cnt = 0; cnt < n; cnt++) {\n\t String input = scan.nextLine();\n\t String[] sequence = input.split(\" \");\n\t String[] inputs = input.split(\" \");\n\t int number = Integer.parseInt(inputs[1]);\n\t if (inputs[0].equals(\"S\")) {\n\t\tcards[0][number] = true;\n\t } else if (inputs[0].equals(\"H\")) {\n\t\tcards[1][number] = true;\n\t } else if (inputs[0].equals(\"C\")) {\n\t\tcards[2][number] = true;\n\t } else if (inputs[0].equals(\"D\")) {\n\t\tcards[3][number] = true;\n\t }\n\t}\n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 1; j < 14; j++) {\n\t\tif (!cards[i][j]) {\n\t\t System.out.println(MARKS[i] + \" \" + j);\n\t\t}\n\t }\n\t}\n }",
"main",
"{\n\tScanner scan = new Scanner(System.in);\n\tint n = Integer.parseInt(scan.nextLine());\n\tboolean[][] cards = new boolean[4][14];\n\tfor (int cnt = 0; cnt < n; cnt++) {\n\t String input = scan.nextLine();\n\t String[] sequence = input.split(\" \");\n\t String[] inputs = input.split(\" \");\n\t int number = Integer.parseInt(inputs[1]);\n\t if (inputs[0].equals(\"S\")) {\n\t\tcards[0][number] = true;\n\t } else if (inputs[0].equals(\"H\")) {\n\t\tcards[1][number] = true;\n\t } else if (inputs[0].equals(\"C\")) {\n\t\tcards[2][number] = true;\n\t } else if (inputs[0].equals(\"D\")) {\n\t\tcards[3][number] = true;\n\t }\n\t}\n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 1; j < 14; j++) {\n\t\tif (!cards[i][j]) {\n\t\t System.out.println(MARKS[i] + \" \" + j);\n\t\t}\n\t }\n\t}\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = Integer.parseInt(scan.nextLine());",
"n",
"Integer.parseInt(scan.nextLine())",
"Integer.parseInt",
"Integer",
"scan.nextLine()",
"scan.nextLine",
"scan",
"boolean[][] cards = new boolean[4][14];",
"cards",
"new boolean[4][14]",
"4",
"14",
"for (int cnt = 0; cnt < n; cnt++) {\n\t String input = scan.nextLine();\n\t String[] sequence = input.split(\" \");\n\t String[] inputs = input.split(\" \");\n\t int number = Integer.parseInt(inputs[1]);\n\t if (inputs[0].equals(\"S\")) {\n\t\tcards[0][number] = true;\n\t } else if (inputs[0].equals(\"H\")) {\n\t\tcards[1][number] = true;\n\t } else if (inputs[0].equals(\"C\")) {\n\t\tcards[2][number] = true;\n\t } else if (inputs[0].equals(\"D\")) {\n\t\tcards[3][number] = true;\n\t }\n\t}",
"int cnt = 0;",
"int cnt = 0;",
"cnt",
"0",
"cnt < n",
"cnt",
"n",
"cnt++",
"cnt++",
"cnt",
"{\n\t String input = scan.nextLine();\n\t String[] sequence = input.split(\" \");\n\t String[] inputs = input.split(\" \");\n\t int number = Integer.parseInt(inputs[1]);\n\t if (inputs[0].equals(\"S\")) {\n\t\tcards[0][number] = true;\n\t } else if (inputs[0].equals(\"H\")) {\n\t\tcards[1][number] = true;\n\t } else if (inputs[0].equals(\"C\")) {\n\t\tcards[2][number] = true;\n\t } else if (inputs[0].equals(\"D\")) {\n\t\tcards[3][number] = true;\n\t }\n\t}",
"{\n\t String input = scan.nextLine();\n\t String[] sequence = input.split(\" \");\n\t String[] inputs = input.split(\" \");\n\t int number = Integer.parseInt(inputs[1]);\n\t if (inputs[0].equals(\"S\")) {\n\t\tcards[0][number] = true;\n\t } else if (inputs[0].equals(\"H\")) {\n\t\tcards[1][number] = true;\n\t } else if (inputs[0].equals(\"C\")) {\n\t\tcards[2][number] = true;\n\t } else if (inputs[0].equals(\"D\")) {\n\t\tcards[3][number] = true;\n\t }\n\t}",
"String input = scan.nextLine();",
"input",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String[] sequence = input.split(\" \");",
"sequence",
"input.split(\" \")",
"input.split",
"input",
"\" \"",
"String[] inputs = input.split(\" \");",
"inputs",
"input.split(\" \")",
"input.split",
"input",
"\" \"",
"int number = Integer.parseInt(inputs[1]);",
"number",
"Integer.parseInt(inputs[1])",
"Integer.parseInt",
"Integer",
"inputs[1]",
"inputs",
"1",
"if (inputs[0].equals(\"S\")) {\n\t\tcards[0][number] = true;\n\t } else if (inputs[0].equals(\"H\")) {\n\t\tcards[1][number] = true;\n\t } else if (inputs[0].equals(\"C\")) {\n\t\tcards[2][number] = true;\n\t } else if (inputs[0].equals(\"D\")) {\n\t\tcards[3][number] = true;\n\t }",
"inputs[0].equals(\"S\")",
"inputs[0].equals",
"inputs[0]",
"inputs",
"0",
"\"S\"",
"{\n\t\tcards[0][number] = true;\n\t }",
"cards[0][number] = true",
"cards[0][number]",
"cards[0]",
"cards",
"0",
"number",
"true",
"if (inputs[0].equals(\"H\")) {\n\t\tcards[1][number] = true;\n\t } else if (inputs[0].equals(\"C\")) {\n\t\tcards[2][number] = true;\n\t } else if (inputs[0].equals(\"D\")) {\n\t\tcards[3][number] = true;\n\t }",
"inputs[0].equals(\"H\")",
"inputs[0].equals",
"inputs[0]",
"inputs",
"0",
"\"H\"",
"{\n\t\tcards[1][number] = true;\n\t }",
"cards[1][number] = true",
"cards[1][number]",
"cards[1]",
"cards",
"1",
"number",
"true",
"if (inputs[0].equals(\"C\")) {\n\t\tcards[2][number] = true;\n\t } else if (inputs[0].equals(\"D\")) {\n\t\tcards[3][number] = true;\n\t }",
"inputs[0].equals(\"C\")",
"inputs[0].equals",
"inputs[0]",
"inputs",
"0",
"\"C\"",
"{\n\t\tcards[2][number] = true;\n\t }",
"cards[2][number] = true",
"cards[2][number]",
"cards[2]",
"cards",
"2",
"number",
"true",
"if (inputs[0].equals(\"D\")) {\n\t\tcards[3][number] = true;\n\t }",
"inputs[0].equals(\"D\")",
"inputs[0].equals",
"inputs[0]",
"inputs",
"0",
"\"D\"",
"{\n\t\tcards[3][number] = true;\n\t }",
"cards[3][number] = true",
"cards[3][number]",
"cards[3]",
"cards",
"3",
"number",
"true",
"for (int i = 0; i < 4; i++) {\n\t for (int j = 1; j < 14; j++) {\n\t\tif (!cards[i][j]) {\n\t\t System.out.println(MARKS[i] + \" \" + j);\n\t\t}\n\t }\n\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t for (int j = 1; j < 14; j++) {\n\t\tif (!cards[i][j]) {\n\t\t System.out.println(MARKS[i] + \" \" + j);\n\t\t}\n\t }\n\t}",
"{\n\t for (int j = 1; j < 14; j++) {\n\t\tif (!cards[i][j]) {\n\t\t System.out.println(MARKS[i] + \" \" + j);\n\t\t}\n\t }\n\t}",
"for (int j = 1; j < 14; j++) {\n\t\tif (!cards[i][j]) {\n\t\t System.out.println(MARKS[i] + \" \" + j);\n\t\t}\n\t }",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j < 14",
"j",
"14",
"j++",
"j++",
"j",
"{\n\t\tif (!cards[i][j]) {\n\t\t System.out.println(MARKS[i] + \" \" + j);\n\t\t}\n\t }",
"{\n\t\tif (!cards[i][j]) {\n\t\t System.out.println(MARKS[i] + \" \" + j);\n\t\t}\n\t }",
"if (!cards[i][j]) {\n\t\t System.out.println(MARKS[i] + \" \" + j);\n\t\t}",
"!cards[i][j]",
"cards[i][j]",
"cards[i]",
"cards",
"i",
"j",
"{\n\t\t System.out.println(MARKS[i] + \" \" + j);\n\t\t}",
"System.out.println(MARKS[i] + \" \" + j)",
"System.out.println",
"System.out",
"System",
"System.out",
"MARKS[i] + \" \" + j",
"MARKS[i] + \" \" + j",
"MARKS[i]",
"MARKS",
"i",
"\" \"",
"j",
"String[] args",
"args",
"public class Main{\n public static String[] MARKS = {\"S\", \"H\", \"C\", \"D\"};\n public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint n = Integer.parseInt(scan.nextLine());\n\tboolean[][] cards = new boolean[4][14];\n\tfor (int cnt = 0; cnt < n; cnt++) {\n\t String input = scan.nextLine();\n\t String[] sequence = input.split(\" \");\n\t String[] inputs = input.split(\" \");\n\t int number = Integer.parseInt(inputs[1]);\n\t if (inputs[0].equals(\"S\")) {\n\t\tcards[0][number] = true;\n\t } else if (inputs[0].equals(\"H\")) {\n\t\tcards[1][number] = true;\n\t } else if (inputs[0].equals(\"C\")) {\n\t\tcards[2][number] = true;\n\t } else if (inputs[0].equals(\"D\")) {\n\t\tcards[3][number] = true;\n\t }\n\t}\n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 1; j < 14; j++) {\n\t\tif (!cards[i][j]) {\n\t\t System.out.println(MARKS[i] + \" \" + j);\n\t\t}\n\t }\n\t}\n }\n}",
"public class Main{\n public static String[] MARKS = {\"S\", \"H\", \"C\", \"D\"};\n public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint n = Integer.parseInt(scan.nextLine());\n\tboolean[][] cards = new boolean[4][14];\n\tfor (int cnt = 0; cnt < n; cnt++) {\n\t String input = scan.nextLine();\n\t String[] sequence = input.split(\" \");\n\t String[] inputs = input.split(\" \");\n\t int number = Integer.parseInt(inputs[1]);\n\t if (inputs[0].equals(\"S\")) {\n\t\tcards[0][number] = true;\n\t } else if (inputs[0].equals(\"H\")) {\n\t\tcards[1][number] = true;\n\t } else if (inputs[0].equals(\"C\")) {\n\t\tcards[2][number] = true;\n\t } else if (inputs[0].equals(\"D\")) {\n\t\tcards[3][number] = true;\n\t }\n\t}\n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 1; j < 14; j++) {\n\t\tif (!cards[i][j]) {\n\t\t System.out.println(MARKS[i] + \" \" + j);\n\t\t}\n\t }\n\t}\n }\n}",
"Main"
] | import java.util.Scanner;
import java.lang.Math;
public class Main{
public static String[] MARKS = {"S", "H", "C", "D"};
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = Integer.parseInt(scan.nextLine());
boolean[][] cards = new boolean[4][14];
for (int cnt = 0; cnt < n; cnt++) {
String input = scan.nextLine();
String[] sequence = input.split(" ");
String[] inputs = input.split(" ");
int number = Integer.parseInt(inputs[1]);
if (inputs[0].equals("S")) {
cards[0][number] = true;
} else if (inputs[0].equals("H")) {
cards[1][number] = true;
} else if (inputs[0].equals("C")) {
cards[2][number] = true;
} else if (inputs[0].equals("D")) {
cards[3][number] = true;
}
}
for (int i = 0; i < 4; i++) {
for (int j = 1; j < 14; j++) {
if (!cards[i][j]) {
System.out.println(MARKS[i] + " " + j);
}
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
13,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
13,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
13,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
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
],
[
209,
8
],
[
209,
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
],
[
11,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
48,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
48,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
63,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
63,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
78,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
89,
91
],
[
84,
92
],
[
78,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
93,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
104,
105
],
[
104,
106
],
[
99,
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
],
[
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
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
135,
141
],
[
134,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
155,
157
],
[
143,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
170,
172
],
[
158,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
173,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
178,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
185,
187
],
[
173,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
188,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
193,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
200,
202
],
[
11,
203
],
[
203,
204
],
[
204,
205
],
[
9,
206
],
[
206,
207
],
[
0,
208
],
[
208,
209
],
[
208,
210
]
] | [
"import java.io.IOException;\nimport java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tObject[][] array = new Object[4][13];\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tString mark = sc.next();\n\t\t\tint num = sc.nextInt();\n\n\t\t\tif(mark.equals(\"S\")) {\n\t\t\t\tarray[0][num-1] = num;\n\t\t\t}else if(mark.equals(\"H\")) {\n\t\t\t\tarray[1][num-1] = num;\n\t\t\t}else if(mark.equals(\"C\")) {\n\t\t\t\tarray[2][num-1] = num;\n\t\t\t}else if(mark.equals(\"D\")) {\n\t\t\t\tarray[3][num-1] = num;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<13;j++) {\n\t\t\t\tif(array[i][j]==null) {\n\t\t\t\t\tif(i==0) {\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j+1));\n\t\t\t\t\t}else if(i==1) {\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j+1));\n\t\t\t\t\t}else if(i==2) {\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j+1));\n\t\t\t\t\t}else if(i==3) {\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j+1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tObject[][] array = new Object[4][13];\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tString mark = sc.next();\n\t\t\tint num = sc.nextInt();\n\n\t\t\tif(mark.equals(\"S\")) {\n\t\t\t\tarray[0][num-1] = num;\n\t\t\t}else if(mark.equals(\"H\")) {\n\t\t\t\tarray[1][num-1] = num;\n\t\t\t}else if(mark.equals(\"C\")) {\n\t\t\t\tarray[2][num-1] = num;\n\t\t\t}else if(mark.equals(\"D\")) {\n\t\t\t\tarray[3][num-1] = num;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<13;j++) {\n\t\t\t\tif(array[i][j]==null) {\n\t\t\t\t\tif(i==0) {\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j+1));\n\t\t\t\t\t}else if(i==1) {\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j+1));\n\t\t\t\t\t}else if(i==2) {\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j+1));\n\t\t\t\t\t}else if(i==3) {\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j+1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tObject[][] array = new Object[4][13];\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tString mark = sc.next();\n\t\t\tint num = sc.nextInt();\n\n\t\t\tif(mark.equals(\"S\")) {\n\t\t\t\tarray[0][num-1] = num;\n\t\t\t}else if(mark.equals(\"H\")) {\n\t\t\t\tarray[1][num-1] = num;\n\t\t\t}else if(mark.equals(\"C\")) {\n\t\t\t\tarray[2][num-1] = num;\n\t\t\t}else if(mark.equals(\"D\")) {\n\t\t\t\tarray[3][num-1] = num;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<13;j++) {\n\t\t\t\tif(array[i][j]==null) {\n\t\t\t\t\tif(i==0) {\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j+1));\n\t\t\t\t\t}else if(i==1) {\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j+1));\n\t\t\t\t\t}else if(i==2) {\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j+1));\n\t\t\t\t\t}else if(i==3) {\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j+1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tObject[][] array = new Object[4][13];\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tString mark = sc.next();\n\t\t\tint num = sc.nextInt();\n\n\t\t\tif(mark.equals(\"S\")) {\n\t\t\t\tarray[0][num-1] = num;\n\t\t\t}else if(mark.equals(\"H\")) {\n\t\t\t\tarray[1][num-1] = num;\n\t\t\t}else if(mark.equals(\"C\")) {\n\t\t\t\tarray[2][num-1] = num;\n\t\t\t}else if(mark.equals(\"D\")) {\n\t\t\t\tarray[3][num-1] = num;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<13;j++) {\n\t\t\t\tif(array[i][j]==null) {\n\t\t\t\t\tif(i==0) {\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j+1));\n\t\t\t\t\t}else if(i==1) {\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j+1));\n\t\t\t\t\t}else if(i==2) {\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j+1));\n\t\t\t\t\t}else if(i==3) {\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j+1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Object[][] array = new Object[4][13];",
"array",
"new Object[4][13]",
"4",
"13",
"for(int i=0;i<x;i++) {\n\t\t\tString mark = sc.next();\n\t\t\tint num = sc.nextInt();\n\n\t\t\tif(mark.equals(\"S\")) {\n\t\t\t\tarray[0][num-1] = num;\n\t\t\t}else if(mark.equals(\"H\")) {\n\t\t\t\tarray[1][num-1] = num;\n\t\t\t}else if(mark.equals(\"C\")) {\n\t\t\t\tarray[2][num-1] = num;\n\t\t\t}else if(mark.equals(\"D\")) {\n\t\t\t\tarray[3][num-1] = num;\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\tString mark = sc.next();\n\t\t\tint num = sc.nextInt();\n\n\t\t\tif(mark.equals(\"S\")) {\n\t\t\t\tarray[0][num-1] = num;\n\t\t\t}else if(mark.equals(\"H\")) {\n\t\t\t\tarray[1][num-1] = num;\n\t\t\t}else if(mark.equals(\"C\")) {\n\t\t\t\tarray[2][num-1] = num;\n\t\t\t}else if(mark.equals(\"D\")) {\n\t\t\t\tarray[3][num-1] = num;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString mark = sc.next();\n\t\t\tint num = sc.nextInt();\n\n\t\t\tif(mark.equals(\"S\")) {\n\t\t\t\tarray[0][num-1] = num;\n\t\t\t}else if(mark.equals(\"H\")) {\n\t\t\t\tarray[1][num-1] = num;\n\t\t\t}else if(mark.equals(\"C\")) {\n\t\t\t\tarray[2][num-1] = num;\n\t\t\t}else if(mark.equals(\"D\")) {\n\t\t\t\tarray[3][num-1] = num;\n\t\t\t}\n\t\t}",
"String mark = sc.next();",
"mark",
"sc.next()",
"sc.next",
"sc",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(mark.equals(\"S\")) {\n\t\t\t\tarray[0][num-1] = num;\n\t\t\t}else if(mark.equals(\"H\")) {\n\t\t\t\tarray[1][num-1] = num;\n\t\t\t}else if(mark.equals(\"C\")) {\n\t\t\t\tarray[2][num-1] = num;\n\t\t\t}else if(mark.equals(\"D\")) {\n\t\t\t\tarray[3][num-1] = num;\n\t\t\t}",
"mark.equals(\"S\")",
"mark.equals",
"mark",
"\"S\"",
"{\n\t\t\t\tarray[0][num-1] = num;\n\t\t\t}",
"array[0][num-1] = num",
"array[0][num-1]",
"array[0]",
"array",
"0",
"num-1",
"num",
"1",
"num",
"if(mark.equals(\"H\")) {\n\t\t\t\tarray[1][num-1] = num;\n\t\t\t}else if(mark.equals(\"C\")) {\n\t\t\t\tarray[2][num-1] = num;\n\t\t\t}else if(mark.equals(\"D\")) {\n\t\t\t\tarray[3][num-1] = num;\n\t\t\t}",
"mark.equals(\"H\")",
"mark.equals",
"mark",
"\"H\"",
"{\n\t\t\t\tarray[1][num-1] = num;\n\t\t\t}",
"array[1][num-1] = num",
"array[1][num-1]",
"array[1]",
"array",
"1",
"num-1",
"num",
"1",
"num",
"if(mark.equals(\"C\")) {\n\t\t\t\tarray[2][num-1] = num;\n\t\t\t}else if(mark.equals(\"D\")) {\n\t\t\t\tarray[3][num-1] = num;\n\t\t\t}",
"mark.equals(\"C\")",
"mark.equals",
"mark",
"\"C\"",
"{\n\t\t\t\tarray[2][num-1] = num;\n\t\t\t}",
"array[2][num-1] = num",
"array[2][num-1]",
"array[2]",
"array",
"2",
"num-1",
"num",
"1",
"num",
"if(mark.equals(\"D\")) {\n\t\t\t\tarray[3][num-1] = num;\n\t\t\t}",
"mark.equals(\"D\")",
"mark.equals",
"mark",
"\"D\"",
"{\n\t\t\t\tarray[3][num-1] = num;\n\t\t\t}",
"array[3][num-1] = num",
"array[3][num-1]",
"array[3]",
"array",
"3",
"num-1",
"num",
"1",
"num",
"for(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<13;j++) {\n\t\t\t\tif(array[i][j]==null) {\n\t\t\t\t\tif(i==0) {\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j+1));\n\t\t\t\t\t}else if(i==1) {\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j+1));\n\t\t\t\t\t}else if(i==2) {\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j+1));\n\t\t\t\t\t}else if(i==3) {\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j+1));\n\t\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<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<13;j++) {\n\t\t\t\tif(array[i][j]==null) {\n\t\t\t\t\tif(i==0) {\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j+1));\n\t\t\t\t\t}else if(i==1) {\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j+1));\n\t\t\t\t\t}else if(i==2) {\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j+1));\n\t\t\t\t\t}else if(i==3) {\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j+1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<13;j++) {\n\t\t\t\tif(array[i][j]==null) {\n\t\t\t\t\tif(i==0) {\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j+1));\n\t\t\t\t\t}else if(i==1) {\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j+1));\n\t\t\t\t\t}else if(i==2) {\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j+1));\n\t\t\t\t\t}else if(i==3) {\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j+1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int j=0;j<13;j++) {\n\t\t\t\tif(array[i][j]==null) {\n\t\t\t\t\tif(i==0) {\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j+1));\n\t\t\t\t\t}else if(i==1) {\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j+1));\n\t\t\t\t\t}else if(i==2) {\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j+1));\n\t\t\t\t\t}else if(i==3) {\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j+1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(array[i][j]==null) {\n\t\t\t\t\tif(i==0) {\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j+1));\n\t\t\t\t\t}else if(i==1) {\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j+1));\n\t\t\t\t\t}else if(i==2) {\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j+1));\n\t\t\t\t\t}else if(i==3) {\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j+1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(array[i][j]==null) {\n\t\t\t\t\tif(i==0) {\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j+1));\n\t\t\t\t\t}else if(i==1) {\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j+1));\n\t\t\t\t\t}else if(i==2) {\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j+1));\n\t\t\t\t\t}else if(i==3) {\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j+1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"if(array[i][j]==null) {\n\t\t\t\t\tif(i==0) {\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j+1));\n\t\t\t\t\t}else if(i==1) {\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j+1));\n\t\t\t\t\t}else if(i==2) {\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j+1));\n\t\t\t\t\t}else if(i==3) {\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j+1));\n\t\t\t\t\t}\n\t\t\t\t}",
"array[i][j]==null",
"array[i][j]",
"array[i]",
"array",
"i",
"j",
"null",
"{\n\t\t\t\t\tif(i==0) {\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j+1));\n\t\t\t\t\t}else if(i==1) {\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j+1));\n\t\t\t\t\t}else if(i==2) {\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j+1));\n\t\t\t\t\t}else if(i==3) {\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j+1));\n\t\t\t\t\t}\n\t\t\t\t}",
"if(i==0) {\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j+1));\n\t\t\t\t\t}else if(i==1) {\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j+1));\n\t\t\t\t\t}else if(i==2) {\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j+1));\n\t\t\t\t\t}else if(i==3) {\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j+1));\n\t\t\t\t\t}",
"i==0",
"i",
"0",
"{\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j+1));\n\t\t\t\t\t}",
"System.out.println(\"S \" + (j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \" + (j+1)",
"\"S \"",
"(j+1)",
"j",
"1",
"if(i==1) {\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j+1));\n\t\t\t\t\t}else if(i==2) {\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j+1));\n\t\t\t\t\t}else if(i==3) {\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j+1));\n\t\t\t\t\t}",
"i==1",
"i",
"1",
"{\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j+1));\n\t\t\t\t\t}",
"System.out.println(\"H \" + (j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \" + (j+1)",
"\"H \"",
"(j+1)",
"j",
"1",
"if(i==2) {\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j+1));\n\t\t\t\t\t}else if(i==3) {\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j+1));\n\t\t\t\t\t}",
"i==2",
"i",
"2",
"{\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j+1));\n\t\t\t\t\t}",
"System.out.println(\"C \" + (j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \" + (j+1)",
"\"C \"",
"(j+1)",
"j",
"1",
"if(i==3) {\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j+1));\n\t\t\t\t\t}",
"i==3",
"i",
"3",
"{\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j+1));\n\t\t\t\t\t}",
"System.out.println(\"D \" + (j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \" + (j+1)",
"\"D \"",
"(j+1)",
"j",
"1",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tObject[][] array = new Object[4][13];\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tString mark = sc.next();\n\t\t\tint num = sc.nextInt();\n\n\t\t\tif(mark.equals(\"S\")) {\n\t\t\t\tarray[0][num-1] = num;\n\t\t\t}else if(mark.equals(\"H\")) {\n\t\t\t\tarray[1][num-1] = num;\n\t\t\t}else if(mark.equals(\"C\")) {\n\t\t\t\tarray[2][num-1] = num;\n\t\t\t}else if(mark.equals(\"D\")) {\n\t\t\t\tarray[3][num-1] = num;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<13;j++) {\n\t\t\t\tif(array[i][j]==null) {\n\t\t\t\t\tif(i==0) {\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j+1));\n\t\t\t\t\t}else if(i==1) {\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j+1));\n\t\t\t\t\t}else if(i==2) {\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j+1));\n\t\t\t\t\t}else if(i==3) {\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j+1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\t\tObject[][] array = new Object[4][13];\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tString mark = sc.next();\n\t\t\tint num = sc.nextInt();\n\n\t\t\tif(mark.equals(\"S\")) {\n\t\t\t\tarray[0][num-1] = num;\n\t\t\t}else if(mark.equals(\"H\")) {\n\t\t\t\tarray[1][num-1] = num;\n\t\t\t}else if(mark.equals(\"C\")) {\n\t\t\t\tarray[2][num-1] = num;\n\t\t\t}else if(mark.equals(\"D\")) {\n\t\t\t\tarray[3][num-1] = num;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tfor(int j=0;j<13;j++) {\n\t\t\t\tif(array[i][j]==null) {\n\t\t\t\t\tif(i==0) {\n\t\t\t\t\t\tSystem.out.println(\"S \" + (j+1));\n\t\t\t\t\t}else if(i==1) {\n\t\t\t\t\t\tSystem.out.println(\"H \" + (j+1));\n\t\t\t\t\t}else if(i==2) {\n\t\t\t\t\t\tSystem.out.println(\"C \" + (j+1));\n\t\t\t\t\t}else if(i==3) {\n\t\t\t\t\t\tSystem.out.println(\"D \" + (j+1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n}",
"Main"
] | import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException{
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
Object[][] array = new Object[4][13];
for(int i=0;i<x;i++) {
String mark = sc.next();
int num = sc.nextInt();
if(mark.equals("S")) {
array[0][num-1] = num;
}else if(mark.equals("H")) {
array[1][num-1] = num;
}else if(mark.equals("C")) {
array[2][num-1] = num;
}else if(mark.equals("D")) {
array[3][num-1] = num;
}
}
for(int i=0;i<4;i++) {
for(int j=0;j<13;j++) {
if(array[i][j]==null) {
if(i==0) {
System.out.println("S " + (j+1));
}else if(i==1) {
System.out.println("H " + (j+1));
}else if(i==2) {
System.out.println("C " + (j+1));
}else if(i==3) {
System.out.println("D " + (j+1));
}
}
}
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
40,
18,
13,
2,
13,
17,
14,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
40,
18,
13,
2,
13,
17,
14,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
40,
18,
13,
2,
13,
17,
30,
41,
13,
4,
18,
13,
40,
18,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
41,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
41,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
41,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
41,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
249,
5
],
[
249,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
51,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
51,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
68,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
73,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
68,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
85,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
90,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
99,
101
],
[
85,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
102,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
111,
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
],
[
128,
132
],
[
127,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
136,
138
],
[
133,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
144,
145
],
[
144,
146
],
[
8,
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
],
[
167,
169
],
[
169,
170
],
[
169,
171
],
[
166,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
172,
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
],
[
195,
196
],
[
195,
197
],
[
194,
198
],
[
193,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
202,
204
],
[
199,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
205,
210
],
[
210,
211
],
[
210,
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
],
[
227,
231
],
[
226,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
235,
237
],
[
232,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
238,
243
],
[
243,
244
],
[
243,
245
],
[
6,
246
],
[
246,
247
],
[
0,
248
],
[
248,
249
],
[
248,
250
]
] | [
"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 s[] = new int[13];\n\t\tint h[] = new int[13];\n\t\tint c[] = new int[13];\n\t\tint d[] = new int[13];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString t = sc.next();\n\t\t\tif(t.equals(\"S\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\ts[j-1]++;\n\t\t\t}else if(t.equals(\"H\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\th[j-1]++;\n\t\t\t}else if(t.equals(\"C\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\tc[j-1]++;\n\t\t\t}else{\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\td[j-1]++;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(s[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"S \"+t);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(h[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"H \"+t);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(c[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"C \"+t);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(d[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"D \"+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\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint s[] = new int[13];\n\t\tint h[] = new int[13];\n\t\tint c[] = new int[13];\n\t\tint d[] = new int[13];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString t = sc.next();\n\t\t\tif(t.equals(\"S\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\ts[j-1]++;\n\t\t\t}else if(t.equals(\"H\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\th[j-1]++;\n\t\t\t}else if(t.equals(\"C\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\tc[j-1]++;\n\t\t\t}else{\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\td[j-1]++;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(s[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"S \"+t);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(h[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"H \"+t);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(c[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"C \"+t);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(d[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"D \"+t);\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint s[] = new int[13];\n\t\tint h[] = new int[13];\n\t\tint c[] = new int[13];\n\t\tint d[] = new int[13];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString t = sc.next();\n\t\t\tif(t.equals(\"S\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\ts[j-1]++;\n\t\t\t}else if(t.equals(\"H\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\th[j-1]++;\n\t\t\t}else if(t.equals(\"C\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\tc[j-1]++;\n\t\t\t}else{\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\td[j-1]++;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(s[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"S \"+t);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(h[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"H \"+t);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(c[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"C \"+t);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(d[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"D \"+t);\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint s[] = new int[13];\n\t\tint h[] = new int[13];\n\t\tint c[] = new int[13];\n\t\tint d[] = new int[13];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString t = sc.next();\n\t\t\tif(t.equals(\"S\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\ts[j-1]++;\n\t\t\t}else if(t.equals(\"H\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\th[j-1]++;\n\t\t\t}else if(t.equals(\"C\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\tc[j-1]++;\n\t\t\t}else{\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\td[j-1]++;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(s[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"S \"+t);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(h[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"H \"+t);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(c[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"C \"+t);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(d[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"D \"+t);\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",
"int s[] = new int[13];",
"s",
"new int[13]",
"13",
"int h[] = new int[13];",
"h",
"new int[13]",
"13",
"int c[] = new int[13];",
"c",
"new int[13]",
"13",
"int d[] = new int[13];",
"d",
"new int[13]",
"13",
"for(int i=0;i<n;i++){\n\t\t\tString t = sc.next();\n\t\t\tif(t.equals(\"S\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\ts[j-1]++;\n\t\t\t}else if(t.equals(\"H\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\th[j-1]++;\n\t\t\t}else if(t.equals(\"C\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\tc[j-1]++;\n\t\t\t}else{\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\td[j-1]++;\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 t = sc.next();\n\t\t\tif(t.equals(\"S\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\ts[j-1]++;\n\t\t\t}else if(t.equals(\"H\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\th[j-1]++;\n\t\t\t}else if(t.equals(\"C\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\tc[j-1]++;\n\t\t\t}else{\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\td[j-1]++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString t = sc.next();\n\t\t\tif(t.equals(\"S\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\ts[j-1]++;\n\t\t\t}else if(t.equals(\"H\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\th[j-1]++;\n\t\t\t}else if(t.equals(\"C\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\tc[j-1]++;\n\t\t\t}else{\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\td[j-1]++;\n\t\t\t}\n\t\t}",
"String t = sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"if(t.equals(\"S\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\ts[j-1]++;\n\t\t\t}else if(t.equals(\"H\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\th[j-1]++;\n\t\t\t}else if(t.equals(\"C\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\tc[j-1]++;\n\t\t\t}else{\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\td[j-1]++;\n\t\t\t}",
"t.equals(\"S\")",
"t.equals",
"t",
"\"S\"",
"{\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\ts[j-1]++;\n\t\t\t}",
"int j = sc.nextInt();",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"s[j-1]++",
"s[j-1]",
"s",
"j-1",
"j",
"1",
"if(t.equals(\"H\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\th[j-1]++;\n\t\t\t}else if(t.equals(\"C\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\tc[j-1]++;\n\t\t\t}else{\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\td[j-1]++;\n\t\t\t}",
"t.equals(\"H\")",
"t.equals",
"t",
"\"H\"",
"{\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\th[j-1]++;\n\t\t\t}",
"int j = sc.nextInt();",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"h[j-1]++",
"h[j-1]",
"h",
"j-1",
"j",
"1",
"if(t.equals(\"C\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\tc[j-1]++;\n\t\t\t}else{\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\td[j-1]++;\n\t\t\t}",
"t.equals(\"C\")",
"t.equals",
"t",
"\"C\"",
"{\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\tc[j-1]++;\n\t\t\t}",
"int j = sc.nextInt();",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"c[j-1]++",
"c[j-1]",
"c",
"j-1",
"j",
"1",
"{\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\td[j-1]++;\n\t\t\t}",
"int j = sc.nextInt();",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"d[j-1]++",
"d[j-1]",
"d",
"j-1",
"j",
"1",
"for(int i=0;i<13;i++){\n\t\t\tif(s[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"S \"+t);\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(s[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"S \"+t);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(s[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"S \"+t);\n\t\t\t}\n\t\t}",
"if(s[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"S \"+t);\n\t\t\t}",
"s[i]==0",
"s[i]",
"s",
"i",
"0",
"{\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"S \"+t);\n\t\t\t}",
"int t = i+1;",
"t",
"i+1",
"i",
"1",
"System.out.println(\"S \"+t)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \"+t",
"\"S \"",
"t",
"for(int i=0;i<13;i++){\n\t\t\tif(h[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"H \"+t);\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(h[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"H \"+t);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(h[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"H \"+t);\n\t\t\t}\n\t\t}",
"if(h[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"H \"+t);\n\t\t\t}",
"h[i]==0",
"h[i]",
"h",
"i",
"0",
"{\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"H \"+t);\n\t\t\t}",
"int t = i+1;",
"t",
"i+1",
"i",
"1",
"System.out.println(\"H \"+t)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \"+t",
"\"H \"",
"t",
"for(int i=0;i<13;i++){\n\t\t\tif(c[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"C \"+t);\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(c[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"C \"+t);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(c[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"C \"+t);\n\t\t\t}\n\t\t}",
"if(c[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"C \"+t);\n\t\t\t}",
"c[i]==0",
"c[i]",
"c",
"i",
"0",
"{\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"C \"+t);\n\t\t\t}",
"int t = i+1;",
"t",
"i+1",
"i",
"1",
"System.out.println(\"C \"+t)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \"+t",
"\"C \"",
"t",
"for(int i=0;i<13;i++){\n\t\t\tif(d[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"D \"+t);\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(d[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"D \"+t);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(d[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"D \"+t);\n\t\t\t}\n\t\t}",
"if(d[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"D \"+t);\n\t\t\t}",
"d[i]==0",
"d[i]",
"d",
"i",
"0",
"{\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"D \"+t);\n\t\t\t}",
"int t = i+1;",
"t",
"i+1",
"i",
"1",
"System.out.println(\"D \"+t)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \"+t",
"\"D \"",
"t",
"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 s[] = new int[13];\n\t\tint h[] = new int[13];\n\t\tint c[] = new int[13];\n\t\tint d[] = new int[13];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString t = sc.next();\n\t\t\tif(t.equals(\"S\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\ts[j-1]++;\n\t\t\t}else if(t.equals(\"H\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\th[j-1]++;\n\t\t\t}else if(t.equals(\"C\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\tc[j-1]++;\n\t\t\t}else{\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\td[j-1]++;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(s[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"S \"+t);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(h[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"H \"+t);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(c[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"C \"+t);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(d[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"D \"+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\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint s[] = new int[13];\n\t\tint h[] = new int[13];\n\t\tint c[] = new int[13];\n\t\tint d[] = new int[13];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString t = sc.next();\n\t\t\tif(t.equals(\"S\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\ts[j-1]++;\n\t\t\t}else if(t.equals(\"H\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\th[j-1]++;\n\t\t\t}else if(t.equals(\"C\")){\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\tc[j-1]++;\n\t\t\t}else{\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\td[j-1]++;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(s[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"S \"+t);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(h[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"H \"+t);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(c[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"C \"+t);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(d[i]==0){\n\t\t\t\tint t = i+1;\n\t\t\t\tSystem.out.println(\"D \"+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) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int s[] = new int[13];
int h[] = new int[13];
int c[] = new int[13];
int d[] = new int[13];
for(int i=0;i<n;i++){
String t = sc.next();
if(t.equals("S")){
int j = sc.nextInt();
s[j-1]++;
}else if(t.equals("H")){
int j = sc.nextInt();
h[j-1]++;
}else if(t.equals("C")){
int j = sc.nextInt();
c[j-1]++;
}else{
int j = sc.nextInt();
d[j-1]++;
}
}
for(int i=0;i<13;i++){
if(s[i]==0){
int t = i+1;
System.out.println("S "+t);
}
}
for(int i=0;i<13;i++){
if(h[i]==0){
int t = i+1;
System.out.println("H "+t);
}
}
for(int i=0;i<13;i++){
if(c[i]==0){
int t = i+1;
System.out.println("C "+t);
}
}
for(int i=0;i<13;i++){
if(d[i]==0){
int t = i+1;
System.out.println("D "+t);
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
18,
4,
18,
13,
17,
17,
41,
13,
4,
18,
13,
18,
4,
18,
13,
17,
17,
4,
18,
13,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
40,
18,
4,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
2,
18,
4,
18,
13,
13,
13,
17,
18,
4,
18,
13,
13,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
18,
4,
18,
13,
13,
13,
13,
2,
18,
4,
18,
13,
13,
13,
13,
30,
0,
18,
4,
18,
13,
13,
13,
17,
29,
23,
13,
23,
13,
12,
13,
30,
0,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
0,
18,
36,
13,
17,
23,
13,
23,
13,
12,
13,
30,
29,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
29,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
29,
13,
12,
13,
30,
0,
18,
36,
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
],
[
469,
11
],
[
469,
12
],
[
12,
13
],
[
469,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
20,
22
],
[
16,
23
],
[
23,
24
],
[
24,
25
],
[
16,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
32,
33
],
[
16,
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
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
46,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
54,
59
],
[
46,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
65,
70
],
[
46,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
71,
75
],
[
16,
76
],
[
76,
77
],
[
77,
78
],
[
14,
79
],
[
79,
80
],
[
469,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
84,
94
],
[
94,
95
],
[
95,
96
],
[
84,
97
],
[
98,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
101,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
115,
120
],
[
114,
121
],
[
114,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
122,
127
],
[
469,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
131,
141
],
[
141,
142
],
[
142,
143
],
[
131,
144
],
[
145,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
151,
154
],
[
150,
155
],
[
148,
156
],
[
147,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
159,
162
],
[
158,
163
],
[
157,
164
],
[
146,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
168,
171
],
[
167,
172
],
[
166,
173
],
[
165,
174
],
[
128,
175
],
[
175,
176
],
[
128,
177
],
[
177,
178
],
[
469,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
185,
186
],
[
186,
187
],
[
185,
188
],
[
181,
189
],
[
189,
190
],
[
190,
191
],
[
189,
192
],
[
181,
193
],
[
193,
194
],
[
194,
195
],
[
193,
196
],
[
181,
197
],
[
197,
198
],
[
198,
199
],
[
197,
200
],
[
181,
201
],
[
201,
202
],
[
202,
203
],
[
201,
204
],
[
181,
205
],
[
205,
206
],
[
206,
207
],
[
205,
208
],
[
181,
209
],
[
209,
210
],
[
210,
211
],
[
209,
212
],
[
181,
213
],
[
213,
214
],
[
214,
215
],
[
213,
216
],
[
181,
217
],
[
217,
218
],
[
218,
219
],
[
217,
220
],
[
181,
221
],
[
221,
222
],
[
222,
223
],
[
221,
224
],
[
181,
225
],
[
225,
226
],
[
226,
227
],
[
225,
228
],
[
181,
229
],
[
229,
230
],
[
230,
231
],
[
229,
232
],
[
181,
233
],
[
233,
234
],
[
234,
235
],
[
233,
236
],
[
181,
237
],
[
237,
238
],
[
238,
239
],
[
237,
240
],
[
181,
241
],
[
241,
242
],
[
242,
243
],
[
241,
244
],
[
181,
245
],
[
245,
246
],
[
246,
247
],
[
245,
248
],
[
181,
249
],
[
249,
250
],
[
250,
251
],
[
249,
252
],
[
181,
253
],
[
253,
254
],
[
254,
255
],
[
253,
256
],
[
181,
257
],
[
257,
258
],
[
258,
259
],
[
257,
260
],
[
181,
261
],
[
261,
262
],
[
262,
263
],
[
261,
264
],
[
181,
265
],
[
265,
266
],
[
266,
267
],
[
265,
268
],
[
181,
269
],
[
269,
270
],
[
270,
271
],
[
269,
272
],
[
181,
273
],
[
273,
274
],
[
274,
275
],
[
273,
276
],
[
181,
277
],
[
277,
278
],
[
278,
279
],
[
277,
280
],
[
181,
281
],
[
281,
282
],
[
282,
283
],
[
281,
284
],
[
181,
285
],
[
285,
286
],
[
286,
287
],
[
285,
288
],
[
181,
289
],
[
289,
290
],
[
290,
291
],
[
289,
292
],
[
181,
293
],
[
293,
294
],
[
294,
295
],
[
293,
296
],
[
181,
297
],
[
297,
298
],
[
298,
299
],
[
297,
300
],
[
181,
301
],
[
301,
302
],
[
302,
303
],
[
301,
304
],
[
181,
305
],
[
305,
306
],
[
306,
307
],
[
305,
308
],
[
181,
309
],
[
309,
310
],
[
310,
311
],
[
309,
312
],
[
181,
313
],
[
313,
314
],
[
314,
315
],
[
313,
316
],
[
181,
317
],
[
317,
318
],
[
318,
319
],
[
317,
320
],
[
181,
321
],
[
321,
322
],
[
322,
323
],
[
321,
324
],
[
181,
325
],
[
325,
326
],
[
326,
327
],
[
325,
328
],
[
181,
329
],
[
329,
330
],
[
330,
331
],
[
329,
332
],
[
181,
333
],
[
333,
334
],
[
334,
335
],
[
333,
336
],
[
181,
337
],
[
337,
338
],
[
338,
339
],
[
337,
340
],
[
181,
341
],
[
341,
342
],
[
342,
343
],
[
341,
344
],
[
181,
345
],
[
345,
346
],
[
346,
347
],
[
345,
348
],
[
181,
349
],
[
349,
350
],
[
350,
351
],
[
349,
352
],
[
181,
353
],
[
353,
354
],
[
354,
355
],
[
353,
356
],
[
181,
357
],
[
357,
358
],
[
358,
359
],
[
357,
360
],
[
181,
361
],
[
361,
362
],
[
362,
363
],
[
361,
364
],
[
181,
365
],
[
365,
366
],
[
366,
367
],
[
365,
368
],
[
181,
369
],
[
369,
370
],
[
370,
371
],
[
369,
372
],
[
181,
373
],
[
373,
374
],
[
374,
375
],
[
373,
376
],
[
181,
377
],
[
377,
378
],
[
378,
379
],
[
377,
380
],
[
181,
381
],
[
381,
382
],
[
382,
383
],
[
381,
384
],
[
181,
385
],
[
385,
386
],
[
386,
387
],
[
385,
388
],
[
181,
389
],
[
389,
390
],
[
390,
391
],
[
389,
392
],
[
469,
393
],
[
393,
394
],
[
393,
395
],
[
395,
396
],
[
393,
397
],
[
397,
398
],
[
393,
399
],
[
399,
400
],
[
393,
401
],
[
401,
402
],
[
401,
403
],
[
403,
404
],
[
404,
405
],
[
405,
406
],
[
405,
407
],
[
404,
408
],
[
403,
409
],
[
409,
410
],
[
410,
411
],
[
410,
412
],
[
409,
413
],
[
403,
414
],
[
414,
415
],
[
415,
416
],
[
415,
417
],
[
414,
418
],
[
401,
419
],
[
419,
420
],
[
401,
421
],
[
421,
422
],
[
393,
423
],
[
423,
424
],
[
423,
425
],
[
425,
426
],
[
426,
427
],
[
393,
428
],
[
428,
429
],
[
428,
430
],
[
430,
431
],
[
431,
432
],
[
432,
433
],
[
432,
434
],
[
431,
435
],
[
428,
436
],
[
436,
437
],
[
393,
438
],
[
438,
439
],
[
438,
440
],
[
440,
441
],
[
441,
442
],
[
393,
443
],
[
443,
444
],
[
443,
445
],
[
445,
446
],
[
446,
447
],
[
447,
448
],
[
447,
449
],
[
446,
450
],
[
443,
451
],
[
451,
452
],
[
393,
453
],
[
453,
454
],
[
453,
455
],
[
455,
456
],
[
456,
457
],
[
393,
458
],
[
458,
459
],
[
458,
460
],
[
460,
461
],
[
461,
462
],
[
462,
463
],
[
462,
464
],
[
461,
465
],
[
458,
466
],
[
466,
467
],
[
0,
468
],
[
468,
469
],
[
468,
470
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\npublic class Main {\n\tprivate ArrayList<Trump> cardList;\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t Main main = new Main();\n\t main.init();\n\n\t int n = Integer.parseInt(br.readLine());\n\n\t for (int i = 0; i < n; i++) {\n\t\t String line = br.readLine();\n\t\t String type = line.split(\" \")[0];\n\t\t int num = Integer.parseInt(line.split(\" \")[1]);\n\t\t main. havingCardCheck(type, num);\n\t }\n\n\t main.notHavingCardDisp();\n\t}\n\n\tprivate void notHavingCardDisp() {\n\t\tfor (int i = 0; i < cardList.size(); i++) {\n\t\t\tif (!cardList.get(i).having) {\n\t\t\t\tSystem.out.println(cardList.get(i).type + \" \" + cardList.get(i).num);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate void havingCardCheck(String type, int num) {\n\t\tfor (int i = 0; i < cardList.size(); i++) {\n\t\t\tif (cardList.get(i).type.equals(type) && cardList.get(i).num == num) {\n\t\t\t\tcardList.get(i).having = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate void init() {\n\t\tcardList = new ArrayList<Trump>();\n\t\tcardList.add(new Trump(\"S\", 1));\n\t\tcardList.add(new Trump(\"S\", 2));\n\t\tcardList.add(new Trump(\"S\", 3));\n\t\tcardList.add(new Trump(\"S\", 4));\n\t\tcardList.add(new Trump(\"S\", 5));\n\t\tcardList.add(new Trump(\"S\", 6));\n\t\tcardList.add(new Trump(\"S\", 7));\n\t\tcardList.add(new Trump(\"S\", 8));\n\t\tcardList.add(new Trump(\"S\", 9));\n\t\tcardList.add(new Trump(\"S\", 10));\n\t\tcardList.add(new Trump(\"S\", 11));\n\t\tcardList.add(new Trump(\"S\", 12));\n\t\tcardList.add(new Trump(\"S\", 13));\n\n\t\tcardList.add(new Trump(\"H\", 1));\n\t\tcardList.add(new Trump(\"H\", 2));\n\t\tcardList.add(new Trump(\"H\", 3));\n\t\tcardList.add(new Trump(\"H\", 4));\n\t\tcardList.add(new Trump(\"H\", 5));\n\t\tcardList.add(new Trump(\"H\", 6));\n\t\tcardList.add(new Trump(\"H\", 7));\n\t\tcardList.add(new Trump(\"H\", 8));\n\t\tcardList.add(new Trump(\"H\", 9));\n\t\tcardList.add(new Trump(\"H\", 10));\n\t\tcardList.add(new Trump(\"H\", 11));\n\t\tcardList.add(new Trump(\"H\", 12));\n\t\tcardList.add(new Trump(\"H\", 13));\n\n\t\tcardList.add(new Trump(\"C\", 1));\n\t\tcardList.add(new Trump(\"C\", 2));\n\t\tcardList.add(new Trump(\"C\", 3));\n\t\tcardList.add(new Trump(\"C\", 4));\n\t\tcardList.add(new Trump(\"C\", 5));\n\t\tcardList.add(new Trump(\"C\", 6));\n\t\tcardList.add(new Trump(\"C\", 7));\n\t\tcardList.add(new Trump(\"C\", 8));\n\t\tcardList.add(new Trump(\"C\", 9));\n\t\tcardList.add(new Trump(\"C\", 10));\n\t\tcardList.add(new Trump(\"C\", 11));\n\t\tcardList.add(new Trump(\"C\", 12));\n\t\tcardList.add(new Trump(\"C\", 13));\n\n\t\tcardList.add(new Trump(\"D\", 1));\n\t\tcardList.add(new Trump(\"D\", 2));\n\t\tcardList.add(new Trump(\"D\", 3));\n\t\tcardList.add(new Trump(\"D\", 4));\n\t\tcardList.add(new Trump(\"D\", 5));\n\t\tcardList.add(new Trump(\"D\", 6));\n\t\tcardList.add(new Trump(\"D\", 7));\n\t\tcardList.add(new Trump(\"D\", 8));\n\t\tcardList.add(new Trump(\"D\", 9));\n\t\tcardList.add(new Trump(\"D\", 10));\n\t\tcardList.add(new Trump(\"D\", 11));\n\t\tcardList.add(new Trump(\"D\", 12));\n\t\tcardList.add(new Trump(\"D\", 13));\n\t}\n\n\tclass Trump {\n\t\tTrump(String type, int num) {\n\t\t\tthis.type = type;\n\t\t\tthis.num = num;\n\t\t\tthis.having = false;\n\t\t}\n\n\t\tprivate String type;\n\t\tprivate int num;\n\t\tprivate boolean having;\n\t\tpublic String getType() {\n\t\t\treturn type;\n\t\t}\n\t\tpublic void setType(String type) {\n\t\t\tthis.type = type;\n\t\t}\n\t\tpublic int getNum() {\n\t\t\treturn num;\n\t\t}\n\t\tpublic void setNum(int num) {\n\t\t\tthis.num = num;\n\t\t}\n\t\tpublic boolean isHaving() {\n\t\t\treturn having;\n\t\t}\n\t\tpublic void setHaving(boolean having) {\n\t\t\tthis.having = having;\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"public class Main {\n\tprivate ArrayList<Trump> cardList;\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t Main main = new Main();\n\t main.init();\n\n\t int n = Integer.parseInt(br.readLine());\n\n\t for (int i = 0; i < n; i++) {\n\t\t String line = br.readLine();\n\t\t String type = line.split(\" \")[0];\n\t\t int num = Integer.parseInt(line.split(\" \")[1]);\n\t\t main. havingCardCheck(type, num);\n\t }\n\n\t main.notHavingCardDisp();\n\t}\n\n\tprivate void notHavingCardDisp() {\n\t\tfor (int i = 0; i < cardList.size(); i++) {\n\t\t\tif (!cardList.get(i).having) {\n\t\t\t\tSystem.out.println(cardList.get(i).type + \" \" + cardList.get(i).num);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate void havingCardCheck(String type, int num) {\n\t\tfor (int i = 0; i < cardList.size(); i++) {\n\t\t\tif (cardList.get(i).type.equals(type) && cardList.get(i).num == num) {\n\t\t\t\tcardList.get(i).having = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate void init() {\n\t\tcardList = new ArrayList<Trump>();\n\t\tcardList.add(new Trump(\"S\", 1));\n\t\tcardList.add(new Trump(\"S\", 2));\n\t\tcardList.add(new Trump(\"S\", 3));\n\t\tcardList.add(new Trump(\"S\", 4));\n\t\tcardList.add(new Trump(\"S\", 5));\n\t\tcardList.add(new Trump(\"S\", 6));\n\t\tcardList.add(new Trump(\"S\", 7));\n\t\tcardList.add(new Trump(\"S\", 8));\n\t\tcardList.add(new Trump(\"S\", 9));\n\t\tcardList.add(new Trump(\"S\", 10));\n\t\tcardList.add(new Trump(\"S\", 11));\n\t\tcardList.add(new Trump(\"S\", 12));\n\t\tcardList.add(new Trump(\"S\", 13));\n\n\t\tcardList.add(new Trump(\"H\", 1));\n\t\tcardList.add(new Trump(\"H\", 2));\n\t\tcardList.add(new Trump(\"H\", 3));\n\t\tcardList.add(new Trump(\"H\", 4));\n\t\tcardList.add(new Trump(\"H\", 5));\n\t\tcardList.add(new Trump(\"H\", 6));\n\t\tcardList.add(new Trump(\"H\", 7));\n\t\tcardList.add(new Trump(\"H\", 8));\n\t\tcardList.add(new Trump(\"H\", 9));\n\t\tcardList.add(new Trump(\"H\", 10));\n\t\tcardList.add(new Trump(\"H\", 11));\n\t\tcardList.add(new Trump(\"H\", 12));\n\t\tcardList.add(new Trump(\"H\", 13));\n\n\t\tcardList.add(new Trump(\"C\", 1));\n\t\tcardList.add(new Trump(\"C\", 2));\n\t\tcardList.add(new Trump(\"C\", 3));\n\t\tcardList.add(new Trump(\"C\", 4));\n\t\tcardList.add(new Trump(\"C\", 5));\n\t\tcardList.add(new Trump(\"C\", 6));\n\t\tcardList.add(new Trump(\"C\", 7));\n\t\tcardList.add(new Trump(\"C\", 8));\n\t\tcardList.add(new Trump(\"C\", 9));\n\t\tcardList.add(new Trump(\"C\", 10));\n\t\tcardList.add(new Trump(\"C\", 11));\n\t\tcardList.add(new Trump(\"C\", 12));\n\t\tcardList.add(new Trump(\"C\", 13));\n\n\t\tcardList.add(new Trump(\"D\", 1));\n\t\tcardList.add(new Trump(\"D\", 2));\n\t\tcardList.add(new Trump(\"D\", 3));\n\t\tcardList.add(new Trump(\"D\", 4));\n\t\tcardList.add(new Trump(\"D\", 5));\n\t\tcardList.add(new Trump(\"D\", 6));\n\t\tcardList.add(new Trump(\"D\", 7));\n\t\tcardList.add(new Trump(\"D\", 8));\n\t\tcardList.add(new Trump(\"D\", 9));\n\t\tcardList.add(new Trump(\"D\", 10));\n\t\tcardList.add(new Trump(\"D\", 11));\n\t\tcardList.add(new Trump(\"D\", 12));\n\t\tcardList.add(new Trump(\"D\", 13));\n\t}\n\n\tclass Trump {\n\t\tTrump(String type, int num) {\n\t\t\tthis.type = type;\n\t\t\tthis.num = num;\n\t\t\tthis.having = false;\n\t\t}\n\n\t\tprivate String type;\n\t\tprivate int num;\n\t\tprivate boolean having;\n\t\tpublic String getType() {\n\t\t\treturn type;\n\t\t}\n\t\tpublic void setType(String type) {\n\t\t\tthis.type = type;\n\t\t}\n\t\tpublic int getNum() {\n\t\t\treturn num;\n\t\t}\n\t\tpublic void setNum(int num) {\n\t\t\tthis.num = num;\n\t\t}\n\t\tpublic boolean isHaving() {\n\t\t\treturn having;\n\t\t}\n\t\tpublic void setHaving(boolean having) {\n\t\t\tthis.having = having;\n\t\t}\n\t}\n}",
"Main",
"private ArrayList<Trump> cardList;",
"cardList",
"public static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t Main main = new Main();\n\t main.init();\n\n\t int n = Integer.parseInt(br.readLine());\n\n\t for (int i = 0; i < n; i++) {\n\t\t String line = br.readLine();\n\t\t String type = line.split(\" \")[0];\n\t\t int num = Integer.parseInt(line.split(\" \")[1]);\n\t\t main. havingCardCheck(type, num);\n\t }\n\n\t main.notHavingCardDisp();\n\t}",
"main",
"{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t Main main = new Main();\n\t main.init();\n\n\t int n = Integer.parseInt(br.readLine());\n\n\t for (int i = 0; i < n; i++) {\n\t\t String line = br.readLine();\n\t\t String type = line.split(\" \")[0];\n\t\t int num = Integer.parseInt(line.split(\" \")[1]);\n\t\t main. havingCardCheck(type, num);\n\t }\n\n\t main.notHavingCardDisp();\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"Main main = new Main();",
"main",
"new Main()",
"main.init()",
"main.init",
"main",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for (int i = 0; i < n; i++) {\n\t\t String line = br.readLine();\n\t\t String type = line.split(\" \")[0];\n\t\t int num = Integer.parseInt(line.split(\" \")[1]);\n\t\t main. havingCardCheck(type, num);\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t String line = br.readLine();\n\t\t String type = line.split(\" \")[0];\n\t\t int num = Integer.parseInt(line.split(\" \")[1]);\n\t\t main. havingCardCheck(type, num);\n\t }",
"{\n\t\t String line = br.readLine();\n\t\t String type = line.split(\" \")[0];\n\t\t int num = Integer.parseInt(line.split(\" \")[1]);\n\t\t main. havingCardCheck(type, num);\n\t }",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"String type = line.split(\" \")[0];",
"type",
"line.split(\" \")[0]",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"0",
"int num = Integer.parseInt(line.split(\" \")[1]);",
"num",
"Integer.parseInt(line.split(\" \")[1])",
"Integer.parseInt",
"Integer",
"line.split(\" \")[1]",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"1",
"main. havingCardCheck(type, num)",
"main. havingCardCheck",
"main",
"type",
"num",
"main.notHavingCardDisp()",
"main.notHavingCardDisp",
"main",
"String[] args",
"args",
"private void notHavingCardDisp() {\n\t\tfor (int i = 0; i < cardList.size(); i++) {\n\t\t\tif (!cardList.get(i).having) {\n\t\t\t\tSystem.out.println(cardList.get(i).type + \" \" + cardList.get(i).num);\n\t\t\t}\n\t\t}\n\t}",
"notHavingCardDisp",
"{\n\t\tfor (int i = 0; i < cardList.size(); i++) {\n\t\t\tif (!cardList.get(i).having) {\n\t\t\t\tSystem.out.println(cardList.get(i).type + \" \" + cardList.get(i).num);\n\t\t\t}\n\t\t}\n\t}",
"for (int i = 0; i < cardList.size(); i++) {\n\t\t\tif (!cardList.get(i).having) {\n\t\t\t\tSystem.out.println(cardList.get(i).type + \" \" + cardList.get(i).num);\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < cardList.size()",
"i",
"cardList.size()",
"cardList.size",
"cardList",
"i++",
"i++",
"i",
"{\n\t\t\tif (!cardList.get(i).having) {\n\t\t\t\tSystem.out.println(cardList.get(i).type + \" \" + cardList.get(i).num);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (!cardList.get(i).having) {\n\t\t\t\tSystem.out.println(cardList.get(i).type + \" \" + cardList.get(i).num);\n\t\t\t}\n\t\t}",
"if (!cardList.get(i).having) {\n\t\t\t\tSystem.out.println(cardList.get(i).type + \" \" + cardList.get(i).num);\n\t\t\t}",
"!cardList.get(i).having",
"cardList.get(i).having",
"cardList.get(i)",
"cardList.get",
"cardList",
"i",
"cardList.get(i).having",
"{\n\t\t\t\tSystem.out.println(cardList.get(i).type + \" \" + cardList.get(i).num);\n\t\t\t}",
"System.out.println(cardList.get(i).type + \" \" + cardList.get(i).num)",
"System.out.println",
"System.out",
"System",
"System.out",
"cardList.get(i).type + \" \" + cardList.get(i).num",
"cardList.get(i).type + \" \" + cardList.get(i).num",
"cardList.get(i).type",
"cardList.get(i)",
"cardList.get",
"cardList",
"i",
"cardList.get(i).type",
"\" \"",
"cardList.get(i).num",
"cardList.get(i)",
"cardList.get",
"cardList",
"i",
"cardList.get(i).num",
"private void havingCardCheck(String type, int num) {\n\t\tfor (int i = 0; i < cardList.size(); i++) {\n\t\t\tif (cardList.get(i).type.equals(type) && cardList.get(i).num == num) {\n\t\t\t\tcardList.get(i).having = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}",
"havingCardCheck",
"{\n\t\tfor (int i = 0; i < cardList.size(); i++) {\n\t\t\tif (cardList.get(i).type.equals(type) && cardList.get(i).num == num) {\n\t\t\t\tcardList.get(i).having = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}",
"for (int i = 0; i < cardList.size(); i++) {\n\t\t\tif (cardList.get(i).type.equals(type) && cardList.get(i).num == num) {\n\t\t\t\tcardList.get(i).having = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < cardList.size()",
"i",
"cardList.size()",
"cardList.size",
"cardList",
"i++",
"i++",
"i",
"{\n\t\t\tif (cardList.get(i).type.equals(type) && cardList.get(i).num == num) {\n\t\t\t\tcardList.get(i).having = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (cardList.get(i).type.equals(type) && cardList.get(i).num == num) {\n\t\t\t\tcardList.get(i).having = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}",
"if (cardList.get(i).type.equals(type) && cardList.get(i).num == num) {\n\t\t\t\tcardList.get(i).having = true;\n\t\t\t\treturn;\n\t\t\t}",
"cardList.get(i).type.equals(type) && cardList.get(i).num == num",
"cardList.get(i).type.equals(type)",
"cardList.get(i).type.equals",
"cardList.get(i).type",
"cardList.get(i)",
"cardList.get",
"cardList",
"i",
"cardList.get(i).type",
"type",
"cardList.get(i).num == num",
"cardList.get(i).num",
"cardList.get(i)",
"cardList.get",
"cardList",
"i",
"cardList.get(i).num",
"num",
"{\n\t\t\t\tcardList.get(i).having = true;\n\t\t\t\treturn;\n\t\t\t}",
"cardList.get(i).having = true",
"cardList.get(i).having",
"cardList.get(i)",
"cardList.get",
"cardList",
"i",
"cardList.get(i).having",
"true",
"return;",
"String type",
"type",
"int num",
"num",
"private void init() {\n\t\tcardList = new ArrayList<Trump>();\n\t\tcardList.add(new Trump(\"S\", 1));\n\t\tcardList.add(new Trump(\"S\", 2));\n\t\tcardList.add(new Trump(\"S\", 3));\n\t\tcardList.add(new Trump(\"S\", 4));\n\t\tcardList.add(new Trump(\"S\", 5));\n\t\tcardList.add(new Trump(\"S\", 6));\n\t\tcardList.add(new Trump(\"S\", 7));\n\t\tcardList.add(new Trump(\"S\", 8));\n\t\tcardList.add(new Trump(\"S\", 9));\n\t\tcardList.add(new Trump(\"S\", 10));\n\t\tcardList.add(new Trump(\"S\", 11));\n\t\tcardList.add(new Trump(\"S\", 12));\n\t\tcardList.add(new Trump(\"S\", 13));\n\n\t\tcardList.add(new Trump(\"H\", 1));\n\t\tcardList.add(new Trump(\"H\", 2));\n\t\tcardList.add(new Trump(\"H\", 3));\n\t\tcardList.add(new Trump(\"H\", 4));\n\t\tcardList.add(new Trump(\"H\", 5));\n\t\tcardList.add(new Trump(\"H\", 6));\n\t\tcardList.add(new Trump(\"H\", 7));\n\t\tcardList.add(new Trump(\"H\", 8));\n\t\tcardList.add(new Trump(\"H\", 9));\n\t\tcardList.add(new Trump(\"H\", 10));\n\t\tcardList.add(new Trump(\"H\", 11));\n\t\tcardList.add(new Trump(\"H\", 12));\n\t\tcardList.add(new Trump(\"H\", 13));\n\n\t\tcardList.add(new Trump(\"C\", 1));\n\t\tcardList.add(new Trump(\"C\", 2));\n\t\tcardList.add(new Trump(\"C\", 3));\n\t\tcardList.add(new Trump(\"C\", 4));\n\t\tcardList.add(new Trump(\"C\", 5));\n\t\tcardList.add(new Trump(\"C\", 6));\n\t\tcardList.add(new Trump(\"C\", 7));\n\t\tcardList.add(new Trump(\"C\", 8));\n\t\tcardList.add(new Trump(\"C\", 9));\n\t\tcardList.add(new Trump(\"C\", 10));\n\t\tcardList.add(new Trump(\"C\", 11));\n\t\tcardList.add(new Trump(\"C\", 12));\n\t\tcardList.add(new Trump(\"C\", 13));\n\n\t\tcardList.add(new Trump(\"D\", 1));\n\t\tcardList.add(new Trump(\"D\", 2));\n\t\tcardList.add(new Trump(\"D\", 3));\n\t\tcardList.add(new Trump(\"D\", 4));\n\t\tcardList.add(new Trump(\"D\", 5));\n\t\tcardList.add(new Trump(\"D\", 6));\n\t\tcardList.add(new Trump(\"D\", 7));\n\t\tcardList.add(new Trump(\"D\", 8));\n\t\tcardList.add(new Trump(\"D\", 9));\n\t\tcardList.add(new Trump(\"D\", 10));\n\t\tcardList.add(new Trump(\"D\", 11));\n\t\tcardList.add(new Trump(\"D\", 12));\n\t\tcardList.add(new Trump(\"D\", 13));\n\t}",
"init",
"{\n\t\tcardList = new ArrayList<Trump>();\n\t\tcardList.add(new Trump(\"S\", 1));\n\t\tcardList.add(new Trump(\"S\", 2));\n\t\tcardList.add(new Trump(\"S\", 3));\n\t\tcardList.add(new Trump(\"S\", 4));\n\t\tcardList.add(new Trump(\"S\", 5));\n\t\tcardList.add(new Trump(\"S\", 6));\n\t\tcardList.add(new Trump(\"S\", 7));\n\t\tcardList.add(new Trump(\"S\", 8));\n\t\tcardList.add(new Trump(\"S\", 9));\n\t\tcardList.add(new Trump(\"S\", 10));\n\t\tcardList.add(new Trump(\"S\", 11));\n\t\tcardList.add(new Trump(\"S\", 12));\n\t\tcardList.add(new Trump(\"S\", 13));\n\n\t\tcardList.add(new Trump(\"H\", 1));\n\t\tcardList.add(new Trump(\"H\", 2));\n\t\tcardList.add(new Trump(\"H\", 3));\n\t\tcardList.add(new Trump(\"H\", 4));\n\t\tcardList.add(new Trump(\"H\", 5));\n\t\tcardList.add(new Trump(\"H\", 6));\n\t\tcardList.add(new Trump(\"H\", 7));\n\t\tcardList.add(new Trump(\"H\", 8));\n\t\tcardList.add(new Trump(\"H\", 9));\n\t\tcardList.add(new Trump(\"H\", 10));\n\t\tcardList.add(new Trump(\"H\", 11));\n\t\tcardList.add(new Trump(\"H\", 12));\n\t\tcardList.add(new Trump(\"H\", 13));\n\n\t\tcardList.add(new Trump(\"C\", 1));\n\t\tcardList.add(new Trump(\"C\", 2));\n\t\tcardList.add(new Trump(\"C\", 3));\n\t\tcardList.add(new Trump(\"C\", 4));\n\t\tcardList.add(new Trump(\"C\", 5));\n\t\tcardList.add(new Trump(\"C\", 6));\n\t\tcardList.add(new Trump(\"C\", 7));\n\t\tcardList.add(new Trump(\"C\", 8));\n\t\tcardList.add(new Trump(\"C\", 9));\n\t\tcardList.add(new Trump(\"C\", 10));\n\t\tcardList.add(new Trump(\"C\", 11));\n\t\tcardList.add(new Trump(\"C\", 12));\n\t\tcardList.add(new Trump(\"C\", 13));\n\n\t\tcardList.add(new Trump(\"D\", 1));\n\t\tcardList.add(new Trump(\"D\", 2));\n\t\tcardList.add(new Trump(\"D\", 3));\n\t\tcardList.add(new Trump(\"D\", 4));\n\t\tcardList.add(new Trump(\"D\", 5));\n\t\tcardList.add(new Trump(\"D\", 6));\n\t\tcardList.add(new Trump(\"D\", 7));\n\t\tcardList.add(new Trump(\"D\", 8));\n\t\tcardList.add(new Trump(\"D\", 9));\n\t\tcardList.add(new Trump(\"D\", 10));\n\t\tcardList.add(new Trump(\"D\", 11));\n\t\tcardList.add(new Trump(\"D\", 12));\n\t\tcardList.add(new Trump(\"D\", 13));\n\t}",
"cardList = new ArrayList<Trump>()",
"cardList",
"new ArrayList<Trump>()",
"cardList.add(new Trump(\"S\", 1))",
"cardList.add",
"cardList",
"new Trump(\"S\", 1)",
"cardList.add(new Trump(\"S\", 2))",
"cardList.add",
"cardList",
"new Trump(\"S\", 2)",
"cardList.add(new Trump(\"S\", 3))",
"cardList.add",
"cardList",
"new Trump(\"S\", 3)",
"cardList.add(new Trump(\"S\", 4))",
"cardList.add",
"cardList",
"new Trump(\"S\", 4)",
"cardList.add(new Trump(\"S\", 5))",
"cardList.add",
"cardList",
"new Trump(\"S\", 5)",
"cardList.add(new Trump(\"S\", 6))",
"cardList.add",
"cardList",
"new Trump(\"S\", 6)",
"cardList.add(new Trump(\"S\", 7))",
"cardList.add",
"cardList",
"new Trump(\"S\", 7)",
"cardList.add(new Trump(\"S\", 8))",
"cardList.add",
"cardList",
"new Trump(\"S\", 8)",
"cardList.add(new Trump(\"S\", 9))",
"cardList.add",
"cardList",
"new Trump(\"S\", 9)",
"cardList.add(new Trump(\"S\", 10))",
"cardList.add",
"cardList",
"new Trump(\"S\", 10)",
"cardList.add(new Trump(\"S\", 11))",
"cardList.add",
"cardList",
"new Trump(\"S\", 11)",
"cardList.add(new Trump(\"S\", 12))",
"cardList.add",
"cardList",
"new Trump(\"S\", 12)",
"cardList.add(new Trump(\"S\", 13))",
"cardList.add",
"cardList",
"new Trump(\"S\", 13)",
"cardList.add(new Trump(\"H\", 1))",
"cardList.add",
"cardList",
"new Trump(\"H\", 1)",
"cardList.add(new Trump(\"H\", 2))",
"cardList.add",
"cardList",
"new Trump(\"H\", 2)",
"cardList.add(new Trump(\"H\", 3))",
"cardList.add",
"cardList",
"new Trump(\"H\", 3)",
"cardList.add(new Trump(\"H\", 4))",
"cardList.add",
"cardList",
"new Trump(\"H\", 4)",
"cardList.add(new Trump(\"H\", 5))",
"cardList.add",
"cardList",
"new Trump(\"H\", 5)",
"cardList.add(new Trump(\"H\", 6))",
"cardList.add",
"cardList",
"new Trump(\"H\", 6)",
"cardList.add(new Trump(\"H\", 7))",
"cardList.add",
"cardList",
"new Trump(\"H\", 7)",
"cardList.add(new Trump(\"H\", 8))",
"cardList.add",
"cardList",
"new Trump(\"H\", 8)",
"cardList.add(new Trump(\"H\", 9))",
"cardList.add",
"cardList",
"new Trump(\"H\", 9)",
"cardList.add(new Trump(\"H\", 10))",
"cardList.add",
"cardList",
"new Trump(\"H\", 10)",
"cardList.add(new Trump(\"H\", 11))",
"cardList.add",
"cardList",
"new Trump(\"H\", 11)",
"cardList.add(new Trump(\"H\", 12))",
"cardList.add",
"cardList",
"new Trump(\"H\", 12)",
"cardList.add(new Trump(\"H\", 13))",
"cardList.add",
"cardList",
"new Trump(\"H\", 13)",
"cardList.add(new Trump(\"C\", 1))",
"cardList.add",
"cardList",
"new Trump(\"C\", 1)",
"cardList.add(new Trump(\"C\", 2))",
"cardList.add",
"cardList",
"new Trump(\"C\", 2)",
"cardList.add(new Trump(\"C\", 3))",
"cardList.add",
"cardList",
"new Trump(\"C\", 3)",
"cardList.add(new Trump(\"C\", 4))",
"cardList.add",
"cardList",
"new Trump(\"C\", 4)",
"cardList.add(new Trump(\"C\", 5))",
"cardList.add",
"cardList",
"new Trump(\"C\", 5)",
"cardList.add(new Trump(\"C\", 6))",
"cardList.add",
"cardList",
"new Trump(\"C\", 6)",
"cardList.add(new Trump(\"C\", 7))",
"cardList.add",
"cardList",
"new Trump(\"C\", 7)",
"cardList.add(new Trump(\"C\", 8))",
"cardList.add",
"cardList",
"new Trump(\"C\", 8)",
"cardList.add(new Trump(\"C\", 9))",
"cardList.add",
"cardList",
"new Trump(\"C\", 9)",
"cardList.add(new Trump(\"C\", 10))",
"cardList.add",
"cardList",
"new Trump(\"C\", 10)",
"cardList.add(new Trump(\"C\", 11))",
"cardList.add",
"cardList",
"new Trump(\"C\", 11)",
"cardList.add(new Trump(\"C\", 12))",
"cardList.add",
"cardList",
"new Trump(\"C\", 12)",
"cardList.add(new Trump(\"C\", 13))",
"cardList.add",
"cardList",
"new Trump(\"C\", 13)",
"cardList.add(new Trump(\"D\", 1))",
"cardList.add",
"cardList",
"new Trump(\"D\", 1)",
"cardList.add(new Trump(\"D\", 2))",
"cardList.add",
"cardList",
"new Trump(\"D\", 2)",
"cardList.add(new Trump(\"D\", 3))",
"cardList.add",
"cardList",
"new Trump(\"D\", 3)",
"cardList.add(new Trump(\"D\", 4))",
"cardList.add",
"cardList",
"new Trump(\"D\", 4)",
"cardList.add(new Trump(\"D\", 5))",
"cardList.add",
"cardList",
"new Trump(\"D\", 5)",
"cardList.add(new Trump(\"D\", 6))",
"cardList.add",
"cardList",
"new Trump(\"D\", 6)",
"cardList.add(new Trump(\"D\", 7))",
"cardList.add",
"cardList",
"new Trump(\"D\", 7)",
"cardList.add(new Trump(\"D\", 8))",
"cardList.add",
"cardList",
"new Trump(\"D\", 8)",
"cardList.add(new Trump(\"D\", 9))",
"cardList.add",
"cardList",
"new Trump(\"D\", 9)",
"cardList.add(new Trump(\"D\", 10))",
"cardList.add",
"cardList",
"new Trump(\"D\", 10)",
"cardList.add(new Trump(\"D\", 11))",
"cardList.add",
"cardList",
"new Trump(\"D\", 11)",
"cardList.add(new Trump(\"D\", 12))",
"cardList.add",
"cardList",
"new Trump(\"D\", 12)",
"cardList.add(new Trump(\"D\", 13))",
"cardList.add",
"cardList",
"new Trump(\"D\", 13)",
"class Trump {\n\t\tTrump(String type, int num) {\n\t\t\tthis.type = type;\n\t\t\tthis.num = num;\n\t\t\tthis.having = false;\n\t\t}\n\n\t\tprivate String type;\n\t\tprivate int num;\n\t\tprivate boolean having;\n\t\tpublic String getType() {\n\t\t\treturn type;\n\t\t}\n\t\tpublic void setType(String type) {\n\t\t\tthis.type = type;\n\t\t}\n\t\tpublic int getNum() {\n\t\t\treturn num;\n\t\t}\n\t\tpublic void setNum(int num) {\n\t\t\tthis.num = num;\n\t\t}\n\t\tpublic boolean isHaving() {\n\t\t\treturn having;\n\t\t}\n\t\tpublic void setHaving(boolean having) {\n\t\t\tthis.having = having;\n\t\t}\n\t}",
"Trump",
"private String type;",
"type",
"private int num;",
"num",
"private boolean having;",
"having",
"Trump(String type, int num) {\n\t\t\tthis.type = type;\n\t\t\tthis.num = num;\n\t\t\tthis.having = false;\n\t\t}",
"Trump",
"{\n\t\t\tthis.type = type;\n\t\t\tthis.num = num;\n\t\t\tthis.having = false;\n\t\t}",
"this.type = type",
"this.type",
"this",
"this.type",
"type",
"this.num = num",
"this.num",
"this",
"this.num",
"num",
"this.having = false",
"this.having",
"this",
"this.having",
"false",
"String type",
"type",
"int num",
"num",
"public String getType() {\n\t\t\treturn type;\n\t\t}",
"getType",
"{\n\t\t\treturn type;\n\t\t}",
"return type;",
"type",
"public void setType(String type) {\n\t\t\tthis.type = type;\n\t\t}",
"setType",
"{\n\t\t\tthis.type = type;\n\t\t}",
"this.type = type",
"this.type",
"this",
"this.type",
"type",
"String type",
"type",
"public int getNum() {\n\t\t\treturn num;\n\t\t}",
"getNum",
"{\n\t\t\treturn num;\n\t\t}",
"return num;",
"num",
"public void setNum(int num) {\n\t\t\tthis.num = num;\n\t\t}",
"setNum",
"{\n\t\t\tthis.num = num;\n\t\t}",
"this.num = num",
"this.num",
"this",
"this.num",
"num",
"int num",
"num",
"public boolean isHaving() {\n\t\t\treturn having;\n\t\t}",
"isHaving",
"{\n\t\t\treturn having;\n\t\t}",
"return having;",
"having",
"public void setHaving(boolean having) {\n\t\t\tthis.having = having;\n\t\t}",
"setHaving",
"{\n\t\t\tthis.having = having;\n\t\t}",
"this.having = having",
"this.having",
"this",
"this.having",
"having",
"boolean having",
"having",
"public class Main {\n\tprivate ArrayList<Trump> cardList;\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t Main main = new Main();\n\t main.init();\n\n\t int n = Integer.parseInt(br.readLine());\n\n\t for (int i = 0; i < n; i++) {\n\t\t String line = br.readLine();\n\t\t String type = line.split(\" \")[0];\n\t\t int num = Integer.parseInt(line.split(\" \")[1]);\n\t\t main. havingCardCheck(type, num);\n\t }\n\n\t main.notHavingCardDisp();\n\t}\n\n\tprivate void notHavingCardDisp() {\n\t\tfor (int i = 0; i < cardList.size(); i++) {\n\t\t\tif (!cardList.get(i).having) {\n\t\t\t\tSystem.out.println(cardList.get(i).type + \" \" + cardList.get(i).num);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate void havingCardCheck(String type, int num) {\n\t\tfor (int i = 0; i < cardList.size(); i++) {\n\t\t\tif (cardList.get(i).type.equals(type) && cardList.get(i).num == num) {\n\t\t\t\tcardList.get(i).having = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate void init() {\n\t\tcardList = new ArrayList<Trump>();\n\t\tcardList.add(new Trump(\"S\", 1));\n\t\tcardList.add(new Trump(\"S\", 2));\n\t\tcardList.add(new Trump(\"S\", 3));\n\t\tcardList.add(new Trump(\"S\", 4));\n\t\tcardList.add(new Trump(\"S\", 5));\n\t\tcardList.add(new Trump(\"S\", 6));\n\t\tcardList.add(new Trump(\"S\", 7));\n\t\tcardList.add(new Trump(\"S\", 8));\n\t\tcardList.add(new Trump(\"S\", 9));\n\t\tcardList.add(new Trump(\"S\", 10));\n\t\tcardList.add(new Trump(\"S\", 11));\n\t\tcardList.add(new Trump(\"S\", 12));\n\t\tcardList.add(new Trump(\"S\", 13));\n\n\t\tcardList.add(new Trump(\"H\", 1));\n\t\tcardList.add(new Trump(\"H\", 2));\n\t\tcardList.add(new Trump(\"H\", 3));\n\t\tcardList.add(new Trump(\"H\", 4));\n\t\tcardList.add(new Trump(\"H\", 5));\n\t\tcardList.add(new Trump(\"H\", 6));\n\t\tcardList.add(new Trump(\"H\", 7));\n\t\tcardList.add(new Trump(\"H\", 8));\n\t\tcardList.add(new Trump(\"H\", 9));\n\t\tcardList.add(new Trump(\"H\", 10));\n\t\tcardList.add(new Trump(\"H\", 11));\n\t\tcardList.add(new Trump(\"H\", 12));\n\t\tcardList.add(new Trump(\"H\", 13));\n\n\t\tcardList.add(new Trump(\"C\", 1));\n\t\tcardList.add(new Trump(\"C\", 2));\n\t\tcardList.add(new Trump(\"C\", 3));\n\t\tcardList.add(new Trump(\"C\", 4));\n\t\tcardList.add(new Trump(\"C\", 5));\n\t\tcardList.add(new Trump(\"C\", 6));\n\t\tcardList.add(new Trump(\"C\", 7));\n\t\tcardList.add(new Trump(\"C\", 8));\n\t\tcardList.add(new Trump(\"C\", 9));\n\t\tcardList.add(new Trump(\"C\", 10));\n\t\tcardList.add(new Trump(\"C\", 11));\n\t\tcardList.add(new Trump(\"C\", 12));\n\t\tcardList.add(new Trump(\"C\", 13));\n\n\t\tcardList.add(new Trump(\"D\", 1));\n\t\tcardList.add(new Trump(\"D\", 2));\n\t\tcardList.add(new Trump(\"D\", 3));\n\t\tcardList.add(new Trump(\"D\", 4));\n\t\tcardList.add(new Trump(\"D\", 5));\n\t\tcardList.add(new Trump(\"D\", 6));\n\t\tcardList.add(new Trump(\"D\", 7));\n\t\tcardList.add(new Trump(\"D\", 8));\n\t\tcardList.add(new Trump(\"D\", 9));\n\t\tcardList.add(new Trump(\"D\", 10));\n\t\tcardList.add(new Trump(\"D\", 11));\n\t\tcardList.add(new Trump(\"D\", 12));\n\t\tcardList.add(new Trump(\"D\", 13));\n\t}\n\n\tclass Trump {\n\t\tTrump(String type, int num) {\n\t\t\tthis.type = type;\n\t\t\tthis.num = num;\n\t\t\tthis.having = false;\n\t\t}\n\n\t\tprivate String type;\n\t\tprivate int num;\n\t\tprivate boolean having;\n\t\tpublic String getType() {\n\t\t\treturn type;\n\t\t}\n\t\tpublic void setType(String type) {\n\t\t\tthis.type = type;\n\t\t}\n\t\tpublic int getNum() {\n\t\t\treturn num;\n\t\t}\n\t\tpublic void setNum(int num) {\n\t\t\tthis.num = num;\n\t\t}\n\t\tpublic boolean isHaving() {\n\t\t\treturn having;\n\t\t}\n\t\tpublic void setHaving(boolean having) {\n\t\t\tthis.having = having;\n\t\t}\n\t}\n}",
"public class Main {\n\tprivate ArrayList<Trump> cardList;\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t Main main = new Main();\n\t main.init();\n\n\t int n = Integer.parseInt(br.readLine());\n\n\t for (int i = 0; i < n; i++) {\n\t\t String line = br.readLine();\n\t\t String type = line.split(\" \")[0];\n\t\t int num = Integer.parseInt(line.split(\" \")[1]);\n\t\t main. havingCardCheck(type, num);\n\t }\n\n\t main.notHavingCardDisp();\n\t}\n\n\tprivate void notHavingCardDisp() {\n\t\tfor (int i = 0; i < cardList.size(); i++) {\n\t\t\tif (!cardList.get(i).having) {\n\t\t\t\tSystem.out.println(cardList.get(i).type + \" \" + cardList.get(i).num);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate void havingCardCheck(String type, int num) {\n\t\tfor (int i = 0; i < cardList.size(); i++) {\n\t\t\tif (cardList.get(i).type.equals(type) && cardList.get(i).num == num) {\n\t\t\t\tcardList.get(i).having = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate void init() {\n\t\tcardList = new ArrayList<Trump>();\n\t\tcardList.add(new Trump(\"S\", 1));\n\t\tcardList.add(new Trump(\"S\", 2));\n\t\tcardList.add(new Trump(\"S\", 3));\n\t\tcardList.add(new Trump(\"S\", 4));\n\t\tcardList.add(new Trump(\"S\", 5));\n\t\tcardList.add(new Trump(\"S\", 6));\n\t\tcardList.add(new Trump(\"S\", 7));\n\t\tcardList.add(new Trump(\"S\", 8));\n\t\tcardList.add(new Trump(\"S\", 9));\n\t\tcardList.add(new Trump(\"S\", 10));\n\t\tcardList.add(new Trump(\"S\", 11));\n\t\tcardList.add(new Trump(\"S\", 12));\n\t\tcardList.add(new Trump(\"S\", 13));\n\n\t\tcardList.add(new Trump(\"H\", 1));\n\t\tcardList.add(new Trump(\"H\", 2));\n\t\tcardList.add(new Trump(\"H\", 3));\n\t\tcardList.add(new Trump(\"H\", 4));\n\t\tcardList.add(new Trump(\"H\", 5));\n\t\tcardList.add(new Trump(\"H\", 6));\n\t\tcardList.add(new Trump(\"H\", 7));\n\t\tcardList.add(new Trump(\"H\", 8));\n\t\tcardList.add(new Trump(\"H\", 9));\n\t\tcardList.add(new Trump(\"H\", 10));\n\t\tcardList.add(new Trump(\"H\", 11));\n\t\tcardList.add(new Trump(\"H\", 12));\n\t\tcardList.add(new Trump(\"H\", 13));\n\n\t\tcardList.add(new Trump(\"C\", 1));\n\t\tcardList.add(new Trump(\"C\", 2));\n\t\tcardList.add(new Trump(\"C\", 3));\n\t\tcardList.add(new Trump(\"C\", 4));\n\t\tcardList.add(new Trump(\"C\", 5));\n\t\tcardList.add(new Trump(\"C\", 6));\n\t\tcardList.add(new Trump(\"C\", 7));\n\t\tcardList.add(new Trump(\"C\", 8));\n\t\tcardList.add(new Trump(\"C\", 9));\n\t\tcardList.add(new Trump(\"C\", 10));\n\t\tcardList.add(new Trump(\"C\", 11));\n\t\tcardList.add(new Trump(\"C\", 12));\n\t\tcardList.add(new Trump(\"C\", 13));\n\n\t\tcardList.add(new Trump(\"D\", 1));\n\t\tcardList.add(new Trump(\"D\", 2));\n\t\tcardList.add(new Trump(\"D\", 3));\n\t\tcardList.add(new Trump(\"D\", 4));\n\t\tcardList.add(new Trump(\"D\", 5));\n\t\tcardList.add(new Trump(\"D\", 6));\n\t\tcardList.add(new Trump(\"D\", 7));\n\t\tcardList.add(new Trump(\"D\", 8));\n\t\tcardList.add(new Trump(\"D\", 9));\n\t\tcardList.add(new Trump(\"D\", 10));\n\t\tcardList.add(new Trump(\"D\", 11));\n\t\tcardList.add(new Trump(\"D\", 12));\n\t\tcardList.add(new Trump(\"D\", 13));\n\t}\n\n\tclass Trump {\n\t\tTrump(String type, int num) {\n\t\t\tthis.type = type;\n\t\t\tthis.num = num;\n\t\t\tthis.having = false;\n\t\t}\n\n\t\tprivate String type;\n\t\tprivate int num;\n\t\tprivate boolean having;\n\t\tpublic String getType() {\n\t\t\treturn type;\n\t\t}\n\t\tpublic void setType(String type) {\n\t\t\tthis.type = type;\n\t\t}\n\t\tpublic int getNum() {\n\t\t\treturn num;\n\t\t}\n\t\tpublic void setNum(int num) {\n\t\t\tthis.num = num;\n\t\t}\n\t\tpublic boolean isHaving() {\n\t\t\treturn having;\n\t\t}\n\t\tpublic void setHaving(boolean having) {\n\t\t\tthis.having = having;\n\t\t}\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class Main {
private ArrayList<Trump> cardList;
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
Main main = new Main();
main.init();
int n = Integer.parseInt(br.readLine());
for (int i = 0; i < n; i++) {
String line = br.readLine();
String type = line.split(" ")[0];
int num = Integer.parseInt(line.split(" ")[1]);
main. havingCardCheck(type, num);
}
main.notHavingCardDisp();
}
private void notHavingCardDisp() {
for (int i = 0; i < cardList.size(); i++) {
if (!cardList.get(i).having) {
System.out.println(cardList.get(i).type + " " + cardList.get(i).num);
}
}
}
private void havingCardCheck(String type, int num) {
for (int i = 0; i < cardList.size(); i++) {
if (cardList.get(i).type.equals(type) && cardList.get(i).num == num) {
cardList.get(i).having = true;
return;
}
}
}
private void init() {
cardList = new ArrayList<Trump>();
cardList.add(new Trump("S", 1));
cardList.add(new Trump("S", 2));
cardList.add(new Trump("S", 3));
cardList.add(new Trump("S", 4));
cardList.add(new Trump("S", 5));
cardList.add(new Trump("S", 6));
cardList.add(new Trump("S", 7));
cardList.add(new Trump("S", 8));
cardList.add(new Trump("S", 9));
cardList.add(new Trump("S", 10));
cardList.add(new Trump("S", 11));
cardList.add(new Trump("S", 12));
cardList.add(new Trump("S", 13));
cardList.add(new Trump("H", 1));
cardList.add(new Trump("H", 2));
cardList.add(new Trump("H", 3));
cardList.add(new Trump("H", 4));
cardList.add(new Trump("H", 5));
cardList.add(new Trump("H", 6));
cardList.add(new Trump("H", 7));
cardList.add(new Trump("H", 8));
cardList.add(new Trump("H", 9));
cardList.add(new Trump("H", 10));
cardList.add(new Trump("H", 11));
cardList.add(new Trump("H", 12));
cardList.add(new Trump("H", 13));
cardList.add(new Trump("C", 1));
cardList.add(new Trump("C", 2));
cardList.add(new Trump("C", 3));
cardList.add(new Trump("C", 4));
cardList.add(new Trump("C", 5));
cardList.add(new Trump("C", 6));
cardList.add(new Trump("C", 7));
cardList.add(new Trump("C", 8));
cardList.add(new Trump("C", 9));
cardList.add(new Trump("C", 10));
cardList.add(new Trump("C", 11));
cardList.add(new Trump("C", 12));
cardList.add(new Trump("C", 13));
cardList.add(new Trump("D", 1));
cardList.add(new Trump("D", 2));
cardList.add(new Trump("D", 3));
cardList.add(new Trump("D", 4));
cardList.add(new Trump("D", 5));
cardList.add(new Trump("D", 6));
cardList.add(new Trump("D", 7));
cardList.add(new Trump("D", 8));
cardList.add(new Trump("D", 9));
cardList.add(new Trump("D", 10));
cardList.add(new Trump("D", 11));
cardList.add(new Trump("D", 12));
cardList.add(new Trump("D", 13));
}
class Trump {
Trump(String type, int num) {
this.type = type;
this.num = num;
this.having = false;
}
private String type;
private int num;
private boolean having;
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public int getNum() {
return num;
}
public void setNum(int num) {
this.num = num;
}
public boolean isHaving() {
return having;
}
public void setHaving(boolean having) {
this.having = having;
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
20,
41,
13,
39,
17,
17,
17,
17,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
42,
17,
30,
0,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
13,
13,
40,
13,
14,
2,
13,
13,
30,
3,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
2,
2,
18,
13,
13,
17,
13,
14,
40,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
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
],
[
138,
17
],
[
138,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
18,
24
],
[
24,
25
],
[
138,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
28,
34
],
[
34,
35
],
[
34,
36
],
[
28,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
39,
42
],
[
39,
43
],
[
28,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
44,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
51,
60
],
[
60,
61
],
[
60,
62
],
[
51,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
65,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
71,
78
],
[
65,
79
],
[
79,
80
],
[
65,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
51,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
94,
96
],
[
87,
97
],
[
97,
98
],
[
98,
99
],
[
87,
100
],
[
101,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
110,
111
],
[
111,
112
],
[
102,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
118,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
118,
123
],
[
114,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
124,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
0,
137
],
[
137,
138
],
[
137,
139
]
] | [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.HashMap;\nimport java.util.Map;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\n\tpublic void run(){\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String inputData;\n Map<String,String> cardMap = new HashMap<String,String>();\n String[] typeArray = {\"S\",\"H\",\"C\",\"D\"};\n try {\n \tint cardNum = Integer.parseInt(reader.readLine());\n \tint cnt = 0;\n \t//??\\???\n\t while(true){\n\t\t\t\tinputData = reader.readLine();\n\t\t\t\tcardMap.put(String.valueOf(cnt), inputData);\n\t\t\t\tcnt++;\n\t if(cnt == cardNum){\n\t \tbreak;\n\t }\n\t }\n\n\t //??????\n\t for(int j=0;j<typeArray.length;j++){\n\t\t for(int i=1 ;i < 14;i++){\n\t\t \tString checkString = typeArray[j]+\" \"+ i;\n\t\t \tif(!cardMap.containsValue(checkString)){\n\t\t \t\tSystem.out.println(checkString);\n\t\t \t}\n\t\t }\n\t }\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\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",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.Map;",
"Map",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\n\tpublic void run(){\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String inputData;\n Map<String,String> cardMap = new HashMap<String,String>();\n String[] typeArray = {\"S\",\"H\",\"C\",\"D\"};\n try {\n \tint cardNum = Integer.parseInt(reader.readLine());\n \tint cnt = 0;\n \t//??\\???\n\t while(true){\n\t\t\t\tinputData = reader.readLine();\n\t\t\t\tcardMap.put(String.valueOf(cnt), inputData);\n\t\t\t\tcnt++;\n\t if(cnt == cardNum){\n\t \tbreak;\n\t }\n\t }\n\n\t //??????\n\t for(int j=0;j<typeArray.length;j++){\n\t\t for(int i=1 ;i < 14;i++){\n\t\t \tString checkString = typeArray[j]+\" \"+ i;\n\t\t \tif(!cardMap.containsValue(checkString)){\n\t\t \t\tSystem.out.println(checkString);\n\t\t \t}\n\t\t }\n\t }\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n\n}",
"Main",
"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 void run(){\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String inputData;\n Map<String,String> cardMap = new HashMap<String,String>();\n String[] typeArray = {\"S\",\"H\",\"C\",\"D\"};\n try {\n \tint cardNum = Integer.parseInt(reader.readLine());\n \tint cnt = 0;\n \t//??\\???\n\t while(true){\n\t\t\t\tinputData = reader.readLine();\n\t\t\t\tcardMap.put(String.valueOf(cnt), inputData);\n\t\t\t\tcnt++;\n\t if(cnt == cardNum){\n\t \tbreak;\n\t }\n\t }\n\n\t //??????\n\t for(int j=0;j<typeArray.length;j++){\n\t\t for(int i=1 ;i < 14;i++){\n\t\t \tString checkString = typeArray[j]+\" \"+ i;\n\t\t \tif(!cardMap.containsValue(checkString)){\n\t\t \t\tSystem.out.println(checkString);\n\t\t \t}\n\t\t }\n\t }\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"run",
"{\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String inputData;\n Map<String,String> cardMap = new HashMap<String,String>();\n String[] typeArray = {\"S\",\"H\",\"C\",\"D\"};\n try {\n \tint cardNum = Integer.parseInt(reader.readLine());\n \tint cnt = 0;\n \t//??\\???\n\t while(true){\n\t\t\t\tinputData = reader.readLine();\n\t\t\t\tcardMap.put(String.valueOf(cnt), inputData);\n\t\t\t\tcnt++;\n\t if(cnt == cardNum){\n\t \tbreak;\n\t }\n\t }\n\n\t //??????\n\t for(int j=0;j<typeArray.length;j++){\n\t\t for(int i=1 ;i < 14;i++){\n\t\t \tString checkString = typeArray[j]+\" \"+ i;\n\t\t \tif(!cardMap.containsValue(checkString)){\n\t\t \t\tSystem.out.println(checkString);\n\t\t \t}\n\t\t }\n\t }\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"String inputData;",
"inputData",
"Map<String,String> cardMap = new HashMap<String,String>();",
"cardMap",
"new HashMap<String,String>()",
"String[] typeArray = {\"S\",\"H\",\"C\",\"D\"};",
"typeArray",
"{\"S\",\"H\",\"C\",\"D\"}",
"\"S\"",
"\"H\"",
"\"C\"",
"\"D\"",
"try {\n \tint cardNum = Integer.parseInt(reader.readLine());\n \tint cnt = 0;\n \t//??\\???\n\t while(true){\n\t\t\t\tinputData = reader.readLine();\n\t\t\t\tcardMap.put(String.valueOf(cnt), inputData);\n\t\t\t\tcnt++;\n\t if(cnt == cardNum){\n\t \tbreak;\n\t }\n\t }\n\n\t //??????\n\t for(int j=0;j<typeArray.length;j++){\n\t\t for(int i=1 ;i < 14;i++){\n\t\t \tString checkString = typeArray[j]+\" \"+ i;\n\t\t \tif(!cardMap.containsValue(checkString)){\n\t\t \t\tSystem.out.println(checkString);\n\t\t \t}\n\t\t }\n\t }\n\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 \tint cardNum = Integer.parseInt(reader.readLine());\n \tint cnt = 0;\n \t//??\\???\n\t while(true){\n\t\t\t\tinputData = reader.readLine();\n\t\t\t\tcardMap.put(String.valueOf(cnt), inputData);\n\t\t\t\tcnt++;\n\t if(cnt == cardNum){\n\t \tbreak;\n\t }\n\t }\n\n\t //??????\n\t for(int j=0;j<typeArray.length;j++){\n\t\t for(int i=1 ;i < 14;i++){\n\t\t \tString checkString = typeArray[j]+\" \"+ i;\n\t\t \tif(!cardMap.containsValue(checkString)){\n\t\t \t\tSystem.out.println(checkString);\n\t\t \t}\n\t\t }\n\t }\n\n\t\t}",
"int cardNum = Integer.parseInt(reader.readLine());",
"cardNum",
"Integer.parseInt(reader.readLine())",
"Integer.parseInt",
"Integer",
"reader.readLine()",
"reader.readLine",
"reader",
"int cnt = 0;",
"cnt",
"0",
"while(true){\n\t\t\t\tinputData = reader.readLine();\n\t\t\t\tcardMap.put(String.valueOf(cnt), inputData);\n\t\t\t\tcnt++;\n\t if(cnt == cardNum){\n\t \tbreak;\n\t }\n\t }",
"true",
"{\n\t\t\t\tinputData = reader.readLine();\n\t\t\t\tcardMap.put(String.valueOf(cnt), inputData);\n\t\t\t\tcnt++;\n\t if(cnt == cardNum){\n\t \tbreak;\n\t }\n\t }",
"inputData = reader.readLine()",
"inputData",
"reader.readLine()",
"reader.readLine",
"reader",
"cardMap.put(String.valueOf(cnt), inputData)",
"cardMap.put",
"cardMap",
"String.valueOf(cnt)",
"String.valueOf",
"String",
"cnt",
"inputData",
"cnt++",
"cnt",
"if(cnt == cardNum){\n\t \tbreak;\n\t }",
"cnt == cardNum",
"cnt",
"cardNum",
"{\n\t \tbreak;\n\t }",
"break;",
"for(int j=0;j<typeArray.length;j++){\n\t\t for(int i=1 ;i < 14;i++){\n\t\t \tString checkString = typeArray[j]+\" \"+ i;\n\t\t \tif(!cardMap.containsValue(checkString)){\n\t\t \t\tSystem.out.println(checkString);\n\t\t \t}\n\t\t }\n\t }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<typeArray.length",
"j",
"typeArray.length",
"typeArray",
"typeArray.length",
"j++",
"j++",
"j",
"{\n\t\t for(int i=1 ;i < 14;i++){\n\t\t \tString checkString = typeArray[j]+\" \"+ i;\n\t\t \tif(!cardMap.containsValue(checkString)){\n\t\t \t\tSystem.out.println(checkString);\n\t\t \t}\n\t\t }\n\t }",
"{\n\t\t for(int i=1 ;i < 14;i++){\n\t\t \tString checkString = typeArray[j]+\" \"+ i;\n\t\t \tif(!cardMap.containsValue(checkString)){\n\t\t \t\tSystem.out.println(checkString);\n\t\t \t}\n\t\t }\n\t }",
"for(int i=1 ;i < 14;i++){\n\t\t \tString checkString = typeArray[j]+\" \"+ i;\n\t\t \tif(!cardMap.containsValue(checkString)){\n\t\t \t\tSystem.out.println(checkString);\n\t\t \t}\n\t\t }",
"int i=1 ;",
"int i=1 ;",
"i",
"1",
"i < 14",
"i",
"14",
"i++",
"i++",
"i",
"{\n\t\t \tString checkString = typeArray[j]+\" \"+ i;\n\t\t \tif(!cardMap.containsValue(checkString)){\n\t\t \t\tSystem.out.println(checkString);\n\t\t \t}\n\t\t }",
"{\n\t\t \tString checkString = typeArray[j]+\" \"+ i;\n\t\t \tif(!cardMap.containsValue(checkString)){\n\t\t \t\tSystem.out.println(checkString);\n\t\t \t}\n\t\t }",
"String checkString = typeArray[j]+\" \"+ i;",
"checkString",
"typeArray[j]+\" \"+ i",
"typeArray[j]+\" \"+ i",
"typeArray[j]",
"typeArray",
"j",
"\" \"",
"i",
"if(!cardMap.containsValue(checkString)){\n\t\t \t\tSystem.out.println(checkString);\n\t\t \t}",
"!cardMap.containsValue(checkString)",
"cardMap.containsValue(checkString)",
"cardMap.containsValue",
"cardMap",
"checkString",
"{\n\t\t \t\tSystem.out.println(checkString);\n\t\t \t}",
"System.out.println(checkString)",
"System.out.println",
"System.out",
"System",
"System.out",
"checkString",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\n\tpublic void run(){\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String inputData;\n Map<String,String> cardMap = new HashMap<String,String>();\n String[] typeArray = {\"S\",\"H\",\"C\",\"D\"};\n try {\n \tint cardNum = Integer.parseInt(reader.readLine());\n \tint cnt = 0;\n \t//??\\???\n\t while(true){\n\t\t\t\tinputData = reader.readLine();\n\t\t\t\tcardMap.put(String.valueOf(cnt), inputData);\n\t\t\t\tcnt++;\n\t if(cnt == cardNum){\n\t \tbreak;\n\t }\n\t }\n\n\t //??????\n\t for(int j=0;j<typeArray.length;j++){\n\t\t for(int i=1 ;i < 14;i++){\n\t\t \tString checkString = typeArray[j]+\" \"+ i;\n\t\t \tif(!cardMap.containsValue(checkString)){\n\t\t \t\tSystem.out.println(checkString);\n\t\t \t}\n\t\t }\n\t }\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\n\tpublic void run(){\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String inputData;\n Map<String,String> cardMap = new HashMap<String,String>();\n String[] typeArray = {\"S\",\"H\",\"C\",\"D\"};\n try {\n \tint cardNum = Integer.parseInt(reader.readLine());\n \tint cnt = 0;\n \t//??\\???\n\t while(true){\n\t\t\t\tinputData = reader.readLine();\n\t\t\t\tcardMap.put(String.valueOf(cnt), inputData);\n\t\t\t\tcnt++;\n\t if(cnt == cardNum){\n\t \tbreak;\n\t }\n\t }\n\n\t //??????\n\t for(int j=0;j<typeArray.length;j++){\n\t\t for(int i=1 ;i < 14;i++){\n\t\t \tString checkString = typeArray[j]+\" \"+ i;\n\t\t \tif(!cardMap.containsValue(checkString)){\n\t\t \t\tSystem.out.println(checkString);\n\t\t \t}\n\t\t }\n\t }\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
public class Main {
public static void main(String[] args) {
new Main().run();
}
public void run(){
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String inputData;
Map<String,String> cardMap = new HashMap<String,String>();
String[] typeArray = {"S","H","C","D"};
try {
int cardNum = Integer.parseInt(reader.readLine());
int cnt = 0;
//??\???
while(true){
inputData = reader.readLine();
cardMap.put(String.valueOf(cnt), inputData);
cnt++;
if(cnt == cardNum){
break;
}
}
//??????
for(int j=0;j<typeArray.length;j++){
for(int i=1 ;i < 14;i++){
String checkString = typeArray[j]+" "+ i;
if(!cardMap.containsValue(checkString)){
System.out.println(checkString);
}
}
}
} catch (IOException e) {
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
17,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
4,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
4,
13,
13,
13,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
18,
13,
13,
30,
9,
4,
18,
18,
13,
13,
4,
13,
13,
12,
13,
30,
29,
2,
2,
4,
18,
13,
13,
17,
2,
13,
17,
23,
13,
23,
13,
12,
13,
30,
29,
2,
2,
4,
18,
13,
2,
13,
17,
17,
2,
2,
13,
17,
17,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
0,
13,
8,
4,
18,
13,
18,
13,
13,
20,
0,
13,
20,
4,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
13,
2,
2,
13,
13,
17,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
29,
17,
41,
13,
13,
42,
2,
13,
13,
14,
40,
4,
13,
18,
13,
40,
13,
29,
17,
38,
5,
13,
30,
29,
17,
30,
4,
18,
13,
17,
42,
17,
30,
41,
13,
4,
18,
13,
14,
2,
13,
40,
17,
30,
4,
18,
13,
29,
17,
14,
40,
4,
13,
13,
30,
4,
18,
13,
29,
17,
12,
13,
30,
14,
2,
13,
40,
17,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
29,
40,
2,
2,
13,
17,
2,
13,
17,
23,
13,
12,
13,
30,
41,
13,
42,
2,
2,
0,
13,
4,
13,
40,
17,
4,
13,
13,
29,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
20,
13,
41,
13,
4,
13,
41,
13,
17,
42,
2,
2,
13,
13,
40,
4,
13,
13,
30,
0,
18,
13,
40,
13,
13,
0,
13,
4,
13,
29,
8,
2,
13,
13,
13,
4,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
41,
13,
17,
42,
2,
2,
0,
13,
4,
13,
40,
17,
40,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
42,
17,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
13,
17,
2,
13,
17,
30,
29,
8,
13,
40,
13,
13,
0,
13,
4,
13,
12,
13,
30,
41,
13,
17,
41,
13,
41,
13,
17,
42,
2,
2,
0,
13,
4,
13,
40,
17,
40,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
42,
17,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
13,
17,
2,
13,
17,
30,
29,
8,
13,
40,
13,
13,
0,
13,
4,
13,
12,
13,
30,
14,
2,
4,
18,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
664,
17
],
[
664,
18
],
[
18,
19
],
[
664,
20
],
[
20,
21
],
[
664,
22
],
[
22,
23
],
[
22,
24
],
[
664,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
664,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
664,
35
],
[
35,
36
],
[
35,
37
],
[
664,
38
],
[
38,
39
],
[
38,
40
],
[
664,
42
],
[
42,
43
],
[
42,
44
],
[
664,
45
],
[
45,
46
],
[
45,
47
],
[
664,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
50,
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
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
71,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
82,
85
],
[
71,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
50,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
91,
99
],
[
99,
100
],
[
100,
101
],
[
91,
102
],
[
103,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
103,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
664,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
123,
128
],
[
122,
129
],
[
129,
130
],
[
129,
131
],
[
118,
132
],
[
132,
133
],
[
118,
134
],
[
134,
135
],
[
664,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
141,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
142,
145
],
[
145,
146
],
[
145,
147
],
[
141,
148
],
[
141,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
136,
154
],
[
154,
155
],
[
664,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
158,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
166,
170
],
[
170,
171
],
[
170,
172
],
[
166,
173
],
[
158,
174
],
[
174,
175
],
[
174,
176
],
[
158,
177
],
[
177,
178
],
[
158,
179
],
[
179,
180
],
[
180,
181
],
[
158,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
185,
186
],
[
158,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
189,
193
],
[
156,
194
],
[
194,
195
],
[
664,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
199,
204
],
[
204,
205
],
[
198,
206
],
[
206,
207
],
[
206,
208
],
[
198,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
209,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
213,
221
],
[
221,
222
],
[
198,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
227,
228
],
[
223,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
230,
233
],
[
229,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
237,
238
],
[
237,
239
],
[
239,
240
],
[
240,
241
],
[
236,
242
],
[
242,
243
],
[
243,
244
],
[
243,
245
],
[
245,
246
],
[
242,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
247,
251
],
[
251,
252
],
[
242,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
253,
258
],
[
258,
259
],
[
259,
260
],
[
260,
261
],
[
258,
262
],
[
262,
263
],
[
664,
264
],
[
264,
265
],
[
264,
266
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
268,
270
],
[
270,
271
],
[
267,
272
],
[
272,
273
],
[
266,
274
],
[
274,
275
],
[
275,
276
],
[
275,
277
],
[
274,
278
],
[
278,
279
],
[
279,
280
],
[
279,
281
],
[
278,
282
],
[
282,
283
],
[
283,
284
],
[
283,
285
],
[
285,
286
],
[
286,
287
],
[
282,
288
],
[
288,
289
],
[
289,
290
],
[
289,
291
],
[
291,
292
],
[
292,
293
],
[
291,
294
],
[
278,
295
],
[
295,
296
],
[
296,
297
],
[
296,
298
],
[
295,
299
],
[
299,
300
],
[
300,
301
],
[
266,
302
],
[
302,
303
],
[
303,
304
],
[
303,
305
],
[
305,
306
],
[
664,
307
],
[
307,
308
],
[
307,
309
],
[
309,
310
],
[
310,
311
],
[
311,
312
],
[
312,
313
],
[
313,
314
],
[
313,
315
],
[
312,
316
],
[
316,
317
],
[
316,
318
],
[
307,
319
],
[
319,
320
],
[
664,
321
],
[
321,
322
],
[
321,
323
],
[
323,
324
],
[
324,
325
],
[
323,
326
],
[
326,
327
],
[
327,
328
],
[
328,
329
],
[
329,
330
],
[
329,
331
],
[
331,
332
],
[
328,
333
],
[
333,
334
],
[
327,
335
],
[
335,
336
],
[
335,
337
],
[
323,
338
],
[
338,
339
],
[
664,
340
],
[
340,
341
],
[
340,
342
],
[
342,
343
],
[
343,
344
],
[
344,
345
],
[
345,
346
],
[
344,
347
],
[
347,
348
],
[
664,
349
],
[
349,
350
],
[
349,
351
],
[
351,
352
],
[
352,
353
],
[
353,
354
],
[
664,
355
],
[
355,
356
],
[
355,
357
],
[
357,
358
],
[
358,
359
],
[
358,
360
],
[
360,
361
],
[
357,
362
],
[
362,
363
],
[
362,
364
],
[
357,
365
],
[
365,
366
],
[
366,
367
],
[
367,
368
],
[
367,
369
],
[
365,
370
],
[
370,
371
],
[
371,
372
],
[
372,
373
],
[
371,
374
],
[
370,
375
],
[
375,
376
],
[
375,
377
],
[
377,
378
],
[
357,
379
],
[
379,
380
],
[
380,
381
],
[
381,
382
],
[
664,
383
],
[
383,
384
],
[
383,
385
],
[
385,
386
],
[
386,
387
],
[
386,
388
],
[
385,
390
],
[
390,
391
],
[
390,
392
],
[
392,
393
],
[
385,
394
],
[
394,
395
],
[
394,
396
],
[
385,
397
],
[
397,
398
],
[
398,
399
],
[
399,
400
],
[
399,
401
],
[
398,
402
],
[
402,
403
],
[
403,
404
],
[
403,
405
],
[
397,
406
],
[
406,
407
],
[
407,
408
],
[
408,
409
],
[
408,
410
],
[
410,
411
],
[
407,
412
],
[
406,
413
],
[
413,
414
],
[
413,
415
],
[
415,
416
],
[
385,
417
],
[
417,
418
],
[
418,
419
],
[
419,
420
],
[
419,
421
],
[
418,
422
],
[
418,
423
],
[
423,
424
],
[
424,
425
],
[
423,
426
],
[
423,
427
],
[
383,
428
],
[
428,
429
],
[
664,
430
],
[
430,
431
],
[
430,
432
],
[
432,
433
],
[
433,
434
],
[
433,
435
],
[
432,
437
],
[
437,
438
],
[
438,
439
],
[
439,
440
],
[
439,
441
],
[
437,
442
],
[
442,
443
],
[
442,
444
],
[
437,
445
],
[
445,
446
],
[
446,
447
],
[
437,
448
],
[
448,
449
],
[
449,
450
],
[
450,
451
],
[
450,
452
],
[
449,
453
],
[
453,
454
],
[
453,
455
],
[
432,
456
],
[
456,
457
],
[
430,
458
],
[
458,
459
],
[
430,
460
],
[
460,
461
],
[
664,
462
],
[
462,
463
],
[
462,
464
],
[
464,
465
],
[
465,
466
],
[
465,
467
],
[
464,
469
],
[
469,
470
],
[
470,
471
],
[
471,
472
],
[
471,
473
],
[
469,
474
],
[
474,
475
],
[
474,
476
],
[
469,
477
],
[
477,
478
],
[
478,
479
],
[
469,
480
],
[
480,
481
],
[
481,
482
],
[
482,
483
],
[
482,
484
],
[
481,
485
],
[
485,
486
],
[
464,
487
],
[
487,
488
],
[
462,
489
],
[
489,
490
],
[
664,
491
],
[
491,
492
],
[
491,
493
],
[
493,
494
],
[
494,
495
],
[
494,
496
],
[
493,
497
],
[
497,
498
],
[
493,
499
],
[
499,
500
],
[
499,
501
],
[
493,
502
],
[
502,
503
],
[
503,
504
],
[
504,
505
],
[
505,
506
],
[
505,
507
],
[
507,
508
],
[
504,
509
],
[
509,
510
],
[
503,
511
],
[
511,
512
],
[
512,
513
],
[
513,
514
],
[
514,
515
],
[
514,
516
],
[
513,
517
],
[
517,
518
],
[
517,
519
],
[
512,
520
],
[
520,
521
],
[
520,
522
],
[
493,
523
],
[
523,
524
],
[
524,
525
],
[
524,
526
],
[
523,
527
],
[
527,
528
],
[
528,
529
],
[
528,
530
],
[
527,
531
],
[
531,
532
],
[
531,
533
],
[
533,
534
],
[
493,
535
],
[
535,
536
],
[
535,
537
],
[
537,
538
],
[
538,
539
],
[
539,
540
],
[
540,
541
],
[
540,
542
],
[
539,
543
],
[
543,
544
],
[
543,
545
],
[
538,
546
],
[
546,
547
],
[
547,
548
],
[
547,
549
],
[
549,
550
],
[
550,
551
],
[
550,
552
],
[
549,
553
],
[
553,
554
],
[
553,
555
],
[
538,
556
],
[
556,
557
],
[
557,
558
],
[
558,
559
],
[
558,
560
],
[
560,
561
],
[
558,
562
],
[
537,
563
],
[
563,
564
],
[
563,
565
],
[
565,
566
],
[
664,
567
],
[
567,
568
],
[
567,
569
],
[
569,
570
],
[
570,
571
],
[
570,
572
],
[
569,
573
],
[
573,
574
],
[
569,
575
],
[
575,
576
],
[
575,
577
],
[
569,
578
],
[
578,
579
],
[
579,
580
],
[
580,
581
],
[
581,
582
],
[
581,
583
],
[
583,
584
],
[
580,
585
],
[
585,
586
],
[
579,
587
],
[
587,
588
],
[
588,
589
],
[
589,
590
],
[
590,
591
],
[
590,
592
],
[
589,
593
],
[
593,
594
],
[
593,
595
],
[
588,
596
],
[
596,
597
],
[
596,
598
],
[
569,
599
],
[
599,
600
],
[
600,
601
],
[
600,
602
],
[
599,
603
],
[
603,
604
],
[
604,
605
],
[
604,
606
],
[
603,
607
],
[
607,
608
],
[
607,
609
],
[
609,
610
],
[
569,
611
],
[
611,
612
],
[
611,
613
],
[
613,
614
],
[
614,
615
],
[
615,
616
],
[
616,
617
],
[
616,
618
],
[
615,
619
],
[
619,
620
],
[
619,
621
],
[
614,
622
],
[
622,
623
],
[
623,
624
],
[
623,
625
],
[
625,
626
],
[
626,
627
],
[
626,
628
],
[
625,
629
],
[
629,
630
],
[
629,
631
],
[
614,
632
],
[
632,
633
],
[
633,
634
],
[
634,
635
],
[
634,
636
],
[
636,
637
],
[
634,
638
],
[
613,
639
],
[
639,
640
],
[
639,
641
],
[
641,
642
],
[
664,
643
],
[
643,
644
],
[
643,
645
],
[
645,
646
],
[
646,
647
],
[
647,
648
],
[
648,
649
],
[
649,
650
],
[
647,
651
],
[
646,
652
],
[
652,
653
],
[
653,
654
],
[
654,
655
],
[
654,
656
],
[
652,
657
],
[
657,
658
],
[
658,
659
],
[
657,
660
],
[
643,
661
],
[
661,
662
],
[
0,
663
],
[
663,
664
],
[
663,
665
]
] | [
"import java.io.ByteArrayInputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.*;\n\npublic class Main {\n\n static InputStream is;\n static PrintWriter out;\n static String INPUT = \"\";\n\n final int INF = Integer.MAX_VALUE;\n final int MIN = Integer.MIN_VALUE;\n\n static void solve() {\n int n = ni();\n boolean[] checks = new boolean[52];\n for (int i = 0; i < n; i++) {\n String mark = ns();\n int num = ni();\n int in = serialize(mark, num);\n checks[in] = true;\n }\n for (int i = 0; i < 52; i++) {\n if (checks[i]) {\n continue;\n }\n System.out.println(unserialize(i));\n }\n }\n\n static String marks = \"SHCD\";\n public static int serialize(String m, int n) {\n return marks.indexOf(m) * 13 + (n - 1);\n }\n\n public static String unserialize(int i) {\n return (marks.charAt(i / 13)) + \" \" + (i % 13 + 1);\n }\n\n public static void main(String[] args) throws Exception {\n long S = System.currentTimeMillis();\n is = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());\n out = new PrintWriter(System.out);\n\n solve();\n out.flush();\n long G = System.currentTimeMillis();\n tr(G - S + \"ms\");\n }\n\n private static boolean eof() {\n if (lenbuf == -1) return true;\n int lptr = ptrbuf;\n while (lptr < lenbuf) if (!isSpaceChar(inbuf[lptr++])) return false;\n\n try {\n is.mark(1000);\n while (true) {\n int b = is.read();\n if (b == -1) {\n is.reset();\n return true;\n } else if (!isSpaceChar(b)) {\n is.reset();\n return false;\n }\n }\n } catch (IOException e) {\n return true;\n }\n }\n\n private static byte[] inbuf = new byte[1024];\n static int lenbuf = 0, ptrbuf = 0;\n\n private static int readByte() {\n if (lenbuf == -1) throw new InputMismatchException();\n if (ptrbuf >= lenbuf) {\n ptrbuf = 0;\n try {\n lenbuf = is.read(inbuf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (lenbuf <= 0) return -1;\n }\n return inbuf[ptrbuf++];\n }\n\n private static boolean isSpaceChar(int c) {\n return !(c >= 33 && c <= 126);\n }\n\n //\tprivate static boolean isSpaceChar(int c) { return !(c >= 32 && c <= 126); }\n private static int skip() {\n int b;\n while ((b = readByte()) != -1 && isSpaceChar(b)) ;\n return b;\n }\n\n private static double nd() {\n return Double.parseDouble(ns());\n }\n\n private static char nc() {\n return (char) skip();\n }\n\n private static String ns() {\n int b = skip();\n StringBuilder sb = new StringBuilder();\n while (!(isSpaceChar(b))) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n private static char[] ns(int n) {\n char[] buf = new char[n];\n int b = skip(), p = 0;\n while (p < n && !(isSpaceChar(b))) {\n buf[p++] = (char) b;\n b = readByte();\n }\n return n == p ? buf : Arrays.copyOf(buf, p);\n }\n\n private static char[][] nm(int n, int m) {\n char[][] map = new char[n][];\n for (int i = 0; i < n; i++) map[i] = ns(m);\n return map;\n }\n\n private static int[] na(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = ni();\n return a;\n }\n\n private static int ni() {\n int num = 0, b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }\n\n private static long nl() {\n long num = 0;\n int b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }\n\n private static void tr(Object... o) {\n if (INPUT.length() != 0) System.out.println(Arrays.deepToString(o));\n }\n}",
"import java.io.ByteArrayInputStream;",
"ByteArrayInputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n static InputStream is;\n static PrintWriter out;\n static String INPUT = \"\";\n\n final int INF = Integer.MAX_VALUE;\n final int MIN = Integer.MIN_VALUE;\n\n static void solve() {\n int n = ni();\n boolean[] checks = new boolean[52];\n for (int i = 0; i < n; i++) {\n String mark = ns();\n int num = ni();\n int in = serialize(mark, num);\n checks[in] = true;\n }\n for (int i = 0; i < 52; i++) {\n if (checks[i]) {\n continue;\n }\n System.out.println(unserialize(i));\n }\n }\n\n static String marks = \"SHCD\";\n public static int serialize(String m, int n) {\n return marks.indexOf(m) * 13 + (n - 1);\n }\n\n public static String unserialize(int i) {\n return (marks.charAt(i / 13)) + \" \" + (i % 13 + 1);\n }\n\n public static void main(String[] args) throws Exception {\n long S = System.currentTimeMillis();\n is = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());\n out = new PrintWriter(System.out);\n\n solve();\n out.flush();\n long G = System.currentTimeMillis();\n tr(G - S + \"ms\");\n }\n\n private static boolean eof() {\n if (lenbuf == -1) return true;\n int lptr = ptrbuf;\n while (lptr < lenbuf) if (!isSpaceChar(inbuf[lptr++])) return false;\n\n try {\n is.mark(1000);\n while (true) {\n int b = is.read();\n if (b == -1) {\n is.reset();\n return true;\n } else if (!isSpaceChar(b)) {\n is.reset();\n return false;\n }\n }\n } catch (IOException e) {\n return true;\n }\n }\n\n private static byte[] inbuf = new byte[1024];\n static int lenbuf = 0, ptrbuf = 0;\n\n private static int readByte() {\n if (lenbuf == -1) throw new InputMismatchException();\n if (ptrbuf >= lenbuf) {\n ptrbuf = 0;\n try {\n lenbuf = is.read(inbuf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (lenbuf <= 0) return -1;\n }\n return inbuf[ptrbuf++];\n }\n\n private static boolean isSpaceChar(int c) {\n return !(c >= 33 && c <= 126);\n }\n\n //\tprivate static boolean isSpaceChar(int c) { return !(c >= 32 && c <= 126); }\n private static int skip() {\n int b;\n while ((b = readByte()) != -1 && isSpaceChar(b)) ;\n return b;\n }\n\n private static double nd() {\n return Double.parseDouble(ns());\n }\n\n private static char nc() {\n return (char) skip();\n }\n\n private static String ns() {\n int b = skip();\n StringBuilder sb = new StringBuilder();\n while (!(isSpaceChar(b))) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n private static char[] ns(int n) {\n char[] buf = new char[n];\n int b = skip(), p = 0;\n while (p < n && !(isSpaceChar(b))) {\n buf[p++] = (char) b;\n b = readByte();\n }\n return n == p ? buf : Arrays.copyOf(buf, p);\n }\n\n private static char[][] nm(int n, int m) {\n char[][] map = new char[n][];\n for (int i = 0; i < n; i++) map[i] = ns(m);\n return map;\n }\n\n private static int[] na(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = ni();\n return a;\n }\n\n private static int ni() {\n int num = 0, b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }\n\n private static long nl() {\n long num = 0;\n int b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }\n\n private static void tr(Object... o) {\n if (INPUT.length() != 0) System.out.println(Arrays.deepToString(o));\n }\n}",
"Main",
"static InputStream is;",
"is",
"static PrintWriter out;",
"out",
"static String INPUT = \"\";",
"INPUT",
"\"\"",
"final int INF = Integer.MAX_VALUE;",
"INF",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"final int MIN = Integer.MIN_VALUE;",
"MIN",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"static String marks = \"SHCD\";",
"marks",
"\"SHCD\"",
"private static byte[] inbuf = new byte[1024];",
"inbuf",
"new byte[1024]",
"1024",
"static int lenbuf = 0",
"lenbuf",
"0",
"ptrbuf = 0;",
"ptrbuf",
"0",
"static void solve() {\n int n = ni();\n boolean[] checks = new boolean[52];\n for (int i = 0; i < n; i++) {\n String mark = ns();\n int num = ni();\n int in = serialize(mark, num);\n checks[in] = true;\n }\n for (int i = 0; i < 52; i++) {\n if (checks[i]) {\n continue;\n }\n System.out.println(unserialize(i));\n }\n }",
"solve",
"{\n int n = ni();\n boolean[] checks = new boolean[52];\n for (int i = 0; i < n; i++) {\n String mark = ns();\n int num = ni();\n int in = serialize(mark, num);\n checks[in] = true;\n }\n for (int i = 0; i < 52; i++) {\n if (checks[i]) {\n continue;\n }\n System.out.println(unserialize(i));\n }\n }",
"int n = ni();",
"n",
"ni()",
"ni",
"boolean[] checks = new boolean[52];",
"checks",
"new boolean[52]",
"52",
"for (int i = 0; i < n; i++) {\n String mark = ns();\n int num = ni();\n int in = serialize(mark, num);\n checks[in] = true;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String mark = ns();\n int num = ni();\n int in = serialize(mark, num);\n checks[in] = true;\n }",
"{\n String mark = ns();\n int num = ni();\n int in = serialize(mark, num);\n checks[in] = true;\n }",
"String mark = ns();",
"mark",
"ns()",
"ns",
"int num = ni();",
"num",
"ni()",
"ni",
"int in = serialize(mark, num);",
"in",
"serialize(mark, num)",
"serialize",
"mark",
"num",
"checks[in] = true",
"checks[in]",
"checks",
"in",
"true",
"for (int i = 0; i < 52; i++) {\n if (checks[i]) {\n continue;\n }\n System.out.println(unserialize(i));\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 52",
"i",
"52",
"i++",
"i++",
"i",
"{\n if (checks[i]) {\n continue;\n }\n System.out.println(unserialize(i));\n }",
"{\n if (checks[i]) {\n continue;\n }\n System.out.println(unserialize(i));\n }",
"if (checks[i]) {\n continue;\n }",
"checks[i]",
"checks",
"i",
"{\n continue;\n }",
"continue;",
"System.out.println(unserialize(i))",
"System.out.println",
"System.out",
"System",
"System.out",
"unserialize(i)",
"unserialize",
"i",
"public static int serialize(String m, int n) {\n return marks.indexOf(m) * 13 + (n - 1);\n }",
"serialize",
"{\n return marks.indexOf(m) * 13 + (n - 1);\n }",
"return marks.indexOf(m) * 13 + (n - 1);",
"marks.indexOf(m) * 13 + (n - 1)",
"marks.indexOf(m) * 13",
"marks.indexOf(m)",
"marks.indexOf",
"marks",
"m",
"13",
"(n - 1)",
"n",
"1",
"String m",
"m",
"int n",
"n",
"public static String unserialize(int i) {\n return (marks.charAt(i / 13)) + \" \" + (i % 13 + 1);\n }",
"unserialize",
"{\n return (marks.charAt(i / 13)) + \" \" + (i % 13 + 1);\n }",
"return (marks.charAt(i / 13)) + \" \" + (i % 13 + 1);",
"(marks.charAt(i / 13)) + \" \" + (i % 13 + 1)",
"(marks.charAt(i / 13)) + \" \" + (i % 13 + 1)",
"(marks.charAt(i / 13))",
"marks.charAt",
"marks",
"i / 13",
"i",
"13",
"\" \"",
"(i % 13 + 1)",
"i % 13",
"i",
"13",
"1",
"int i",
"i",
"public static void main(String[] args) throws Exception {\n long S = System.currentTimeMillis();\n is = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());\n out = new PrintWriter(System.out);\n\n solve();\n out.flush();\n long G = System.currentTimeMillis();\n tr(G - S + \"ms\");\n }",
"main",
"{\n long S = System.currentTimeMillis();\n is = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());\n out = new PrintWriter(System.out);\n\n solve();\n out.flush();\n long G = System.currentTimeMillis();\n tr(G - S + \"ms\");\n }",
"long S = System.currentTimeMillis();",
"S",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"is = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes())",
"is",
"INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes())",
"INPUT.isEmpty()",
"INPUT.isEmpty",
"INPUT",
"System.in",
"System",
"System.in",
"new ByteArrayInputStream(INPUT.getBytes())",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"solve()",
"solve",
"out.flush()",
"out.flush",
"out",
"long G = System.currentTimeMillis();",
"G",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"tr(G - S + \"ms\")",
"tr",
"G - S + \"ms\"",
"G - S",
"G",
"S",
"\"ms\"",
"String[] args",
"args",
"private static boolean eof() {\n if (lenbuf == -1) return true;\n int lptr = ptrbuf;\n while (lptr < lenbuf) if (!isSpaceChar(inbuf[lptr++])) return false;\n\n try {\n is.mark(1000);\n while (true) {\n int b = is.read();\n if (b == -1) {\n is.reset();\n return true;\n } else if (!isSpaceChar(b)) {\n is.reset();\n return false;\n }\n }\n } catch (IOException e) {\n return true;\n }\n }",
"eof",
"{\n if (lenbuf == -1) return true;\n int lptr = ptrbuf;\n while (lptr < lenbuf) if (!isSpaceChar(inbuf[lptr++])) return false;\n\n try {\n is.mark(1000);\n while (true) {\n int b = is.read();\n if (b == -1) {\n is.reset();\n return true;\n } else if (!isSpaceChar(b)) {\n is.reset();\n return false;\n }\n }\n } catch (IOException e) {\n return true;\n }\n }",
"if (lenbuf == -1) return true;",
"lenbuf == -1",
"lenbuf",
"-1",
"1",
"return true;",
"true",
"int lptr = ptrbuf;",
"lptr",
"ptrbuf",
"while (lptr < lenbuf) if (!isSpaceChar(inbuf[lptr++])) return false;",
"lptr < lenbuf",
"lptr",
"lenbuf",
"if (!isSpaceChar(inbuf[lptr++])) return false;",
"!isSpaceChar(inbuf[lptr++])",
"isSpaceChar(inbuf[lptr++])",
"isSpaceChar",
"inbuf[lptr++]",
"inbuf",
"lptr++",
"lptr",
"return false;",
"false",
"try {\n is.mark(1000);\n while (true) {\n int b = is.read();\n if (b == -1) {\n is.reset();\n return true;\n } else if (!isSpaceChar(b)) {\n is.reset();\n return false;\n }\n }\n } catch (IOException e) {\n return true;\n }",
"catch (IOException e) {\n return true;\n }",
"IOException e",
"{\n return true;\n }",
"return true;",
"true",
"{\n is.mark(1000);\n while (true) {\n int b = is.read();\n if (b == -1) {\n is.reset();\n return true;\n } else if (!isSpaceChar(b)) {\n is.reset();\n return false;\n }\n }\n }",
"is.mark(1000)",
"is.mark",
"is",
"1000",
"while (true) {\n int b = is.read();\n if (b == -1) {\n is.reset();\n return true;\n } else if (!isSpaceChar(b)) {\n is.reset();\n return false;\n }\n }",
"true",
"{\n int b = is.read();\n if (b == -1) {\n is.reset();\n return true;\n } else if (!isSpaceChar(b)) {\n is.reset();\n return false;\n }\n }",
"int b = is.read();",
"b",
"is.read()",
"is.read",
"is",
"if (b == -1) {\n is.reset();\n return true;\n } else if (!isSpaceChar(b)) {\n is.reset();\n return false;\n }",
"b == -1",
"b",
"-1",
"1",
"{\n is.reset();\n return true;\n }",
"is.reset()",
"is.reset",
"is",
"return true;",
"true",
"if (!isSpaceChar(b)) {\n is.reset();\n return false;\n }",
"!isSpaceChar(b)",
"isSpaceChar(b)",
"isSpaceChar",
"b",
"{\n is.reset();\n return false;\n }",
"is.reset()",
"is.reset",
"is",
"return false;",
"false",
"private static int readByte() {\n if (lenbuf == -1) throw new InputMismatchException();\n if (ptrbuf >= lenbuf) {\n ptrbuf = 0;\n try {\n lenbuf = is.read(inbuf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (lenbuf <= 0) return -1;\n }\n return inbuf[ptrbuf++];\n }",
"readByte",
"{\n if (lenbuf == -1) throw new InputMismatchException();\n if (ptrbuf >= lenbuf) {\n ptrbuf = 0;\n try {\n lenbuf = is.read(inbuf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (lenbuf <= 0) return -1;\n }\n return inbuf[ptrbuf++];\n }",
"if (lenbuf == -1) throw new InputMismatchException();",
"lenbuf == -1",
"lenbuf",
"-1",
"1",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (ptrbuf >= lenbuf) {\n ptrbuf = 0;\n try {\n lenbuf = is.read(inbuf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (lenbuf <= 0) return -1;\n }",
"ptrbuf >= lenbuf",
"ptrbuf",
"lenbuf",
"{\n ptrbuf = 0;\n try {\n lenbuf = is.read(inbuf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (lenbuf <= 0) return -1;\n }",
"ptrbuf = 0",
"ptrbuf",
"0",
"try {\n lenbuf = is.read(inbuf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }",
"catch (IOException e) {\n throw new InputMismatchException();\n }",
"IOException e",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n lenbuf = is.read(inbuf);\n }",
"lenbuf = is.read(inbuf)",
"lenbuf",
"is.read(inbuf)",
"is.read",
"is",
"inbuf",
"if (lenbuf <= 0) return -1;",
"lenbuf <= 0",
"lenbuf",
"0",
"return -1;",
"-1",
"1",
"return inbuf[ptrbuf++];",
"inbuf[ptrbuf++]",
"inbuf",
"ptrbuf++",
"ptrbuf",
"private static boolean isSpaceChar(int c) {\n return !(c >= 33 && c <= 126);\n }",
"isSpaceChar",
"{\n return !(c >= 33 && c <= 126);\n }",
"return !(c >= 33 && c <= 126);",
"!(c >= 33 && c <= 126)",
"(c >= 33 && c <= 126)",
"c >= 33",
"c",
"33",
"c <= 126",
"c",
"126",
"int c",
"c",
"//\tprivate static boolean isSpaceChar(int c) { return !(c >= 32 && c <= 126); }\n private static int skip() {\n int b;\n while ((b = readByte()) != -1 && isSpaceChar(b)) ;\n return b;\n }",
"skip",
"{\n int b;\n while ((b = readByte()) != -1 && isSpaceChar(b)) ;\n return b;\n }",
"int b;",
"b",
"while ((b = readByte()) != -1 && isSpaceChar(b)) ;",
"(b = readByte()) != -1 && isSpaceChar(b)",
"(b = readByte()) != -1",
"(b = readByte())",
"b",
"readByte()",
"readByte",
"-1",
"1",
"isSpaceChar(b)",
"isSpaceChar",
"b",
"return b;",
"b",
"private static double nd() {\n return Double.parseDouble(ns());\n }",
"nd",
"{\n return Double.parseDouble(ns());\n }",
"return Double.parseDouble(ns());",
"Double.parseDouble(ns())",
"Double.parseDouble",
"Double",
"ns()",
"ns",
"private static char nc() {\n return (char) skip();\n }",
"nc",
"{\n return (char) skip();\n }",
"return (char) skip();",
"(char) skip()",
"skip",
"private static String ns() {\n int b = skip();\n StringBuilder sb = new StringBuilder();\n while (!(isSpaceChar(b))) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }",
"ns",
"{\n int b = skip();\n StringBuilder sb = new StringBuilder();\n while (!(isSpaceChar(b))) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }",
"int b = skip();",
"b",
"skip()",
"skip",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"while (!(isSpaceChar(b))) {\n sb.appendCodePoint(b);\n b = readByte();\n }",
"!(isSpaceChar(b))",
"(isSpaceChar(b))",
"isSpaceChar",
"b",
"{\n sb.appendCodePoint(b);\n b = readByte();\n }",
"sb.appendCodePoint(b)",
"sb.appendCodePoint",
"sb",
"b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"private static char[] ns(int n) {\n char[] buf = new char[n];\n int b = skip(), p = 0;\n while (p < n && !(isSpaceChar(b))) {\n buf[p++] = (char) b;\n b = readByte();\n }\n return n == p ? buf : Arrays.copyOf(buf, p);\n }",
"ns",
"{\n char[] buf = new char[n];\n int b = skip(), p = 0;\n while (p < n && !(isSpaceChar(b))) {\n buf[p++] = (char) b;\n b = readByte();\n }\n return n == p ? buf : Arrays.copyOf(buf, p);\n }",
"char[] buf = new char[n];",
"buf",
"new char[n]",
"n",
"int b = skip()",
"b",
"skip()",
"skip",
"p = 0;",
"p",
"0",
"while (p < n && !(isSpaceChar(b))) {\n buf[p++] = (char) b;\n b = readByte();\n }",
"p < n && !(isSpaceChar(b))",
"p < n",
"p",
"n",
"!(isSpaceChar(b))",
"(isSpaceChar(b))",
"isSpaceChar",
"b",
"{\n buf[p++] = (char) b;\n b = readByte();\n }",
"buf[p++] = (char) b",
"buf[p++]",
"buf",
"p++",
"p",
"(char) b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return n == p ? buf : Arrays.copyOf(buf, p);",
"n == p ? buf : Arrays.copyOf(buf, p)",
"n == p",
"n",
"p",
"buf",
"Arrays.copyOf(buf, p)",
"Arrays.copyOf",
"Arrays",
"buf",
"p",
"int n",
"n",
"private static char[][] nm(int n, int m) {\n char[][] map = new char[n][];\n for (int i = 0; i < n; i++) map[i] = ns(m);\n return map;\n }",
"nm",
"{\n char[][] map = new char[n][];\n for (int i = 0; i < n; i++) map[i] = ns(m);\n return map;\n }",
"char[][] map = new char[n][];",
"map",
"new char[n][]",
"n",
"for (int i = 0; i < n; i++) map[i] = ns(m);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"map[i] = ns(m);",
"map[i] = ns(m)",
"map[i]",
"map",
"i",
"ns(m)",
"ns",
"m",
"return map;",
"map",
"int n",
"n",
"int m",
"m",
"private static int[] na(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = ni();\n return a;\n }",
"na",
"{\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = ni();\n return a;\n }",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) a[i] = ni();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = ni();",
"a[i] = ni()",
"a[i]",
"a",
"i",
"ni()",
"ni",
"return a;",
"a",
"int n",
"n",
"private static int ni() {\n int num = 0, b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }",
"ni",
"{\n int num = 0, b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }",
"int num = 0",
"num",
"0",
"b;",
"b",
"boolean minus = false;",
"minus",
"false",
"while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;",
"(b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')",
"(b = readByte()) != -1",
"(b = readByte())",
"b",
"readByte()",
"readByte",
"-1",
"1",
"!((b >= '0' && b <= '9') || b == '-')",
"((b >= '0' && b <= '9') || b == '-')",
"(b >= '0' && b <= '9')",
"b >= '0'",
"b",
"'0'",
"b <= '9'",
"b",
"'9'",
"b == '-'",
"b",
"'-'",
"if (b == '-') {\n minus = true;\n b = readByte();\n }",
"b == '-'",
"b",
"'-'",
"{\n minus = true;\n b = readByte();\n }",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"while (true) {\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }",
"true",
"{\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }",
"if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }",
"b >= '0' && b <= '9'",
"b >= '0'",
"b",
"'0'",
"b <= '9'",
"b",
"'9'",
"{\n num = num * 10 + (b - '0');\n }",
"num = num * 10 + (b - '0')",
"num",
"num * 10 + (b - '0')",
"num * 10",
"num",
"10",
"(b - '0')",
"b",
"'0'",
"{\n return minus ? -num : num;\n }",
"return minus ? -num : num;",
"minus ? -num : num",
"minus",
"-num",
"num",
"num",
"b = readByte()",
"b",
"readByte()",
"readByte",
"private static long nl() {\n long num = 0;\n int b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }",
"nl",
"{\n long num = 0;\n int b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }",
"long num = 0;",
"num",
"0",
"int b;",
"b",
"boolean minus = false;",
"minus",
"false",
"while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;",
"(b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')",
"(b = readByte()) != -1",
"(b = readByte())",
"b",
"readByte()",
"readByte",
"-1",
"1",
"!((b >= '0' && b <= '9') || b == '-')",
"((b >= '0' && b <= '9') || b == '-')",
"(b >= '0' && b <= '9')",
"b >= '0'",
"b",
"'0'",
"b <= '9'",
"b",
"'9'",
"b == '-'",
"b",
"'-'",
"if (b == '-') {\n minus = true;\n b = readByte();\n }",
"b == '-'",
"b",
"'-'",
"{\n minus = true;\n b = readByte();\n }",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"while (true) {\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }",
"true",
"{\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }",
"if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }",
"b >= '0' && b <= '9'",
"b >= '0'",
"b",
"'0'",
"b <= '9'",
"b",
"'9'",
"{\n num = num * 10 + (b - '0');\n }",
"num = num * 10 + (b - '0')",
"num",
"num * 10 + (b - '0')",
"num * 10",
"num",
"10",
"(b - '0')",
"b",
"'0'",
"{\n return minus ? -num : num;\n }",
"return minus ? -num : num;",
"minus ? -num : num",
"minus",
"-num",
"num",
"num",
"b = readByte()",
"b",
"readByte()",
"readByte",
"private static void tr(Object... o) {\n if (INPUT.length() != 0) System.out.println(Arrays.deepToString(o));\n }",
"tr",
"{\n if (INPUT.length() != 0) System.out.println(Arrays.deepToString(o));\n }",
"if (INPUT.length() != 0) System.out.println(Arrays.deepToString(o));",
"INPUT.length() != 0",
"INPUT.length()",
"INPUT.length",
"INPUT",
"0",
"System.out.println(Arrays.deepToString(o))",
"System.out.println",
"System.out",
"System",
"System.out",
"Arrays.deepToString(o)",
"Arrays.deepToString",
"Arrays",
"o",
"Object... o",
"o",
"public class Main {\n\n static InputStream is;\n static PrintWriter out;\n static String INPUT = \"\";\n\n final int INF = Integer.MAX_VALUE;\n final int MIN = Integer.MIN_VALUE;\n\n static void solve() {\n int n = ni();\n boolean[] checks = new boolean[52];\n for (int i = 0; i < n; i++) {\n String mark = ns();\n int num = ni();\n int in = serialize(mark, num);\n checks[in] = true;\n }\n for (int i = 0; i < 52; i++) {\n if (checks[i]) {\n continue;\n }\n System.out.println(unserialize(i));\n }\n }\n\n static String marks = \"SHCD\";\n public static int serialize(String m, int n) {\n return marks.indexOf(m) * 13 + (n - 1);\n }\n\n public static String unserialize(int i) {\n return (marks.charAt(i / 13)) + \" \" + (i % 13 + 1);\n }\n\n public static void main(String[] args) throws Exception {\n long S = System.currentTimeMillis();\n is = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());\n out = new PrintWriter(System.out);\n\n solve();\n out.flush();\n long G = System.currentTimeMillis();\n tr(G - S + \"ms\");\n }\n\n private static boolean eof() {\n if (lenbuf == -1) return true;\n int lptr = ptrbuf;\n while (lptr < lenbuf) if (!isSpaceChar(inbuf[lptr++])) return false;\n\n try {\n is.mark(1000);\n while (true) {\n int b = is.read();\n if (b == -1) {\n is.reset();\n return true;\n } else if (!isSpaceChar(b)) {\n is.reset();\n return false;\n }\n }\n } catch (IOException e) {\n return true;\n }\n }\n\n private static byte[] inbuf = new byte[1024];\n static int lenbuf = 0, ptrbuf = 0;\n\n private static int readByte() {\n if (lenbuf == -1) throw new InputMismatchException();\n if (ptrbuf >= lenbuf) {\n ptrbuf = 0;\n try {\n lenbuf = is.read(inbuf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (lenbuf <= 0) return -1;\n }\n return inbuf[ptrbuf++];\n }\n\n private static boolean isSpaceChar(int c) {\n return !(c >= 33 && c <= 126);\n }\n\n //\tprivate static boolean isSpaceChar(int c) { return !(c >= 32 && c <= 126); }\n private static int skip() {\n int b;\n while ((b = readByte()) != -1 && isSpaceChar(b)) ;\n return b;\n }\n\n private static double nd() {\n return Double.parseDouble(ns());\n }\n\n private static char nc() {\n return (char) skip();\n }\n\n private static String ns() {\n int b = skip();\n StringBuilder sb = new StringBuilder();\n while (!(isSpaceChar(b))) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n private static char[] ns(int n) {\n char[] buf = new char[n];\n int b = skip(), p = 0;\n while (p < n && !(isSpaceChar(b))) {\n buf[p++] = (char) b;\n b = readByte();\n }\n return n == p ? buf : Arrays.copyOf(buf, p);\n }\n\n private static char[][] nm(int n, int m) {\n char[][] map = new char[n][];\n for (int i = 0; i < n; i++) map[i] = ns(m);\n return map;\n }\n\n private static int[] na(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = ni();\n return a;\n }\n\n private static int ni() {\n int num = 0, b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }\n\n private static long nl() {\n long num = 0;\n int b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }\n\n private static void tr(Object... o) {\n if (INPUT.length() != 0) System.out.println(Arrays.deepToString(o));\n }\n}",
"public class Main {\n\n static InputStream is;\n static PrintWriter out;\n static String INPUT = \"\";\n\n final int INF = Integer.MAX_VALUE;\n final int MIN = Integer.MIN_VALUE;\n\n static void solve() {\n int n = ni();\n boolean[] checks = new boolean[52];\n for (int i = 0; i < n; i++) {\n String mark = ns();\n int num = ni();\n int in = serialize(mark, num);\n checks[in] = true;\n }\n for (int i = 0; i < 52; i++) {\n if (checks[i]) {\n continue;\n }\n System.out.println(unserialize(i));\n }\n }\n\n static String marks = \"SHCD\";\n public static int serialize(String m, int n) {\n return marks.indexOf(m) * 13 + (n - 1);\n }\n\n public static String unserialize(int i) {\n return (marks.charAt(i / 13)) + \" \" + (i % 13 + 1);\n }\n\n public static void main(String[] args) throws Exception {\n long S = System.currentTimeMillis();\n is = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());\n out = new PrintWriter(System.out);\n\n solve();\n out.flush();\n long G = System.currentTimeMillis();\n tr(G - S + \"ms\");\n }\n\n private static boolean eof() {\n if (lenbuf == -1) return true;\n int lptr = ptrbuf;\n while (lptr < lenbuf) if (!isSpaceChar(inbuf[lptr++])) return false;\n\n try {\n is.mark(1000);\n while (true) {\n int b = is.read();\n if (b == -1) {\n is.reset();\n return true;\n } else if (!isSpaceChar(b)) {\n is.reset();\n return false;\n }\n }\n } catch (IOException e) {\n return true;\n }\n }\n\n private static byte[] inbuf = new byte[1024];\n static int lenbuf = 0, ptrbuf = 0;\n\n private static int readByte() {\n if (lenbuf == -1) throw new InputMismatchException();\n if (ptrbuf >= lenbuf) {\n ptrbuf = 0;\n try {\n lenbuf = is.read(inbuf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (lenbuf <= 0) return -1;\n }\n return inbuf[ptrbuf++];\n }\n\n private static boolean isSpaceChar(int c) {\n return !(c >= 33 && c <= 126);\n }\n\n //\tprivate static boolean isSpaceChar(int c) { return !(c >= 32 && c <= 126); }\n private static int skip() {\n int b;\n while ((b = readByte()) != -1 && isSpaceChar(b)) ;\n return b;\n }\n\n private static double nd() {\n return Double.parseDouble(ns());\n }\n\n private static char nc() {\n return (char) skip();\n }\n\n private static String ns() {\n int b = skip();\n StringBuilder sb = new StringBuilder();\n while (!(isSpaceChar(b))) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n private static char[] ns(int n) {\n char[] buf = new char[n];\n int b = skip(), p = 0;\n while (p < n && !(isSpaceChar(b))) {\n buf[p++] = (char) b;\n b = readByte();\n }\n return n == p ? buf : Arrays.copyOf(buf, p);\n }\n\n private static char[][] nm(int n, int m) {\n char[][] map = new char[n][];\n for (int i = 0; i < n; i++) map[i] = ns(m);\n return map;\n }\n\n private static int[] na(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = ni();\n return a;\n }\n\n private static int ni() {\n int num = 0, b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }\n\n private static long nl() {\n long num = 0;\n int b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }\n\n private static void tr(Object... o) {\n if (INPUT.length() != 0) System.out.println(Arrays.deepToString(o));\n }\n}",
"Main"
] | import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.*;
public class Main {
static InputStream is;
static PrintWriter out;
static String INPUT = "";
final int INF = Integer.MAX_VALUE;
final int MIN = Integer.MIN_VALUE;
static void solve() {
int n = ni();
boolean[] checks = new boolean[52];
for (int i = 0; i < n; i++) {
String mark = ns();
int num = ni();
int in = serialize(mark, num);
checks[in] = true;
}
for (int i = 0; i < 52; i++) {
if (checks[i]) {
continue;
}
System.out.println(unserialize(i));
}
}
static String marks = "SHCD";
public static int serialize(String m, int n) {
return marks.indexOf(m) * 13 + (n - 1);
}
public static String unserialize(int i) {
return (marks.charAt(i / 13)) + " " + (i % 13 + 1);
}
public static void main(String[] args) throws Exception {
long S = System.currentTimeMillis();
is = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());
out = new PrintWriter(System.out);
solve();
out.flush();
long G = System.currentTimeMillis();
tr(G - S + "ms");
}
private static boolean eof() {
if (lenbuf == -1) return true;
int lptr = ptrbuf;
while (lptr < lenbuf) if (!isSpaceChar(inbuf[lptr++])) return false;
try {
is.mark(1000);
while (true) {
int b = is.read();
if (b == -1) {
is.reset();
return true;
} else if (!isSpaceChar(b)) {
is.reset();
return false;
}
}
} catch (IOException e) {
return true;
}
}
private static byte[] inbuf = new byte[1024];
static int lenbuf = 0, ptrbuf = 0;
private static int readByte() {
if (lenbuf == -1) throw new InputMismatchException();
if (ptrbuf >= lenbuf) {
ptrbuf = 0;
try {
lenbuf = is.read(inbuf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (lenbuf <= 0) return -1;
}
return inbuf[ptrbuf++];
}
private static boolean isSpaceChar(int c) {
return !(c >= 33 && c <= 126);
}
// private static boolean isSpaceChar(int c) { return !(c >= 32 && c <= 126); }
private static int skip() {
int b;
while ((b = readByte()) != -1 && isSpaceChar(b)) ;
return b;
}
private static double nd() {
return Double.parseDouble(ns());
}
private static char nc() {
return (char) skip();
}
private static String ns() {
int b = skip();
StringBuilder sb = new StringBuilder();
while (!(isSpaceChar(b))) {
sb.appendCodePoint(b);
b = readByte();
}
return sb.toString();
}
private static char[] ns(int n) {
char[] buf = new char[n];
int b = skip(), p = 0;
while (p < n && !(isSpaceChar(b))) {
buf[p++] = (char) b;
b = readByte();
}
return n == p ? buf : Arrays.copyOf(buf, p);
}
private static char[][] nm(int n, int m) {
char[][] map = new char[n][];
for (int i = 0; i < n; i++) map[i] = ns(m);
return map;
}
private static int[] na(int n) {
int[] a = new int[n];
for (int i = 0; i < n; i++) a[i] = ni();
return a;
}
private static int ni() {
int num = 0, b;
boolean minus = false;
while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;
if (b == '-') {
minus = true;
b = readByte();
}
while (true) {
if (b >= '0' && b <= '9') {
num = num * 10 + (b - '0');
} else {
return minus ? -num : num;
}
b = readByte();
}
}
private static long nl() {
long num = 0;
int b;
boolean minus = false;
while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;
if (b == '-') {
minus = true;
b = readByte();
}
while (true) {
if (b >= '0' && b <= '9') {
num = num * 10 + (b - '0');
} else {
return minus ? -num : num;
}
b = readByte();
}
}
private static void tr(Object... o) {
if (INPUT.length() != 0) System.out.println(Arrays.deepToString(o));
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
17,
4,
18,
13,
18,
13,
17,
17,
4,
18,
13,
18,
13,
17,
17,
4,
18,
13,
18,
13,
17,
17,
4,
18,
13,
18,
13,
17,
17,
41,
13,
4,
18,
13,
42,
2,
40,
13,
17,
30,
35,
4,
18,
4,
18,
13,
17,
34,
17,
1,
0,
18,
18,
13,
17,
2,
4,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
4,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
4,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
4,
18,
13,
17,
17,
3,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
4,
18,
18,
13,
13,
4,
18,
17,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
184,
5
],
[
184,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
20,
22
],
[
17,
23
],
[
8,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
27,
28
],
[
27,
29
],
[
24,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
34,
35
],
[
34,
36
],
[
31,
37
],
[
8,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
41,
43
],
[
38,
44
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
50,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
57,
62
],
[
56,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
71,
75
],
[
66,
76
],
[
65,
77
],
[
56,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
86,
90
],
[
81,
91
],
[
80,
92
],
[
56,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
101,
105
],
[
96,
106
],
[
95,
107
],
[
56,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
116,
120
],
[
111,
121
],
[
110,
122
],
[
8,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
123,
128
],
[
128,
129
],
[
128,
130
],
[
123,
131
],
[
131,
132
],
[
132,
133
],
[
123,
134
],
[
135,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
141,
142
],
[
141,
143
],
[
136,
144
],
[
144,
145
],
[
145,
146
],
[
136,
147
],
[
148,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
150,
156
],
[
149,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
158,
163
],
[
163,
164
],
[
164,
165
],
[
163,
166
],
[
157,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
157,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
173,
178
],
[
178,
179
],
[
178,
180
],
[
6,
181
],
[
181,
182
],
[
0,
183
],
[
183,
184
],
[
183,
185
]
] | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n boolean[][] deck = new boolean[4][13];\n\n Arrays.fill(deck[0], false);\n Arrays.fill(deck[1], false);\n Arrays.fill(deck[2], false);\n Arrays.fill(deck[3], false);\n\n int n = sc.nextInt();\n while (n-- > 0) {\n switch (sc.next().charAt(0)) {\n case 'S': deck[0][sc.nextInt()-1] = true; break;\n case 'H': deck[1][sc.nextInt()-1] = true; break;\n case 'C': deck[2][sc.nextInt()-1] = true; break;\n case 'D': deck[3][sc.nextInt()-1] = true; break;\n }\n }\n\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 13; j++) {\n if (deck[i][j] == false) {\n System.out.print(\"SHCD\".charAt(i));\n System.out.print(' ');\n System.out.println(j+1);\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\n boolean[][] deck = new boolean[4][13];\n\n Arrays.fill(deck[0], false);\n Arrays.fill(deck[1], false);\n Arrays.fill(deck[2], false);\n Arrays.fill(deck[3], false);\n\n int n = sc.nextInt();\n while (n-- > 0) {\n switch (sc.next().charAt(0)) {\n case 'S': deck[0][sc.nextInt()-1] = true; break;\n case 'H': deck[1][sc.nextInt()-1] = true; break;\n case 'C': deck[2][sc.nextInt()-1] = true; break;\n case 'D': deck[3][sc.nextInt()-1] = true; break;\n }\n }\n\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 13; j++) {\n if (deck[i][j] == false) {\n System.out.print(\"SHCD\".charAt(i));\n System.out.print(' ');\n System.out.println(j+1);\n }\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n boolean[][] deck = new boolean[4][13];\n\n Arrays.fill(deck[0], false);\n Arrays.fill(deck[1], false);\n Arrays.fill(deck[2], false);\n Arrays.fill(deck[3], false);\n\n int n = sc.nextInt();\n while (n-- > 0) {\n switch (sc.next().charAt(0)) {\n case 'S': deck[0][sc.nextInt()-1] = true; break;\n case 'H': deck[1][sc.nextInt()-1] = true; break;\n case 'C': deck[2][sc.nextInt()-1] = true; break;\n case 'D': deck[3][sc.nextInt()-1] = true; break;\n }\n }\n\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 13; j++) {\n if (deck[i][j] == false) {\n System.out.print(\"SHCD\".charAt(i));\n System.out.print(' ');\n System.out.println(j+1);\n }\n }\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n boolean[][] deck = new boolean[4][13];\n\n Arrays.fill(deck[0], false);\n Arrays.fill(deck[1], false);\n Arrays.fill(deck[2], false);\n Arrays.fill(deck[3], false);\n\n int n = sc.nextInt();\n while (n-- > 0) {\n switch (sc.next().charAt(0)) {\n case 'S': deck[0][sc.nextInt()-1] = true; break;\n case 'H': deck[1][sc.nextInt()-1] = true; break;\n case 'C': deck[2][sc.nextInt()-1] = true; break;\n case 'D': deck[3][sc.nextInt()-1] = true; break;\n }\n }\n\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 13; j++) {\n if (deck[i][j] == false) {\n System.out.print(\"SHCD\".charAt(i));\n System.out.print(' ');\n System.out.println(j+1);\n }\n }\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"boolean[][] deck = new boolean[4][13];",
"deck",
"new boolean[4][13]",
"4",
"13",
"Arrays.fill(deck[0], false)",
"Arrays.fill",
"Arrays",
"deck[0]",
"deck",
"0",
"false",
"Arrays.fill(deck[1], false)",
"Arrays.fill",
"Arrays",
"deck[1]",
"deck",
"1",
"false",
"Arrays.fill(deck[2], false)",
"Arrays.fill",
"Arrays",
"deck[2]",
"deck",
"2",
"false",
"Arrays.fill(deck[3], false)",
"Arrays.fill",
"Arrays",
"deck[3]",
"deck",
"3",
"false",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"while (n-- > 0) {\n switch (sc.next().charAt(0)) {\n case 'S': deck[0][sc.nextInt()-1] = true; break;\n case 'H': deck[1][sc.nextInt()-1] = true; break;\n case 'C': deck[2][sc.nextInt()-1] = true; break;\n case 'D': deck[3][sc.nextInt()-1] = true; break;\n }\n }",
"n-- > 0",
"n--",
"n",
"0",
"{\n switch (sc.next().charAt(0)) {\n case 'S': deck[0][sc.nextInt()-1] = true; break;\n case 'H': deck[1][sc.nextInt()-1] = true; break;\n case 'C': deck[2][sc.nextInt()-1] = true; break;\n case 'D': deck[3][sc.nextInt()-1] = true; break;\n }\n }",
"switch (sc.next().charAt(0)) {\n case 'S': deck[0][sc.nextInt()-1] = true; break;\n case 'H': deck[1][sc.nextInt()-1] = true; break;\n case 'C': deck[2][sc.nextInt()-1] = true; break;\n case 'D': deck[3][sc.nextInt()-1] = true; break;\n }",
"sc.next().charAt(0)",
"sc.next().charAt",
"sc.next()",
"sc.next",
"sc",
"0",
"case 'S':",
"'S'",
"case 'S':",
"deck[0][sc.nextInt()-1] = true",
"deck[0][sc.nextInt()-1]",
"deck[0]",
"deck",
"0",
"sc.nextInt()-1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"true",
"break;",
"case 'H':",
"'H'",
"case 'H':",
"deck[1][sc.nextInt()-1] = true",
"deck[1][sc.nextInt()-1]",
"deck[1]",
"deck",
"1",
"sc.nextInt()-1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"true",
"break;",
"case 'C':",
"'C'",
"case 'C':",
"deck[2][sc.nextInt()-1] = true",
"deck[2][sc.nextInt()-1]",
"deck[2]",
"deck",
"2",
"sc.nextInt()-1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"true",
"break;",
"case 'D':",
"'D'",
"case 'D':",
"deck[3][sc.nextInt()-1] = true",
"deck[3][sc.nextInt()-1]",
"deck[3]",
"deck",
"3",
"sc.nextInt()-1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"true",
"break;",
"for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 13; j++) {\n if (deck[i][j] == false) {\n System.out.print(\"SHCD\".charAt(i));\n System.out.print(' ');\n System.out.println(j+1);\n }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < 13; j++) {\n if (deck[i][j] == false) {\n System.out.print(\"SHCD\".charAt(i));\n System.out.print(' ');\n System.out.println(j+1);\n }\n }\n }",
"{\n for (int j = 0; j < 13; j++) {\n if (deck[i][j] == false) {\n System.out.print(\"SHCD\".charAt(i));\n System.out.print(' ');\n System.out.println(j+1);\n }\n }\n }",
"for (int j = 0; j < 13; j++) {\n if (deck[i][j] == false) {\n System.out.print(\"SHCD\".charAt(i));\n System.out.print(' ');\n System.out.println(j+1);\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n if (deck[i][j] == false) {\n System.out.print(\"SHCD\".charAt(i));\n System.out.print(' ');\n System.out.println(j+1);\n }\n }",
"{\n if (deck[i][j] == false) {\n System.out.print(\"SHCD\".charAt(i));\n System.out.print(' ');\n System.out.println(j+1);\n }\n }",
"if (deck[i][j] == false) {\n System.out.print(\"SHCD\".charAt(i));\n System.out.print(' ');\n System.out.println(j+1);\n }",
"deck[i][j] == false",
"deck[i][j]",
"deck[i]",
"deck",
"i",
"j",
"false",
"{\n System.out.print(\"SHCD\".charAt(i));\n System.out.print(' ');\n System.out.println(j+1);\n }",
"System.out.print(\"SHCD\".charAt(i))",
"System.out.print",
"System.out",
"System",
"System.out",
"\"SHCD\".charAt(i)",
"\"SHCD\".charAt",
"\"SHCD\"",
"i",
"System.out.print(' ')",
"System.out.print",
"System.out",
"System",
"System.out",
"' '",
"System.out.println(j+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"j+1",
"j",
"1",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n boolean[][] deck = new boolean[4][13];\n\n Arrays.fill(deck[0], false);\n Arrays.fill(deck[1], false);\n Arrays.fill(deck[2], false);\n Arrays.fill(deck[3], false);\n\n int n = sc.nextInt();\n while (n-- > 0) {\n switch (sc.next().charAt(0)) {\n case 'S': deck[0][sc.nextInt()-1] = true; break;\n case 'H': deck[1][sc.nextInt()-1] = true; break;\n case 'C': deck[2][sc.nextInt()-1] = true; break;\n case 'D': deck[3][sc.nextInt()-1] = true; break;\n }\n }\n\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 13; j++) {\n if (deck[i][j] == false) {\n System.out.print(\"SHCD\".charAt(i));\n System.out.print(' ');\n System.out.println(j+1);\n }\n }\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n boolean[][] deck = new boolean[4][13];\n\n Arrays.fill(deck[0], false);\n Arrays.fill(deck[1], false);\n Arrays.fill(deck[2], false);\n Arrays.fill(deck[3], false);\n\n int n = sc.nextInt();\n while (n-- > 0) {\n switch (sc.next().charAt(0)) {\n case 'S': deck[0][sc.nextInt()-1] = true; break;\n case 'H': deck[1][sc.nextInt()-1] = true; break;\n case 'C': deck[2][sc.nextInt()-1] = true; break;\n case 'D': deck[3][sc.nextInt()-1] = true; break;\n }\n }\n\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 13; j++) {\n if (deck[i][j] == false) {\n System.out.print(\"SHCD\".charAt(i));\n System.out.print(' ');\n System.out.println(j+1);\n }\n }\n }\n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
boolean[][] deck = new boolean[4][13];
Arrays.fill(deck[0], false);
Arrays.fill(deck[1], false);
Arrays.fill(deck[2], false);
Arrays.fill(deck[3], false);
int n = sc.nextInt();
while (n-- > 0) {
switch (sc.next().charAt(0)) {
case 'S': deck[0][sc.nextInt()-1] = true; break;
case 'H': deck[1][sc.nextInt()-1] = true; break;
case 'C': deck[2][sc.nextInt()-1] = true; break;
case 'D': deck[3][sc.nextInt()-1] = true; break;
}
}
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 13; j++) {
if (deck[i][j] == false) {
System.out.print("SHCD".charAt(i));
System.out.print(' ');
System.out.println(j+1);
}
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
35,
13,
34,
17,
1,
0,
18,
13,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
2,
13,
17,
17,
3,
34,
1,
3,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
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
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
45,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
61,
67
],
[
60,
68
],
[
56,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
72,
78
],
[
71,
79
],
[
56,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
83,
89
],
[
82,
90
],
[
56,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
97,
99
],
[
94,
100
],
[
93,
101
],
[
56,
102
],
[
102,
103
],
[
103,
104
],
[
8,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
105,
113
],
[
113,
114
],
[
114,
115
],
[
105,
116
],
[
117,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
131,
133
],
[
8,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
139,
140
],
[
139,
141
],
[
134,
142
],
[
142,
143
],
[
143,
144
],
[
134,
145
],
[
146,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
147,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
153,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
160,
162
],
[
8,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
168,
169
],
[
168,
170
],
[
163,
171
],
[
171,
172
],
[
172,
173
],
[
163,
174
],
[
175,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
176,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
182,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
189,
191
],
[
8,
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
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
211,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
218,
220
],
[
6,
221
],
[
221,
222
],
[
0,
223
],
[
223,
224
],
[
223,
225
]
] | [
"import java.util.Scanner;\n \npublic class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n int numOfCards = stdIn.nextInt();\n \n boolean[] spadeCardsExitsance = new boolean[13];\n boolean[] hartCardsExitsance = new boolean[13];\n boolean[] clubCardsExitsance = new boolean[13];\n boolean[] diamondCardsExitsance = new boolean[13];\n \n for(int i = 0; i < numOfCards; i++) {\n String suit = stdIn.next();\n int rank = stdIn.nextInt();\n \n switch(suit) {\n case \"S\":\n spadeCardsExitsance[rank - 1] = true;\n break;\n case \"H\":\n hartCardsExitsance [rank - 1] = true;\n break;\n case \"C\":\n clubCardsExitsance [rank - 1] = true;\n break;\n case \"D\":\n diamondCardsExitsance [rank - 1] = true;\n break;\n default:\n break;\n }\n }\n \n for(int i = 0; i < 13; i++) {\n if(!spadeCardsExitsance[i]) {\n System.out.println(\"S \" + (i + 1));\n }\n }\n for(int i = 0; i < 13; i++) {\n if(!hartCardsExitsance[i]) {\n System.out.println(\"H \" + (i + 1));\n }\n }\n for(int i = 0; i < 13; i++) {\n if(!clubCardsExitsance[i]) {\n System.out.println(\"C \" + (i + 1));\n }\n }\n for(int i = 0; i < 13; i++) {\n if(!diamondCardsExitsance[i]) {\n System.out.println(\"D \" + (i + 1));\n }\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n int numOfCards = stdIn.nextInt();\n \n boolean[] spadeCardsExitsance = new boolean[13];\n boolean[] hartCardsExitsance = new boolean[13];\n boolean[] clubCardsExitsance = new boolean[13];\n boolean[] diamondCardsExitsance = new boolean[13];\n \n for(int i = 0; i < numOfCards; i++) {\n String suit = stdIn.next();\n int rank = stdIn.nextInt();\n \n switch(suit) {\n case \"S\":\n spadeCardsExitsance[rank - 1] = true;\n break;\n case \"H\":\n hartCardsExitsance [rank - 1] = true;\n break;\n case \"C\":\n clubCardsExitsance [rank - 1] = true;\n break;\n case \"D\":\n diamondCardsExitsance [rank - 1] = true;\n break;\n default:\n break;\n }\n }\n \n for(int i = 0; i < 13; i++) {\n if(!spadeCardsExitsance[i]) {\n System.out.println(\"S \" + (i + 1));\n }\n }\n for(int i = 0; i < 13; i++) {\n if(!hartCardsExitsance[i]) {\n System.out.println(\"H \" + (i + 1));\n }\n }\n for(int i = 0; i < 13; i++) {\n if(!clubCardsExitsance[i]) {\n System.out.println(\"C \" + (i + 1));\n }\n }\n for(int i = 0; i < 13; i++) {\n if(!diamondCardsExitsance[i]) {\n System.out.println(\"D \" + (i + 1));\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n int numOfCards = stdIn.nextInt();\n \n boolean[] spadeCardsExitsance = new boolean[13];\n boolean[] hartCardsExitsance = new boolean[13];\n boolean[] clubCardsExitsance = new boolean[13];\n boolean[] diamondCardsExitsance = new boolean[13];\n \n for(int i = 0; i < numOfCards; i++) {\n String suit = stdIn.next();\n int rank = stdIn.nextInt();\n \n switch(suit) {\n case \"S\":\n spadeCardsExitsance[rank - 1] = true;\n break;\n case \"H\":\n hartCardsExitsance [rank - 1] = true;\n break;\n case \"C\":\n clubCardsExitsance [rank - 1] = true;\n break;\n case \"D\":\n diamondCardsExitsance [rank - 1] = true;\n break;\n default:\n break;\n }\n }\n \n for(int i = 0; i < 13; i++) {\n if(!spadeCardsExitsance[i]) {\n System.out.println(\"S \" + (i + 1));\n }\n }\n for(int i = 0; i < 13; i++) {\n if(!hartCardsExitsance[i]) {\n System.out.println(\"H \" + (i + 1));\n }\n }\n for(int i = 0; i < 13; i++) {\n if(!clubCardsExitsance[i]) {\n System.out.println(\"C \" + (i + 1));\n }\n }\n for(int i = 0; i < 13; i++) {\n if(!diamondCardsExitsance[i]) {\n System.out.println(\"D \" + (i + 1));\n }\n }\n }",
"main",
"{\n Scanner stdIn = new Scanner(System.in);\n int numOfCards = stdIn.nextInt();\n \n boolean[] spadeCardsExitsance = new boolean[13];\n boolean[] hartCardsExitsance = new boolean[13];\n boolean[] clubCardsExitsance = new boolean[13];\n boolean[] diamondCardsExitsance = new boolean[13];\n \n for(int i = 0; i < numOfCards; i++) {\n String suit = stdIn.next();\n int rank = stdIn.nextInt();\n \n switch(suit) {\n case \"S\":\n spadeCardsExitsance[rank - 1] = true;\n break;\n case \"H\":\n hartCardsExitsance [rank - 1] = true;\n break;\n case \"C\":\n clubCardsExitsance [rank - 1] = true;\n break;\n case \"D\":\n diamondCardsExitsance [rank - 1] = true;\n break;\n default:\n break;\n }\n }\n \n for(int i = 0; i < 13; i++) {\n if(!spadeCardsExitsance[i]) {\n System.out.println(\"S \" + (i + 1));\n }\n }\n for(int i = 0; i < 13; i++) {\n if(!hartCardsExitsance[i]) {\n System.out.println(\"H \" + (i + 1));\n }\n }\n for(int i = 0; i < 13; i++) {\n if(!clubCardsExitsance[i]) {\n System.out.println(\"C \" + (i + 1));\n }\n }\n for(int i = 0; i < 13; i++) {\n if(!diamondCardsExitsance[i]) {\n System.out.println(\"D \" + (i + 1));\n }\n }\n }",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int numOfCards = stdIn.nextInt();",
"numOfCards",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"boolean[] spadeCardsExitsance = new boolean[13];",
"spadeCardsExitsance",
"new boolean[13]",
"13",
"boolean[] hartCardsExitsance = new boolean[13];",
"hartCardsExitsance",
"new boolean[13]",
"13",
"boolean[] clubCardsExitsance = new boolean[13];",
"clubCardsExitsance",
"new boolean[13]",
"13",
"boolean[] diamondCardsExitsance = new boolean[13];",
"diamondCardsExitsance",
"new boolean[13]",
"13",
"for(int i = 0; i < numOfCards; i++) {\n String suit = stdIn.next();\n int rank = stdIn.nextInt();\n \n switch(suit) {\n case \"S\":\n spadeCardsExitsance[rank - 1] = true;\n break;\n case \"H\":\n hartCardsExitsance [rank - 1] = true;\n break;\n case \"C\":\n clubCardsExitsance [rank - 1] = true;\n break;\n case \"D\":\n diamondCardsExitsance [rank - 1] = true;\n break;\n default:\n break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < numOfCards",
"i",
"numOfCards",
"i++",
"i++",
"i",
"{\n String suit = stdIn.next();\n int rank = stdIn.nextInt();\n \n switch(suit) {\n case \"S\":\n spadeCardsExitsance[rank - 1] = true;\n break;\n case \"H\":\n hartCardsExitsance [rank - 1] = true;\n break;\n case \"C\":\n clubCardsExitsance [rank - 1] = true;\n break;\n case \"D\":\n diamondCardsExitsance [rank - 1] = true;\n break;\n default:\n break;\n }\n }",
"{\n String suit = stdIn.next();\n int rank = stdIn.nextInt();\n \n switch(suit) {\n case \"S\":\n spadeCardsExitsance[rank - 1] = true;\n break;\n case \"H\":\n hartCardsExitsance [rank - 1] = true;\n break;\n case \"C\":\n clubCardsExitsance [rank - 1] = true;\n break;\n case \"D\":\n diamondCardsExitsance [rank - 1] = true;\n break;\n default:\n break;\n }\n }",
"String suit = stdIn.next();",
"suit",
"stdIn.next()",
"stdIn.next",
"stdIn",
"int rank = stdIn.nextInt();",
"rank",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"switch(suit) {\n case \"S\":\n spadeCardsExitsance[rank - 1] = true;\n break;\n case \"H\":\n hartCardsExitsance [rank - 1] = true;\n break;\n case \"C\":\n clubCardsExitsance [rank - 1] = true;\n break;\n case \"D\":\n diamondCardsExitsance [rank - 1] = true;\n break;\n default:\n break;\n }",
"suit",
"case \"S\":",
"\"S\"",
"case \"S\":",
"spadeCardsExitsance[rank - 1] = true",
"spadeCardsExitsance[rank - 1]",
"spadeCardsExitsance",
"rank - 1",
"rank",
"1",
"true",
"break;",
"case \"H\":",
"\"H\"",
"case \"H\":",
"hartCardsExitsance [rank - 1] = true",
"hartCardsExitsance [rank - 1]",
"hartCardsExitsance",
"rank - 1",
"rank",
"1",
"true",
"break;",
"case \"C\":",
"\"C\"",
"case \"C\":",
"clubCardsExitsance [rank - 1] = true",
"clubCardsExitsance [rank - 1]",
"clubCardsExitsance",
"rank - 1",
"rank",
"1",
"true",
"break;",
"case \"D\":",
"\"D\"",
"case \"D\":",
"diamondCardsExitsance [rank - 1] = true",
"diamondCardsExitsance [rank - 1]",
"diamondCardsExitsance",
"rank - 1",
"rank",
"1",
"true",
"break;",
"default:",
"default:",
"break;",
"for(int i = 0; i < 13; i++) {\n if(!spadeCardsExitsance[i]) {\n System.out.println(\"S \" + (i + 1));\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n if(!spadeCardsExitsance[i]) {\n System.out.println(\"S \" + (i + 1));\n }\n }",
"{\n if(!spadeCardsExitsance[i]) {\n System.out.println(\"S \" + (i + 1));\n }\n }",
"if(!spadeCardsExitsance[i]) {\n System.out.println(\"S \" + (i + 1));\n }",
"!spadeCardsExitsance[i]",
"spadeCardsExitsance[i]",
"spadeCardsExitsance",
"i",
"{\n System.out.println(\"S \" + (i + 1));\n }",
"System.out.println(\"S \" + (i + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \" + (i + 1)",
"\"S \"",
"(i + 1)",
"i",
"1",
"for(int i = 0; i < 13; i++) {\n if(!hartCardsExitsance[i]) {\n System.out.println(\"H \" + (i + 1));\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n if(!hartCardsExitsance[i]) {\n System.out.println(\"H \" + (i + 1));\n }\n }",
"{\n if(!hartCardsExitsance[i]) {\n System.out.println(\"H \" + (i + 1));\n }\n }",
"if(!hartCardsExitsance[i]) {\n System.out.println(\"H \" + (i + 1));\n }",
"!hartCardsExitsance[i]",
"hartCardsExitsance[i]",
"hartCardsExitsance",
"i",
"{\n System.out.println(\"H \" + (i + 1));\n }",
"System.out.println(\"H \" + (i + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \" + (i + 1)",
"\"H \"",
"(i + 1)",
"i",
"1",
"for(int i = 0; i < 13; i++) {\n if(!clubCardsExitsance[i]) {\n System.out.println(\"C \" + (i + 1));\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n if(!clubCardsExitsance[i]) {\n System.out.println(\"C \" + (i + 1));\n }\n }",
"{\n if(!clubCardsExitsance[i]) {\n System.out.println(\"C \" + (i + 1));\n }\n }",
"if(!clubCardsExitsance[i]) {\n System.out.println(\"C \" + (i + 1));\n }",
"!clubCardsExitsance[i]",
"clubCardsExitsance[i]",
"clubCardsExitsance",
"i",
"{\n System.out.println(\"C \" + (i + 1));\n }",
"System.out.println(\"C \" + (i + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \" + (i + 1)",
"\"C \"",
"(i + 1)",
"i",
"1",
"for(int i = 0; i < 13; i++) {\n if(!diamondCardsExitsance[i]) {\n System.out.println(\"D \" + (i + 1));\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n if(!diamondCardsExitsance[i]) {\n System.out.println(\"D \" + (i + 1));\n }\n }",
"{\n if(!diamondCardsExitsance[i]) {\n System.out.println(\"D \" + (i + 1));\n }\n }",
"if(!diamondCardsExitsance[i]) {\n System.out.println(\"D \" + (i + 1));\n }",
"!diamondCardsExitsance[i]",
"diamondCardsExitsance[i]",
"diamondCardsExitsance",
"i",
"{\n System.out.println(\"D \" + (i + 1));\n }",
"System.out.println(\"D \" + (i + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \" + (i + 1)",
"\"D \"",
"(i + 1)",
"i",
"1",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n int numOfCards = stdIn.nextInt();\n \n boolean[] spadeCardsExitsance = new boolean[13];\n boolean[] hartCardsExitsance = new boolean[13];\n boolean[] clubCardsExitsance = new boolean[13];\n boolean[] diamondCardsExitsance = new boolean[13];\n \n for(int i = 0; i < numOfCards; i++) {\n String suit = stdIn.next();\n int rank = stdIn.nextInt();\n \n switch(suit) {\n case \"S\":\n spadeCardsExitsance[rank - 1] = true;\n break;\n case \"H\":\n hartCardsExitsance [rank - 1] = true;\n break;\n case \"C\":\n clubCardsExitsance [rank - 1] = true;\n break;\n case \"D\":\n diamondCardsExitsance [rank - 1] = true;\n break;\n default:\n break;\n }\n }\n \n for(int i = 0; i < 13; i++) {\n if(!spadeCardsExitsance[i]) {\n System.out.println(\"S \" + (i + 1));\n }\n }\n for(int i = 0; i < 13; i++) {\n if(!hartCardsExitsance[i]) {\n System.out.println(\"H \" + (i + 1));\n }\n }\n for(int i = 0; i < 13; i++) {\n if(!clubCardsExitsance[i]) {\n System.out.println(\"C \" + (i + 1));\n }\n }\n for(int i = 0; i < 13; i++) {\n if(!diamondCardsExitsance[i]) {\n System.out.println(\"D \" + (i + 1));\n }\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n int numOfCards = stdIn.nextInt();\n \n boolean[] spadeCardsExitsance = new boolean[13];\n boolean[] hartCardsExitsance = new boolean[13];\n boolean[] clubCardsExitsance = new boolean[13];\n boolean[] diamondCardsExitsance = new boolean[13];\n \n for(int i = 0; i < numOfCards; i++) {\n String suit = stdIn.next();\n int rank = stdIn.nextInt();\n \n switch(suit) {\n case \"S\":\n spadeCardsExitsance[rank - 1] = true;\n break;\n case \"H\":\n hartCardsExitsance [rank - 1] = true;\n break;\n case \"C\":\n clubCardsExitsance [rank - 1] = true;\n break;\n case \"D\":\n diamondCardsExitsance [rank - 1] = true;\n break;\n default:\n break;\n }\n }\n \n for(int i = 0; i < 13; i++) {\n if(!spadeCardsExitsance[i]) {\n System.out.println(\"S \" + (i + 1));\n }\n }\n for(int i = 0; i < 13; i++) {\n if(!hartCardsExitsance[i]) {\n System.out.println(\"H \" + (i + 1));\n }\n }\n for(int i = 0; i < 13; i++) {\n if(!clubCardsExitsance[i]) {\n System.out.println(\"C \" + (i + 1));\n }\n }\n for(int i = 0; i < 13; i++) {\n if(!diamondCardsExitsance[i]) {\n System.out.println(\"D \" + (i + 1));\n }\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int numOfCards = stdIn.nextInt();
boolean[] spadeCardsExitsance = new boolean[13];
boolean[] hartCardsExitsance = new boolean[13];
boolean[] clubCardsExitsance = new boolean[13];
boolean[] diamondCardsExitsance = new boolean[13];
for(int i = 0; i < numOfCards; i++) {
String suit = stdIn.next();
int rank = stdIn.nextInt();
switch(suit) {
case "S":
spadeCardsExitsance[rank - 1] = true;
break;
case "H":
hartCardsExitsance [rank - 1] = true;
break;
case "C":
clubCardsExitsance [rank - 1] = true;
break;
case "D":
diamondCardsExitsance [rank - 1] = true;
break;
default:
break;
}
}
for(int i = 0; i < 13; i++) {
if(!spadeCardsExitsance[i]) {
System.out.println("S " + (i + 1));
}
}
for(int i = 0; i < 13; i++) {
if(!hartCardsExitsance[i]) {
System.out.println("H " + (i + 1));
}
}
for(int i = 0; i < 13; i++) {
if(!clubCardsExitsance[i]) {
System.out.println("C " + (i + 1));
}
}
for(int i = 0; i < 13; i++) {
if(!diamondCardsExitsance[i]) {
System.out.println("D " + (i + 1));
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
17,
13,
30,
0,
18,
13,
2,
13,
17,
17,
14,
4,
18,
17,
13,
30,
0,
18,
13,
2,
17,
13,
17,
14,
4,
18,
17,
13,
30,
0,
18,
13,
2,
17,
13,
17,
14,
4,
18,
17,
13,
30,
0,
18,
13,
2,
17,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
17,
18,
13,
13,
30,
41,
13,
2,
13,
17,
14,
2,
17,
13,
30,
0,
13,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
17,
13,
30,
0,
13,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
17,
13,
30,
0,
13,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
17,
13,
30,
0,
13,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
2,
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
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
50,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
56,
62
],
[
50,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
63,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
69,
75
],
[
63,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
76,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
82,
88
],
[
76,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
89,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
98,
100
],
[
95,
101
],
[
8,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
110,
111
],
[
111,
112
],
[
102,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
118,
120
],
[
115,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
124,
126
],
[
121,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
131,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
144,
145
],
[
144,
146
],
[
127,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
151,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
159,
164
],
[
164,
165
],
[
164,
166
],
[
147,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
174,
178
],
[
171,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
179,
184
],
[
184,
185
],
[
184,
186
],
[
167,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
194,
198
],
[
191,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
199,
204
],
[
204,
205
],
[
204,
206
],
[
6,
207
],
[
207,
208
]
] | [
"import java.util.Scanner;\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner kb = new Scanner( System.in );\n\n\t\tString str = kb.nextLine();\n\t\tint n = Integer.parseInt( str );\n\t\t\n\t\tboolean[] cards= new boolean[53]; \n\t\tfor( int i=0; i<n; i++ ) {\n\t\t\tString pattern = kb.next();\n\t\t\tint num = kb.nextInt();\n\t\t\tif( \"S\".equals( pattern ) ) {\n\t\t\t\tcards[ num-1 ]=true;\n\t\t\t} else if( \"H\".equals( pattern ) ) {\n\t\t\t\tcards[ 12+num ]=true;\n\t\t\t} else if( \"C\".equals( pattern ) ) {\n\t\t\t\tcards[ 25+num ]=true;\n\t\t\t} else if( \"D\".equals( pattern ) ) {\n\t\t\t\tcards[ 38+num ]=true;\t\t\t\n\t\t\t}\n\t\t}\n\n\t\tfor( int i=0; i<52; i++ ) {\n\t\t\tif( false == cards[ i ] ) {\n\t\t\t\tint num = i/13;\n\t\t\t\tif( 0 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"S \"+ num);\n\t\t\t\t} else if( 1 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"H \"+num );\n\t\t\t\t} else if( 2 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"C \"+num );\n\t\t\t\t} else if( 3 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"D \"+num );\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner kb = new Scanner( System.in );\n\n\t\tString str = kb.nextLine();\n\t\tint n = Integer.parseInt( str );\n\t\t\n\t\tboolean[] cards= new boolean[53]; \n\t\tfor( int i=0; i<n; i++ ) {\n\t\t\tString pattern = kb.next();\n\t\t\tint num = kb.nextInt();\n\t\t\tif( \"S\".equals( pattern ) ) {\n\t\t\t\tcards[ num-1 ]=true;\n\t\t\t} else if( \"H\".equals( pattern ) ) {\n\t\t\t\tcards[ 12+num ]=true;\n\t\t\t} else if( \"C\".equals( pattern ) ) {\n\t\t\t\tcards[ 25+num ]=true;\n\t\t\t} else if( \"D\".equals( pattern ) ) {\n\t\t\t\tcards[ 38+num ]=true;\t\t\t\n\t\t\t}\n\t\t}\n\n\t\tfor( int i=0; i<52; i++ ) {\n\t\t\tif( false == cards[ i ] ) {\n\t\t\t\tint num = i/13;\n\t\t\t\tif( 0 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"S \"+ num);\n\t\t\t\t} else if( 1 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"H \"+num );\n\t\t\t\t} else if( 2 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"C \"+num );\n\t\t\t\t} else if( 3 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"D \"+num );\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\tScanner kb = new Scanner( System.in );\n\n\t\tString str = kb.nextLine();\n\t\tint n = Integer.parseInt( str );\n\t\t\n\t\tboolean[] cards= new boolean[53]; \n\t\tfor( int i=0; i<n; i++ ) {\n\t\t\tString pattern = kb.next();\n\t\t\tint num = kb.nextInt();\n\t\t\tif( \"S\".equals( pattern ) ) {\n\t\t\t\tcards[ num-1 ]=true;\n\t\t\t} else if( \"H\".equals( pattern ) ) {\n\t\t\t\tcards[ 12+num ]=true;\n\t\t\t} else if( \"C\".equals( pattern ) ) {\n\t\t\t\tcards[ 25+num ]=true;\n\t\t\t} else if( \"D\".equals( pattern ) ) {\n\t\t\t\tcards[ 38+num ]=true;\t\t\t\n\t\t\t}\n\t\t}\n\n\t\tfor( int i=0; i<52; i++ ) {\n\t\t\tif( false == cards[ i ] ) {\n\t\t\t\tint num = i/13;\n\t\t\t\tif( 0 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"S \"+ num);\n\t\t\t\t} else if( 1 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"H \"+num );\n\t\t\t\t} else if( 2 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"C \"+num );\n\t\t\t\t} else if( 3 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"D \"+num );\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner kb = new Scanner( System.in );\n\n\t\tString str = kb.nextLine();\n\t\tint n = Integer.parseInt( str );\n\t\t\n\t\tboolean[] cards= new boolean[53]; \n\t\tfor( int i=0; i<n; i++ ) {\n\t\t\tString pattern = kb.next();\n\t\t\tint num = kb.nextInt();\n\t\t\tif( \"S\".equals( pattern ) ) {\n\t\t\t\tcards[ num-1 ]=true;\n\t\t\t} else if( \"H\".equals( pattern ) ) {\n\t\t\t\tcards[ 12+num ]=true;\n\t\t\t} else if( \"C\".equals( pattern ) ) {\n\t\t\t\tcards[ 25+num ]=true;\n\t\t\t} else if( \"D\".equals( pattern ) ) {\n\t\t\t\tcards[ 38+num ]=true;\t\t\t\n\t\t\t}\n\t\t}\n\n\t\tfor( int i=0; i<52; i++ ) {\n\t\t\tif( false == cards[ i ] ) {\n\t\t\t\tint num = i/13;\n\t\t\t\tif( 0 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"S \"+ num);\n\t\t\t\t} else if( 1 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"H \"+num );\n\t\t\t\t} else if( 2 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"C \"+num );\n\t\t\t\t} else if( 3 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"D \"+num );\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"Scanner kb = new Scanner( System.in );",
"kb",
"new Scanner( System.in )",
"String str = kb.nextLine();",
"str",
"kb.nextLine()",
"kb.nextLine",
"kb",
"int n = Integer.parseInt( str );",
"n",
"Integer.parseInt( str )",
"Integer.parseInt",
"Integer",
"str",
"boolean[] cards= new boolean[53];",
"cards",
"new boolean[53]",
"53",
"for( int i=0; i<n; i++ ) {\n\t\t\tString pattern = kb.next();\n\t\t\tint num = kb.nextInt();\n\t\t\tif( \"S\".equals( pattern ) ) {\n\t\t\t\tcards[ num-1 ]=true;\n\t\t\t} else if( \"H\".equals( pattern ) ) {\n\t\t\t\tcards[ 12+num ]=true;\n\t\t\t} else if( \"C\".equals( pattern ) ) {\n\t\t\t\tcards[ 25+num ]=true;\n\t\t\t} else if( \"D\".equals( pattern ) ) {\n\t\t\t\tcards[ 38+num ]=true;\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\tString pattern = kb.next();\n\t\t\tint num = kb.nextInt();\n\t\t\tif( \"S\".equals( pattern ) ) {\n\t\t\t\tcards[ num-1 ]=true;\n\t\t\t} else if( \"H\".equals( pattern ) ) {\n\t\t\t\tcards[ 12+num ]=true;\n\t\t\t} else if( \"C\".equals( pattern ) ) {\n\t\t\t\tcards[ 25+num ]=true;\n\t\t\t} else if( \"D\".equals( pattern ) ) {\n\t\t\t\tcards[ 38+num ]=true;\t\t\t\n\t\t\t}\n\t\t}",
"{\n\t\t\tString pattern = kb.next();\n\t\t\tint num = kb.nextInt();\n\t\t\tif( \"S\".equals( pattern ) ) {\n\t\t\t\tcards[ num-1 ]=true;\n\t\t\t} else if( \"H\".equals( pattern ) ) {\n\t\t\t\tcards[ 12+num ]=true;\n\t\t\t} else if( \"C\".equals( pattern ) ) {\n\t\t\t\tcards[ 25+num ]=true;\n\t\t\t} else if( \"D\".equals( pattern ) ) {\n\t\t\t\tcards[ 38+num ]=true;\t\t\t\n\t\t\t}\n\t\t}",
"String pattern = kb.next();",
"pattern",
"kb.next()",
"kb.next",
"kb",
"int num = kb.nextInt();",
"num",
"kb.nextInt()",
"kb.nextInt",
"kb",
"if( \"S\".equals( pattern ) ) {\n\t\t\t\tcards[ num-1 ]=true;\n\t\t\t} else if( \"H\".equals( pattern ) ) {\n\t\t\t\tcards[ 12+num ]=true;\n\t\t\t} else if( \"C\".equals( pattern ) ) {\n\t\t\t\tcards[ 25+num ]=true;\n\t\t\t} else if( \"D\".equals( pattern ) ) {\n\t\t\t\tcards[ 38+num ]=true;\t\t\t\n\t\t\t}",
"\"S\".equals( pattern )",
"\"S\".equals",
"\"S\"",
"pattern",
"{\n\t\t\t\tcards[ num-1 ]=true;\n\t\t\t}",
"cards[ num-1 ]=true",
"cards[ num-1 ]",
"cards",
"num-1",
"num",
"1",
"true",
"if( \"H\".equals( pattern ) ) {\n\t\t\t\tcards[ 12+num ]=true;\n\t\t\t} else if( \"C\".equals( pattern ) ) {\n\t\t\t\tcards[ 25+num ]=true;\n\t\t\t} else if( \"D\".equals( pattern ) ) {\n\t\t\t\tcards[ 38+num ]=true;\t\t\t\n\t\t\t}",
"\"H\".equals( pattern )",
"\"H\".equals",
"\"H\"",
"pattern",
"{\n\t\t\t\tcards[ 12+num ]=true;\n\t\t\t}",
"cards[ 12+num ]=true",
"cards[ 12+num ]",
"cards",
"12+num",
"12",
"num",
"true",
"if( \"C\".equals( pattern ) ) {\n\t\t\t\tcards[ 25+num ]=true;\n\t\t\t} else if( \"D\".equals( pattern ) ) {\n\t\t\t\tcards[ 38+num ]=true;\t\t\t\n\t\t\t}",
"\"C\".equals( pattern )",
"\"C\".equals",
"\"C\"",
"pattern",
"{\n\t\t\t\tcards[ 25+num ]=true;\n\t\t\t}",
"cards[ 25+num ]=true",
"cards[ 25+num ]",
"cards",
"25+num",
"25",
"num",
"true",
"if( \"D\".equals( pattern ) ) {\n\t\t\t\tcards[ 38+num ]=true;\t\t\t\n\t\t\t}",
"\"D\".equals( pattern )",
"\"D\".equals",
"\"D\"",
"pattern",
"{\n\t\t\t\tcards[ 38+num ]=true;\t\t\t\n\t\t\t}",
"cards[ 38+num ]=true",
"cards[ 38+num ]",
"cards",
"38+num",
"38",
"num",
"true",
"for( int i=0; i<52; i++ ) {\n\t\t\tif( false == cards[ i ] ) {\n\t\t\t\tint num = i/13;\n\t\t\t\tif( 0 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"S \"+ num);\n\t\t\t\t} else if( 1 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"H \"+num );\n\t\t\t\t} else if( 2 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"C \"+num );\n\t\t\t\t} else if( 3 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"D \"+num );\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<52",
"i",
"52",
"i++",
"i++",
"i",
"{\n\t\t\tif( false == cards[ i ] ) {\n\t\t\t\tint num = i/13;\n\t\t\t\tif( 0 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"S \"+ num);\n\t\t\t\t} else if( 1 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"H \"+num );\n\t\t\t\t} else if( 2 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"C \"+num );\n\t\t\t\t} else if( 3 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"D \"+num );\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tif( false == cards[ i ] ) {\n\t\t\t\tint num = i/13;\n\t\t\t\tif( 0 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"S \"+ num);\n\t\t\t\t} else if( 1 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"H \"+num );\n\t\t\t\t} else if( 2 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"C \"+num );\n\t\t\t\t} else if( 3 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"D \"+num );\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"if( false == cards[ i ] ) {\n\t\t\t\tint num = i/13;\n\t\t\t\tif( 0 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"S \"+ num);\n\t\t\t\t} else if( 1 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"H \"+num );\n\t\t\t\t} else if( 2 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"C \"+num );\n\t\t\t\t} else if( 3 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"D \"+num );\t\t\t\t\n\t\t\t\t}\n\t\t\t}",
"false == cards[ i ]",
"false",
"cards[ i ]",
"cards",
"i",
"{\n\t\t\t\tint num = i/13;\n\t\t\t\tif( 0 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"S \"+ num);\n\t\t\t\t} else if( 1 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"H \"+num );\n\t\t\t\t} else if( 2 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"C \"+num );\n\t\t\t\t} else if( 3 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"D \"+num );\t\t\t\t\n\t\t\t\t}\n\t\t\t}",
"int num = i/13;",
"num",
"i/13",
"i",
"13",
"if( 0 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"S \"+ num);\n\t\t\t\t} else if( 1 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"H \"+num );\n\t\t\t\t} else if( 2 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"C \"+num );\n\t\t\t\t} else if( 3 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"D \"+num );\t\t\t\t\n\t\t\t\t}",
"0 == num",
"0",
"num",
"{\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"S \"+ num);\n\t\t\t\t}",
"num=(i%13)+1",
"num",
"(i%13)+1",
"(i%13)",
"i",
"13",
"1",
"System.out.println( \"S \"+ num)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \"+ num",
"\"S \"",
"num",
"if( 1 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"H \"+num );\n\t\t\t\t} else if( 2 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"C \"+num );\n\t\t\t\t} else if( 3 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"D \"+num );\t\t\t\t\n\t\t\t\t}",
"1 == num",
"1",
"num",
"{\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"H \"+num );\n\t\t\t\t}",
"num=(i%13)+1",
"num",
"(i%13)+1",
"(i%13)",
"i",
"13",
"1",
"System.out.println( \"H \"+num )",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \"+num",
"\"H \"",
"num",
"if( 2 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"C \"+num );\n\t\t\t\t} else if( 3 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"D \"+num );\t\t\t\t\n\t\t\t\t}",
"2 == num",
"2",
"num",
"{\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"C \"+num );\n\t\t\t\t}",
"num=(i%13)+1",
"num",
"(i%13)+1",
"(i%13)",
"i",
"13",
"1",
"System.out.println( \"C \"+num )",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \"+num",
"\"C \"",
"num",
"if( 3 == num ) {\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"D \"+num );\t\t\t\t\n\t\t\t\t}",
"3 == num",
"3",
"num",
"{\n\t\t\t\t\tnum=(i%13)+1;\n\t\t\t\t\tSystem.out.println( \"D \"+num );\t\t\t\t\n\t\t\t\t}",
"num=(i%13)+1",
"num",
"(i%13)+1",
"(i%13)",
"i",
"13",
"1",
"System.out.println( \"D \"+num )",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \"+num",
"\"D \"",
"num",
"String[] args",
"args"
] | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner kb = new Scanner( System.in );
String str = kb.nextLine();
int n = Integer.parseInt( str );
boolean[] cards= new boolean[53];
for( int i=0; i<n; i++ ) {
String pattern = kb.next();
int num = kb.nextInt();
if( "S".equals( pattern ) ) {
cards[ num-1 ]=true;
} else if( "H".equals( pattern ) ) {
cards[ 12+num ]=true;
} else if( "C".equals( pattern ) ) {
cards[ 25+num ]=true;
} else if( "D".equals( pattern ) ) {
cards[ 38+num ]=true;
}
}
for( int i=0; i<52; i++ ) {
if( false == cards[ i ] ) {
int num = i/13;
if( 0 == num ) {
num=(i%13)+1;
System.out.println( "S "+ num);
} else if( 1 == num ) {
num=(i%13)+1;
System.out.println( "H "+num );
} else if( 2 == num ) {
num=(i%13)+1;
System.out.println( "C "+num );
} else if( 3 == num ) {
num=(i%13)+1;
System.out.println( "D "+num );
}
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
17,
41,
13,
39,
17,
17,
17,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
4,
18,
13,
35,
13,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
2,
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
],
[
19,
20
],
[
19,
21
],
[
19,
22
],
[
19,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
44,
49
],
[
41,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
55,
56
],
[
56,
57
],
[
41,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
62,
72
],
[
58,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
75,
85
],
[
58,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
88,
98
],
[
58,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
101,
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
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
139,
145
],
[
138,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
147,
152
],
[
153,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
153,
158
],
[
158,
159
],
[
158,
160
],
[
6,
161
],
[
161,
162
]
] | [
"import java.util.*;\nclass Main{\n public static void main(String[] args) {\n Scanner scan= new Scanner(System.in);\n boolean[][] trump = new boolean[4][13];\n char[] head = {'S' , 'H' , 'C' , 'D'};\n int n = scan.nextInt();\n for (int i = 0; i < n ; i++ ) {\n char head_in = scan.next().charAt(0);\n int num = Integer.parseInt(scan.next());\n\n switch(head_in){\n case 'S':trump[0][num-1] = true;break;\n case 'H':trump[1][num-1] = true;break;\n case 'C':trump[2][num-1] = true;break;\n case 'D':trump[3][num-1] = true;break;\n }\n }\n for (int i =0 ;i < 4 ;i++ ) {\n for (int j = 0;j < 13 ;j++ ) {\n if (trump[i][j] == false) {\n System.out.println(head[i]+\" \"+(j+1));\n\n }\n\n }\n\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[] args) {\n Scanner scan= new Scanner(System.in);\n boolean[][] trump = new boolean[4][13];\n char[] head = {'S' , 'H' , 'C' , 'D'};\n int n = scan.nextInt();\n for (int i = 0; i < n ; i++ ) {\n char head_in = scan.next().charAt(0);\n int num = Integer.parseInt(scan.next());\n\n switch(head_in){\n case 'S':trump[0][num-1] = true;break;\n case 'H':trump[1][num-1] = true;break;\n case 'C':trump[2][num-1] = true;break;\n case 'D':trump[3][num-1] = true;break;\n }\n }\n for (int i =0 ;i < 4 ;i++ ) {\n for (int j = 0;j < 13 ;j++ ) {\n if (trump[i][j] == false) {\n System.out.println(head[i]+\" \"+(j+1));\n\n }\n\n }\n\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan= new Scanner(System.in);\n boolean[][] trump = new boolean[4][13];\n char[] head = {'S' , 'H' , 'C' , 'D'};\n int n = scan.nextInt();\n for (int i = 0; i < n ; i++ ) {\n char head_in = scan.next().charAt(0);\n int num = Integer.parseInt(scan.next());\n\n switch(head_in){\n case 'S':trump[0][num-1] = true;break;\n case 'H':trump[1][num-1] = true;break;\n case 'C':trump[2][num-1] = true;break;\n case 'D':trump[3][num-1] = true;break;\n }\n }\n for (int i =0 ;i < 4 ;i++ ) {\n for (int j = 0;j < 13 ;j++ ) {\n if (trump[i][j] == false) {\n System.out.println(head[i]+\" \"+(j+1));\n\n }\n\n }\n\n }\n }",
"main",
"{\n Scanner scan= new Scanner(System.in);\n boolean[][] trump = new boolean[4][13];\n char[] head = {'S' , 'H' , 'C' , 'D'};\n int n = scan.nextInt();\n for (int i = 0; i < n ; i++ ) {\n char head_in = scan.next().charAt(0);\n int num = Integer.parseInt(scan.next());\n\n switch(head_in){\n case 'S':trump[0][num-1] = true;break;\n case 'H':trump[1][num-1] = true;break;\n case 'C':trump[2][num-1] = true;break;\n case 'D':trump[3][num-1] = true;break;\n }\n }\n for (int i =0 ;i < 4 ;i++ ) {\n for (int j = 0;j < 13 ;j++ ) {\n if (trump[i][j] == false) {\n System.out.println(head[i]+\" \"+(j+1));\n\n }\n\n }\n\n }\n }",
"Scanner scan= new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"boolean[][] trump = new boolean[4][13];",
"trump",
"new boolean[4][13]",
"4",
"13",
"char[] head = {'S' , 'H' , 'C' , 'D'};",
"head",
"{'S' , 'H' , 'C' , 'D'}",
"'S'",
"'H'",
"'C'",
"'D'",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int i = 0; i < n ; i++ ) {\n char head_in = scan.next().charAt(0);\n int num = Integer.parseInt(scan.next());\n\n switch(head_in){\n case 'S':trump[0][num-1] = true;break;\n case 'H':trump[1][num-1] = true;break;\n case 'C':trump[2][num-1] = true;break;\n case 'D':trump[3][num-1] = true;break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n char head_in = scan.next().charAt(0);\n int num = Integer.parseInt(scan.next());\n\n switch(head_in){\n case 'S':trump[0][num-1] = true;break;\n case 'H':trump[1][num-1] = true;break;\n case 'C':trump[2][num-1] = true;break;\n case 'D':trump[3][num-1] = true;break;\n }\n }",
"{\n char head_in = scan.next().charAt(0);\n int num = Integer.parseInt(scan.next());\n\n switch(head_in){\n case 'S':trump[0][num-1] = true;break;\n case 'H':trump[1][num-1] = true;break;\n case 'C':trump[2][num-1] = true;break;\n case 'D':trump[3][num-1] = true;break;\n }\n }",
"char head_in = scan.next().charAt(0);",
"head_in",
"scan.next().charAt(0)",
"scan.next().charAt",
"scan.next()",
"scan.next",
"scan",
"0",
"int num = Integer.parseInt(scan.next());",
"num",
"Integer.parseInt(scan.next())",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"scan",
"switch(head_in){\n case 'S':trump[0][num-1] = true;break;\n case 'H':trump[1][num-1] = true;break;\n case 'C':trump[2][num-1] = true;break;\n case 'D':trump[3][num-1] = true;break;\n }",
"head_in",
"case 'S':",
"'S'",
"case 'S':",
"trump[0][num-1] = true",
"trump[0][num-1]",
"trump[0]",
"trump",
"0",
"num-1",
"num",
"1",
"true",
"break;",
"case 'H':",
"'H'",
"case 'H':",
"trump[1][num-1] = true",
"trump[1][num-1]",
"trump[1]",
"trump",
"1",
"num-1",
"num",
"1",
"true",
"break;",
"case 'C':",
"'C'",
"case 'C':",
"trump[2][num-1] = true",
"trump[2][num-1]",
"trump[2]",
"trump",
"2",
"num-1",
"num",
"1",
"true",
"break;",
"case 'D':",
"'D'",
"case 'D':",
"trump[3][num-1] = true",
"trump[3][num-1]",
"trump[3]",
"trump",
"3",
"num-1",
"num",
"1",
"true",
"break;",
"for (int i =0 ;i < 4 ;i++ ) {\n for (int j = 0;j < 13 ;j++ ) {\n if (trump[i][j] == false) {\n System.out.println(head[i]+\" \"+(j+1));\n\n }\n\n }\n\n }",
"int i =0 ;",
"int i =0 ;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n for (int j = 0;j < 13 ;j++ ) {\n if (trump[i][j] == false) {\n System.out.println(head[i]+\" \"+(j+1));\n\n }\n\n }\n\n }",
"{\n for (int j = 0;j < 13 ;j++ ) {\n if (trump[i][j] == false) {\n System.out.println(head[i]+\" \"+(j+1));\n\n }\n\n }\n\n }",
"for (int j = 0;j < 13 ;j++ ) {\n if (trump[i][j] == false) {\n System.out.println(head[i]+\" \"+(j+1));\n\n }\n\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n if (trump[i][j] == false) {\n System.out.println(head[i]+\" \"+(j+1));\n\n }\n\n }",
"{\n if (trump[i][j] == false) {\n System.out.println(head[i]+\" \"+(j+1));\n\n }\n\n }",
"if (trump[i][j] == false) {\n System.out.println(head[i]+\" \"+(j+1));\n\n }",
"trump[i][j] == false",
"trump[i][j]",
"trump[i]",
"trump",
"i",
"j",
"false",
"{\n System.out.println(head[i]+\" \"+(j+1));\n\n }",
"System.out.println(head[i]+\" \"+(j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"head[i]+\" \"+(j+1)",
"head[i]+\" \"+(j+1)",
"head[i]",
"head",
"i",
"\" \"",
"(j+1)",
"j",
"1",
"String[] args",
"args"
] | import java.util.*;
class Main{
public static void main(String[] args) {
Scanner scan= new Scanner(System.in);
boolean[][] trump = new boolean[4][13];
char[] head = {'S' , 'H' , 'C' , 'D'};
int n = scan.nextInt();
for (int i = 0; i < n ; i++ ) {
char head_in = scan.next().charAt(0);
int num = Integer.parseInt(scan.next());
switch(head_in){
case 'S':trump[0][num-1] = true;break;
case 'H':trump[1][num-1] = true;break;
case 'C':trump[2][num-1] = true;break;
case 'D':trump[3][num-1] = true;break;
}
}
for (int i =0 ;i < 4 ;i++ ) {
for (int j = 0;j < 13 ;j++ ) {
if (trump[i][j] == false) {
System.out.println(head[i]+" "+(j+1));
}
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
39,
17,
17,
17,
17,
41,
13,
20,
28,
13,
13,
30,
30,
4,
18,
13,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
14,
4,
18,
13,
18,
13,
17,
30,
4,
18,
4,
18,
13,
18,
13,
17,
4,
18,
13,
18,
13,
17,
28,
13,
13,
30,
30,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
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
],
[
151,
26
],
[
151,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
38,
39
],
[
39,
40
],
[
29,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
43,
46
],
[
43,
47
],
[
29,
48
],
[
48,
49
],
[
48,
50
],
[
29,
51
],
[
51,
52
],
[
51,
53
],
[
51,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
56,
60
],
[
29,
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
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
73,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
89,
90
],
[
89,
91
],
[
85,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
98,
100
],
[
93,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
104,
106
],
[
29,
107
],
[
107,
108
],
[
107,
109
],
[
107,
110
],
[
111,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
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
],
[
134,
135
],
[
133,
136
],
[
131,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
144,
144
],
[
144,
145
],
[
144,
146
],
[
144,
147
],
[
27,
148
],
[
148,
149
],
[
0,
150
],
[
150,
151
],
[
150,
152
]
] | [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int cardCount = Integer.parseInt(reader.readLine());\n\n String[] marks = {\"S\", \"H\", \"C\", \"D\"};\n Map<String,List<Integer>> cards = new HashMap<String,List<Integer>>();\n for (String mark : marks) {\n cards.put(mark, new ArrayList<Integer>());\n }\n\n for (int i = 0; i < cardCount; i++) {\n String line = reader.readLine();\n String[] in = line.split(\" \");\n if (cards.containsKey(in[0])) {\n cards.get(in[0]).add(Integer.parseInt(in[1]));\n }\n }\n\n for (String mark : marks) {\n List<Integer> cardList = cards.get(mark);\n for (int i = 1; i <= 13; i++) {\n if (!cardList.contains(i)) {\n System.out.println(mark + \" \" + i);\n }\n }\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Map;",
"Map",
"java.util",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int cardCount = Integer.parseInt(reader.readLine());\n\n String[] marks = {\"S\", \"H\", \"C\", \"D\"};\n Map<String,List<Integer>> cards = new HashMap<String,List<Integer>>();\n for (String mark : marks) {\n cards.put(mark, new ArrayList<Integer>());\n }\n\n for (int i = 0; i < cardCount; i++) {\n String line = reader.readLine();\n String[] in = line.split(\" \");\n if (cards.containsKey(in[0])) {\n cards.get(in[0]).add(Integer.parseInt(in[1]));\n }\n }\n\n for (String mark : marks) {\n List<Integer> cardList = cards.get(mark);\n for (int i = 1; i <= 13; i++) {\n if (!cardList.contains(i)) {\n System.out.println(mark + \" \" + i);\n }\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int cardCount = Integer.parseInt(reader.readLine());\n\n String[] marks = {\"S\", \"H\", \"C\", \"D\"};\n Map<String,List<Integer>> cards = new HashMap<String,List<Integer>>();\n for (String mark : marks) {\n cards.put(mark, new ArrayList<Integer>());\n }\n\n for (int i = 0; i < cardCount; i++) {\n String line = reader.readLine();\n String[] in = line.split(\" \");\n if (cards.containsKey(in[0])) {\n cards.get(in[0]).add(Integer.parseInt(in[1]));\n }\n }\n\n for (String mark : marks) {\n List<Integer> cardList = cards.get(mark);\n for (int i = 1; i <= 13; i++) {\n if (!cardList.contains(i)) {\n System.out.println(mark + \" \" + i);\n }\n }\n }\n }",
"main",
"{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int cardCount = Integer.parseInt(reader.readLine());\n\n String[] marks = {\"S\", \"H\", \"C\", \"D\"};\n Map<String,List<Integer>> cards = new HashMap<String,List<Integer>>();\n for (String mark : marks) {\n cards.put(mark, new ArrayList<Integer>());\n }\n\n for (int i = 0; i < cardCount; i++) {\n String line = reader.readLine();\n String[] in = line.split(\" \");\n if (cards.containsKey(in[0])) {\n cards.get(in[0]).add(Integer.parseInt(in[1]));\n }\n }\n\n for (String mark : marks) {\n List<Integer> cardList = cards.get(mark);\n for (int i = 1; i <= 13; i++) {\n if (!cardList.contains(i)) {\n System.out.println(mark + \" \" + i);\n }\n }\n }\n }",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"int cardCount = Integer.parseInt(reader.readLine());",
"cardCount",
"Integer.parseInt(reader.readLine())",
"Integer.parseInt",
"Integer",
"reader.readLine()",
"reader.readLine",
"reader",
"String[] marks = {\"S\", \"H\", \"C\", \"D\"};",
"marks",
"{\"S\", \"H\", \"C\", \"D\"}",
"\"S\"",
"\"H\"",
"\"C\"",
"\"D\"",
"Map<String,List<Integer>> cards = new HashMap<String,List<Integer>>();",
"cards",
"new HashMap<String,List<Integer>>()",
"for (String mark : marks) {\n cards.put(mark, new ArrayList<Integer>());\n }",
"String mark",
"marks",
"{\n cards.put(mark, new ArrayList<Integer>());\n }",
"{\n cards.put(mark, new ArrayList<Integer>());\n }",
"cards.put(mark, new ArrayList<Integer>())",
"cards.put",
"cards",
"mark",
"new ArrayList<Integer>()",
"for (int i = 0; i < cardCount; i++) {\n String line = reader.readLine();\n String[] in = line.split(\" \");\n if (cards.containsKey(in[0])) {\n cards.get(in[0]).add(Integer.parseInt(in[1]));\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < cardCount",
"i",
"cardCount",
"i++",
"i++",
"i",
"{\n String line = reader.readLine();\n String[] in = line.split(\" \");\n if (cards.containsKey(in[0])) {\n cards.get(in[0]).add(Integer.parseInt(in[1]));\n }\n }",
"{\n String line = reader.readLine();\n String[] in = line.split(\" \");\n if (cards.containsKey(in[0])) {\n cards.get(in[0]).add(Integer.parseInt(in[1]));\n }\n }",
"String line = reader.readLine();",
"line",
"reader.readLine()",
"reader.readLine",
"reader",
"String[] in = line.split(\" \");",
"in",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"if (cards.containsKey(in[0])) {\n cards.get(in[0]).add(Integer.parseInt(in[1]));\n }",
"cards.containsKey(in[0])",
"cards.containsKey",
"cards",
"in[0]",
"in",
"0",
"{\n cards.get(in[0]).add(Integer.parseInt(in[1]));\n }",
"cards.get(in[0]).add(Integer.parseInt(in[1]))",
"cards.get(in[0]).add",
"cards.get(in[0])",
"cards.get",
"cards",
"in[0]",
"in",
"0",
"Integer.parseInt(in[1])",
"Integer.parseInt",
"Integer",
"in[1]",
"in",
"1",
"for (String mark : marks) {\n List<Integer> cardList = cards.get(mark);\n for (int i = 1; i <= 13; i++) {\n if (!cardList.contains(i)) {\n System.out.println(mark + \" \" + i);\n }\n }\n }",
"String mark",
"marks",
"{\n List<Integer> cardList = cards.get(mark);\n for (int i = 1; i <= 13; i++) {\n if (!cardList.contains(i)) {\n System.out.println(mark + \" \" + i);\n }\n }\n }",
"{\n List<Integer> cardList = cards.get(mark);\n for (int i = 1; i <= 13; i++) {\n if (!cardList.contains(i)) {\n System.out.println(mark + \" \" + i);\n }\n }\n }",
"List<Integer> cardList = cards.get(mark);",
"cardList",
"cards.get(mark)",
"cards.get",
"cards",
"mark",
"for (int i = 1; i <= 13; i++) {\n if (!cardList.contains(i)) {\n System.out.println(mark + \" \" + i);\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n if (!cardList.contains(i)) {\n System.out.println(mark + \" \" + i);\n }\n }",
"{\n if (!cardList.contains(i)) {\n System.out.println(mark + \" \" + i);\n }\n }",
"if (!cardList.contains(i)) {\n System.out.println(mark + \" \" + i);\n }",
"!cardList.contains(i)",
"cardList.contains(i)",
"cardList.contains",
"cardList",
"i",
"{\n System.out.println(mark + \" \" + i);\n }",
"System.out.println(mark + \" \" + i)",
"System.out.println",
"System.out",
"System",
"System.out",
"mark + \" \" + i",
"mark + \" \" + i",
"mark",
"\" \"",
"i",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int cardCount = Integer.parseInt(reader.readLine());\n\n String[] marks = {\"S\", \"H\", \"C\", \"D\"};\n Map<String,List<Integer>> cards = new HashMap<String,List<Integer>>();\n for (String mark : marks) {\n cards.put(mark, new ArrayList<Integer>());\n }\n\n for (int i = 0; i < cardCount; i++) {\n String line = reader.readLine();\n String[] in = line.split(\" \");\n if (cards.containsKey(in[0])) {\n cards.get(in[0]).add(Integer.parseInt(in[1]));\n }\n }\n\n for (String mark : marks) {\n List<Integer> cardList = cards.get(mark);\n for (int i = 1; i <= 13; i++) {\n if (!cardList.contains(i)) {\n System.out.println(mark + \" \" + i);\n }\n }\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int cardCount = Integer.parseInt(reader.readLine());\n\n String[] marks = {\"S\", \"H\", \"C\", \"D\"};\n Map<String,List<Integer>> cards = new HashMap<String,List<Integer>>();\n for (String mark : marks) {\n cards.put(mark, new ArrayList<Integer>());\n }\n\n for (int i = 0; i < cardCount; i++) {\n String line = reader.readLine();\n String[] in = line.split(\" \");\n if (cards.containsKey(in[0])) {\n cards.get(in[0]).add(Integer.parseInt(in[1]));\n }\n }\n\n for (String mark : marks) {\n List<Integer> cardList = cards.get(mark);\n for (int i = 1; i <= 13; i++) {\n if (!cardList.contains(i)) {\n System.out.println(mark + \" \" + i);\n }\n }\n }\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int cardCount = Integer.parseInt(reader.readLine());
String[] marks = {"S", "H", "C", "D"};
Map<String,List<Integer>> cards = new HashMap<String,List<Integer>>();
for (String mark : marks) {
cards.put(mark, new ArrayList<Integer>());
}
for (int i = 0; i < cardCount; i++) {
String line = reader.readLine();
String[] in = line.split(" ");
if (cards.containsKey(in[0])) {
cards.get(in[0]).add(Integer.parseInt(in[1]));
}
}
for (String mark : marks) {
List<Integer> cardList = cards.get(mark);
for (int i = 1; i <= 13; i++) {
if (!cardList.contains(i)) {
System.out.println(mark + " " + i);
}
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
39,
20,
17,
20,
17,
20,
17,
20,
17,
41,
13,
39,
17,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
2,
4,
18,
13,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
13,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
13,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
13,
17,
30,
0,
18,
18,
13,
17,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
157,
5
],
[
157,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
19,
22
],
[
19,
24
],
[
19,
26
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
30,
32
],
[
30,
33
],
[
30,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
47,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
55,
59
],
[
47,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
60,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
66,
72
],
[
60,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
73,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
79,
85
],
[
73,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
86,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
92,
98
],
[
86,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
100,
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
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
134,
140
],
[
133,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
142,
147
],
[
142,
148
],
[
148,
149
],
[
148,
150
],
[
142,
151
],
[
151,
152
],
[
151,
153
],
[
6,
154
],
[
154,
155
],
[
0,
156
],
[
156,
157
],
[
156,
158
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n int n = stdin.nextInt();\n int[][] card = { new int[13], new int[13], new int[13], new int[13] };\n char[] suit = { 'S', 'H', 'C', 'D' };\n\n for (int i = 0; i < n; i++) {\n String s = stdin.next();\n int j = stdin.nextInt() - 1;\n if (s.equals(\"S\")) {\n card[0][j] = 1;\n } else if (s.equals(\"H\")) {\n card[1][j] = 1;\n } else if (s.equals(\"C\")) {\n card[2][j] = 1;\n } else {\n card[3][j] = 1;\n }\n }\n\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 13; j++) {\n if (card[i][j] == 0) {\n System.out.printf(\"%s %d%n\", suit[i], j + 1);\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 Scanner stdin = new Scanner(System.in);\n int n = stdin.nextInt();\n int[][] card = { new int[13], new int[13], new int[13], new int[13] };\n char[] suit = { 'S', 'H', 'C', 'D' };\n\n for (int i = 0; i < n; i++) {\n String s = stdin.next();\n int j = stdin.nextInt() - 1;\n if (s.equals(\"S\")) {\n card[0][j] = 1;\n } else if (s.equals(\"H\")) {\n card[1][j] = 1;\n } else if (s.equals(\"C\")) {\n card[2][j] = 1;\n } else {\n card[3][j] = 1;\n }\n }\n\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 13; j++) {\n if (card[i][j] == 0) {\n System.out.printf(\"%s %d%n\", suit[i], j + 1);\n }\n }\n }\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n int n = stdin.nextInt();\n int[][] card = { new int[13], new int[13], new int[13], new int[13] };\n char[] suit = { 'S', 'H', 'C', 'D' };\n\n for (int i = 0; i < n; i++) {\n String s = stdin.next();\n int j = stdin.nextInt() - 1;\n if (s.equals(\"S\")) {\n card[0][j] = 1;\n } else if (s.equals(\"H\")) {\n card[1][j] = 1;\n } else if (s.equals(\"C\")) {\n card[2][j] = 1;\n } else {\n card[3][j] = 1;\n }\n }\n\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 13; j++) {\n if (card[i][j] == 0) {\n System.out.printf(\"%s %d%n\", suit[i], j + 1);\n }\n }\n }\n }",
"main",
"{\n Scanner stdin = new Scanner(System.in);\n int n = stdin.nextInt();\n int[][] card = { new int[13], new int[13], new int[13], new int[13] };\n char[] suit = { 'S', 'H', 'C', 'D' };\n\n for (int i = 0; i < n; i++) {\n String s = stdin.next();\n int j = stdin.nextInt() - 1;\n if (s.equals(\"S\")) {\n card[0][j] = 1;\n } else if (s.equals(\"H\")) {\n card[1][j] = 1;\n } else if (s.equals(\"C\")) {\n card[2][j] = 1;\n } else {\n card[3][j] = 1;\n }\n }\n\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 13; j++) {\n if (card[i][j] == 0) {\n System.out.printf(\"%s %d%n\", suit[i], j + 1);\n }\n }\n }\n }",
"Scanner stdin = new Scanner(System.in);",
"stdin",
"new Scanner(System.in)",
"int n = stdin.nextInt();",
"n",
"stdin.nextInt()",
"stdin.nextInt",
"stdin",
"int[][] card = { new int[13], new int[13], new int[13], new int[13] };",
"card",
"{ new int[13], new int[13], new int[13], new int[13] }",
"new int[13]",
"13",
"new int[13]",
"13",
"new int[13]",
"13",
"new int[13]",
"13",
"char[] suit = { 'S', 'H', 'C', 'D' };",
"suit",
"{ 'S', 'H', 'C', 'D' }",
"'S'",
"'H'",
"'C'",
"'D'",
"for (int i = 0; i < n; i++) {\n String s = stdin.next();\n int j = stdin.nextInt() - 1;\n if (s.equals(\"S\")) {\n card[0][j] = 1;\n } else if (s.equals(\"H\")) {\n card[1][j] = 1;\n } else if (s.equals(\"C\")) {\n card[2][j] = 1;\n } else {\n card[3][j] = 1;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String s = stdin.next();\n int j = stdin.nextInt() - 1;\n if (s.equals(\"S\")) {\n card[0][j] = 1;\n } else if (s.equals(\"H\")) {\n card[1][j] = 1;\n } else if (s.equals(\"C\")) {\n card[2][j] = 1;\n } else {\n card[3][j] = 1;\n }\n }",
"{\n String s = stdin.next();\n int j = stdin.nextInt() - 1;\n if (s.equals(\"S\")) {\n card[0][j] = 1;\n } else if (s.equals(\"H\")) {\n card[1][j] = 1;\n } else if (s.equals(\"C\")) {\n card[2][j] = 1;\n } else {\n card[3][j] = 1;\n }\n }",
"String s = stdin.next();",
"s",
"stdin.next()",
"stdin.next",
"stdin",
"int j = stdin.nextInt() - 1;",
"j",
"stdin.nextInt() - 1",
"stdin.nextInt()",
"stdin.nextInt",
"stdin",
"1",
"if (s.equals(\"S\")) {\n card[0][j] = 1;\n } else if (s.equals(\"H\")) {\n card[1][j] = 1;\n } else if (s.equals(\"C\")) {\n card[2][j] = 1;\n } else {\n card[3][j] = 1;\n }",
"s.equals(\"S\")",
"s.equals",
"s",
"\"S\"",
"{\n card[0][j] = 1;\n }",
"card[0][j] = 1",
"card[0][j]",
"card[0]",
"card",
"0",
"j",
"1",
"if (s.equals(\"H\")) {\n card[1][j] = 1;\n } else if (s.equals(\"C\")) {\n card[2][j] = 1;\n } else {\n card[3][j] = 1;\n }",
"s.equals(\"H\")",
"s.equals",
"s",
"\"H\"",
"{\n card[1][j] = 1;\n }",
"card[1][j] = 1",
"card[1][j]",
"card[1]",
"card",
"1",
"j",
"1",
"if (s.equals(\"C\")) {\n card[2][j] = 1;\n } else {\n card[3][j] = 1;\n }",
"s.equals(\"C\")",
"s.equals",
"s",
"\"C\"",
"{\n card[2][j] = 1;\n }",
"card[2][j] = 1",
"card[2][j]",
"card[2]",
"card",
"2",
"j",
"1",
"{\n card[3][j] = 1;\n }",
"card[3][j] = 1",
"card[3][j]",
"card[3]",
"card",
"3",
"j",
"1",
"for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 13; j++) {\n if (card[i][j] == 0) {\n System.out.printf(\"%s %d%n\", suit[i], j + 1);\n }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < 13; j++) {\n if (card[i][j] == 0) {\n System.out.printf(\"%s %d%n\", suit[i], j + 1);\n }\n }\n }",
"{\n for (int j = 0; j < 13; j++) {\n if (card[i][j] == 0) {\n System.out.printf(\"%s %d%n\", suit[i], j + 1);\n }\n }\n }",
"for (int j = 0; j < 13; j++) {\n if (card[i][j] == 0) {\n System.out.printf(\"%s %d%n\", suit[i], j + 1);\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n if (card[i][j] == 0) {\n System.out.printf(\"%s %d%n\", suit[i], j + 1);\n }\n }",
"{\n if (card[i][j] == 0) {\n System.out.printf(\"%s %d%n\", suit[i], j + 1);\n }\n }",
"if (card[i][j] == 0) {\n System.out.printf(\"%s %d%n\", suit[i], j + 1);\n }",
"card[i][j] == 0",
"card[i][j]",
"card[i]",
"card",
"i",
"j",
"0",
"{\n System.out.printf(\"%s %d%n\", suit[i], j + 1);\n }",
"System.out.printf(\"%s %d%n\", suit[i], j + 1)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%s %d%n\"",
"suit[i]",
"suit",
"i",
"j + 1",
"j",
"1",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n int n = stdin.nextInt();\n int[][] card = { new int[13], new int[13], new int[13], new int[13] };\n char[] suit = { 'S', 'H', 'C', 'D' };\n\n for (int i = 0; i < n; i++) {\n String s = stdin.next();\n int j = stdin.nextInt() - 1;\n if (s.equals(\"S\")) {\n card[0][j] = 1;\n } else if (s.equals(\"H\")) {\n card[1][j] = 1;\n } else if (s.equals(\"C\")) {\n card[2][j] = 1;\n } else {\n card[3][j] = 1;\n }\n }\n\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 13; j++) {\n if (card[i][j] == 0) {\n System.out.printf(\"%s %d%n\", suit[i], j + 1);\n }\n }\n }\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n int n = stdin.nextInt();\n int[][] card = { new int[13], new int[13], new int[13], new int[13] };\n char[] suit = { 'S', 'H', 'C', 'D' };\n\n for (int i = 0; i < n; i++) {\n String s = stdin.next();\n int j = stdin.nextInt() - 1;\n if (s.equals(\"S\")) {\n card[0][j] = 1;\n } else if (s.equals(\"H\")) {\n card[1][j] = 1;\n } else if (s.equals(\"C\")) {\n card[2][j] = 1;\n } else {\n card[3][j] = 1;\n }\n }\n\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 13; j++) {\n if (card[i][j] == 0) {\n System.out.printf(\"%s %d%n\", suit[i], j + 1);\n }\n }\n }\n }\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdin = new Scanner(System.in);
int n = stdin.nextInt();
int[][] card = { new int[13], new int[13], new int[13], new int[13] };
char[] suit = { 'S', 'H', 'C', 'D' };
for (int i = 0; i < n; i++) {
String s = stdin.next();
int j = stdin.nextInt() - 1;
if (s.equals("S")) {
card[0][j] = 1;
} else if (s.equals("H")) {
card[1][j] = 1;
} else if (s.equals("C")) {
card[2][j] = 1;
} else {
card[3][j] = 1;
}
}
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 13; j++) {
if (card[i][j] == 0) {
System.out.printf("%s %d%n", suit[i], j + 1);
}
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
20,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
0,
18,
18,
13,
13,
13,
17,
41,
13,
20,
0,
13,
4,
18,
13,
41,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
13,
17,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
13,
17,
0,
18,
18,
13,
17,
2,
13,
17,
17,
0,
18,
18,
13,
17,
2,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
14,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
11,
13
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
16,
24
],
[
24,
25
],
[
25,
26
],
[
16,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
40,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
8,
55
],
[
55,
56
],
[
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
],
[
73,
74
],
[
71,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
71,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
71,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
85,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
85,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
99,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
109,
110
],
[
109,
111
],
[
104,
112
],
[
99,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
113,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
123,
125
],
[
118,
126
],
[
113,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
132,
134
],
[
127,
135
],
[
8,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
141,
142
],
[
141,
143
],
[
136,
144
],
[
144,
145
],
[
145,
146
],
[
136,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
153,
154
],
[
153,
155
],
[
148,
156
],
[
156,
157
],
[
157,
158
],
[
148,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
161,
167
],
[
160,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
173,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
180,
182
],
[
169,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
183,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
187,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
194,
196
],
[
183,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
197,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
201,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
208,
210
],
[
197,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
211,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
218,
220
],
[
6,
221
],
[
221,
222
]
] | [
"import java.util.Scanner;\n \nclass Main{\n public static void main(String[] arg){\n int n;\n int [][] card = new int[4][13];\n\n for(int i=0; i<4; i++)\n for(int j=0; j<13; j++)\n card[i][j] = 0;\n\n Scanner in = new Scanner(System.in);\n\n n = in.nextInt();\n\n String mark;\n int su;\n\n for(int i=0; i<n; i++){\n in.nextLine();\n mark = in.next();\n su = in.nextInt();\n\n if(mark.equals(\"S\"))\n card[0][su-1] = 1;\n else if(mark.equals(\"H\"))\n card[1][su-1] = 1;\n else if(mark.equals(\"C\"))\n card[2][su-1] = 1;\n else\n card[3][su-1] = 1;\n }\n\n for(int i=0; i<4; i++)\n for(int j=0; j<13; j++)\n if(card[i][j] == 0){\n if(i == 0)\n System.out.println(\"S \" + (j+1));\n else if(i == 1)\n System.out.println(\"H \" + (j+1));\n else if(i == 2)\n System.out.println(\"C \" + (j+1));\n else\n System.out.println(\"D \" + (j+1));\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] arg){\n int n;\n int [][] card = new int[4][13];\n\n for(int i=0; i<4; i++)\n for(int j=0; j<13; j++)\n card[i][j] = 0;\n\n Scanner in = new Scanner(System.in);\n\n n = in.nextInt();\n\n String mark;\n int su;\n\n for(int i=0; i<n; i++){\n in.nextLine();\n mark = in.next();\n su = in.nextInt();\n\n if(mark.equals(\"S\"))\n card[0][su-1] = 1;\n else if(mark.equals(\"H\"))\n card[1][su-1] = 1;\n else if(mark.equals(\"C\"))\n card[2][su-1] = 1;\n else\n card[3][su-1] = 1;\n }\n\n for(int i=0; i<4; i++)\n for(int j=0; j<13; j++)\n if(card[i][j] == 0){\n if(i == 0)\n System.out.println(\"S \" + (j+1));\n else if(i == 1)\n System.out.println(\"H \" + (j+1));\n else if(i == 2)\n System.out.println(\"C \" + (j+1));\n else\n System.out.println(\"D \" + (j+1));\n }\n }\n}",
"Main",
"public static void main(String[] arg){\n int n;\n int [][] card = new int[4][13];\n\n for(int i=0; i<4; i++)\n for(int j=0; j<13; j++)\n card[i][j] = 0;\n\n Scanner in = new Scanner(System.in);\n\n n = in.nextInt();\n\n String mark;\n int su;\n\n for(int i=0; i<n; i++){\n in.nextLine();\n mark = in.next();\n su = in.nextInt();\n\n if(mark.equals(\"S\"))\n card[0][su-1] = 1;\n else if(mark.equals(\"H\"))\n card[1][su-1] = 1;\n else if(mark.equals(\"C\"))\n card[2][su-1] = 1;\n else\n card[3][su-1] = 1;\n }\n\n for(int i=0; i<4; i++)\n for(int j=0; j<13; j++)\n if(card[i][j] == 0){\n if(i == 0)\n System.out.println(\"S \" + (j+1));\n else if(i == 1)\n System.out.println(\"H \" + (j+1));\n else if(i == 2)\n System.out.println(\"C \" + (j+1));\n else\n System.out.println(\"D \" + (j+1));\n }\n }",
"main",
"{\n int n;\n int [][] card = new int[4][13];\n\n for(int i=0; i<4; i++)\n for(int j=0; j<13; j++)\n card[i][j] = 0;\n\n Scanner in = new Scanner(System.in);\n\n n = in.nextInt();\n\n String mark;\n int su;\n\n for(int i=0; i<n; i++){\n in.nextLine();\n mark = in.next();\n su = in.nextInt();\n\n if(mark.equals(\"S\"))\n card[0][su-1] = 1;\n else if(mark.equals(\"H\"))\n card[1][su-1] = 1;\n else if(mark.equals(\"C\"))\n card[2][su-1] = 1;\n else\n card[3][su-1] = 1;\n }\n\n for(int i=0; i<4; i++)\n for(int j=0; j<13; j++)\n if(card[i][j] == 0){\n if(i == 0)\n System.out.println(\"S \" + (j+1));\n else if(i == 1)\n System.out.println(\"H \" + (j+1));\n else if(i == 2)\n System.out.println(\"C \" + (j+1));\n else\n System.out.println(\"D \" + (j+1));\n }\n }",
"int n;",
"n",
"int [][] card = new int[4][13];",
"card",
"new int[4][13]",
"4",
"13",
"for(int i=0; i<4; i++)\n for(int j=0; j<13; j++)\n card[i][j] = 0;",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"for(int j=0; j<13; j++)\n card[i][j] = 0;",
"for(int j=0; j<13; j++)\n card[i][j] = 0;",
"int j=0;",
"int j=0;",
"j",
"0",
"j<13",
"j",
"13",
"j++",
"j++",
"j",
"card[i][j] = 0;",
"card[i][j] = 0",
"card[i][j]",
"card[i]",
"card",
"i",
"j",
"0",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"n = in.nextInt()",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"String mark;",
"mark",
"int su;",
"su",
"for(int i=0; i<n; i++){\n in.nextLine();\n mark = in.next();\n su = in.nextInt();\n\n if(mark.equals(\"S\"))\n card[0][su-1] = 1;\n else if(mark.equals(\"H\"))\n card[1][su-1] = 1;\n else if(mark.equals(\"C\"))\n card[2][su-1] = 1;\n else\n card[3][su-1] = 1;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n in.nextLine();\n mark = in.next();\n su = in.nextInt();\n\n if(mark.equals(\"S\"))\n card[0][su-1] = 1;\n else if(mark.equals(\"H\"))\n card[1][su-1] = 1;\n else if(mark.equals(\"C\"))\n card[2][su-1] = 1;\n else\n card[3][su-1] = 1;\n }",
"{\n in.nextLine();\n mark = in.next();\n su = in.nextInt();\n\n if(mark.equals(\"S\"))\n card[0][su-1] = 1;\n else if(mark.equals(\"H\"))\n card[1][su-1] = 1;\n else if(mark.equals(\"C\"))\n card[2][su-1] = 1;\n else\n card[3][su-1] = 1;\n }",
"in.nextLine()",
"in.nextLine",
"in",
"mark = in.next()",
"mark",
"in.next()",
"in.next",
"in",
"su = in.nextInt()",
"su",
"in.nextInt()",
"in.nextInt",
"in",
"if(mark.equals(\"S\"))\n card[0][su-1] = 1;\n else if(mark.equals(\"H\"))\n card[1][su-1] = 1;\n else if(mark.equals(\"C\"))\n card[2][su-1] = 1;\n else\n card[3][su-1] = 1;",
"mark.equals(\"S\")",
"mark.equals",
"mark",
"\"S\"",
"card[0][su-1] = 1",
"card[0][su-1]",
"card[0]",
"card",
"0",
"su-1",
"su",
"1",
"1",
"if(mark.equals(\"H\"))\n card[1][su-1] = 1;\n else if(mark.equals(\"C\"))\n card[2][su-1] = 1;\n else\n card[3][su-1] = 1;",
"mark.equals(\"H\")",
"mark.equals",
"mark",
"\"H\"",
"card[1][su-1] = 1",
"card[1][su-1]",
"card[1]",
"card",
"1",
"su-1",
"su",
"1",
"1",
"if(mark.equals(\"C\"))\n card[2][su-1] = 1;\n else\n card[3][su-1] = 1;",
"mark.equals(\"C\")",
"mark.equals",
"mark",
"\"C\"",
"card[2][su-1] = 1",
"card[2][su-1]",
"card[2]",
"card",
"2",
"su-1",
"su",
"1",
"1",
"card[3][su-1] = 1",
"card[3][su-1]",
"card[3]",
"card",
"3",
"su-1",
"su",
"1",
"1",
"for(int i=0; i<4; i++)\n for(int j=0; j<13; j++)\n if(card[i][j] == 0){\n if(i == 0)\n System.out.println(\"S \" + (j+1));\n else if(i == 1)\n System.out.println(\"H \" + (j+1));\n else if(i == 2)\n System.out.println(\"C \" + (j+1));\n else\n System.out.println(\"D \" + (j+1));\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"for(int j=0; j<13; j++)\n if(card[i][j] == 0){\n if(i == 0)\n System.out.println(\"S \" + (j+1));\n else if(i == 1)\n System.out.println(\"H \" + (j+1));\n else if(i == 2)\n System.out.println(\"C \" + (j+1));\n else\n System.out.println(\"D \" + (j+1));\n }",
"for(int j=0; j<13; j++)\n if(card[i][j] == 0){\n if(i == 0)\n System.out.println(\"S \" + (j+1));\n else if(i == 1)\n System.out.println(\"H \" + (j+1));\n else if(i == 2)\n System.out.println(\"C \" + (j+1));\n else\n System.out.println(\"D \" + (j+1));\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<13",
"j",
"13",
"j++",
"j++",
"j",
"if(card[i][j] == 0){\n if(i == 0)\n System.out.println(\"S \" + (j+1));\n else if(i == 1)\n System.out.println(\"H \" + (j+1));\n else if(i == 2)\n System.out.println(\"C \" + (j+1));\n else\n System.out.println(\"D \" + (j+1));\n }",
"if(card[i][j] == 0){\n if(i == 0)\n System.out.println(\"S \" + (j+1));\n else if(i == 1)\n System.out.println(\"H \" + (j+1));\n else if(i == 2)\n System.out.println(\"C \" + (j+1));\n else\n System.out.println(\"D \" + (j+1));\n }",
"card[i][j] == 0",
"card[i][j]",
"card[i]",
"card",
"i",
"j",
"0",
"{\n if(i == 0)\n System.out.println(\"S \" + (j+1));\n else if(i == 1)\n System.out.println(\"H \" + (j+1));\n else if(i == 2)\n System.out.println(\"C \" + (j+1));\n else\n System.out.println(\"D \" + (j+1));\n }",
"if(i == 0)\n System.out.println(\"S \" + (j+1));\n else if(i == 1)\n System.out.println(\"H \" + (j+1));\n else if(i == 2)\n System.out.println(\"C \" + (j+1));\n else\n System.out.println(\"D \" + (j+1));",
"i == 0",
"i",
"0",
"System.out.println(\"S \" + (j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \" + (j+1)",
"\"S \"",
"(j+1)",
"j",
"1",
"if(i == 1)\n System.out.println(\"H \" + (j+1));\n else if(i == 2)\n System.out.println(\"C \" + (j+1));\n else\n System.out.println(\"D \" + (j+1));",
"i == 1",
"i",
"1",
"System.out.println(\"H \" + (j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \" + (j+1)",
"\"H \"",
"(j+1)",
"j",
"1",
"if(i == 2)\n System.out.println(\"C \" + (j+1));\n else\n System.out.println(\"D \" + (j+1));",
"i == 2",
"i",
"2",
"System.out.println(\"C \" + (j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \" + (j+1)",
"\"C \"",
"(j+1)",
"j",
"1",
"System.out.println(\"D \" + (j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \" + (j+1)",
"\"D \"",
"(j+1)",
"j",
"1",
"String[] arg",
"arg"
] | import java.util.Scanner;
class Main{
public static void main(String[] arg){
int n;
int [][] card = new int[4][13];
for(int i=0; i<4; i++)
for(int j=0; j<13; j++)
card[i][j] = 0;
Scanner in = new Scanner(System.in);
n = in.nextInt();
String mark;
int su;
for(int i=0; i<n; i++){
in.nextLine();
mark = in.next();
su = in.nextInt();
if(mark.equals("S"))
card[0][su-1] = 1;
else if(mark.equals("H"))
card[1][su-1] = 1;
else if(mark.equals("C"))
card[2][su-1] = 1;
else
card[3][su-1] = 1;
}
for(int i=0; i<4; i++)
for(int j=0; j<13; j++)
if(card[i][j] == 0){
if(i == 0)
System.out.println("S " + (j+1));
else if(i == 1)
System.out.println("H " + (j+1));
else if(i == 2)
System.out.println("C " + (j+1));
else
System.out.println("D " + (j+1));
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
39,
17,
17,
17,
17,
41,
13,
20,
4,
18,
13,
42,
4,
18,
13,
30,
4,
18,
13,
4,
18,
13,
41,
13,
28,
13,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
13,
13,
14,
40,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
4,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
14,
17
],
[
14,
18
],
[
11,
19
],
[
19,
20
],
[
19,
21
],
[
11,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
25,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
34,
35
],
[
11,
36
],
[
36,
37
],
[
11,
38
],
[
38,
39
],
[
38,
40
],
[
38,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
43,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
9,
74
],
[
74,
75
]
] | [
"import java.util.*;\nclass Main{\n\tstatic Scanner s = new Scanner(System.in);\n\tpublic static void main(String[] args){\n\t\tString[] suit = {\"S \",\"H \",\"C \",\"D \"};\n\t\tTreeSet<String> in = new TreeSet<>();\n\t\ts.nextLine();\n\t\twhile(s.hasNextLine()) {\n\t\t\tin.add(s.nextLine());\n\t\t}\n\t\tString str;\n\t\tfor(String s:suit) {\n\t\t\tfor(int i=1;i<=13;++i) {\n\t\t\t\tstr = s+i;\n\t\t\t\tif(!in.contains(str)) {\n\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n\tstatic Scanner s = new Scanner(System.in);\n\tpublic static void main(String[] args){\n\t\tString[] suit = {\"S \",\"H \",\"C \",\"D \"};\n\t\tTreeSet<String> in = new TreeSet<>();\n\t\ts.nextLine();\n\t\twhile(s.hasNextLine()) {\n\t\t\tin.add(s.nextLine());\n\t\t}\n\t\tString str;\n\t\tfor(String s:suit) {\n\t\t\tfor(int i=1;i<=13;++i) {\n\t\t\t\tstr = s+i;\n\t\t\t\tif(!in.contains(str)) {\n\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"static Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"public static void main(String[] args){\n\t\tString[] suit = {\"S \",\"H \",\"C \",\"D \"};\n\t\tTreeSet<String> in = new TreeSet<>();\n\t\ts.nextLine();\n\t\twhile(s.hasNextLine()) {\n\t\t\tin.add(s.nextLine());\n\t\t}\n\t\tString str;\n\t\tfor(String s:suit) {\n\t\t\tfor(int i=1;i<=13;++i) {\n\t\t\t\tstr = s+i;\n\t\t\t\tif(!in.contains(str)) {\n\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tString[] suit = {\"S \",\"H \",\"C \",\"D \"};\n\t\tTreeSet<String> in = new TreeSet<>();\n\t\ts.nextLine();\n\t\twhile(s.hasNextLine()) {\n\t\t\tin.add(s.nextLine());\n\t\t}\n\t\tString str;\n\t\tfor(String s:suit) {\n\t\t\tfor(int i=1;i<=13;++i) {\n\t\t\t\tstr = s+i;\n\t\t\t\tif(!in.contains(str)) {\n\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"String[] suit = {\"S \",\"H \",\"C \",\"D \"};",
"suit",
"{\"S \",\"H \",\"C \",\"D \"}",
"\"S \"",
"\"H \"",
"\"C \"",
"\"D \"",
"TreeSet<String> in = new TreeSet<>();",
"in",
"new TreeSet<>()",
"s.nextLine()",
"s.nextLine",
"s",
"while(s.hasNextLine()) {\n\t\t\tin.add(s.nextLine());\n\t\t}",
"s.hasNextLine()",
"s.hasNextLine",
"s",
"{\n\t\t\tin.add(s.nextLine());\n\t\t}",
"in.add(s.nextLine())",
"in.add",
"in",
"s.nextLine()",
"s.nextLine",
"s",
"String str;",
"str",
"for(String s:suit) {\n\t\t\tfor(int i=1;i<=13;++i) {\n\t\t\t\tstr = s+i;\n\t\t\t\tif(!in.contains(str)) {\n\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"String s",
"suit",
"{\n\t\t\tfor(int i=1;i<=13;++i) {\n\t\t\t\tstr = s+i;\n\t\t\t\tif(!in.contains(str)) {\n\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int i=1;i<=13;++i) {\n\t\t\t\tstr = s+i;\n\t\t\t\tif(!in.contains(str)) {\n\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int i=1;i<=13;++i) {\n\t\t\t\tstr = s+i;\n\t\t\t\tif(!in.contains(str)) {\n\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t}\n\t\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=13",
"i",
"13",
"++i",
"++i",
"i",
"{\n\t\t\t\tstr = s+i;\n\t\t\t\tif(!in.contains(str)) {\n\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tstr = s+i;\n\t\t\t\tif(!in.contains(str)) {\n\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t}\n\t\t\t}",
"str = s+i",
"str",
"s+i",
"s",
"i",
"if(!in.contains(str)) {\n\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t}",
"!in.contains(str)",
"in.contains(str)",
"in.contains",
"in",
"str",
"{\n\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t}",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"String[] args",
"args"
] | import java.util.*;
class Main{
static Scanner s = new Scanner(System.in);
public static void main(String[] args){
String[] suit = {"S ","H ","C ","D "};
TreeSet<String> in = new TreeSet<>();
s.nextLine();
while(s.hasNextLine()) {
in.add(s.nextLine());
}
String str;
for(String s:suit) {
for(int i=1;i<=13;++i) {
str = s+i;
if(!in.contains(str)) {
System.out.println(str);
}
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
4,
18,
13,
17,
30,
4,
18,
13,
13,
14,
4,
18,
13,
17,
30,
4,
18,
13,
13,
14,
4,
18,
13,
17,
30,
4,
18,
13,
13,
14,
4,
18,
13,
17,
30,
4,
18,
13,
13,
41,
13,
20,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
18,
13,
13,
14,
2,
13,
17,
4,
13,
13,
13,
14,
2,
13,
17,
4,
13,
13,
13,
14,
2,
13,
17,
4,
13,
13,
13,
4,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
13,
4,
18,
13,
13,
0,
18,
13,
2,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
2,
13,
17,
23,
13,
23,
13,
12,
13,
30,
35,
13,
34,
17,
1,
4,
13,
13,
13,
3,
34,
17,
1,
4,
13,
13,
13,
3,
34,
17,
1,
4,
13,
13,
13,
3,
34,
17,
1,
4,
13,
13,
13,
3,
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
],
[
298,
11
],
[
298,
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
],
[
14,
32
],
[
32,
33
],
[
32,
34
],
[
14,
35
],
[
35,
36
],
[
35,
37
],
[
14,
38
],
[
38,
39
],
[
38,
40
],
[
14,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
53,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
53,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
70,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
70,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
80,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
80,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
90,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
90,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
100,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
14,
110
],
[
110,
111
],
[
110,
112
],
[
14,
113
],
[
113,
114
],
[
113,
115
],
[
14,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
123,
125
],
[
116,
126
],
[
126,
127
],
[
127,
128
],
[
116,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
133,
135
],
[
130,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
140,
141
],
[
140,
142
],
[
140,
143
],
[
136,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
148,
150
],
[
148,
151
],
[
144,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
156,
157
],
[
156,
158
],
[
156,
159
],
[
152,
160
],
[
160,
161
],
[
160,
162
],
[
160,
163
],
[
12,
164
],
[
164,
165
],
[
298,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
169,
172
],
[
168,
173
],
[
173,
174
],
[
173,
175
],
[
168,
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
],
[
197,
198
],
[
198,
199
],
[
190,
200
],
[
200,
201
],
[
201,
202
],
[
190,
203
],
[
204,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
209,
210
],
[
208,
211
],
[
205,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
215,
217
],
[
212,
218
],
[
168,
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
],
[
233,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
235,
239
],
[
234,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
240,
245
],
[
246,
246
],
[
246,
247
],
[
246,
248
],
[
246,
249
],
[
249,
250
],
[
249,
251
],
[
166,
252
],
[
252,
253
],
[
166,
254
],
[
254,
255
],
[
298,
256
],
[
256,
257
],
[
256,
258
],
[
258,
259
],
[
259,
260
],
[
259,
261
],
[
261,
262
],
[
261,
263
],
[
263,
264
],
[
264,
265
],
[
264,
266
],
[
264,
267
],
[
263,
268
],
[
259,
269
],
[
269,
270
],
[
269,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
272,
275
],
[
271,
276
],
[
259,
277
],
[
277,
278
],
[
277,
279
],
[
279,
280
],
[
280,
281
],
[
280,
282
],
[
280,
283
],
[
279,
284
],
[
259,
285
],
[
285,
286
],
[
285,
287
],
[
287,
288
],
[
288,
289
],
[
288,
290
],
[
288,
291
],
[
287,
292
],
[
256,
293
],
[
293,
294
],
[
256,
295
],
[
295,
296
],
[
0,
297
],
[
297,
298
],
[
297,
299
]
] | [
"\n\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Scanner;\n\npublic class Main{\n\n\t/*\n\t * ???52???\n\t *\n\t * ???????????????????????????????????????????????? ??????????????? ???n <= 52???\n\t *\n\t */\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t// ?????±??\\???\n\t\tString card = sc.next();\n\t\tint rank = Integer.parseInt(card);\n\n\t\tArrayList<Integer> S_card = new ArrayList<Integer>(); // ????????????\n\t\tArrayList<Integer> H_card = new ArrayList<Integer>(); // ?????????\n\t\tArrayList<Integer> C_card = new ArrayList<Integer>(); // ?????????\n\t\tArrayList<Integer> D_card = new ArrayList<Integer>(); // ?????????\n\n\t\tfor (int i = 0; i < rank; i++) {\n\t\t\t// ??????\n\t\t\tString shape = sc.next();\n\t\t\tString no = sc.next();\n\t\t\tint choice = Integer.parseInt(no);\n\t\t\tif (shape.equals(\"S\")) {\n\t\t\t\tS_card.add(choice);\n\t\t\t} else if (shape.equals(\"H\")) {\n\t\t\t\tH_card.add(choice);\n\t\t\t} else if (shape.equals(\"C\")) {\n\t\t\t\tC_card.add(choice);\n\t\t\t} else if (shape.equals(\"D\")) {\n\t\t\t\tD_card.add(choice);\n\t\t\t}\n\t\t}\n\n\t\t// ??¢?´¢\n\t\t// ?¶???????????????????\n\n\t\tString[] cardShape = new String[] { \"S\", \"H\", \"C\", \"D\" };\n\t\tString swi = \"\";\n\t\tfor (int i = 0; i < cardShape.length; i++) {\n\t\t\tswi = cardShape[i];\n\t\t\tif (swi == \"S\")\n\t\t\t\tswi_method(swi, S_card);\n\t\t\telse if(swi == \"H\")\n\t\t\t\tswi_method(swi, H_card);\n\t\t\telse if(swi == \"C\")\n\t\t\t\tswi_method(swi, C_card);\n\t\t\telse\n\t\t\t\tswi_method(swi, D_card);\n\n\t\t}\n\n\t}\n\n\tstatic void check(String cardShape, ArrayList<Integer> cArd_N) {\n\t\tCollections.sort(cArd_N);\n\n\t\t\n\n\t\tboolean[] chk_arr = new boolean[13];\n\t\tfor (int i = 1; i <= 13; i++) {\n\t\t\tfor (int j = 0; j < cArd_N.size(); j++) {\n\t\t\t\tif (i == cArd_N.get(j))\n\t\t\t\t\tchk_arr[i-1] = true;\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < chk_arr.length; j++) {\n\t\t\tif (chk_arr[j] == false)\n\t\t\t\tSystem.out.println(cardShape + \" \" + (j + 1));\n\t\t}\n\t}\n\n\tstatic void swi_method(String swi, ArrayList<Integer> cArd_N) {\n\t\tswitch (swi) {\n\t\tcase \"S\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\tcase \"H\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\tcase \"C\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\tcase \"D\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\t}\n\t}\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n\t/*\n\t * ???52???\n\t *\n\t * ???????????????????????????????????????????????? ??????????????? ???n <= 52???\n\t *\n\t */\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t// ?????±??\\???\n\t\tString card = sc.next();\n\t\tint rank = Integer.parseInt(card);\n\n\t\tArrayList<Integer> S_card = new ArrayList<Integer>(); // ????????????\n\t\tArrayList<Integer> H_card = new ArrayList<Integer>(); // ?????????\n\t\tArrayList<Integer> C_card = new ArrayList<Integer>(); // ?????????\n\t\tArrayList<Integer> D_card = new ArrayList<Integer>(); // ?????????\n\n\t\tfor (int i = 0; i < rank; i++) {\n\t\t\t// ??????\n\t\t\tString shape = sc.next();\n\t\t\tString no = sc.next();\n\t\t\tint choice = Integer.parseInt(no);\n\t\t\tif (shape.equals(\"S\")) {\n\t\t\t\tS_card.add(choice);\n\t\t\t} else if (shape.equals(\"H\")) {\n\t\t\t\tH_card.add(choice);\n\t\t\t} else if (shape.equals(\"C\")) {\n\t\t\t\tC_card.add(choice);\n\t\t\t} else if (shape.equals(\"D\")) {\n\t\t\t\tD_card.add(choice);\n\t\t\t}\n\t\t}\n\n\t\t// ??¢?´¢\n\t\t// ?¶???????????????????\n\n\t\tString[] cardShape = new String[] { \"S\", \"H\", \"C\", \"D\" };\n\t\tString swi = \"\";\n\t\tfor (int i = 0; i < cardShape.length; i++) {\n\t\t\tswi = cardShape[i];\n\t\t\tif (swi == \"S\")\n\t\t\t\tswi_method(swi, S_card);\n\t\t\telse if(swi == \"H\")\n\t\t\t\tswi_method(swi, H_card);\n\t\t\telse if(swi == \"C\")\n\t\t\t\tswi_method(swi, C_card);\n\t\t\telse\n\t\t\t\tswi_method(swi, D_card);\n\n\t\t}\n\n\t}\n\n\tstatic void check(String cardShape, ArrayList<Integer> cArd_N) {\n\t\tCollections.sort(cArd_N);\n\n\t\t\n\n\t\tboolean[] chk_arr = new boolean[13];\n\t\tfor (int i = 1; i <= 13; i++) {\n\t\t\tfor (int j = 0; j < cArd_N.size(); j++) {\n\t\t\t\tif (i == cArd_N.get(j))\n\t\t\t\t\tchk_arr[i-1] = true;\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < chk_arr.length; j++) {\n\t\t\tif (chk_arr[j] == false)\n\t\t\t\tSystem.out.println(cardShape + \" \" + (j + 1));\n\t\t}\n\t}\n\n\tstatic void swi_method(String swi, ArrayList<Integer> cArd_N) {\n\t\tswitch (swi) {\n\t\tcase \"S\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\tcase \"H\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\tcase \"C\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\tcase \"D\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\t}\n\t}\n}",
"Main",
"/*\n\t * ???52???\n\t *\n\t * ???????????????????????????????????????????????? ??????????????? ???n <= 52???\n\t *\n\t */\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t// ?????±??\\???\n\t\tString card = sc.next();\n\t\tint rank = Integer.parseInt(card);\n\n\t\tArrayList<Integer> S_card = new ArrayList<Integer>(); // ????????????\n\t\tArrayList<Integer> H_card = new ArrayList<Integer>(); // ?????????\n\t\tArrayList<Integer> C_card = new ArrayList<Integer>(); // ?????????\n\t\tArrayList<Integer> D_card = new ArrayList<Integer>(); // ?????????\n\n\t\tfor (int i = 0; i < rank; i++) {\n\t\t\t// ??????\n\t\t\tString shape = sc.next();\n\t\t\tString no = sc.next();\n\t\t\tint choice = Integer.parseInt(no);\n\t\t\tif (shape.equals(\"S\")) {\n\t\t\t\tS_card.add(choice);\n\t\t\t} else if (shape.equals(\"H\")) {\n\t\t\t\tH_card.add(choice);\n\t\t\t} else if (shape.equals(\"C\")) {\n\t\t\t\tC_card.add(choice);\n\t\t\t} else if (shape.equals(\"D\")) {\n\t\t\t\tD_card.add(choice);\n\t\t\t}\n\t\t}\n\n\t\t// ??¢?´¢\n\t\t// ?¶???????????????????\n\n\t\tString[] cardShape = new String[] { \"S\", \"H\", \"C\", \"D\" };\n\t\tString swi = \"\";\n\t\tfor (int i = 0; i < cardShape.length; i++) {\n\t\t\tswi = cardShape[i];\n\t\t\tif (swi == \"S\")\n\t\t\t\tswi_method(swi, S_card);\n\t\t\telse if(swi == \"H\")\n\t\t\t\tswi_method(swi, H_card);\n\t\t\telse if(swi == \"C\")\n\t\t\t\tswi_method(swi, C_card);\n\t\t\telse\n\t\t\t\tswi_method(swi, D_card);\n\n\t\t}\n\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t// ?????±??\\???\n\t\tString card = sc.next();\n\t\tint rank = Integer.parseInt(card);\n\n\t\tArrayList<Integer> S_card = new ArrayList<Integer>(); // ????????????\n\t\tArrayList<Integer> H_card = new ArrayList<Integer>(); // ?????????\n\t\tArrayList<Integer> C_card = new ArrayList<Integer>(); // ?????????\n\t\tArrayList<Integer> D_card = new ArrayList<Integer>(); // ?????????\n\n\t\tfor (int i = 0; i < rank; i++) {\n\t\t\t// ??????\n\t\t\tString shape = sc.next();\n\t\t\tString no = sc.next();\n\t\t\tint choice = Integer.parseInt(no);\n\t\t\tif (shape.equals(\"S\")) {\n\t\t\t\tS_card.add(choice);\n\t\t\t} else if (shape.equals(\"H\")) {\n\t\t\t\tH_card.add(choice);\n\t\t\t} else if (shape.equals(\"C\")) {\n\t\t\t\tC_card.add(choice);\n\t\t\t} else if (shape.equals(\"D\")) {\n\t\t\t\tD_card.add(choice);\n\t\t\t}\n\t\t}\n\n\t\t// ??¢?´¢\n\t\t// ?¶???????????????????\n\n\t\tString[] cardShape = new String[] { \"S\", \"H\", \"C\", \"D\" };\n\t\tString swi = \"\";\n\t\tfor (int i = 0; i < cardShape.length; i++) {\n\t\t\tswi = cardShape[i];\n\t\t\tif (swi == \"S\")\n\t\t\t\tswi_method(swi, S_card);\n\t\t\telse if(swi == \"H\")\n\t\t\t\tswi_method(swi, H_card);\n\t\t\telse if(swi == \"C\")\n\t\t\t\tswi_method(swi, C_card);\n\t\t\telse\n\t\t\t\tswi_method(swi, D_card);\n\n\t\t}\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String card = sc.next();",
"card",
"sc.next()",
"sc.next",
"sc",
"int rank = Integer.parseInt(card);",
"rank",
"Integer.parseInt(card)",
"Integer.parseInt",
"Integer",
"card",
"ArrayList<Integer> S_card = new ArrayList<Integer>();",
"S_card",
"new ArrayList<Integer>()",
"ArrayList<Integer> H_card = new ArrayList<Integer>();",
"H_card",
"new ArrayList<Integer>()",
"ArrayList<Integer> C_card = new ArrayList<Integer>();",
"C_card",
"new ArrayList<Integer>()",
"ArrayList<Integer> D_card = new ArrayList<Integer>();",
"D_card",
"new ArrayList<Integer>()",
"for (int i = 0; i < rank; i++) {\n\t\t\t// ??????\n\t\t\tString shape = sc.next();\n\t\t\tString no = sc.next();\n\t\t\tint choice = Integer.parseInt(no);\n\t\t\tif (shape.equals(\"S\")) {\n\t\t\t\tS_card.add(choice);\n\t\t\t} else if (shape.equals(\"H\")) {\n\t\t\t\tH_card.add(choice);\n\t\t\t} else if (shape.equals(\"C\")) {\n\t\t\t\tC_card.add(choice);\n\t\t\t} else if (shape.equals(\"D\")) {\n\t\t\t\tD_card.add(choice);\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < rank",
"i",
"rank",
"i++",
"i++",
"i",
"{\n\t\t\t// ??????\n\t\t\tString shape = sc.next();\n\t\t\tString no = sc.next();\n\t\t\tint choice = Integer.parseInt(no);\n\t\t\tif (shape.equals(\"S\")) {\n\t\t\t\tS_card.add(choice);\n\t\t\t} else if (shape.equals(\"H\")) {\n\t\t\t\tH_card.add(choice);\n\t\t\t} else if (shape.equals(\"C\")) {\n\t\t\t\tC_card.add(choice);\n\t\t\t} else if (shape.equals(\"D\")) {\n\t\t\t\tD_card.add(choice);\n\t\t\t}\n\t\t}",
"{\n\t\t\t// ??????\n\t\t\tString shape = sc.next();\n\t\t\tString no = sc.next();\n\t\t\tint choice = Integer.parseInt(no);\n\t\t\tif (shape.equals(\"S\")) {\n\t\t\t\tS_card.add(choice);\n\t\t\t} else if (shape.equals(\"H\")) {\n\t\t\t\tH_card.add(choice);\n\t\t\t} else if (shape.equals(\"C\")) {\n\t\t\t\tC_card.add(choice);\n\t\t\t} else if (shape.equals(\"D\")) {\n\t\t\t\tD_card.add(choice);\n\t\t\t}\n\t\t}",
"String shape = sc.next();",
"shape",
"sc.next()",
"sc.next",
"sc",
"String no = sc.next();",
"no",
"sc.next()",
"sc.next",
"sc",
"int choice = Integer.parseInt(no);",
"choice",
"Integer.parseInt(no)",
"Integer.parseInt",
"Integer",
"no",
"if (shape.equals(\"S\")) {\n\t\t\t\tS_card.add(choice);\n\t\t\t} else if (shape.equals(\"H\")) {\n\t\t\t\tH_card.add(choice);\n\t\t\t} else if (shape.equals(\"C\")) {\n\t\t\t\tC_card.add(choice);\n\t\t\t} else if (shape.equals(\"D\")) {\n\t\t\t\tD_card.add(choice);\n\t\t\t}",
"shape.equals(\"S\")",
"shape.equals",
"shape",
"\"S\"",
"{\n\t\t\t\tS_card.add(choice);\n\t\t\t}",
"S_card.add(choice)",
"S_card.add",
"S_card",
"choice",
"if (shape.equals(\"H\")) {\n\t\t\t\tH_card.add(choice);\n\t\t\t} else if (shape.equals(\"C\")) {\n\t\t\t\tC_card.add(choice);\n\t\t\t} else if (shape.equals(\"D\")) {\n\t\t\t\tD_card.add(choice);\n\t\t\t}",
"shape.equals(\"H\")",
"shape.equals",
"shape",
"\"H\"",
"{\n\t\t\t\tH_card.add(choice);\n\t\t\t}",
"H_card.add(choice)",
"H_card.add",
"H_card",
"choice",
"if (shape.equals(\"C\")) {\n\t\t\t\tC_card.add(choice);\n\t\t\t} else if (shape.equals(\"D\")) {\n\t\t\t\tD_card.add(choice);\n\t\t\t}",
"shape.equals(\"C\")",
"shape.equals",
"shape",
"\"C\"",
"{\n\t\t\t\tC_card.add(choice);\n\t\t\t}",
"C_card.add(choice)",
"C_card.add",
"C_card",
"choice",
"if (shape.equals(\"D\")) {\n\t\t\t\tD_card.add(choice);\n\t\t\t}",
"shape.equals(\"D\")",
"shape.equals",
"shape",
"\"D\"",
"{\n\t\t\t\tD_card.add(choice);\n\t\t\t}",
"D_card.add(choice)",
"D_card.add",
"D_card",
"choice",
"String[] cardShape = new String[] { \"S\", \"H\", \"C\", \"D\" };",
"cardShape",
"new String[] { \"S\", \"H\", \"C\", \"D\" }",
"String swi = \"\";",
"swi",
"\"\"",
"for (int i = 0; i < cardShape.length; i++) {\n\t\t\tswi = cardShape[i];\n\t\t\tif (swi == \"S\")\n\t\t\t\tswi_method(swi, S_card);\n\t\t\telse if(swi == \"H\")\n\t\t\t\tswi_method(swi, H_card);\n\t\t\telse if(swi == \"C\")\n\t\t\t\tswi_method(swi, C_card);\n\t\t\telse\n\t\t\t\tswi_method(swi, D_card);\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < cardShape.length",
"i",
"cardShape.length",
"cardShape",
"cardShape.length",
"i++",
"i++",
"i",
"{\n\t\t\tswi = cardShape[i];\n\t\t\tif (swi == \"S\")\n\t\t\t\tswi_method(swi, S_card);\n\t\t\telse if(swi == \"H\")\n\t\t\t\tswi_method(swi, H_card);\n\t\t\telse if(swi == \"C\")\n\t\t\t\tswi_method(swi, C_card);\n\t\t\telse\n\t\t\t\tswi_method(swi, D_card);\n\n\t\t}",
"{\n\t\t\tswi = cardShape[i];\n\t\t\tif (swi == \"S\")\n\t\t\t\tswi_method(swi, S_card);\n\t\t\telse if(swi == \"H\")\n\t\t\t\tswi_method(swi, H_card);\n\t\t\telse if(swi == \"C\")\n\t\t\t\tswi_method(swi, C_card);\n\t\t\telse\n\t\t\t\tswi_method(swi, D_card);\n\n\t\t}",
"swi = cardShape[i]",
"swi",
"cardShape[i]",
"cardShape",
"i",
"if (swi == \"S\")\n\t\t\t\tswi_method(swi, S_card);\n\t\t\telse if(swi == \"H\")\n\t\t\t\tswi_method(swi, H_card);\n\t\t\telse if(swi == \"C\")\n\t\t\t\tswi_method(swi, C_card);\n\t\t\telse\n\t\t\t\tswi_method(swi, D_card);",
"swi == \"S\"",
"swi",
"\"S\"",
"swi_method(swi, S_card)",
"swi_method",
"swi",
"S_card",
"if(swi == \"H\")\n\t\t\t\tswi_method(swi, H_card);\n\t\t\telse if(swi == \"C\")\n\t\t\t\tswi_method(swi, C_card);\n\t\t\telse\n\t\t\t\tswi_method(swi, D_card);",
"swi == \"H\"",
"swi",
"\"H\"",
"swi_method(swi, H_card)",
"swi_method",
"swi",
"H_card",
"if(swi == \"C\")\n\t\t\t\tswi_method(swi, C_card);\n\t\t\telse\n\t\t\t\tswi_method(swi, D_card);",
"swi == \"C\"",
"swi",
"\"C\"",
"swi_method(swi, C_card)",
"swi_method",
"swi",
"C_card",
"swi_method(swi, D_card)",
"swi_method",
"swi",
"D_card",
"String[] args",
"args",
"static void check(String cardShape, ArrayList<Integer> cArd_N) {\n\t\tCollections.sort(cArd_N);\n\n\t\t\n\n\t\tboolean[] chk_arr = new boolean[13];\n\t\tfor (int i = 1; i <= 13; i++) {\n\t\t\tfor (int j = 0; j < cArd_N.size(); j++) {\n\t\t\t\tif (i == cArd_N.get(j))\n\t\t\t\t\tchk_arr[i-1] = true;\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < chk_arr.length; j++) {\n\t\t\tif (chk_arr[j] == false)\n\t\t\t\tSystem.out.println(cardShape + \" \" + (j + 1));\n\t\t}\n\t}",
"check",
"{\n\t\tCollections.sort(cArd_N);\n\n\t\t\n\n\t\tboolean[] chk_arr = new boolean[13];\n\t\tfor (int i = 1; i <= 13; i++) {\n\t\t\tfor (int j = 0; j < cArd_N.size(); j++) {\n\t\t\t\tif (i == cArd_N.get(j))\n\t\t\t\t\tchk_arr[i-1] = true;\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < chk_arr.length; j++) {\n\t\t\tif (chk_arr[j] == false)\n\t\t\t\tSystem.out.println(cardShape + \" \" + (j + 1));\n\t\t}\n\t}",
"Collections.sort(cArd_N)",
"Collections.sort",
"Collections",
"cArd_N",
"boolean[] chk_arr = new boolean[13];",
"chk_arr",
"new boolean[13]",
"13",
"for (int i = 1; i <= 13; i++) {\n\t\t\tfor (int j = 0; j < cArd_N.size(); j++) {\n\t\t\t\tif (i == cArd_N.get(j))\n\t\t\t\t\tchk_arr[i-1] = true;\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < cArd_N.size(); j++) {\n\t\t\t\tif (i == cArd_N.get(j))\n\t\t\t\t\tchk_arr[i-1] = true;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < cArd_N.size(); j++) {\n\t\t\t\tif (i == cArd_N.get(j))\n\t\t\t\t\tchk_arr[i-1] = true;\n\t\t\t}\n\t\t}",
"for (int j = 0; j < cArd_N.size(); j++) {\n\t\t\t\tif (i == cArd_N.get(j))\n\t\t\t\t\tchk_arr[i-1] = true;\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < cArd_N.size()",
"j",
"cArd_N.size()",
"cArd_N.size",
"cArd_N",
"j++",
"j++",
"j",
"{\n\t\t\t\tif (i == cArd_N.get(j))\n\t\t\t\t\tchk_arr[i-1] = true;\n\t\t\t}",
"{\n\t\t\t\tif (i == cArd_N.get(j))\n\t\t\t\t\tchk_arr[i-1] = true;\n\t\t\t}",
"if (i == cArd_N.get(j))\n\t\t\t\t\tchk_arr[i-1] = true;",
"i == cArd_N.get(j)",
"i",
"cArd_N.get(j)",
"cArd_N.get",
"cArd_N",
"j",
"chk_arr[i-1] = true",
"chk_arr[i-1]",
"chk_arr",
"i-1",
"i",
"1",
"true",
"for (int j = 0; j < chk_arr.length; j++) {\n\t\t\tif (chk_arr[j] == false)\n\t\t\t\tSystem.out.println(cardShape + \" \" + (j + 1));\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < chk_arr.length",
"j",
"chk_arr.length",
"chk_arr",
"chk_arr.length",
"j++",
"j++",
"j",
"{\n\t\t\tif (chk_arr[j] == false)\n\t\t\t\tSystem.out.println(cardShape + \" \" + (j + 1));\n\t\t}",
"{\n\t\t\tif (chk_arr[j] == false)\n\t\t\t\tSystem.out.println(cardShape + \" \" + (j + 1));\n\t\t}",
"if (chk_arr[j] == false)\n\t\t\t\tSystem.out.println(cardShape + \" \" + (j + 1));",
"chk_arr[j] == false",
"chk_arr[j]",
"chk_arr",
"j",
"false",
"System.out.println(cardShape + \" \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"cardShape + \" \" + (j + 1)",
"cardShape + \" \" + (j + 1)",
"cardShape",
"\" \"",
"(j + 1)",
"j",
"1",
"String cardShape",
"cardShape",
"ArrayList<Integer> cArd_N",
"cArd_N",
"static void swi_method(String swi, ArrayList<Integer> cArd_N) {\n\t\tswitch (swi) {\n\t\tcase \"S\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\tcase \"H\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\tcase \"C\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\tcase \"D\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\t}\n\t}",
"swi_method",
"{\n\t\tswitch (swi) {\n\t\tcase \"S\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\tcase \"H\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\tcase \"C\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\tcase \"D\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\t}\n\t}",
"switch (swi) {\n\t\tcase \"S\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\tcase \"H\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\tcase \"C\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\tcase \"D\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\t}",
"swi",
"case \"S\":",
"\"S\"",
"case \"S\":",
"check(swi, cArd_N)",
"check",
"swi",
"cArd_N",
"break;",
"case \"H\":",
"\"H\"",
"case \"H\":",
"check(swi, cArd_N)",
"check",
"swi",
"cArd_N",
"break;",
"case \"C\":",
"\"C\"",
"case \"C\":",
"check(swi, cArd_N)",
"check",
"swi",
"cArd_N",
"break;",
"case \"D\":",
"\"D\"",
"case \"D\":",
"check(swi, cArd_N)",
"check",
"swi",
"cArd_N",
"break;",
"String swi",
"swi",
"ArrayList<Integer> cArd_N",
"cArd_N",
"public class Main{\n\n\t/*\n\t * ???52???\n\t *\n\t * ???????????????????????????????????????????????? ??????????????? ???n <= 52???\n\t *\n\t */\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t// ?????±??\\???\n\t\tString card = sc.next();\n\t\tint rank = Integer.parseInt(card);\n\n\t\tArrayList<Integer> S_card = new ArrayList<Integer>(); // ????????????\n\t\tArrayList<Integer> H_card = new ArrayList<Integer>(); // ?????????\n\t\tArrayList<Integer> C_card = new ArrayList<Integer>(); // ?????????\n\t\tArrayList<Integer> D_card = new ArrayList<Integer>(); // ?????????\n\n\t\tfor (int i = 0; i < rank; i++) {\n\t\t\t// ??????\n\t\t\tString shape = sc.next();\n\t\t\tString no = sc.next();\n\t\t\tint choice = Integer.parseInt(no);\n\t\t\tif (shape.equals(\"S\")) {\n\t\t\t\tS_card.add(choice);\n\t\t\t} else if (shape.equals(\"H\")) {\n\t\t\t\tH_card.add(choice);\n\t\t\t} else if (shape.equals(\"C\")) {\n\t\t\t\tC_card.add(choice);\n\t\t\t} else if (shape.equals(\"D\")) {\n\t\t\t\tD_card.add(choice);\n\t\t\t}\n\t\t}\n\n\t\t// ??¢?´¢\n\t\t// ?¶???????????????????\n\n\t\tString[] cardShape = new String[] { \"S\", \"H\", \"C\", \"D\" };\n\t\tString swi = \"\";\n\t\tfor (int i = 0; i < cardShape.length; i++) {\n\t\t\tswi = cardShape[i];\n\t\t\tif (swi == \"S\")\n\t\t\t\tswi_method(swi, S_card);\n\t\t\telse if(swi == \"H\")\n\t\t\t\tswi_method(swi, H_card);\n\t\t\telse if(swi == \"C\")\n\t\t\t\tswi_method(swi, C_card);\n\t\t\telse\n\t\t\t\tswi_method(swi, D_card);\n\n\t\t}\n\n\t}\n\n\tstatic void check(String cardShape, ArrayList<Integer> cArd_N) {\n\t\tCollections.sort(cArd_N);\n\n\t\t\n\n\t\tboolean[] chk_arr = new boolean[13];\n\t\tfor (int i = 1; i <= 13; i++) {\n\t\t\tfor (int j = 0; j < cArd_N.size(); j++) {\n\t\t\t\tif (i == cArd_N.get(j))\n\t\t\t\t\tchk_arr[i-1] = true;\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < chk_arr.length; j++) {\n\t\t\tif (chk_arr[j] == false)\n\t\t\t\tSystem.out.println(cardShape + \" \" + (j + 1));\n\t\t}\n\t}\n\n\tstatic void swi_method(String swi, ArrayList<Integer> cArd_N) {\n\t\tswitch (swi) {\n\t\tcase \"S\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\tcase \"H\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\tcase \"C\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\tcase \"D\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\t}\n\t}\n}",
"public class Main{\n\n\t/*\n\t * ???52???\n\t *\n\t * ???????????????????????????????????????????????? ??????????????? ???n <= 52???\n\t *\n\t */\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t// ?????±??\\???\n\t\tString card = sc.next();\n\t\tint rank = Integer.parseInt(card);\n\n\t\tArrayList<Integer> S_card = new ArrayList<Integer>(); // ????????????\n\t\tArrayList<Integer> H_card = new ArrayList<Integer>(); // ?????????\n\t\tArrayList<Integer> C_card = new ArrayList<Integer>(); // ?????????\n\t\tArrayList<Integer> D_card = new ArrayList<Integer>(); // ?????????\n\n\t\tfor (int i = 0; i < rank; i++) {\n\t\t\t// ??????\n\t\t\tString shape = sc.next();\n\t\t\tString no = sc.next();\n\t\t\tint choice = Integer.parseInt(no);\n\t\t\tif (shape.equals(\"S\")) {\n\t\t\t\tS_card.add(choice);\n\t\t\t} else if (shape.equals(\"H\")) {\n\t\t\t\tH_card.add(choice);\n\t\t\t} else if (shape.equals(\"C\")) {\n\t\t\t\tC_card.add(choice);\n\t\t\t} else if (shape.equals(\"D\")) {\n\t\t\t\tD_card.add(choice);\n\t\t\t}\n\t\t}\n\n\t\t// ??¢?´¢\n\t\t// ?¶???????????????????\n\n\t\tString[] cardShape = new String[] { \"S\", \"H\", \"C\", \"D\" };\n\t\tString swi = \"\";\n\t\tfor (int i = 0; i < cardShape.length; i++) {\n\t\t\tswi = cardShape[i];\n\t\t\tif (swi == \"S\")\n\t\t\t\tswi_method(swi, S_card);\n\t\t\telse if(swi == \"H\")\n\t\t\t\tswi_method(swi, H_card);\n\t\t\telse if(swi == \"C\")\n\t\t\t\tswi_method(swi, C_card);\n\t\t\telse\n\t\t\t\tswi_method(swi, D_card);\n\n\t\t}\n\n\t}\n\n\tstatic void check(String cardShape, ArrayList<Integer> cArd_N) {\n\t\tCollections.sort(cArd_N);\n\n\t\t\n\n\t\tboolean[] chk_arr = new boolean[13];\n\t\tfor (int i = 1; i <= 13; i++) {\n\t\t\tfor (int j = 0; j < cArd_N.size(); j++) {\n\t\t\t\tif (i == cArd_N.get(j))\n\t\t\t\t\tchk_arr[i-1] = true;\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < chk_arr.length; j++) {\n\t\t\tif (chk_arr[j] == false)\n\t\t\t\tSystem.out.println(cardShape + \" \" + (j + 1));\n\t\t}\n\t}\n\n\tstatic void swi_method(String swi, ArrayList<Integer> cArd_N) {\n\t\tswitch (swi) {\n\t\tcase \"S\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\tcase \"H\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\tcase \"C\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\tcase \"D\":\n\t\t\tcheck(swi, cArd_N);\n\t\t\tbreak;\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
public class Main{
/*
* ???52???
*
* ???????????????????????????????????????????????? ??????????????? ???n <= 52???
*
*/
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// ?????±??\???
String card = sc.next();
int rank = Integer.parseInt(card);
ArrayList<Integer> S_card = new ArrayList<Integer>(); // ????????????
ArrayList<Integer> H_card = new ArrayList<Integer>(); // ?????????
ArrayList<Integer> C_card = new ArrayList<Integer>(); // ?????????
ArrayList<Integer> D_card = new ArrayList<Integer>(); // ?????????
for (int i = 0; i < rank; i++) {
// ??????
String shape = sc.next();
String no = sc.next();
int choice = Integer.parseInt(no);
if (shape.equals("S")) {
S_card.add(choice);
} else if (shape.equals("H")) {
H_card.add(choice);
} else if (shape.equals("C")) {
C_card.add(choice);
} else if (shape.equals("D")) {
D_card.add(choice);
}
}
// ??¢?´¢
// ?¶???????????????????
String[] cardShape = new String[] { "S", "H", "C", "D" };
String swi = "";
for (int i = 0; i < cardShape.length; i++) {
swi = cardShape[i];
if (swi == "S")
swi_method(swi, S_card);
else if(swi == "H")
swi_method(swi, H_card);
else if(swi == "C")
swi_method(swi, C_card);
else
swi_method(swi, D_card);
}
}
static void check(String cardShape, ArrayList<Integer> cArd_N) {
Collections.sort(cArd_N);
boolean[] chk_arr = new boolean[13];
for (int i = 1; i <= 13; i++) {
for (int j = 0; j < cArd_N.size(); j++) {
if (i == cArd_N.get(j))
chk_arr[i-1] = true;
}
}
for (int j = 0; j < chk_arr.length; j++) {
if (chk_arr[j] == false)
System.out.println(cardShape + " " + (j + 1));
}
}
static void swi_method(String swi, ArrayList<Integer> cArd_N) {
switch (swi) {
case "S":
check(swi, cArd_N);
break;
case "H":
check(swi, cArd_N);
break;
case "C":
check(swi, cArd_N);
break;
case "D":
check(swi, cArd_N);
break;
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
39,
17,
17,
17,
17,
41,
13,
20,
17,
17,
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,
4,
18,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
17,
18,
13,
13,
30,
0,
18,
18,
13,
13,
2,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
17,
17,
3,
41,
13,
20,
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,
14,
2,
18,
18,
13,
13,
13,
17,
4,
18,
4,
18,
4,
18,
4,
18,
13,
18,
13,
13,
17,
2,
13,
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
],
[
195,
11
],
[
195,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
20,
22
],
[
20,
23
],
[
20,
24
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
14,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
30,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
30,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
51,
60
],
[
60,
61
],
[
51,
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
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
80,
90
],
[
90,
91
],
[
91,
92
],
[
80,
93
],
[
94,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
95,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
114,
118
],
[
118,
119
],
[
119,
120
],
[
110,
121
],
[
105,
122
],
[
104,
123
],
[
51,
124
],
[
124,
125
],
[
124,
126
],
[
51,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
134,
136
],
[
127,
137
],
[
137,
138
],
[
138,
139
],
[
127,
140
],
[
141,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
142,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
142,
154
],
[
154,
155
],
[
155,
156
],
[
142,
157
],
[
158,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
160,
166
],
[
159,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
173,
176
],
[
176,
177
],
[
176,
178
],
[
171,
179
],
[
169,
180
],
[
180,
181
],
[
180,
182
],
[
167,
183
],
[
51,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
184,
189
],
[
189,
190
],
[
190,
191
],
[
12,
192
],
[
192,
193
],
[
0,
194
],
[
194,
195
],
[
194,
196
]
] | [
"\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\t// ?????????\n\t\tfinal char[] mark = {'S','H','C','D'};\n\t\tString[][] cards = new String[4][13];\n\n\t\ttry {\n\t\t\t// ????????????????????°?????\\???\n\t\t\tint cardNum = Integer.parseInt(br.readLine());\n\n\t\t\t// ????????????????????\\???\n\t\t\tString str;\n\t\t\tfor(int i=0;i<cardNum;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tfor(int j=0;j<mark.length;j++){\n\t\t\t\t\tif(str.charAt(0) == mark[j]){\n\t\t\t\t\t\t// ??°???????????£?????????????????????\n\t\t\t\t\t\tcards[j][Integer.parseInt(str.substring(2,str.length()))-1] = \"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ?????£?????????????????????????????\\\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor(int i=0;i<mark.length;i++){\n\t\t\t\tfor(int j=0;j<cards[i].length;j++){\n\t\t\t\t\tif(cards[i][j] == null)\n\t\t\t\t\t\tsb.append(mark[i]).append(\" \").append((j+1)).append(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ??????\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\t// ?????????\n\t\tfinal char[] mark = {'S','H','C','D'};\n\t\tString[][] cards = new String[4][13];\n\n\t\ttry {\n\t\t\t// ????????????????????°?????\\???\n\t\t\tint cardNum = Integer.parseInt(br.readLine());\n\n\t\t\t// ????????????????????\\???\n\t\t\tString str;\n\t\t\tfor(int i=0;i<cardNum;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tfor(int j=0;j<mark.length;j++){\n\t\t\t\t\tif(str.charAt(0) == mark[j]){\n\t\t\t\t\t\t// ??°???????????£?????????????????????\n\t\t\t\t\t\tcards[j][Integer.parseInt(str.substring(2,str.length()))-1] = \"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ?????£?????????????????????????????\\\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor(int i=0;i<mark.length;i++){\n\t\t\t\tfor(int j=0;j<cards[i].length;j++){\n\t\t\t\t\tif(cards[i][j] == null)\n\t\t\t\t\t\tsb.append(mark[i]).append(\" \").append((j+1)).append(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ??????\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\t// ?????????\n\t\tfinal char[] mark = {'S','H','C','D'};\n\t\tString[][] cards = new String[4][13];\n\n\t\ttry {\n\t\t\t// ????????????????????°?????\\???\n\t\t\tint cardNum = Integer.parseInt(br.readLine());\n\n\t\t\t// ????????????????????\\???\n\t\t\tString str;\n\t\t\tfor(int i=0;i<cardNum;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tfor(int j=0;j<mark.length;j++){\n\t\t\t\t\tif(str.charAt(0) == mark[j]){\n\t\t\t\t\t\t// ??°???????????£?????????????????????\n\t\t\t\t\t\tcards[j][Integer.parseInt(str.substring(2,str.length()))-1] = \"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ?????£?????????????????????????????\\\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor(int i=0;i<mark.length;i++){\n\t\t\t\tfor(int j=0;j<cards[i].length;j++){\n\t\t\t\t\tif(cards[i][j] == null)\n\t\t\t\t\t\tsb.append(mark[i]).append(\" \").append((j+1)).append(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ??????\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\t// ?????????\n\t\tfinal char[] mark = {'S','H','C','D'};\n\t\tString[][] cards = new String[4][13];\n\n\t\ttry {\n\t\t\t// ????????????????????°?????\\???\n\t\t\tint cardNum = Integer.parseInt(br.readLine());\n\n\t\t\t// ????????????????????\\???\n\t\t\tString str;\n\t\t\tfor(int i=0;i<cardNum;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tfor(int j=0;j<mark.length;j++){\n\t\t\t\t\tif(str.charAt(0) == mark[j]){\n\t\t\t\t\t\t// ??°???????????£?????????????????????\n\t\t\t\t\t\tcards[j][Integer.parseInt(str.substring(2,str.length()))-1] = \"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ?????£?????????????????????????????\\\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor(int i=0;i<mark.length;i++){\n\t\t\t\tfor(int j=0;j<cards[i].length;j++){\n\t\t\t\t\tif(cards[i][j] == null)\n\t\t\t\t\t\tsb.append(mark[i]).append(\" \").append((j+1)).append(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ??????\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))",
"final char[] mark = {'S','H','C','D'};",
"mark",
"{'S','H','C','D'}",
"'S'",
"'H'",
"'C'",
"'D'",
"String[][] cards = new String[4][13];",
"cards",
"new String[4][13]",
"4",
"13",
"try {\n\t\t\t// ????????????????????°?????\\???\n\t\t\tint cardNum = Integer.parseInt(br.readLine());\n\n\t\t\t// ????????????????????\\???\n\t\t\tString str;\n\t\t\tfor(int i=0;i<cardNum;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tfor(int j=0;j<mark.length;j++){\n\t\t\t\t\tif(str.charAt(0) == mark[j]){\n\t\t\t\t\t\t// ??°???????????£?????????????????????\n\t\t\t\t\t\tcards[j][Integer.parseInt(str.substring(2,str.length()))-1] = \"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ?????£?????????????????????????????\\\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor(int i=0;i<mark.length;i++){\n\t\t\t\tfor(int j=0;j<cards[i].length;j++){\n\t\t\t\t\tif(cards[i][j] == null)\n\t\t\t\t\t\tsb.append(mark[i]).append(\" \").append((j+1)).append(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ??????\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\t\t\t// ????????????????????°?????\\???\n\t\t\tint cardNum = Integer.parseInt(br.readLine());\n\n\t\t\t// ????????????????????\\???\n\t\t\tString str;\n\t\t\tfor(int i=0;i<cardNum;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tfor(int j=0;j<mark.length;j++){\n\t\t\t\t\tif(str.charAt(0) == mark[j]){\n\t\t\t\t\t\t// ??°???????????£?????????????????????\n\t\t\t\t\t\tcards[j][Integer.parseInt(str.substring(2,str.length()))-1] = \"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ?????£?????????????????????????????\\\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor(int i=0;i<mark.length;i++){\n\t\t\t\tfor(int j=0;j<cards[i].length;j++){\n\t\t\t\t\tif(cards[i][j] == null)\n\t\t\t\t\t\tsb.append(mark[i]).append(\" \").append((j+1)).append(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ??????\n\t\t\tSystem.out.print(sb.toString());\n\n\t\t}",
"int cardNum = Integer.parseInt(br.readLine());",
"cardNum",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String str;",
"str",
"for(int i=0;i<cardNum;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tfor(int j=0;j<mark.length;j++){\n\t\t\t\t\tif(str.charAt(0) == mark[j]){\n\t\t\t\t\t\t// ??°???????????£?????????????????????\n\t\t\t\t\t\tcards[j][Integer.parseInt(str.substring(2,str.length()))-1] = \"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<cardNum",
"i",
"cardNum",
"i++",
"i++",
"i",
"{\n\t\t\t\tstr = br.readLine();\n\t\t\t\tfor(int j=0;j<mark.length;j++){\n\t\t\t\t\tif(str.charAt(0) == mark[j]){\n\t\t\t\t\t\t// ??°???????????£?????????????????????\n\t\t\t\t\t\tcards[j][Integer.parseInt(str.substring(2,str.length()))-1] = \"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tstr = br.readLine();\n\t\t\t\tfor(int j=0;j<mark.length;j++){\n\t\t\t\t\tif(str.charAt(0) == mark[j]){\n\t\t\t\t\t\t// ??°???????????£?????????????????????\n\t\t\t\t\t\tcards[j][Integer.parseInt(str.substring(2,str.length()))-1] = \"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"for(int j=0;j<mark.length;j++){\n\t\t\t\t\tif(str.charAt(0) == mark[j]){\n\t\t\t\t\t\t// ??°???????????£?????????????????????\n\t\t\t\t\t\tcards[j][Integer.parseInt(str.substring(2,str.length()))-1] = \"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<mark.length",
"j",
"mark.length",
"mark",
"mark.length",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tif(str.charAt(0) == mark[j]){\n\t\t\t\t\t\t// ??°???????????£?????????????????????\n\t\t\t\t\t\tcards[j][Integer.parseInt(str.substring(2,str.length()))-1] = \"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif(str.charAt(0) == mark[j]){\n\t\t\t\t\t\t// ??°???????????£?????????????????????\n\t\t\t\t\t\tcards[j][Integer.parseInt(str.substring(2,str.length()))-1] = \"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"if(str.charAt(0) == mark[j]){\n\t\t\t\t\t\t// ??°???????????£?????????????????????\n\t\t\t\t\t\tcards[j][Integer.parseInt(str.substring(2,str.length()))-1] = \"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"str.charAt(0) == mark[j]",
"str.charAt(0)",
"str.charAt",
"str",
"0",
"mark[j]",
"mark",
"j",
"{\n\t\t\t\t\t\t// ??°???????????£?????????????????????\n\t\t\t\t\t\tcards[j][Integer.parseInt(str.substring(2,str.length()))-1] = \"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"cards[j][Integer.parseInt(str.substring(2,str.length()))-1] = \"\"",
"cards[j][Integer.parseInt(str.substring(2,str.length()))-1]",
"cards[j]",
"cards",
"j",
"Integer.parseInt(str.substring(2,str.length()))-1",
"Integer.parseInt(str.substring(2,str.length()))",
"Integer.parseInt",
"Integer",
"str.substring(2,str.length())",
"str.substring",
"str",
"2",
"str.length()",
"str.length",
"str",
"1",
"\"\"",
"break;",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"for(int i=0;i<mark.length;i++){\n\t\t\t\tfor(int j=0;j<cards[i].length;j++){\n\t\t\t\t\tif(cards[i][j] == null)\n\t\t\t\t\t\tsb.append(mark[i]).append(\" \").append((j+1)).append(\"\\n\");\n\t\t\t\t}\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<mark.length",
"i",
"mark.length",
"mark",
"mark.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(int j=0;j<cards[i].length;j++){\n\t\t\t\t\tif(cards[i][j] == null)\n\t\t\t\t\t\tsb.append(mark[i]).append(\" \").append((j+1)).append(\"\\n\");\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int j=0;j<cards[i].length;j++){\n\t\t\t\t\tif(cards[i][j] == null)\n\t\t\t\t\t\tsb.append(mark[i]).append(\" \").append((j+1)).append(\"\\n\");\n\t\t\t\t}\n\t\t\t}",
"for(int j=0;j<cards[i].length;j++){\n\t\t\t\t\tif(cards[i][j] == null)\n\t\t\t\t\t\tsb.append(mark[i]).append(\" \").append((j+1)).append(\"\\n\");\n\t\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<cards[i].length",
"j",
"cards[i].length",
"cards[i]",
"cards",
"i",
"cards[i].length",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tif(cards[i][j] == null)\n\t\t\t\t\t\tsb.append(mark[i]).append(\" \").append((j+1)).append(\"\\n\");\n\t\t\t\t}",
"{\n\t\t\t\t\tif(cards[i][j] == null)\n\t\t\t\t\t\tsb.append(mark[i]).append(\" \").append((j+1)).append(\"\\n\");\n\t\t\t\t}",
"if(cards[i][j] == null)\n\t\t\t\t\t\tsb.append(mark[i]).append(\" \").append((j+1)).append(\"\\n\");",
"cards[i][j] == null",
"cards[i][j]",
"cards[i]",
"cards",
"i",
"j",
"null",
"sb.append(mark[i]).append(\" \").append((j+1)).append(\"\\n\")",
"sb.append(mark[i]).append(\" \").append((j+1)).append",
"sb.append(mark[i]).append(\" \").append((j+1))",
"sb.append(mark[i]).append(\" \").append",
"sb.append(mark[i]).append(\" \")",
"sb.append(mark[i]).append",
"sb.append(mark[i])",
"sb.append",
"sb",
"mark[i]",
"mark",
"i",
"\" \"",
"(j+1)",
"j",
"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\t// ?????????\n\t\tfinal char[] mark = {'S','H','C','D'};\n\t\tString[][] cards = new String[4][13];\n\n\t\ttry {\n\t\t\t// ????????????????????°?????\\???\n\t\t\tint cardNum = Integer.parseInt(br.readLine());\n\n\t\t\t// ????????????????????\\???\n\t\t\tString str;\n\t\t\tfor(int i=0;i<cardNum;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tfor(int j=0;j<mark.length;j++){\n\t\t\t\t\tif(str.charAt(0) == mark[j]){\n\t\t\t\t\t\t// ??°???????????£?????????????????????\n\t\t\t\t\t\tcards[j][Integer.parseInt(str.substring(2,str.length()))-1] = \"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ?????£?????????????????????????????\\\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor(int i=0;i<mark.length;i++){\n\t\t\t\tfor(int j=0;j<cards[i].length;j++){\n\t\t\t\t\tif(cards[i][j] == null)\n\t\t\t\t\t\tsb.append(mark[i]).append(\" \").append((j+1)).append(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ??????\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\t// ?????????\n\t\tfinal char[] mark = {'S','H','C','D'};\n\t\tString[][] cards = new String[4][13];\n\n\t\ttry {\n\t\t\t// ????????????????????°?????\\???\n\t\t\tint cardNum = Integer.parseInt(br.readLine());\n\n\t\t\t// ????????????????????\\???\n\t\t\tString str;\n\t\t\tfor(int i=0;i<cardNum;i++){\n\t\t\t\tstr = br.readLine();\n\t\t\t\tfor(int j=0;j<mark.length;j++){\n\t\t\t\t\tif(str.charAt(0) == mark[j]){\n\t\t\t\t\t\t// ??°???????????£?????????????????????\n\t\t\t\t\t\tcards[j][Integer.parseInt(str.substring(2,str.length()))-1] = \"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ?????£?????????????????????????????\\\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor(int i=0;i<mark.length;i++){\n\t\t\t\tfor(int j=0;j<cards[i].length;j++){\n\t\t\t\t\tif(cards[i][j] == null)\n\t\t\t\t\t\tsb.append(mark[i]).append(\" \").append((j+1)).append(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ??????\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));
// ?????????
final char[] mark = {'S','H','C','D'};
String[][] cards = new String[4][13];
try {
// ????????????????????°?????\???
int cardNum = Integer.parseInt(br.readLine());
// ????????????????????\???
String str;
for(int i=0;i<cardNum;i++){
str = br.readLine();
for(int j=0;j<mark.length;j++){
if(str.charAt(0) == mark[j]){
// ??°???????????£?????????????????????
cards[j][Integer.parseInt(str.substring(2,str.length()))-1] = "";
break;
}
}
}
// ?????£?????????????????????????????\
StringBuilder sb = new StringBuilder();
for(int i=0;i<mark.length;i++){
for(int j=0;j<cards[i].length;j++){
if(cards[i][j] == null)
sb.append(mark[i]).append(" ").append((j+1)).append("\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,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
0,
18,
13,
13,
13,
14,
4,
18,
13,
17,
30,
0,
18,
13,
13,
2,
17,
13,
14,
4,
18,
13,
17,
30,
0,
18,
13,
13,
2,
17,
13,
14,
4,
18,
13,
17,
30,
0,
18,
13,
13,
2,
17,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
18,
13,
13,
30,
0,
18,
13,
2,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
234,
5
],
[
234,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
16,
24
],
[
24,
25
],
[
25,
26
],
[
16,
27
],
[
28,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
8,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
8,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
43,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
55,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
66,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
66,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
77,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
87,
89
],
[
77,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
90,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
90,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
103,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
113,
114
],
[
113,
115
],
[
55,
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
],
[
132,
133
],
[
132,
134
],
[
129,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
139,
141
],
[
136,
142
],
[
8,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
143,
148
],
[
148,
149
],
[
148,
150
],
[
143,
151
],
[
151,
152
],
[
152,
153
],
[
143,
154
],
[
155,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
156,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
163,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
170,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
177,
179
],
[
163,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
180,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
187,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
194,
196
],
[
180,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
202
],
[
197,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
204,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
211,
213
],
[
197,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
215,
219
],
[
214,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
221,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
228,
230
],
[
6,
231
],
[
231,
232
],
[
0,
233
],
[
233,
234
],
[
233,
235
]
] | [
"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[] A=new int [52];\n\t \tfor(int i=0;i<52;i++){\n\t \t\tA[i]=0;\n\t \t}\n\t \tint n= sc.nextInt();\n \tint[] B=new int[n];\n \tfor(int i=0;i<n;i++){\n \t\tString a=sc.next();\n\t \tint b=sc.nextInt();\n\t \t\tif(a.equals(\"S\")){\n\t \t\t\tB[i]=b;\n\t \t\t}else if(a.equals(\"H\")){\n\t \t\t\tB[i]=13+b;\n \t\t}else if(a.equals(\"C\")){\n \t\t\tB[i]=26+b;\n\t \t}else if(a.equals(\"D\")){\n\t \t\tB[i]=39+b;\n\t \t\t}\n\t \t\tfor(int j=1;j<53;j++){\n\t \t\t\tif(j==B[i]){\n\t \t\t\t\tA[j-1]=1;\n\t \t\t\t}\n\t \t\t}\n\t \t}\n \tfor(int i=0;i<52;i++){\n \t\tif(A[i]==0){\n \t\t\tif(i+1<14){\n \t\t\t\tSystem.out.println(\"S \"+(i+1));\n \t\t\t}else if(i+1<27){\n \t\t\t\tSystem.out.println(\"H \"+(i-12));\n \t\t\t}else if(i+1<40){\n \t\t\t\tSystem.out.println(\"C \"+(i-25));\n \t\t\t}else if(i+1<53){\n \t\t\t\tSystem.out.println(\"D \"+(i-38));\n \t\t\t}\n \t\t}\n \t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc =new Scanner(System.in);\n\t\tint[] A=new int [52];\n\t \tfor(int i=0;i<52;i++){\n\t \t\tA[i]=0;\n\t \t}\n\t \tint n= sc.nextInt();\n \tint[] B=new int[n];\n \tfor(int i=0;i<n;i++){\n \t\tString a=sc.next();\n\t \tint b=sc.nextInt();\n\t \t\tif(a.equals(\"S\")){\n\t \t\t\tB[i]=b;\n\t \t\t}else if(a.equals(\"H\")){\n\t \t\t\tB[i]=13+b;\n \t\t}else if(a.equals(\"C\")){\n \t\t\tB[i]=26+b;\n\t \t}else if(a.equals(\"D\")){\n\t \t\tB[i]=39+b;\n\t \t\t}\n\t \t\tfor(int j=1;j<53;j++){\n\t \t\t\tif(j==B[i]){\n\t \t\t\t\tA[j-1]=1;\n\t \t\t\t}\n\t \t\t}\n\t \t}\n \tfor(int i=0;i<52;i++){\n \t\tif(A[i]==0){\n \t\t\tif(i+1<14){\n \t\t\t\tSystem.out.println(\"S \"+(i+1));\n \t\t\t}else if(i+1<27){\n \t\t\t\tSystem.out.println(\"H \"+(i-12));\n \t\t\t}else if(i+1<40){\n \t\t\t\tSystem.out.println(\"C \"+(i-25));\n \t\t\t}else if(i+1<53){\n \t\t\t\tSystem.out.println(\"D \"+(i-38));\n \t\t\t}\n \t\t}\n \t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc =new Scanner(System.in);\n\t\tint[] A=new int [52];\n\t \tfor(int i=0;i<52;i++){\n\t \t\tA[i]=0;\n\t \t}\n\t \tint n= sc.nextInt();\n \tint[] B=new int[n];\n \tfor(int i=0;i<n;i++){\n \t\tString a=sc.next();\n\t \tint b=sc.nextInt();\n\t \t\tif(a.equals(\"S\")){\n\t \t\t\tB[i]=b;\n\t \t\t}else if(a.equals(\"H\")){\n\t \t\t\tB[i]=13+b;\n \t\t}else if(a.equals(\"C\")){\n \t\t\tB[i]=26+b;\n\t \t}else if(a.equals(\"D\")){\n\t \t\tB[i]=39+b;\n\t \t\t}\n\t \t\tfor(int j=1;j<53;j++){\n\t \t\t\tif(j==B[i]){\n\t \t\t\t\tA[j-1]=1;\n\t \t\t\t}\n\t \t\t}\n\t \t}\n \tfor(int i=0;i<52;i++){\n \t\tif(A[i]==0){\n \t\t\tif(i+1<14){\n \t\t\t\tSystem.out.println(\"S \"+(i+1));\n \t\t\t}else if(i+1<27){\n \t\t\t\tSystem.out.println(\"H \"+(i-12));\n \t\t\t}else if(i+1<40){\n \t\t\t\tSystem.out.println(\"C \"+(i-25));\n \t\t\t}else if(i+1<53){\n \t\t\t\tSystem.out.println(\"D \"+(i-38));\n \t\t\t}\n \t\t}\n \t}\n\t}",
"main",
"{\n\t\tScanner sc =new Scanner(System.in);\n\t\tint[] A=new int [52];\n\t \tfor(int i=0;i<52;i++){\n\t \t\tA[i]=0;\n\t \t}\n\t \tint n= sc.nextInt();\n \tint[] B=new int[n];\n \tfor(int i=0;i<n;i++){\n \t\tString a=sc.next();\n\t \tint b=sc.nextInt();\n\t \t\tif(a.equals(\"S\")){\n\t \t\t\tB[i]=b;\n\t \t\t}else if(a.equals(\"H\")){\n\t \t\t\tB[i]=13+b;\n \t\t}else if(a.equals(\"C\")){\n \t\t\tB[i]=26+b;\n\t \t}else if(a.equals(\"D\")){\n\t \t\tB[i]=39+b;\n\t \t\t}\n\t \t\tfor(int j=1;j<53;j++){\n\t \t\t\tif(j==B[i]){\n\t \t\t\t\tA[j-1]=1;\n\t \t\t\t}\n\t \t\t}\n\t \t}\n \tfor(int i=0;i<52;i++){\n \t\tif(A[i]==0){\n \t\t\tif(i+1<14){\n \t\t\t\tSystem.out.println(\"S \"+(i+1));\n \t\t\t}else if(i+1<27){\n \t\t\t\tSystem.out.println(\"H \"+(i-12));\n \t\t\t}else if(i+1<40){\n \t\t\t\tSystem.out.println(\"C \"+(i-25));\n \t\t\t}else if(i+1<53){\n \t\t\t\tSystem.out.println(\"D \"+(i-38));\n \t\t\t}\n \t\t}\n \t}\n\t}",
"Scanner sc =new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] A=new int [52];",
"A",
"new int [52]",
"52",
"for(int i=0;i<52;i++){\n\t \t\tA[i]=0;\n\t \t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<52",
"i",
"52",
"i++",
"i++",
"i",
"{\n\t \t\tA[i]=0;\n\t \t}",
"{\n\t \t\tA[i]=0;\n\t \t}",
"A[i]=0",
"A[i]",
"A",
"i",
"0",
"int n= sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] B=new int[n];",
"B",
"new int[n]",
"n",
"for(int i=0;i<n;i++){\n \t\tString a=sc.next();\n\t \tint b=sc.nextInt();\n\t \t\tif(a.equals(\"S\")){\n\t \t\t\tB[i]=b;\n\t \t\t}else if(a.equals(\"H\")){\n\t \t\t\tB[i]=13+b;\n \t\t}else if(a.equals(\"C\")){\n \t\t\tB[i]=26+b;\n\t \t}else if(a.equals(\"D\")){\n\t \t\tB[i]=39+b;\n\t \t\t}\n\t \t\tfor(int j=1;j<53;j++){\n\t \t\t\tif(j==B[i]){\n\t \t\t\t\tA[j-1]=1;\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\tString a=sc.next();\n\t \tint b=sc.nextInt();\n\t \t\tif(a.equals(\"S\")){\n\t \t\t\tB[i]=b;\n\t \t\t}else if(a.equals(\"H\")){\n\t \t\t\tB[i]=13+b;\n \t\t}else if(a.equals(\"C\")){\n \t\t\tB[i]=26+b;\n\t \t}else if(a.equals(\"D\")){\n\t \t\tB[i]=39+b;\n\t \t\t}\n\t \t\tfor(int j=1;j<53;j++){\n\t \t\t\tif(j==B[i]){\n\t \t\t\t\tA[j-1]=1;\n\t \t\t\t}\n\t \t\t}\n\t \t}",
"{\n \t\tString a=sc.next();\n\t \tint b=sc.nextInt();\n\t \t\tif(a.equals(\"S\")){\n\t \t\t\tB[i]=b;\n\t \t\t}else if(a.equals(\"H\")){\n\t \t\t\tB[i]=13+b;\n \t\t}else if(a.equals(\"C\")){\n \t\t\tB[i]=26+b;\n\t \t}else if(a.equals(\"D\")){\n\t \t\tB[i]=39+b;\n\t \t\t}\n\t \t\tfor(int j=1;j<53;j++){\n\t \t\t\tif(j==B[i]){\n\t \t\t\t\tA[j-1]=1;\n\t \t\t\t}\n\t \t\t}\n\t \t}",
"String a=sc.next();",
"a",
"sc.next()",
"sc.next",
"sc",
"int b=sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(a.equals(\"S\")){\n\t \t\t\tB[i]=b;\n\t \t\t}else if(a.equals(\"H\")){\n\t \t\t\tB[i]=13+b;\n \t\t}else if(a.equals(\"C\")){\n \t\t\tB[i]=26+b;\n\t \t}else if(a.equals(\"D\")){\n\t \t\tB[i]=39+b;\n\t \t\t}",
"a.equals(\"S\")",
"a.equals",
"a",
"\"S\"",
"{\n\t \t\t\tB[i]=b;\n\t \t\t}",
"B[i]=b",
"B[i]",
"B",
"i",
"b",
"if(a.equals(\"H\")){\n\t \t\t\tB[i]=13+b;\n \t\t}else if(a.equals(\"C\")){\n \t\t\tB[i]=26+b;\n\t \t}else if(a.equals(\"D\")){\n\t \t\tB[i]=39+b;\n\t \t\t}",
"a.equals(\"H\")",
"a.equals",
"a",
"\"H\"",
"{\n\t \t\t\tB[i]=13+b;\n \t\t}",
"B[i]=13+b",
"B[i]",
"B",
"i",
"13+b",
"13",
"b",
"if(a.equals(\"C\")){\n \t\t\tB[i]=26+b;\n\t \t}else if(a.equals(\"D\")){\n\t \t\tB[i]=39+b;\n\t \t\t}",
"a.equals(\"C\")",
"a.equals",
"a",
"\"C\"",
"{\n \t\t\tB[i]=26+b;\n\t \t}",
"B[i]=26+b",
"B[i]",
"B",
"i",
"26+b",
"26",
"b",
"if(a.equals(\"D\")){\n\t \t\tB[i]=39+b;\n\t \t\t}",
"a.equals(\"D\")",
"a.equals",
"a",
"\"D\"",
"{\n\t \t\tB[i]=39+b;\n\t \t\t}",
"B[i]=39+b",
"B[i]",
"B",
"i",
"39+b",
"39",
"b",
"for(int j=1;j<53;j++){\n\t \t\t\tif(j==B[i]){\n\t \t\t\t\tA[j-1]=1;\n\t \t\t\t}\n\t \t\t}",
"int j=1;",
"int j=1;",
"j",
"1",
"j<53",
"j",
"53",
"j++",
"j++",
"j",
"{\n\t \t\t\tif(j==B[i]){\n\t \t\t\t\tA[j-1]=1;\n\t \t\t\t}\n\t \t\t}",
"{\n\t \t\t\tif(j==B[i]){\n\t \t\t\t\tA[j-1]=1;\n\t \t\t\t}\n\t \t\t}",
"if(j==B[i]){\n\t \t\t\t\tA[j-1]=1;\n\t \t\t\t}",
"j==B[i]",
"j",
"B[i]",
"B",
"i",
"{\n\t \t\t\t\tA[j-1]=1;\n\t \t\t\t}",
"A[j-1]=1",
"A[j-1]",
"A",
"j-1",
"j",
"1",
"1",
"for(int i=0;i<52;i++){\n \t\tif(A[i]==0){\n \t\t\tif(i+1<14){\n \t\t\t\tSystem.out.println(\"S \"+(i+1));\n \t\t\t}else if(i+1<27){\n \t\t\t\tSystem.out.println(\"H \"+(i-12));\n \t\t\t}else if(i+1<40){\n \t\t\t\tSystem.out.println(\"C \"+(i-25));\n \t\t\t}else if(i+1<53){\n \t\t\t\tSystem.out.println(\"D \"+(i-38));\n \t\t\t}\n \t\t}\n \t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<52",
"i",
"52",
"i++",
"i++",
"i",
"{\n \t\tif(A[i]==0){\n \t\t\tif(i+1<14){\n \t\t\t\tSystem.out.println(\"S \"+(i+1));\n \t\t\t}else if(i+1<27){\n \t\t\t\tSystem.out.println(\"H \"+(i-12));\n \t\t\t}else if(i+1<40){\n \t\t\t\tSystem.out.println(\"C \"+(i-25));\n \t\t\t}else if(i+1<53){\n \t\t\t\tSystem.out.println(\"D \"+(i-38));\n \t\t\t}\n \t\t}\n \t}",
"{\n \t\tif(A[i]==0){\n \t\t\tif(i+1<14){\n \t\t\t\tSystem.out.println(\"S \"+(i+1));\n \t\t\t}else if(i+1<27){\n \t\t\t\tSystem.out.println(\"H \"+(i-12));\n \t\t\t}else if(i+1<40){\n \t\t\t\tSystem.out.println(\"C \"+(i-25));\n \t\t\t}else if(i+1<53){\n \t\t\t\tSystem.out.println(\"D \"+(i-38));\n \t\t\t}\n \t\t}\n \t}",
"if(A[i]==0){\n \t\t\tif(i+1<14){\n \t\t\t\tSystem.out.println(\"S \"+(i+1));\n \t\t\t}else if(i+1<27){\n \t\t\t\tSystem.out.println(\"H \"+(i-12));\n \t\t\t}else if(i+1<40){\n \t\t\t\tSystem.out.println(\"C \"+(i-25));\n \t\t\t}else if(i+1<53){\n \t\t\t\tSystem.out.println(\"D \"+(i-38));\n \t\t\t}\n \t\t}",
"A[i]==0",
"A[i]",
"A",
"i",
"0",
"{\n \t\t\tif(i+1<14){\n \t\t\t\tSystem.out.println(\"S \"+(i+1));\n \t\t\t}else if(i+1<27){\n \t\t\t\tSystem.out.println(\"H \"+(i-12));\n \t\t\t}else if(i+1<40){\n \t\t\t\tSystem.out.println(\"C \"+(i-25));\n \t\t\t}else if(i+1<53){\n \t\t\t\tSystem.out.println(\"D \"+(i-38));\n \t\t\t}\n \t\t}",
"if(i+1<14){\n \t\t\t\tSystem.out.println(\"S \"+(i+1));\n \t\t\t}else if(i+1<27){\n \t\t\t\tSystem.out.println(\"H \"+(i-12));\n \t\t\t}else if(i+1<40){\n \t\t\t\tSystem.out.println(\"C \"+(i-25));\n \t\t\t}else if(i+1<53){\n \t\t\t\tSystem.out.println(\"D \"+(i-38));\n \t\t\t}",
"i+1<14",
"i+1",
"i",
"1",
"14",
"{\n \t\t\t\tSystem.out.println(\"S \"+(i+1));\n \t\t\t}",
"System.out.println(\"S \"+(i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \"+(i+1)",
"\"S \"",
"(i+1)",
"i",
"1",
"if(i+1<27){\n \t\t\t\tSystem.out.println(\"H \"+(i-12));\n \t\t\t}else if(i+1<40){\n \t\t\t\tSystem.out.println(\"C \"+(i-25));\n \t\t\t}else if(i+1<53){\n \t\t\t\tSystem.out.println(\"D \"+(i-38));\n \t\t\t}",
"i+1<27",
"i+1",
"i",
"1",
"27",
"{\n \t\t\t\tSystem.out.println(\"H \"+(i-12));\n \t\t\t}",
"System.out.println(\"H \"+(i-12))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \"+(i-12)",
"\"H \"",
"(i-12)",
"i",
"12",
"if(i+1<40){\n \t\t\t\tSystem.out.println(\"C \"+(i-25));\n \t\t\t}else if(i+1<53){\n \t\t\t\tSystem.out.println(\"D \"+(i-38));\n \t\t\t}",
"i+1<40",
"i+1",
"i",
"1",
"40",
"{\n \t\t\t\tSystem.out.println(\"C \"+(i-25));\n \t\t\t}",
"System.out.println(\"C \"+(i-25))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \"+(i-25)",
"\"C \"",
"(i-25)",
"i",
"25",
"if(i+1<53){\n \t\t\t\tSystem.out.println(\"D \"+(i-38));\n \t\t\t}",
"i+1<53",
"i+1",
"i",
"1",
"53",
"{\n \t\t\t\tSystem.out.println(\"D \"+(i-38));\n \t\t\t}",
"System.out.println(\"D \"+(i-38))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \"+(i-38)",
"\"D \"",
"(i-38)",
"i",
"38",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc =new Scanner(System.in);\n\t\tint[] A=new int [52];\n\t \tfor(int i=0;i<52;i++){\n\t \t\tA[i]=0;\n\t \t}\n\t \tint n= sc.nextInt();\n \tint[] B=new int[n];\n \tfor(int i=0;i<n;i++){\n \t\tString a=sc.next();\n\t \tint b=sc.nextInt();\n\t \t\tif(a.equals(\"S\")){\n\t \t\t\tB[i]=b;\n\t \t\t}else if(a.equals(\"H\")){\n\t \t\t\tB[i]=13+b;\n \t\t}else if(a.equals(\"C\")){\n \t\t\tB[i]=26+b;\n\t \t}else if(a.equals(\"D\")){\n\t \t\tB[i]=39+b;\n\t \t\t}\n\t \t\tfor(int j=1;j<53;j++){\n\t \t\t\tif(j==B[i]){\n\t \t\t\t\tA[j-1]=1;\n\t \t\t\t}\n\t \t\t}\n\t \t}\n \tfor(int i=0;i<52;i++){\n \t\tif(A[i]==0){\n \t\t\tif(i+1<14){\n \t\t\t\tSystem.out.println(\"S \"+(i+1));\n \t\t\t}else if(i+1<27){\n \t\t\t\tSystem.out.println(\"H \"+(i-12));\n \t\t\t}else if(i+1<40){\n \t\t\t\tSystem.out.println(\"C \"+(i-25));\n \t\t\t}else if(i+1<53){\n \t\t\t\tSystem.out.println(\"D \"+(i-38));\n \t\t\t}\n \t\t}\n \t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc =new Scanner(System.in);\n\t\tint[] A=new int [52];\n\t \tfor(int i=0;i<52;i++){\n\t \t\tA[i]=0;\n\t \t}\n\t \tint n= sc.nextInt();\n \tint[] B=new int[n];\n \tfor(int i=0;i<n;i++){\n \t\tString a=sc.next();\n\t \tint b=sc.nextInt();\n\t \t\tif(a.equals(\"S\")){\n\t \t\t\tB[i]=b;\n\t \t\t}else if(a.equals(\"H\")){\n\t \t\t\tB[i]=13+b;\n \t\t}else if(a.equals(\"C\")){\n \t\t\tB[i]=26+b;\n\t \t}else if(a.equals(\"D\")){\n\t \t\tB[i]=39+b;\n\t \t\t}\n\t \t\tfor(int j=1;j<53;j++){\n\t \t\t\tif(j==B[i]){\n\t \t\t\t\tA[j-1]=1;\n\t \t\t\t}\n\t \t\t}\n\t \t}\n \tfor(int i=0;i<52;i++){\n \t\tif(A[i]==0){\n \t\t\tif(i+1<14){\n \t\t\t\tSystem.out.println(\"S \"+(i+1));\n \t\t\t}else if(i+1<27){\n \t\t\t\tSystem.out.println(\"H \"+(i-12));\n \t\t\t}else if(i+1<40){\n \t\t\t\tSystem.out.println(\"C \"+(i-25));\n \t\t\t}else if(i+1<53){\n \t\t\t\tSystem.out.println(\"D \"+(i-38));\n \t\t\t}\n \t\t}\n \t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc =new Scanner(System.in);
int[] A=new int [52];
for(int i=0;i<52;i++){
A[i]=0;
}
int n= sc.nextInt();
int[] B=new int[n];
for(int i=0;i<n;i++){
String a=sc.next();
int b=sc.nextInt();
if(a.equals("S")){
B[i]=b;
}else if(a.equals("H")){
B[i]=13+b;
}else if(a.equals("C")){
B[i]=26+b;
}else if(a.equals("D")){
B[i]=39+b;
}
for(int j=1;j<53;j++){
if(j==B[i]){
A[j-1]=1;
}
}
}
for(int i=0;i<52;i++){
if(A[i]==0){
if(i+1<14){
System.out.println("S "+(i+1));
}else if(i+1<27){
System.out.println("H "+(i-12));
}else if(i+1<40){
System.out.println("C "+(i-25));
}else if(i+1<53){
System.out.println("D "+(i-38));
}
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
18,
18,
13,
13,
13,
30,
35,
13,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
34,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
34,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
45,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
45,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
60,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
60,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
75,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
86,
88
],
[
81,
89
],
[
75,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
96,
97
],
[
96,
98
],
[
91,
99
],
[
8,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
100,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
113,
121
],
[
121,
122
],
[
122,
123
],
[
113,
124
],
[
125,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
126,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
146,
148
],
[
138,
149
],
[
134,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
153,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
160,
162
],
[
152,
163
],
[
134,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
174,
176
],
[
166,
177
],
[
134,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
181,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
188,
190
],
[
180,
191
],
[
6,
192
],
[
192,
193
],
[
0,
194
],
[
194,
195
],
[
194,
196
]
] | [
"import java.util.Scanner;\n\n\npublic class Main {\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tboolean[][] a = new boolean[4][13];\n\t\tint n = stdIn.nextInt();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString p = stdIn.next();\n\t\t\tint v = stdIn.nextInt();\n\t\t\t\n\t\t\tif(p.equals(\"S\")) {\n\t\t\t\ta[0][v-1] = true;\n\t\t\t}\n\t\t\telse if (p.equals(\"H\")) {\t\n\t\t\t\ta[1][v-1] = true;\n\t\t\t}\n\t\t\telse if (p.equals(\"C\")) {\t\n\t\t\t\ta[2][v-1] = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\ta[3][v-1] = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++) {\n\t\t\tfor(int j = 0; j < 13; j++) {\n\t\t\t\tif(!a[i][j]) {\n\t\t\t\t\tswitch(i) {\n\t\t\t\t\tcase 0 : System.out.println(\"S \" + (j + 1)); break;\n\t\t\t\t\tcase 1 : System.out.println(\"H \" + (j + 1)); break;\n\t\t\t\t\tcase 2 : System.out.println(\"C \" + (j + 1)); break;\n\t\t\t\t\tcase 3 : System.out.println(\"D \" + (j + 1)); break;\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\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tboolean[][] a = new boolean[4][13];\n\t\tint n = stdIn.nextInt();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString p = stdIn.next();\n\t\t\tint v = stdIn.nextInt();\n\t\t\t\n\t\t\tif(p.equals(\"S\")) {\n\t\t\t\ta[0][v-1] = true;\n\t\t\t}\n\t\t\telse if (p.equals(\"H\")) {\t\n\t\t\t\ta[1][v-1] = true;\n\t\t\t}\n\t\t\telse if (p.equals(\"C\")) {\t\n\t\t\t\ta[2][v-1] = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\ta[3][v-1] = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++) {\n\t\t\tfor(int j = 0; j < 13; j++) {\n\t\t\t\tif(!a[i][j]) {\n\t\t\t\t\tswitch(i) {\n\t\t\t\t\tcase 0 : System.out.println(\"S \" + (j + 1)); break;\n\t\t\t\t\tcase 1 : System.out.println(\"H \" + (j + 1)); break;\n\t\t\t\t\tcase 2 : System.out.println(\"C \" + (j + 1)); break;\n\t\t\t\t\tcase 3 : System.out.println(\"D \" + (j + 1)); break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tboolean[][] a = new boolean[4][13];\n\t\tint n = stdIn.nextInt();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString p = stdIn.next();\n\t\t\tint v = stdIn.nextInt();\n\t\t\t\n\t\t\tif(p.equals(\"S\")) {\n\t\t\t\ta[0][v-1] = true;\n\t\t\t}\n\t\t\telse if (p.equals(\"H\")) {\t\n\t\t\t\ta[1][v-1] = true;\n\t\t\t}\n\t\t\telse if (p.equals(\"C\")) {\t\n\t\t\t\ta[2][v-1] = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\ta[3][v-1] = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++) {\n\t\t\tfor(int j = 0; j < 13; j++) {\n\t\t\t\tif(!a[i][j]) {\n\t\t\t\t\tswitch(i) {\n\t\t\t\t\tcase 0 : System.out.println(\"S \" + (j + 1)); break;\n\t\t\t\t\tcase 1 : System.out.println(\"H \" + (j + 1)); break;\n\t\t\t\t\tcase 2 : System.out.println(\"C \" + (j + 1)); break;\n\t\t\t\t\tcase 3 : System.out.println(\"D \" + (j + 1)); break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tboolean[][] a = new boolean[4][13];\n\t\tint n = stdIn.nextInt();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString p = stdIn.next();\n\t\t\tint v = stdIn.nextInt();\n\t\t\t\n\t\t\tif(p.equals(\"S\")) {\n\t\t\t\ta[0][v-1] = true;\n\t\t\t}\n\t\t\telse if (p.equals(\"H\")) {\t\n\t\t\t\ta[1][v-1] = true;\n\t\t\t}\n\t\t\telse if (p.equals(\"C\")) {\t\n\t\t\t\ta[2][v-1] = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\ta[3][v-1] = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++) {\n\t\t\tfor(int j = 0; j < 13; j++) {\n\t\t\t\tif(!a[i][j]) {\n\t\t\t\t\tswitch(i) {\n\t\t\t\t\tcase 0 : System.out.println(\"S \" + (j + 1)); break;\n\t\t\t\t\tcase 1 : System.out.println(\"H \" + (j + 1)); break;\n\t\t\t\t\tcase 2 : System.out.println(\"C \" + (j + 1)); break;\n\t\t\t\t\tcase 3 : System.out.println(\"D \" + (j + 1)); break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"boolean[][] a = new boolean[4][13];",
"a",
"new boolean[4][13]",
"4",
"13",
"int n = stdIn.nextInt();",
"n",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"for(int i = 0; i < n; i++) {\n\t\t\tString p = stdIn.next();\n\t\t\tint v = stdIn.nextInt();\n\t\t\t\n\t\t\tif(p.equals(\"S\")) {\n\t\t\t\ta[0][v-1] = true;\n\t\t\t}\n\t\t\telse if (p.equals(\"H\")) {\t\n\t\t\t\ta[1][v-1] = true;\n\t\t\t}\n\t\t\telse if (p.equals(\"C\")) {\t\n\t\t\t\ta[2][v-1] = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\ta[3][v-1] = true;\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 p = stdIn.next();\n\t\t\tint v = stdIn.nextInt();\n\t\t\t\n\t\t\tif(p.equals(\"S\")) {\n\t\t\t\ta[0][v-1] = true;\n\t\t\t}\n\t\t\telse if (p.equals(\"H\")) {\t\n\t\t\t\ta[1][v-1] = true;\n\t\t\t}\n\t\t\telse if (p.equals(\"C\")) {\t\n\t\t\t\ta[2][v-1] = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\ta[3][v-1] = true;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString p = stdIn.next();\n\t\t\tint v = stdIn.nextInt();\n\t\t\t\n\t\t\tif(p.equals(\"S\")) {\n\t\t\t\ta[0][v-1] = true;\n\t\t\t}\n\t\t\telse if (p.equals(\"H\")) {\t\n\t\t\t\ta[1][v-1] = true;\n\t\t\t}\n\t\t\telse if (p.equals(\"C\")) {\t\n\t\t\t\ta[2][v-1] = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\ta[3][v-1] = true;\n\t\t\t}\n\t\t}",
"String p = stdIn.next();",
"p",
"stdIn.next()",
"stdIn.next",
"stdIn",
"int v = stdIn.nextInt();",
"v",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"if(p.equals(\"S\")) {\n\t\t\t\ta[0][v-1] = true;\n\t\t\t}\n\t\t\telse if (p.equals(\"H\")) {\t\n\t\t\t\ta[1][v-1] = true;\n\t\t\t}\n\t\t\telse if (p.equals(\"C\")) {\t\n\t\t\t\ta[2][v-1] = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\ta[3][v-1] = true;\n\t\t\t}",
"p.equals(\"S\")",
"p.equals",
"p",
"\"S\"",
"{\n\t\t\t\ta[0][v-1] = true;\n\t\t\t}",
"a[0][v-1] = true",
"a[0][v-1]",
"a[0]",
"a",
"0",
"v-1",
"v",
"1",
"true",
"if (p.equals(\"H\")) {\t\n\t\t\t\ta[1][v-1] = true;\n\t\t\t}\n\t\t\telse if (p.equals(\"C\")) {\t\n\t\t\t\ta[2][v-1] = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\ta[3][v-1] = true;\n\t\t\t}",
"p.equals(\"H\")",
"p.equals",
"p",
"\"H\"",
"{\t\n\t\t\t\ta[1][v-1] = true;\n\t\t\t}",
"a[1][v-1] = true",
"a[1][v-1]",
"a[1]",
"a",
"1",
"v-1",
"v",
"1",
"true",
"if (p.equals(\"C\")) {\t\n\t\t\t\ta[2][v-1] = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\ta[3][v-1] = true;\n\t\t\t}",
"p.equals(\"C\")",
"p.equals",
"p",
"\"C\"",
"{\t\n\t\t\t\ta[2][v-1] = true;\n\t\t\t}",
"a[2][v-1] = true",
"a[2][v-1]",
"a[2]",
"a",
"2",
"v-1",
"v",
"1",
"true",
"{\n\t\t\t\ta[3][v-1] = true;\n\t\t\t}",
"a[3][v-1] = true",
"a[3][v-1]",
"a[3]",
"a",
"3",
"v-1",
"v",
"1",
"true",
"for(int i = 0; i < 4; i++) {\n\t\t\tfor(int j = 0; j < 13; j++) {\n\t\t\t\tif(!a[i][j]) {\n\t\t\t\t\tswitch(i) {\n\t\t\t\t\tcase 0 : System.out.println(\"S \" + (j + 1)); break;\n\t\t\t\t\tcase 1 : System.out.println(\"H \" + (j + 1)); break;\n\t\t\t\t\tcase 2 : System.out.println(\"C \" + (j + 1)); break;\n\t\t\t\t\tcase 3 : System.out.println(\"D \" + (j + 1)); break;\n\t\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 < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0; j < 13; j++) {\n\t\t\t\tif(!a[i][j]) {\n\t\t\t\t\tswitch(i) {\n\t\t\t\t\tcase 0 : System.out.println(\"S \" + (j + 1)); break;\n\t\t\t\t\tcase 1 : System.out.println(\"H \" + (j + 1)); break;\n\t\t\t\t\tcase 2 : System.out.println(\"C \" + (j + 1)); break;\n\t\t\t\t\tcase 3 : System.out.println(\"D \" + (j + 1)); break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0; j < 13; j++) {\n\t\t\t\tif(!a[i][j]) {\n\t\t\t\t\tswitch(i) {\n\t\t\t\t\tcase 0 : System.out.println(\"S \" + (j + 1)); break;\n\t\t\t\t\tcase 1 : System.out.println(\"H \" + (j + 1)); break;\n\t\t\t\t\tcase 2 : System.out.println(\"C \" + (j + 1)); break;\n\t\t\t\t\tcase 3 : System.out.println(\"D \" + (j + 1)); break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int j = 0; j < 13; j++) {\n\t\t\t\tif(!a[i][j]) {\n\t\t\t\t\tswitch(i) {\n\t\t\t\t\tcase 0 : System.out.println(\"S \" + (j + 1)); break;\n\t\t\t\t\tcase 1 : System.out.println(\"H \" + (j + 1)); break;\n\t\t\t\t\tcase 2 : System.out.println(\"C \" + (j + 1)); break;\n\t\t\t\t\tcase 3 : System.out.println(\"D \" + (j + 1)); break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(!a[i][j]) {\n\t\t\t\t\tswitch(i) {\n\t\t\t\t\tcase 0 : System.out.println(\"S \" + (j + 1)); break;\n\t\t\t\t\tcase 1 : System.out.println(\"H \" + (j + 1)); break;\n\t\t\t\t\tcase 2 : System.out.println(\"C \" + (j + 1)); break;\n\t\t\t\t\tcase 3 : System.out.println(\"D \" + (j + 1)); break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(!a[i][j]) {\n\t\t\t\t\tswitch(i) {\n\t\t\t\t\tcase 0 : System.out.println(\"S \" + (j + 1)); break;\n\t\t\t\t\tcase 1 : System.out.println(\"H \" + (j + 1)); break;\n\t\t\t\t\tcase 2 : System.out.println(\"C \" + (j + 1)); break;\n\t\t\t\t\tcase 3 : System.out.println(\"D \" + (j + 1)); break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"if(!a[i][j]) {\n\t\t\t\t\tswitch(i) {\n\t\t\t\t\tcase 0 : System.out.println(\"S \" + (j + 1)); break;\n\t\t\t\t\tcase 1 : System.out.println(\"H \" + (j + 1)); break;\n\t\t\t\t\tcase 2 : System.out.println(\"C \" + (j + 1)); break;\n\t\t\t\t\tcase 3 : System.out.println(\"D \" + (j + 1)); break;\n\t\t\t\t\t}\n\t\t\t\t}",
"!a[i][j]",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"{\n\t\t\t\t\tswitch(i) {\n\t\t\t\t\tcase 0 : System.out.println(\"S \" + (j + 1)); break;\n\t\t\t\t\tcase 1 : System.out.println(\"H \" + (j + 1)); break;\n\t\t\t\t\tcase 2 : System.out.println(\"C \" + (j + 1)); break;\n\t\t\t\t\tcase 3 : System.out.println(\"D \" + (j + 1)); break;\n\t\t\t\t\t}\n\t\t\t\t}",
"switch(i) {\n\t\t\t\t\tcase 0 : System.out.println(\"S \" + (j + 1)); break;\n\t\t\t\t\tcase 1 : System.out.println(\"H \" + (j + 1)); break;\n\t\t\t\t\tcase 2 : System.out.println(\"C \" + (j + 1)); break;\n\t\t\t\t\tcase 3 : System.out.println(\"D \" + (j + 1)); break;\n\t\t\t\t\t}",
"i",
"case 0 :",
"0",
"case 0 :",
"System.out.println(\"S \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \" + (j + 1)",
"\"S \"",
"(j + 1)",
"j",
"1",
"break;",
"case 1 :",
"1",
"case 1 :",
"System.out.println(\"H \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \" + (j + 1)",
"\"H \"",
"(j + 1)",
"j",
"1",
"break;",
"case 2 :",
"2",
"case 2 :",
"System.out.println(\"C \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \" + (j + 1)",
"\"C \"",
"(j + 1)",
"j",
"1",
"break;",
"case 3 :",
"3",
"case 3 :",
"System.out.println(\"D \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \" + (j + 1)",
"\"D \"",
"(j + 1)",
"j",
"1",
"break;",
"String[] args",
"args",
"public class Main {\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tboolean[][] a = new boolean[4][13];\n\t\tint n = stdIn.nextInt();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString p = stdIn.next();\n\t\t\tint v = stdIn.nextInt();\n\t\t\t\n\t\t\tif(p.equals(\"S\")) {\n\t\t\t\ta[0][v-1] = true;\n\t\t\t}\n\t\t\telse if (p.equals(\"H\")) {\t\n\t\t\t\ta[1][v-1] = true;\n\t\t\t}\n\t\t\telse if (p.equals(\"C\")) {\t\n\t\t\t\ta[2][v-1] = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\ta[3][v-1] = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++) {\n\t\t\tfor(int j = 0; j < 13; j++) {\n\t\t\t\tif(!a[i][j]) {\n\t\t\t\t\tswitch(i) {\n\t\t\t\t\tcase 0 : System.out.println(\"S \" + (j + 1)); break;\n\t\t\t\t\tcase 1 : System.out.println(\"H \" + (j + 1)); break;\n\t\t\t\t\tcase 2 : System.out.println(\"C \" + (j + 1)); break;\n\t\t\t\t\tcase 3 : System.out.println(\"D \" + (j + 1)); break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}",
"public class Main {\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tboolean[][] a = new boolean[4][13];\n\t\tint n = stdIn.nextInt();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString p = stdIn.next();\n\t\t\tint v = stdIn.nextInt();\n\t\t\t\n\t\t\tif(p.equals(\"S\")) {\n\t\t\t\ta[0][v-1] = true;\n\t\t\t}\n\t\t\telse if (p.equals(\"H\")) {\t\n\t\t\t\ta[1][v-1] = true;\n\t\t\t}\n\t\t\telse if (p.equals(\"C\")) {\t\n\t\t\t\ta[2][v-1] = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\ta[3][v-1] = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++) {\n\t\t\tfor(int j = 0; j < 13; j++) {\n\t\t\t\tif(!a[i][j]) {\n\t\t\t\t\tswitch(i) {\n\t\t\t\t\tcase 0 : System.out.println(\"S \" + (j + 1)); break;\n\t\t\t\t\tcase 1 : System.out.println(\"H \" + (j + 1)); break;\n\t\t\t\t\tcase 2 : System.out.println(\"C \" + (j + 1)); break;\n\t\t\t\t\tcase 3 : System.out.println(\"D \" + (j + 1)); break;\n\t\t\t\t\t}\n\t\t\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) {
Scanner stdIn = new Scanner(System.in);
boolean[][] a = new boolean[4][13];
int n = stdIn.nextInt();
for(int i = 0; i < n; i++) {
String p = stdIn.next();
int v = stdIn.nextInt();
if(p.equals("S")) {
a[0][v-1] = true;
}
else if (p.equals("H")) {
a[1][v-1] = true;
}
else if (p.equals("C")) {
a[2][v-1] = true;
}
else {
a[3][v-1] = true;
}
}
for(int i = 0; i < 4; i++) {
for(int j = 0; j < 13; j++) {
if(!a[i][j]) {
switch(i) {
case 0 : System.out.println("S " + (j + 1)); break;
case 1 : System.out.println("H " + (j + 1)); break;
case 2 : System.out.println("C " + (j + 1)); break;
case 3 : System.out.println("D " + (j + 1)); break;
}
}
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
2,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
2,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
2,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
2,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
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
],
[
219,
8
],
[
219,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
37,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
37,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
54,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
68,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
92,
94
],
[
87,
95
],
[
82,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
106,
108
],
[
101,
109
],
[
11,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
110,
118
],
[
118,
119
],
[
119,
120
],
[
110,
121
],
[
122,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
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
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
137,
143
],
[
136,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
150,
155
],
[
156,
156
],
[
156,
157
],
[
156,
158
],
[
156,
159
],
[
159,
160
],
[
159,
161
],
[
145,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
173,
173
],
[
173,
174
],
[
173,
175
],
[
173,
176
],
[
176,
177
],
[
176,
178
],
[
162,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
184,
189
],
[
190,
190
],
[
190,
191
],
[
190,
192
],
[
190,
193
],
[
193,
194
],
[
193,
195
],
[
179,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
196,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
201,
206
],
[
207,
207
],
[
207,
208
],
[
207,
209
],
[
207,
210
],
[
210,
211
],
[
210,
212
],
[
11,
213
],
[
213,
214
],
[
214,
215
],
[
9,
216
],
[
216,
217
],
[
0,
218
],
[
218,
219
],
[
218,
220
]
] | [
"import java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args)throws IOException {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean[][] card = new boolean[4][13];\n\n\t\tint n = sc.nextInt();\n\n\t\tfor (int k = 0; k < n; k++) { // ????????????????????????????????£??\\\n\t\t\t\n\t\t\tString mark = sc.next();\n\t\t\tchar c = mark.charAt(0);\n\t\t\tint num = sc.nextInt();\n\t\t\t\n\n\t\t\tif (c == 'S') {\n\t\t\t\tcard[0][num - 1] = true;\n\t\t\t} else if (c == 'H') {\n\t\t\t\tcard[1][num - 1] = true;\n\t\t\t} else if (c == 'C') {\n\t\t\t\tcard[2][num - 1] = true;\n\t\t\t} else if (c == 'D') {\n\t\t\t\tcard[3][num - 1] = true;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (card[i][j] == false) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args)throws IOException {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean[][] card = new boolean[4][13];\n\n\t\tint n = sc.nextInt();\n\n\t\tfor (int k = 0; k < n; k++) { // ????????????????????????????????£??\\\n\t\t\t\n\t\t\tString mark = sc.next();\n\t\t\tchar c = mark.charAt(0);\n\t\t\tint num = sc.nextInt();\n\t\t\t\n\n\t\t\tif (c == 'S') {\n\t\t\t\tcard[0][num - 1] = true;\n\t\t\t} else if (c == 'H') {\n\t\t\t\tcard[1][num - 1] = true;\n\t\t\t} else if (c == 'C') {\n\t\t\t\tcard[2][num - 1] = true;\n\t\t\t} else if (c == 'D') {\n\t\t\t\tcard[3][num - 1] = true;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (card[i][j] == false) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\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\t\tboolean[][] card = new boolean[4][13];\n\n\t\tint n = sc.nextInt();\n\n\t\tfor (int k = 0; k < n; k++) { // ????????????????????????????????£??\\\n\t\t\t\n\t\t\tString mark = sc.next();\n\t\t\tchar c = mark.charAt(0);\n\t\t\tint num = sc.nextInt();\n\t\t\t\n\n\t\t\tif (c == 'S') {\n\t\t\t\tcard[0][num - 1] = true;\n\t\t\t} else if (c == 'H') {\n\t\t\t\tcard[1][num - 1] = true;\n\t\t\t} else if (c == 'C') {\n\t\t\t\tcard[2][num - 1] = true;\n\t\t\t} else if (c == 'D') {\n\t\t\t\tcard[3][num - 1] = true;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (card[i][j] == false) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean[][] card = new boolean[4][13];\n\n\t\tint n = sc.nextInt();\n\n\t\tfor (int k = 0; k < n; k++) { // ????????????????????????????????£??\\\n\t\t\t\n\t\t\tString mark = sc.next();\n\t\t\tchar c = mark.charAt(0);\n\t\t\tint num = sc.nextInt();\n\t\t\t\n\n\t\t\tif (c == 'S') {\n\t\t\t\tcard[0][num - 1] = true;\n\t\t\t} else if (c == 'H') {\n\t\t\t\tcard[1][num - 1] = true;\n\t\t\t} else if (c == 'C') {\n\t\t\t\tcard[2][num - 1] = true;\n\t\t\t} else if (c == 'D') {\n\t\t\t\tcard[3][num - 1] = true;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (card[i][j] == false) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"boolean[][] card = new boolean[4][13];",
"card",
"new boolean[4][13]",
"4",
"13",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int k = 0; k < n; k++) { // ????????????????????????????????£??\\\n\t\t\t\n\t\t\tString mark = sc.next();\n\t\t\tchar c = mark.charAt(0);\n\t\t\tint num = sc.nextInt();\n\t\t\t\n\n\t\t\tif (c == 'S') {\n\t\t\t\tcard[0][num - 1] = true;\n\t\t\t} else if (c == 'H') {\n\t\t\t\tcard[1][num - 1] = true;\n\t\t\t} else if (c == 'C') {\n\t\t\t\tcard[2][num - 1] = true;\n\t\t\t} else if (c == 'D') {\n\t\t\t\tcard[3][num - 1] = true;\n\t\t\t}\n\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < n",
"k",
"n",
"k++",
"k++",
"k",
"{ // ????????????????????????????????£??\\\n\t\t\t\n\t\t\tString mark = sc.next();\n\t\t\tchar c = mark.charAt(0);\n\t\t\tint num = sc.nextInt();\n\t\t\t\n\n\t\t\tif (c == 'S') {\n\t\t\t\tcard[0][num - 1] = true;\n\t\t\t} else if (c == 'H') {\n\t\t\t\tcard[1][num - 1] = true;\n\t\t\t} else if (c == 'C') {\n\t\t\t\tcard[2][num - 1] = true;\n\t\t\t} else if (c == 'D') {\n\t\t\t\tcard[3][num - 1] = true;\n\t\t\t}\n\t\t}",
"{ // ????????????????????????????????£??\\\n\t\t\t\n\t\t\tString mark = sc.next();\n\t\t\tchar c = mark.charAt(0);\n\t\t\tint num = sc.nextInt();\n\t\t\t\n\n\t\t\tif (c == 'S') {\n\t\t\t\tcard[0][num - 1] = true;\n\t\t\t} else if (c == 'H') {\n\t\t\t\tcard[1][num - 1] = true;\n\t\t\t} else if (c == 'C') {\n\t\t\t\tcard[2][num - 1] = true;\n\t\t\t} else if (c == 'D') {\n\t\t\t\tcard[3][num - 1] = true;\n\t\t\t}\n\t\t}",
"String mark = sc.next();",
"mark",
"sc.next()",
"sc.next",
"sc",
"char c = mark.charAt(0);",
"c",
"mark.charAt(0)",
"mark.charAt",
"mark",
"0",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (c == 'S') {\n\t\t\t\tcard[0][num - 1] = true;\n\t\t\t} else if (c == 'H') {\n\t\t\t\tcard[1][num - 1] = true;\n\t\t\t} else if (c == 'C') {\n\t\t\t\tcard[2][num - 1] = true;\n\t\t\t} else if (c == 'D') {\n\t\t\t\tcard[3][num - 1] = true;\n\t\t\t}",
"c == 'S'",
"c",
"'S'",
"{\n\t\t\t\tcard[0][num - 1] = true;\n\t\t\t}",
"card[0][num - 1] = true",
"card[0][num - 1]",
"card[0]",
"card",
"0",
"num - 1",
"num",
"1",
"true",
"if (c == 'H') {\n\t\t\t\tcard[1][num - 1] = true;\n\t\t\t} else if (c == 'C') {\n\t\t\t\tcard[2][num - 1] = true;\n\t\t\t} else if (c == 'D') {\n\t\t\t\tcard[3][num - 1] = true;\n\t\t\t}",
"c == 'H'",
"c",
"'H'",
"{\n\t\t\t\tcard[1][num - 1] = true;\n\t\t\t}",
"card[1][num - 1] = true",
"card[1][num - 1]",
"card[1]",
"card",
"1",
"num - 1",
"num",
"1",
"true",
"if (c == 'C') {\n\t\t\t\tcard[2][num - 1] = true;\n\t\t\t} else if (c == 'D') {\n\t\t\t\tcard[3][num - 1] = true;\n\t\t\t}",
"c == 'C'",
"c",
"'C'",
"{\n\t\t\t\tcard[2][num - 1] = true;\n\t\t\t}",
"card[2][num - 1] = true",
"card[2][num - 1]",
"card[2]",
"card",
"2",
"num - 1",
"num",
"1",
"true",
"if (c == 'D') {\n\t\t\t\tcard[3][num - 1] = true;\n\t\t\t}",
"c == 'D'",
"c",
"'D'",
"{\n\t\t\t\tcard[3][num - 1] = true;\n\t\t\t}",
"card[3][num - 1] = true",
"card[3][num - 1]",
"card[3]",
"card",
"3",
"num - 1",
"num",
"1",
"true",
"for (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (card[i][j] == false) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + (j + 1));\n\t\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 < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (card[i][j] == false) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (card[i][j] == false) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int j = 0; j < 13; j++) {\n\t\t\t\tif (card[i][j] == false) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\tif (card[i][j] == false) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif (card[i][j] == false) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"if (card[i][j] == false) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}",
"card[i][j] == false",
"card[i][j]",
"card[i]",
"card",
"i",
"j",
"false",
"{\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}",
"if (i == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + (j + 1));\n\t\t\t\t\t}",
"i == 0",
"i",
"0",
"{\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + (j + 1));\n\t\t\t\t\t}",
"System.out.println(\"S\" + \" \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S\" + \" \" + (j + 1)",
"\"S\" + \" \" + (j + 1)",
"\"S\"",
"\" \"",
"(j + 1)",
"j",
"1",
"if (i == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + (j + 1));\n\t\t\t\t\t}",
"i == 1",
"i",
"1",
"{\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + (j + 1));\n\t\t\t\t\t}",
"System.out.println(\"H\" + \" \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H\" + \" \" + (j + 1)",
"\"H\" + \" \" + (j + 1)",
"\"H\"",
"\" \"",
"(j + 1)",
"j",
"1",
"if (i == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + (j + 1));\n\t\t\t\t\t}",
"i == 2",
"i",
"2",
"{\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + (j + 1));\n\t\t\t\t\t}",
"System.out.println(\"C\" + \" \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C\" + \" \" + (j + 1)",
"\"C\" + \" \" + (j + 1)",
"\"C\"",
"\" \"",
"(j + 1)",
"j",
"1",
"if (i == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + (j + 1));\n\t\t\t\t\t}",
"i == 3",
"i",
"3",
"{\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + (j + 1));\n\t\t\t\t\t}",
"System.out.println(\"D\" + \" \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D\" + \" \" + (j + 1)",
"\"D\" + \" \" + (j + 1)",
"\"D\"",
"\" \"",
"(j + 1)",
"j",
"1",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args)throws IOException {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean[][] card = new boolean[4][13];\n\n\t\tint n = sc.nextInt();\n\n\t\tfor (int k = 0; k < n; k++) { // ????????????????????????????????£??\\\n\t\t\t\n\t\t\tString mark = sc.next();\n\t\t\tchar c = mark.charAt(0);\n\t\t\tint num = sc.nextInt();\n\t\t\t\n\n\t\t\tif (c == 'S') {\n\t\t\t\tcard[0][num - 1] = true;\n\t\t\t} else if (c == 'H') {\n\t\t\t\tcard[1][num - 1] = true;\n\t\t\t} else if (c == 'C') {\n\t\t\t\tcard[2][num - 1] = true;\n\t\t\t} else if (c == 'D') {\n\t\t\t\tcard[3][num - 1] = true;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (card[i][j] == false) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args)throws IOException {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean[][] card = new boolean[4][13];\n\n\t\tint n = sc.nextInt();\n\n\t\tfor (int k = 0; k < n; k++) { // ????????????????????????????????£??\\\n\t\t\t\n\t\t\tString mark = sc.next();\n\t\t\tchar c = mark.charAt(0);\n\t\t\tint num = sc.nextInt();\n\t\t\t\n\n\t\t\tif (c == 'S') {\n\t\t\t\tcard[0][num - 1] = true;\n\t\t\t} else if (c == 'H') {\n\t\t\t\tcard[1][num - 1] = true;\n\t\t\t} else if (c == 'C') {\n\t\t\t\tcard[2][num - 1] = true;\n\t\t\t} else if (c == 'D') {\n\t\t\t\tcard[3][num - 1] = true;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (card[i][j] == false) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tSystem.out.println(\"S\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 1) {\n\t\t\t\t\t\tSystem.out.println(\"H\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 2) {\n\t\t\t\t\t\tSystem.out.println(\"C\" + \" \" + (j + 1));\n\t\t\t\t\t} else if (i == 3) {\n\t\t\t\t\t\tSystem.out.println(\"D\" + \" \" + (j + 1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n}",
"Main"
] | import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args)throws IOException {
Scanner sc = new Scanner(System.in);
boolean[][] card = new boolean[4][13];
int n = sc.nextInt();
for (int k = 0; k < n; k++) { // ????????????????????????????????£??\
String mark = sc.next();
char c = mark.charAt(0);
int num = sc.nextInt();
if (c == 'S') {
card[0][num - 1] = true;
} else if (c == 'H') {
card[1][num - 1] = true;
} else if (c == 'C') {
card[2][num - 1] = true;
} else if (c == 'D') {
card[3][num - 1] = true;
}
}
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 13; j++) {
if (card[i][j] == false) {
if (i == 0) {
System.out.println("S" + " " + (j + 1));
} else if (i == 1) {
System.out.println("H" + " " + (j + 1));
} else if (i == 2) {
System.out.println("C" + " " + (j + 1));
} else if (i == 3) {
System.out.println("D" + " " + (j + 1));
}
}
}
}
sc.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
17,
41,
13,
20,
17,
4,
18,
13,
13,
17,
41,
13,
17,
28,
13,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
20,
40,
13,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
18,
18,
13,
13,
13,
13,
2,
18,
18,
13,
13,
13,
13,
30,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
2,
18,
18,
13,
13,
13,
17,
18,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
11,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
26,
30
],
[
11,
31
],
[
31,
32
],
[
31,
33
],
[
11,
34
],
[
34,
35
],
[
34,
36
],
[
34,
37
],
[
38,
38
],
[
38,
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
],
[
53,
55
],
[
52,
56
],
[
51,
57
],
[
57,
58
],
[
11,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
65,
66
],
[
11,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
85,
90
],
[
79,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
96,
97
],
[
97,
98
],
[
79,
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
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
114,
120
],
[
113,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
121,
127
],
[
112,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
11,
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
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
153,
158
],
[
159,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
159,
165
],
[
159,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
9,
171
],
[
171,
172
],
[
0,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
173,
177
],
[
177,
178
],
[
173,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
182,
186
],
[
181,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
179,
192
],
[
192,
193
],
[
179,
194
],
[
194,
195
]
] | [
"import java.io.*;\nimport java.util.*;\n\nclass Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n char[] suits=new char[]{'S','H','C','D'};\n Card[] cards=new Card[52];\n boolean[] flag=new boolean[52];\n Arrays.fill(flag, false);\n int cards_count=0;\n for(char c:suits){\n for(int i=1;i<=13;i++){\n cards[cards_count]=new Card(c,i);\n cards_count++;\n }\n }\n int n=Integer.parseInt(br.readLine());\n for(int i=0;i<n;i++){\n StringTokenizer st=new StringTokenizer(br.readLine());\n char suit=st.nextToken().charAt(0);\n int number=Integer.parseInt(st.nextToken());\n for(int j=0;j<52;j++){\n if(cards[j].number==number&&cards[j].suit==suit){\n flag[j]=true;\n }\n }\n }\n for(int i=0;i<52;i++){\n if(!flag[i]){\n System.out.println(cards[i].suit+\" \"+cards[i].number);\n }\n }\n }\n \n}\n\nclass Card{\n char suit;\n int number;\n Card(char s,int n){\n this.suit=s;\n this.number=n;\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n char[] suits=new char[]{'S','H','C','D'};\n Card[] cards=new Card[52];\n boolean[] flag=new boolean[52];\n Arrays.fill(flag, false);\n int cards_count=0;\n for(char c:suits){\n for(int i=1;i<=13;i++){\n cards[cards_count]=new Card(c,i);\n cards_count++;\n }\n }\n int n=Integer.parseInt(br.readLine());\n for(int i=0;i<n;i++){\n StringTokenizer st=new StringTokenizer(br.readLine());\n char suit=st.nextToken().charAt(0);\n int number=Integer.parseInt(st.nextToken());\n for(int j=0;j<52;j++){\n if(cards[j].number==number&&cards[j].suit==suit){\n flag[j]=true;\n }\n }\n }\n for(int i=0;i<52;i++){\n if(!flag[i]){\n System.out.println(cards[i].suit+\" \"+cards[i].number);\n }\n }\n }\n \n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n char[] suits=new char[]{'S','H','C','D'};\n Card[] cards=new Card[52];\n boolean[] flag=new boolean[52];\n Arrays.fill(flag, false);\n int cards_count=0;\n for(char c:suits){\n for(int i=1;i<=13;i++){\n cards[cards_count]=new Card(c,i);\n cards_count++;\n }\n }\n int n=Integer.parseInt(br.readLine());\n for(int i=0;i<n;i++){\n StringTokenizer st=new StringTokenizer(br.readLine());\n char suit=st.nextToken().charAt(0);\n int number=Integer.parseInt(st.nextToken());\n for(int j=0;j<52;j++){\n if(cards[j].number==number&&cards[j].suit==suit){\n flag[j]=true;\n }\n }\n }\n for(int i=0;i<52;i++){\n if(!flag[i]){\n System.out.println(cards[i].suit+\" \"+cards[i].number);\n }\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n char[] suits=new char[]{'S','H','C','D'};\n Card[] cards=new Card[52];\n boolean[] flag=new boolean[52];\n Arrays.fill(flag, false);\n int cards_count=0;\n for(char c:suits){\n for(int i=1;i<=13;i++){\n cards[cards_count]=new Card(c,i);\n cards_count++;\n }\n }\n int n=Integer.parseInt(br.readLine());\n for(int i=0;i<n;i++){\n StringTokenizer st=new StringTokenizer(br.readLine());\n char suit=st.nextToken().charAt(0);\n int number=Integer.parseInt(st.nextToken());\n for(int j=0;j<52;j++){\n if(cards[j].number==number&&cards[j].suit==suit){\n flag[j]=true;\n }\n }\n }\n for(int i=0;i<52;i++){\n if(!flag[i]){\n System.out.println(cards[i].suit+\" \"+cards[i].number);\n }\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"char[] suits=new char[]{'S','H','C','D'};",
"suits",
"new char[]{'S','H','C','D'}",
"Card[] cards=new Card[52];",
"cards",
"new Card[52]",
"52",
"boolean[] flag=new boolean[52];",
"flag",
"new boolean[52]",
"52",
"Arrays.fill(flag, false)",
"Arrays.fill",
"Arrays",
"flag",
"false",
"int cards_count=0;",
"cards_count",
"0",
"for(char c:suits){\n for(int i=1;i<=13;i++){\n cards[cards_count]=new Card(c,i);\n cards_count++;\n }\n }",
"char c",
"suits",
"{\n for(int i=1;i<=13;i++){\n cards[cards_count]=new Card(c,i);\n cards_count++;\n }\n }",
"{\n for(int i=1;i<=13;i++){\n cards[cards_count]=new Card(c,i);\n cards_count++;\n }\n }",
"for(int i=1;i<=13;i++){\n cards[cards_count]=new Card(c,i);\n cards_count++;\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=13",
"i",
"13",
"i++",
"i++",
"i",
"{\n cards[cards_count]=new Card(c,i);\n cards_count++;\n }",
"{\n cards[cards_count]=new Card(c,i);\n cards_count++;\n }",
"cards[cards_count]=new Card(c,i)",
"cards[cards_count]",
"cards",
"cards_count",
"new Card(c,i)",
"cards_count++",
"cards_count",
"int n=Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int i=0;i<n;i++){\n StringTokenizer st=new StringTokenizer(br.readLine());\n char suit=st.nextToken().charAt(0);\n int number=Integer.parseInt(st.nextToken());\n for(int j=0;j<52;j++){\n if(cards[j].number==number&&cards[j].suit==suit){\n flag[j]=true;\n }\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n StringTokenizer st=new StringTokenizer(br.readLine());\n char suit=st.nextToken().charAt(0);\n int number=Integer.parseInt(st.nextToken());\n for(int j=0;j<52;j++){\n if(cards[j].number==number&&cards[j].suit==suit){\n flag[j]=true;\n }\n }\n }",
"{\n StringTokenizer st=new StringTokenizer(br.readLine());\n char suit=st.nextToken().charAt(0);\n int number=Integer.parseInt(st.nextToken());\n for(int j=0;j<52;j++){\n if(cards[j].number==number&&cards[j].suit==suit){\n flag[j]=true;\n }\n }\n }",
"StringTokenizer st=new StringTokenizer(br.readLine());",
"st",
"new StringTokenizer(br.readLine())",
"char suit=st.nextToken().charAt(0);",
"suit",
"st.nextToken().charAt(0)",
"st.nextToken().charAt",
"st.nextToken()",
"st.nextToken",
"st",
"0",
"int number=Integer.parseInt(st.nextToken());",
"number",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"for(int j=0;j<52;j++){\n if(cards[j].number==number&&cards[j].suit==suit){\n flag[j]=true;\n }\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<52",
"j",
"52",
"j++",
"j++",
"j",
"{\n if(cards[j].number==number&&cards[j].suit==suit){\n flag[j]=true;\n }\n }",
"{\n if(cards[j].number==number&&cards[j].suit==suit){\n flag[j]=true;\n }\n }",
"if(cards[j].number==number&&cards[j].suit==suit){\n flag[j]=true;\n }",
"cards[j].number==number&&cards[j].suit==suit",
"cards[j].number==number",
"cards[j].number",
"cards[j]",
"cards",
"j",
"cards[j].number",
"number",
"cards[j].suit==suit",
"cards[j].suit",
"cards[j]",
"cards",
"j",
"cards[j].suit",
"suit",
"{\n flag[j]=true;\n }",
"flag[j]=true",
"flag[j]",
"flag",
"j",
"true",
"for(int i=0;i<52;i++){\n if(!flag[i]){\n System.out.println(cards[i].suit+\" \"+cards[i].number);\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<52",
"i",
"52",
"i++",
"i++",
"i",
"{\n if(!flag[i]){\n System.out.println(cards[i].suit+\" \"+cards[i].number);\n }\n }",
"{\n if(!flag[i]){\n System.out.println(cards[i].suit+\" \"+cards[i].number);\n }\n }",
"if(!flag[i]){\n System.out.println(cards[i].suit+\" \"+cards[i].number);\n }",
"!flag[i]",
"flag[i]",
"flag",
"i",
"{\n System.out.println(cards[i].suit+\" \"+cards[i].number);\n }",
"System.out.println(cards[i].suit+\" \"+cards[i].number)",
"System.out.println",
"System.out",
"System",
"System.out",
"cards[i].suit+\" \"+cards[i].number",
"cards[i].suit+\" \"+cards[i].number",
"cards[i].suit",
"cards[i]",
"cards",
"i",
"cards[i].suit",
"\" \"",
"cards[i].number",
"cards[i]",
"cards",
"i",
"cards[i].number",
"String[] args",
"args",
"class Card{\n char suit;\n int number;\n Card(char s,int n){\n this.suit=s;\n this.number=n;\n }\n}",
"Card",
"char suit;",
"suit",
"int number;",
"number",
"Card(char s,int n){\n this.suit=s;\n this.number=n;\n }",
"Card",
"{\n this.suit=s;\n this.number=n;\n }",
"this.suit=s",
"this.suit",
"this",
"this.suit",
"s",
"this.number=n",
"this.number",
"this",
"this.number",
"n",
"char s",
"s",
"int n",
"n"
] | import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
char[] suits=new char[]{'S','H','C','D'};
Card[] cards=new Card[52];
boolean[] flag=new boolean[52];
Arrays.fill(flag, false);
int cards_count=0;
for(char c:suits){
for(int i=1;i<=13;i++){
cards[cards_count]=new Card(c,i);
cards_count++;
}
}
int n=Integer.parseInt(br.readLine());
for(int i=0;i<n;i++){
StringTokenizer st=new StringTokenizer(br.readLine());
char suit=st.nextToken().charAt(0);
int number=Integer.parseInt(st.nextToken());
for(int j=0;j<52;j++){
if(cards[j].number==number&&cards[j].suit==suit){
flag[j]=true;
}
}
}
for(int i=0;i<52;i++){
if(!flag[i]){
System.out.println(cards[i].suit+" "+cards[i].number);
}
}
}
}
class Card{
char suit;
int number;
Card(char s,int n){
this.suit=s;
this.number=n;
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
0,
18,
13,
13,
17,
0,
18,
13,
13,
17,
0,
18,
13,
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,
35,
13,
34,
17,
1,
40,
18,
13,
2,
13,
17,
3,
34,
17,
1,
40,
18,
13,
2,
13,
17,
3,
34,
17,
1,
40,
18,
13,
2,
13,
17,
3,
34,
17,
1,
40,
18,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
253,
5
],
[
253,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
45,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
45,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
78,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
78,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
97,
99
],
[
93,
100
],
[
89,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
107,
109
],
[
103,
110
],
[
89,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
113,
120
],
[
89,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
127,
129
],
[
8,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
135,
136
],
[
135,
137
],
[
130,
138
],
[
138,
139
],
[
139,
140
],
[
130,
141
],
[
142,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
143,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
150,
155
],
[
155,
156
],
[
155,
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
],
[
174,
178
],
[
173,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
180,
185
],
[
185,
186
],
[
185,
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
],
[
204,
208
],
[
203,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
210,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
217,
219
],
[
8,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
220,
225
],
[
225,
226
],
[
225,
227
],
[
220,
228
],
[
228,
229
],
[
229,
230
],
[
220,
231
],
[
232,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
234,
238
],
[
233,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
240,
245
],
[
245,
246
],
[
245,
247
],
[
247,
248
],
[
247,
249
],
[
6,
250
],
[
250,
251
],
[
0,
252
],
[
252,
253
],
[
252,
254
]
] | [
"import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint s[] = new int[13];\n\t\tint h[] = new int[13];\n\t\tint c[] = new int[13];\n\t\tint d[] = new int[13];\n\t\tfor(int i=0;i<13;i++){\n\t\t\ts[i]=0;\n\t\t\th[i]=0;\n\t\t\tc[i]=0;\n\t\t\td[i]=0;\n\t\t}\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString cd=sc.next();\n\t\t\tint cn=sc.nextInt();\n\t\t\tswitch(cd){\n\t\t\tcase \"S\":\n\t\t\t\ts[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\th[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tc[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\td[cn-1]++;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(s[i]==0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(h[i]==0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(c[i]==0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(d[i]==0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\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=sc.nextInt();\n\t\tint s[] = new int[13];\n\t\tint h[] = new int[13];\n\t\tint c[] = new int[13];\n\t\tint d[] = new int[13];\n\t\tfor(int i=0;i<13;i++){\n\t\t\ts[i]=0;\n\t\t\th[i]=0;\n\t\t\tc[i]=0;\n\t\t\td[i]=0;\n\t\t}\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString cd=sc.next();\n\t\t\tint cn=sc.nextInt();\n\t\t\tswitch(cd){\n\t\t\tcase \"S\":\n\t\t\t\ts[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\th[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tc[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\td[cn-1]++;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(s[i]==0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(h[i]==0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(c[i]==0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(d[i]==0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint s[] = new int[13];\n\t\tint h[] = new int[13];\n\t\tint c[] = new int[13];\n\t\tint d[] = new int[13];\n\t\tfor(int i=0;i<13;i++){\n\t\t\ts[i]=0;\n\t\t\th[i]=0;\n\t\t\tc[i]=0;\n\t\t\td[i]=0;\n\t\t}\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString cd=sc.next();\n\t\t\tint cn=sc.nextInt();\n\t\t\tswitch(cd){\n\t\t\tcase \"S\":\n\t\t\t\ts[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\th[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tc[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\td[cn-1]++;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(s[i]==0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(h[i]==0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(c[i]==0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(d[i]==0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint s[] = new int[13];\n\t\tint h[] = new int[13];\n\t\tint c[] = new int[13];\n\t\tint d[] = new int[13];\n\t\tfor(int i=0;i<13;i++){\n\t\t\ts[i]=0;\n\t\t\th[i]=0;\n\t\t\tc[i]=0;\n\t\t\td[i]=0;\n\t\t}\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString cd=sc.next();\n\t\t\tint cn=sc.nextInt();\n\t\t\tswitch(cd){\n\t\t\tcase \"S\":\n\t\t\t\ts[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\th[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tc[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\td[cn-1]++;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(s[i]==0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(h[i]==0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(c[i]==0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(d[i]==0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\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",
"int s[] = new int[13];",
"s",
"new int[13]",
"13",
"int h[] = new int[13];",
"h",
"new int[13]",
"13",
"int c[] = new int[13];",
"c",
"new int[13]",
"13",
"int d[] = new int[13];",
"d",
"new int[13]",
"13",
"for(int i=0;i<13;i++){\n\t\t\ts[i]=0;\n\t\t\th[i]=0;\n\t\t\tc[i]=0;\n\t\t\td[i]=0;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\ts[i]=0;\n\t\t\th[i]=0;\n\t\t\tc[i]=0;\n\t\t\td[i]=0;\n\t\t}",
"{\n\t\t\ts[i]=0;\n\t\t\th[i]=0;\n\t\t\tc[i]=0;\n\t\t\td[i]=0;\n\t\t}",
"s[i]=0",
"s[i]",
"s",
"i",
"0",
"h[i]=0",
"h[i]",
"h",
"i",
"0",
"c[i]=0",
"c[i]",
"c",
"i",
"0",
"d[i]=0",
"d[i]",
"d",
"i",
"0",
"for(int i=0;i<n;i++){\n\t\t\tString cd=sc.next();\n\t\t\tint cn=sc.nextInt();\n\t\t\tswitch(cd){\n\t\t\tcase \"S\":\n\t\t\t\ts[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\th[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tc[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\td[cn-1]++;\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 cd=sc.next();\n\t\t\tint cn=sc.nextInt();\n\t\t\tswitch(cd){\n\t\t\tcase \"S\":\n\t\t\t\ts[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\th[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tc[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\td[cn-1]++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString cd=sc.next();\n\t\t\tint cn=sc.nextInt();\n\t\t\tswitch(cd){\n\t\t\tcase \"S\":\n\t\t\t\ts[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\th[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tc[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\td[cn-1]++;\n\t\t\t}\n\t\t}",
"String cd=sc.next();",
"cd",
"sc.next()",
"sc.next",
"sc",
"int cn=sc.nextInt();",
"cn",
"sc.nextInt()",
"sc.nextInt",
"sc",
"switch(cd){\n\t\t\tcase \"S\":\n\t\t\t\ts[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\th[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tc[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\td[cn-1]++;\n\t\t\t}",
"cd",
"case \"S\":",
"\"S\"",
"case \"S\":",
"s[cn-1]++",
"s[cn-1]",
"s",
"cn-1",
"cn",
"1",
"break;",
"case \"H\":",
"\"H\"",
"case \"H\":",
"h[cn-1]++",
"h[cn-1]",
"h",
"cn-1",
"cn",
"1",
"break;",
"case \"C\":",
"\"C\"",
"case \"C\":",
"c[cn-1]++",
"c[cn-1]",
"c",
"cn-1",
"cn",
"1",
"break;",
"case \"D\":",
"\"D\"",
"case \"D\":",
"d[cn-1]++",
"d[cn-1]",
"d",
"cn-1",
"cn",
"1",
"for(int i=0;i<13;i++){\n\t\t\tif(s[i]==0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(s[i]==0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(s[i]==0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}",
"if(s[i]==0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}",
"s[i]==0",
"s[i]",
"s",
"i",
"0",
"{\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}",
"System.out.println(\"S \"+(i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \"+(i+1)",
"\"S \"",
"(i+1)",
"i",
"1",
"for(int i=0;i<13;i++){\n\t\t\tif(h[i]==0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(h[i]==0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(h[i]==0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}",
"if(h[i]==0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}",
"h[i]==0",
"h[i]",
"h",
"i",
"0",
"{\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}",
"System.out.println(\"H \"+(i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \"+(i+1)",
"\"H \"",
"(i+1)",
"i",
"1",
"for(int i=0;i<13;i++){\n\t\t\tif(c[i]==0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(c[i]==0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(c[i]==0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}",
"if(c[i]==0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}",
"c[i]==0",
"c[i]",
"c",
"i",
"0",
"{\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}",
"System.out.println(\"C \"+(i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \"+(i+1)",
"\"C \"",
"(i+1)",
"i",
"1",
"for(int i=0;i<13;i++){\n\t\t\tif(d[i]==0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(d[i]==0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(d[i]==0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}",
"if(d[i]==0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}",
"d[i]==0",
"d[i]",
"d",
"i",
"0",
"{\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}",
"System.out.println(\"D \"+(i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \"+(i+1)",
"\"D \"",
"(i+1)",
"i",
"1",
"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 s[] = new int[13];\n\t\tint h[] = new int[13];\n\t\tint c[] = new int[13];\n\t\tint d[] = new int[13];\n\t\tfor(int i=0;i<13;i++){\n\t\t\ts[i]=0;\n\t\t\th[i]=0;\n\t\t\tc[i]=0;\n\t\t\td[i]=0;\n\t\t}\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString cd=sc.next();\n\t\t\tint cn=sc.nextInt();\n\t\t\tswitch(cd){\n\t\t\tcase \"S\":\n\t\t\t\ts[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\th[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tc[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\td[cn-1]++;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(s[i]==0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(h[i]==0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(c[i]==0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(d[i]==0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\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();\n\t\tint s[] = new int[13];\n\t\tint h[] = new int[13];\n\t\tint c[] = new int[13];\n\t\tint d[] = new int[13];\n\t\tfor(int i=0;i<13;i++){\n\t\t\ts[i]=0;\n\t\t\th[i]=0;\n\t\t\tc[i]=0;\n\t\t\td[i]=0;\n\t\t}\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString cd=sc.next();\n\t\t\tint cn=sc.nextInt();\n\t\t\tswitch(cd){\n\t\t\tcase \"S\":\n\t\t\t\ts[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"H\":\n\t\t\t\th[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\tc[cn-1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"D\":\n\t\t\t\td[cn-1]++;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(s[i]==0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(h[i]==0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(c[i]==0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<13;i++){\n\t\t\tif(d[i]==0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n=sc.nextInt();
int s[] = new int[13];
int h[] = new int[13];
int c[] = new int[13];
int d[] = new int[13];
for(int i=0;i<13;i++){
s[i]=0;
h[i]=0;
c[i]=0;
d[i]=0;
}
for(int i=0;i<n;i++){
String cd=sc.next();
int cn=sc.nextInt();
switch(cd){
case "S":
s[cn-1]++;
break;
case "H":
h[cn-1]++;
break;
case "C":
c[cn-1]++;
break;
case "D":
d[cn-1]++;
}
}
for(int i=0;i<13;i++){
if(s[i]==0){
System.out.println("S "+(i+1));
}
}
for(int i=0;i<13;i++){
if(h[i]==0){
System.out.println("H "+(i+1));
}
}
for(int i=0;i<13;i++){
if(c[i]==0){
System.out.println("C "+(i+1));
}
}
for(int i=0;i<13;i++){
if(d[i]==0){
System.out.println("D "+(i+1));
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
39,
17,
17,
17,
17,
12,
13,
30,
41,
13,
20,
17,
17,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
2,
13,
17,
2,
13,
17,
4,
18,
13,
40,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
14,
4,
18,
13,
18,
13,
17,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
13,
18,
13,
17,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
13,
18,
13,
17,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
13,
18,
13,
17,
0,
18,
18,
13,
17,
2,
13,
17,
17,
4,
18,
13,
40,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
4,
18,
13,
2,
2,
2,
18,
13,
13,
17,
2,
13,
17,
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
],
[
8,
10
],
[
8,
11
],
[
8,
12
],
[
4,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
15,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
21,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
35,
37
],
[
31,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
44,
45
],
[
31,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
31,
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
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
71,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
90,
91
],
[
90,
92
],
[
71,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
97,
98
],
[
97,
99
],
[
93,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
93,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
113,
114
],
[
113,
115
],
[
109,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
121,
122
],
[
121,
123
],
[
116,
124
],
[
109,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
129,
130
],
[
129,
131
],
[
125,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
137,
138
],
[
137,
139
],
[
132,
140
],
[
125,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
142,
145
],
[
145,
146
],
[
145,
147
],
[
141,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
153,
154
],
[
153,
155
],
[
148,
156
],
[
141,
157
],
[
157,
158
],
[
158,
159
],
[
157,
160
],
[
160,
161
],
[
31,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
167,
168
],
[
167,
169
],
[
162,
170
],
[
170,
171
],
[
171,
172
],
[
162,
173
],
[
174,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
175,
180
],
[
180,
181
],
[
180,
182
],
[
175,
183
],
[
183,
184
],
[
184,
185
],
[
175,
186
],
[
187,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
190,
194
],
[
189,
195
],
[
188,
196
],
[
196,
197
],
[
197,
198
],
[
196,
199
],
[
201,
200
],
[
206,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
206,
206
],
[
206,
207
],
[
206,
208
],
[
201,
209
],
[
31,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
210,
215
],
[
13,
216
],
[
216,
217
]
] | [
"/* ITP1_6_B */\nimport java.io.*;\n\nclass Main\n{\n static final String[] SUIT = {\"S\", \"H\", \"C\", \"D\"};\n\n public static void main(String[] args)\n {\n boolean[][] cards = new boolean[4][13];\n\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n int n = Integer.parseInt(br.readLine());\n if(n < 0 || n > 52) System.exit(-1);\n // check\n for(int i = 0; i < n; i++){\n String[] str = br.readLine().split(\" \");\n String suit = str[0];\n int lank = Integer.parseInt(str[1]);\n\n if(suit.equals(SUIT[0])) cards[0][lank-1] = true;\n else if(suit.equals(SUIT[1])) cards[1][lank-1] = true;\n else if(suit.equals(SUIT[2])) cards[2][lank-1] = true;\n else if(suit.equals(SUIT[3])) cards[3][lank-1] = true;\n else\n System.exit(-1);\n }\n // output\n for(int i = 0; i < 4; i++){\n for(int j = 0; j < 13; j++){\n if(cards[i][j] != true) sb.append(SUIT[i] + \" \" + (j + 1) + \"\\n\");\n }\n }\n System.out.print(sb);\n\n }catch(Exception e){\n System.out.println(e);\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"class Main\n{\n static final String[] SUIT = {\"S\", \"H\", \"C\", \"D\"};\n\n public static void main(String[] args)\n {\n boolean[][] cards = new boolean[4][13];\n\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n int n = Integer.parseInt(br.readLine());\n if(n < 0 || n > 52) System.exit(-1);\n // check\n for(int i = 0; i < n; i++){\n String[] str = br.readLine().split(\" \");\n String suit = str[0];\n int lank = Integer.parseInt(str[1]);\n\n if(suit.equals(SUIT[0])) cards[0][lank-1] = true;\n else if(suit.equals(SUIT[1])) cards[1][lank-1] = true;\n else if(suit.equals(SUIT[2])) cards[2][lank-1] = true;\n else if(suit.equals(SUIT[3])) cards[3][lank-1] = true;\n else\n System.exit(-1);\n }\n // output\n for(int i = 0; i < 4; i++){\n for(int j = 0; j < 13; j++){\n if(cards[i][j] != true) sb.append(SUIT[i] + \" \" + (j + 1) + \"\\n\");\n }\n }\n System.out.print(sb);\n\n }catch(Exception e){\n System.out.println(e);\n }\n }\n}",
"Main",
"static final String[] SUIT = {\"S\", \"H\", \"C\", \"D\"};",
"SUIT",
"{\"S\", \"H\", \"C\", \"D\"}",
"\"S\"",
"\"H\"",
"\"C\"",
"\"D\"",
"public static void main(String[] args)\n {\n boolean[][] cards = new boolean[4][13];\n\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n int n = Integer.parseInt(br.readLine());\n if(n < 0 || n > 52) System.exit(-1);\n // check\n for(int i = 0; i < n; i++){\n String[] str = br.readLine().split(\" \");\n String suit = str[0];\n int lank = Integer.parseInt(str[1]);\n\n if(suit.equals(SUIT[0])) cards[0][lank-1] = true;\n else if(suit.equals(SUIT[1])) cards[1][lank-1] = true;\n else if(suit.equals(SUIT[2])) cards[2][lank-1] = true;\n else if(suit.equals(SUIT[3])) cards[3][lank-1] = true;\n else\n System.exit(-1);\n }\n // output\n for(int i = 0; i < 4; i++){\n for(int j = 0; j < 13; j++){\n if(cards[i][j] != true) sb.append(SUIT[i] + \" \" + (j + 1) + \"\\n\");\n }\n }\n System.out.print(sb);\n\n }catch(Exception e){\n System.out.println(e);\n }\n }",
"main",
"{\n boolean[][] cards = new boolean[4][13];\n\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n int n = Integer.parseInt(br.readLine());\n if(n < 0 || n > 52) System.exit(-1);\n // check\n for(int i = 0; i < n; i++){\n String[] str = br.readLine().split(\" \");\n String suit = str[0];\n int lank = Integer.parseInt(str[1]);\n\n if(suit.equals(SUIT[0])) cards[0][lank-1] = true;\n else if(suit.equals(SUIT[1])) cards[1][lank-1] = true;\n else if(suit.equals(SUIT[2])) cards[2][lank-1] = true;\n else if(suit.equals(SUIT[3])) cards[3][lank-1] = true;\n else\n System.exit(-1);\n }\n // output\n for(int i = 0; i < 4; i++){\n for(int j = 0; j < 13; j++){\n if(cards[i][j] != true) sb.append(SUIT[i] + \" \" + (j + 1) + \"\\n\");\n }\n }\n System.out.print(sb);\n\n }catch(Exception e){\n System.out.println(e);\n }\n }",
"boolean[][] cards = new boolean[4][13];",
"cards",
"new boolean[4][13]",
"4",
"13",
"try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n int n = Integer.parseInt(br.readLine());\n if(n < 0 || n > 52) System.exit(-1);\n // check\n for(int i = 0; i < n; i++){\n String[] str = br.readLine().split(\" \");\n String suit = str[0];\n int lank = Integer.parseInt(str[1]);\n\n if(suit.equals(SUIT[0])) cards[0][lank-1] = true;\n else if(suit.equals(SUIT[1])) cards[1][lank-1] = true;\n else if(suit.equals(SUIT[2])) cards[2][lank-1] = true;\n else if(suit.equals(SUIT[3])) cards[3][lank-1] = true;\n else\n System.exit(-1);\n }\n // output\n for(int i = 0; i < 4; i++){\n for(int j = 0; j < 13; j++){\n if(cards[i][j] != true) sb.append(SUIT[i] + \" \" + (j + 1) + \"\\n\");\n }\n }\n System.out.print(sb);\n\n }catch(Exception e){\n System.out.println(e);\n }",
"catch(Exception e){\n System.out.println(e);\n }",
"Exception e",
"{\n System.out.println(e);\n }",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n int n = Integer.parseInt(br.readLine());\n if(n < 0 || n > 52) System.exit(-1);\n // check\n for(int i = 0; i < n; i++){\n String[] str = br.readLine().split(\" \");\n String suit = str[0];\n int lank = Integer.parseInt(str[1]);\n\n if(suit.equals(SUIT[0])) cards[0][lank-1] = true;\n else if(suit.equals(SUIT[1])) cards[1][lank-1] = true;\n else if(suit.equals(SUIT[2])) cards[2][lank-1] = true;\n else if(suit.equals(SUIT[3])) cards[3][lank-1] = true;\n else\n System.exit(-1);\n }\n // output\n for(int i = 0; i < 4; i++){\n for(int j = 0; j < 13; j++){\n if(cards[i][j] != true) sb.append(SUIT[i] + \" \" + (j + 1) + \"\\n\");\n }\n }\n System.out.print(sb);\n\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"if(n < 0 || n > 52) System.exit(-1);",
"n < 0 || n > 52",
"n < 0",
"n",
"0",
"n > 52",
"n",
"52",
"System.exit(-1)",
"System.exit",
"System",
"-1",
"1",
"for(int i = 0; i < n; i++){\n String[] str = br.readLine().split(\" \");\n String suit = str[0];\n int lank = Integer.parseInt(str[1]);\n\n if(suit.equals(SUIT[0])) cards[0][lank-1] = true;\n else if(suit.equals(SUIT[1])) cards[1][lank-1] = true;\n else if(suit.equals(SUIT[2])) cards[2][lank-1] = true;\n else if(suit.equals(SUIT[3])) cards[3][lank-1] = true;\n else\n System.exit(-1);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String[] str = br.readLine().split(\" \");\n String suit = str[0];\n int lank = Integer.parseInt(str[1]);\n\n if(suit.equals(SUIT[0])) cards[0][lank-1] = true;\n else if(suit.equals(SUIT[1])) cards[1][lank-1] = true;\n else if(suit.equals(SUIT[2])) cards[2][lank-1] = true;\n else if(suit.equals(SUIT[3])) cards[3][lank-1] = true;\n else\n System.exit(-1);\n }",
"{\n String[] str = br.readLine().split(\" \");\n String suit = str[0];\n int lank = Integer.parseInt(str[1]);\n\n if(suit.equals(SUIT[0])) cards[0][lank-1] = true;\n else if(suit.equals(SUIT[1])) cards[1][lank-1] = true;\n else if(suit.equals(SUIT[2])) cards[2][lank-1] = true;\n else if(suit.equals(SUIT[3])) cards[3][lank-1] = true;\n else\n System.exit(-1);\n }",
"String[] str = br.readLine().split(\" \");",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"String suit = str[0];",
"suit",
"str[0]",
"str",
"0",
"int lank = Integer.parseInt(str[1]);",
"lank",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"if(suit.equals(SUIT[0])) cards[0][lank-1] = true;\n else if(suit.equals(SUIT[1])) cards[1][lank-1] = true;\n else if(suit.equals(SUIT[2])) cards[2][lank-1] = true;\n else if(suit.equals(SUIT[3])) cards[3][lank-1] = true;\n else\n System.exit(-1);",
"suit.equals(SUIT[0])",
"suit.equals",
"suit",
"SUIT[0]",
"SUIT",
"0",
"cards[0][lank-1] = true",
"cards[0][lank-1]",
"cards[0]",
"cards",
"0",
"lank-1",
"lank",
"1",
"true",
"if(suit.equals(SUIT[1])) cards[1][lank-1] = true;\n else if(suit.equals(SUIT[2])) cards[2][lank-1] = true;\n else if(suit.equals(SUIT[3])) cards[3][lank-1] = true;\n else\n System.exit(-1);",
"suit.equals(SUIT[1])",
"suit.equals",
"suit",
"SUIT[1]",
"SUIT",
"1",
"cards[1][lank-1] = true",
"cards[1][lank-1]",
"cards[1]",
"cards",
"1",
"lank-1",
"lank",
"1",
"true",
"if(suit.equals(SUIT[2])) cards[2][lank-1] = true;\n else if(suit.equals(SUIT[3])) cards[3][lank-1] = true;\n else\n System.exit(-1);",
"suit.equals(SUIT[2])",
"suit.equals",
"suit",
"SUIT[2]",
"SUIT",
"2",
"cards[2][lank-1] = true",
"cards[2][lank-1]",
"cards[2]",
"cards",
"2",
"lank-1",
"lank",
"1",
"true",
"if(suit.equals(SUIT[3])) cards[3][lank-1] = true;\n else\n System.exit(-1);",
"suit.equals(SUIT[3])",
"suit.equals",
"suit",
"SUIT[3]",
"SUIT",
"3",
"cards[3][lank-1] = true",
"cards[3][lank-1]",
"cards[3]",
"cards",
"3",
"lank-1",
"lank",
"1",
"true",
"System.exit(-1)",
"System.exit",
"System",
"-1",
"1",
"for(int i = 0; i < 4; i++){\n for(int j = 0; j < 13; j++){\n if(cards[i][j] != true) sb.append(SUIT[i] + \" \" + (j + 1) + \"\\n\");\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < 13; j++){\n if(cards[i][j] != true) sb.append(SUIT[i] + \" \" + (j + 1) + \"\\n\");\n }\n }",
"{\n for(int j = 0; j < 13; j++){\n if(cards[i][j] != true) sb.append(SUIT[i] + \" \" + (j + 1) + \"\\n\");\n }\n }",
"for(int j = 0; j < 13; j++){\n if(cards[i][j] != true) sb.append(SUIT[i] + \" \" + (j + 1) + \"\\n\");\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n if(cards[i][j] != true) sb.append(SUIT[i] + \" \" + (j + 1) + \"\\n\");\n }",
"{\n if(cards[i][j] != true) sb.append(SUIT[i] + \" \" + (j + 1) + \"\\n\");\n }",
"if(cards[i][j] != true) sb.append(SUIT[i] + \" \" + (j + 1) + \"\\n\");",
"cards[i][j] != true",
"cards[i][j]",
"cards[i]",
"cards",
"i",
"j",
"true",
"sb.append(SUIT[i] + \" \" + (j + 1) + \"\\n\")",
"sb.append",
"sb",
"SUIT[i] + \" \" + (j + 1) + \"\\n\"",
"(j + 1)",
"SUIT[i] + \" \" + (j + 1) + \"\\n\"",
"SUIT[i]",
"SUIT",
"i",
"\" \"",
"(j + 1)",
"j",
"1",
"\"\\n\"",
"System.out.print(sb)",
"System.out.print",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args"
] | /* ITP1_6_B */
import java.io.*;
class Main
{
static final String[] SUIT = {"S", "H", "C", "D"};
public static void main(String[] args)
{
boolean[][] cards = new boolean[4][13];
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
int n = Integer.parseInt(br.readLine());
if(n < 0 || n > 52) System.exit(-1);
// check
for(int i = 0; i < n; i++){
String[] str = br.readLine().split(" ");
String suit = str[0];
int lank = Integer.parseInt(str[1]);
if(suit.equals(SUIT[0])) cards[0][lank-1] = true;
else if(suit.equals(SUIT[1])) cards[1][lank-1] = true;
else if(suit.equals(SUIT[2])) cards[2][lank-1] = true;
else if(suit.equals(SUIT[3])) cards[3][lank-1] = true;
else
System.exit(-1);
}
// output
for(int i = 0; i < 4; i++){
for(int j = 0; j < 13; j++){
if(cards[i][j] != true) sb.append(SUIT[i] + " " + (j + 1) + "\n");
}
}
System.out.print(sb);
}catch(Exception e){
System.out.println(e);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
23,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
35,
13,
34,
17,
1,
0,
18,
13,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
2,
13,
17,
17,
3,
4,
13,
13,
13,
13,
13,
4,
18,
13,
12,
13,
30,
4,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
250,
5
],
[
250,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
9,
14
],
[
14,
15
],
[
14,
16
],
[
9,
17
],
[
17,
18
],
[
18,
19
],
[
9,
20
],
[
21,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
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
],
[
53,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
8,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
69,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
82,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
96,
98
],
[
8,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
99,
110
],
[
111,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
112,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
126,
128
],
[
6,
129
],
[
129,
130
],
[
6,
131
],
[
131,
132
],
[
6,
133
],
[
133,
134
],
[
6,
135
],
[
135,
136
],
[
250,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
139,
148
],
[
148,
149
],
[
148,
150
],
[
139,
152
],
[
152,
153
],
[
152,
154
],
[
139,
156
],
[
156,
157
],
[
156,
158
],
[
139,
160
],
[
160,
161
],
[
160,
162
],
[
139,
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
],
[
179,
180
],
[
180,
181
],
[
176,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
185,
186
],
[
176,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
195,
197
],
[
192,
198
],
[
191,
199
],
[
187,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
206,
208
],
[
203,
209
],
[
202,
210
],
[
187,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
217,
219
],
[
214,
220
],
[
213,
221
],
[
187,
222
],
[
222,
223
],
[
222,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
228,
230
],
[
225,
231
],
[
224,
232
],
[
139,
233
],
[
233,
234
],
[
233,
235
],
[
233,
236
],
[
233,
237
],
[
233,
238
],
[
139,
239
],
[
239,
240
],
[
240,
241
],
[
250,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
245,
246
],
[
242,
247
],
[
247,
248
],
[
0,
249
],
[
249,
250
],
[
249,
251
]
] | [
"import java.util.*;\n\npublic class Main{\n\n\tstatic void Missing(int[] S,int[] H,int[] C,int[] D){\n\t\t\n\t\tfor(int i = 0; i < 13 ; i++){\n\t\t\tif(S[i] == 0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 13 ; i++){\n\t\t\tif(H[i] == 0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 13 ; i++){\n\t\t\tif(C[i] == 0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 13 ; i++){\n\t\t\tif(D[i] == 0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void Input(){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N\t= scanner.nextInt();\n\t\tint[] S = new int[13];\n\t\tint[] H = new int[13];\n\t\tint[] C = new int[13];\n\t\tint[] D = new int[13];\n\t\tfor(int i = 0; i < N ; i++){\n\t\t\tString \tgara = scanner.next();\n\t\t\tint \tkazu = scanner.nextInt();\n\t\t\tswitch(gara){\n\t\t\tcase \"S\":S[kazu-1]=1; break;\n\t\t\tcase \"H\":H[kazu-1]=1; break;\n\t\t\tcase \"C\":C[kazu-1]=1; break;\n\t\t\tcase \"D\":D[kazu-1]=1; break;\n\t\t\t}\n\t\t}\n\t\tMissing(S, H, C, D);\n\t\tscanner.close();\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tInput();\n\t\t\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\n\tstatic void Missing(int[] S,int[] H,int[] C,int[] D){\n\t\t\n\t\tfor(int i = 0; i < 13 ; i++){\n\t\t\tif(S[i] == 0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 13 ; i++){\n\t\t\tif(H[i] == 0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 13 ; i++){\n\t\t\tif(C[i] == 0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 13 ; i++){\n\t\t\tif(D[i] == 0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void Input(){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N\t= scanner.nextInt();\n\t\tint[] S = new int[13];\n\t\tint[] H = new int[13];\n\t\tint[] C = new int[13];\n\t\tint[] D = new int[13];\n\t\tfor(int i = 0; i < N ; i++){\n\t\t\tString \tgara = scanner.next();\n\t\t\tint \tkazu = scanner.nextInt();\n\t\t\tswitch(gara){\n\t\t\tcase \"S\":S[kazu-1]=1; break;\n\t\t\tcase \"H\":H[kazu-1]=1; break;\n\t\t\tcase \"C\":C[kazu-1]=1; break;\n\t\t\tcase \"D\":D[kazu-1]=1; break;\n\t\t\t}\n\t\t}\n\t\tMissing(S, H, C, D);\n\t\tscanner.close();\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tInput();\n\t\t\n\t}\n\n}",
"Main",
"static void Missing(int[] S,int[] H,int[] C,int[] D){\n\t\t\n\t\tfor(int i = 0; i < 13 ; i++){\n\t\t\tif(S[i] == 0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 13 ; i++){\n\t\t\tif(H[i] == 0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 13 ; i++){\n\t\t\tif(C[i] == 0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 13 ; i++){\n\t\t\tif(D[i] == 0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"Missing",
"{\n\t\t\n\t\tfor(int i = 0; i < 13 ; i++){\n\t\t\tif(S[i] == 0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 13 ; i++){\n\t\t\tif(H[i] == 0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 13 ; i++){\n\t\t\tif(C[i] == 0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 13 ; i++){\n\t\t\tif(D[i] == 0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"for(int i = 0; i < 13 ; i++){\n\t\t\tif(S[i] == 0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(S[i] == 0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(S[i] == 0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}",
"if(S[i] == 0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}",
"S[i] == 0",
"S[i]",
"S",
"i",
"0",
"{\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}",
"System.out.println(\"S \"+(i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \"+(i+1)",
"\"S \"",
"(i+1)",
"i",
"1",
"for(int i = 0; i < 13 ; i++){\n\t\t\tif(H[i] == 0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(H[i] == 0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(H[i] == 0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}",
"if(H[i] == 0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}",
"H[i] == 0",
"H[i]",
"H",
"i",
"0",
"{\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}",
"System.out.println(\"H \"+(i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \"+(i+1)",
"\"H \"",
"(i+1)",
"i",
"1",
"for(int i = 0; i < 13 ; i++){\n\t\t\tif(C[i] == 0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(C[i] == 0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(C[i] == 0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}",
"if(C[i] == 0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}",
"C[i] == 0",
"C[i]",
"C",
"i",
"0",
"{\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}",
"System.out.println(\"C \"+(i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \"+(i+1)",
"\"C \"",
"(i+1)",
"i",
"1",
"for(int i = 0; i < 13 ; i++){\n\t\t\tif(D[i] == 0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 13",
"i",
"13",
"i++",
"i++",
"i",
"{\n\t\t\tif(D[i] == 0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(D[i] == 0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}",
"if(D[i] == 0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}",
"D[i] == 0",
"D[i]",
"D",
"i",
"0",
"{\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}",
"System.out.println(\"D \"+(i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \"+(i+1)",
"\"D \"",
"(i+1)",
"i",
"1",
"int[] S",
"S",
"int[] H",
"H",
"int[] C",
"C",
"int[] D",
"D",
"static void Input(){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N\t= scanner.nextInt();\n\t\tint[] S = new int[13];\n\t\tint[] H = new int[13];\n\t\tint[] C = new int[13];\n\t\tint[] D = new int[13];\n\t\tfor(int i = 0; i < N ; i++){\n\t\t\tString \tgara = scanner.next();\n\t\t\tint \tkazu = scanner.nextInt();\n\t\t\tswitch(gara){\n\t\t\tcase \"S\":S[kazu-1]=1; break;\n\t\t\tcase \"H\":H[kazu-1]=1; break;\n\t\t\tcase \"C\":C[kazu-1]=1; break;\n\t\t\tcase \"D\":D[kazu-1]=1; break;\n\t\t\t}\n\t\t}\n\t\tMissing(S, H, C, D);\n\t\tscanner.close();\n\t}",
"Input",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N\t= scanner.nextInt();\n\t\tint[] S = new int[13];\n\t\tint[] H = new int[13];\n\t\tint[] C = new int[13];\n\t\tint[] D = new int[13];\n\t\tfor(int i = 0; i < N ; i++){\n\t\t\tString \tgara = scanner.next();\n\t\t\tint \tkazu = scanner.nextInt();\n\t\t\tswitch(gara){\n\t\t\tcase \"S\":S[kazu-1]=1; break;\n\t\t\tcase \"H\":H[kazu-1]=1; break;\n\t\t\tcase \"C\":C[kazu-1]=1; break;\n\t\t\tcase \"D\":D[kazu-1]=1; break;\n\t\t\t}\n\t\t}\n\t\tMissing(S, H, C, D);\n\t\tscanner.close();\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int N\t= scanner.nextInt();",
"N",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int[] S = new int[13];",
"S",
"new int[13]",
"13",
"int[] H = new int[13];",
"H",
"new int[13]",
"13",
"int[] C = new int[13];",
"C",
"new int[13]",
"13",
"int[] D = new int[13];",
"D",
"new int[13]",
"13",
"for(int i = 0; i < N ; i++){\n\t\t\tString \tgara = scanner.next();\n\t\t\tint \tkazu = scanner.nextInt();\n\t\t\tswitch(gara){\n\t\t\tcase \"S\":S[kazu-1]=1; break;\n\t\t\tcase \"H\":H[kazu-1]=1; break;\n\t\t\tcase \"C\":C[kazu-1]=1; break;\n\t\t\tcase \"D\":D[kazu-1]=1; break;\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 \tgara = scanner.next();\n\t\t\tint \tkazu = scanner.nextInt();\n\t\t\tswitch(gara){\n\t\t\tcase \"S\":S[kazu-1]=1; break;\n\t\t\tcase \"H\":H[kazu-1]=1; break;\n\t\t\tcase \"C\":C[kazu-1]=1; break;\n\t\t\tcase \"D\":D[kazu-1]=1; break;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString \tgara = scanner.next();\n\t\t\tint \tkazu = scanner.nextInt();\n\t\t\tswitch(gara){\n\t\t\tcase \"S\":S[kazu-1]=1; break;\n\t\t\tcase \"H\":H[kazu-1]=1; break;\n\t\t\tcase \"C\":C[kazu-1]=1; break;\n\t\t\tcase \"D\":D[kazu-1]=1; break;\n\t\t\t}\n\t\t}",
"String \tgara = scanner.next();",
"gara",
"scanner.next()",
"scanner.next",
"scanner",
"int \tkazu = scanner.nextInt();",
"kazu",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"switch(gara){\n\t\t\tcase \"S\":S[kazu-1]=1; break;\n\t\t\tcase \"H\":H[kazu-1]=1; break;\n\t\t\tcase \"C\":C[kazu-1]=1; break;\n\t\t\tcase \"D\":D[kazu-1]=1; break;\n\t\t\t}",
"gara",
"case \"S\":",
"\"S\"",
"case \"S\":",
"S[kazu-1]=1",
"S[kazu-1]",
"S",
"kazu-1",
"kazu",
"1",
"1",
"break;",
"case \"H\":",
"\"H\"",
"case \"H\":",
"H[kazu-1]=1",
"H[kazu-1]",
"H",
"kazu-1",
"kazu",
"1",
"1",
"break;",
"case \"C\":",
"\"C\"",
"case \"C\":",
"C[kazu-1]=1",
"C[kazu-1]",
"C",
"kazu-1",
"kazu",
"1",
"1",
"break;",
"case \"D\":",
"\"D\"",
"case \"D\":",
"D[kazu-1]=1",
"D[kazu-1]",
"D",
"kazu-1",
"kazu",
"1",
"1",
"break;",
"Missing(S, H, C, D)",
"Missing",
"S",
"H",
"C",
"D",
"scanner.close()",
"scanner.close",
"scanner",
"public static void main(String[] args) {\n\t\tInput();\n\t\t\n\t}",
"main",
"{\n\t\tInput();\n\t\t\n\t}",
"Input()",
"Input",
"String[] args",
"args",
"public class Main{\n\n\tstatic void Missing(int[] S,int[] H,int[] C,int[] D){\n\t\t\n\t\tfor(int i = 0; i < 13 ; i++){\n\t\t\tif(S[i] == 0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 13 ; i++){\n\t\t\tif(H[i] == 0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 13 ; i++){\n\t\t\tif(C[i] == 0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 13 ; i++){\n\t\t\tif(D[i] == 0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void Input(){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N\t= scanner.nextInt();\n\t\tint[] S = new int[13];\n\t\tint[] H = new int[13];\n\t\tint[] C = new int[13];\n\t\tint[] D = new int[13];\n\t\tfor(int i = 0; i < N ; i++){\n\t\t\tString \tgara = scanner.next();\n\t\t\tint \tkazu = scanner.nextInt();\n\t\t\tswitch(gara){\n\t\t\tcase \"S\":S[kazu-1]=1; break;\n\t\t\tcase \"H\":H[kazu-1]=1; break;\n\t\t\tcase \"C\":C[kazu-1]=1; break;\n\t\t\tcase \"D\":D[kazu-1]=1; break;\n\t\t\t}\n\t\t}\n\t\tMissing(S, H, C, D);\n\t\tscanner.close();\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tInput();\n\t\t\n\t}\n\n}",
"public class Main{\n\n\tstatic void Missing(int[] S,int[] H,int[] C,int[] D){\n\t\t\n\t\tfor(int i = 0; i < 13 ; i++){\n\t\t\tif(S[i] == 0){\n\t\t\t\tSystem.out.println(\"S \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 13 ; i++){\n\t\t\tif(H[i] == 0){\n\t\t\t\tSystem.out.println(\"H \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 13 ; i++){\n\t\t\tif(C[i] == 0){\n\t\t\t\tSystem.out.println(\"C \"+(i+1));\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 13 ; i++){\n\t\t\tif(D[i] == 0){\n\t\t\t\tSystem.out.println(\"D \"+(i+1));\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void Input(){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N\t= scanner.nextInt();\n\t\tint[] S = new int[13];\n\t\tint[] H = new int[13];\n\t\tint[] C = new int[13];\n\t\tint[] D = new int[13];\n\t\tfor(int i = 0; i < N ; i++){\n\t\t\tString \tgara = scanner.next();\n\t\t\tint \tkazu = scanner.nextInt();\n\t\t\tswitch(gara){\n\t\t\tcase \"S\":S[kazu-1]=1; break;\n\t\t\tcase \"H\":H[kazu-1]=1; break;\n\t\t\tcase \"C\":C[kazu-1]=1; break;\n\t\t\tcase \"D\":D[kazu-1]=1; break;\n\t\t\t}\n\t\t}\n\t\tMissing(S, H, C, D);\n\t\tscanner.close();\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tInput();\n\t\t\n\t}\n\n}",
"Main"
] | import java.util.*;
public class Main{
static void Missing(int[] S,int[] H,int[] C,int[] D){
for(int i = 0; i < 13 ; i++){
if(S[i] == 0){
System.out.println("S "+(i+1));
}
}
for(int i = 0; i < 13 ; i++){
if(H[i] == 0){
System.out.println("H "+(i+1));
}
}
for(int i = 0; i < 13 ; i++){
if(C[i] == 0){
System.out.println("C "+(i+1));
}
}
for(int i = 0; i < 13 ; i++){
if(D[i] == 0){
System.out.println("D "+(i+1));
}
}
}
static void Input(){
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
int[] S = new int[13];
int[] H = new int[13];
int[] C = new int[13];
int[] D = new int[13];
for(int i = 0; i < N ; i++){
String gara = scanner.next();
int kazu = scanner.nextInt();
switch(gara){
case "S":S[kazu-1]=1; break;
case "H":H[kazu-1]=1; break;
case "C":C[kazu-1]=1; break;
case "D":D[kazu-1]=1; break;
}
}
Missing(S, H, C, D);
scanner.close();
}
public static void main(String[] args) {
Input();
}
} |
[
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,
13,
4,
18,
13,
41,
13,
20,
41,
13,
39,
17,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
2,
2,
18,
13,
13,
17,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
126,
11
],
[
126,
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
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
14,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
34,
37
],
[
34,
38
],
[
14,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
39,
49
],
[
49,
50
],
[
50,
51
],
[
39,
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
],
[
67,
70
],
[
71,
71
],
[
71,
72
],
[
72,
73
],
[
72,
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
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
89,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
14,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
99,
109
],
[
109,
110
],
[
110,
111
],
[
99,
112
],
[
113,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
12,
123
],
[
123,
124
],
[
0,
125
],
[
125,
126
],
[
125,
127
]
] | [
"import java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.Scanner;\npublic class Main {\n public static void main (String args[]) throws IOException {\n Scanner sc = new Scanner(System.in);\n StringBuffer sb = new StringBuffer();\n int a = Integer.parseInt(sc.nextLine());\n //String x =sc.nextLine();\n ArrayList<String> array = new ArrayList<String>();\n String[] str ={\"S\",\"H\",\"C\",\"D\"};\n\n for(int i=0;i<str.length;i++){\n \tfor(int b=1;b<=13;b++){\n \tarray.add(str[i]+\" \"+ b);\n \t}\n }\n for(int i=0;i<a;i++){\n \tString x =sc.nextLine();\n array.remove(x);\n }\n\n for(int i=0;i<array.size();i++){\n System.out.println(array.get(i));\n }\n }\n\n\n }",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main (String args[]) throws IOException {\n Scanner sc = new Scanner(System.in);\n StringBuffer sb = new StringBuffer();\n int a = Integer.parseInt(sc.nextLine());\n //String x =sc.nextLine();\n ArrayList<String> array = new ArrayList<String>();\n String[] str ={\"S\",\"H\",\"C\",\"D\"};\n\n for(int i=0;i<str.length;i++){\n \tfor(int b=1;b<=13;b++){\n \tarray.add(str[i]+\" \"+ b);\n \t}\n }\n for(int i=0;i<a;i++){\n \tString x =sc.nextLine();\n array.remove(x);\n }\n\n for(int i=0;i<array.size();i++){\n System.out.println(array.get(i));\n }\n }\n\n\n }",
"Main",
"public static void main (String args[]) throws IOException {\n Scanner sc = new Scanner(System.in);\n StringBuffer sb = new StringBuffer();\n int a = Integer.parseInt(sc.nextLine());\n //String x =sc.nextLine();\n ArrayList<String> array = new ArrayList<String>();\n String[] str ={\"S\",\"H\",\"C\",\"D\"};\n\n for(int i=0;i<str.length;i++){\n \tfor(int b=1;b<=13;b++){\n \tarray.add(str[i]+\" \"+ b);\n \t}\n }\n for(int i=0;i<a;i++){\n \tString x =sc.nextLine();\n array.remove(x);\n }\n\n for(int i=0;i<array.size();i++){\n System.out.println(array.get(i));\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n StringBuffer sb = new StringBuffer();\n int a = Integer.parseInt(sc.nextLine());\n //String x =sc.nextLine();\n ArrayList<String> array = new ArrayList<String>();\n String[] str ={\"S\",\"H\",\"C\",\"D\"};\n\n for(int i=0;i<str.length;i++){\n \tfor(int b=1;b<=13;b++){\n \tarray.add(str[i]+\" \"+ b);\n \t}\n }\n for(int i=0;i<a;i++){\n \tString x =sc.nextLine();\n array.remove(x);\n }\n\n for(int i=0;i<array.size();i++){\n System.out.println(array.get(i));\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"StringBuffer sb = new StringBuffer();",
"sb",
"new StringBuffer()",
"int a = Integer.parseInt(sc.nextLine());",
"a",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"ArrayList<String> array = new ArrayList<String>();",
"array",
"new ArrayList<String>()",
"String[] str ={\"S\",\"H\",\"C\",\"D\"};",
"str",
"{\"S\",\"H\",\"C\",\"D\"}",
"\"S\"",
"\"H\"",
"\"C\"",
"\"D\"",
"for(int i=0;i<str.length;i++){\n \tfor(int b=1;b<=13;b++){\n \tarray.add(str[i]+\" \"+ b);\n \t}\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<str.length",
"i",
"str.length",
"str",
"str.length",
"i++",
"i++",
"i",
"{\n \tfor(int b=1;b<=13;b++){\n \tarray.add(str[i]+\" \"+ b);\n \t}\n }",
"{\n \tfor(int b=1;b<=13;b++){\n \tarray.add(str[i]+\" \"+ b);\n \t}\n }",
"for(int b=1;b<=13;b++){\n \tarray.add(str[i]+\" \"+ b);\n \t}",
"int b=1;",
"int b=1;",
"b",
"1",
"b<=13",
"b",
"13",
"b++",
"b++",
"b",
"{\n \tarray.add(str[i]+\" \"+ b);\n \t}",
"{\n \tarray.add(str[i]+\" \"+ b);\n \t}",
"array.add(str[i]+\" \"+ b)",
"array.add",
"array",
"str[i]+\" \"+ b",
"str[i]+\" \"+ b",
"str[i]",
"str",
"i",
"\" \"",
"b",
"for(int i=0;i<a;i++){\n \tString x =sc.nextLine();\n array.remove(x);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a",
"i",
"a",
"i++",
"i++",
"i",
"{\n \tString x =sc.nextLine();\n array.remove(x);\n }",
"{\n \tString x =sc.nextLine();\n array.remove(x);\n }",
"String x =sc.nextLine();",
"x",
"sc.nextLine()",
"sc.nextLine",
"sc",
"array.remove(x)",
"array.remove",
"array",
"x",
"for(int i=0;i<array.size();i++){\n System.out.println(array.get(i));\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<array.size()",
"i",
"array.size()",
"array.size",
"array",
"i++",
"i++",
"i",
"{\n System.out.println(array.get(i));\n }",
"{\n System.out.println(array.get(i));\n }",
"System.out.println(array.get(i))",
"System.out.println",
"System.out",
"System",
"System.out",
"array.get(i)",
"array.get",
"array",
"i",
"String args[]",
"args",
"public class Main {\n public static void main (String args[]) throws IOException {\n Scanner sc = new Scanner(System.in);\n StringBuffer sb = new StringBuffer();\n int a = Integer.parseInt(sc.nextLine());\n //String x =sc.nextLine();\n ArrayList<String> array = new ArrayList<String>();\n String[] str ={\"S\",\"H\",\"C\",\"D\"};\n\n for(int i=0;i<str.length;i++){\n \tfor(int b=1;b<=13;b++){\n \tarray.add(str[i]+\" \"+ b);\n \t}\n }\n for(int i=0;i<a;i++){\n \tString x =sc.nextLine();\n array.remove(x);\n }\n\n for(int i=0;i<array.size();i++){\n System.out.println(array.get(i));\n }\n }\n\n\n }",
"public class Main {\n public static void main (String args[]) throws IOException {\n Scanner sc = new Scanner(System.in);\n StringBuffer sb = new StringBuffer();\n int a = Integer.parseInt(sc.nextLine());\n //String x =sc.nextLine();\n ArrayList<String> array = new ArrayList<String>();\n String[] str ={\"S\",\"H\",\"C\",\"D\"};\n\n for(int i=0;i<str.length;i++){\n \tfor(int b=1;b<=13;b++){\n \tarray.add(str[i]+\" \"+ b);\n \t}\n }\n for(int i=0;i<a;i++){\n \tString x =sc.nextLine();\n array.remove(x);\n }\n\n for(int i=0;i<array.size();i++){\n System.out.println(array.get(i));\n }\n }\n\n\n }",
"Main"
] | import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main (String args[]) throws IOException {
Scanner sc = new Scanner(System.in);
StringBuffer sb = new StringBuffer();
int a = Integer.parseInt(sc.nextLine());
//String x =sc.nextLine();
ArrayList<String> array = new ArrayList<String>();
String[] str ={"S","H","C","D"};
for(int i=0;i<str.length;i++){
for(int b=1;b<=13;b++){
array.add(str[i]+" "+ b);
}
}
for(int i=0;i<a;i++){
String x =sc.nextLine();
array.remove(x);
}
for(int i=0;i<array.size();i++){
System.out.println(array.get(i));
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
0,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
0,
18,
13,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
17,
12,
13,
30,
14,
4,
18,
13,
17,
40,
18,
18,
13,
17,
2,
13,
17,
14,
4,
18,
13,
17,
40,
18,
18,
13,
17,
2,
13,
17,
14,
4,
18,
13,
17,
40,
18,
18,
13,
17,
2,
13,
17,
14,
4,
18,
13,
17,
40,
18,
18,
13,
17,
2,
13,
17,
23,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
14,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
4,
18,
13,
13,
13,
4,
18,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
4,
8
],
[
8,
9
],
[
8,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
15,
20
],
[
20,
21
],
[
20,
22
],
[
15,
23
],
[
23,
24
],
[
24,
25
],
[
15,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
10,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
59,
65
],
[
4,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
69,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
79,
81
],
[
69,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
82,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
92,
94
],
[
82,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
95,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
105,
106
],
[
105,
107
],
[
95,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
108,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
118,
119
],
[
118,
120
],
[
66,
121
],
[
121,
122
],
[
66,
123
],
[
123,
124
],
[
4,
125
],
[
125,
126
],
[
125,
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
],
[
141,
146
],
[
146,
147
],
[
146,
148
],
[
141,
149
],
[
149,
150
],
[
150,
151
],
[
141,
152
],
[
153,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
155,
161
],
[
154,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
163,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
174,
176
],
[
163,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
181,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
188,
190
],
[
177,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
195,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
202,
204
],
[
191,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
205,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
209,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
216,
218
],
[
0,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
221,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
223,
227
],
[
227,
228
],
[
227,
229
],
[
223,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
233,
234
],
[
223,
235
],
[
235,
236
],
[
235,
237
],
[
237,
238
],
[
238,
239
],
[
237,
240
],
[
223,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
243,
245
],
[
241,
246
],
[
246,
247
],
[
246,
248
],
[
241,
249
],
[
249,
250
],
[
250,
251
],
[
241,
252
],
[
253,
253
],
[
253,
254
],
[
254,
255
],
[
254,
256
],
[
256,
257
],
[
257,
258
],
[
258,
259
],
[
259,
260
],
[
256,
261
],
[
253,
262
],
[
262,
263
],
[
262,
264
],
[
264,
265
],
[
264,
266
],
[
253,
267
],
[
267,
268
],
[
267,
269
],
[
269,
270
],
[
270,
271
],
[
269,
272
],
[
272,
273
],
[
272,
274
],
[
253,
275
],
[
275,
276
],
[
276,
277
],
[
275,
278
],
[
275,
279
],
[
223,
280
],
[
280,
281
],
[
281,
282
],
[
221,
283
],
[
283,
284
]
] | [
"import java.io.*;\n\nclass Tranp{\n private int[][] card;\n public Tranp(){\n\tcard=new int[4][];\n\tfor(int i=0;i<4;i++) card[i]=new int[13];\n\tfor(int i=0;i<4;i++){\n\t\tfor(int j=0;j<13;j++){\n\t\t card[i][j]=0;\n\t\t}\n\t}\n }\n public void markcard(String mark,int num){\t\t \t\n\tif(mark.equals(\"S\")) card[0][num-1]++;\n\telse if(mark.equals(\"H\")) card[1][num-1]++;\n\telse if(mark.equals(\"C\")) card[2][num-1]++;\t\n\telse if(mark.equals(\"D\")) card[3][num-1]++;\n }\n\n public void printcard(){\n\tfor(int i=0;i<4;i++){\n\t for(int j=0;j<13;j++){\n\t\tif(card[i][j]==0){\n\t\t if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));\n\t\t}\n\t }\n\t}\n }\n \n} \nclass Main{\n public static void main(String[] args)throws IOException{\n\tfinal BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\tfinal Tranp tr=new Tranp();\n\t\n\tString str=br.readLine();\n\tint n=Integer.parseInt(str);\n\tfor(int i=0;i<n;i++){\n\t String[] st=br.readLine().split(\" \");\n\t String mark=st[0];\n\t int num=Integer.parseInt(st[1]);\n\t tr.markcard(mark,num);\n\t}\n\ttr.printcard();\n }\n}",
"import java.io.*;",
"io.*",
"java",
"class Tranp{\n private int[][] card;\n public Tranp(){\n\tcard=new int[4][];\n\tfor(int i=0;i<4;i++) card[i]=new int[13];\n\tfor(int i=0;i<4;i++){\n\t\tfor(int j=0;j<13;j++){\n\t\t card[i][j]=0;\n\t\t}\n\t}\n }\n public void markcard(String mark,int num){\t\t \t\n\tif(mark.equals(\"S\")) card[0][num-1]++;\n\telse if(mark.equals(\"H\")) card[1][num-1]++;\n\telse if(mark.equals(\"C\")) card[2][num-1]++;\t\n\telse if(mark.equals(\"D\")) card[3][num-1]++;\n }\n\n public void printcard(){\n\tfor(int i=0;i<4;i++){\n\t for(int j=0;j<13;j++){\n\t\tif(card[i][j]==0){\n\t\t if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));\n\t\t}\n\t }\n\t}\n }\n \n}",
"Tranp",
"private int[][] card;",
"card",
"public Tranp(){\n\tcard=new int[4][];\n\tfor(int i=0;i<4;i++) card[i]=new int[13];\n\tfor(int i=0;i<4;i++){\n\t\tfor(int j=0;j<13;j++){\n\t\t card[i][j]=0;\n\t\t}\n\t}\n }",
"Tranp",
"{\n\tcard=new int[4][];\n\tfor(int i=0;i<4;i++) card[i]=new int[13];\n\tfor(int i=0;i<4;i++){\n\t\tfor(int j=0;j<13;j++){\n\t\t card[i][j]=0;\n\t\t}\n\t}\n }",
"card=new int[4][]",
"card",
"new int[4][]",
"4",
"for(int i=0;i<4;i++) card[i]=new int[13];",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"card[i]=new int[13];",
"card[i]=new int[13]",
"card[i]",
"card",
"i",
"new int[13]",
"13",
"for(int i=0;i<4;i++){\n\t\tfor(int j=0;j<13;j++){\n\t\t card[i][j]=0;\n\t\t}\n\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\tfor(int j=0;j<13;j++){\n\t\t card[i][j]=0;\n\t\t}\n\t}",
"{\n\t\tfor(int j=0;j<13;j++){\n\t\t card[i][j]=0;\n\t\t}\n\t}",
"for(int j=0;j<13;j++){\n\t\t card[i][j]=0;\n\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t card[i][j]=0;\n\t\t}",
"{\n\t\t card[i][j]=0;\n\t\t}",
"card[i][j]=0",
"card[i][j]",
"card[i]",
"card",
"i",
"j",
"0",
"public void markcard(String mark,int num){\t\t \t\n\tif(mark.equals(\"S\")) card[0][num-1]++;\n\telse if(mark.equals(\"H\")) card[1][num-1]++;\n\telse if(mark.equals(\"C\")) card[2][num-1]++;\t\n\telse if(mark.equals(\"D\")) card[3][num-1]++;\n }",
"markcard",
"{\t\t \t\n\tif(mark.equals(\"S\")) card[0][num-1]++;\n\telse if(mark.equals(\"H\")) card[1][num-1]++;\n\telse if(mark.equals(\"C\")) card[2][num-1]++;\t\n\telse if(mark.equals(\"D\")) card[3][num-1]++;\n }",
"if(mark.equals(\"S\")) card[0][num-1]++;\n\telse if(mark.equals(\"H\")) card[1][num-1]++;\n\telse if(mark.equals(\"C\")) card[2][num-1]++;\t\n\telse if(mark.equals(\"D\")) card[3][num-1]++;",
"mark.equals(\"S\")",
"mark.equals",
"mark",
"\"S\"",
"card[0][num-1]++",
"card[0][num-1]",
"card[0]",
"card",
"0",
"num-1",
"num",
"1",
"if(mark.equals(\"H\")) card[1][num-1]++;\n\telse if(mark.equals(\"C\")) card[2][num-1]++;\t\n\telse if(mark.equals(\"D\")) card[3][num-1]++;",
"mark.equals(\"H\")",
"mark.equals",
"mark",
"\"H\"",
"card[1][num-1]++",
"card[1][num-1]",
"card[1]",
"card",
"1",
"num-1",
"num",
"1",
"if(mark.equals(\"C\")) card[2][num-1]++;\t\n\telse if(mark.equals(\"D\")) card[3][num-1]++;",
"mark.equals(\"C\")",
"mark.equals",
"mark",
"\"C\"",
"card[2][num-1]++",
"card[2][num-1]",
"card[2]",
"card",
"2",
"num-1",
"num",
"1",
"if(mark.equals(\"D\")) card[3][num-1]++;",
"mark.equals(\"D\")",
"mark.equals",
"mark",
"\"D\"",
"card[3][num-1]++",
"card[3][num-1]",
"card[3]",
"card",
"3",
"num-1",
"num",
"1",
"String mark",
"mark",
"int num",
"num",
"public void printcard(){\n\tfor(int i=0;i<4;i++){\n\t for(int j=0;j<13;j++){\n\t\tif(card[i][j]==0){\n\t\t if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));\n\t\t}\n\t }\n\t}\n }",
"printcard",
"{\n\tfor(int i=0;i<4;i++){\n\t for(int j=0;j<13;j++){\n\t\tif(card[i][j]==0){\n\t\t if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));\n\t\t}\n\t }\n\t}\n }",
"for(int i=0;i<4;i++){\n\t for(int j=0;j<13;j++){\n\t\tif(card[i][j]==0){\n\t\t if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));\n\t\t}\n\t }\n\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t for(int j=0;j<13;j++){\n\t\tif(card[i][j]==0){\n\t\t if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));\n\t\t}\n\t }\n\t}",
"{\n\t for(int j=0;j<13;j++){\n\t\tif(card[i][j]==0){\n\t\t if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));\n\t\t}\n\t }\n\t}",
"for(int j=0;j<13;j++){\n\t\tif(card[i][j]==0){\n\t\t if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));\n\t\t}\n\t }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\tif(card[i][j]==0){\n\t\t if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));\n\t\t}\n\t }",
"{\n\t\tif(card[i][j]==0){\n\t\t if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));\n\t\t}\n\t }",
"if(card[i][j]==0){\n\t\t if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));\n\t\t}",
"card[i][j]==0",
"card[i][j]",
"card[i]",
"card",
"i",
"j",
"0",
"{\n\t\t if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));\n\t\t}",
"if(i==0) System.out.println(\"S \" + (j+1));\n\t\t else if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));",
"i==0",
"i",
"0",
"System.out.println(\"S \" + (j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \" + (j+1)",
"\"S \"",
"(j+1)",
"j",
"1",
"if(i==1) System.out.println(\"H \" + (j+1));\n\t\t else if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));",
"i==1",
"i",
"1",
"System.out.println(\"H \" + (j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \" + (j+1)",
"\"H \"",
"(j+1)",
"j",
"1",
"if(i==2) System.out.println(\"C \" + (j+1));\n\t\t else if(i==3) System.out.println(\"D \" + (j+1));",
"i==2",
"i",
"2",
"System.out.println(\"C \" + (j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \" + (j+1)",
"\"C \"",
"(j+1)",
"j",
"1",
"if(i==3) System.out.println(\"D \" + (j+1));",
"i==3",
"i",
"3",
"System.out.println(\"D \" + (j+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \" + (j+1)",
"\"D \"",
"(j+1)",
"j",
"1",
"class Main{\n public static void main(String[] args)throws IOException{\n\tfinal BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\tfinal Tranp tr=new Tranp();\n\t\n\tString str=br.readLine();\n\tint n=Integer.parseInt(str);\n\tfor(int i=0;i<n;i++){\n\t String[] st=br.readLine().split(\" \");\n\t String mark=st[0];\n\t int num=Integer.parseInt(st[1]);\n\t tr.markcard(mark,num);\n\t}\n\ttr.printcard();\n }\n}",
"Main",
"public static void main(String[] args)throws IOException{\n\tfinal BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\tfinal Tranp tr=new Tranp();\n\t\n\tString str=br.readLine();\n\tint n=Integer.parseInt(str);\n\tfor(int i=0;i<n;i++){\n\t String[] st=br.readLine().split(\" \");\n\t String mark=st[0];\n\t int num=Integer.parseInt(st[1]);\n\t tr.markcard(mark,num);\n\t}\n\ttr.printcard();\n }",
"main",
"{\n\tfinal BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\tfinal Tranp tr=new Tranp();\n\t\n\tString str=br.readLine();\n\tint n=Integer.parseInt(str);\n\tfor(int i=0;i<n;i++){\n\t String[] st=br.readLine().split(\" \");\n\t String mark=st[0];\n\t int num=Integer.parseInt(st[1]);\n\t tr.markcard(mark,num);\n\t}\n\ttr.printcard();\n }",
"final BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"final Tranp tr=new Tranp();",
"tr",
"new Tranp()",
"String str=br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"int n=Integer.parseInt(str);",
"n",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"for(int i=0;i<n;i++){\n\t String[] st=br.readLine().split(\" \");\n\t String mark=st[0];\n\t int num=Integer.parseInt(st[1]);\n\t tr.markcard(mark,num);\n\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t String[] st=br.readLine().split(\" \");\n\t String mark=st[0];\n\t int num=Integer.parseInt(st[1]);\n\t tr.markcard(mark,num);\n\t}",
"{\n\t String[] st=br.readLine().split(\" \");\n\t String mark=st[0];\n\t int num=Integer.parseInt(st[1]);\n\t tr.markcard(mark,num);\n\t}",
"String[] st=br.readLine().split(\" \");",
"st",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"String mark=st[0];",
"mark",
"st[0]",
"st",
"0",
"int num=Integer.parseInt(st[1]);",
"num",
"Integer.parseInt(st[1])",
"Integer.parseInt",
"Integer",
"st[1]",
"st",
"1",
"tr.markcard(mark,num)",
"tr.markcard",
"tr",
"mark",
"num",
"tr.printcard()",
"tr.printcard",
"tr",
"String[] args",
"args"
] | import java.io.*;
class Tranp{
private int[][] card;
public Tranp(){
card=new int[4][];
for(int i=0;i<4;i++) card[i]=new int[13];
for(int i=0;i<4;i++){
for(int j=0;j<13;j++){
card[i][j]=0;
}
}
}
public void markcard(String mark,int num){
if(mark.equals("S")) card[0][num-1]++;
else if(mark.equals("H")) card[1][num-1]++;
else if(mark.equals("C")) card[2][num-1]++;
else if(mark.equals("D")) card[3][num-1]++;
}
public void printcard(){
for(int i=0;i<4;i++){
for(int j=0;j<13;j++){
if(card[i][j]==0){
if(i==0) System.out.println("S " + (j+1));
else if(i==1) System.out.println("H " + (j+1));
else if(i==2) System.out.println("C " + (j+1));
else if(i==3) System.out.println("D " + (j+1));
}
}
}
}
}
class Main{
public static void main(String[] args)throws IOException{
final BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
final Tranp tr=new Tranp();
String str=br.readLine();
int n=Integer.parseInt(str);
for(int i=0;i<n;i++){
String[] st=br.readLine().split(" ");
String mark=st[0];
int num=Integer.parseInt(st[1]);
tr.markcard(mark,num);
}
tr.printcard();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
17,
17,
41,
13,
39,
17,
17,
17,
17,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
14,
4,
18,
17,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
17,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
17,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
17,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
17,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
2,
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,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
16,
18
],
[
16,
19
],
[
16,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
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
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
47,
52
],
[
44,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
58,
60
],
[
44,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
65,
67
],
[
61,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
61,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
82,
84
],
[
78,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
91,
92
],
[
91,
93
],
[
86,
94
],
[
78,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
99,
100
],
[
99,
101
],
[
95,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
108,
110
],
[
103,
111
],
[
95,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
116,
117
],
[
116,
118
],
[
112,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
125,
127
],
[
120,
128
],
[
8,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
129,
137
],
[
137,
138
],
[
138,
139
],
[
129,
140
],
[
141,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
142,
147
],
[
147,
148
],
[
147,
149
],
[
142,
150
],
[
150,
151
],
[
151,
152
],
[
142,
153
],
[
154,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
155,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
164,
169
],
[
170,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
170,
175
],
[
175,
176
],
[
175,
177
],
[
6,
178
],
[
178,
179
]
] | [
"import java.io.*;\n\nclass Main\n{\n public static void main (String[ ] args) throws Exception\n {\n boolean[][] b = new boolean[4][13];\n String[] s = {\"S\", \"H\", \"C\", \"D\"};\n BufferedReader br = new BufferedReader (new InputStreamReader (System.in));\n \n int n = Integer.parseInt(br.readLine());\n for(int i = 0; i < n; i++)\n {\n String[] strArr = (br.readLine()).split(\" \");\n int rank = Integer.parseInt(strArr[1]);\n if(\"S\".equals(strArr[0]))\n {\n b[0][rank - 1] = true;\n }\n else if(\"H\".equals(strArr[0]))\n {\n b[1][rank - 1] = true;\n }\n else if(\"C\".equals(strArr[0]))\n {\n b[2][rank - 1] = true;\n }\n else if(\"D\".equals(strArr[0]))\n {\n b[3][rank - 1] = true;\n }\n }\n \n for(int i = 0; i < 4; i++)\n {\n for(int j = 0; j < 13; j++)\n {\n if(true != b[i][j])\n {\n System.out.println(s[i] + \" \" + (j + 1));\n }\n }\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"class Main\n{\n public static void main (String[ ] args) throws Exception\n {\n boolean[][] b = new boolean[4][13];\n String[] s = {\"S\", \"H\", \"C\", \"D\"};\n BufferedReader br = new BufferedReader (new InputStreamReader (System.in));\n \n int n = Integer.parseInt(br.readLine());\n for(int i = 0; i < n; i++)\n {\n String[] strArr = (br.readLine()).split(\" \");\n int rank = Integer.parseInt(strArr[1]);\n if(\"S\".equals(strArr[0]))\n {\n b[0][rank - 1] = true;\n }\n else if(\"H\".equals(strArr[0]))\n {\n b[1][rank - 1] = true;\n }\n else if(\"C\".equals(strArr[0]))\n {\n b[2][rank - 1] = true;\n }\n else if(\"D\".equals(strArr[0]))\n {\n b[3][rank - 1] = true;\n }\n }\n \n for(int i = 0; i < 4; i++)\n {\n for(int j = 0; j < 13; j++)\n {\n if(true != b[i][j])\n {\n System.out.println(s[i] + \" \" + (j + 1));\n }\n }\n }\n }\n}",
"Main",
"public static void main (String[ ] args) throws Exception\n {\n boolean[][] b = new boolean[4][13];\n String[] s = {\"S\", \"H\", \"C\", \"D\"};\n BufferedReader br = new BufferedReader (new InputStreamReader (System.in));\n \n int n = Integer.parseInt(br.readLine());\n for(int i = 0; i < n; i++)\n {\n String[] strArr = (br.readLine()).split(\" \");\n int rank = Integer.parseInt(strArr[1]);\n if(\"S\".equals(strArr[0]))\n {\n b[0][rank - 1] = true;\n }\n else if(\"H\".equals(strArr[0]))\n {\n b[1][rank - 1] = true;\n }\n else if(\"C\".equals(strArr[0]))\n {\n b[2][rank - 1] = true;\n }\n else if(\"D\".equals(strArr[0]))\n {\n b[3][rank - 1] = true;\n }\n }\n \n for(int i = 0; i < 4; i++)\n {\n for(int j = 0; j < 13; j++)\n {\n if(true != b[i][j])\n {\n System.out.println(s[i] + \" \" + (j + 1));\n }\n }\n }\n }",
"main",
"{\n boolean[][] b = new boolean[4][13];\n String[] s = {\"S\", \"H\", \"C\", \"D\"};\n BufferedReader br = new BufferedReader (new InputStreamReader (System.in));\n \n int n = Integer.parseInt(br.readLine());\n for(int i = 0; i < n; i++)\n {\n String[] strArr = (br.readLine()).split(\" \");\n int rank = Integer.parseInt(strArr[1]);\n if(\"S\".equals(strArr[0]))\n {\n b[0][rank - 1] = true;\n }\n else if(\"H\".equals(strArr[0]))\n {\n b[1][rank - 1] = true;\n }\n else if(\"C\".equals(strArr[0]))\n {\n b[2][rank - 1] = true;\n }\n else if(\"D\".equals(strArr[0]))\n {\n b[3][rank - 1] = true;\n }\n }\n \n for(int i = 0; i < 4; i++)\n {\n for(int j = 0; j < 13; j++)\n {\n if(true != b[i][j])\n {\n System.out.println(s[i] + \" \" + (j + 1));\n }\n }\n }\n }",
"boolean[][] b = new boolean[4][13];",
"b",
"new boolean[4][13]",
"4",
"13",
"String[] s = {\"S\", \"H\", \"C\", \"D\"};",
"s",
"{\"S\", \"H\", \"C\", \"D\"}",
"\"S\"",
"\"H\"",
"\"C\"",
"\"D\"",
"BufferedReader br = new BufferedReader (new InputStreamReader (System.in));",
"br",
"new BufferedReader (new InputStreamReader (System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int i = 0; i < n; i++)\n {\n String[] strArr = (br.readLine()).split(\" \");\n int rank = Integer.parseInt(strArr[1]);\n if(\"S\".equals(strArr[0]))\n {\n b[0][rank - 1] = true;\n }\n else if(\"H\".equals(strArr[0]))\n {\n b[1][rank - 1] = true;\n }\n else if(\"C\".equals(strArr[0]))\n {\n b[2][rank - 1] = true;\n }\n else if(\"D\".equals(strArr[0]))\n {\n b[3][rank - 1] = true;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String[] strArr = (br.readLine()).split(\" \");\n int rank = Integer.parseInt(strArr[1]);\n if(\"S\".equals(strArr[0]))\n {\n b[0][rank - 1] = true;\n }\n else if(\"H\".equals(strArr[0]))\n {\n b[1][rank - 1] = true;\n }\n else if(\"C\".equals(strArr[0]))\n {\n b[2][rank - 1] = true;\n }\n else if(\"D\".equals(strArr[0]))\n {\n b[3][rank - 1] = true;\n }\n }",
"{\n String[] strArr = (br.readLine()).split(\" \");\n int rank = Integer.parseInt(strArr[1]);\n if(\"S\".equals(strArr[0]))\n {\n b[0][rank - 1] = true;\n }\n else if(\"H\".equals(strArr[0]))\n {\n b[1][rank - 1] = true;\n }\n else if(\"C\".equals(strArr[0]))\n {\n b[2][rank - 1] = true;\n }\n else if(\"D\".equals(strArr[0]))\n {\n b[3][rank - 1] = true;\n }\n }",
"String[] strArr = (br.readLine()).split(\" \");",
"strArr",
"(br.readLine()).split(\" \")",
"(br.readLine()).split",
"(br.readLine())",
"br.readLine",
"br",
"\" \"",
"int rank = Integer.parseInt(strArr[1]);",
"rank",
"Integer.parseInt(strArr[1])",
"Integer.parseInt",
"Integer",
"strArr[1]",
"strArr",
"1",
"if(\"S\".equals(strArr[0]))\n {\n b[0][rank - 1] = true;\n }\n else if(\"H\".equals(strArr[0]))\n {\n b[1][rank - 1] = true;\n }\n else if(\"C\".equals(strArr[0]))\n {\n b[2][rank - 1] = true;\n }\n else if(\"D\".equals(strArr[0]))\n {\n b[3][rank - 1] = true;\n }",
"\"S\".equals(strArr[0])",
"\"S\".equals",
"\"S\"",
"strArr[0]",
"strArr",
"0",
"{\n b[0][rank - 1] = true;\n }",
"b[0][rank - 1] = true",
"b[0][rank - 1]",
"b[0]",
"b",
"0",
"rank - 1",
"rank",
"1",
"true",
"if(\"H\".equals(strArr[0]))\n {\n b[1][rank - 1] = true;\n }\n else if(\"C\".equals(strArr[0]))\n {\n b[2][rank - 1] = true;\n }\n else if(\"D\".equals(strArr[0]))\n {\n b[3][rank - 1] = true;\n }",
"\"H\".equals(strArr[0])",
"\"H\".equals",
"\"H\"",
"strArr[0]",
"strArr",
"0",
"{\n b[1][rank - 1] = true;\n }",
"b[1][rank - 1] = true",
"b[1][rank - 1]",
"b[1]",
"b",
"1",
"rank - 1",
"rank",
"1",
"true",
"if(\"C\".equals(strArr[0]))\n {\n b[2][rank - 1] = true;\n }\n else if(\"D\".equals(strArr[0]))\n {\n b[3][rank - 1] = true;\n }",
"\"C\".equals(strArr[0])",
"\"C\".equals",
"\"C\"",
"strArr[0]",
"strArr",
"0",
"{\n b[2][rank - 1] = true;\n }",
"b[2][rank - 1] = true",
"b[2][rank - 1]",
"b[2]",
"b",
"2",
"rank - 1",
"rank",
"1",
"true",
"if(\"D\".equals(strArr[0]))\n {\n b[3][rank - 1] = true;\n }",
"\"D\".equals(strArr[0])",
"\"D\".equals",
"\"D\"",
"strArr[0]",
"strArr",
"0",
"{\n b[3][rank - 1] = true;\n }",
"b[3][rank - 1] = true",
"b[3][rank - 1]",
"b[3]",
"b",
"3",
"rank - 1",
"rank",
"1",
"true",
"for(int i = 0; i < 4; i++)\n {\n for(int j = 0; j < 13; j++)\n {\n if(true != b[i][j])\n {\n System.out.println(s[i] + \" \" + (j + 1));\n }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < 13; j++)\n {\n if(true != b[i][j])\n {\n System.out.println(s[i] + \" \" + (j + 1));\n }\n }\n }",
"{\n for(int j = 0; j < 13; j++)\n {\n if(true != b[i][j])\n {\n System.out.println(s[i] + \" \" + (j + 1));\n }\n }\n }",
"for(int j = 0; j < 13; j++)\n {\n if(true != b[i][j])\n {\n System.out.println(s[i] + \" \" + (j + 1));\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n if(true != b[i][j])\n {\n System.out.println(s[i] + \" \" + (j + 1));\n }\n }",
"{\n if(true != b[i][j])\n {\n System.out.println(s[i] + \" \" + (j + 1));\n }\n }",
"if(true != b[i][j])\n {\n System.out.println(s[i] + \" \" + (j + 1));\n }",
"true != b[i][j]",
"true",
"b[i][j]",
"b[i]",
"b",
"i",
"j",
"{\n System.out.println(s[i] + \" \" + (j + 1));\n }",
"System.out.println(s[i] + \" \" + (j + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"s[i] + \" \" + (j + 1)",
"s[i] + \" \" + (j + 1)",
"s[i]",
"s",
"i",
"\" \"",
"(j + 1)",
"j",
"1",
"String[ ] args",
"args"
] | import java.io.*;
class Main
{
public static void main (String[ ] args) throws Exception
{
boolean[][] b = new boolean[4][13];
String[] s = {"S", "H", "C", "D"};
BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
int n = Integer.parseInt(br.readLine());
for(int i = 0; i < n; i++)
{
String[] strArr = (br.readLine()).split(" ");
int rank = Integer.parseInt(strArr[1]);
if("S".equals(strArr[0]))
{
b[0][rank - 1] = true;
}
else if("H".equals(strArr[0]))
{
b[1][rank - 1] = true;
}
else if("C".equals(strArr[0]))
{
b[2][rank - 1] = true;
}
else if("D".equals(strArr[0]))
{
b[3][rank - 1] = true;
}
}
for(int i = 0; i < 4; i++)
{
for(int j = 0; j < 13; j++)
{
if(true != b[i][j])
{
System.out.println(s[i] + " " + (j + 1));
}
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
18,
13,
17,
2,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
35,
13,
34,
17,
1,
4,
18,
18,
13,
13,
17,
2,
13,
17,
3,
34,
17,
1,
4,
18,
18,
13,
13,
17,
2,
13,
17,
3,
34,
17,
1,
4,
18,
18,
13,
13,
17,
2,
13,
17,
3,
34,
17,
1,
4,
18,
18,
13,
13,
17,
2,
13,
17,
3,
34,
1,
4,
18,
18,
13,
13,
17,
3,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
212,
5
],
[
212,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
40,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
51,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
51,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
66,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
66,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
81,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
92,
94
],
[
87,
95
],
[
81,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
96,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
8,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
111,
119
],
[
119,
120
],
[
120,
121
],
[
111,
122
],
[
123,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
129,
130
],
[
129,
131
],
[
124,
132
],
[
132,
133
],
[
133,
134
],
[
124,
135
],
[
136,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
138,
144
],
[
137,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
151,
157
],
[
157,
158
],
[
157,
159
],
[
150,
160
],
[
146,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
164,
169
],
[
164,
170
],
[
170,
171
],
[
170,
172
],
[
163,
173
],
[
146,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
177,
183
],
[
183,
184
],
[
183,
185
],
[
176,
186
],
[
146,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
190,
195
],
[
190,
196
],
[
196,
197
],
[
196,
198
],
[
189,
199
],
[
146,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
202,
207
],
[
201,
208
],
[
6,
209
],
[
209,
210
],
[
0,
211
],
[
211,
212
],
[
211,
213
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint count = scan.nextInt();\n\t\tint cards[][] = new int[4][52];\n\t\tString mark = \"\";\n\t\tint num = 0;\n\t\tfor(int i = 0;i < count;i++)\n\t\t{\n\t\t\tmark = scan.next();\n\t\t\tnum = scan.nextInt();\n\t\t\tif(mark.equals(\"S\")){\n\t\t\t\tcards[0][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tcards[1][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tcards[2][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < 4;i++)\n\t\t{\n\t\t\tfor(int j = 0;j < 13;j++)\n\t\t\t{\n\t\t\t\tif(cards[i][j] == 0){\n\t\t\t\t\tswitch(i)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tSystem.out.printf(\"S %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\"H %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\"C %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\"D %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tSystem.out.println(\"error\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\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{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint count = scan.nextInt();\n\t\tint cards[][] = new int[4][52];\n\t\tString mark = \"\";\n\t\tint num = 0;\n\t\tfor(int i = 0;i < count;i++)\n\t\t{\n\t\t\tmark = scan.next();\n\t\t\tnum = scan.nextInt();\n\t\t\tif(mark.equals(\"S\")){\n\t\t\t\tcards[0][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tcards[1][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tcards[2][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < 4;i++)\n\t\t{\n\t\t\tfor(int j = 0;j < 13;j++)\n\t\t\t{\n\t\t\t\tif(cards[i][j] == 0){\n\t\t\t\t\tswitch(i)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tSystem.out.printf(\"S %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\"H %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\"C %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\"D %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tSystem.out.println(\"error\");\n\t\t\t\t\t\t\tbreak;\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{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint count = scan.nextInt();\n\t\tint cards[][] = new int[4][52];\n\t\tString mark = \"\";\n\t\tint num = 0;\n\t\tfor(int i = 0;i < count;i++)\n\t\t{\n\t\t\tmark = scan.next();\n\t\t\tnum = scan.nextInt();\n\t\t\tif(mark.equals(\"S\")){\n\t\t\t\tcards[0][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tcards[1][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tcards[2][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < 4;i++)\n\t\t{\n\t\t\tfor(int j = 0;j < 13;j++)\n\t\t\t{\n\t\t\t\tif(cards[i][j] == 0){\n\t\t\t\t\tswitch(i)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tSystem.out.printf(\"S %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\"H %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\"C %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\"D %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tSystem.out.println(\"error\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\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 count = scan.nextInt();\n\t\tint cards[][] = new int[4][52];\n\t\tString mark = \"\";\n\t\tint num = 0;\n\t\tfor(int i = 0;i < count;i++)\n\t\t{\n\t\t\tmark = scan.next();\n\t\t\tnum = scan.nextInt();\n\t\t\tif(mark.equals(\"S\")){\n\t\t\t\tcards[0][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tcards[1][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tcards[2][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < 4;i++)\n\t\t{\n\t\t\tfor(int j = 0;j < 13;j++)\n\t\t\t{\n\t\t\t\tif(cards[i][j] == 0){\n\t\t\t\t\tswitch(i)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tSystem.out.printf(\"S %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\"H %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\"C %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\"D %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tSystem.out.println(\"error\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\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 count = scan.nextInt();",
"count",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int cards[][] = new int[4][52];",
"cards",
"new int[4][52]",
"4",
"52",
"String mark = \"\";",
"mark",
"\"\"",
"int num = 0;",
"num",
"0",
"for(int i = 0;i < count;i++)\n\t\t{\n\t\t\tmark = scan.next();\n\t\t\tnum = scan.nextInt();\n\t\t\tif(mark.equals(\"S\")){\n\t\t\t\tcards[0][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tcards[1][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tcards[2][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < count",
"i",
"count",
"i++",
"i++",
"i",
"{\n\t\t\tmark = scan.next();\n\t\t\tnum = scan.nextInt();\n\t\t\tif(mark.equals(\"S\")){\n\t\t\t\tcards[0][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tcards[1][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tcards[2][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}\n\t\t}",
"{\n\t\t\tmark = scan.next();\n\t\t\tnum = scan.nextInt();\n\t\t\tif(mark.equals(\"S\")){\n\t\t\t\tcards[0][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tcards[1][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tcards[2][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}\n\t\t}",
"mark = scan.next()",
"mark",
"scan.next()",
"scan.next",
"scan",
"num = scan.nextInt()",
"num",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(mark.equals(\"S\")){\n\t\t\t\tcards[0][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tcards[1][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tcards[2][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}",
"mark.equals(\"S\")",
"mark.equals",
"mark",
"\"S\"",
"{\n\t\t\t\tcards[0][num - 1] = 1;\n\t\t\t}",
"cards[0][num - 1] = 1",
"cards[0][num - 1]",
"cards[0]",
"cards",
"0",
"num - 1",
"num",
"1",
"1",
"if(mark.equals(\"H\")){\n\t\t\t\tcards[1][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tcards[2][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}",
"mark.equals(\"H\")",
"mark.equals",
"mark",
"\"H\"",
"{\n\t\t\t\tcards[1][num - 1] = 1;\n\t\t\t}",
"cards[1][num - 1] = 1",
"cards[1][num - 1]",
"cards[1]",
"cards",
"1",
"num - 1",
"num",
"1",
"1",
"if(mark.equals(\"C\")){\n\t\t\t\tcards[2][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}",
"mark.equals(\"C\")",
"mark.equals",
"mark",
"\"C\"",
"{\n\t\t\t\tcards[2][num - 1] = 1;\n\t\t\t}",
"cards[2][num - 1] = 1",
"cards[2][num - 1]",
"cards[2]",
"cards",
"2",
"num - 1",
"num",
"1",
"1",
"if(mark.equals(\"D\")){\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}",
"mark.equals(\"D\")",
"mark.equals",
"mark",
"\"D\"",
"{\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}",
"cards[3][num - 1] = 1",
"cards[3][num - 1]",
"cards[3]",
"cards",
"3",
"num - 1",
"num",
"1",
"1",
"for(int i = 0;i < 4;i++)\n\t\t{\n\t\t\tfor(int j = 0;j < 13;j++)\n\t\t\t{\n\t\t\t\tif(cards[i][j] == 0){\n\t\t\t\t\tswitch(i)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tSystem.out.printf(\"S %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\"H %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\"C %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\"D %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tSystem.out.println(\"error\");\n\t\t\t\t\t\t\tbreak;\n\t\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 < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j = 0;j < 13;j++)\n\t\t\t{\n\t\t\t\tif(cards[i][j] == 0){\n\t\t\t\t\tswitch(i)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tSystem.out.printf(\"S %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\"H %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\"C %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\"D %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tSystem.out.println(\"error\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j = 0;j < 13;j++)\n\t\t\t{\n\t\t\t\tif(cards[i][j] == 0){\n\t\t\t\t\tswitch(i)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tSystem.out.printf(\"S %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\"H %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\"C %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\"D %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tSystem.out.println(\"error\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int j = 0;j < 13;j++)\n\t\t\t{\n\t\t\t\tif(cards[i][j] == 0){\n\t\t\t\t\tswitch(i)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tSystem.out.printf(\"S %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\"H %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\"C %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\"D %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tSystem.out.println(\"error\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 13",
"j",
"13",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(cards[i][j] == 0){\n\t\t\t\t\tswitch(i)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tSystem.out.printf(\"S %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\"H %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\"C %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\"D %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tSystem.out.println(\"error\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(cards[i][j] == 0){\n\t\t\t\t\tswitch(i)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tSystem.out.printf(\"S %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\"H %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\"C %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\"D %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tSystem.out.println(\"error\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"if(cards[i][j] == 0){\n\t\t\t\t\tswitch(i)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tSystem.out.printf(\"S %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\"H %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\"C %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\"D %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tSystem.out.println(\"error\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"cards[i][j] == 0",
"cards[i][j]",
"cards[i]",
"cards",
"i",
"j",
"0",
"{\n\t\t\t\t\tswitch(i)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tSystem.out.printf(\"S %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\"H %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\"C %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\"D %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tSystem.out.println(\"error\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"switch(i)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tSystem.out.printf(\"S %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\"H %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\"C %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\"D %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tSystem.out.println(\"error\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"i",
"case 0:",
"0",
"case 0:",
"System.out.printf(\"S %d\\n\", j + 1)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"S %d\\n\"",
"j + 1",
"j",
"1",
"break;",
"case 1:",
"1",
"case 1:",
"System.out.printf(\"H %d\\n\", j + 1)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"H %d\\n\"",
"j + 1",
"j",
"1",
"break;",
"case 2:",
"2",
"case 2:",
"System.out.printf(\"C %d\\n\", j + 1)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"C %d\\n\"",
"j + 1",
"j",
"1",
"break;",
"case 3:",
"3",
"case 3:",
"System.out.printf(\"D %d\\n\", j + 1)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"D %d\\n\"",
"j + 1",
"j",
"1",
"break;",
"default:",
"default:",
"System.out.println(\"error\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"error\"",
"break;",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint count = scan.nextInt();\n\t\tint cards[][] = new int[4][52];\n\t\tString mark = \"\";\n\t\tint num = 0;\n\t\tfor(int i = 0;i < count;i++)\n\t\t{\n\t\t\tmark = scan.next();\n\t\t\tnum = scan.nextInt();\n\t\t\tif(mark.equals(\"S\")){\n\t\t\t\tcards[0][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tcards[1][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tcards[2][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < 4;i++)\n\t\t{\n\t\t\tfor(int j = 0;j < 13;j++)\n\t\t\t{\n\t\t\t\tif(cards[i][j] == 0){\n\t\t\t\t\tswitch(i)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tSystem.out.printf(\"S %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\"H %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\"C %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\"D %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tSystem.out.println(\"error\");\n\t\t\t\t\t\t\tbreak;\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{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint count = scan.nextInt();\n\t\tint cards[][] = new int[4][52];\n\t\tString mark = \"\";\n\t\tint num = 0;\n\t\tfor(int i = 0;i < count;i++)\n\t\t{\n\t\t\tmark = scan.next();\n\t\t\tnum = scan.nextInt();\n\t\t\tif(mark.equals(\"S\")){\n\t\t\t\tcards[0][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"H\")){\n\t\t\t\tcards[1][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"C\")){\n\t\t\t\tcards[2][num - 1] = 1;\n\t\t\t}else if(mark.equals(\"D\")){\n\t\t\t\tcards[3][num - 1] = 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0;i < 4;i++)\n\t\t{\n\t\t\tfor(int j = 0;j < 13;j++)\n\t\t\t{\n\t\t\t\tif(cards[i][j] == 0){\n\t\t\t\t\tswitch(i)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tSystem.out.printf(\"S %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tSystem.out.printf(\"H %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tSystem.out.printf(\"C %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tSystem.out.printf(\"D %d\\n\", j + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tSystem.out.println(\"error\");\n\t\t\t\t\t\t\tbreak;\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)
{
Scanner scan = new Scanner(System.in);
int count = scan.nextInt();
int cards[][] = new int[4][52];
String mark = "";
int num = 0;
for(int i = 0;i < count;i++)
{
mark = scan.next();
num = scan.nextInt();
if(mark.equals("S")){
cards[0][num - 1] = 1;
}else if(mark.equals("H")){
cards[1][num - 1] = 1;
}else if(mark.equals("C")){
cards[2][num - 1] = 1;
}else if(mark.equals("D")){
cards[3][num - 1] = 1;
}
}
for(int i = 0;i < 4;i++)
{
for(int j = 0;j < 13;j++)
{
if(cards[i][j] == 0){
switch(i)
{
case 0:
System.out.printf("S %d\n", j + 1);
break;
case 1:
System.out.printf("H %d\n", j + 1);
break;
case 2:
System.out.printf("C %d\n", j + 1);
break;
case 3:
System.out.printf("D %d\n", j + 1);
break;
default:
System.out.println("error");
break;
}
}
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
13,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
18,
13,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
13,
17,
14,
4,
18,
13,
17,
30,
0,
13,
17,
14,
4,
18,
13,
17,
30,
0,
13,
2,
17,
17,
14,
4,
18,
13,
17,
30,
0,
13,
2,
17,
17,
0,
13,
2,
4,
18,
13,
4,
18,
18,
13,
13,
17,
17,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
2,
2,
13,
17,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
249,
5
],
[
249,
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
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
8,
50
],
[
50,
51
],
[
50,
52
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
54,
64
],
[
64,
65
],
[
65,
66
],
[
54,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
8,
74
],
[
74,
75
],
[
74,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
77,
87
],
[
87,
88
],
[
88,
89
],
[
77,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
94,
100
],
[
91,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
101,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
101,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
110,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
110,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
119,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
127,
129
],
[
119,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
130,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
138,
140
],
[
91,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
144,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
147,
152
],
[
143,
153
],
[
91,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
8,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
159,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
166,
168
],
[
159,
169
],
[
169,
170
],
[
170,
171
],
[
159,
172
],
[
173,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
174,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
182,
186
],
[
181,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
188,
193
],
[
181,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
195,
199
],
[
194,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
201,
206
],
[
194,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
212
],
[
207,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
214,
219
],
[
207,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
221,
225
],
[
220,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
227,
232
],
[
180,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
233,
238
],
[
238,
239
],
[
239,
240
],
[
238,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
241,
245
],
[
6,
246
],
[
246,
247
],
[
0,
248
],
[
248,
249
],
[
248,
250
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tint N = Integer.parseInt(line1);\n\n\t\tString[] inputData = new String[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tinputData[i] = line2;\n\t\t}\n\n\t\tboolean[] cards = new boolean[52];\n\t\tfor (int i = 0; i < cards.length; i++) {\n\t\t\tcards[i] = false;\n\t\t}\n\n\t\tint x = 0;\n\t\tfor (int i = 0; i < inputData.length; i++) {\n\t\t\tString str = inputData[i].substring(0, 1);\n\t\t\tif (str.equals(\"S\")) {\n\t\t\t\tx = 0;\n\n\t\t\t} else if (str.equals(\"H\")) {\n\t\t\t\tx = 13;\n\n\t\t\t} else if (str.equals(\"C\")) {\n\t\t\t\tx = 13 * 2;\n\n\t\t\t} else if (str.equals(\"D\")) {\n\t\t\t\tx = 13 * 3;\n\n\t\t\t}\n\t\t\tx += Integer.parseInt(inputData[i].substring(2)) - 1;\n\t\t\tcards[x] = true;\n\t\t}\n\t\tfor (int i = 0; i < cards.length; i++) {\n\t\t\tif (cards[i] == false) {\n\t\t\t\tif (i / 13 == 0) {\n\t\t\t\t\tSystem.out.print(\"S \");\n\n\t\t\t\t} else if (i / 13 == 1) {\n\t\t\t\t\tSystem.out.print(\"H \");\n\t\t\t\t} else if (i / 13 == 2) {\n\t\t\t\t\tSystem.out.print(\"C \");\n\t\t\t\t} else if (i / 13 == 3) {\n\t\t\t\t\tSystem.out.print(\"D \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(String.valueOf(i % 13 + 1));\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\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tint N = Integer.parseInt(line1);\n\n\t\tString[] inputData = new String[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tinputData[i] = line2;\n\t\t}\n\n\t\tboolean[] cards = new boolean[52];\n\t\tfor (int i = 0; i < cards.length; i++) {\n\t\t\tcards[i] = false;\n\t\t}\n\n\t\tint x = 0;\n\t\tfor (int i = 0; i < inputData.length; i++) {\n\t\t\tString str = inputData[i].substring(0, 1);\n\t\t\tif (str.equals(\"S\")) {\n\t\t\t\tx = 0;\n\n\t\t\t} else if (str.equals(\"H\")) {\n\t\t\t\tx = 13;\n\n\t\t\t} else if (str.equals(\"C\")) {\n\t\t\t\tx = 13 * 2;\n\n\t\t\t} else if (str.equals(\"D\")) {\n\t\t\t\tx = 13 * 3;\n\n\t\t\t}\n\t\t\tx += Integer.parseInt(inputData[i].substring(2)) - 1;\n\t\t\tcards[x] = true;\n\t\t}\n\t\tfor (int i = 0; i < cards.length; i++) {\n\t\t\tif (cards[i] == false) {\n\t\t\t\tif (i / 13 == 0) {\n\t\t\t\t\tSystem.out.print(\"S \");\n\n\t\t\t\t} else if (i / 13 == 1) {\n\t\t\t\t\tSystem.out.print(\"H \");\n\t\t\t\t} else if (i / 13 == 2) {\n\t\t\t\t\tSystem.out.print(\"C \");\n\t\t\t\t} else if (i / 13 == 3) {\n\t\t\t\t\tSystem.out.print(\"D \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(String.valueOf(i % 13 + 1));\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tint N = Integer.parseInt(line1);\n\n\t\tString[] inputData = new String[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tinputData[i] = line2;\n\t\t}\n\n\t\tboolean[] cards = new boolean[52];\n\t\tfor (int i = 0; i < cards.length; i++) {\n\t\t\tcards[i] = false;\n\t\t}\n\n\t\tint x = 0;\n\t\tfor (int i = 0; i < inputData.length; i++) {\n\t\t\tString str = inputData[i].substring(0, 1);\n\t\t\tif (str.equals(\"S\")) {\n\t\t\t\tx = 0;\n\n\t\t\t} else if (str.equals(\"H\")) {\n\t\t\t\tx = 13;\n\n\t\t\t} else if (str.equals(\"C\")) {\n\t\t\t\tx = 13 * 2;\n\n\t\t\t} else if (str.equals(\"D\")) {\n\t\t\t\tx = 13 * 3;\n\n\t\t\t}\n\t\t\tx += Integer.parseInt(inputData[i].substring(2)) - 1;\n\t\t\tcards[x] = true;\n\t\t}\n\t\tfor (int i = 0; i < cards.length; i++) {\n\t\t\tif (cards[i] == false) {\n\t\t\t\tif (i / 13 == 0) {\n\t\t\t\t\tSystem.out.print(\"S \");\n\n\t\t\t\t} else if (i / 13 == 1) {\n\t\t\t\t\tSystem.out.print(\"H \");\n\t\t\t\t} else if (i / 13 == 2) {\n\t\t\t\t\tSystem.out.print(\"C \");\n\t\t\t\t} else if (i / 13 == 3) {\n\t\t\t\t\tSystem.out.print(\"D \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(String.valueOf(i % 13 + 1));\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tint N = Integer.parseInt(line1);\n\n\t\tString[] inputData = new String[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tinputData[i] = line2;\n\t\t}\n\n\t\tboolean[] cards = new boolean[52];\n\t\tfor (int i = 0; i < cards.length; i++) {\n\t\t\tcards[i] = false;\n\t\t}\n\n\t\tint x = 0;\n\t\tfor (int i = 0; i < inputData.length; i++) {\n\t\t\tString str = inputData[i].substring(0, 1);\n\t\t\tif (str.equals(\"S\")) {\n\t\t\t\tx = 0;\n\n\t\t\t} else if (str.equals(\"H\")) {\n\t\t\t\tx = 13;\n\n\t\t\t} else if (str.equals(\"C\")) {\n\t\t\t\tx = 13 * 2;\n\n\t\t\t} else if (str.equals(\"D\")) {\n\t\t\t\tx = 13 * 3;\n\n\t\t\t}\n\t\t\tx += Integer.parseInt(inputData[i].substring(2)) - 1;\n\t\t\tcards[x] = true;\n\t\t}\n\t\tfor (int i = 0; i < cards.length; i++) {\n\t\t\tif (cards[i] == false) {\n\t\t\t\tif (i / 13 == 0) {\n\t\t\t\t\tSystem.out.print(\"S \");\n\n\t\t\t\t} else if (i / 13 == 1) {\n\t\t\t\t\tSystem.out.print(\"H \");\n\t\t\t\t} else if (i / 13 == 2) {\n\t\t\t\t\tSystem.out.print(\"C \");\n\t\t\t\t} else if (i / 13 == 3) {\n\t\t\t\t\tSystem.out.print(\"D \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(String.valueOf(i % 13 + 1));\n\t\t\t}\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",
"int N = Integer.parseInt(line1);",
"N",
"Integer.parseInt(line1)",
"Integer.parseInt",
"Integer",
"line1",
"String[] inputData = new String[N];",
"inputData",
"new String[N]",
"N",
"for (int i = 0; i < N; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tinputData[i] = line2;\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\tinputData[i] = line2;\n\t\t}",
"{\n\t\t\tString line2 = sc.nextLine();\n\t\t\tinputData[i] = line2;\n\t\t}",
"String line2 = sc.nextLine();",
"line2",
"sc.nextLine()",
"sc.nextLine",
"sc",
"inputData[i] = line2",
"inputData[i]",
"inputData",
"i",
"line2",
"boolean[] cards = new boolean[52];",
"cards",
"new boolean[52]",
"52",
"for (int i = 0; i < cards.length; i++) {\n\t\t\tcards[i] = false;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < cards.length",
"i",
"cards.length",
"cards",
"cards.length",
"i++",
"i++",
"i",
"{\n\t\t\tcards[i] = false;\n\t\t}",
"{\n\t\t\tcards[i] = false;\n\t\t}",
"cards[i] = false",
"cards[i]",
"cards",
"i",
"false",
"int x = 0;",
"x",
"0",
"for (int i = 0; i < inputData.length; i++) {\n\t\t\tString str = inputData[i].substring(0, 1);\n\t\t\tif (str.equals(\"S\")) {\n\t\t\t\tx = 0;\n\n\t\t\t} else if (str.equals(\"H\")) {\n\t\t\t\tx = 13;\n\n\t\t\t} else if (str.equals(\"C\")) {\n\t\t\t\tx = 13 * 2;\n\n\t\t\t} else if (str.equals(\"D\")) {\n\t\t\t\tx = 13 * 3;\n\n\t\t\t}\n\t\t\tx += Integer.parseInt(inputData[i].substring(2)) - 1;\n\t\t\tcards[x] = true;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < inputData.length",
"i",
"inputData.length",
"inputData",
"inputData.length",
"i++",
"i++",
"i",
"{\n\t\t\tString str = inputData[i].substring(0, 1);\n\t\t\tif (str.equals(\"S\")) {\n\t\t\t\tx = 0;\n\n\t\t\t} else if (str.equals(\"H\")) {\n\t\t\t\tx = 13;\n\n\t\t\t} else if (str.equals(\"C\")) {\n\t\t\t\tx = 13 * 2;\n\n\t\t\t} else if (str.equals(\"D\")) {\n\t\t\t\tx = 13 * 3;\n\n\t\t\t}\n\t\t\tx += Integer.parseInt(inputData[i].substring(2)) - 1;\n\t\t\tcards[x] = true;\n\t\t}",
"{\n\t\t\tString str = inputData[i].substring(0, 1);\n\t\t\tif (str.equals(\"S\")) {\n\t\t\t\tx = 0;\n\n\t\t\t} else if (str.equals(\"H\")) {\n\t\t\t\tx = 13;\n\n\t\t\t} else if (str.equals(\"C\")) {\n\t\t\t\tx = 13 * 2;\n\n\t\t\t} else if (str.equals(\"D\")) {\n\t\t\t\tx = 13 * 3;\n\n\t\t\t}\n\t\t\tx += Integer.parseInt(inputData[i].substring(2)) - 1;\n\t\t\tcards[x] = true;\n\t\t}",
"String str = inputData[i].substring(0, 1);",
"str",
"inputData[i].substring(0, 1)",
"inputData[i].substring",
"inputData[i]",
"inputData",
"i",
"0",
"1",
"if (str.equals(\"S\")) {\n\t\t\t\tx = 0;\n\n\t\t\t} else if (str.equals(\"H\")) {\n\t\t\t\tx = 13;\n\n\t\t\t} else if (str.equals(\"C\")) {\n\t\t\t\tx = 13 * 2;\n\n\t\t\t} else if (str.equals(\"D\")) {\n\t\t\t\tx = 13 * 3;\n\n\t\t\t}",
"str.equals(\"S\")",
"str.equals",
"str",
"\"S\"",
"{\n\t\t\t\tx = 0;\n\n\t\t\t}",
"x = 0",
"x",
"0",
"if (str.equals(\"H\")) {\n\t\t\t\tx = 13;\n\n\t\t\t} else if (str.equals(\"C\")) {\n\t\t\t\tx = 13 * 2;\n\n\t\t\t} else if (str.equals(\"D\")) {\n\t\t\t\tx = 13 * 3;\n\n\t\t\t}",
"str.equals(\"H\")",
"str.equals",
"str",
"\"H\"",
"{\n\t\t\t\tx = 13;\n\n\t\t\t}",
"x = 13",
"x",
"13",
"if (str.equals(\"C\")) {\n\t\t\t\tx = 13 * 2;\n\n\t\t\t} else if (str.equals(\"D\")) {\n\t\t\t\tx = 13 * 3;\n\n\t\t\t}",
"str.equals(\"C\")",
"str.equals",
"str",
"\"C\"",
"{\n\t\t\t\tx = 13 * 2;\n\n\t\t\t}",
"x = 13 * 2",
"x",
"13 * 2",
"13",
"2",
"if (str.equals(\"D\")) {\n\t\t\t\tx = 13 * 3;\n\n\t\t\t}",
"str.equals(\"D\")",
"str.equals",
"str",
"\"D\"",
"{\n\t\t\t\tx = 13 * 3;\n\n\t\t\t}",
"x = 13 * 3",
"x",
"13 * 3",
"13",
"3",
"x += Integer.parseInt(inputData[i].substring(2)) - 1",
"x",
"Integer.parseInt(inputData[i].substring(2)) - 1",
"Integer.parseInt(inputData[i].substring(2))",
"Integer.parseInt",
"Integer",
"inputData[i].substring(2)",
"inputData[i].substring",
"inputData[i]",
"inputData",
"i",
"2",
"1",
"cards[x] = true",
"cards[x]",
"cards",
"x",
"true",
"for (int i = 0; i < cards.length; i++) {\n\t\t\tif (cards[i] == false) {\n\t\t\t\tif (i / 13 == 0) {\n\t\t\t\t\tSystem.out.print(\"S \");\n\n\t\t\t\t} else if (i / 13 == 1) {\n\t\t\t\t\tSystem.out.print(\"H \");\n\t\t\t\t} else if (i / 13 == 2) {\n\t\t\t\t\tSystem.out.print(\"C \");\n\t\t\t\t} else if (i / 13 == 3) {\n\t\t\t\t\tSystem.out.print(\"D \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(String.valueOf(i % 13 + 1));\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < cards.length",
"i",
"cards.length",
"cards",
"cards.length",
"i++",
"i++",
"i",
"{\n\t\t\tif (cards[i] == false) {\n\t\t\t\tif (i / 13 == 0) {\n\t\t\t\t\tSystem.out.print(\"S \");\n\n\t\t\t\t} else if (i / 13 == 1) {\n\t\t\t\t\tSystem.out.print(\"H \");\n\t\t\t\t} else if (i / 13 == 2) {\n\t\t\t\t\tSystem.out.print(\"C \");\n\t\t\t\t} else if (i / 13 == 3) {\n\t\t\t\t\tSystem.out.print(\"D \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(String.valueOf(i % 13 + 1));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (cards[i] == false) {\n\t\t\t\tif (i / 13 == 0) {\n\t\t\t\t\tSystem.out.print(\"S \");\n\n\t\t\t\t} else if (i / 13 == 1) {\n\t\t\t\t\tSystem.out.print(\"H \");\n\t\t\t\t} else if (i / 13 == 2) {\n\t\t\t\t\tSystem.out.print(\"C \");\n\t\t\t\t} else if (i / 13 == 3) {\n\t\t\t\t\tSystem.out.print(\"D \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(String.valueOf(i % 13 + 1));\n\t\t\t}\n\t\t}",
"if (cards[i] == false) {\n\t\t\t\tif (i / 13 == 0) {\n\t\t\t\t\tSystem.out.print(\"S \");\n\n\t\t\t\t} else if (i / 13 == 1) {\n\t\t\t\t\tSystem.out.print(\"H \");\n\t\t\t\t} else if (i / 13 == 2) {\n\t\t\t\t\tSystem.out.print(\"C \");\n\t\t\t\t} else if (i / 13 == 3) {\n\t\t\t\t\tSystem.out.print(\"D \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(String.valueOf(i % 13 + 1));\n\t\t\t}",
"cards[i] == false",
"cards[i]",
"cards",
"i",
"false",
"{\n\t\t\t\tif (i / 13 == 0) {\n\t\t\t\t\tSystem.out.print(\"S \");\n\n\t\t\t\t} else if (i / 13 == 1) {\n\t\t\t\t\tSystem.out.print(\"H \");\n\t\t\t\t} else if (i / 13 == 2) {\n\t\t\t\t\tSystem.out.print(\"C \");\n\t\t\t\t} else if (i / 13 == 3) {\n\t\t\t\t\tSystem.out.print(\"D \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(String.valueOf(i % 13 + 1));\n\t\t\t}",
"if (i / 13 == 0) {\n\t\t\t\t\tSystem.out.print(\"S \");\n\n\t\t\t\t} else if (i / 13 == 1) {\n\t\t\t\t\tSystem.out.print(\"H \");\n\t\t\t\t} else if (i / 13 == 2) {\n\t\t\t\t\tSystem.out.print(\"C \");\n\t\t\t\t} else if (i / 13 == 3) {\n\t\t\t\t\tSystem.out.print(\"D \");\n\t\t\t\t}",
"i / 13 == 0",
"i / 13",
"i",
"13",
"0",
"{\n\t\t\t\t\tSystem.out.print(\"S \");\n\n\t\t\t\t}",
"System.out.print(\"S \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"S \"",
"if (i / 13 == 1) {\n\t\t\t\t\tSystem.out.print(\"H \");\n\t\t\t\t} else if (i / 13 == 2) {\n\t\t\t\t\tSystem.out.print(\"C \");\n\t\t\t\t} else if (i / 13 == 3) {\n\t\t\t\t\tSystem.out.print(\"D \");\n\t\t\t\t}",
"i / 13 == 1",
"i / 13",
"i",
"13",
"1",
"{\n\t\t\t\t\tSystem.out.print(\"H \");\n\t\t\t\t}",
"System.out.print(\"H \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"H \"",
"if (i / 13 == 2) {\n\t\t\t\t\tSystem.out.print(\"C \");\n\t\t\t\t} else if (i / 13 == 3) {\n\t\t\t\t\tSystem.out.print(\"D \");\n\t\t\t\t}",
"i / 13 == 2",
"i / 13",
"i",
"13",
"2",
"{\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 \"",
"if (i / 13 == 3) {\n\t\t\t\t\tSystem.out.print(\"D \");\n\t\t\t\t}",
"i / 13 == 3",
"i / 13",
"i",
"13",
"3",
"{\n\t\t\t\t\tSystem.out.print(\"D \");\n\t\t\t\t}",
"System.out.print(\"D \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"D \"",
"System.out.println(String.valueOf(i % 13 + 1))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.valueOf(i % 13 + 1)",
"String.valueOf",
"String",
"i % 13 + 1",
"i % 13",
"i",
"13",
"1",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tint N = Integer.parseInt(line1);\n\n\t\tString[] inputData = new String[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tinputData[i] = line2;\n\t\t}\n\n\t\tboolean[] cards = new boolean[52];\n\t\tfor (int i = 0; i < cards.length; i++) {\n\t\t\tcards[i] = false;\n\t\t}\n\n\t\tint x = 0;\n\t\tfor (int i = 0; i < inputData.length; i++) {\n\t\t\tString str = inputData[i].substring(0, 1);\n\t\t\tif (str.equals(\"S\")) {\n\t\t\t\tx = 0;\n\n\t\t\t} else if (str.equals(\"H\")) {\n\t\t\t\tx = 13;\n\n\t\t\t} else if (str.equals(\"C\")) {\n\t\t\t\tx = 13 * 2;\n\n\t\t\t} else if (str.equals(\"D\")) {\n\t\t\t\tx = 13 * 3;\n\n\t\t\t}\n\t\t\tx += Integer.parseInt(inputData[i].substring(2)) - 1;\n\t\t\tcards[x] = true;\n\t\t}\n\t\tfor (int i = 0; i < cards.length; i++) {\n\t\t\tif (cards[i] == false) {\n\t\t\t\tif (i / 13 == 0) {\n\t\t\t\t\tSystem.out.print(\"S \");\n\n\t\t\t\t} else if (i / 13 == 1) {\n\t\t\t\t\tSystem.out.print(\"H \");\n\t\t\t\t} else if (i / 13 == 2) {\n\t\t\t\t\tSystem.out.print(\"C \");\n\t\t\t\t} else if (i / 13 == 3) {\n\t\t\t\t\tSystem.out.print(\"D \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(String.valueOf(i % 13 + 1));\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tint N = Integer.parseInt(line1);\n\n\t\tString[] inputData = new String[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tinputData[i] = line2;\n\t\t}\n\n\t\tboolean[] cards = new boolean[52];\n\t\tfor (int i = 0; i < cards.length; i++) {\n\t\t\tcards[i] = false;\n\t\t}\n\n\t\tint x = 0;\n\t\tfor (int i = 0; i < inputData.length; i++) {\n\t\t\tString str = inputData[i].substring(0, 1);\n\t\t\tif (str.equals(\"S\")) {\n\t\t\t\tx = 0;\n\n\t\t\t} else if (str.equals(\"H\")) {\n\t\t\t\tx = 13;\n\n\t\t\t} else if (str.equals(\"C\")) {\n\t\t\t\tx = 13 * 2;\n\n\t\t\t} else if (str.equals(\"D\")) {\n\t\t\t\tx = 13 * 3;\n\n\t\t\t}\n\t\t\tx += Integer.parseInt(inputData[i].substring(2)) - 1;\n\t\t\tcards[x] = true;\n\t\t}\n\t\tfor (int i = 0; i < cards.length; i++) {\n\t\t\tif (cards[i] == false) {\n\t\t\t\tif (i / 13 == 0) {\n\t\t\t\t\tSystem.out.print(\"S \");\n\n\t\t\t\t} else if (i / 13 == 1) {\n\t\t\t\t\tSystem.out.print(\"H \");\n\t\t\t\t} else if (i / 13 == 2) {\n\t\t\t\t\tSystem.out.print(\"C \");\n\t\t\t\t} else if (i / 13 == 3) {\n\t\t\t\t\tSystem.out.print(\"D \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(String.valueOf(i % 13 + 1));\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);
String line1 = sc.nextLine();
int N = Integer.parseInt(line1);
String[] inputData = new String[N];
for (int i = 0; i < N; i++) {
String line2 = sc.nextLine();
inputData[i] = line2;
}
boolean[] cards = new boolean[52];
for (int i = 0; i < cards.length; i++) {
cards[i] = false;
}
int x = 0;
for (int i = 0; i < inputData.length; i++) {
String str = inputData[i].substring(0, 1);
if (str.equals("S")) {
x = 0;
} else if (str.equals("H")) {
x = 13;
} else if (str.equals("C")) {
x = 13 * 2;
} else if (str.equals("D")) {
x = 13 * 3;
}
x += Integer.parseInt(inputData[i].substring(2)) - 1;
cards[x] = true;
}
for (int i = 0; i < cards.length; i++) {
if (cards[i] == false) {
if (i / 13 == 0) {
System.out.print("S ");
} else if (i / 13 == 1) {
System.out.print("H ");
} else if (i / 13 == 2) {
System.out.print("C ");
} else if (i / 13 == 3) {
System.out.print("D ");
}
System.out.println(String.valueOf(i % 13 + 1));
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
17,
41,
13,
41,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
35,
13,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
34,
17,
1,
0,
18,
18,
13,
17,
2,
13,
17,
17,
3,
41,
13,
41,
13,
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,
14,
2,
18,
18,
13,
13,
13,
17,
30,
35,
13,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
34,
17,
1,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
208,
5
],
[
208,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
40,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
56,
64
],
[
55,
65
],
[
51,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
68,
78
],
[
51,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
87,
89
],
[
82,
90
],
[
81,
91
],
[
51,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
95,
103
],
[
94,
104
],
[
8,
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
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
136,
142
],
[
135,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
149,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
156,
158
],
[
148,
159
],
[
144,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
170,
172
],
[
162,
173
],
[
144,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
184,
186
],
[
176,
187
],
[
144,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
191,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
198,
200
],
[
190,
201
],
[
8,
202
],
[
202,
203
],
[
203,
204
],
[
6,
205
],
[
205,
206
],
[
0,
207
],
[
207,
208
],
[
207,
209
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// ?????????????????\\????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// ??\\?????°????????????????????°\n\t\tint input = sc.nextInt();\n\n\t\t// ???????????????\n\t\tint[][] card = new int[4][13];\n\n\t\t// ?????°????????????????????????????????°????????????\n\t\tString mark;\n\t\tint num;\n\n\t\t// ?????????????????°?????????\n\t\tint cnt;\n\n\t\t// ??????????????????????????????\n\t\tfor (cnt = 0; cnt < input; cnt++) {\n\n\t\t\tmark = sc.next();\n\t\t\tnum = sc.nextInt();\n\n\t\t\tswitch (mark) {\n\n\t\t\tcase \"S\":\n\t\t\t\tcard[0][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"H\":\n\t\t\t\tcard[1][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"C\":\n\t\t\t\tcard[2][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"D\":\n\t\t\t\tcard[3][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\t// ?????????????´¢??????????????????????????°?????????\n\t\tint left, right;\n\n\t\t// ???????????????????????\\????????????\n\t\tfor (left = 0; left <= 3; left++) {\n\n\t\t\tfor (right = 0; right <= 12; right++) {\n\n\t\t\t\tif (card[left][right] == 0) {\n\n\t\t\t\t\tswitch (left) {\n\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (right+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// ?????????????????\\????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// ??\\?????°????????????????????°\n\t\tint input = sc.nextInt();\n\n\t\t// ???????????????\n\t\tint[][] card = new int[4][13];\n\n\t\t// ?????°????????????????????????????????°????????????\n\t\tString mark;\n\t\tint num;\n\n\t\t// ?????????????????°?????????\n\t\tint cnt;\n\n\t\t// ??????????????????????????????\n\t\tfor (cnt = 0; cnt < input; cnt++) {\n\n\t\t\tmark = sc.next();\n\t\t\tnum = sc.nextInt();\n\n\t\t\tswitch (mark) {\n\n\t\t\tcase \"S\":\n\t\t\t\tcard[0][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"H\":\n\t\t\t\tcard[1][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"C\":\n\t\t\t\tcard[2][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"D\":\n\t\t\t\tcard[3][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\t// ?????????????´¢??????????????????????????°?????????\n\t\tint left, right;\n\n\t\t// ???????????????????????\\????????????\n\t\tfor (left = 0; left <= 3; left++) {\n\n\t\t\tfor (right = 0; right <= 12; right++) {\n\n\t\t\t\tif (card[left][right] == 0) {\n\n\t\t\t\t\tswitch (left) {\n\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (right+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\t// ?????????????????\\????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// ??\\?????°????????????????????°\n\t\tint input = sc.nextInt();\n\n\t\t// ???????????????\n\t\tint[][] card = new int[4][13];\n\n\t\t// ?????°????????????????????????????????°????????????\n\t\tString mark;\n\t\tint num;\n\n\t\t// ?????????????????°?????????\n\t\tint cnt;\n\n\t\t// ??????????????????????????????\n\t\tfor (cnt = 0; cnt < input; cnt++) {\n\n\t\t\tmark = sc.next();\n\t\t\tnum = sc.nextInt();\n\n\t\t\tswitch (mark) {\n\n\t\t\tcase \"S\":\n\t\t\t\tcard[0][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"H\":\n\t\t\t\tcard[1][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"C\":\n\t\t\t\tcard[2][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"D\":\n\t\t\t\tcard[3][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\t// ?????????????´¢??????????????????????????°?????????\n\t\tint left, right;\n\n\t\t// ???????????????????????\\????????????\n\t\tfor (left = 0; left <= 3; left++) {\n\n\t\t\tfor (right = 0; right <= 12; right++) {\n\n\t\t\t\tif (card[left][right] == 0) {\n\n\t\t\t\t\tswitch (left) {\n\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (right+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\t}",
"main",
"{\n\n\t\t// ?????????????????\\????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// ??\\?????°????????????????????°\n\t\tint input = sc.nextInt();\n\n\t\t// ???????????????\n\t\tint[][] card = new int[4][13];\n\n\t\t// ?????°????????????????????????????????°????????????\n\t\tString mark;\n\t\tint num;\n\n\t\t// ?????????????????°?????????\n\t\tint cnt;\n\n\t\t// ??????????????????????????????\n\t\tfor (cnt = 0; cnt < input; cnt++) {\n\n\t\t\tmark = sc.next();\n\t\t\tnum = sc.nextInt();\n\n\t\t\tswitch (mark) {\n\n\t\t\tcase \"S\":\n\t\t\t\tcard[0][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"H\":\n\t\t\t\tcard[1][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"C\":\n\t\t\t\tcard[2][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"D\":\n\t\t\t\tcard[3][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\t// ?????????????´¢??????????????????????????°?????????\n\t\tint left, right;\n\n\t\t// ???????????????????????\\????????????\n\t\tfor (left = 0; left <= 3; left++) {\n\n\t\t\tfor (right = 0; right <= 12; right++) {\n\n\t\t\t\tif (card[left][right] == 0) {\n\n\t\t\t\t\tswitch (left) {\n\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (right+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int input = sc.nextInt();",
"input",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] card = new int[4][13];",
"card",
"new int[4][13]",
"4",
"13",
"String mark;",
"mark",
"int num;",
"num",
"int cnt;",
"cnt",
"for (cnt = 0; cnt < input; cnt++) {\n\n\t\t\tmark = sc.next();\n\t\t\tnum = sc.nextInt();\n\n\t\t\tswitch (mark) {\n\n\t\t\tcase \"S\":\n\t\t\t\tcard[0][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"H\":\n\t\t\t\tcard[1][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"C\":\n\t\t\t\tcard[2][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"D\":\n\t\t\t\tcard[3][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}",
"cnt = 0;",
"cnt = 0",
"cnt",
"0",
"cnt < input",
"cnt",
"input",
"cnt++",
"cnt++",
"cnt",
"{\n\n\t\t\tmark = sc.next();\n\t\t\tnum = sc.nextInt();\n\n\t\t\tswitch (mark) {\n\n\t\t\tcase \"S\":\n\t\t\t\tcard[0][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"H\":\n\t\t\t\tcard[1][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"C\":\n\t\t\t\tcard[2][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"D\":\n\t\t\t\tcard[3][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}",
"{\n\n\t\t\tmark = sc.next();\n\t\t\tnum = sc.nextInt();\n\n\t\t\tswitch (mark) {\n\n\t\t\tcase \"S\":\n\t\t\t\tcard[0][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"H\":\n\t\t\t\tcard[1][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"C\":\n\t\t\t\tcard[2][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"D\":\n\t\t\t\tcard[3][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}",
"mark = sc.next()",
"mark",
"sc.next()",
"sc.next",
"sc",
"num = sc.nextInt()",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"switch (mark) {\n\n\t\t\tcase \"S\":\n\t\t\t\tcard[0][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"H\":\n\t\t\t\tcard[1][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"C\":\n\t\t\t\tcard[2][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"D\":\n\t\t\t\tcard[3][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\t}",
"mark",
"case \"S\":",
"\"S\"",
"case \"S\":",
"card[0][num - 1] = 1",
"card[0][num - 1]",
"card[0]",
"card",
"0",
"num - 1",
"num",
"1",
"1",
"break;",
"case \"H\":",
"\"H\"",
"case \"H\":",
"card[1][num - 1] = 1",
"card[1][num - 1]",
"card[1]",
"card",
"1",
"num - 1",
"num",
"1",
"1",
"break;",
"case \"C\":",
"\"C\"",
"case \"C\":",
"card[2][num - 1] = 1",
"card[2][num - 1]",
"card[2]",
"card",
"2",
"num - 1",
"num",
"1",
"1",
"break;",
"case \"D\":",
"\"D\"",
"case \"D\":",
"card[3][num - 1] = 1",
"card[3][num - 1]",
"card[3]",
"card",
"3",
"num - 1",
"num",
"1",
"1",
"break;",
"int left",
"left",
"right;",
"right",
"for (left = 0; left <= 3; left++) {\n\n\t\t\tfor (right = 0; right <= 12; right++) {\n\n\t\t\t\tif (card[left][right] == 0) {\n\n\t\t\t\t\tswitch (left) {\n\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (right+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}",
"left = 0;",
"left = 0",
"left",
"0",
"left <= 3",
"left",
"3",
"left++",
"left++",
"left",
"{\n\n\t\t\tfor (right = 0; right <= 12; right++) {\n\n\t\t\t\tif (card[left][right] == 0) {\n\n\t\t\t\t\tswitch (left) {\n\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (right+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}",
"{\n\n\t\t\tfor (right = 0; right <= 12; right++) {\n\n\t\t\t\tif (card[left][right] == 0) {\n\n\t\t\t\t\tswitch (left) {\n\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (right+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}",
"for (right = 0; right <= 12; right++) {\n\n\t\t\t\tif (card[left][right] == 0) {\n\n\t\t\t\t\tswitch (left) {\n\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (right+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}",
"right = 0;",
"right = 0",
"right",
"0",
"right <= 12",
"right",
"12",
"right++",
"right++",
"right",
"{\n\n\t\t\t\tif (card[left][right] == 0) {\n\n\t\t\t\t\tswitch (left) {\n\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (right+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}",
"{\n\n\t\t\t\tif (card[left][right] == 0) {\n\n\t\t\t\t\tswitch (left) {\n\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (right+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}",
"if (card[left][right] == 0) {\n\n\t\t\t\t\tswitch (left) {\n\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (right+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}",
"card[left][right] == 0",
"card[left][right]",
"card[left]",
"card",
"left",
"right",
"0",
"{\n\n\t\t\t\t\tswitch (left) {\n\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (right+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}",
"switch (left) {\n\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (right+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"left",
"case 0:",
"0",
"case 0:",
"System.out.println(\"S \" + (right+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"S \" + (right+1)",
"\"S \"",
"(right+1)",
"right",
"1",
"break;",
"case 1:",
"1",
"case 1:",
"System.out.println(\"H \" + (right+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"H \" + (right+1)",
"\"H \"",
"(right+1)",
"right",
"1",
"break;",
"case 2:",
"2",
"case 2:",
"System.out.println(\"C \" + (right+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"C \" + (right+1)",
"\"C \"",
"(right+1)",
"right",
"1",
"break;",
"case 3:",
"3",
"case 3:",
"System.out.println(\"D \" + (right+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"D \" + (right+1)",
"\"D \"",
"(right+1)",
"right",
"1",
"break;",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// ?????????????????\\????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// ??\\?????°????????????????????°\n\t\tint input = sc.nextInt();\n\n\t\t// ???????????????\n\t\tint[][] card = new int[4][13];\n\n\t\t// ?????°????????????????????????????????°????????????\n\t\tString mark;\n\t\tint num;\n\n\t\t// ?????????????????°?????????\n\t\tint cnt;\n\n\t\t// ??????????????????????????????\n\t\tfor (cnt = 0; cnt < input; cnt++) {\n\n\t\t\tmark = sc.next();\n\t\t\tnum = sc.nextInt();\n\n\t\t\tswitch (mark) {\n\n\t\t\tcase \"S\":\n\t\t\t\tcard[0][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"H\":\n\t\t\t\tcard[1][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"C\":\n\t\t\t\tcard[2][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"D\":\n\t\t\t\tcard[3][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\t// ?????????????´¢??????????????????????????°?????????\n\t\tint left, right;\n\n\t\t// ???????????????????????\\????????????\n\t\tfor (left = 0; left <= 3; left++) {\n\n\t\t\tfor (right = 0; right <= 12; right++) {\n\n\t\t\t\tif (card[left][right] == 0) {\n\n\t\t\t\t\tswitch (left) {\n\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (right+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// ?????????????????\\????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// ??\\?????°????????????????????°\n\t\tint input = sc.nextInt();\n\n\t\t// ???????????????\n\t\tint[][] card = new int[4][13];\n\n\t\t// ?????°????????????????????????????????°????????????\n\t\tString mark;\n\t\tint num;\n\n\t\t// ?????????????????°?????????\n\t\tint cnt;\n\n\t\t// ??????????????????????????????\n\t\tfor (cnt = 0; cnt < input; cnt++) {\n\n\t\t\tmark = sc.next();\n\t\t\tnum = sc.nextInt();\n\n\t\t\tswitch (mark) {\n\n\t\t\tcase \"S\":\n\t\t\t\tcard[0][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"H\":\n\t\t\t\tcard[1][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"C\":\n\t\t\t\tcard[2][num - 1] = 1;\n\t\t\t\tbreak;\n\n\t\t\tcase \"D\":\n\t\t\t\tcard[3][num - 1] = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\t// ?????????????´¢??????????????????????????°?????????\n\t\tint left, right;\n\n\t\t// ???????????????????????\\????????????\n\t\tfor (left = 0; left <= 3; left++) {\n\n\t\t\tfor (right = 0; right <= 12; right++) {\n\n\t\t\t\tif (card[left][right] == 0) {\n\n\t\t\t\t\tswitch (left) {\n\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tSystem.out.println(\"S \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tSystem.out.println(\"H \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tSystem.out.println(\"C \" + (right+1));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tSystem.out.println(\"D \" + (right+1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\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 input = sc.nextInt();
// ???????????????
int[][] card = new int[4][13];
// ?????°????????????????????????????????°????????????
String mark;
int num;
// ?????????????????°?????????
int cnt;
// ??????????????????????????????
for (cnt = 0; cnt < input; cnt++) {
mark = sc.next();
num = sc.nextInt();
switch (mark) {
case "S":
card[0][num - 1] = 1;
break;
case "H":
card[1][num - 1] = 1;
break;
case "C":
card[2][num - 1] = 1;
break;
case "D":
card[3][num - 1] = 1;
break;
}
}
// ?????????????´¢??????????????????????????°?????????
int left, right;
// ???????????????????????\????????????
for (left = 0; left <= 3; left++) {
for (right = 0; right <= 12; right++) {
if (card[left][right] == 0) {
switch (left) {
case 0:
System.out.println("S " + (right+1));
break;
case 1:
System.out.println("H " + (right+1));
break;
case 2:
System.out.println("C " + (right+1));
break;
case 3:
System.out.println("D " + (right+1));
break;
}
}
}
}
sc.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
38,
30,
41,
13,
20,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
20,
41,
13,
20,
17,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
14,
13,
30,
0,
13,
4,
18,
13,
13,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
0,
13,
17,
30,
41,
13,
4,
18,
13,
17,
14,
4,
18,
18,
13,
17,
17,
30,
0,
18,
18,
13,
17,
4,
18,
13,
18,
13,
17,
17,
14,
4,
18,
18,
13,
17,
17,
30,
0,
18,
18,
13,
17,
4,
18,
13,
18,
13,
17,
17,
14,
4,
18,
18,
13,
17,
17,
30,
0,
18,
18,
13,
17,
4,
18,
13,
18,
13,
17,
17,
14,
4,
18,
18,
13,
17,
17,
30,
0,
18,
18,
13,
17,
4,
18,
13,
18,
13,
17,
17,
40,
13,
14,
2,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
3,
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
],
[
231,
14
],
[
231,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
22,
28
],
[
28,
29
],
[
28,
30
],
[
22,
31
],
[
31,
32
],
[
31,
33
],
[
22,
34
],
[
34,
35
],
[
34,
36
],
[
22,
37
],
[
37,
38
],
[
37,
39
],
[
22,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
43,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
53,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
60,
64
],
[
53,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
65,
69
],
[
53,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
70,
74
],
[
53,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
75,
79
],
[
53,
80
],
[
80,
81
],
[
80,
82
],
[
51,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
83,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
90,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
106,
107
],
[
106,
108
],
[
98,
109
],
[
90,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
110,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
126,
127
],
[
126,
128
],
[
118,
129
],
[
110,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
130,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
143,
144
],
[
144,
145
],
[
143,
146
],
[
146,
147
],
[
146,
148
],
[
138,
149
],
[
130,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
150,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
163,
164
],
[
164,
165
],
[
163,
166
],
[
166,
167
],
[
166,
168
],
[
158,
169
],
[
83,
170
],
[
170,
171
],
[
83,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
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
],
[
192,
193
],
[
193,
194
],
[
192,
195
],
[
189,
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
],
[
212,
213
],
[
212,
214
],
[
211,
215
],
[
209,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
217,
222
],
[
223,
223
],
[
223,
224
],
[
223,
225
],
[
223,
226
],
[
176,
227
],
[
15,
228
],
[
228,
229
],
[
0,
230
],
[
230,
231
],
[
230,
232
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.HashMap;\nimport java.util.Map;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n boolean first=true;\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int i=0,n=0;\n Map<Integer,String> map=new HashMap<Integer,String>();\n boolean[][] card=new boolean[4][14];\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tmap.put(0, \"S\");\n \t\tmap.put(1, \"H\");\n \t\tmap.put(2, \"C\");\n \t\tmap.put(3, \"D\");\n \t\tfirst=false;\n \t}else{\n \t\tString[] str=line.split(\" \");\n \t\tif(str[0].equals(\"S\")){\n \t\t\tcard[0][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"H\")){\n \t\t\tcard[1][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"C\")){\n \t\t\tcard[2][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"D\")){\n \t\t\tcard[3][Integer.parseInt(str[1])]=true;\n \t\t}\n \t\ti++;\n \t\tif(i==n){\n \t\t\tfor(int j=0;j<4;j++){\n \t\t\t\tString a=map.get(j);\n \t\t\t\tfor(int l=1;l<14;l++){\n \t\t\t\t\tif(!card[j][l]){\n \t\t\t\t\t\tSystem.out.println(a+\" \"+l);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tbreak;\n \t\t}\n \t\n \t}\n }\n }\n }\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.Map;",
"Map",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n boolean first=true;\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int i=0,n=0;\n Map<Integer,String> map=new HashMap<Integer,String>();\n boolean[][] card=new boolean[4][14];\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tmap.put(0, \"S\");\n \t\tmap.put(1, \"H\");\n \t\tmap.put(2, \"C\");\n \t\tmap.put(3, \"D\");\n \t\tfirst=false;\n \t}else{\n \t\tString[] str=line.split(\" \");\n \t\tif(str[0].equals(\"S\")){\n \t\t\tcard[0][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"H\")){\n \t\t\tcard[1][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"C\")){\n \t\t\tcard[2][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"D\")){\n \t\t\tcard[3][Integer.parseInt(str[1])]=true;\n \t\t}\n \t\ti++;\n \t\tif(i==n){\n \t\t\tfor(int j=0;j<4;j++){\n \t\t\t\tString a=map.get(j);\n \t\t\t\tfor(int l=1;l<14;l++){\n \t\t\t\t\tif(!card[j][l]){\n \t\t\t\t\t\tSystem.out.println(a+\" \"+l);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tbreak;\n \t\t}\n \t\n \t}\n }\n }\n }\n\n}",
"Main",
"public static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n boolean first=true;\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int i=0,n=0;\n Map<Integer,String> map=new HashMap<Integer,String>();\n boolean[][] card=new boolean[4][14];\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tmap.put(0, \"S\");\n \t\tmap.put(1, \"H\");\n \t\tmap.put(2, \"C\");\n \t\tmap.put(3, \"D\");\n \t\tfirst=false;\n \t}else{\n \t\tString[] str=line.split(\" \");\n \t\tif(str[0].equals(\"S\")){\n \t\t\tcard[0][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"H\")){\n \t\t\tcard[1][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"C\")){\n \t\t\tcard[2][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"D\")){\n \t\t\tcard[3][Integer.parseInt(str[1])]=true;\n \t\t}\n \t\ti++;\n \t\tif(i==n){\n \t\t\tfor(int j=0;j<4;j++){\n \t\t\t\tString a=map.get(j);\n \t\t\t\tfor(int l=1;l<14;l++){\n \t\t\t\t\tif(!card[j][l]){\n \t\t\t\t\t\tSystem.out.println(a+\" \"+l);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tbreak;\n \t\t}\n \t\n \t}\n }\n }\n }",
"main",
"{\n // TODO ?????????????????????????????????????????????\n \n boolean first=true;\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int i=0,n=0;\n Map<Integer,String> map=new HashMap<Integer,String>();\n boolean[][] card=new boolean[4][14];\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tmap.put(0, \"S\");\n \t\tmap.put(1, \"H\");\n \t\tmap.put(2, \"C\");\n \t\tmap.put(3, \"D\");\n \t\tfirst=false;\n \t}else{\n \t\tString[] str=line.split(\" \");\n \t\tif(str[0].equals(\"S\")){\n \t\t\tcard[0][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"H\")){\n \t\t\tcard[1][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"C\")){\n \t\t\tcard[2][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"D\")){\n \t\t\tcard[3][Integer.parseInt(str[1])]=true;\n \t\t}\n \t\ti++;\n \t\tif(i==n){\n \t\t\tfor(int j=0;j<4;j++){\n \t\t\t\tString a=map.get(j);\n \t\t\t\tfor(int l=1;l<14;l++){\n \t\t\t\t\tif(!card[j][l]){\n \t\t\t\t\t\tSystem.out.println(a+\" \"+l);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tbreak;\n \t\t}\n \t\n \t}\n }\n }\n }",
"boolean first=true;",
"first",
"true",
"try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int i=0,n=0;\n Map<Integer,String> map=new HashMap<Integer,String>();\n boolean[][] card=new boolean[4][14];\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tmap.put(0, \"S\");\n \t\tmap.put(1, \"H\");\n \t\tmap.put(2, \"C\");\n \t\tmap.put(3, \"D\");\n \t\tfirst=false;\n \t}else{\n \t\tString[] str=line.split(\" \");\n \t\tif(str[0].equals(\"S\")){\n \t\t\tcard[0][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"H\")){\n \t\t\tcard[1][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"C\")){\n \t\t\tcard[2][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"D\")){\n \t\t\tcard[3][Integer.parseInt(str[1])]=true;\n \t\t}\n \t\ti++;\n \t\tif(i==n){\n \t\t\tfor(int j=0;j<4;j++){\n \t\t\t\tString a=map.get(j);\n \t\t\t\tfor(int l=1;l<14;l++){\n \t\t\t\t\tif(!card[j][l]){\n \t\t\t\t\t\tSystem.out.println(a+\" \"+l);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tbreak;\n \t\t}\n \t\n \t}\n }\n }",
"{\n String line;\n int i=0,n=0;\n Map<Integer,String> map=new HashMap<Integer,String>();\n boolean[][] card=new boolean[4][14];\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tmap.put(0, \"S\");\n \t\tmap.put(1, \"H\");\n \t\tmap.put(2, \"C\");\n \t\tmap.put(3, \"D\");\n \t\tfirst=false;\n \t}else{\n \t\tString[] str=line.split(\" \");\n \t\tif(str[0].equals(\"S\")){\n \t\t\tcard[0][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"H\")){\n \t\t\tcard[1][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"C\")){\n \t\t\tcard[2][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"D\")){\n \t\t\tcard[3][Integer.parseInt(str[1])]=true;\n \t\t}\n \t\ti++;\n \t\tif(i==n){\n \t\t\tfor(int j=0;j<4;j++){\n \t\t\t\tString a=map.get(j);\n \t\t\t\tfor(int l=1;l<14;l++){\n \t\t\t\t\tif(!card[j][l]){\n \t\t\t\t\t\tSystem.out.println(a+\" \"+l);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tbreak;\n \t\t}\n \t\n \t}\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in))",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in))",
"new BufferedReader(new InputStreamReader(System.in))",
"String line;",
"line",
"int i=0",
"i",
"0",
"n=0;",
"n",
"0",
"Map<Integer,String> map=new HashMap<Integer,String>();",
"map",
"new HashMap<Integer,String>()",
"boolean[][] card=new boolean[4][14];",
"card",
"new boolean[4][14]",
"4",
"14",
"while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tmap.put(0, \"S\");\n \t\tmap.put(1, \"H\");\n \t\tmap.put(2, \"C\");\n \t\tmap.put(3, \"D\");\n \t\tfirst=false;\n \t}else{\n \t\tString[] str=line.split(\" \");\n \t\tif(str[0].equals(\"S\")){\n \t\t\tcard[0][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"H\")){\n \t\t\tcard[1][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"C\")){\n \t\t\tcard[2][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"D\")){\n \t\t\tcard[3][Integer.parseInt(str[1])]=true;\n \t\t}\n \t\ti++;\n \t\tif(i==n){\n \t\t\tfor(int j=0;j<4;j++){\n \t\t\t\tString a=map.get(j);\n \t\t\t\tfor(int l=1;l<14;l++){\n \t\t\t\t\tif(!card[j][l]){\n \t\t\t\t\t\tSystem.out.println(a+\" \"+l);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tbreak;\n \t\t}\n \t\n \t}\n }",
"(line = br.readLine()) != null",
"(line = br.readLine())",
"line",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tmap.put(0, \"S\");\n \t\tmap.put(1, \"H\");\n \t\tmap.put(2, \"C\");\n \t\tmap.put(3, \"D\");\n \t\tfirst=false;\n \t}else{\n \t\tString[] str=line.split(\" \");\n \t\tif(str[0].equals(\"S\")){\n \t\t\tcard[0][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"H\")){\n \t\t\tcard[1][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"C\")){\n \t\t\tcard[2][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"D\")){\n \t\t\tcard[3][Integer.parseInt(str[1])]=true;\n \t\t}\n \t\ti++;\n \t\tif(i==n){\n \t\t\tfor(int j=0;j<4;j++){\n \t\t\t\tString a=map.get(j);\n \t\t\t\tfor(int l=1;l<14;l++){\n \t\t\t\t\tif(!card[j][l]){\n \t\t\t\t\t\tSystem.out.println(a+\" \"+l);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tbreak;\n \t\t}\n \t\n \t}\n }",
"if(first){\n \t\tn=Integer.parseInt(line);\n \t\tmap.put(0, \"S\");\n \t\tmap.put(1, \"H\");\n \t\tmap.put(2, \"C\");\n \t\tmap.put(3, \"D\");\n \t\tfirst=false;\n \t}else{\n \t\tString[] str=line.split(\" \");\n \t\tif(str[0].equals(\"S\")){\n \t\t\tcard[0][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"H\")){\n \t\t\tcard[1][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"C\")){\n \t\t\tcard[2][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"D\")){\n \t\t\tcard[3][Integer.parseInt(str[1])]=true;\n \t\t}\n \t\ti++;\n \t\tif(i==n){\n \t\t\tfor(int j=0;j<4;j++){\n \t\t\t\tString a=map.get(j);\n \t\t\t\tfor(int l=1;l<14;l++){\n \t\t\t\t\tif(!card[j][l]){\n \t\t\t\t\t\tSystem.out.println(a+\" \"+l);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tbreak;\n \t\t}\n \t\n \t}",
"first",
"{\n \t\tn=Integer.parseInt(line);\n \t\tmap.put(0, \"S\");\n \t\tmap.put(1, \"H\");\n \t\tmap.put(2, \"C\");\n \t\tmap.put(3, \"D\");\n \t\tfirst=false;\n \t}",
"n=Integer.parseInt(line)",
"n",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"map.put(0, \"S\")",
"map.put",
"map",
"0",
"\"S\"",
"map.put(1, \"H\")",
"map.put",
"map",
"1",
"\"H\"",
"map.put(2, \"C\")",
"map.put",
"map",
"2",
"\"C\"",
"map.put(3, \"D\")",
"map.put",
"map",
"3",
"\"D\"",
"first=false",
"first",
"false",
"{\n \t\tString[] str=line.split(\" \");\n \t\tif(str[0].equals(\"S\")){\n \t\t\tcard[0][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"H\")){\n \t\t\tcard[1][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"C\")){\n \t\t\tcard[2][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"D\")){\n \t\t\tcard[3][Integer.parseInt(str[1])]=true;\n \t\t}\n \t\ti++;\n \t\tif(i==n){\n \t\t\tfor(int j=0;j<4;j++){\n \t\t\t\tString a=map.get(j);\n \t\t\t\tfor(int l=1;l<14;l++){\n \t\t\t\t\tif(!card[j][l]){\n \t\t\t\t\t\tSystem.out.println(a+\" \"+l);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tbreak;\n \t\t}\n \t\n \t}",
"String[] str=line.split(\" \");",
"str",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"if(str[0].equals(\"S\")){\n \t\t\tcard[0][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"H\")){\n \t\t\tcard[1][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"C\")){\n \t\t\tcard[2][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"D\")){\n \t\t\tcard[3][Integer.parseInt(str[1])]=true;\n \t\t}",
"str[0].equals(\"S\")",
"str[0].equals",
"str[0]",
"str",
"0",
"\"S\"",
"{\n \t\t\tcard[0][Integer.parseInt(str[1])]=true;\n \t\t}",
"card[0][Integer.parseInt(str[1])]=true",
"card[0][Integer.parseInt(str[1])]",
"card[0]",
"card",
"0",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"true",
"if(str[0].equals(\"H\")){\n \t\t\tcard[1][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"C\")){\n \t\t\tcard[2][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"D\")){\n \t\t\tcard[3][Integer.parseInt(str[1])]=true;\n \t\t}",
"str[0].equals(\"H\")",
"str[0].equals",
"str[0]",
"str",
"0",
"\"H\"",
"{\n \t\t\tcard[1][Integer.parseInt(str[1])]=true;\n \t\t}",
"card[1][Integer.parseInt(str[1])]=true",
"card[1][Integer.parseInt(str[1])]",
"card[1]",
"card",
"1",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"true",
"if(str[0].equals(\"C\")){\n \t\t\tcard[2][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"D\")){\n \t\t\tcard[3][Integer.parseInt(str[1])]=true;\n \t\t}",
"str[0].equals(\"C\")",
"str[0].equals",
"str[0]",
"str",
"0",
"\"C\"",
"{\n \t\t\tcard[2][Integer.parseInt(str[1])]=true;\n \t\t}",
"card[2][Integer.parseInt(str[1])]=true",
"card[2][Integer.parseInt(str[1])]",
"card[2]",
"card",
"2",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"true",
"if(str[0].equals(\"D\")){\n \t\t\tcard[3][Integer.parseInt(str[1])]=true;\n \t\t}",
"str[0].equals(\"D\")",
"str[0].equals",
"str[0]",
"str",
"0",
"\"D\"",
"{\n \t\t\tcard[3][Integer.parseInt(str[1])]=true;\n \t\t}",
"card[3][Integer.parseInt(str[1])]=true",
"card[3][Integer.parseInt(str[1])]",
"card[3]",
"card",
"3",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"true",
"i++",
"i",
"if(i==n){\n \t\t\tfor(int j=0;j<4;j++){\n \t\t\t\tString a=map.get(j);\n \t\t\t\tfor(int l=1;l<14;l++){\n \t\t\t\t\tif(!card[j][l]){\n \t\t\t\t\t\tSystem.out.println(a+\" \"+l);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tbreak;\n \t\t}",
"i==n",
"i",
"n",
"{\n \t\t\tfor(int j=0;j<4;j++){\n \t\t\t\tString a=map.get(j);\n \t\t\t\tfor(int l=1;l<14;l++){\n \t\t\t\t\tif(!card[j][l]){\n \t\t\t\t\t\tSystem.out.println(a+\" \"+l);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tbreak;\n \t\t}",
"for(int j=0;j<4;j++){\n \t\t\t\tString a=map.get(j);\n \t\t\t\tfor(int l=1;l<14;l++){\n \t\t\t\t\tif(!card[j][l]){\n \t\t\t\t\t\tSystem.out.println(a+\" \"+l);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<4",
"j",
"4",
"j++",
"j++",
"j",
"{\n \t\t\t\tString a=map.get(j);\n \t\t\t\tfor(int l=1;l<14;l++){\n \t\t\t\t\tif(!card[j][l]){\n \t\t\t\t\t\tSystem.out.println(a+\" \"+l);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}",
"{\n \t\t\t\tString a=map.get(j);\n \t\t\t\tfor(int l=1;l<14;l++){\n \t\t\t\t\tif(!card[j][l]){\n \t\t\t\t\t\tSystem.out.println(a+\" \"+l);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}",
"String a=map.get(j);",
"a",
"map.get(j)",
"map.get",
"map",
"j",
"for(int l=1;l<14;l++){\n \t\t\t\t\tif(!card[j][l]){\n \t\t\t\t\t\tSystem.out.println(a+\" \"+l);\n \t\t\t\t\t}\n \t\t\t\t}",
"int l=1;",
"int l=1;",
"l",
"1",
"l<14",
"l",
"14",
"l++",
"l++",
"l",
"{\n \t\t\t\t\tif(!card[j][l]){\n \t\t\t\t\t\tSystem.out.println(a+\" \"+l);\n \t\t\t\t\t}\n \t\t\t\t}",
"{\n \t\t\t\t\tif(!card[j][l]){\n \t\t\t\t\t\tSystem.out.println(a+\" \"+l);\n \t\t\t\t\t}\n \t\t\t\t}",
"if(!card[j][l]){\n \t\t\t\t\t\tSystem.out.println(a+\" \"+l);\n \t\t\t\t\t}",
"!card[j][l]",
"card[j][l]",
"card[j]",
"card",
"j",
"l",
"{\n \t\t\t\t\t\tSystem.out.println(a+\" \"+l);\n \t\t\t\t\t}",
"System.out.println(a+\" \"+l)",
"System.out.println",
"System.out",
"System",
"System.out",
"a+\" \"+l",
"a+\" \"+l",
"a",
"\" \"",
"l",
"break;",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n boolean first=true;\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int i=0,n=0;\n Map<Integer,String> map=new HashMap<Integer,String>();\n boolean[][] card=new boolean[4][14];\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tmap.put(0, \"S\");\n \t\tmap.put(1, \"H\");\n \t\tmap.put(2, \"C\");\n \t\tmap.put(3, \"D\");\n \t\tfirst=false;\n \t}else{\n \t\tString[] str=line.split(\" \");\n \t\tif(str[0].equals(\"S\")){\n \t\t\tcard[0][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"H\")){\n \t\t\tcard[1][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"C\")){\n \t\t\tcard[2][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"D\")){\n \t\t\tcard[3][Integer.parseInt(str[1])]=true;\n \t\t}\n \t\ti++;\n \t\tif(i==n){\n \t\t\tfor(int j=0;j<4;j++){\n \t\t\t\tString a=map.get(j);\n \t\t\t\tfor(int l=1;l<14;l++){\n \t\t\t\t\tif(!card[j][l]){\n \t\t\t\t\t\tSystem.out.println(a+\" \"+l);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tbreak;\n \t\t}\n \t\n \t}\n }\n }\n }\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n boolean first=true;\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int i=0,n=0;\n Map<Integer,String> map=new HashMap<Integer,String>();\n boolean[][] card=new boolean[4][14];\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tmap.put(0, \"S\");\n \t\tmap.put(1, \"H\");\n \t\tmap.put(2, \"C\");\n \t\tmap.put(3, \"D\");\n \t\tfirst=false;\n \t}else{\n \t\tString[] str=line.split(\" \");\n \t\tif(str[0].equals(\"S\")){\n \t\t\tcard[0][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"H\")){\n \t\t\tcard[1][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"C\")){\n \t\t\tcard[2][Integer.parseInt(str[1])]=true;\n \t\t}else if(str[0].equals(\"D\")){\n \t\t\tcard[3][Integer.parseInt(str[1])]=true;\n \t\t}\n \t\ti++;\n \t\tif(i==n){\n \t\t\tfor(int j=0;j<4;j++){\n \t\t\t\tString a=map.get(j);\n \t\t\t\tfor(int l=1;l<14;l++){\n \t\t\t\t\tif(!card[j][l]){\n \t\t\t\t\t\tSystem.out.println(a+\" \"+l);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tbreak;\n \t\t}\n \t\n \t}\n }\n }\n }\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
public class Main {
public static void main(String[] args) throws Exception {
// TODO ?????????????????????????????????????????????
boolean first=true;
try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
String line;
int i=0,n=0;
Map<Integer,String> map=new HashMap<Integer,String>();
boolean[][] card=new boolean[4][14];
while ((line = br.readLine()) != null) {
if(first){
n=Integer.parseInt(line);
map.put(0, "S");
map.put(1, "H");
map.put(2, "C");
map.put(3, "D");
first=false;
}else{
String[] str=line.split(" ");
if(str[0].equals("S")){
card[0][Integer.parseInt(str[1])]=true;
}else if(str[0].equals("H")){
card[1][Integer.parseInt(str[1])]=true;
}else if(str[0].equals("C")){
card[2][Integer.parseInt(str[1])]=true;
}else if(str[0].equals("D")){
card[3][Integer.parseInt(str[1])]=true;
}
i++;
if(i==n){
for(int j=0;j<4;j++){
String a=map.get(j);
for(int l=1;l<14;l++){
if(!card[j][l]){
System.out.println(a+" "+l);
}
}
}
break;
}
}
}
}
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.