node_ids
listlengths 4
1.4k
| edge_index
listlengths 1
2.22k
| text
listlengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
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,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
28,
13,
13,
30,
30,
40,
18,
13,
2,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
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
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
44,
46
],
[
38,
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
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
66,
67
],
[
38,
68
],
[
68,
69
],
[
68,
70
],
[
68,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
8,
79
],
[
79,
80
],
[
79,
81
],
[
8,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
82,
90
],
[
90,
91
],
[
91,
92
],
[
82,
93
],
[
94,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
95,
101
],
[
101,
102
],
[
102,
103
],
[
8,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
6,
110
],
[
110,
111
]
] |
[
"import java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] cnt = new int[N];\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n int[] ary = new int[d];\n for (int j = 0; j < d; j++) {\n ary[j] = sc.nextInt();\n }\n for (int v : ary) {\n cnt[v-1]++;\n }\n }\n int ans = 0;\n for (int x = 0; x < N; x++) {\n if (cnt[x] == 0) {\n ans++;\n }\n }\n System.out.println(ans);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] cnt = new int[N];\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n int[] ary = new int[d];\n for (int j = 0; j < d; j++) {\n ary[j] = sc.nextInt();\n }\n for (int v : ary) {\n cnt[v-1]++;\n }\n }\n int ans = 0;\n for (int x = 0; x < N; x++) {\n if (cnt[x] == 0) {\n ans++;\n }\n }\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] cnt = new int[N];\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n int[] ary = new int[d];\n for (int j = 0; j < d; j++) {\n ary[j] = sc.nextInt();\n }\n for (int v : ary) {\n cnt[v-1]++;\n }\n }\n int ans = 0;\n for (int x = 0; x < N; x++) {\n if (cnt[x] == 0) {\n ans++;\n }\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] cnt = new int[N];\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n int[] ary = new int[d];\n for (int j = 0; j < d; j++) {\n ary[j] = sc.nextInt();\n }\n for (int v : ary) {\n cnt[v-1]++;\n }\n }\n int ans = 0;\n for (int x = 0; x < N; x++) {\n if (cnt[x] == 0) {\n ans++;\n }\n }\n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] cnt = new int[N];",
"cnt",
"new int[N]",
"N",
"for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n int[] ary = new int[d];\n for (int j = 0; j < d; j++) {\n ary[j] = sc.nextInt();\n }\n for (int v : ary) {\n cnt[v-1]++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < K",
"i",
"K",
"i++",
"i++",
"i",
"{\n int d = sc.nextInt();\n int[] ary = new int[d];\n for (int j = 0; j < d; j++) {\n ary[j] = sc.nextInt();\n }\n for (int v : ary) {\n cnt[v-1]++;\n }\n }",
"{\n int d = sc.nextInt();\n int[] ary = new int[d];\n for (int j = 0; j < d; j++) {\n ary[j] = sc.nextInt();\n }\n for (int v : ary) {\n cnt[v-1]++;\n }\n }",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] ary = new int[d];",
"ary",
"new int[d]",
"d",
"for (int j = 0; j < d; j++) {\n ary[j] = sc.nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < d",
"j",
"d",
"j++",
"j++",
"j",
"{\n ary[j] = sc.nextInt();\n }",
"{\n ary[j] = sc.nextInt();\n }",
"ary[j] = sc.nextInt()",
"ary[j]",
"ary",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int v : ary) {\n cnt[v-1]++;\n }",
"int v",
"ary",
"{\n cnt[v-1]++;\n }",
"{\n cnt[v-1]++;\n }",
"cnt[v-1]++",
"cnt[v-1]",
"cnt",
"v-1",
"v",
"1",
"int ans = 0;",
"ans",
"0",
"for (int x = 0; x < N; x++) {\n if (cnt[x] == 0) {\n ans++;\n }\n }",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < N",
"x",
"N",
"x++",
"x++",
"x",
"{\n if (cnt[x] == 0) {\n ans++;\n }\n }",
"{\n if (cnt[x] == 0) {\n ans++;\n }\n }",
"if (cnt[x] == 0) {\n ans++;\n }",
"cnt[x] == 0",
"cnt[x]",
"cnt",
"x",
"0",
"{\n ans++;\n }",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args"
] |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int K = sc.nextInt();
int[] cnt = new int[N];
for (int i = 0; i < K; i++) {
int d = sc.nextInt();
int[] ary = new int[d];
for (int j = 0; j < d; j++) {
ary[j] = sc.nextInt();
}
for (int v : ary) {
cnt[v-1]++;
}
}
int ans = 0;
for (int x = 0; x < N; x++) {
if (cnt[x] == 0) {
ans++;
}
}
System.out.println(ans);
}
}
|
[
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,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
13,
4,
18,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
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
],
[
43,
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
],
[
65,
66
],
[
66,
67
],
[
14,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
12,
78
],
[
78,
79
]
] |
[
"import java.util.HashSet;\nimport java.util.Scanner;\nimport java.util.Set;\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tSet<Integer> set = new HashSet<>();\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\t\tfor(int i = 0; i < k; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tfor(int j = 0; j <a;j++) {\n\t\t\t\tset.add(sc.nextInt());\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(n-set.size());\n\t}\n}",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tSet<Integer> set = new HashSet<>();\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\t\tfor(int i = 0; i < k; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tfor(int j = 0; j <a;j++) {\n\t\t\t\tset.add(sc.nextInt());\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(n-set.size());\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tSet<Integer> set = new HashSet<>();\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\t\tfor(int i = 0; i < k; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tfor(int j = 0; j <a;j++) {\n\t\t\t\tset.add(sc.nextInt());\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(n-set.size());\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tSet<Integer> set = new HashSet<>();\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\t\tfor(int i = 0; i < k; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tfor(int j = 0; j <a;j++) {\n\t\t\t\tset.add(sc.nextInt());\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(n-set.size());\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"Set<Integer> set = new HashSet<>();",
"set",
"new HashSet<>()",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < k; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tfor(int j = 0; j <a;j++) {\n\t\t\t\tset.add(sc.nextInt());\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"{\n\t\t\tint a = sc.nextInt();\n\t\t\tfor(int j = 0; j <a;j++) {\n\t\t\t\tset.add(sc.nextInt());\n\t\t\t}\n\t\t}",
"{\n\t\t\tint a = sc.nextInt();\n\t\t\tfor(int j = 0; j <a;j++) {\n\t\t\t\tset.add(sc.nextInt());\n\t\t\t}\n\t\t}",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j = 0; j <a;j++) {\n\t\t\t\tset.add(sc.nextInt());\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j <a",
"j",
"a",
"j++",
"j++",
"j",
"{\n\t\t\t\tset.add(sc.nextInt());\n\t\t\t}",
"{\n\t\t\t\tset.add(sc.nextInt());\n\t\t\t}",
"set.add(sc.nextInt())",
"set.add",
"set",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println(n-set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"n-set.size()",
"n",
"set.size()",
"set.size",
"set",
"String[] args",
"args"
] |
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
Set<Integer> set = new HashSet<>();
int n = sc.nextInt();
int k = sc.nextInt();
for(int i = 0; i < k; i++) {
int a = sc.nextInt();
for(int j = 0; j <a;j++) {
set.add(sc.nextInt());
}
}
System.out.println(n-set.size());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
12,
13,
30,
41,
13,
20,
0,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
40,
18,
13,
2,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
14,
2,
18,
13,
13,
17,
40,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
4,
13,
17,
12,
13,
30,
29,
4,
18,
13,
4,
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,
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,
29,
4,
18,
13,
12,
13,
30,
4,
18,
13,
17,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
285,
8
],
[
285,
9
],
[
9,
10
],
[
285,
11
],
[
11,
12
],
[
285,
13
],
[
13,
14
],
[
285,
15
],
[
15,
16
],
[
285,
17
],
[
17,
18
],
[
285,
19
],
[
19,
20
],
[
19,
21
],
[
285,
22
],
[
22,
23
],
[
285,
24
],
[
24,
25
],
[
285,
26
],
[
26,
27
],
[
285,
28
],
[
28,
29
],
[
285,
30
],
[
30,
31
],
[
30,
32
],
[
285,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
39,
41
],
[
35,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
35,
47
],
[
47,
48
],
[
47,
49
],
[
35,
51
],
[
51,
52
],
[
51,
53
],
[
35,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
35,
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
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
92,
96
],
[
35,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
97,
105
],
[
105,
106
],
[
106,
107
],
[
97,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
109,
115
],
[
115,
116
],
[
35,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
35,
123
],
[
123,
124
],
[
124,
125
],
[
33,
126
],
[
126,
127
],
[
285,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
128,
132
],
[
132,
133
],
[
128,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
134,
140
],
[
140,
141
],
[
128,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
142,
148
],
[
148,
149
],
[
128,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
153,
162
],
[
162,
163
],
[
162,
164
],
[
152,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
128,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
128,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
180,
183
],
[
183,
184
],
[
128,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
189,
192
],
[
192,
193
],
[
128,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
198,
202
],
[
128,
203
],
[
203,
204
],
[
203,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
207,
210
],
[
210,
211
],
[
128,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
214,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
219,
224
],
[
224,
225
],
[
224,
226
],
[
219,
227
],
[
227,
228
],
[
228,
229
],
[
219,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
231,
235
],
[
235,
236
],
[
214,
237
],
[
237,
238
],
[
212,
239
],
[
239,
240
],
[
128,
241
],
[
241,
242
],
[
241,
243
],
[
243,
244
],
[
244,
245
],
[
244,
246
],
[
243,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
248,
253
],
[
253,
254
],
[
253,
255
],
[
248,
256
],
[
256,
257
],
[
257,
258
],
[
248,
259
],
[
259,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
260,
264
],
[
264,
265
],
[
243,
266
],
[
266,
267
],
[
241,
268
],
[
268,
269
],
[
128,
270
],
[
270,
271
],
[
270,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
275,
276
],
[
128,
277
],
[
277,
278
],
[
277,
279
],
[
279,
280
],
[
280,
281
],
[
281,
282
],
[
280,
283
],
[
0,
284
],
[
284,
285
],
[
284,
286
]
] |
[
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\tstatic PrintWriter out;\n\tstatic StringBuilder sb;\n\tstatic int n, m, k;\n\tstatic long mod = 998244353;\n\tstatic Boolean[][][] memo;\n\tstatic String s;\n\tstatic HashMap<Integer, Integer> nums;\n\tstatic ArrayList<Integer>[] ad;\n\tstatic int inf = 1000000;\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tint n = sc.nextInt();\n\t\tint[] occ = new int[n];\n\t\tint ans = 0;\n\t\tint k = sc.nextInt();\n\t\tfor (int i = 0; i < k; i++) {\n\t\t\tint l = sc.nextInt();\n\t\t\tfor (int j = 0; j < l; j++)\n\t\t\t\tocc[sc.nextInt() - 1]++;\n\t\t}\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tif (occ[i] == 0)\n\t\t\t\tans++;\n\t\tSystem.out.println(ans);\n\t\tout.flush();\n\t}\n\n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic Scanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic Long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextArrInt(int n) throws IOException {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextArrLong(int n) throws IOException {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tstatic PrintWriter out;\n\tstatic StringBuilder sb;\n\tstatic int n, m, k;\n\tstatic long mod = 998244353;\n\tstatic Boolean[][][] memo;\n\tstatic String s;\n\tstatic HashMap<Integer, Integer> nums;\n\tstatic ArrayList<Integer>[] ad;\n\tstatic int inf = 1000000;\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tint n = sc.nextInt();\n\t\tint[] occ = new int[n];\n\t\tint ans = 0;\n\t\tint k = sc.nextInt();\n\t\tfor (int i = 0; i < k; i++) {\n\t\t\tint l = sc.nextInt();\n\t\t\tfor (int j = 0; j < l; j++)\n\t\t\t\tocc[sc.nextInt() - 1]++;\n\t\t}\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tif (occ[i] == 0)\n\t\t\t\tans++;\n\t\tSystem.out.println(ans);\n\t\tout.flush();\n\t}\n\n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic Scanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic Long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextArrInt(int n) throws IOException {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextArrLong(int n) throws IOException {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n}",
"Main",
"static PrintWriter out;",
"out",
"static StringBuilder sb;",
"sb",
"static int n",
"n",
"m",
"m",
"k;",
"k",
"static long mod = 998244353;",
"mod",
"998244353",
"static Boolean[][][] memo;",
"memo",
"static String s;",
"s",
"static HashMap<Integer, Integer> nums;",
"nums",
"static ArrayList<Integer>[] ad;",
"ad",
"static int inf = 1000000;",
"inf",
"1000000",
"public static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tint n = sc.nextInt();\n\t\tint[] occ = new int[n];\n\t\tint ans = 0;\n\t\tint k = sc.nextInt();\n\t\tfor (int i = 0; i < k; i++) {\n\t\t\tint l = sc.nextInt();\n\t\t\tfor (int j = 0; j < l; j++)\n\t\t\t\tocc[sc.nextInt() - 1]++;\n\t\t}\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tif (occ[i] == 0)\n\t\t\t\tans++;\n\t\tSystem.out.println(ans);\n\t\tout.flush();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tint n = sc.nextInt();\n\t\tint[] occ = new int[n];\n\t\tint ans = 0;\n\t\tint k = sc.nextInt();\n\t\tfor (int i = 0; i < k; i++) {\n\t\t\tint l = sc.nextInt();\n\t\t\tfor (int j = 0; j < l; j++)\n\t\t\t\tocc[sc.nextInt() - 1]++;\n\t\t}\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tif (occ[i] == 0)\n\t\t\t\tans++;\n\t\tSystem.out.println(ans);\n\t\tout.flush();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] occ = new int[n];",
"occ",
"new int[n]",
"n",
"int ans = 0;",
"ans",
"0",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < k; i++) {\n\t\t\tint l = sc.nextInt();\n\t\t\tfor (int j = 0; j < l; j++)\n\t\t\t\tocc[sc.nextInt() - 1]++;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"{\n\t\t\tint l = sc.nextInt();\n\t\t\tfor (int j = 0; j < l; j++)\n\t\t\t\tocc[sc.nextInt() - 1]++;\n\t\t}",
"{\n\t\t\tint l = sc.nextInt();\n\t\t\tfor (int j = 0; j < l; j++)\n\t\t\t\tocc[sc.nextInt() - 1]++;\n\t\t}",
"int l = sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int j = 0; j < l; j++)\n\t\t\t\tocc[sc.nextInt() - 1]++;",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < l",
"j",
"l",
"j++",
"j++",
"j",
"occ[sc.nextInt() - 1]++;",
"occ[sc.nextInt() - 1]++",
"occ[sc.nextInt() - 1]",
"occ",
"sc.nextInt() - 1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"for (int i = 0; i < n; i++)\n\t\t\tif (occ[i] == 0)\n\t\t\t\tans++;",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"if (occ[i] == 0)\n\t\t\t\tans++;",
"if (occ[i] == 0)\n\t\t\t\tans++;",
"occ[i] == 0",
"occ[i]",
"occ",
"i",
"0",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"static class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic Scanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic Long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextArrInt(int n) throws IOException {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextArrLong(int n) throws IOException {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}",
"Scanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public Scanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}",
"Scanner",
"{\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}",
"br = new BufferedReader(new InputStreamReader(system))",
"br",
"new BufferedReader(new InputStreamReader(system))",
"InputStream system",
"system",
"public Scanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}",
"Scanner",
"{\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}",
"br = new BufferedReader(new FileReader(file))",
"br",
"new BufferedReader(new FileReader(file))",
"String file",
"file",
"public String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}",
"while (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}",
"nextLine",
"{\n\t\t\treturn br.readLine();\n\t\t}",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"public int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"nextDouble",
"{\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}",
"nextChar",
"{\n\t\t\treturn next().charAt(0);\n\t\t}",
"return next().charAt(0);",
"next().charAt(0)",
"next().charAt",
"next()",
"next",
"0",
"public Long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public int[] nextArrInt(int n) throws IOException {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}",
"nextArrInt",
"{\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nextInt();",
"a[i] = nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"public long[] nextArrLong(int n) throws IOException {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}",
"nextArrLong",
"{\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}",
"long[] a = new long[n];",
"a",
"new long[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nextLong();",
"a[i] = nextLong()",
"a[i]",
"a",
"i",
"nextLong()",
"nextLong",
"return a;",
"a",
"int n",
"n",
"public boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}",
"ready",
"{\n\t\t\treturn br.ready();\n\t\t}",
"return br.ready();",
"br.ready()",
"br.ready",
"br",
"public void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}",
"waitForInput",
"{\n\t\t\tThread.sleep(3000);\n\t\t}",
"Thread.sleep(3000)",
"Thread.sleep",
"Thread",
"3000",
"public class Main {\n\tstatic PrintWriter out;\n\tstatic StringBuilder sb;\n\tstatic int n, m, k;\n\tstatic long mod = 998244353;\n\tstatic Boolean[][][] memo;\n\tstatic String s;\n\tstatic HashMap<Integer, Integer> nums;\n\tstatic ArrayList<Integer>[] ad;\n\tstatic int inf = 1000000;\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tint n = sc.nextInt();\n\t\tint[] occ = new int[n];\n\t\tint ans = 0;\n\t\tint k = sc.nextInt();\n\t\tfor (int i = 0; i < k; i++) {\n\t\t\tint l = sc.nextInt();\n\t\t\tfor (int j = 0; j < l; j++)\n\t\t\t\tocc[sc.nextInt() - 1]++;\n\t\t}\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tif (occ[i] == 0)\n\t\t\t\tans++;\n\t\tSystem.out.println(ans);\n\t\tout.flush();\n\t}\n\n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic Scanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic Long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextArrInt(int n) throws IOException {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextArrLong(int n) throws IOException {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n}",
"public class Main {\n\tstatic PrintWriter out;\n\tstatic StringBuilder sb;\n\tstatic int n, m, k;\n\tstatic long mod = 998244353;\n\tstatic Boolean[][][] memo;\n\tstatic String s;\n\tstatic HashMap<Integer, Integer> nums;\n\tstatic ArrayList<Integer>[] ad;\n\tstatic int inf = 1000000;\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tint n = sc.nextInt();\n\t\tint[] occ = new int[n];\n\t\tint ans = 0;\n\t\tint k = sc.nextInt();\n\t\tfor (int i = 0; i < k; i++) {\n\t\t\tint l = sc.nextInt();\n\t\t\tfor (int j = 0; j < l; j++)\n\t\t\t\tocc[sc.nextInt() - 1]++;\n\t\t}\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tif (occ[i] == 0)\n\t\t\t\tans++;\n\t\tSystem.out.println(ans);\n\t\tout.flush();\n\t}\n\n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic Scanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic Long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextArrInt(int n) throws IOException {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextArrLong(int n) throws IOException {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main {
static PrintWriter out;
static StringBuilder sb;
static int n, m, k;
static long mod = 998244353;
static Boolean[][][] memo;
static String s;
static HashMap<Integer, Integer> nums;
static ArrayList<Integer>[] ad;
static int inf = 1000000;
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
out = new PrintWriter(System.out);
int n = sc.nextInt();
int[] occ = new int[n];
int ans = 0;
int k = sc.nextInt();
for (int i = 0; i < k; i++) {
int l = sc.nextInt();
for (int j = 0; j < l; j++)
occ[sc.nextInt() - 1]++;
}
for (int i = 0; i < n; i++)
if (occ[i] == 0)
ans++;
System.out.println(ans);
out.flush();
}
static class Scanner {
StringTokenizer st;
BufferedReader br;
public Scanner(InputStream system) {
br = new BufferedReader(new InputStreamReader(system));
}
public Scanner(String file) throws Exception {
br = new BufferedReader(new FileReader(file));
}
public String next() throws IOException {
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(br.readLine());
return st.nextToken();
}
public String nextLine() throws IOException {
return br.readLine();
}
public int nextInt() throws IOException {
return Integer.parseInt(next());
}
public double nextDouble() throws IOException {
return Double.parseDouble(next());
}
public char nextChar() throws IOException {
return next().charAt(0);
}
public Long nextLong() throws IOException {
return Long.parseLong(next());
}
public int[] nextArrInt(int n) throws IOException {
int[] a = new int[n];
for (int i = 0; i < n; i++)
a[i] = nextInt();
return a;
}
public long[] nextArrLong(int n) throws IOException {
long[] a = new long[n];
for (int i = 0; i < n; i++)
a[i] = nextLong();
return a;
}
public boolean ready() throws IOException {
return br.ready();
}
public void waitForInput() throws InterruptedException {
Thread.sleep(3000);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
4,
18,
13,
17,
5,
13,
30,
4,
18,
13,
4,
18,
13,
17,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
4,
18,
13,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
4,
18,
13,
17,
28,
13,
13,
30,
30,
4,
18,
13,
13,
41,
13,
2,
13,
4,
18,
13,
4,
18,
18,
13,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
27,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
27,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
57,
62
],
[
48,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
48,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
48,
81
],
[
81,
82
],
[
81,
83
],
[
48,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
84,
92
],
[
92,
93
],
[
93,
94
],
[
84,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
105,
110
],
[
96,
111
],
[
111,
112
],
[
111,
113
],
[
111,
114
],
[
115,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
48,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
48,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
24,
133
],
[
133,
134
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.HashSet;\nimport java.util.Set;\nimport java.util.List;\n\nclass Main {\n public static void main(final String[] args) throws Exception {\n\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in));) {\n List<String> firstRow = Arrays.asList(br.readLine().split(\" \"));\n int N = Integer.parseInt(firstRow.get(0));\n int K = Integer.parseInt(firstRow.get(1));\n\n Set<String> haveCookie = new HashSet<>();\n for (int i = 0; i < K; i++) {\n br.readLine();\n List<String> tmpList = Arrays.asList(br.readLine().split(\" \"));\n for (String tmp : tmpList) {\n haveCookie.add(tmp);\n }\n }\n\n int ans = N - haveCookie.size();\n System.out.println(ans);\n } catch (IOException | NumberFormatException e) {\n e.printStackTrace();\n System.exit(0);\n } catch (final Exception e) {\n e.printStackTrace();\n System.exit(0);\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"import java.util.List;",
"List",
"java.util",
"class Main {\n public static void main(final String[] args) throws Exception {\n\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in));) {\n List<String> firstRow = Arrays.asList(br.readLine().split(\" \"));\n int N = Integer.parseInt(firstRow.get(0));\n int K = Integer.parseInt(firstRow.get(1));\n\n Set<String> haveCookie = new HashSet<>();\n for (int i = 0; i < K; i++) {\n br.readLine();\n List<String> tmpList = Arrays.asList(br.readLine().split(\" \"));\n for (String tmp : tmpList) {\n haveCookie.add(tmp);\n }\n }\n\n int ans = N - haveCookie.size();\n System.out.println(ans);\n } catch (IOException | NumberFormatException e) {\n e.printStackTrace();\n System.exit(0);\n } catch (final Exception e) {\n e.printStackTrace();\n System.exit(0);\n }\n }\n}",
"Main",
"public static void main(final String[] args) throws Exception {\n\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in));) {\n List<String> firstRow = Arrays.asList(br.readLine().split(\" \"));\n int N = Integer.parseInt(firstRow.get(0));\n int K = Integer.parseInt(firstRow.get(1));\n\n Set<String> haveCookie = new HashSet<>();\n for (int i = 0; i < K; i++) {\n br.readLine();\n List<String> tmpList = Arrays.asList(br.readLine().split(\" \"));\n for (String tmp : tmpList) {\n haveCookie.add(tmp);\n }\n }\n\n int ans = N - haveCookie.size();\n System.out.println(ans);\n } catch (IOException | NumberFormatException e) {\n e.printStackTrace();\n System.exit(0);\n } catch (final Exception e) {\n e.printStackTrace();\n System.exit(0);\n }\n }",
"main",
"{\n\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in));) {\n List<String> firstRow = Arrays.asList(br.readLine().split(\" \"));\n int N = Integer.parseInt(firstRow.get(0));\n int K = Integer.parseInt(firstRow.get(1));\n\n Set<String> haveCookie = new HashSet<>();\n for (int i = 0; i < K; i++) {\n br.readLine();\n List<String> tmpList = Arrays.asList(br.readLine().split(\" \"));\n for (String tmp : tmpList) {\n haveCookie.add(tmp);\n }\n }\n\n int ans = N - haveCookie.size();\n System.out.println(ans);\n } catch (IOException | NumberFormatException e) {\n e.printStackTrace();\n System.exit(0);\n } catch (final Exception e) {\n e.printStackTrace();\n System.exit(0);\n }\n }",
"try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in));) {\n List<String> firstRow = Arrays.asList(br.readLine().split(\" \"));\n int N = Integer.parseInt(firstRow.get(0));\n int K = Integer.parseInt(firstRow.get(1));\n\n Set<String> haveCookie = new HashSet<>();\n for (int i = 0; i < K; i++) {\n br.readLine();\n List<String> tmpList = Arrays.asList(br.readLine().split(\" \"));\n for (String tmp : tmpList) {\n haveCookie.add(tmp);\n }\n }\n\n int ans = N - haveCookie.size();\n System.out.println(ans);\n } catch (IOException | NumberFormatException e) {\n e.printStackTrace();\n System.exit(0);\n } catch (final Exception e) {\n e.printStackTrace();\n System.exit(0);\n }",
"catch (IOException | NumberFormatException e) {\n e.printStackTrace();\n System.exit(0);\n }",
"IOException | NumberFormatException e",
"{\n e.printStackTrace();\n System.exit(0);\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"System.exit(0)",
"System.exit",
"System",
"0",
"catch (final Exception e) {\n e.printStackTrace();\n System.exit(0);\n }",
"final Exception e",
"{\n e.printStackTrace();\n System.exit(0);\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"System.exit(0)",
"System.exit",
"System",
"0",
"{\n List<String> firstRow = Arrays.asList(br.readLine().split(\" \"));\n int N = Integer.parseInt(firstRow.get(0));\n int K = Integer.parseInt(firstRow.get(1));\n\n Set<String> haveCookie = new HashSet<>();\n for (int i = 0; i < K; i++) {\n br.readLine();\n List<String> tmpList = Arrays.asList(br.readLine().split(\" \"));\n for (String tmp : tmpList) {\n haveCookie.add(tmp);\n }\n }\n\n int ans = N - haveCookie.size();\n System.out.println(ans);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in))",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in))",
"new BufferedReader(new InputStreamReader(System.in))",
"List<String> firstRow = Arrays.asList(br.readLine().split(\" \"));",
"firstRow",
"Arrays.asList(br.readLine().split(\" \"))",
"Arrays.asList",
"Arrays",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int N = Integer.parseInt(firstRow.get(0));",
"N",
"Integer.parseInt(firstRow.get(0))",
"Integer.parseInt",
"Integer",
"firstRow.get(0)",
"firstRow.get",
"firstRow",
"0",
"int K = Integer.parseInt(firstRow.get(1));",
"K",
"Integer.parseInt(firstRow.get(1))",
"Integer.parseInt",
"Integer",
"firstRow.get(1)",
"firstRow.get",
"firstRow",
"1",
"Set<String> haveCookie = new HashSet<>();",
"haveCookie",
"new HashSet<>()",
"for (int i = 0; i < K; i++) {\n br.readLine();\n List<String> tmpList = Arrays.asList(br.readLine().split(\" \"));\n for (String tmp : tmpList) {\n haveCookie.add(tmp);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < K",
"i",
"K",
"i++",
"i++",
"i",
"{\n br.readLine();\n List<String> tmpList = Arrays.asList(br.readLine().split(\" \"));\n for (String tmp : tmpList) {\n haveCookie.add(tmp);\n }\n }",
"{\n br.readLine();\n List<String> tmpList = Arrays.asList(br.readLine().split(\" \"));\n for (String tmp : tmpList) {\n haveCookie.add(tmp);\n }\n }",
"br.readLine()",
"br.readLine",
"br",
"List<String> tmpList = Arrays.asList(br.readLine().split(\" \"));",
"tmpList",
"Arrays.asList(br.readLine().split(\" \"))",
"Arrays.asList",
"Arrays",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for (String tmp : tmpList) {\n haveCookie.add(tmp);\n }",
"String tmp",
"tmpList",
"{\n haveCookie.add(tmp);\n }",
"{\n haveCookie.add(tmp);\n }",
"haveCookie.add(tmp)",
"haveCookie.add",
"haveCookie",
"tmp",
"int ans = N - haveCookie.size();",
"ans",
"N - haveCookie.size()",
"N",
"haveCookie.size()",
"haveCookie.size",
"haveCookie",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"final String[] args",
"args"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import java.util.List;
class Main {
public static void main(final String[] args) throws Exception {
try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in));) {
List<String> firstRow = Arrays.asList(br.readLine().split(" "));
int N = Integer.parseInt(firstRow.get(0));
int K = Integer.parseInt(firstRow.get(1));
Set<String> haveCookie = new HashSet<>();
for (int i = 0; i < K; i++) {
br.readLine();
List<String> tmpList = Arrays.asList(br.readLine().split(" "));
for (String tmp : tmpList) {
haveCookie.add(tmp);
}
}
int ans = N - haveCookie.size();
System.out.println(ans);
} catch (IOException | NumberFormatException e) {
e.printStackTrace();
System.exit(0);
} catch (final Exception e) {
e.printStackTrace();
System.exit(0);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
2,
13,
17,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
121,
5
],
[
121,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
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
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
80,
86
],
[
8,
87
],
[
87,
88
],
[
87,
89
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
90,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
6,
118
],
[
118,
119
],
[
0,
120
],
[
120,
121
],
[
120,
122
]
] |
[
"//B\nimport java.util.*;\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 k = sc.nextInt();\n\t\t\n\t\tint snk[] = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsnk[i] = 0;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < k; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor (int j = 0; j < d; j++) {\n\t\t\t\tint a_id = sc.nextInt();\n\t\t\t\tsnk[a_id - 1] = 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint count = 0;\n\t\tfor (int l = 0; l < n; l++) {\n\t\t\tif (snk[l] == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\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 k = sc.nextInt();\n\t\t\n\t\tint snk[] = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsnk[i] = 0;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < k; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor (int j = 0; j < d; j++) {\n\t\t\t\tint a_id = sc.nextInt();\n\t\t\t\tsnk[a_id - 1] = 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint count = 0;\n\t\tfor (int l = 0; l < n; l++) {\n\t\t\tif (snk[l] == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\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 k = sc.nextInt();\n\t\t\n\t\tint snk[] = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsnk[i] = 0;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < k; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor (int j = 0; j < d; j++) {\n\t\t\t\tint a_id = sc.nextInt();\n\t\t\t\tsnk[a_id - 1] = 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint count = 0;\n\t\tfor (int l = 0; l < n; l++) {\n\t\t\tif (snk[l] == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\t\t\n\t\tint snk[] = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsnk[i] = 0;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < k; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor (int j = 0; j < d; j++) {\n\t\t\t\tint a_id = sc.nextInt();\n\t\t\t\tsnk[a_id - 1] = 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint count = 0;\n\t\tfor (int l = 0; l < n; l++) {\n\t\t\tif (snk[l] == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int snk[] = new int[n];",
"snk",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n\t\t\tsnk[i] = 0;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tsnk[i] = 0;\n\t\t}",
"{\n\t\t\tsnk[i] = 0;\n\t\t}",
"snk[i] = 0",
"snk[i]",
"snk",
"i",
"0",
"for (int i = 0; i < k; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor (int j = 0; j < d; j++) {\n\t\t\t\tint a_id = sc.nextInt();\n\t\t\t\tsnk[a_id - 1] = 1;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"{\n\t\t\tint d = sc.nextInt();\n\t\t\tfor (int j = 0; j < d; j++) {\n\t\t\t\tint a_id = sc.nextInt();\n\t\t\t\tsnk[a_id - 1] = 1;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint d = sc.nextInt();\n\t\t\tfor (int j = 0; j < d; j++) {\n\t\t\t\tint a_id = sc.nextInt();\n\t\t\t\tsnk[a_id - 1] = 1;\n\t\t\t}\n\t\t}",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int j = 0; j < d; j++) {\n\t\t\t\tint a_id = sc.nextInt();\n\t\t\t\tsnk[a_id - 1] = 1;\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < d",
"j",
"d",
"j++",
"j++",
"j",
"{\n\t\t\t\tint a_id = sc.nextInt();\n\t\t\t\tsnk[a_id - 1] = 1;\n\t\t\t}",
"{\n\t\t\t\tint a_id = sc.nextInt();\n\t\t\t\tsnk[a_id - 1] = 1;\n\t\t\t}",
"int a_id = sc.nextInt();",
"a_id",
"sc.nextInt()",
"sc.nextInt",
"sc",
"snk[a_id - 1] = 1",
"snk[a_id - 1]",
"snk",
"a_id - 1",
"a_id",
"1",
"1",
"int count = 0;",
"count",
"0",
"for (int l = 0; l < n; l++) {\n\t\t\tif (snk[l] == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"int l = 0;",
"int l = 0;",
"l",
"0",
"l < n",
"l",
"n",
"l++",
"l++",
"l",
"{\n\t\t\tif (snk[l] == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (snk[l] == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"if (snk[l] == 0) {\n\t\t\t\tcount++;\n\t\t\t}",
"snk[l] == 0",
"snk[l]",
"snk",
"l",
"0",
"{\n\t\t\t\tcount++;\n\t\t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"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 k = sc.nextInt();\n\t\t\n\t\tint snk[] = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsnk[i] = 0;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < k; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor (int j = 0; j < d; j++) {\n\t\t\t\tint a_id = sc.nextInt();\n\t\t\t\tsnk[a_id - 1] = 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint count = 0;\n\t\tfor (int l = 0; l < n; l++) {\n\t\t\tif (snk[l] == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\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 k = sc.nextInt();\n\t\t\n\t\tint snk[] = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsnk[i] = 0;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < k; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor (int j = 0; j < d; j++) {\n\t\t\t\tint a_id = sc.nextInt();\n\t\t\t\tsnk[a_id - 1] = 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint count = 0;\n\t\tfor (int l = 0; l < n; l++) {\n\t\t\tif (snk[l] == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"Main"
] |
//B
import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int k = sc.nextInt();
int snk[] = new int[n];
for (int i = 0; i < n; i++) {
snk[i] = 0;
}
for (int i = 0; i < k; i++) {
int d = sc.nextInt();
for (int j = 0; j < d; j++) {
int a_id = sc.nextInt();
snk[a_id - 1] = 1;
}
}
int count = 0;
for (int l = 0; l < n; l++) {
if (snk[l] == 0) {
count++;
}
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
4,
18,
13,
42,
2,
13,
17,
30,
41,
13,
4,
18,
13,
0,
18,
13,
2,
13,
17,
17,
40,
13,
14,
2,
2,
13,
17,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
8,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
44,
50
],
[
38,
51
],
[
51,
52
],
[
38,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
53,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
8,
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
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
6,
96
],
[
96,
97
]
] |
[
"import java.util.*;\n \nclass Main {\n \n public static void main (String args[])\n {\n Scanner in = new Scanner(System.in);\n int n=in.nextInt();\n int k=in.nextInt();\n in.nextLine();\n int[]N=new int[n];\n int d=in.nextInt();\n while(d>0)\n {\n int ii=in.nextInt();\n \n N[ii-1]=1;\n d--;\n if(d==0&&in.hasNextInt())\n d=in.nextInt();\n }\n int count=0;\n for(int i=0;i<n;i++)\n {\n if(N[i]==0) count++;\n }\n System.out.println(count);\n \n \n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n \n public static void main (String args[])\n {\n Scanner in = new Scanner(System.in);\n int n=in.nextInt();\n int k=in.nextInt();\n in.nextLine();\n int[]N=new int[n];\n int d=in.nextInt();\n while(d>0)\n {\n int ii=in.nextInt();\n \n N[ii-1]=1;\n d--;\n if(d==0&&in.hasNextInt())\n d=in.nextInt();\n }\n int count=0;\n for(int i=0;i<n;i++)\n {\n if(N[i]==0) count++;\n }\n System.out.println(count);\n \n \n }\n}",
"Main",
"public static void main (String args[])\n {\n Scanner in = new Scanner(System.in);\n int n=in.nextInt();\n int k=in.nextInt();\n in.nextLine();\n int[]N=new int[n];\n int d=in.nextInt();\n while(d>0)\n {\n int ii=in.nextInt();\n \n N[ii-1]=1;\n d--;\n if(d==0&&in.hasNextInt())\n d=in.nextInt();\n }\n int count=0;\n for(int i=0;i<n;i++)\n {\n if(N[i]==0) count++;\n }\n System.out.println(count);\n \n \n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n int n=in.nextInt();\n int k=in.nextInt();\n in.nextLine();\n int[]N=new int[n];\n int d=in.nextInt();\n while(d>0)\n {\n int ii=in.nextInt();\n \n N[ii-1]=1;\n d--;\n if(d==0&&in.hasNextInt())\n d=in.nextInt();\n }\n int count=0;\n for(int i=0;i<n;i++)\n {\n if(N[i]==0) count++;\n }\n System.out.println(count);\n \n \n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int n=in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"int k=in.nextInt();",
"k",
"in.nextInt()",
"in.nextInt",
"in",
"in.nextLine()",
"in.nextLine",
"in",
"int[]N=new int[n];",
"N",
"new int[n]",
"n",
"int d=in.nextInt();",
"d",
"in.nextInt()",
"in.nextInt",
"in",
"while(d>0)\n {\n int ii=in.nextInt();\n \n N[ii-1]=1;\n d--;\n if(d==0&&in.hasNextInt())\n d=in.nextInt();\n }",
"d>0",
"d",
"0",
"{\n int ii=in.nextInt();\n \n N[ii-1]=1;\n d--;\n if(d==0&&in.hasNextInt())\n d=in.nextInt();\n }",
"int ii=in.nextInt();",
"ii",
"in.nextInt()",
"in.nextInt",
"in",
"N[ii-1]=1",
"N[ii-1]",
"N",
"ii-1",
"ii",
"1",
"1",
"d--",
"d",
"if(d==0&&in.hasNextInt())\n d=in.nextInt();",
"d==0&&in.hasNextInt()",
"d==0",
"d",
"0",
"in.hasNextInt()",
"in.hasNextInt",
"in",
"d=in.nextInt()",
"d",
"in.nextInt()",
"in.nextInt",
"in",
"int count=0;",
"count",
"0",
"for(int i=0;i<n;i++)\n {\n if(N[i]==0) count++;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(N[i]==0) count++;\n }",
"{\n if(N[i]==0) count++;\n }",
"if(N[i]==0) count++;",
"N[i]==0",
"N[i]",
"N",
"i",
"0",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String args[]",
"args"
] |
import java.util.*;
class Main {
public static void main (String args[])
{
Scanner in = new Scanner(System.in);
int n=in.nextInt();
int k=in.nextInt();
in.nextLine();
int[]N=new int[n];
int d=in.nextInt();
while(d>0)
{
int ii=in.nextInt();
N[ii-1]=1;
d--;
if(d==0&&in.hasNextInt())
d=in.nextInt();
}
int count=0;
for(int i=0;i<n;i++)
{
if(N[i]==0) count++;
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
2,
13,
17,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
40,
18,
18,
13,
4,
18,
13,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
18,
13,
13,
13,
17,
30,
40,
13,
14,
2,
13,
17,
30,
40,
13,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
141,
8
],
[
141,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
28,
29
],
[
28,
30
],
[
31,
32
],
[
31,
33
],
[
11,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
34,
44
],
[
44,
45
],
[
45,
46
],
[
34,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
54,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
68,
74
],
[
11,
75
],
[
75,
76
],
[
75,
77
],
[
11,
78
],
[
78,
79
],
[
78,
80
],
[
11,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
88,
90
],
[
81,
91
],
[
91,
92
],
[
92,
93
],
[
81,
94
],
[
95,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
103,
105
],
[
96,
106
],
[
106,
107
],
[
107,
108
],
[
96,
109
],
[
110,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
112,
118
],
[
111,
119
],
[
119,
120
],
[
120,
121
],
[
95,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
126,
127
],
[
127,
128
],
[
95,
129
],
[
129,
130
],
[
129,
131
],
[
11,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
9,
138
],
[
138,
139
],
[
0,
140
],
[
140,
141
],
[
140,
142
]
] |
[
"import java.util.*;\nimport java.math.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n\n int[][] data = new int[n+1][k+1];\n\n for (int i = 1; i < k+1; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n data[sc.nextInt()][i]++;\n }\n }\n\n int count = 0;\n int ans = 0;\n\n for (int i = 1; i < n+1; i++) {\n for (int j = 1; j < k+1; j++) {\n if (data[i][j] != 0) {\n count++;\n }\n }\n if (count == 0) {\n ans++;\n }\n count = 0;\n }\n\n System.out.println(ans);\n\n\n\n\n }\n\n}",
"import java.util.*;",
"util.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n\n int[][] data = new int[n+1][k+1];\n\n for (int i = 1; i < k+1; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n data[sc.nextInt()][i]++;\n }\n }\n\n int count = 0;\n int ans = 0;\n\n for (int i = 1; i < n+1; i++) {\n for (int j = 1; j < k+1; j++) {\n if (data[i][j] != 0) {\n count++;\n }\n }\n if (count == 0) {\n ans++;\n }\n count = 0;\n }\n\n System.out.println(ans);\n\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 int k = sc.nextInt();\n\n int[][] data = new int[n+1][k+1];\n\n for (int i = 1; i < k+1; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n data[sc.nextInt()][i]++;\n }\n }\n\n int count = 0;\n int ans = 0;\n\n for (int i = 1; i < n+1; i++) {\n for (int j = 1; j < k+1; j++) {\n if (data[i][j] != 0) {\n count++;\n }\n }\n if (count == 0) {\n ans++;\n }\n count = 0;\n }\n\n System.out.println(ans);\n\n\n\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n\n int[][] data = new int[n+1][k+1];\n\n for (int i = 1; i < k+1; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n data[sc.nextInt()][i]++;\n }\n }\n\n int count = 0;\n int ans = 0;\n\n for (int i = 1; i < n+1; i++) {\n for (int j = 1; j < k+1; j++) {\n if (data[i][j] != 0) {\n count++;\n }\n }\n if (count == 0) {\n ans++;\n }\n count = 0;\n }\n\n System.out.println(ans);\n\n\n\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] data = new int[n+1][k+1];",
"data",
"new int[n+1][k+1]",
"n+1",
"n",
"1",
"k+1",
"k",
"1",
"for (int i = 1; i < k+1; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n data[sc.nextInt()][i]++;\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < k+1",
"i",
"k+1",
"k",
"1",
"i++",
"i++",
"i",
"{\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n data[sc.nextInt()][i]++;\n }\n }",
"{\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n data[sc.nextInt()][i]++;\n }\n }",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int j = 0; j < d; j++) {\n data[sc.nextInt()][i]++;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < d",
"j",
"d",
"j++",
"j++",
"j",
"{\n data[sc.nextInt()][i]++;\n }",
"{\n data[sc.nextInt()][i]++;\n }",
"data[sc.nextInt()][i]++",
"data[sc.nextInt()][i]",
"data[sc.nextInt()]",
"data",
"sc.nextInt()",
"sc.nextInt",
"sc",
"i",
"int count = 0;",
"count",
"0",
"int ans = 0;",
"ans",
"0",
"for (int i = 1; i < n+1; i++) {\n for (int j = 1; j < k+1; j++) {\n if (data[i][j] != 0) {\n count++;\n }\n }\n if (count == 0) {\n ans++;\n }\n count = 0;\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < n+1",
"i",
"n+1",
"n",
"1",
"i++",
"i++",
"i",
"{\n for (int j = 1; j < k+1; j++) {\n if (data[i][j] != 0) {\n count++;\n }\n }\n if (count == 0) {\n ans++;\n }\n count = 0;\n }",
"{\n for (int j = 1; j < k+1; j++) {\n if (data[i][j] != 0) {\n count++;\n }\n }\n if (count == 0) {\n ans++;\n }\n count = 0;\n }",
"for (int j = 1; j < k+1; j++) {\n if (data[i][j] != 0) {\n count++;\n }\n }",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j < k+1",
"j",
"k+1",
"k",
"1",
"j++",
"j++",
"j",
"{\n if (data[i][j] != 0) {\n count++;\n }\n }",
"{\n if (data[i][j] != 0) {\n count++;\n }\n }",
"if (data[i][j] != 0) {\n count++;\n }",
"data[i][j] != 0",
"data[i][j]",
"data[i]",
"data",
"i",
"j",
"0",
"{\n count++;\n }",
"count++",
"count",
"if (count == 0) {\n ans++;\n }",
"count == 0",
"count",
"0",
"{\n ans++;\n }",
"ans++",
"ans",
"count = 0",
"count",
"0",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n\n int[][] data = new int[n+1][k+1];\n\n for (int i = 1; i < k+1; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n data[sc.nextInt()][i]++;\n }\n }\n\n int count = 0;\n int ans = 0;\n\n for (int i = 1; i < n+1; i++) {\n for (int j = 1; j < k+1; j++) {\n if (data[i][j] != 0) {\n count++;\n }\n }\n if (count == 0) {\n ans++;\n }\n count = 0;\n }\n\n System.out.println(ans);\n\n\n\n\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n\n int[][] data = new int[n+1][k+1];\n\n for (int i = 1; i < k+1; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n data[sc.nextInt()][i]++;\n }\n }\n\n int count = 0;\n int ans = 0;\n\n for (int i = 1; i < n+1; i++) {\n for (int j = 1; j < k+1; j++) {\n if (data[i][j] != 0) {\n count++;\n }\n }\n if (count == 0) {\n ans++;\n }\n count = 0;\n }\n\n System.out.println(ans);\n\n\n\n\n }\n\n}",
"Main"
] |
import java.util.*;
import java.math.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int k = sc.nextInt();
int[][] data = new int[n+1][k+1];
for (int i = 1; i < k+1; i++) {
int d = sc.nextInt();
for (int j = 0; j < d; j++) {
data[sc.nextInt()][i]++;
}
}
int count = 0;
int ans = 0;
for (int i = 1; i < n+1; i++) {
for (int j = 1; j < k+1; j++) {
if (data[i][j] != 0) {
count++;
}
}
if (count == 0) {
ans++;
}
count = 0;
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
18,
13,
13,
0,
18,
13,
2,
13,
17,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
119,
5
],
[
119,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
44,
46
],
[
38,
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
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
66,
67
],
[
60,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
60,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
73,
79
],
[
8,
80
],
[
80,
81
],
[
80,
82
],
[
8,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
83,
93
],
[
93,
94
],
[
94,
95
],
[
83,
96
],
[
97,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
98,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
107,
109
],
[
8,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
6,
116
],
[
116,
117
],
[
0,
118
],
[
118,
119
],
[
118,
120
]
] |
[
"import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n int[] b = new int[n];\n for(int i=0;i<k;i++) {\n int d = sc.nextInt();\n int[] a = new int[d];\n for(int j=0;j<d;j++){\n a[j] = sc.nextInt();\n int c = a[j];\n\t\tb[c-1] = 1;\n } \n }\n int count = 0;\n for(int x=0;x<b.length;x++) {\n if(b[x]==0) {\n count = count + 1;\n }\n }\n System.out.println(count);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n int[] b = new int[n];\n for(int i=0;i<k;i++) {\n int d = sc.nextInt();\n int[] a = new int[d];\n for(int j=0;j<d;j++){\n a[j] = sc.nextInt();\n int c = a[j];\n\t\tb[c-1] = 1;\n } \n }\n int count = 0;\n for(int x=0;x<b.length;x++) {\n if(b[x]==0) {\n count = count + 1;\n }\n }\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n int[] b = new int[n];\n for(int i=0;i<k;i++) {\n int d = sc.nextInt();\n int[] a = new int[d];\n for(int j=0;j<d;j++){\n a[j] = sc.nextInt();\n int c = a[j];\n\t\tb[c-1] = 1;\n } \n }\n int count = 0;\n for(int x=0;x<b.length;x++) {\n if(b[x]==0) {\n count = count + 1;\n }\n }\n System.out.println(count);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n int[] b = new int[n];\n for(int i=0;i<k;i++) {\n int d = sc.nextInt();\n int[] a = new int[d];\n for(int j=0;j<d;j++){\n a[j] = sc.nextInt();\n int c = a[j];\n\t\tb[c-1] = 1;\n } \n }\n int count = 0;\n for(int x=0;x<b.length;x++) {\n if(b[x]==0) {\n count = count + 1;\n }\n }\n System.out.println(count);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] b = new int[n];",
"b",
"new int[n]",
"n",
"for(int i=0;i<k;i++) {\n int d = sc.nextInt();\n int[] a = new int[d];\n for(int j=0;j<d;j++){\n a[j] = sc.nextInt();\n int c = a[j];\n\t\tb[c-1] = 1;\n } \n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<k",
"i",
"k",
"i++",
"i++",
"i",
"{\n int d = sc.nextInt();\n int[] a = new int[d];\n for(int j=0;j<d;j++){\n a[j] = sc.nextInt();\n int c = a[j];\n\t\tb[c-1] = 1;\n } \n }",
"{\n int d = sc.nextInt();\n int[] a = new int[d];\n for(int j=0;j<d;j++){\n a[j] = sc.nextInt();\n int c = a[j];\n\t\tb[c-1] = 1;\n } \n }",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] a = new int[d];",
"a",
"new int[d]",
"d",
"for(int j=0;j<d;j++){\n a[j] = sc.nextInt();\n int c = a[j];\n\t\tb[c-1] = 1;\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<d",
"j",
"d",
"j++",
"j++",
"j",
"{\n a[j] = sc.nextInt();\n int c = a[j];\n\t\tb[c-1] = 1;\n }",
"{\n a[j] = sc.nextInt();\n int c = a[j];\n\t\tb[c-1] = 1;\n }",
"a[j] = sc.nextInt()",
"a[j]",
"a",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int c = a[j];",
"c",
"a[j]",
"a",
"j",
"b[c-1] = 1",
"b[c-1]",
"b",
"c-1",
"c",
"1",
"1",
"int count = 0;",
"count",
"0",
"for(int x=0;x<b.length;x++) {\n if(b[x]==0) {\n count = count + 1;\n }\n }",
"int x=0;",
"int x=0;",
"x",
"0",
"x<b.length",
"x",
"b.length",
"b",
"b.length",
"x++",
"x++",
"x",
"{\n if(b[x]==0) {\n count = count + 1;\n }\n }",
"{\n if(b[x]==0) {\n count = count + 1;\n }\n }",
"if(b[x]==0) {\n count = count + 1;\n }",
"b[x]==0",
"b[x]",
"b",
"x",
"0",
"{\n count = count + 1;\n }",
"count = count + 1",
"count",
"count + 1",
"count",
"1",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n int[] b = new int[n];\n for(int i=0;i<k;i++) {\n int d = sc.nextInt();\n int[] a = new int[d];\n for(int j=0;j<d;j++){\n a[j] = sc.nextInt();\n int c = a[j];\n\t\tb[c-1] = 1;\n } \n }\n int count = 0;\n for(int x=0;x<b.length;x++) {\n if(b[x]==0) {\n count = count + 1;\n }\n }\n System.out.println(count);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n int[] b = new int[n];\n for(int i=0;i<k;i++) {\n int d = sc.nextInt();\n int[] a = new int[d];\n for(int j=0;j<d;j++){\n a[j] = sc.nextInt();\n int c = a[j];\n\t\tb[c-1] = 1;\n } \n }\n int count = 0;\n for(int x=0;x<b.length;x++) {\n if(b[x]==0) {\n count = count + 1;\n }\n }\n System.out.println(count);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int k = sc.nextInt();
int[] b = new int[n];
for(int i=0;i<k;i++) {
int d = sc.nextInt();
int[] a = new int[d];
for(int j=0;j<d;j++){
a[j] = sc.nextInt();
int c = a[j];
b[c-1] = 1;
}
}
int count = 0;
for(int x=0;x<b.length;x++) {
if(b[x]==0) {
count = count + 1;
}
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
81,
8
],
[
81,
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
],
[
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
],
[
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
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
58,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
11,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
9,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
]
] |
[
"import java.util.HashSet;\nimport java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint K = scan.nextInt();\n\t\tHashSet hasCandy = new HashSet();\n\n\t\tfor (int j = 0; j < K; j++){\n\t\t\tint d = scan.nextInt();\n\t\t\tfor (int i = 0; i < d; i++){\n\t\t\t\tint A= scan.nextInt();\n\t\t\t\thasCandy.add(A);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(N - hasCandy.size());\n\t}\n}",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint K = scan.nextInt();\n\t\tHashSet hasCandy = new HashSet();\n\n\t\tfor (int j = 0; j < K; j++){\n\t\t\tint d = scan.nextInt();\n\t\t\tfor (int i = 0; i < d; i++){\n\t\t\t\tint A= scan.nextInt();\n\t\t\t\thasCandy.add(A);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(N - hasCandy.size());\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint K = scan.nextInt();\n\t\tHashSet hasCandy = new HashSet();\n\n\t\tfor (int j = 0; j < K; j++){\n\t\t\tint d = scan.nextInt();\n\t\t\tfor (int i = 0; i < d; i++){\n\t\t\t\tint A= scan.nextInt();\n\t\t\t\thasCandy.add(A);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(N - hasCandy.size());\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint K = scan.nextInt();\n\t\tHashSet hasCandy = new HashSet();\n\n\t\tfor (int j = 0; j < K; j++){\n\t\t\tint d = scan.nextInt();\n\t\t\tfor (int i = 0; i < d; i++){\n\t\t\t\tint A= scan.nextInt();\n\t\t\t\thasCandy.add(A);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(N - hasCandy.size());\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int N = scan.nextInt();",
"N",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int K = scan.nextInt();",
"K",
"scan.nextInt()",
"scan.nextInt",
"scan",
"HashSet hasCandy = new HashSet();",
"hasCandy",
"new HashSet()",
"for (int j = 0; j < K; j++){\n\t\t\tint d = scan.nextInt();\n\t\t\tfor (int i = 0; i < d; i++){\n\t\t\t\tint A= scan.nextInt();\n\t\t\t\thasCandy.add(A);\n\t\t\t}\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < K",
"j",
"K",
"j++",
"j++",
"j",
"{\n\t\t\tint d = scan.nextInt();\n\t\t\tfor (int i = 0; i < d; i++){\n\t\t\t\tint A= scan.nextInt();\n\t\t\t\thasCandy.add(A);\n\t\t\t}\n\t\t}",
"{\n\t\t\tint d = scan.nextInt();\n\t\t\tfor (int i = 0; i < d; i++){\n\t\t\t\tint A= scan.nextInt();\n\t\t\t\thasCandy.add(A);\n\t\t\t}\n\t\t}",
"int d = scan.nextInt();",
"d",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int i = 0; i < d; i++){\n\t\t\t\tint A= scan.nextInt();\n\t\t\t\thasCandy.add(A);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < d",
"i",
"d",
"i++",
"i++",
"i",
"{\n\t\t\t\tint A= scan.nextInt();\n\t\t\t\thasCandy.add(A);\n\t\t\t}",
"{\n\t\t\t\tint A= scan.nextInt();\n\t\t\t\thasCandy.add(A);\n\t\t\t}",
"int A= scan.nextInt();",
"A",
"scan.nextInt()",
"scan.nextInt",
"scan",
"hasCandy.add(A)",
"hasCandy.add",
"hasCandy",
"A",
"System.out.println(N - hasCandy.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"N - hasCandy.size()",
"N",
"hasCandy.size()",
"hasCandy.size",
"hasCandy",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint K = scan.nextInt();\n\t\tHashSet hasCandy = new HashSet();\n\n\t\tfor (int j = 0; j < K; j++){\n\t\t\tint d = scan.nextInt();\n\t\t\tfor (int i = 0; i < d; i++){\n\t\t\t\tint A= scan.nextInt();\n\t\t\t\thasCandy.add(A);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(N - hasCandy.size());\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint K = scan.nextInt();\n\t\tHashSet hasCandy = new HashSet();\n\n\t\tfor (int j = 0; j < K; j++){\n\t\t\tint d = scan.nextInt();\n\t\t\tfor (int i = 0; i < d; i++){\n\t\t\t\tint A= scan.nextInt();\n\t\t\t\thasCandy.add(A);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(N - hasCandy.size());\n\t}\n}",
"Main"
] |
import java.util.HashSet;
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
int K = scan.nextInt();
HashSet hasCandy = new HashSet();
for (int j = 0; j < K; j++){
int d = scan.nextInt();
for (int i = 0; i < d; i++){
int A= scan.nextInt();
hasCandy.add(A);
}
}
System.out.println(N - hasCandy.size());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
2,
13,
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,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
104,
11
],
[
104,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
14,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
47,
49
],
[
14,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
50,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
62,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
80,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
14,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
99,
100
],
[
12,
101
],
[
101,
102
],
[
0,
103
],
[
103,
104
],
[
103,
105
]
] |
[
"import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n List<Integer> a = new ArrayList<>();\n for(int i=0; i<n; i++) {\n a.add(i+1);\n }\n for(int i=0; i<k; i++) {\n int b = sc.nextInt();\n for(int j=0; j<b;j++) {\n int c = sc.nextInt();\n a.remove(Integer.valueOf(c));\n }\n }\n System.out.println(a.size());\n }\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 public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n List<Integer> a = new ArrayList<>();\n for(int i=0; i<n; i++) {\n a.add(i+1);\n }\n for(int i=0; i<k; i++) {\n int b = sc.nextInt();\n for(int j=0; j<b;j++) {\n int c = sc.nextInt();\n a.remove(Integer.valueOf(c));\n }\n }\n System.out.println(a.size());\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n List<Integer> a = new ArrayList<>();\n for(int i=0; i<n; i++) {\n a.add(i+1);\n }\n for(int i=0; i<k; i++) {\n int b = sc.nextInt();\n for(int j=0; j<b;j++) {\n int c = sc.nextInt();\n a.remove(Integer.valueOf(c));\n }\n }\n System.out.println(a.size());\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n List<Integer> a = new ArrayList<>();\n for(int i=0; i<n; i++) {\n a.add(i+1);\n }\n for(int i=0; i<k; i++) {\n int b = sc.nextInt();\n for(int j=0; j<b;j++) {\n int c = sc.nextInt();\n a.remove(Integer.valueOf(c));\n }\n }\n System.out.println(a.size());\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"List<Integer> a = new ArrayList<>();",
"a",
"new ArrayList<>()",
"for(int i=0; i<n; i++) {\n a.add(i+1);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a.add(i+1);\n }",
"{\n a.add(i+1);\n }",
"a.add(i+1)",
"a.add",
"a",
"i+1",
"i",
"1",
"for(int i=0; i<k; i++) {\n int b = sc.nextInt();\n for(int j=0; j<b;j++) {\n int c = sc.nextInt();\n a.remove(Integer.valueOf(c));\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<k",
"i",
"k",
"i++",
"i++",
"i",
"{\n int b = sc.nextInt();\n for(int j=0; j<b;j++) {\n int c = sc.nextInt();\n a.remove(Integer.valueOf(c));\n }\n }",
"{\n int b = sc.nextInt();\n for(int j=0; j<b;j++) {\n int c = sc.nextInt();\n a.remove(Integer.valueOf(c));\n }\n }",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j=0; j<b;j++) {\n int c = sc.nextInt();\n a.remove(Integer.valueOf(c));\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<b",
"j",
"b",
"j++",
"j++",
"j",
"{\n int c = sc.nextInt();\n a.remove(Integer.valueOf(c));\n }",
"{\n int c = sc.nextInt();\n a.remove(Integer.valueOf(c));\n }",
"int c = sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a.remove(Integer.valueOf(c))",
"a.remove",
"a",
"Integer.valueOf(c)",
"Integer.valueOf",
"Integer",
"c",
"System.out.println(a.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"a.size()",
"a.size",
"a",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n List<Integer> a = new ArrayList<>();\n for(int i=0; i<n; i++) {\n a.add(i+1);\n }\n for(int i=0; i<k; i++) {\n int b = sc.nextInt();\n for(int j=0; j<b;j++) {\n int c = sc.nextInt();\n a.remove(Integer.valueOf(c));\n }\n }\n System.out.println(a.size());\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n List<Integer> a = new ArrayList<>();\n for(int i=0; i<n; i++) {\n a.add(i+1);\n }\n for(int i=0; i<k; i++) {\n int b = sc.nextInt();\n for(int j=0; j<b;j++) {\n int c = sc.nextInt();\n a.remove(Integer.valueOf(c));\n }\n }\n System.out.println(a.size());\n }\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 = sc.nextInt();
int k = sc.nextInt();
List<Integer> a = new ArrayList<>();
for(int i=0; i<n; i++) {
a.add(i+1);
}
for(int i=0; i<k; i++) {
int b = sc.nextInt();
for(int j=0; j<b;j++) {
int c = sc.nextInt();
a.remove(Integer.valueOf(c));
}
}
System.out.println(a.size());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
40,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
87,
8
],
[
87,
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
],
[
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
],
[
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
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
58,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
64,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
11,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
9,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
] |
[
"import java.util.*;\nimport java.math.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n // int d = new int[K];\n List<Integer> a = new ArrayList<>();\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n\t\t\tfor (int j = 0 ; j < d ;j++){\n\t\t\t\tint c = sc.nextInt();\n\t\t\tif (!a.contains(c))\ta.add(c);\n }\n }\n\t\tSystem.out.println(N - a.size());\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n // int d = new int[K];\n List<Integer> a = new ArrayList<>();\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n\t\t\tfor (int j = 0 ; j < d ;j++){\n\t\t\t\tint c = sc.nextInt();\n\t\t\tif (!a.contains(c))\ta.add(c);\n }\n }\n\t\tSystem.out.println(N - a.size());\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n // int d = new int[K];\n List<Integer> a = new ArrayList<>();\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n\t\t\tfor (int j = 0 ; j < d ;j++){\n\t\t\t\tint c = sc.nextInt();\n\t\t\tif (!a.contains(c))\ta.add(c);\n }\n }\n\t\tSystem.out.println(N - a.size());\n\t}",
"main",
"{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n // int d = new int[K];\n List<Integer> a = new ArrayList<>();\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n\t\t\tfor (int j = 0 ; j < d ;j++){\n\t\t\t\tint c = sc.nextInt();\n\t\t\tif (!a.contains(c))\ta.add(c);\n }\n }\n\t\tSystem.out.println(N - a.size());\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"List<Integer> a = new ArrayList<>();",
"a",
"new ArrayList<>()",
"for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n\t\t\tfor (int j = 0 ; j < d ;j++){\n\t\t\t\tint c = sc.nextInt();\n\t\t\tif (!a.contains(c))\ta.add(c);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < K",
"i",
"K",
"i++",
"i++",
"i",
"{\n int d = sc.nextInt();\n\t\t\tfor (int j = 0 ; j < d ;j++){\n\t\t\t\tint c = sc.nextInt();\n\t\t\tif (!a.contains(c))\ta.add(c);\n }\n }",
"{\n int d = sc.nextInt();\n\t\t\tfor (int j = 0 ; j < d ;j++){\n\t\t\t\tint c = sc.nextInt();\n\t\t\tif (!a.contains(c))\ta.add(c);\n }\n }",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int j = 0 ; j < d ;j++){\n\t\t\t\tint c = sc.nextInt();\n\t\t\tif (!a.contains(c))\ta.add(c);\n }",
"int j = 0 ;",
"int j = 0 ;",
"j",
"0",
"j < d",
"j",
"d",
"j++",
"j++",
"j",
"{\n\t\t\t\tint c = sc.nextInt();\n\t\t\tif (!a.contains(c))\ta.add(c);\n }",
"{\n\t\t\t\tint c = sc.nextInt();\n\t\t\tif (!a.contains(c))\ta.add(c);\n }",
"int c = sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (!a.contains(c))\ta.add(c);",
"!a.contains(c)",
"a.contains(c)",
"a.contains",
"a",
"c",
"a.add(c)",
"a.add",
"a",
"c",
"System.out.println(N - a.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"N - a.size()",
"N",
"a.size()",
"a.size",
"a",
"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\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n // int d = new int[K];\n List<Integer> a = new ArrayList<>();\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n\t\t\tfor (int j = 0 ; j < d ;j++){\n\t\t\t\tint c = sc.nextInt();\n\t\t\tif (!a.contains(c))\ta.add(c);\n }\n }\n\t\tSystem.out.println(N - a.size());\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\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n // int d = new int[K];\n List<Integer> a = new ArrayList<>();\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n\t\t\tfor (int j = 0 ; j < d ;j++){\n\t\t\t\tint c = sc.nextInt();\n\t\t\tif (!a.contains(c))\ta.add(c);\n }\n }\n\t\tSystem.out.println(N - a.size());\n\t}\n}",
"Main"
] |
import java.util.*;
import java.math.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int K = sc.nextInt();
// int d = new int[K];
List<Integer> a = new ArrayList<>();
for (int i = 0; i < K; i++) {
int d = sc.nextInt();
for (int j = 0 ; j < d ;j++){
int c = sc.nextInt();
if (!a.contains(c)) a.add(c);
}
}
System.out.println(N - a.size());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
2,
4,
18,
13,
17,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
40,
13,
4,
18,
13,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
190,
8
],
[
190,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
19,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
11,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
31,
36
],
[
11,
37
],
[
37,
38
],
[
38,
39
],
[
9,
40
],
[
40,
41
],
[
190,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
46,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
57,
58
],
[
57,
59
],
[
46,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
61,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
73,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
79,
87
],
[
87,
88
],
[
88,
89
],
[
79,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
95,
99
],
[
92,
100
],
[
46,
101
],
[
101,
102
],
[
101,
103
],
[
46,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
109,
110
],
[
109,
111
],
[
104,
112
],
[
112,
113
],
[
113,
114
],
[
104,
115
],
[
116,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
117,
123
],
[
123,
124
],
[
124,
125
],
[
46,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
44,
130
],
[
130,
131
],
[
44,
132
],
[
132,
133
],
[
44,
134
],
[
134,
135
],
[
190,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
136,
140
],
[
140,
141
],
[
136,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
148,
150
],
[
142,
151
],
[
151,
152
],
[
136,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
156,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
170,
171
],
[
166,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
155,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
136,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
184,
187
],
[
187,
188
],
[
0,
189
],
[
189,
190
],
[
189,
191
]
] |
[
"//package beginner166.b;\n\nimport java.io.*;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int k = in.nextInt();\n\n int[] ss = new int[n];\n\n for (int i = 0; i < k; ++i) {\n int cnt = in.nextInt();\n for (int j = 0; j < cnt; ++j) {\n ss[in.nextInt()-1] += 1;\n }\n }\n\n int result = 0;\n for (int i = 0; i < n; ++i) {\n if (ss[i] == 0) {\n ++result;\n }\n }\n\n out.println(result);\n }\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int k = in.nextInt();\n\n int[] ss = new int[n];\n\n for (int i = 0; i < k; ++i) {\n int cnt = in.nextInt();\n for (int j = 0; j < cnt; ++j) {\n ss[in.nextInt()-1] += 1;\n }\n }\n\n int result = 0;\n for (int i = 0; i < n; ++i) {\n if (ss[i] == 0) {\n ++result;\n }\n }\n\n out.println(result);\n }\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"TaskB solver = new TaskB();",
"solver",
"new TaskB()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class TaskB {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int k = in.nextInt();\n\n int[] ss = new int[n];\n\n for (int i = 0; i < k; ++i) {\n int cnt = in.nextInt();\n for (int j = 0; j < cnt; ++j) {\n ss[in.nextInt()-1] += 1;\n }\n }\n\n int result = 0;\n for (int i = 0; i < n; ++i) {\n if (ss[i] == 0) {\n ++result;\n }\n }\n\n out.println(result);\n }\n }",
"TaskB",
"public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int k = in.nextInt();\n\n int[] ss = new int[n];\n\n for (int i = 0; i < k; ++i) {\n int cnt = in.nextInt();\n for (int j = 0; j < cnt; ++j) {\n ss[in.nextInt()-1] += 1;\n }\n }\n\n int result = 0;\n for (int i = 0; i < n; ++i) {\n if (ss[i] == 0) {\n ++result;\n }\n }\n\n out.println(result);\n }",
"solve",
"{\n int n = in.nextInt();\n int k = in.nextInt();\n\n int[] ss = new int[n];\n\n for (int i = 0; i < k; ++i) {\n int cnt = in.nextInt();\n for (int j = 0; j < cnt; ++j) {\n ss[in.nextInt()-1] += 1;\n }\n }\n\n int result = 0;\n for (int i = 0; i < n; ++i) {\n if (ss[i] == 0) {\n ++result;\n }\n }\n\n out.println(result);\n }",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"int k = in.nextInt();",
"k",
"in.nextInt()",
"in.nextInt",
"in",
"int[] ss = new int[n];",
"ss",
"new int[n]",
"n",
"for (int i = 0; i < k; ++i) {\n int cnt = in.nextInt();\n for (int j = 0; j < cnt; ++j) {\n ss[in.nextInt()-1] += 1;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"++i",
"++i",
"i",
"{\n int cnt = in.nextInt();\n for (int j = 0; j < cnt; ++j) {\n ss[in.nextInt()-1] += 1;\n }\n }",
"{\n int cnt = in.nextInt();\n for (int j = 0; j < cnt; ++j) {\n ss[in.nextInt()-1] += 1;\n }\n }",
"int cnt = in.nextInt();",
"cnt",
"in.nextInt()",
"in.nextInt",
"in",
"for (int j = 0; j < cnt; ++j) {\n ss[in.nextInt()-1] += 1;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < cnt",
"j",
"cnt",
"++j",
"++j",
"j",
"{\n ss[in.nextInt()-1] += 1;\n }",
"{\n ss[in.nextInt()-1] += 1;\n }",
"ss[in.nextInt()-1] += 1",
"ss[in.nextInt()-1]",
"ss",
"in.nextInt()-1",
"in.nextInt()",
"in.nextInt",
"in",
"1",
"1",
"int result = 0;",
"result",
"0",
"for (int i = 0; i < n; ++i) {\n if (ss[i] == 0) {\n ++result;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"++i",
"++i",
"i",
"{\n if (ss[i] == 0) {\n ++result;\n }\n }",
"{\n if (ss[i] == 0) {\n ++result;\n }\n }",
"if (ss[i] == 0) {\n ++result;\n }",
"ss[i] == 0",
"ss[i]",
"ss",
"i",
"0",
"{\n ++result;\n }",
"++result",
"result",
"out.println(result)",
"out.println",
"out",
"result",
"int testNumber",
"testNumber",
"InputReader in",
"in",
"PrintWriter out",
"out",
"static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }",
"InputReader",
"public BufferedReader reader;",
"reader",
"public StringTokenizer tokenizer;",
"tokenizer",
"public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }",
"InputReader",
"{\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }",
"reader = new BufferedReader(new InputStreamReader(stream), 32768)",
"reader",
"new BufferedReader(new InputStreamReader(stream), 32768)",
"tokenizer = null",
"tokenizer",
"null",
"InputStream stream",
"stream",
"public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"next",
"{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n tokenizer = new StringTokenizer(reader.readLine());\n }",
"tokenizer = new StringTokenizer(reader.readLine())",
"tokenizer",
"new StringTokenizer(reader.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"public int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int k = in.nextInt();\n\n int[] ss = new int[n];\n\n for (int i = 0; i < k; ++i) {\n int cnt = in.nextInt();\n for (int j = 0; j < cnt; ++j) {\n ss[in.nextInt()-1] += 1;\n }\n }\n\n int result = 0;\n for (int i = 0; i < n; ++i) {\n if (ss[i] == 0) {\n ++result;\n }\n }\n\n out.println(result);\n }\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int k = in.nextInt();\n\n int[] ss = new int[n];\n\n for (int i = 0; i < k; ++i) {\n int cnt = in.nextInt();\n for (int j = 0; j < cnt; ++j) {\n ss[in.nextInt()-1] += 1;\n }\n }\n\n int result = 0;\n for (int i = 0; i < n; ++i) {\n if (ss[i] == 0) {\n ++result;\n }\n }\n\n out.println(result);\n }\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n}",
"Main"
] |
//package beginner166.b;
import java.io.*;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
TaskB solver = new TaskB();
solver.solve(1, in, out);
out.close();
}
static class TaskB {
public void solve(int testNumber, InputReader in, PrintWriter out) {
int n = in.nextInt();
int k = in.nextInt();
int[] ss = new int[n];
for (int i = 0; i < k; ++i) {
int cnt = in.nextInt();
for (int j = 0; j < cnt; ++j) {
ss[in.nextInt()-1] += 1;
}
}
int result = 0;
for (int i = 0; i < n; ++i) {
if (ss[i] == 0) {
++result;
}
}
out.println(result);
}
}
static class InputReader {
public BufferedReader reader;
public StringTokenizer tokenizer;
public InputReader(InputStream stream) {
reader = new BufferedReader(new InputStreamReader(stream), 32768);
tokenizer = null;
}
public String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
40,
18,
13,
2,
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,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
33,
43
],
[
43,
44
],
[
44,
45
],
[
33,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
71,
72
],
[
65,
73
],
[
73,
74
],
[
73,
75
],
[
76,
77
],
[
76,
78
],
[
65,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
79,
89
],
[
89,
90
],
[
90,
91
],
[
79,
92
],
[
93,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
99,
100
],
[
65,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
108,
110
],
[
101,
111
],
[
111,
112
],
[
112,
113
],
[
101,
114
],
[
115,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
8,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
131,
133
],
[
124,
134
],
[
134,
135
],
[
135,
136
],
[
124,
137
],
[
138,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
139,
145
],
[
145,
146
],
[
146,
147
],
[
8,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
6,
154
],
[
154,
155
]
] |
[
"import java.util.Scanner;\n\nclass Main {\n\n public static void main(String[] args) {\n Scanner stdIn=new Scanner(System.in);\n \n int N=stdIn.nextInt();\n int K=stdIn.nextInt();\n int []c=new int[N];\n int count=0;\n\n \n int []d=new int[K];\n for(int i=0; i<c.length; i++){\n c[i]=0;\n }\n\n for(int i=0; i<K; i++){\n d[i]=stdIn.nextInt();\n int []a=new int[d[i]];\n for(int j=0; j<d[i]; j++){\n a[j]=stdIn.nextInt();\n }\n for(int k=0; k<d[i]; k++){\n c[a[k]-1]++;\n }\n }\n for(int i=0; i<c.length; i++){\n if(c[i]==0){\n count++;\n }\n }\n System.out.println(count);\n \n \n \n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\n public static void main(String[] args) {\n Scanner stdIn=new Scanner(System.in);\n \n int N=stdIn.nextInt();\n int K=stdIn.nextInt();\n int []c=new int[N];\n int count=0;\n\n \n int []d=new int[K];\n for(int i=0; i<c.length; i++){\n c[i]=0;\n }\n\n for(int i=0; i<K; i++){\n d[i]=stdIn.nextInt();\n int []a=new int[d[i]];\n for(int j=0; j<d[i]; j++){\n a[j]=stdIn.nextInt();\n }\n for(int k=0; k<d[i]; k++){\n c[a[k]-1]++;\n }\n }\n for(int i=0; i<c.length; i++){\n if(c[i]==0){\n count++;\n }\n }\n System.out.println(count);\n \n \n \n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner stdIn=new Scanner(System.in);\n \n int N=stdIn.nextInt();\n int K=stdIn.nextInt();\n int []c=new int[N];\n int count=0;\n\n \n int []d=new int[K];\n for(int i=0; i<c.length; i++){\n c[i]=0;\n }\n\n for(int i=0; i<K; i++){\n d[i]=stdIn.nextInt();\n int []a=new int[d[i]];\n for(int j=0; j<d[i]; j++){\n a[j]=stdIn.nextInt();\n }\n for(int k=0; k<d[i]; k++){\n c[a[k]-1]++;\n }\n }\n for(int i=0; i<c.length; i++){\n if(c[i]==0){\n count++;\n }\n }\n System.out.println(count);\n \n \n \n }",
"main",
"{\n Scanner stdIn=new Scanner(System.in);\n \n int N=stdIn.nextInt();\n int K=stdIn.nextInt();\n int []c=new int[N];\n int count=0;\n\n \n int []d=new int[K];\n for(int i=0; i<c.length; i++){\n c[i]=0;\n }\n\n for(int i=0; i<K; i++){\n d[i]=stdIn.nextInt();\n int []a=new int[d[i]];\n for(int j=0; j<d[i]; j++){\n a[j]=stdIn.nextInt();\n }\n for(int k=0; k<d[i]; k++){\n c[a[k]-1]++;\n }\n }\n for(int i=0; i<c.length; i++){\n if(c[i]==0){\n count++;\n }\n }\n System.out.println(count);\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 K=stdIn.nextInt();",
"K",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int []c=new int[N];",
"c",
"new int[N]",
"N",
"int count=0;",
"count",
"0",
"int []d=new int[K];",
"d",
"new int[K]",
"K",
"for(int i=0; i<c.length; i++){\n c[i]=0;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<c.length",
"i",
"c.length",
"c",
"c.length",
"i++",
"i++",
"i",
"{\n c[i]=0;\n }",
"{\n c[i]=0;\n }",
"c[i]=0",
"c[i]",
"c",
"i",
"0",
"for(int i=0; i<K; i++){\n d[i]=stdIn.nextInt();\n int []a=new int[d[i]];\n for(int j=0; j<d[i]; j++){\n a[j]=stdIn.nextInt();\n }\n for(int k=0; k<d[i]; k++){\n c[a[k]-1]++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<K",
"i",
"K",
"i++",
"i++",
"i",
"{\n d[i]=stdIn.nextInt();\n int []a=new int[d[i]];\n for(int j=0; j<d[i]; j++){\n a[j]=stdIn.nextInt();\n }\n for(int k=0; k<d[i]; k++){\n c[a[k]-1]++;\n }\n }",
"{\n d[i]=stdIn.nextInt();\n int []a=new int[d[i]];\n for(int j=0; j<d[i]; j++){\n a[j]=stdIn.nextInt();\n }\n for(int k=0; k<d[i]; k++){\n c[a[k]-1]++;\n }\n }",
"d[i]=stdIn.nextInt()",
"d[i]",
"d",
"i",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int []a=new int[d[i]];",
"a",
"new int[d[i]]",
"d[i]",
"d",
"i",
"for(int j=0; j<d[i]; j++){\n a[j]=stdIn.nextInt();\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<d[i]",
"j",
"d[i]",
"d",
"i",
"j++",
"j++",
"j",
"{\n a[j]=stdIn.nextInt();\n }",
"{\n a[j]=stdIn.nextInt();\n }",
"a[j]=stdIn.nextInt()",
"a[j]",
"a",
"j",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"for(int k=0; k<d[i]; k++){\n c[a[k]-1]++;\n }",
"int k=0;",
"int k=0;",
"k",
"0",
"k<d[i]",
"k",
"d[i]",
"d",
"i",
"k++",
"k++",
"k",
"{\n c[a[k]-1]++;\n }",
"{\n c[a[k]-1]++;\n }",
"c[a[k]-1]++",
"c[a[k]-1]",
"c",
"a[k]-1",
"a[k]",
"a",
"k",
"1",
"for(int i=0; i<c.length; i++){\n if(c[i]==0){\n count++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<c.length",
"i",
"c.length",
"c",
"c.length",
"i++",
"i++",
"i",
"{\n if(c[i]==0){\n count++;\n }\n }",
"{\n if(c[i]==0){\n count++;\n }\n }",
"if(c[i]==0){\n count++;\n }",
"c[i]==0",
"c[i]",
"c",
"i",
"0",
"{\n count++;\n }",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args"
] |
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner stdIn=new Scanner(System.in);
int N=stdIn.nextInt();
int K=stdIn.nextInt();
int []c=new int[N];
int count=0;
int []d=new int[K];
for(int i=0; i<c.length; i++){
c[i]=0;
}
for(int i=0; i<K; i++){
d[i]=stdIn.nextInt();
int []a=new int[d[i]];
for(int j=0; j<d[i]; j++){
a[j]=stdIn.nextInt();
}
for(int k=0; k<d[i]; k++){
c[a[k]-1]++;
}
}
for(int i=0; i<c.length; i++){
if(c[i]==0){
count++;
}
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
40,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
126,
5
],
[
126,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
28,
38
],
[
38,
39
],
[
39,
40
],
[
28,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
48,
58
],
[
58,
59
],
[
59,
60
],
[
48,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
62,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
80,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
8,
90
],
[
90,
91
],
[
90,
92
],
[
8,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
93,
103
],
[
103,
104
],
[
104,
105
],
[
93,
106
],
[
107,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
108,
114
],
[
114,
115
],
[
115,
116
],
[
8,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
6,
123
],
[
123,
124
],
[
0,
125
],
[
125,
126
],
[
125,
127
]
] |
[
"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 K = sc.nextInt();\n\t\tint[] A=new int[N+1];\n\t\t\n\t\tfor(int i=0;i<N+1;i++) {\n\t\t\tA[i]=0;\n\t\t}\n\t\t\n\t\tfor(int i=1;i<K+1;i++) {\n\t\t\tint d=sc.nextInt();\n\t\t\tfor(int j=0;j<d;j++) {\n\t\t\t\tint l=sc.nextInt();\n\t\t\t\tA[l]++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint count=0;\n\t\t\n\t\tfor(int k=1;k<N+1;k++) {\n\t\t\tif(A[k]==0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\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 K = sc.nextInt();\n\t\tint[] A=new int[N+1];\n\t\t\n\t\tfor(int i=0;i<N+1;i++) {\n\t\t\tA[i]=0;\n\t\t}\n\t\t\n\t\tfor(int i=1;i<K+1;i++) {\n\t\t\tint d=sc.nextInt();\n\t\t\tfor(int j=0;j<d;j++) {\n\t\t\t\tint l=sc.nextInt();\n\t\t\t\tA[l]++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint count=0;\n\t\t\n\t\tfor(int k=1;k<N+1;k++) {\n\t\t\tif(A[k]==0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\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 K = sc.nextInt();\n\t\tint[] A=new int[N+1];\n\t\t\n\t\tfor(int i=0;i<N+1;i++) {\n\t\t\tA[i]=0;\n\t\t}\n\t\t\n\t\tfor(int i=1;i<K+1;i++) {\n\t\t\tint d=sc.nextInt();\n\t\t\tfor(int j=0;j<d;j++) {\n\t\t\t\tint l=sc.nextInt();\n\t\t\t\tA[l]++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint count=0;\n\t\t\n\t\tfor(int k=1;k<N+1;k++) {\n\t\t\tif(A[k]==0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t\t\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\tint[] A=new int[N+1];\n\t\t\n\t\tfor(int i=0;i<N+1;i++) {\n\t\t\tA[i]=0;\n\t\t}\n\t\t\n\t\tfor(int i=1;i<K+1;i++) {\n\t\t\tint d=sc.nextInt();\n\t\t\tfor(int j=0;j<d;j++) {\n\t\t\t\tint l=sc.nextInt();\n\t\t\t\tA[l]++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint count=0;\n\t\t\n\t\tfor(int k=1;k<N+1;k++) {\n\t\t\tif(A[k]==0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\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 K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] A=new int[N+1];",
"A",
"new int[N+1]",
"N+1",
"N",
"1",
"for(int i=0;i<N+1;i++) {\n\t\t\tA[i]=0;\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\tA[i]=0;\n\t\t}",
"{\n\t\t\tA[i]=0;\n\t\t}",
"A[i]=0",
"A[i]",
"A",
"i",
"0",
"for(int i=1;i<K+1;i++) {\n\t\t\tint d=sc.nextInt();\n\t\t\tfor(int j=0;j<d;j++) {\n\t\t\t\tint l=sc.nextInt();\n\t\t\t\tA[l]++;\n\t\t\t}\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<K+1",
"i",
"K+1",
"K",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tint d=sc.nextInt();\n\t\t\tfor(int j=0;j<d;j++) {\n\t\t\t\tint l=sc.nextInt();\n\t\t\t\tA[l]++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint d=sc.nextInt();\n\t\t\tfor(int j=0;j<d;j++) {\n\t\t\t\tint l=sc.nextInt();\n\t\t\t\tA[l]++;\n\t\t\t}\n\t\t}",
"int d=sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j=0;j<d;j++) {\n\t\t\t\tint l=sc.nextInt();\n\t\t\t\tA[l]++;\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<d",
"j",
"d",
"j++",
"j++",
"j",
"{\n\t\t\t\tint l=sc.nextInt();\n\t\t\t\tA[l]++;\n\t\t\t}",
"{\n\t\t\t\tint l=sc.nextInt();\n\t\t\t\tA[l]++;\n\t\t\t}",
"int l=sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"A[l]++",
"A[l]",
"A",
"l",
"int count=0;",
"count",
"0",
"for(int k=1;k<N+1;k++) {\n\t\t\tif(A[k]==0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"int k=1;",
"int k=1;",
"k",
"1",
"k<N+1",
"k",
"N+1",
"N",
"1",
"k++",
"k++",
"k",
"{\n\t\t\tif(A[k]==0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(A[k]==0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"if(A[k]==0) {\n\t\t\t\tcount++;\n\t\t\t}",
"A[k]==0",
"A[k]",
"A",
"k",
"0",
"{\n\t\t\t\tcount++;\n\t\t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"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 K = sc.nextInt();\n\t\tint[] A=new int[N+1];\n\t\t\n\t\tfor(int i=0;i<N+1;i++) {\n\t\t\tA[i]=0;\n\t\t}\n\t\t\n\t\tfor(int i=1;i<K+1;i++) {\n\t\t\tint d=sc.nextInt();\n\t\t\tfor(int j=0;j<d;j++) {\n\t\t\t\tint l=sc.nextInt();\n\t\t\t\tA[l]++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint count=0;\n\t\t\n\t\tfor(int k=1;k<N+1;k++) {\n\t\t\tif(A[k]==0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\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 K = sc.nextInt();\n\t\tint[] A=new int[N+1];\n\t\t\n\t\tfor(int i=0;i<N+1;i++) {\n\t\t\tA[i]=0;\n\t\t}\n\t\t\n\t\tfor(int i=1;i<K+1;i++) {\n\t\t\tint d=sc.nextInt();\n\t\t\tfor(int j=0;j<d;j++) {\n\t\t\t\tint l=sc.nextInt();\n\t\t\t\tA[l]++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint count=0;\n\t\t\n\t\tfor(int k=1;k<N+1;k++) {\n\t\t\tif(A[k]==0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\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 K = sc.nextInt();
int[] A=new int[N+1];
for(int i=0;i<N+1;i++) {
A[i]=0;
}
for(int i=1;i<K+1;i++) {
int d=sc.nextInt();
for(int j=0;j<d;j++) {
int l=sc.nextInt();
A[l]++;
}
}
int count=0;
for(int k=1;k<N+1;k++) {
if(A[k]==0) {
count++;
}
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
20,
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,
13,
1,
40,
13,
30,
30,
0,
18,
13,
2,
4,
18,
13,
17,
17,
41,
13,
17,
28,
13,
13,
30,
30,
14,
13,
9,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
97,
11
],
[
97,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
14,
31
],
[
31,
32
],
[
31,
33
],
[
14,
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
],
[
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
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
69,
73
],
[
66,
74
],
[
14,
75
],
[
75,
76
],
[
75,
77
],
[
14,
78
],
[
78,
79
],
[
78,
80
],
[
78,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
14,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
12,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
] |
[
"import java.util.*;\nimport java.util.function.*;\nimport java.math.*;\npublic class Main {\n public static void main(String[] args){\nScanner s = new Scanner(System.in);\n\t\tint N = s.nextInt();\n\t\tint K = s.nextInt();\n\t\tint d = 0;\n\t\tboolean[] have = new boolean[N];\n\t\tfor(int i = 0; i < K;i++) {\n\t\t\td = s.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\thave[s.nextInt() - 1] = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint counter = 0;\n\t\tfor(boolean b : have) {\n\t\t\tif(b)\n\t\t\t\tcontinue;\n\t\t\tcounter++;\n\t\t}\n\t\t\n\t\tSystem.out.println(counter);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.util.function.*;",
"function.*",
"java.util",
"import java.math.*;",
"math.*",
"java",
"public class Main {\n public static void main(String[] args){\nScanner s = new Scanner(System.in);\n\t\tint N = s.nextInt();\n\t\tint K = s.nextInt();\n\t\tint d = 0;\n\t\tboolean[] have = new boolean[N];\n\t\tfor(int i = 0; i < K;i++) {\n\t\t\td = s.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\thave[s.nextInt() - 1] = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint counter = 0;\n\t\tfor(boolean b : have) {\n\t\t\tif(b)\n\t\t\t\tcontinue;\n\t\t\tcounter++;\n\t\t}\n\t\t\n\t\tSystem.out.println(counter);\n }\n}",
"Main",
"public static void main(String[] args){\nScanner s = new Scanner(System.in);\n\t\tint N = s.nextInt();\n\t\tint K = s.nextInt();\n\t\tint d = 0;\n\t\tboolean[] have = new boolean[N];\n\t\tfor(int i = 0; i < K;i++) {\n\t\t\td = s.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\thave[s.nextInt() - 1] = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint counter = 0;\n\t\tfor(boolean b : have) {\n\t\t\tif(b)\n\t\t\t\tcontinue;\n\t\t\tcounter++;\n\t\t}\n\t\t\n\t\tSystem.out.println(counter);\n }",
"main",
"{\nScanner s = new Scanner(System.in);\n\t\tint N = s.nextInt();\n\t\tint K = s.nextInt();\n\t\tint d = 0;\n\t\tboolean[] have = new boolean[N];\n\t\tfor(int i = 0; i < K;i++) {\n\t\t\td = s.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\thave[s.nextInt() - 1] = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint counter = 0;\n\t\tfor(boolean b : have) {\n\t\t\tif(b)\n\t\t\t\tcontinue;\n\t\t\tcounter++;\n\t\t}\n\t\t\n\t\tSystem.out.println(counter);\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int N = s.nextInt();",
"N",
"s.nextInt()",
"s.nextInt",
"s",
"int K = s.nextInt();",
"K",
"s.nextInt()",
"s.nextInt",
"s",
"int d = 0;",
"d",
"0",
"boolean[] have = new boolean[N];",
"have",
"new boolean[N]",
"N",
"for(int i = 0; i < K;i++) {\n\t\t\td = s.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\thave[s.nextInt() - 1] = true;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < K",
"i",
"K",
"i++",
"i++",
"i",
"{\n\t\t\td = s.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\thave[s.nextInt() - 1] = true;\n\t\t\t}\n\t\t}",
"{\n\t\t\td = s.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\thave[s.nextInt() - 1] = true;\n\t\t\t}\n\t\t}",
"d = s.nextInt()",
"d",
"s.nextInt()",
"s.nextInt",
"s",
"for(int j = 0; j < d; j++) {\n\t\t\t\thave[s.nextInt() - 1] = true;\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < d",
"j",
"d",
"j++",
"j++",
"j",
"{\n\t\t\t\thave[s.nextInt() - 1] = true;\n\t\t\t}",
"{\n\t\t\t\thave[s.nextInt() - 1] = true;\n\t\t\t}",
"have[s.nextInt() - 1] = true",
"have[s.nextInt() - 1]",
"have",
"s.nextInt() - 1",
"s.nextInt()",
"s.nextInt",
"s",
"1",
"true",
"int counter = 0;",
"counter",
"0",
"for(boolean b : have) {\n\t\t\tif(b)\n\t\t\t\tcontinue;\n\t\t\tcounter++;\n\t\t}",
"boolean b",
"have",
"{\n\t\t\tif(b)\n\t\t\t\tcontinue;\n\t\t\tcounter++;\n\t\t}",
"{\n\t\t\tif(b)\n\t\t\t\tcontinue;\n\t\t\tcounter++;\n\t\t}",
"if(b)\n\t\t\t\tcontinue;",
"b",
"continue;",
"counter++",
"counter",
"System.out.println(counter)",
"System.out.println",
"System.out",
"System",
"System.out",
"counter",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\nScanner s = new Scanner(System.in);\n\t\tint N = s.nextInt();\n\t\tint K = s.nextInt();\n\t\tint d = 0;\n\t\tboolean[] have = new boolean[N];\n\t\tfor(int i = 0; i < K;i++) {\n\t\t\td = s.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\thave[s.nextInt() - 1] = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint counter = 0;\n\t\tfor(boolean b : have) {\n\t\t\tif(b)\n\t\t\t\tcontinue;\n\t\t\tcounter++;\n\t\t}\n\t\t\n\t\tSystem.out.println(counter);\n }\n}",
"public class Main {\n public static void main(String[] args){\nScanner s = new Scanner(System.in);\n\t\tint N = s.nextInt();\n\t\tint K = s.nextInt();\n\t\tint d = 0;\n\t\tboolean[] have = new boolean[N];\n\t\tfor(int i = 0; i < K;i++) {\n\t\t\td = s.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\thave[s.nextInt() - 1] = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint counter = 0;\n\t\tfor(boolean b : have) {\n\t\t\tif(b)\n\t\t\t\tcontinue;\n\t\t\tcounter++;\n\t\t}\n\t\t\n\t\tSystem.out.println(counter);\n }\n}",
"Main"
] |
import java.util.*;
import java.util.function.*;
import java.math.*;
public class Main {
public static void main(String[] args){
Scanner s = new Scanner(System.in);
int N = s.nextInt();
int K = s.nextInt();
int d = 0;
boolean[] have = new boolean[N];
for(int i = 0; i < K;i++) {
d = s.nextInt();
for(int j = 0; j < d; j++) {
have[s.nextInt() - 1] = true;
}
}
int counter = 0;
for(boolean b : have) {
if(b)
continue;
counter++;
}
System.out.println(counter);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
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,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
99,
8
],
[
99,
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
],
[
28,
30
],
[
11,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
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
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
60,
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
],
[
79,
82
],
[
82,
83
],
[
83,
84
],
[
11,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
91,
92
],
[
11,
93
],
[
93,
94
],
[
94,
95
],
[
9,
96
],
[
96,
97
],
[
0,
98
],
[
98,
99
],
[
98,
100
]
] |
[
"import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint human = sc.nextInt();\n\t\tint okashi = sc.nextInt();\n\t\tint cnt = 0;\n\n\t\tArrayList<Integer> list = new ArrayList<>();\n\n\t\tfor(int i = 1; i <= human; i++){\n\t\t\tlist.add(i);\n\t\t}\n\n\t\tfor(int i = 0; i < okashi; i++){\n\t\t\tcnt = sc.nextInt();\n\t\t\tfor(int j = 0; j < cnt; j++){\n\t\t\t\tlist.remove((Object)sc.nextInt());\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(list.size());\n\n\t\tsc.close();\n\t}\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint human = sc.nextInt();\n\t\tint okashi = sc.nextInt();\n\t\tint cnt = 0;\n\n\t\tArrayList<Integer> list = new ArrayList<>();\n\n\t\tfor(int i = 1; i <= human; i++){\n\t\t\tlist.add(i);\n\t\t}\n\n\t\tfor(int i = 0; i < okashi; i++){\n\t\t\tcnt = sc.nextInt();\n\t\t\tfor(int j = 0; j < cnt; j++){\n\t\t\t\tlist.remove((Object)sc.nextInt());\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(list.size());\n\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint human = sc.nextInt();\n\t\tint okashi = sc.nextInt();\n\t\tint cnt = 0;\n\n\t\tArrayList<Integer> list = new ArrayList<>();\n\n\t\tfor(int i = 1; i <= human; i++){\n\t\t\tlist.add(i);\n\t\t}\n\n\t\tfor(int i = 0; i < okashi; i++){\n\t\t\tcnt = sc.nextInt();\n\t\t\tfor(int j = 0; j < cnt; j++){\n\t\t\t\tlist.remove((Object)sc.nextInt());\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(list.size());\n\n\t\tsc.close();\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint human = sc.nextInt();\n\t\tint okashi = sc.nextInt();\n\t\tint cnt = 0;\n\n\t\tArrayList<Integer> list = new ArrayList<>();\n\n\t\tfor(int i = 1; i <= human; i++){\n\t\t\tlist.add(i);\n\t\t}\n\n\t\tfor(int i = 0; i < okashi; i++){\n\t\t\tcnt = sc.nextInt();\n\t\t\tfor(int j = 0; j < cnt; j++){\n\t\t\t\tlist.remove((Object)sc.nextInt());\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(list.size());\n\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int human = sc.nextInt();",
"human",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int okashi = sc.nextInt();",
"okashi",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int cnt = 0;",
"cnt",
"0",
"ArrayList<Integer> list = new ArrayList<>();",
"list",
"new ArrayList<>()",
"for(int i = 1; i <= human; i++){\n\t\t\tlist.add(i);\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= human",
"i",
"human",
"i++",
"i++",
"i",
"{\n\t\t\tlist.add(i);\n\t\t}",
"{\n\t\t\tlist.add(i);\n\t\t}",
"list.add(i)",
"list.add",
"list",
"i",
"for(int i = 0; i < okashi; i++){\n\t\t\tcnt = sc.nextInt();\n\t\t\tfor(int j = 0; j < cnt; j++){\n\t\t\t\tlist.remove((Object)sc.nextInt());\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < okashi",
"i",
"okashi",
"i++",
"i++",
"i",
"{\n\t\t\tcnt = sc.nextInt();\n\t\t\tfor(int j = 0; j < cnt; j++){\n\t\t\t\tlist.remove((Object)sc.nextInt());\n\t\t\t}\n\t\t}",
"{\n\t\t\tcnt = sc.nextInt();\n\t\t\tfor(int j = 0; j < cnt; j++){\n\t\t\t\tlist.remove((Object)sc.nextInt());\n\t\t\t}\n\t\t}",
"cnt = sc.nextInt()",
"cnt",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j = 0; j < cnt; j++){\n\t\t\t\tlist.remove((Object)sc.nextInt());\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < cnt",
"j",
"cnt",
"j++",
"j++",
"j",
"{\n\t\t\t\tlist.remove((Object)sc.nextInt());\n\t\t\t}",
"{\n\t\t\t\tlist.remove((Object)sc.nextInt());\n\t\t\t}",
"list.remove((Object)sc.nextInt())",
"list.remove",
"list",
"(Object)sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println(list.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"list.size()",
"list.size",
"list",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint human = sc.nextInt();\n\t\tint okashi = sc.nextInt();\n\t\tint cnt = 0;\n\n\t\tArrayList<Integer> list = new ArrayList<>();\n\n\t\tfor(int i = 1; i <= human; i++){\n\t\t\tlist.add(i);\n\t\t}\n\n\t\tfor(int i = 0; i < okashi; i++){\n\t\t\tcnt = sc.nextInt();\n\t\t\tfor(int j = 0; j < cnt; j++){\n\t\t\t\tlist.remove((Object)sc.nextInt());\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(list.size());\n\n\t\tsc.close();\n\t}\n}",
"public class Main{\n public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint human = sc.nextInt();\n\t\tint okashi = sc.nextInt();\n\t\tint cnt = 0;\n\n\t\tArrayList<Integer> list = new ArrayList<>();\n\n\t\tfor(int i = 1; i <= human; i++){\n\t\t\tlist.add(i);\n\t\t}\n\n\t\tfor(int i = 0; i < okashi; i++){\n\t\t\tcnt = sc.nextInt();\n\t\t\tfor(int j = 0; j < cnt; j++){\n\t\t\t\tlist.remove((Object)sc.nextInt());\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(list.size());\n\n\t\tsc.close();\n\t}\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);
int human = sc.nextInt();
int okashi = sc.nextInt();
int cnt = 0;
ArrayList<Integer> list = new ArrayList<>();
for(int i = 1; i <= human; i++){
list.add(i);
}
for(int i = 0; i < okashi; i++){
cnt = sc.nextInt();
for(int j = 0; j < cnt; j++){
list.remove((Object)sc.nextInt());
}
}
System.out.println(list.size());
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
18,
13,
2,
13,
17,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
113,
5
],
[
113,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
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
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
52,
62
],
[
62,
63
],
[
63,
64
],
[
52,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
66,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
72,
78
],
[
8,
79
],
[
79,
80
],
[
79,
81
],
[
8,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
82,
90
],
[
90,
91
],
[
91,
92
],
[
82,
93
],
[
94,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
95,
101
],
[
101,
102
],
[
102,
103
],
[
8,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
6,
110
],
[
110,
111
],
[
0,
112
],
[
112,
113
],
[
112,
114
]
] |
[
"import java.util.Scanner;\n\n/**\n * Main\n */\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] d = new int[K];\n int[] A = new int[N];\n int tmp;\n\n for(int i=0; i<K; i++){\n d[i] = sc.nextInt();\n for(int j=0; j<d[i]; j++){\n tmp = sc.nextInt();\n A[tmp-1] = 1;\n }\n }\n\n int count = 0;\n for(int i=0; i<N; i++){\n if(A[i]==0){\n count++;\n }\n }\n System.out.println(count);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] d = new int[K];\n int[] A = new int[N];\n int tmp;\n\n for(int i=0; i<K; i++){\n d[i] = sc.nextInt();\n for(int j=0; j<d[i]; j++){\n tmp = sc.nextInt();\n A[tmp-1] = 1;\n }\n }\n\n int count = 0;\n for(int i=0; i<N; i++){\n if(A[i]==0){\n count++;\n }\n }\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] d = new int[K];\n int[] A = new int[N];\n int tmp;\n\n for(int i=0; i<K; i++){\n d[i] = sc.nextInt();\n for(int j=0; j<d[i]; j++){\n tmp = sc.nextInt();\n A[tmp-1] = 1;\n }\n }\n\n int count = 0;\n for(int i=0; i<N; i++){\n if(A[i]==0){\n count++;\n }\n }\n System.out.println(count);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] d = new int[K];\n int[] A = new int[N];\n int tmp;\n\n for(int i=0; i<K; i++){\n d[i] = sc.nextInt();\n for(int j=0; j<d[i]; j++){\n tmp = sc.nextInt();\n A[tmp-1] = 1;\n }\n }\n\n int count = 0;\n for(int i=0; i<N; i++){\n if(A[i]==0){\n count++;\n }\n }\n System.out.println(count);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] d = new int[K];",
"d",
"new int[K]",
"K",
"int[] A = new int[N];",
"A",
"new int[N]",
"N",
"int tmp;",
"tmp",
"for(int i=0; i<K; i++){\n d[i] = sc.nextInt();\n for(int j=0; j<d[i]; j++){\n tmp = sc.nextInt();\n A[tmp-1] = 1;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<K",
"i",
"K",
"i++",
"i++",
"i",
"{\n d[i] = sc.nextInt();\n for(int j=0; j<d[i]; j++){\n tmp = sc.nextInt();\n A[tmp-1] = 1;\n }\n }",
"{\n d[i] = sc.nextInt();\n for(int j=0; j<d[i]; j++){\n tmp = sc.nextInt();\n A[tmp-1] = 1;\n }\n }",
"d[i] = sc.nextInt()",
"d[i]",
"d",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j=0; j<d[i]; j++){\n tmp = sc.nextInt();\n A[tmp-1] = 1;\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<d[i]",
"j",
"d[i]",
"d",
"i",
"j++",
"j++",
"j",
"{\n tmp = sc.nextInt();\n A[tmp-1] = 1;\n }",
"{\n tmp = sc.nextInt();\n A[tmp-1] = 1;\n }",
"tmp = sc.nextInt()",
"tmp",
"sc.nextInt()",
"sc.nextInt",
"sc",
"A[tmp-1] = 1",
"A[tmp-1]",
"A",
"tmp-1",
"tmp",
"1",
"1",
"int count = 0;",
"count",
"0",
"for(int i=0; i<N; i++){\n if(A[i]==0){\n count++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n if(A[i]==0){\n count++;\n }\n }",
"{\n if(A[i]==0){\n count++;\n }\n }",
"if(A[i]==0){\n count++;\n }",
"A[i]==0",
"A[i]",
"A",
"i",
"0",
"{\n count++;\n }",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] d = new int[K];\n int[] A = new int[N];\n int tmp;\n\n for(int i=0; i<K; i++){\n d[i] = sc.nextInt();\n for(int j=0; j<d[i]; j++){\n tmp = sc.nextInt();\n A[tmp-1] = 1;\n }\n }\n\n int count = 0;\n for(int i=0; i<N; i++){\n if(A[i]==0){\n count++;\n }\n }\n System.out.println(count);\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] d = new int[K];\n int[] A = new int[N];\n int tmp;\n\n for(int i=0; i<K; i++){\n d[i] = sc.nextInt();\n for(int j=0; j<d[i]; j++){\n tmp = sc.nextInt();\n A[tmp-1] = 1;\n }\n }\n\n int count = 0;\n for(int i=0; i<N; i++){\n if(A[i]==0){\n count++;\n }\n }\n System.out.println(count);\n }\n}",
"Main"
] |
import java.util.Scanner;
/**
* Main
*/
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int K = sc.nextInt();
int[] d = new int[K];
int[] A = new int[N];
int tmp;
for(int i=0; i<K; i++){
d[i] = sc.nextInt();
for(int j=0; j<d[i]; j++){
tmp = sc.nextInt();
A[tmp-1] = 1;
}
}
int count = 0;
for(int i=0; i<N; i++){
if(A[i]==0){
count++;
}
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
0,
18,
13,
2,
13,
17,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
40,
18,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
121,
8
],
[
121,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
29,
30
],
[
11,
31
],
[
31,
32
],
[
31,
33
],
[
11,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
35,
39
],
[
11,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
59,
60
],
[
52,
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
],
[
76,
79
],
[
79,
80
],
[
80,
81
],
[
73,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
82,
88
],
[
11,
89
],
[
89,
90
],
[
89,
91
],
[
11,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
92,
100
],
[
100,
101
],
[
101,
102
],
[
92,
103
],
[
104,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
11,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
9,
118
],
[
118,
119
],
[
0,
120
],
[
120,
121
],
[
120,
122
]
] |
[
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int n = Integer.parseInt(s.next());\n int k = Integer.parseInt(s.next());\n\n boolean[] flag = new boolean[n];\n Arrays.fill(flag, false);\n\n for (int i = 0; i < k; i++) {\n\n int d = Integer.parseInt(s.next());\n for (int j = 0; j < d; j++) {\n int dn = Integer.parseInt(s.next());\n flag[dn - 1] = true;\n }\n }\n\n int count = 0;\n\n for (int i = 0; i < n; i++) {\n if (!flag[i])\n count++;\n }\n\n System.out.println(count);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int n = Integer.parseInt(s.next());\n int k = Integer.parseInt(s.next());\n\n boolean[] flag = new boolean[n];\n Arrays.fill(flag, false);\n\n for (int i = 0; i < k; i++) {\n\n int d = Integer.parseInt(s.next());\n for (int j = 0; j < d; j++) {\n int dn = Integer.parseInt(s.next());\n flag[dn - 1] = true;\n }\n }\n\n int count = 0;\n\n for (int i = 0; i < n; i++) {\n if (!flag[i])\n count++;\n }\n\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int n = Integer.parseInt(s.next());\n int k = Integer.parseInt(s.next());\n\n boolean[] flag = new boolean[n];\n Arrays.fill(flag, false);\n\n for (int i = 0; i < k; i++) {\n\n int d = Integer.parseInt(s.next());\n for (int j = 0; j < d; j++) {\n int dn = Integer.parseInt(s.next());\n flag[dn - 1] = true;\n }\n }\n\n int count = 0;\n\n for (int i = 0; i < n; i++) {\n if (!flag[i])\n count++;\n }\n\n System.out.println(count);\n }",
"main",
"{\n Scanner s = new Scanner(System.in);\n int n = Integer.parseInt(s.next());\n int k = Integer.parseInt(s.next());\n\n boolean[] flag = new boolean[n];\n Arrays.fill(flag, false);\n\n for (int i = 0; i < k; i++) {\n\n int d = Integer.parseInt(s.next());\n for (int j = 0; j < d; j++) {\n int dn = Integer.parseInt(s.next());\n flag[dn - 1] = true;\n }\n }\n\n int count = 0;\n\n for (int i = 0; i < n; i++) {\n if (!flag[i])\n count++;\n }\n\n System.out.println(count);\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int n = Integer.parseInt(s.next());",
"n",
"Integer.parseInt(s.next())",
"Integer.parseInt",
"Integer",
"s.next()",
"s.next",
"s",
"int k = Integer.parseInt(s.next());",
"k",
"Integer.parseInt(s.next())",
"Integer.parseInt",
"Integer",
"s.next()",
"s.next",
"s",
"boolean[] flag = new boolean[n];",
"flag",
"new boolean[n]",
"n",
"Arrays.fill(flag, false)",
"Arrays.fill",
"Arrays",
"flag",
"false",
"for (int i = 0; i < k; i++) {\n\n int d = Integer.parseInt(s.next());\n for (int j = 0; j < d; j++) {\n int dn = Integer.parseInt(s.next());\n flag[dn - 1] = true;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"{\n\n int d = Integer.parseInt(s.next());\n for (int j = 0; j < d; j++) {\n int dn = Integer.parseInt(s.next());\n flag[dn - 1] = true;\n }\n }",
"{\n\n int d = Integer.parseInt(s.next());\n for (int j = 0; j < d; j++) {\n int dn = Integer.parseInt(s.next());\n flag[dn - 1] = true;\n }\n }",
"int d = Integer.parseInt(s.next());",
"d",
"Integer.parseInt(s.next())",
"Integer.parseInt",
"Integer",
"s.next()",
"s.next",
"s",
"for (int j = 0; j < d; j++) {\n int dn = Integer.parseInt(s.next());\n flag[dn - 1] = true;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < d",
"j",
"d",
"j++",
"j++",
"j",
"{\n int dn = Integer.parseInt(s.next());\n flag[dn - 1] = true;\n }",
"{\n int dn = Integer.parseInt(s.next());\n flag[dn - 1] = true;\n }",
"int dn = Integer.parseInt(s.next());",
"dn",
"Integer.parseInt(s.next())",
"Integer.parseInt",
"Integer",
"s.next()",
"s.next",
"s",
"flag[dn - 1] = true",
"flag[dn - 1]",
"flag",
"dn - 1",
"dn",
"1",
"true",
"int count = 0;",
"count",
"0",
"for (int i = 0; i < n; i++) {\n if (!flag[i])\n count++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if (!flag[i])\n count++;\n }",
"{\n if (!flag[i])\n count++;\n }",
"if (!flag[i])\n count++;",
"!flag[i]",
"flag[i]",
"flag",
"i",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int n = Integer.parseInt(s.next());\n int k = Integer.parseInt(s.next());\n\n boolean[] flag = new boolean[n];\n Arrays.fill(flag, false);\n\n for (int i = 0; i < k; i++) {\n\n int d = Integer.parseInt(s.next());\n for (int j = 0; j < d; j++) {\n int dn = Integer.parseInt(s.next());\n flag[dn - 1] = true;\n }\n }\n\n int count = 0;\n\n for (int i = 0; i < n; i++) {\n if (!flag[i])\n count++;\n }\n\n System.out.println(count);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int n = Integer.parseInt(s.next());\n int k = Integer.parseInt(s.next());\n\n boolean[] flag = new boolean[n];\n Arrays.fill(flag, false);\n\n for (int i = 0; i < k; i++) {\n\n int d = Integer.parseInt(s.next());\n for (int j = 0; j < d; j++) {\n int dn = Integer.parseInt(s.next());\n flag[dn - 1] = true;\n }\n }\n\n int count = 0;\n\n for (int i = 0; i < n; i++) {\n if (!flag[i])\n count++;\n }\n\n System.out.println(count);\n }\n}",
"Main"
] |
import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int n = Integer.parseInt(s.next());
int k = Integer.parseInt(s.next());
boolean[] flag = new boolean[n];
Arrays.fill(flag, false);
for (int i = 0; i < k; i++) {
int d = Integer.parseInt(s.next());
for (int j = 0; j < d; j++) {
int dn = Integer.parseInt(s.next());
flag[dn - 1] = true;
}
}
int count = 0;
for (int i = 0; i < n; i++) {
if (!flag[i])
count++;
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
18,
13,
13,
30,
40,
13,
4,
18,
13,
4,
18,
13,
2,
13,
13,
23,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
154,
17
],
[
154,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
20,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
20,
31
],
[
31,
32
],
[
31,
33
],
[
20,
34
],
[
34,
35
],
[
34,
36
],
[
20,
37
],
[
37,
38
],
[
37,
39
],
[
20,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
40,
45
],
[
20,
46
],
[
46,
47
],
[
47,
48
],
[
18,
49
],
[
49,
50
],
[
154,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
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
],
[
66,
68
],
[
69,
70
],
[
69,
71
],
[
55,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
72,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
84,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
90,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
102,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
55,
113
],
[
113,
114
],
[
113,
115
],
[
55,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
123,
125
],
[
116,
126
],
[
126,
127
],
[
127,
128
],
[
116,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
135,
136
],
[
136,
137
],
[
55,
138
],
[
138,
139
],
[
139,
140
],
[
138,
141
],
[
141,
142
],
[
142,
143
],
[
141,
144
],
[
144,
145
],
[
144,
146
],
[
53,
147
],
[
147,
148
],
[
53,
149
],
[
149,
150
],
[
53,
151
],
[
151,
152
],
[
0,
153
],
[
153,
154
],
[
153,
155
]
] |
[
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TrickOrTreat solver = new TrickOrTreat();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TrickOrTreat {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int n = in.nextInt();\n int k = in.nextInt();\n\n boolean[] statuses = new boolean[n + 1];\n\n for (int i = 0; i < k; i++) {\n int d = in.nextInt();\n for (int j = 0; j < d; j++) {\n int a = in.nextInt();\n statuses[a] = true;\n }\n }\n\n int result = 0;\n for (int i = 1; i < statuses.length; i++) {\n if (statuses[i]) {\n result++;\n }\n }\n out.append(String.valueOf(n - result));\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"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.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TrickOrTreat solver = new TrickOrTreat();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TrickOrTreat {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int n = in.nextInt();\n int k = in.nextInt();\n\n boolean[] statuses = new boolean[n + 1];\n\n for (int i = 0; i < k; i++) {\n int d = in.nextInt();\n for (int j = 0; j < d; j++) {\n int a = in.nextInt();\n statuses[a] = true;\n }\n }\n\n int result = 0;\n for (int i = 1; i < statuses.length; i++) {\n if (statuses[i]) {\n result++;\n }\n }\n out.append(String.valueOf(n - result));\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TrickOrTreat solver = new TrickOrTreat();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TrickOrTreat solver = new TrickOrTreat();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"Scanner in = new Scanner(inputStream);",
"in",
"new Scanner(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"TrickOrTreat solver = new TrickOrTreat();",
"solver",
"new TrickOrTreat()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class TrickOrTreat {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int n = in.nextInt();\n int k = in.nextInt();\n\n boolean[] statuses = new boolean[n + 1];\n\n for (int i = 0; i < k; i++) {\n int d = in.nextInt();\n for (int j = 0; j < d; j++) {\n int a = in.nextInt();\n statuses[a] = true;\n }\n }\n\n int result = 0;\n for (int i = 1; i < statuses.length; i++) {\n if (statuses[i]) {\n result++;\n }\n }\n out.append(String.valueOf(n - result));\n }\n\n }",
"TrickOrTreat",
"public void solve(int testNumber, Scanner in, PrintWriter out) {\n int n = in.nextInt();\n int k = in.nextInt();\n\n boolean[] statuses = new boolean[n + 1];\n\n for (int i = 0; i < k; i++) {\n int d = in.nextInt();\n for (int j = 0; j < d; j++) {\n int a = in.nextInt();\n statuses[a] = true;\n }\n }\n\n int result = 0;\n for (int i = 1; i < statuses.length; i++) {\n if (statuses[i]) {\n result++;\n }\n }\n out.append(String.valueOf(n - result));\n }",
"solve",
"{\n int n = in.nextInt();\n int k = in.nextInt();\n\n boolean[] statuses = new boolean[n + 1];\n\n for (int i = 0; i < k; i++) {\n int d = in.nextInt();\n for (int j = 0; j < d; j++) {\n int a = in.nextInt();\n statuses[a] = true;\n }\n }\n\n int result = 0;\n for (int i = 1; i < statuses.length; i++) {\n if (statuses[i]) {\n result++;\n }\n }\n out.append(String.valueOf(n - result));\n }",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"int k = in.nextInt();",
"k",
"in.nextInt()",
"in.nextInt",
"in",
"boolean[] statuses = new boolean[n + 1];",
"statuses",
"new boolean[n + 1]",
"n + 1",
"n",
"1",
"for (int i = 0; i < k; i++) {\n int d = in.nextInt();\n for (int j = 0; j < d; j++) {\n int a = in.nextInt();\n statuses[a] = true;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"{\n int d = in.nextInt();\n for (int j = 0; j < d; j++) {\n int a = in.nextInt();\n statuses[a] = true;\n }\n }",
"{\n int d = in.nextInt();\n for (int j = 0; j < d; j++) {\n int a = in.nextInt();\n statuses[a] = true;\n }\n }",
"int d = in.nextInt();",
"d",
"in.nextInt()",
"in.nextInt",
"in",
"for (int j = 0; j < d; j++) {\n int a = in.nextInt();\n statuses[a] = true;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < d",
"j",
"d",
"j++",
"j++",
"j",
"{\n int a = in.nextInt();\n statuses[a] = true;\n }",
"{\n int a = in.nextInt();\n statuses[a] = true;\n }",
"int a = in.nextInt();",
"a",
"in.nextInt()",
"in.nextInt",
"in",
"statuses[a] = true",
"statuses[a]",
"statuses",
"a",
"true",
"int result = 0;",
"result",
"0",
"for (int i = 1; i < statuses.length; i++) {\n if (statuses[i]) {\n result++;\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < statuses.length",
"i",
"statuses.length",
"statuses",
"statuses.length",
"i++",
"i++",
"i",
"{\n if (statuses[i]) {\n result++;\n }\n }",
"{\n if (statuses[i]) {\n result++;\n }\n }",
"if (statuses[i]) {\n result++;\n }",
"statuses[i]",
"statuses",
"i",
"{\n result++;\n }",
"result++",
"result",
"out.append(String.valueOf(n - result))",
"out.append",
"out",
"String.valueOf(n - result)",
"String.valueOf",
"String",
"n - result",
"n",
"result",
"int testNumber",
"testNumber",
"Scanner in",
"in",
"PrintWriter out",
"out",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TrickOrTreat solver = new TrickOrTreat();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TrickOrTreat {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int n = in.nextInt();\n int k = in.nextInt();\n\n boolean[] statuses = new boolean[n + 1];\n\n for (int i = 0; i < k; i++) {\n int d = in.nextInt();\n for (int j = 0; j < d; j++) {\n int a = in.nextInt();\n statuses[a] = true;\n }\n }\n\n int result = 0;\n for (int i = 1; i < statuses.length; i++) {\n if (statuses[i]) {\n result++;\n }\n }\n out.append(String.valueOf(n - result));\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TrickOrTreat solver = new TrickOrTreat();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TrickOrTreat {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int n = in.nextInt();\n int k = in.nextInt();\n\n boolean[] statuses = new boolean[n + 1];\n\n for (int i = 0; i < k; i++) {\n int d = in.nextInt();\n for (int j = 0; j < d; j++) {\n int a = in.nextInt();\n statuses[a] = true;\n }\n }\n\n int result = 0;\n for (int i = 1; i < statuses.length; i++) {\n if (statuses[i]) {\n result++;\n }\n }\n out.append(String.valueOf(n - result));\n }\n\n }\n}",
"Main"
] |
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
Scanner in = new Scanner(inputStream);
PrintWriter out = new PrintWriter(outputStream);
TrickOrTreat solver = new TrickOrTreat();
solver.solve(1, in, out);
out.close();
}
static class TrickOrTreat {
public void solve(int testNumber, Scanner in, PrintWriter out) {
int n = in.nextInt();
int k = in.nextInt();
boolean[] statuses = new boolean[n + 1];
for (int i = 0; i < k; i++) {
int d = in.nextInt();
for (int j = 0; j < d; j++) {
int a = in.nextInt();
statuses[a] = true;
}
}
int result = 0;
for (int i = 1; i < statuses.length; i++) {
if (statuses[i]) {
result++;
}
}
out.append(String.valueOf(n - result));
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
2,
13,
17,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
40,
2,
18,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
115,
5
],
[
115,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
50,
60
],
[
60,
61
],
[
61,
62
],
[
50,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
64,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
70,
76
],
[
8,
77
],
[
77,
78
],
[
77,
79
],
[
8,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
80,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
93,
100
],
[
100,
101
],
[
101,
102
],
[
8,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
8,
109
],
[
109,
110
],
[
110,
111
],
[
6,
112
],
[
112,
113
],
[
0,
114
],
[
114,
115
],
[
114,
116
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int N = s.nextInt();\n int K = s.nextInt();\n int d[] = new int[K];\n int A[] = new int[N];\n\n for (int i = 0; i < K; i++) {\n d[i] = s.nextInt();\n for (int j = 0; j < d[i]; j++) {\n int num = s.nextInt();\n A[num - 1] = 1;\n }\n }\n\n int count = 0;\n for (int i = 0; i < N; i++) {\n if (!(A[i] == 1)) {\n count++;\n }\n }\n System.out.println(count);\n\n s.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int N = s.nextInt();\n int K = s.nextInt();\n int d[] = new int[K];\n int A[] = new int[N];\n\n for (int i = 0; i < K; i++) {\n d[i] = s.nextInt();\n for (int j = 0; j < d[i]; j++) {\n int num = s.nextInt();\n A[num - 1] = 1;\n }\n }\n\n int count = 0;\n for (int i = 0; i < N; i++) {\n if (!(A[i] == 1)) {\n count++;\n }\n }\n System.out.println(count);\n\n s.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int N = s.nextInt();\n int K = s.nextInt();\n int d[] = new int[K];\n int A[] = new int[N];\n\n for (int i = 0; i < K; i++) {\n d[i] = s.nextInt();\n for (int j = 0; j < d[i]; j++) {\n int num = s.nextInt();\n A[num - 1] = 1;\n }\n }\n\n int count = 0;\n for (int i = 0; i < N; i++) {\n if (!(A[i] == 1)) {\n count++;\n }\n }\n System.out.println(count);\n\n s.close();\n }",
"main",
"{\n Scanner s = new Scanner(System.in);\n int N = s.nextInt();\n int K = s.nextInt();\n int d[] = new int[K];\n int A[] = new int[N];\n\n for (int i = 0; i < K; i++) {\n d[i] = s.nextInt();\n for (int j = 0; j < d[i]; j++) {\n int num = s.nextInt();\n A[num - 1] = 1;\n }\n }\n\n int count = 0;\n for (int i = 0; i < N; i++) {\n if (!(A[i] == 1)) {\n count++;\n }\n }\n System.out.println(count);\n\n s.close();\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int N = s.nextInt();",
"N",
"s.nextInt()",
"s.nextInt",
"s",
"int K = s.nextInt();",
"K",
"s.nextInt()",
"s.nextInt",
"s",
"int d[] = new int[K];",
"d",
"new int[K]",
"K",
"int A[] = new int[N];",
"A",
"new int[N]",
"N",
"for (int i = 0; i < K; i++) {\n d[i] = s.nextInt();\n for (int j = 0; j < d[i]; j++) {\n int num = s.nextInt();\n A[num - 1] = 1;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < K",
"i",
"K",
"i++",
"i++",
"i",
"{\n d[i] = s.nextInt();\n for (int j = 0; j < d[i]; j++) {\n int num = s.nextInt();\n A[num - 1] = 1;\n }\n }",
"{\n d[i] = s.nextInt();\n for (int j = 0; j < d[i]; j++) {\n int num = s.nextInt();\n A[num - 1] = 1;\n }\n }",
"d[i] = s.nextInt()",
"d[i]",
"d",
"i",
"s.nextInt()",
"s.nextInt",
"s",
"for (int j = 0; j < d[i]; j++) {\n int num = s.nextInt();\n A[num - 1] = 1;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < d[i]",
"j",
"d[i]",
"d",
"i",
"j++",
"j++",
"j",
"{\n int num = s.nextInt();\n A[num - 1] = 1;\n }",
"{\n int num = s.nextInt();\n A[num - 1] = 1;\n }",
"int num = s.nextInt();",
"num",
"s.nextInt()",
"s.nextInt",
"s",
"A[num - 1] = 1",
"A[num - 1]",
"A",
"num - 1",
"num",
"1",
"1",
"int count = 0;",
"count",
"0",
"for (int i = 0; i < N; i++) {\n if (!(A[i] == 1)) {\n count++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n if (!(A[i] == 1)) {\n count++;\n }\n }",
"{\n if (!(A[i] == 1)) {\n count++;\n }\n }",
"if (!(A[i] == 1)) {\n count++;\n }",
"!(A[i] == 1)",
"(A[i] == 1)",
"A[i]",
"A",
"i",
"1",
"{\n count++;\n }",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"s.close()",
"s.close",
"s",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int N = s.nextInt();\n int K = s.nextInt();\n int d[] = new int[K];\n int A[] = new int[N];\n\n for (int i = 0; i < K; i++) {\n d[i] = s.nextInt();\n for (int j = 0; j < d[i]; j++) {\n int num = s.nextInt();\n A[num - 1] = 1;\n }\n }\n\n int count = 0;\n for (int i = 0; i < N; i++) {\n if (!(A[i] == 1)) {\n count++;\n }\n }\n System.out.println(count);\n\n s.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int N = s.nextInt();\n int K = s.nextInt();\n int d[] = new int[K];\n int A[] = new int[N];\n\n for (int i = 0; i < K; i++) {\n d[i] = s.nextInt();\n for (int j = 0; j < d[i]; j++) {\n int num = s.nextInt();\n A[num - 1] = 1;\n }\n }\n\n int count = 0;\n for (int i = 0; i < N; i++) {\n if (!(A[i] == 1)) {\n count++;\n }\n }\n System.out.println(count);\n\n s.close();\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int N = s.nextInt();
int K = s.nextInt();
int d[] = new int[K];
int A[] = new int[N];
for (int i = 0; i < K; i++) {
d[i] = s.nextInt();
for (int j = 0; j < d[i]; j++) {
int num = s.nextInt();
A[num - 1] = 1;
}
}
int count = 0;
for (int i = 0; i < N; i++) {
if (!(A[i] == 1)) {
count++;
}
}
System.out.println(count);
s.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
78,
5
],
[
78,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
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
],
[
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
],
[
62,
63
],
[
61,
64
],
[
8,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
6,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner scan = new Scanner(System.in);\n HashSet<Integer> hs = new HashSet<Integer>();\n int n=scan.nextInt();\n int k=scan.nextInt();\n for(int i=0;i<k;i++){\n int z=scan.nextInt();\n for(int j=0;j<z;j++){\n int wk=scan.nextInt();\n hs.add(wk);\n }\n }\n System.out.println(n-hs.size());\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner scan = new Scanner(System.in);\n HashSet<Integer> hs = new HashSet<Integer>();\n int n=scan.nextInt();\n int k=scan.nextInt();\n for(int i=0;i<k;i++){\n int z=scan.nextInt();\n for(int j=0;j<z;j++){\n int wk=scan.nextInt();\n hs.add(wk);\n }\n }\n System.out.println(n-hs.size());\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner scan = new Scanner(System.in);\n HashSet<Integer> hs = new HashSet<Integer>();\n int n=scan.nextInt();\n int k=scan.nextInt();\n for(int i=0;i<k;i++){\n int z=scan.nextInt();\n for(int j=0;j<z;j++){\n int wk=scan.nextInt();\n hs.add(wk);\n }\n }\n System.out.println(n-hs.size());\n }",
"main",
"{\n // Your code here!\n Scanner scan = new Scanner(System.in);\n HashSet<Integer> hs = new HashSet<Integer>();\n int n=scan.nextInt();\n int k=scan.nextInt();\n for(int i=0;i<k;i++){\n int z=scan.nextInt();\n for(int j=0;j<z;j++){\n int wk=scan.nextInt();\n hs.add(wk);\n }\n }\n System.out.println(n-hs.size());\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"HashSet<Integer> hs = new HashSet<Integer>();",
"hs",
"new HashSet<Integer>()",
"int n=scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int k=scan.nextInt();",
"k",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i=0;i<k;i++){\n int z=scan.nextInt();\n for(int j=0;j<z;j++){\n int wk=scan.nextInt();\n hs.add(wk);\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<k",
"i",
"k",
"i++",
"i++",
"i",
"{\n int z=scan.nextInt();\n for(int j=0;j<z;j++){\n int wk=scan.nextInt();\n hs.add(wk);\n }\n }",
"{\n int z=scan.nextInt();\n for(int j=0;j<z;j++){\n int wk=scan.nextInt();\n hs.add(wk);\n }\n }",
"int z=scan.nextInt();",
"z",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int j=0;j<z;j++){\n int wk=scan.nextInt();\n hs.add(wk);\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<z",
"j",
"z",
"j++",
"j++",
"j",
"{\n int wk=scan.nextInt();\n hs.add(wk);\n }",
"{\n int wk=scan.nextInt();\n hs.add(wk);\n }",
"int wk=scan.nextInt();",
"wk",
"scan.nextInt()",
"scan.nextInt",
"scan",
"hs.add(wk)",
"hs.add",
"hs",
"wk",
"System.out.println(n-hs.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"n-hs.size()",
"n",
"hs.size()",
"hs.size",
"hs",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner scan = new Scanner(System.in);\n HashSet<Integer> hs = new HashSet<Integer>();\n int n=scan.nextInt();\n int k=scan.nextInt();\n for(int i=0;i<k;i++){\n int z=scan.nextInt();\n for(int j=0;j<z;j++){\n int wk=scan.nextInt();\n hs.add(wk);\n }\n }\n System.out.println(n-hs.size());\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner scan = new Scanner(System.in);\n HashSet<Integer> hs = new HashSet<Integer>();\n int n=scan.nextInt();\n int k=scan.nextInt();\n for(int i=0;i<k;i++){\n int z=scan.nextInt();\n for(int j=0;j<z;j++){\n int wk=scan.nextInt();\n hs.add(wk);\n }\n }\n System.out.println(n-hs.size());\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner scan = new Scanner(System.in);
HashSet<Integer> hs = new HashSet<Integer>();
int n=scan.nextInt();
int k=scan.nextInt();
for(int i=0;i<k;i++){
int z=scan.nextInt();
for(int j=0;j<z;j++){
int wk=scan.nextInt();
hs.add(wk);
}
}
System.out.println(n-hs.size());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
13,
17,
4,
18,
18,
13,
13,
2,
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
],
[
88,
11
],
[
88,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
14,
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
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
67,
74
],
[
14,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
12,
85
],
[
85,
86
],
[
0,
87
],
[
87,
88
],
[
87,
89
]
] |
[
"import java.util.HashMap;\nimport java.util.Map;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\t\tMap<Integer,String> m = new HashMap<Integer,String>();\n\n\t\tfor(int i = 0;i < k;i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int x = 0;x < d;x++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tm.put(Integer.valueOf(a), \"a\");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(n - m.size());\n\t}\n}",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.Map;",
"Map",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\t\tMap<Integer,String> m = new HashMap<Integer,String>();\n\n\t\tfor(int i = 0;i < k;i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int x = 0;x < d;x++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tm.put(Integer.valueOf(a), \"a\");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(n - m.size());\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 k = sc.nextInt();\n\t\tMap<Integer,String> m = new HashMap<Integer,String>();\n\n\t\tfor(int i = 0;i < k;i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int x = 0;x < d;x++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tm.put(Integer.valueOf(a), \"a\");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(n - m.size());\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\t\tMap<Integer,String> m = new HashMap<Integer,String>();\n\n\t\tfor(int i = 0;i < k;i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int x = 0;x < d;x++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tm.put(Integer.valueOf(a), \"a\");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(n - m.size());\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Map<Integer,String> m = new HashMap<Integer,String>();",
"m",
"new HashMap<Integer,String>()",
"for(int i = 0;i < k;i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int x = 0;x < d;x++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tm.put(Integer.valueOf(a), \"a\");\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"{\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int x = 0;x < d;x++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tm.put(Integer.valueOf(a), \"a\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int x = 0;x < d;x++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tm.put(Integer.valueOf(a), \"a\");\n\t\t\t}\n\t\t}",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int x = 0;x < d;x++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tm.put(Integer.valueOf(a), \"a\");\n\t\t\t}",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < d",
"x",
"d",
"x++",
"x++",
"x",
"{\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tm.put(Integer.valueOf(a), \"a\");\n\t\t\t}",
"{\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tm.put(Integer.valueOf(a), \"a\");\n\t\t\t}",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"m.put(Integer.valueOf(a), \"a\")",
"m.put",
"m",
"Integer.valueOf(a)",
"Integer.valueOf",
"Integer",
"a",
"\"a\"",
"System.out.println(n - m.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"n - m.size()",
"n",
"m.size()",
"m.size",
"m",
"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 k = sc.nextInt();\n\t\tMap<Integer,String> m = new HashMap<Integer,String>();\n\n\t\tfor(int i = 0;i < k;i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int x = 0;x < d;x++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tm.put(Integer.valueOf(a), \"a\");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(n - m.size());\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 k = sc.nextInt();\n\t\tMap<Integer,String> m = new HashMap<Integer,String>();\n\n\t\tfor(int i = 0;i < k;i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int x = 0;x < d;x++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tm.put(Integer.valueOf(a), \"a\");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(n - m.size());\n\t}\n}",
"Main"
] |
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int k = sc.nextInt();
Map<Integer,String> m = new HashMap<Integer,String>();
for(int i = 0;i < k;i++) {
int d = sc.nextInt();
for(int x = 0;x < d;x++) {
int a = sc.nextInt();
m.put(Integer.valueOf(a), "a");
}
}
System.out.println(n - m.size());
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
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,
13,
1,
40,
13,
30,
30,
40,
18,
13,
2,
4,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
117,
5
],
[
117,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
62,
70
],
[
70,
71
],
[
71,
72
],
[
62,
73
],
[
74,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
78,
82
],
[
8,
83
],
[
83,
84
],
[
83,
85
],
[
8,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
86,
94
],
[
94,
95
],
[
95,
96
],
[
86,
97
],
[
98,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
99,
105
],
[
105,
106
],
[
106,
107
],
[
8,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
6,
114
],
[
114,
115
],
[
0,
116
],
[
116,
117
],
[
116,
118
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int k=sc.nextInt();\n int goal[]=new int[n];\n for (int i=0;i<n;i++){\n goal[i]=0;\n }\n for (int i=1;i<=k;i++){\n int d=sc.nextInt();\n for(int j=0;j<d;j++){\n goal[sc.nextInt()-1]++;\n }\n }\n\nint num=0;\n for (int i=0;i<n;i++){\n if(goal[i]==0){\n num++;\n }\n }\n\n System.out.println(num);\n\n\n\n\n\n\n\n\n\n\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int k=sc.nextInt();\n int goal[]=new int[n];\n for (int i=0;i<n;i++){\n goal[i]=0;\n }\n for (int i=1;i<=k;i++){\n int d=sc.nextInt();\n for(int j=0;j<d;j++){\n goal[sc.nextInt()-1]++;\n }\n }\n\nint num=0;\n for (int i=0;i<n;i++){\n if(goal[i]==0){\n num++;\n }\n }\n\n System.out.println(num);\n\n\n\n\n\n\n\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 int k=sc.nextInt();\n int goal[]=new int[n];\n for (int i=0;i<n;i++){\n goal[i]=0;\n }\n for (int i=1;i<=k;i++){\n int d=sc.nextInt();\n for(int j=0;j<d;j++){\n goal[sc.nextInt()-1]++;\n }\n }\n\nint num=0;\n for (int i=0;i<n;i++){\n if(goal[i]==0){\n num++;\n }\n }\n\n System.out.println(num);\n\n\n\n\n\n\n\n\n\n\n\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int k=sc.nextInt();\n int goal[]=new int[n];\n for (int i=0;i<n;i++){\n goal[i]=0;\n }\n for (int i=1;i<=k;i++){\n int d=sc.nextInt();\n for(int j=0;j<d;j++){\n goal[sc.nextInt()-1]++;\n }\n }\n\nint num=0;\n for (int i=0;i<n;i++){\n if(goal[i]==0){\n num++;\n }\n }\n\n System.out.println(num);\n\n\n\n\n\n\n\n\n\n\n\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int k=sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int goal[]=new int[n];",
"goal",
"new int[n]",
"n",
"for (int i=0;i<n;i++){\n goal[i]=0;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n goal[i]=0;\n }",
"{\n goal[i]=0;\n }",
"goal[i]=0",
"goal[i]",
"goal",
"i",
"0",
"for (int i=1;i<=k;i++){\n int d=sc.nextInt();\n for(int j=0;j<d;j++){\n goal[sc.nextInt()-1]++;\n }\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=k",
"i",
"k",
"i++",
"i++",
"i",
"{\n int d=sc.nextInt();\n for(int j=0;j<d;j++){\n goal[sc.nextInt()-1]++;\n }\n }",
"{\n int d=sc.nextInt();\n for(int j=0;j<d;j++){\n goal[sc.nextInt()-1]++;\n }\n }",
"int d=sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j=0;j<d;j++){\n goal[sc.nextInt()-1]++;\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<d",
"j",
"d",
"j++",
"j++",
"j",
"{\n goal[sc.nextInt()-1]++;\n }",
"{\n goal[sc.nextInt()-1]++;\n }",
"goal[sc.nextInt()-1]++",
"goal[sc.nextInt()-1]",
"goal",
"sc.nextInt()-1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"int num=0;",
"num",
"0",
"for (int i=0;i<n;i++){\n if(goal[i]==0){\n num++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(goal[i]==0){\n num++;\n }\n }",
"{\n if(goal[i]==0){\n num++;\n }\n }",
"if(goal[i]==0){\n num++;\n }",
"goal[i]==0",
"goal[i]",
"goal",
"i",
"0",
"{\n num++;\n }",
"num++",
"num",
"System.out.println(num)",
"System.out.println",
"System.out",
"System",
"System.out",
"num",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int k=sc.nextInt();\n int goal[]=new int[n];\n for (int i=0;i<n;i++){\n goal[i]=0;\n }\n for (int i=1;i<=k;i++){\n int d=sc.nextInt();\n for(int j=0;j<d;j++){\n goal[sc.nextInt()-1]++;\n }\n }\n\nint num=0;\n for (int i=0;i<n;i++){\n if(goal[i]==0){\n num++;\n }\n }\n\n System.out.println(num);\n\n\n\n\n\n\n\n\n\n\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int k=sc.nextInt();\n int goal[]=new int[n];\n for (int i=0;i<n;i++){\n goal[i]=0;\n }\n for (int i=1;i<=k;i++){\n int d=sc.nextInt();\n for(int j=0;j<d;j++){\n goal[sc.nextInt()-1]++;\n }\n }\n\nint num=0;\n for (int i=0;i<n;i++){\n if(goal[i]==0){\n num++;\n }\n }\n\n System.out.println(num);\n\n\n\n\n\n\n\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);
int n=sc.nextInt();
int k=sc.nextInt();
int goal[]=new int[n];
for (int i=0;i<n;i++){
goal[i]=0;
}
for (int i=1;i<=k;i++){
int d=sc.nextInt();
for(int j=0;j<d;j++){
goal[sc.nextInt()-1]++;
}
}
int num=0;
for (int i=0;i<n;i++){
if(goal[i]==0){
num++;
}
}
System.out.println(num);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
20,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
4,
18,
13,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
2,
13,
4,
18,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
47,
48
],
[
41,
49
],
[
49,
50
],
[
49,
51
],
[
53,
54
],
[
53,
55
],
[
41,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
56,
66
],
[
66,
67
],
[
67,
68
],
[
56,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
70,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
8,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
6,
98
],
[
98,
99
]
] |
[
"import java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n Integer d[] = new Integer[k];\n Set<Integer> num = new HashSet<>();\n\n for( int i=0; i<k; i++ ){\n d[i] = sc.nextInt();\n Integer a[][] = new Integer[k][d[i]];\n\n for( int j=0; j<d[i]; j++ ){\n a[i][j] = sc.nextInt();\n num.add(a[i][j]);\n }\n }\n\n System.out.println( n-num.size() );\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n Integer d[] = new Integer[k];\n Set<Integer> num = new HashSet<>();\n\n for( int i=0; i<k; i++ ){\n d[i] = sc.nextInt();\n Integer a[][] = new Integer[k][d[i]];\n\n for( int j=0; j<d[i]; j++ ){\n a[i][j] = sc.nextInt();\n num.add(a[i][j]);\n }\n }\n\n System.out.println( n-num.size() );\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n Integer d[] = new Integer[k];\n Set<Integer> num = new HashSet<>();\n\n for( int i=0; i<k; i++ ){\n d[i] = sc.nextInt();\n Integer a[][] = new Integer[k][d[i]];\n\n for( int j=0; j<d[i]; j++ ){\n a[i][j] = sc.nextInt();\n num.add(a[i][j]);\n }\n }\n\n System.out.println( n-num.size() );\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n Integer d[] = new Integer[k];\n Set<Integer> num = new HashSet<>();\n\n for( int i=0; i<k; i++ ){\n d[i] = sc.nextInt();\n Integer a[][] = new Integer[k][d[i]];\n\n for( int j=0; j<d[i]; j++ ){\n a[i][j] = sc.nextInt();\n num.add(a[i][j]);\n }\n }\n\n System.out.println( n-num.size() );\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Integer d[] = new Integer[k];",
"d",
"new Integer[k]",
"k",
"Set<Integer> num = new HashSet<>();",
"num",
"new HashSet<>()",
"for( int i=0; i<k; i++ ){\n d[i] = sc.nextInt();\n Integer a[][] = new Integer[k][d[i]];\n\n for( int j=0; j<d[i]; j++ ){\n a[i][j] = sc.nextInt();\n num.add(a[i][j]);\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<k",
"i",
"k",
"i++",
"i++",
"i",
"{\n d[i] = sc.nextInt();\n Integer a[][] = new Integer[k][d[i]];\n\n for( int j=0; j<d[i]; j++ ){\n a[i][j] = sc.nextInt();\n num.add(a[i][j]);\n }\n }",
"{\n d[i] = sc.nextInt();\n Integer a[][] = new Integer[k][d[i]];\n\n for( int j=0; j<d[i]; j++ ){\n a[i][j] = sc.nextInt();\n num.add(a[i][j]);\n }\n }",
"d[i] = sc.nextInt()",
"d[i]",
"d",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Integer a[][] = new Integer[k][d[i]];",
"a",
"new Integer[k][d[i]]",
"k",
"d[i]",
"d",
"i",
"for( int j=0; j<d[i]; j++ ){\n a[i][j] = sc.nextInt();\n num.add(a[i][j]);\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<d[i]",
"j",
"d[i]",
"d",
"i",
"j++",
"j++",
"j",
"{\n a[i][j] = sc.nextInt();\n num.add(a[i][j]);\n }",
"{\n a[i][j] = sc.nextInt();\n num.add(a[i][j]);\n }",
"a[i][j] = sc.nextInt()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"num.add(a[i][j])",
"num.add",
"num",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"System.out.println( n-num.size() )",
"System.out.println",
"System.out",
"System",
"System.out",
"n-num.size()",
"n",
"num.size()",
"num.size",
"num",
"String[] args",
"args"
] |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int k = sc.nextInt();
Integer d[] = new Integer[k];
Set<Integer> num = new HashSet<>();
for( int i=0; i<k; i++ ){
d[i] = sc.nextInt();
Integer a[][] = new Integer[k][d[i]];
for( int j=0; j<d[i]; j++ ){
a[i][j] = sc.nextInt();
num.add(a[i][j]);
}
}
System.out.println( n-num.size() );
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
2,
13,
17,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
40,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
104,
5
],
[
104,
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
],
[
23,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
62,
68
],
[
8,
69
],
[
69,
70
],
[
69,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
72,
82
],
[
82,
83
],
[
83,
84
],
[
72,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
93,
94
],
[
8,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
6,
101
],
[
101,
102
],
[
0,
103
],
[
103,
104
],
[
103,
105
]
] |
[
"import java.util.Scanner;\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner stdIn= new Scanner(System.in);\n int x = stdIn.nextInt();\n boolean [] xx=new boolean[x];\n int y = stdIn.nextInt();\n for(int i=0;i<y;i++){\n int z = stdIn.nextInt();\n for(int t=0;t<z;t++){\n int a = stdIn.nextInt();\n xx[a-1]=true;\n }\n }\n int count=0;\n for(int i=0;i<xx.length;i++){\n if(!xx[i]){\n count++;\n }\n }\n System.out.println(count);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner stdIn= new Scanner(System.in);\n int x = stdIn.nextInt();\n boolean [] xx=new boolean[x];\n int y = stdIn.nextInt();\n for(int i=0;i<y;i++){\n int z = stdIn.nextInt();\n for(int t=0;t<z;t++){\n int a = stdIn.nextInt();\n xx[a-1]=true;\n }\n }\n int count=0;\n for(int i=0;i<xx.length;i++){\n if(!xx[i]){\n count++;\n }\n }\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner stdIn= new Scanner(System.in);\n int x = stdIn.nextInt();\n boolean [] xx=new boolean[x];\n int y = stdIn.nextInt();\n for(int i=0;i<y;i++){\n int z = stdIn.nextInt();\n for(int t=0;t<z;t++){\n int a = stdIn.nextInt();\n xx[a-1]=true;\n }\n }\n int count=0;\n for(int i=0;i<xx.length;i++){\n if(!xx[i]){\n count++;\n }\n }\n System.out.println(count);\n }",
"main",
"{\n Scanner stdIn= new Scanner(System.in);\n int x = stdIn.nextInt();\n boolean [] xx=new boolean[x];\n int y = stdIn.nextInt();\n for(int i=0;i<y;i++){\n int z = stdIn.nextInt();\n for(int t=0;t<z;t++){\n int a = stdIn.nextInt();\n xx[a-1]=true;\n }\n }\n int count=0;\n for(int i=0;i<xx.length;i++){\n if(!xx[i]){\n count++;\n }\n }\n System.out.println(count);\n }",
"Scanner stdIn= new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int x = stdIn.nextInt();",
"x",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"boolean [] xx=new boolean[x];",
"xx",
"new boolean[x]",
"x",
"int y = stdIn.nextInt();",
"y",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"for(int i=0;i<y;i++){\n int z = stdIn.nextInt();\n for(int t=0;t<z;t++){\n int a = stdIn.nextInt();\n xx[a-1]=true;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<y",
"i",
"y",
"i++",
"i++",
"i",
"{\n int z = stdIn.nextInt();\n for(int t=0;t<z;t++){\n int a = stdIn.nextInt();\n xx[a-1]=true;\n }\n }",
"{\n int z = stdIn.nextInt();\n for(int t=0;t<z;t++){\n int a = stdIn.nextInt();\n xx[a-1]=true;\n }\n }",
"int z = stdIn.nextInt();",
"z",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"for(int t=0;t<z;t++){\n int a = stdIn.nextInt();\n xx[a-1]=true;\n }",
"int t=0;",
"int t=0;",
"t",
"0",
"t<z",
"t",
"z",
"t++",
"t++",
"t",
"{\n int a = stdIn.nextInt();\n xx[a-1]=true;\n }",
"{\n int a = stdIn.nextInt();\n xx[a-1]=true;\n }",
"int a = stdIn.nextInt();",
"a",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"xx[a-1]=true",
"xx[a-1]",
"xx",
"a-1",
"a",
"1",
"true",
"int count=0;",
"count",
"0",
"for(int i=0;i<xx.length;i++){\n if(!xx[i]){\n count++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<xx.length",
"i",
"xx.length",
"xx",
"xx.length",
"i++",
"i++",
"i",
"{\n if(!xx[i]){\n count++;\n }\n }",
"{\n if(!xx[i]){\n count++;\n }\n }",
"if(!xx[i]){\n count++;\n }",
"!xx[i]",
"xx[i]",
"xx",
"i",
"{\n count++;\n }",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner stdIn= new Scanner(System.in);\n int x = stdIn.nextInt();\n boolean [] xx=new boolean[x];\n int y = stdIn.nextInt();\n for(int i=0;i<y;i++){\n int z = stdIn.nextInt();\n for(int t=0;t<z;t++){\n int a = stdIn.nextInt();\n xx[a-1]=true;\n }\n }\n int count=0;\n for(int i=0;i<xx.length;i++){\n if(!xx[i]){\n count++;\n }\n }\n System.out.println(count);\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner stdIn= new Scanner(System.in);\n int x = stdIn.nextInt();\n boolean [] xx=new boolean[x];\n int y = stdIn.nextInt();\n for(int i=0;i<y;i++){\n int z = stdIn.nextInt();\n for(int t=0;t<z;t++){\n int a = stdIn.nextInt();\n xx[a-1]=true;\n }\n }\n int count=0;\n for(int i=0;i<xx.length;i++){\n if(!xx[i]){\n count++;\n }\n }\n System.out.println(count);\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner stdIn= new Scanner(System.in);
int x = stdIn.nextInt();
boolean [] xx=new boolean[x];
int y = stdIn.nextInt();
for(int i=0;i<y;i++){
int z = stdIn.nextInt();
for(int t=0;t<z;t++){
int a = stdIn.nextInt();
xx[a-1]=true;
}
}
int count=0;
for(int i=0;i<xx.length;i++){
if(!xx[i]){
count++;
}
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
20,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
13,
4,
18,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
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
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
67,
68
],
[
67,
69
],
[
61,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
14,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
12,
84
],
[
84,
85
]
] |
[
"import java.util.Scanner;\nimport java.util.HashSet;\nimport java.util.Set;\n\nclass Main{\n public static void main(String args[]){\n\tScanner sc = new Scanner(System.in);\n\tint amt = sc.nextInt();\n\tint kind = sc.nextInt();\n\tSet<Integer> st = new HashSet<Integer>();\n\tfor(int i=0;i<kind;i++){\n\t int num = sc.nextInt();\n\t for(int j=0;j<num;j++){\n int tmp = sc.nextInt();\n\t\tInteger id = new Integer(tmp);\n\t\tst.add(id);\n\t }\n\t}\n\tSystem.out.println(amt-st.size());\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"class Main{\n public static void main(String args[]){\n\tScanner sc = new Scanner(System.in);\n\tint amt = sc.nextInt();\n\tint kind = sc.nextInt();\n\tSet<Integer> st = new HashSet<Integer>();\n\tfor(int i=0;i<kind;i++){\n\t int num = sc.nextInt();\n\t for(int j=0;j<num;j++){\n int tmp = sc.nextInt();\n\t\tInteger id = new Integer(tmp);\n\t\tst.add(id);\n\t }\n\t}\n\tSystem.out.println(amt-st.size());\n }\n}",
"Main",
"public static void main(String args[]){\n\tScanner sc = new Scanner(System.in);\n\tint amt = sc.nextInt();\n\tint kind = sc.nextInt();\n\tSet<Integer> st = new HashSet<Integer>();\n\tfor(int i=0;i<kind;i++){\n\t int num = sc.nextInt();\n\t for(int j=0;j<num;j++){\n int tmp = sc.nextInt();\n\t\tInteger id = new Integer(tmp);\n\t\tst.add(id);\n\t }\n\t}\n\tSystem.out.println(amt-st.size());\n }",
"main",
"{\n\tScanner sc = new Scanner(System.in);\n\tint amt = sc.nextInt();\n\tint kind = sc.nextInt();\n\tSet<Integer> st = new HashSet<Integer>();\n\tfor(int i=0;i<kind;i++){\n\t int num = sc.nextInt();\n\t for(int j=0;j<num;j++){\n int tmp = sc.nextInt();\n\t\tInteger id = new Integer(tmp);\n\t\tst.add(id);\n\t }\n\t}\n\tSystem.out.println(amt-st.size());\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int amt = sc.nextInt();",
"amt",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int kind = sc.nextInt();",
"kind",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Set<Integer> st = new HashSet<Integer>();",
"st",
"new HashSet<Integer>()",
"for(int i=0;i<kind;i++){\n\t int num = sc.nextInt();\n\t for(int j=0;j<num;j++){\n int tmp = sc.nextInt();\n\t\tInteger id = new Integer(tmp);\n\t\tst.add(id);\n\t }\n\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<kind",
"i",
"kind",
"i++",
"i++",
"i",
"{\n\t int num = sc.nextInt();\n\t for(int j=0;j<num;j++){\n int tmp = sc.nextInt();\n\t\tInteger id = new Integer(tmp);\n\t\tst.add(id);\n\t }\n\t}",
"{\n\t int num = sc.nextInt();\n\t for(int j=0;j<num;j++){\n int tmp = sc.nextInt();\n\t\tInteger id = new Integer(tmp);\n\t\tst.add(id);\n\t }\n\t}",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j=0;j<num;j++){\n int tmp = sc.nextInt();\n\t\tInteger id = new Integer(tmp);\n\t\tst.add(id);\n\t }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<num",
"j",
"num",
"j++",
"j++",
"j",
"{\n int tmp = sc.nextInt();\n\t\tInteger id = new Integer(tmp);\n\t\tst.add(id);\n\t }",
"{\n int tmp = sc.nextInt();\n\t\tInteger id = new Integer(tmp);\n\t\tst.add(id);\n\t }",
"int tmp = sc.nextInt();",
"tmp",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Integer id = new Integer(tmp);",
"id",
"new Integer(tmp)",
"st.add(id)",
"st.add",
"st",
"id",
"System.out.println(amt-st.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"amt-st.size()",
"amt",
"st.size()",
"st.size",
"st",
"String args[]",
"args"
] |
import java.util.Scanner;
import java.util.HashSet;
import java.util.Set;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int amt = sc.nextInt();
int kind = sc.nextInt();
Set<Integer> st = new HashSet<Integer>();
for(int i=0;i<kind;i++){
int num = sc.nextInt();
for(int j=0;j<num;j++){
int tmp = sc.nextInt();
Integer id = new Integer(tmp);
st.add(id);
}
}
System.out.println(amt-st.size());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
0,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
4,
18,
13,
17,
0,
18,
13,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
14,
40,
18,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
129,
14
],
[
129,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
17,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
38,
39
],
[
17,
40
],
[
40,
41
],
[
40,
42
],
[
17,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
62,
63
],
[
63,
64
],
[
56,
65
],
[
65,
66
],
[
65,
67
],
[
56,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
87,
88
],
[
88,
89
],
[
83,
90
],
[
80,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
17,
96
],
[
96,
97
],
[
96,
98
],
[
17,
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
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
17,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
15,
126
],
[
126,
127
],
[
0,
128
],
[
128,
129
],
[
128,
130
]
] |
[
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main\n{\n\tpublic static void main(String[] Arguments) throws IOException \n\t{\n\t\tBufferedReader BR = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer ST = new StringTokenizer(BR.readLine());\n\t\tint N = Integer.parseInt(ST.nextToken()), K = Integer.parseInt(ST.nextToken()); boolean snukeFed[] = new boolean[N];\n\t\tfor (int i = 1; i <= K; i++)\n\t\t{\n\t\t\tint Snukes = Integer.parseInt(BR.readLine());\n\t\t\tST = new StringTokenizer(BR.readLine());\n\t\t\tfor (int j = 0; j < Snukes; j++)\n\t\t\t{\n\t\t\t\tint Snuke = Integer.parseInt(ST.nextToken()) - 1;\n\t\t\t\tsnukeFed[Snuke] = true; \n\t\t\t}\n\t\t}\n\t\t\n\t\tint Count = 0;\n\t\tfor (int i = 0; i < snukeFed.length; i++) if (!snukeFed[i]) Count++;\n\t\tSystem.out.println(Count);\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.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main\n{\n\tpublic static void main(String[] Arguments) throws IOException \n\t{\n\t\tBufferedReader BR = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer ST = new StringTokenizer(BR.readLine());\n\t\tint N = Integer.parseInt(ST.nextToken()), K = Integer.parseInt(ST.nextToken()); boolean snukeFed[] = new boolean[N];\n\t\tfor (int i = 1; i <= K; i++)\n\t\t{\n\t\t\tint Snukes = Integer.parseInt(BR.readLine());\n\t\t\tST = new StringTokenizer(BR.readLine());\n\t\t\tfor (int j = 0; j < Snukes; j++)\n\t\t\t{\n\t\t\t\tint Snuke = Integer.parseInt(ST.nextToken()) - 1;\n\t\t\t\tsnukeFed[Snuke] = true; \n\t\t\t}\n\t\t}\n\t\t\n\t\tint Count = 0;\n\t\tfor (int i = 0; i < snukeFed.length; i++) if (!snukeFed[i]) Count++;\n\t\tSystem.out.println(Count);\n\t}\n}",
"Main",
"public static void main(String[] Arguments) throws IOException \n\t{\n\t\tBufferedReader BR = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer ST = new StringTokenizer(BR.readLine());\n\t\tint N = Integer.parseInt(ST.nextToken()), K = Integer.parseInt(ST.nextToken()); boolean snukeFed[] = new boolean[N];\n\t\tfor (int i = 1; i <= K; i++)\n\t\t{\n\t\t\tint Snukes = Integer.parseInt(BR.readLine());\n\t\t\tST = new StringTokenizer(BR.readLine());\n\t\t\tfor (int j = 0; j < Snukes; j++)\n\t\t\t{\n\t\t\t\tint Snuke = Integer.parseInt(ST.nextToken()) - 1;\n\t\t\t\tsnukeFed[Snuke] = true; \n\t\t\t}\n\t\t}\n\t\t\n\t\tint Count = 0;\n\t\tfor (int i = 0; i < snukeFed.length; i++) if (!snukeFed[i]) Count++;\n\t\tSystem.out.println(Count);\n\t}",
"main",
"{\n\t\tBufferedReader BR = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer ST = new StringTokenizer(BR.readLine());\n\t\tint N = Integer.parseInt(ST.nextToken()), K = Integer.parseInt(ST.nextToken()); boolean snukeFed[] = new boolean[N];\n\t\tfor (int i = 1; i <= K; i++)\n\t\t{\n\t\t\tint Snukes = Integer.parseInt(BR.readLine());\n\t\t\tST = new StringTokenizer(BR.readLine());\n\t\t\tfor (int j = 0; j < Snukes; j++)\n\t\t\t{\n\t\t\t\tint Snuke = Integer.parseInt(ST.nextToken()) - 1;\n\t\t\t\tsnukeFed[Snuke] = true; \n\t\t\t}\n\t\t}\n\t\t\n\t\tint Count = 0;\n\t\tfor (int i = 0; i < snukeFed.length; i++) if (!snukeFed[i]) Count++;\n\t\tSystem.out.println(Count);\n\t}",
"BufferedReader BR = new BufferedReader(new InputStreamReader(System.in));",
"BR",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer ST = new StringTokenizer(BR.readLine());",
"ST",
"new StringTokenizer(BR.readLine())",
"int N = Integer.parseInt(ST.nextToken())",
"N",
"Integer.parseInt(ST.nextToken())",
"Integer.parseInt",
"Integer",
"ST.nextToken()",
"ST.nextToken",
"ST",
"K = Integer.parseInt(ST.nextToken());",
"K",
"Integer.parseInt(ST.nextToken())",
"Integer.parseInt",
"Integer",
"ST.nextToken()",
"ST.nextToken",
"ST",
"boolean snukeFed[] = new boolean[N];",
"snukeFed",
"new boolean[N]",
"N",
"for (int i = 1; i <= K; i++)\n\t\t{\n\t\t\tint Snukes = Integer.parseInt(BR.readLine());\n\t\t\tST = new StringTokenizer(BR.readLine());\n\t\t\tfor (int j = 0; j < Snukes; j++)\n\t\t\t{\n\t\t\t\tint Snuke = Integer.parseInt(ST.nextToken()) - 1;\n\t\t\t\tsnukeFed[Snuke] = true; \n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= K",
"i",
"K",
"i++",
"i++",
"i",
"{\n\t\t\tint Snukes = Integer.parseInt(BR.readLine());\n\t\t\tST = new StringTokenizer(BR.readLine());\n\t\t\tfor (int j = 0; j < Snukes; j++)\n\t\t\t{\n\t\t\t\tint Snuke = Integer.parseInt(ST.nextToken()) - 1;\n\t\t\t\tsnukeFed[Snuke] = true; \n\t\t\t}\n\t\t}",
"{\n\t\t\tint Snukes = Integer.parseInt(BR.readLine());\n\t\t\tST = new StringTokenizer(BR.readLine());\n\t\t\tfor (int j = 0; j < Snukes; j++)\n\t\t\t{\n\t\t\t\tint Snuke = Integer.parseInt(ST.nextToken()) - 1;\n\t\t\t\tsnukeFed[Snuke] = true; \n\t\t\t}\n\t\t}",
"int Snukes = Integer.parseInt(BR.readLine());",
"Snukes",
"Integer.parseInt(BR.readLine())",
"Integer.parseInt",
"Integer",
"BR.readLine()",
"BR.readLine",
"BR",
"ST = new StringTokenizer(BR.readLine())",
"ST",
"new StringTokenizer(BR.readLine())",
"for (int j = 0; j < Snukes; j++)\n\t\t\t{\n\t\t\t\tint Snuke = Integer.parseInt(ST.nextToken()) - 1;\n\t\t\t\tsnukeFed[Snuke] = true; \n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < Snukes",
"j",
"Snukes",
"j++",
"j++",
"j",
"{\n\t\t\t\tint Snuke = Integer.parseInt(ST.nextToken()) - 1;\n\t\t\t\tsnukeFed[Snuke] = true; \n\t\t\t}",
"{\n\t\t\t\tint Snuke = Integer.parseInt(ST.nextToken()) - 1;\n\t\t\t\tsnukeFed[Snuke] = true; \n\t\t\t}",
"int Snuke = Integer.parseInt(ST.nextToken()) - 1;",
"Snuke",
"Integer.parseInt(ST.nextToken()) - 1",
"Integer.parseInt(ST.nextToken())",
"Integer.parseInt",
"Integer",
"ST.nextToken()",
"ST.nextToken",
"ST",
"1",
"snukeFed[Snuke] = true",
"snukeFed[Snuke]",
"snukeFed",
"Snuke",
"true",
"int Count = 0;",
"Count",
"0",
"for (int i = 0; i < snukeFed.length; i++) if (!snukeFed[i]) Count++;",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < snukeFed.length",
"i",
"snukeFed.length",
"snukeFed",
"snukeFed.length",
"i++",
"i++",
"i",
"if (!snukeFed[i]) Count++;",
"if (!snukeFed[i]) Count++;",
"!snukeFed[i]",
"snukeFed[i]",
"snukeFed",
"i",
"Count++",
"Count",
"System.out.println(Count)",
"System.out.println",
"System.out",
"System",
"System.out",
"Count",
"String[] Arguments",
"Arguments",
"public class Main\n{\n\tpublic static void main(String[] Arguments) throws IOException \n\t{\n\t\tBufferedReader BR = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer ST = new StringTokenizer(BR.readLine());\n\t\tint N = Integer.parseInt(ST.nextToken()), K = Integer.parseInt(ST.nextToken()); boolean snukeFed[] = new boolean[N];\n\t\tfor (int i = 1; i <= K; i++)\n\t\t{\n\t\t\tint Snukes = Integer.parseInt(BR.readLine());\n\t\t\tST = new StringTokenizer(BR.readLine());\n\t\t\tfor (int j = 0; j < Snukes; j++)\n\t\t\t{\n\t\t\t\tint Snuke = Integer.parseInt(ST.nextToken()) - 1;\n\t\t\t\tsnukeFed[Snuke] = true; \n\t\t\t}\n\t\t}\n\t\t\n\t\tint Count = 0;\n\t\tfor (int i = 0; i < snukeFed.length; i++) if (!snukeFed[i]) Count++;\n\t\tSystem.out.println(Count);\n\t}\n}",
"public class Main\n{\n\tpublic static void main(String[] Arguments) throws IOException \n\t{\n\t\tBufferedReader BR = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer ST = new StringTokenizer(BR.readLine());\n\t\tint N = Integer.parseInt(ST.nextToken()), K = Integer.parseInt(ST.nextToken()); boolean snukeFed[] = new boolean[N];\n\t\tfor (int i = 1; i <= K; i++)\n\t\t{\n\t\t\tint Snukes = Integer.parseInt(BR.readLine());\n\t\t\tST = new StringTokenizer(BR.readLine());\n\t\t\tfor (int j = 0; j < Snukes; j++)\n\t\t\t{\n\t\t\t\tint Snuke = Integer.parseInt(ST.nextToken()) - 1;\n\t\t\t\tsnukeFed[Snuke] = true; \n\t\t\t}\n\t\t}\n\t\t\n\t\tint Count = 0;\n\t\tfor (int i = 0; i < snukeFed.length; i++) if (!snukeFed[i]) Count++;\n\t\tSystem.out.println(Count);\n\t}\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main
{
public static void main(String[] Arguments) throws IOException
{
BufferedReader BR = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer ST = new StringTokenizer(BR.readLine());
int N = Integer.parseInt(ST.nextToken()), K = Integer.parseInt(ST.nextToken()); boolean snukeFed[] = new boolean[N];
for (int i = 1; i <= K; i++)
{
int Snukes = Integer.parseInt(BR.readLine());
ST = new StringTokenizer(BR.readLine());
for (int j = 0; j < Snukes; j++)
{
int Snuke = Integer.parseInt(ST.nextToken()) - 1;
snukeFed[Snuke] = true;
}
}
int Count = 0;
for (int i = 0; i < snukeFed.length; i++) if (!snukeFed[i]) Count++;
System.out.println(Count);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
17,
41,
13,
20,
2,
13,
17,
41,
13,
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,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
115,
5
],
[
115,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
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
],
[
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
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
71,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
73,
79
],
[
8,
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
],
[
97,
99
],
[
96,
100
],
[
95,
101
],
[
101,
102
],
[
102,
103
],
[
8,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
109,
110
],
[
109,
111
],
[
6,
112
],
[
112,
113
],
[
0,
114
],
[
114,
115
],
[
114,
116
]
] |
[
"import java.util.*;\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\t\tint a[] = new int[10000];\n\t\tboolean data[] = new boolean[n+1];\n\t\tint count =0;\n\n\t\tfor (int i = 0;i<k ;i++ ) {\n\t\t\t int d = sc.nextInt();\n\t\t\tfor (int j = 0 ;j<d ;j++ ) {\n\t\t\t\ta[j] = sc.nextInt();\n\t\t\t\t data[a[j]]=true;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0;i<n+1 ;i++ ) {\n\t\t\tif (data[i]==false) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count-1);\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\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\t\tint a[] = new int[10000];\n\t\tboolean data[] = new boolean[n+1];\n\t\tint count =0;\n\n\t\tfor (int i = 0;i<k ;i++ ) {\n\t\t\t int d = sc.nextInt();\n\t\t\tfor (int j = 0 ;j<d ;j++ ) {\n\t\t\t\ta[j] = sc.nextInt();\n\t\t\t\t data[a[j]]=true;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0;i<n+1 ;i++ ) {\n\t\t\tif (data[i]==false) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count-1);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\t\tint a[] = new int[10000];\n\t\tboolean data[] = new boolean[n+1];\n\t\tint count =0;\n\n\t\tfor (int i = 0;i<k ;i++ ) {\n\t\t\t int d = sc.nextInt();\n\t\t\tfor (int j = 0 ;j<d ;j++ ) {\n\t\t\t\ta[j] = sc.nextInt();\n\t\t\t\t data[a[j]]=true;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0;i<n+1 ;i++ ) {\n\t\t\tif (data[i]==false) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count-1);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\t\tint a[] = new int[10000];\n\t\tboolean data[] = new boolean[n+1];\n\t\tint count =0;\n\n\t\tfor (int i = 0;i<k ;i++ ) {\n\t\t\t int d = sc.nextInt();\n\t\t\tfor (int j = 0 ;j<d ;j++ ) {\n\t\t\t\ta[j] = sc.nextInt();\n\t\t\t\t data[a[j]]=true;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0;i<n+1 ;i++ ) {\n\t\t\tif (data[i]==false) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count-1);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a[] = new int[10000];",
"a",
"new int[10000]",
"10000",
"boolean data[] = new boolean[n+1];",
"data",
"new boolean[n+1]",
"n+1",
"n",
"1",
"int count =0;",
"count",
"0",
"for (int i = 0;i<k ;i++ ) {\n\t\t\t int d = sc.nextInt();\n\t\t\tfor (int j = 0 ;j<d ;j++ ) {\n\t\t\t\ta[j] = sc.nextInt();\n\t\t\t\t data[a[j]]=true;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<k",
"i",
"k",
"i++",
"i++",
"i",
"{\n\t\t\t int d = sc.nextInt();\n\t\t\tfor (int j = 0 ;j<d ;j++ ) {\n\t\t\t\ta[j] = sc.nextInt();\n\t\t\t\t data[a[j]]=true;\n\t\t\t}\n\t\t}",
"{\n\t\t\t int d = sc.nextInt();\n\t\t\tfor (int j = 0 ;j<d ;j++ ) {\n\t\t\t\ta[j] = sc.nextInt();\n\t\t\t\t data[a[j]]=true;\n\t\t\t}\n\t\t}",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int j = 0 ;j<d ;j++ ) {\n\t\t\t\ta[j] = sc.nextInt();\n\t\t\t\t data[a[j]]=true;\n\t\t\t}",
"int j = 0 ;",
"int j = 0 ;",
"j",
"0",
"j<d",
"j",
"d",
"j++",
"j++",
"j",
"{\n\t\t\t\ta[j] = sc.nextInt();\n\t\t\t\t data[a[j]]=true;\n\t\t\t}",
"{\n\t\t\t\ta[j] = sc.nextInt();\n\t\t\t\t data[a[j]]=true;\n\t\t\t}",
"a[j] = sc.nextInt()",
"a[j]",
"a",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"data[a[j]]=true",
"data[a[j]]",
"data",
"a[j]",
"a",
"j",
"true",
"for (int i = 0;i<n+1 ;i++ ) {\n\t\t\tif (data[i]==false) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n+1",
"i",
"n+1",
"n",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tif (data[i]==false) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (data[i]==false) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"if (data[i]==false) {\n\t\t\t\tcount++;\n\t\t\t}",
"data[i]==false",
"data[i]",
"data",
"i",
"false",
"{\n\t\t\t\tcount++;\n\t\t\t}",
"count++",
"count",
"System.out.println(count-1)",
"System.out.println",
"System.out",
"System",
"System.out",
"count-1",
"count",
"1",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\t\tint a[] = new int[10000];\n\t\tboolean data[] = new boolean[n+1];\n\t\tint count =0;\n\n\t\tfor (int i = 0;i<k ;i++ ) {\n\t\t\t int d = sc.nextInt();\n\t\t\tfor (int j = 0 ;j<d ;j++ ) {\n\t\t\t\ta[j] = sc.nextInt();\n\t\t\t\t data[a[j]]=true;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0;i<n+1 ;i++ ) {\n\t\t\tif (data[i]==false) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count-1);\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\t\tint a[] = new int[10000];\n\t\tboolean data[] = new boolean[n+1];\n\t\tint count =0;\n\n\t\tfor (int i = 0;i<k ;i++ ) {\n\t\t\t int d = sc.nextInt();\n\t\t\tfor (int j = 0 ;j<d ;j++ ) {\n\t\t\t\ta[j] = sc.nextInt();\n\t\t\t\t data[a[j]]=true;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0;i<n+1 ;i++ ) {\n\t\t\tif (data[i]==false) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count-1);\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 k = sc.nextInt();
int a[] = new int[10000];
boolean data[] = new boolean[n+1];
int count =0;
for (int i = 0;i<k ;i++ ) {
int d = sc.nextInt();
for (int j = 0 ;j<d ;j++ ) {
a[j] = sc.nextInt();
data[a[j]]=true;
}
}
for (int i = 0;i<n+1 ;i++ ) {
if (data[i]==false) {
count++;
}
}
System.out.println(count-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,
41,
13,
20,
41,
13,
20,
13,
41,
13,
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,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
28,
13,
13,
30,
30,
0,
18,
13,
2,
13,
17,
17,
28,
13,
13,
30,
30,
14,
2,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
108,
11
],
[
108,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
14,
31
],
[
31,
32
],
[
31,
33
],
[
14,
35
],
[
35,
36
],
[
35,
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
],
[
50,
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
],
[
69,
72
],
[
72,
73
],
[
73,
74
],
[
14,
75
],
[
75,
76
],
[
75,
77
],
[
75,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
80,
86
],
[
14,
87
],
[
87,
88
],
[
87,
89
],
[
87,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
96,
97
],
[
97,
98
],
[
14,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
12,
105
],
[
105,
106
],
[
0,
107
],
[
107,
108
],
[
107,
109
]
] |
[
"import java.util.Scanner;\nimport java.util.List;\nimport java.util.ArrayList;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n\n List<Integer> sunukes = new ArrayList<>();\n int[] treat = new int[n];\n\n int count = 0;\n\n for (int i = 0; i < k; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n sunukes.add(sc.nextInt());\n }\n }\n for (int sunuke : sunukes) {\n treat[sunuke - 1] = 1;\n }\n\n for (int num : treat) {\n if (num == 0) {\n count++;\n }\n } \n\n System.out.println(count);\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n\n List<Integer> sunukes = new ArrayList<>();\n int[] treat = new int[n];\n\n int count = 0;\n\n for (int i = 0; i < k; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n sunukes.add(sc.nextInt());\n }\n }\n for (int sunuke : sunukes) {\n treat[sunuke - 1] = 1;\n }\n\n for (int num : treat) {\n if (num == 0) {\n count++;\n }\n } \n\n System.out.println(count);\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n\n List<Integer> sunukes = new ArrayList<>();\n int[] treat = new int[n];\n\n int count = 0;\n\n for (int i = 0; i < k; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n sunukes.add(sc.nextInt());\n }\n }\n for (int sunuke : sunukes) {\n treat[sunuke - 1] = 1;\n }\n\n for (int num : treat) {\n if (num == 0) {\n count++;\n }\n } \n\n System.out.println(count);\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n\n List<Integer> sunukes = new ArrayList<>();\n int[] treat = new int[n];\n\n int count = 0;\n\n for (int i = 0; i < k; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n sunukes.add(sc.nextInt());\n }\n }\n for (int sunuke : sunukes) {\n treat[sunuke - 1] = 1;\n }\n\n for (int num : treat) {\n if (num == 0) {\n count++;\n }\n } \n\n System.out.println(count);\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"List<Integer> sunukes = new ArrayList<>();",
"sunukes",
"new ArrayList<>()",
"int[] treat = new int[n];",
"treat",
"new int[n]",
"n",
"int count = 0;",
"count",
"0",
"for (int i = 0; i < k; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n sunukes.add(sc.nextInt());\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"{\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n sunukes.add(sc.nextInt());\n }\n }",
"{\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n sunukes.add(sc.nextInt());\n }\n }",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int j = 0; j < d; j++) {\n sunukes.add(sc.nextInt());\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < d",
"j",
"d",
"j++",
"j++",
"j",
"{\n sunukes.add(sc.nextInt());\n }",
"{\n sunukes.add(sc.nextInt());\n }",
"sunukes.add(sc.nextInt())",
"sunukes.add",
"sunukes",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int sunuke : sunukes) {\n treat[sunuke - 1] = 1;\n }",
"int sunuke",
"sunukes",
"{\n treat[sunuke - 1] = 1;\n }",
"{\n treat[sunuke - 1] = 1;\n }",
"treat[sunuke - 1] = 1",
"treat[sunuke - 1]",
"treat",
"sunuke - 1",
"sunuke",
"1",
"1",
"for (int num : treat) {\n if (num == 0) {\n count++;\n }\n }",
"int num",
"treat",
"{\n if (num == 0) {\n count++;\n }\n }",
"{\n if (num == 0) {\n count++;\n }\n }",
"if (num == 0) {\n count++;\n }",
"num == 0",
"num",
"0",
"{\n count++;\n }",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n\n List<Integer> sunukes = new ArrayList<>();\n int[] treat = new int[n];\n\n int count = 0;\n\n for (int i = 0; i < k; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n sunukes.add(sc.nextInt());\n }\n }\n for (int sunuke : sunukes) {\n treat[sunuke - 1] = 1;\n }\n\n for (int num : treat) {\n if (num == 0) {\n count++;\n }\n } \n\n System.out.println(count);\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n\n List<Integer> sunukes = new ArrayList<>();\n int[] treat = new int[n];\n\n int count = 0;\n\n for (int i = 0; i < k; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n sunukes.add(sc.nextInt());\n }\n }\n for (int sunuke : sunukes) {\n treat[sunuke - 1] = 1;\n }\n\n for (int num : treat) {\n if (num == 0) {\n count++;\n }\n } \n\n System.out.println(count);\n\n }\n}",
"Main"
] |
import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int k = sc.nextInt();
List<Integer> sunukes = new ArrayList<>();
int[] treat = new int[n];
int count = 0;
for (int i = 0; i < k; i++) {
int d = sc.nextInt();
for (int j = 0; j < d; j++) {
sunukes.add(sc.nextInt());
}
}
for (int sunuke : sunukes) {
treat[sunuke - 1] = 1;
}
for (int num : treat) {
if (num == 0) {
count++;
}
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
17,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
2,
17,
17,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
13,
4,
18,
13,
12,
13,
30,
4,
18,
20,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
99,
5
],
[
99,
6
],
[
6,
7
],
[
6,
8
],
[
99,
9
],
[
9,
10
],
[
9,
11
],
[
99,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
99,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
19,
21
],
[
99,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
24,
26
],
[
99,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
29,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
40,
41
],
[
40,
42
],
[
29,
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
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
61,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
78,
79
],
[
29,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
99,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
90,
96
],
[
96,
97
],
[
0,
98
],
[
98,
99
],
[
98,
100
]
] |
[
"import java.util.*;\n\npublic class Main {\n\tScanner sc = new Scanner(System.in);\n\tfinal int MOD = 998244353;\n\tfinal int MAX = Integer.MAX_VALUE;\n\tfinal long LMAX = Long.MAX_VALUE;\n\tint len = (int)1e6 + 1;\n\t\n\t\n\tvoid doIt() {\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\tSet<Integer> set = new HashSet<>();\n\t\tfor(int i = 0; i < K; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tset.add(sc.nextInt());\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(N - set.size());\n\t}\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tScanner sc = new Scanner(System.in);\n\tfinal int MOD = 998244353;\n\tfinal int MAX = Integer.MAX_VALUE;\n\tfinal long LMAX = Long.MAX_VALUE;\n\tint len = (int)1e6 + 1;\n\t\n\t\n\tvoid doIt() {\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\tSet<Integer> set = new HashSet<>();\n\t\tfor(int i = 0; i < K; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tset.add(sc.nextInt());\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(N - set.size());\n\t}\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}\n\n}",
"Main",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"final int MOD = 998244353;",
"MOD",
"998244353",
"final int MAX = Integer.MAX_VALUE;",
"MAX",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"final long LMAX = Long.MAX_VALUE;",
"LMAX",
"Long.MAX_VALUE",
"Long",
"Long.MAX_VALUE",
"int len = (int)1e6 + 1;",
"len",
"(int)1e6 + 1",
"(int)1e6",
"1",
"void doIt() {\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\tSet<Integer> set = new HashSet<>();\n\t\tfor(int i = 0; i < K; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tset.add(sc.nextInt());\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(N - set.size());\n\t}",
"doIt",
"{\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\tSet<Integer> set = new HashSet<>();\n\t\tfor(int i = 0; i < K; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tset.add(sc.nextInt());\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(N - set.size());\n\t}",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Set<Integer> set = new HashSet<>();",
"set",
"new HashSet<>()",
"for(int i = 0; i < K; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tset.add(sc.nextInt());\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < K",
"i",
"K",
"i++",
"i++",
"i",
"{\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tset.add(sc.nextInt());\n\t\t\t}\n\t\t}",
"{\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tset.add(sc.nextInt());\n\t\t\t}\n\t\t}",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j = 0; j < d; j++) {\n\t\t\t\tset.add(sc.nextInt());\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < d",
"j",
"d",
"j++",
"j++",
"j",
"{\n\t\t\t\tset.add(sc.nextInt());\n\t\t\t}",
"{\n\t\t\t\tset.add(sc.nextInt());\n\t\t\t}",
"set.add(sc.nextInt())",
"set.add",
"set",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println(N - set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"N - set.size()",
"N",
"set.size()",
"set.size",
"set",
"public static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}",
"main",
"{\n\t\tnew Main().doIt();\n\t}",
"new Main().doIt()",
"new Main().doIt",
"new Main()",
"String[] args",
"args",
"public class Main {\n\tScanner sc = new Scanner(System.in);\n\tfinal int MOD = 998244353;\n\tfinal int MAX = Integer.MAX_VALUE;\n\tfinal long LMAX = Long.MAX_VALUE;\n\tint len = (int)1e6 + 1;\n\t\n\t\n\tvoid doIt() {\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\tSet<Integer> set = new HashSet<>();\n\t\tfor(int i = 0; i < K; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tset.add(sc.nextInt());\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(N - set.size());\n\t}\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}\n\n}",
"public class Main {\n\tScanner sc = new Scanner(System.in);\n\tfinal int MOD = 998244353;\n\tfinal int MAX = Integer.MAX_VALUE;\n\tfinal long LMAX = Long.MAX_VALUE;\n\tint len = (int)1e6 + 1;\n\t\n\t\n\tvoid doIt() {\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\tSet<Integer> set = new HashSet<>();\n\t\tfor(int i = 0; i < K; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tset.add(sc.nextInt());\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(N - set.size());\n\t}\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}\n\n}",
"Main"
] |
import java.util.*;
public class Main {
Scanner sc = new Scanner(System.in);
final int MOD = 998244353;
final int MAX = Integer.MAX_VALUE;
final long LMAX = Long.MAX_VALUE;
int len = (int)1e6 + 1;
void doIt() {
int N = sc.nextInt();
int K = sc.nextInt();
Set<Integer> set = new HashSet<>();
for(int i = 0; i < K; i++) {
int d = sc.nextInt();
for(int j = 0; j < d; j++) {
set.add(sc.nextInt());
}
}
System.out.println(N - set.size());
}
public static void main(String[] args) {
new Main().doIt();
}
}
|
[
7,
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,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
13,
2,
13,
4,
18,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
18,
13,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
14,
2,
13,
13,
30,
29,
17,
30,
0,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
17,
29,
17,
12,
13,
30,
14,
4,
13,
30,
29,
18,
13,
40,
13,
30,
29,
40,
17,
12,
13,
30,
29,
2,
2,
17,
13,
2,
13,
17,
23,
13,
12,
13,
30,
42,
2,
4,
13,
40,
4,
13,
18,
13,
13,
30,
40,
13,
29,
4,
13,
12,
13,
30,
14,
40,
4,
13,
30,
37,
20,
41,
13,
20,
41,
13,
4,
13,
42,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
14,
40,
4,
13,
30,
37,
20,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
14,
2,
2,
13,
17,
2,
17,
13,
30,
37,
20,
42,
17,
30,
14,
2,
2,
17,
13,
2,
13,
17,
30,
0,
13,
17,
0,
13,
2,
13,
17,
14,
2,
2,
13,
40,
17,
40,
4,
13,
13,
30,
29,
8,
13,
40,
13,
13,
30,
37,
20,
0,
13,
4,
13,
12,
13,
30,
41,
13,
4,
13,
14,
2,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
30,
37,
20,
29,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
353,
23
],
[
353,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
26,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
26,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
26,
43
],
[
43,
44
],
[
43,
45
],
[
26,
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
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
58,
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
],
[
77,
80
],
[
80,
81
],
[
81,
82
],
[
26,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
26,
91
],
[
91,
92
],
[
92,
93
],
[
24,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
96,
103
],
[
103,
104
],
[
103,
105
],
[
96,
107
],
[
107,
108
],
[
107,
109
],
[
96,
110
],
[
110,
111
],
[
110,
112
],
[
96,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
120,
121
],
[
121,
122
],
[
116,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
127,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
137,
140
],
[
123,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
145,
146
],
[
146,
147
],
[
115,
148
],
[
148,
149
],
[
96,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
153,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
153,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
96,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
174,
175
],
[
174,
176
],
[
166,
177
],
[
177,
178
],
[
96,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
183,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
189,
191
],
[
182,
192
],
[
192,
193
],
[
193,
194
],
[
181,
195
],
[
195,
196
],
[
196,
197
],
[
96,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
201,
205
],
[
205,
206
],
[
206,
207
],
[
200,
208
],
[
208,
209
],
[
208,
210
],
[
200,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
200,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
215,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
220,
223
],
[
219,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
200,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
96,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
235,
239
],
[
239,
240
],
[
240,
241
],
[
234,
242
],
[
242,
243
],
[
242,
244
],
[
234,
245
],
[
245,
246
],
[
245,
247
],
[
234,
248
],
[
248,
249
],
[
248,
250
],
[
250,
251
],
[
234,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
252,
256
],
[
256,
257
],
[
257,
258
],
[
257,
259
],
[
256,
260
],
[
260,
261
],
[
260,
262
],
[
262,
263
],
[
234,
264
],
[
264,
265
],
[
265,
266
],
[
266,
267
],
[
266,
268
],
[
265,
269
],
[
269,
270
],
[
269,
271
],
[
264,
272
],
[
272,
273
],
[
273,
274
],
[
234,
275
],
[
275,
276
],
[
275,
277
],
[
277,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
280,
282
],
[
279,
283
],
[
283,
284
],
[
283,
285
],
[
278,
286
],
[
286,
287
],
[
287,
288
],
[
287,
289
],
[
286,
290
],
[
290,
291
],
[
290,
292
],
[
292,
293
],
[
292,
294
],
[
278,
295
],
[
295,
296
],
[
296,
297
],
[
297,
298
],
[
297,
299
],
[
299,
300
],
[
296,
301
],
[
301,
302
],
[
302,
303
],
[
302,
304
],
[
295,
305
],
[
305,
306
],
[
306,
307
],
[
307,
308
],
[
307,
309
],
[
309,
310
],
[
307,
311
],
[
295,
312
],
[
312,
313
],
[
313,
314
],
[
277,
315
],
[
315,
316
],
[
315,
317
],
[
317,
318
],
[
96,
319
],
[
319,
320
],
[
319,
321
],
[
321,
322
],
[
322,
323
],
[
322,
324
],
[
324,
325
],
[
321,
326
],
[
326,
327
],
[
327,
328
],
[
328,
329
],
[
328,
330
],
[
330,
331
],
[
330,
332
],
[
327,
333
],
[
333,
334
],
[
333,
335
],
[
335,
336
],
[
335,
337
],
[
326,
338
],
[
338,
339
],
[
339,
340
],
[
321,
341
],
[
341,
342
],
[
96,
343
],
[
343,
344
],
[
343,
345
],
[
345,
346
],
[
346,
347
],
[
347,
348
],
[
348,
349
],
[
347,
350
],
[
350,
351
],
[
0,
352
],
[
352,
353
],
[
352,
354
]
] |
[
"\n\nimport java.text.DecimalFormat;\nimport java.util.function.BiFunction;\nimport java.util.function.Function;\nimport java.util.stream.LongStream;\nimport java.util.stream.IntStream;\nimport java.io.*;\nimport java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n\n final int N = sc.nextInt(), K = sc.nextInt();\n Set<Integer> set = new HashSet<>();\n \n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n set.add(sc.nextInt());\n }\n }\n \n out.println(N - set.size());\n\n out.flush();\n }\n\n}\n\n// https://qiita.com/p_shiki37/items/a0f6aac33bf60f5f65e4\nclass FastScanner {\n\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n } else {\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n\n private int readByte() {\n if (hasNextByte()) {\n return buffer[ptr++];\n } else {\n return -1;\n }\n }\n\n private static boolean isPrintableChar(int c) {\n return 33 <= c && c <= 126;\n }\n\n public boolean hasNext() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr])) {\n ptr++;\n }\n return hasNextByte();\n }\n\n public String next() {\n if (!hasNext()) {\n throw new NoSuchElementException();\n }\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while (isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n public long nextLong() {\n if (!hasNext()) {\n throw new NoSuchElementException();\n }\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n\n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) {\n throw new NumberFormatException();\n }\n return (int) nl;\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n}",
"import java.text.DecimalFormat;",
"DecimalFormat",
"java.text",
"import java.util.function.BiFunction;",
"BiFunction",
"java.util.function",
"import java.util.function.Function;",
"Function",
"java.util.function",
"import java.util.stream.LongStream;",
"LongStream",
"java.util.stream",
"import java.util.stream.IntStream;",
"IntStream",
"java.util.stream",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n\n final int N = sc.nextInt(), K = sc.nextInt();\n Set<Integer> set = new HashSet<>();\n \n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n set.add(sc.nextInt());\n }\n }\n \n out.println(N - set.size());\n\n out.flush();\n }\n\n}",
"Main",
"public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n\n final int N = sc.nextInt(), K = sc.nextInt();\n Set<Integer> set = new HashSet<>();\n \n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n set.add(sc.nextInt());\n }\n }\n \n out.println(N - set.size());\n\n out.flush();\n }",
"main",
"{\n FastScanner sc = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n\n final int N = sc.nextInt(), K = sc.nextInt();\n Set<Integer> set = new HashSet<>();\n \n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n set.add(sc.nextInt());\n }\n }\n \n out.println(N - set.size());\n\n out.flush();\n }",
"FastScanner sc = new FastScanner();",
"sc",
"new FastScanner()",
"PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"final int N = sc.nextInt()",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Set<Integer> set = new HashSet<>();",
"set",
"new HashSet<>()",
"for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n set.add(sc.nextInt());\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < K",
"i",
"K",
"i++",
"i++",
"i",
"{\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n set.add(sc.nextInt());\n }\n }",
"{\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n set.add(sc.nextInt());\n }\n }",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int j = 0; j < d; j++) {\n set.add(sc.nextInt());\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < d",
"j",
"d",
"j++",
"j++",
"j",
"{\n set.add(sc.nextInt());\n }",
"{\n set.add(sc.nextInt());\n }",
"set.add(sc.nextInt())",
"set.add",
"set",
"sc.nextInt()",
"sc.nextInt",
"sc",
"out.println(N - set.size())",
"out.println",
"out",
"N - set.size()",
"N",
"set.size()",
"set.size",
"set",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"class FastScanner {\n\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n } else {\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n\n private int readByte() {\n if (hasNextByte()) {\n return buffer[ptr++];\n } else {\n return -1;\n }\n }\n\n private static boolean isPrintableChar(int c) {\n return 33 <= c && c <= 126;\n }\n\n public boolean hasNext() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr])) {\n ptr++;\n }\n return hasNextByte();\n }\n\n public String next() {\n if (!hasNext()) {\n throw new NoSuchElementException();\n }\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while (isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n public long nextLong() {\n if (!hasNext()) {\n throw new NoSuchElementException();\n }\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n\n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) {\n throw new NumberFormatException();\n }\n return (int) nl;\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n}",
"FastScanner",
"private final InputStream in = System.in;",
"in",
"System.in",
"System",
"System.in",
"private final byte[] buffer = new byte[1024];",
"buffer",
"new byte[1024]",
"1024",
"private int ptr = 0;",
"ptr",
"0",
"private int buflen = 0;",
"buflen",
"0",
"private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n } else {\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }",
"hasNextByte",
"{\n if (ptr < buflen) {\n return true;\n } else {\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }",
"if (ptr < buflen) {\n return true;\n } else {\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }",
"ptr < buflen",
"ptr",
"buflen",
"{\n return true;\n }",
"return true;",
"true",
"{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }",
"ptr = 0",
"ptr",
"0",
"try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n buflen = in.read(buffer);\n }",
"buflen = in.read(buffer)",
"buflen",
"in.read(buffer)",
"in.read",
"in",
"buffer",
"if (buflen <= 0) {\n return false;\n }",
"buflen <= 0",
"buflen",
"0",
"{\n return false;\n }",
"return false;",
"false",
"return true;",
"true",
"private int readByte() {\n if (hasNextByte()) {\n return buffer[ptr++];\n } else {\n return -1;\n }\n }",
"readByte",
"{\n if (hasNextByte()) {\n return buffer[ptr++];\n } else {\n return -1;\n }\n }",
"if (hasNextByte()) {\n return buffer[ptr++];\n } else {\n return -1;\n }",
"hasNextByte()",
"hasNextByte",
"{\n return buffer[ptr++];\n }",
"return buffer[ptr++];",
"buffer[ptr++]",
"buffer",
"ptr++",
"ptr",
"{\n return -1;\n }",
"return -1;",
"-1",
"1",
"private static boolean isPrintableChar(int c) {\n return 33 <= c && c <= 126;\n }",
"isPrintableChar",
"{\n return 33 <= c && c <= 126;\n }",
"return 33 <= c && c <= 126;",
"33 <= c && c <= 126",
"33 <= c",
"33",
"c",
"c <= 126",
"c",
"126",
"int c",
"c",
"public boolean hasNext() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr])) {\n ptr++;\n }\n return hasNextByte();\n }",
"hasNext",
"{\n while (hasNextByte() && !isPrintableChar(buffer[ptr])) {\n ptr++;\n }\n return hasNextByte();\n }",
"while (hasNextByte() && !isPrintableChar(buffer[ptr])) {\n ptr++;\n }",
"hasNextByte() && !isPrintableChar(buffer[ptr])",
"hasNextByte()",
"hasNextByte",
"!isPrintableChar(buffer[ptr])",
"isPrintableChar(buffer[ptr])",
"isPrintableChar",
"buffer[ptr]",
"buffer",
"ptr",
"{\n ptr++;\n }",
"ptr++",
"ptr",
"return hasNextByte();",
"hasNextByte()",
"hasNextByte",
"public String next() {\n if (!hasNext()) {\n throw new NoSuchElementException();\n }\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while (isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }",
"next",
"{\n if (!hasNext()) {\n throw new NoSuchElementException();\n }\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while (isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }",
"if (!hasNext()) {\n throw new NoSuchElementException();\n }",
"!hasNext()",
"hasNext()",
"hasNext",
"{\n throw new NoSuchElementException();\n }",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"while (isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n sb.appendCodePoint(b);\n b = readByte();\n }",
"sb.appendCodePoint(b)",
"sb.appendCodePoint",
"sb",
"b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public long nextLong() {\n if (!hasNext()) {\n throw new NoSuchElementException();\n }\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }",
"nextLong",
"{\n if (!hasNext()) {\n throw new NoSuchElementException();\n }\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }",
"if (!hasNext()) {\n throw new NoSuchElementException();\n }",
"!hasNext()",
"hasNext()",
"hasNext",
"{\n throw new NoSuchElementException();\n }",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"long n = 0;",
"n",
"0",
"boolean minus = false;",
"minus",
"false",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"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",
"if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }",
"b < '0' || '9' < b",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"{\n throw new NumberFormatException();\n }",
"throw new NumberFormatException();",
"new NumberFormatException()",
"while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }\n b = readByte();\n }",
"true",
"{\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }\n b = readByte();\n }",
"if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }",
"'0' <= b && b <= '9'",
"'0' <= b",
"'0'",
"b",
"b <= '9'",
"b",
"'9'",
"{\n n *= 10;\n n += b - '0';\n }",
"n *= 10",
"n",
"10",
"n += b - '0'",
"n",
"b - '0'",
"b",
"'0'",
"if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }",
"b == -1 || !isPrintableChar(b)",
"b == -1",
"b",
"-1",
"1",
"!isPrintableChar(b)",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n return minus ? -n : n;\n }",
"return minus ? -n : n;",
"minus ? -n : n",
"minus",
"-n",
"n",
"n",
"{\n throw new NumberFormatException();\n }",
"throw new NumberFormatException();",
"new NumberFormatException()",
"b = readByte()",
"b",
"readByte()",
"readByte",
"public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) {\n throw new NumberFormatException();\n }\n return (int) nl;\n }",
"nextInt",
"{\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) {\n throw new NumberFormatException();\n }\n return (int) nl;\n }",
"long nl = nextLong();",
"nl",
"nextLong()",
"nextLong",
"if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) {\n throw new NumberFormatException();\n }",
"nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE",
"nl < Integer.MIN_VALUE",
"nl",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"nl > Integer.MAX_VALUE",
"nl",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"{\n throw new NumberFormatException();\n }",
"throw new NumberFormatException();",
"new NumberFormatException()",
"return (int) nl;",
"(int) nl",
"public double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public class Main {\n\n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n\n final int N = sc.nextInt(), K = sc.nextInt();\n Set<Integer> set = new HashSet<>();\n \n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n set.add(sc.nextInt());\n }\n }\n \n out.println(N - set.size());\n\n out.flush();\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n\n final int N = sc.nextInt(), K = sc.nextInt();\n Set<Integer> set = new HashSet<>();\n \n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n set.add(sc.nextInt());\n }\n }\n \n out.println(N - set.size());\n\n out.flush();\n }\n\n}",
"Main"
] |
import java.text.DecimalFormat;
import java.util.function.BiFunction;
import java.util.function.Function;
import java.util.stream.LongStream;
import java.util.stream.IntStream;
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
FastScanner sc = new FastScanner();
PrintWriter out = new PrintWriter(System.out);
final int N = sc.nextInt(), K = sc.nextInt();
Set<Integer> set = new HashSet<>();
for (int i = 0; i < K; i++) {
int d = sc.nextInt();
for (int j = 0; j < d; j++) {
set.add(sc.nextInt());
}
}
out.println(N - set.size());
out.flush();
}
}
// https://qiita.com/p_shiki37/items/a0f6aac33bf60f5f65e4
class FastScanner {
private final InputStream in = System.in;
private final byte[] buffer = new byte[1024];
private int ptr = 0;
private int buflen = 0;
private boolean hasNextByte() {
if (ptr < buflen) {
return true;
} else {
ptr = 0;
try {
buflen = in.read(buffer);
} catch (IOException e) {
e.printStackTrace();
}
if (buflen <= 0) {
return false;
}
}
return true;
}
private int readByte() {
if (hasNextByte()) {
return buffer[ptr++];
} else {
return -1;
}
}
private static boolean isPrintableChar(int c) {
return 33 <= c && c <= 126;
}
public boolean hasNext() {
while (hasNextByte() && !isPrintableChar(buffer[ptr])) {
ptr++;
}
return hasNextByte();
}
public String next() {
if (!hasNext()) {
throw new NoSuchElementException();
}
StringBuilder sb = new StringBuilder();
int b = readByte();
while (isPrintableChar(b)) {
sb.appendCodePoint(b);
b = readByte();
}
return sb.toString();
}
public long nextLong() {
if (!hasNext()) {
throw new NoSuchElementException();
}
long n = 0;
boolean minus = false;
int b = readByte();
if (b == '-') {
minus = true;
b = readByte();
}
if (b < '0' || '9' < b) {
throw new NumberFormatException();
}
while (true) {
if ('0' <= b && b <= '9') {
n *= 10;
n += b - '0';
} else if (b == -1 || !isPrintableChar(b)) {
return minus ? -n : n;
} else {
throw new NumberFormatException();
}
b = readByte();
}
}
public int nextInt() {
long nl = nextLong();
if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) {
throw new NumberFormatException();
}
return (int) nl;
}
public double nextDouble() {
return Double.parseDouble(next());
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
40,
18,
13,
2,
13,
17,
4,
18,
13,
41,
13,
17,
28,
13,
13,
30,
30,
14,
2,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
95,
5
],
[
95,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
8,
71
],
[
71,
72
],
[
71,
73
],
[
8,
74
],
[
74,
75
],
[
74,
76
],
[
74,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
8,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
6,
92
],
[
92,
93
],
[
0,
94
],
[
94,
95
],
[
94,
96
]
] |
[
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n final int N = sc.nextInt();\n final int K = sc.nextInt();\n int S[] = new int[N];\n for(int i=0;i<K;i++) {\n \tint d = sc.nextInt();\n \tfor(int j=0;j<d;j++) {\n \t\tint a = sc.nextInt();\n \t\tS[a-1]++;\n \t}\n }\n sc.close();\n int ans = 0;\n for(int a : S) {\n \tif(a==0) {\n \t\tans++;\n \t}\n }\n System.out.println(ans);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n final int N = sc.nextInt();\n final int K = sc.nextInt();\n int S[] = new int[N];\n for(int i=0;i<K;i++) {\n \tint d = sc.nextInt();\n \tfor(int j=0;j<d;j++) {\n \t\tint a = sc.nextInt();\n \t\tS[a-1]++;\n \t}\n }\n sc.close();\n int ans = 0;\n for(int a : S) {\n \tif(a==0) {\n \t\tans++;\n \t}\n }\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n final int N = sc.nextInt();\n final int K = sc.nextInt();\n int S[] = new int[N];\n for(int i=0;i<K;i++) {\n \tint d = sc.nextInt();\n \tfor(int j=0;j<d;j++) {\n \t\tint a = sc.nextInt();\n \t\tS[a-1]++;\n \t}\n }\n sc.close();\n int ans = 0;\n for(int a : S) {\n \tif(a==0) {\n \t\tans++;\n \t}\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n final int N = sc.nextInt();\n final int K = sc.nextInt();\n int S[] = new int[N];\n for(int i=0;i<K;i++) {\n \tint d = sc.nextInt();\n \tfor(int j=0;j<d;j++) {\n \t\tint a = sc.nextInt();\n \t\tS[a-1]++;\n \t}\n }\n sc.close();\n int ans = 0;\n for(int a : S) {\n \tif(a==0) {\n \t\tans++;\n \t}\n }\n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"final int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"final int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int S[] = new int[N];",
"S",
"new int[N]",
"N",
"for(int i=0;i<K;i++) {\n \tint d = sc.nextInt();\n \tfor(int j=0;j<d;j++) {\n \t\tint a = sc.nextInt();\n \t\tS[a-1]++;\n \t}\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<K",
"i",
"K",
"i++",
"i++",
"i",
"{\n \tint d = sc.nextInt();\n \tfor(int j=0;j<d;j++) {\n \t\tint a = sc.nextInt();\n \t\tS[a-1]++;\n \t}\n }",
"{\n \tint d = sc.nextInt();\n \tfor(int j=0;j<d;j++) {\n \t\tint a = sc.nextInt();\n \t\tS[a-1]++;\n \t}\n }",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j=0;j<d;j++) {\n \t\tint a = sc.nextInt();\n \t\tS[a-1]++;\n \t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<d",
"j",
"d",
"j++",
"j++",
"j",
"{\n \t\tint a = sc.nextInt();\n \t\tS[a-1]++;\n \t}",
"{\n \t\tint a = sc.nextInt();\n \t\tS[a-1]++;\n \t}",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"S[a-1]++",
"S[a-1]",
"S",
"a-1",
"a",
"1",
"sc.close()",
"sc.close",
"sc",
"int ans = 0;",
"ans",
"0",
"for(int a : S) {\n \tif(a==0) {\n \t\tans++;\n \t}\n }",
"int a",
"S",
"{\n \tif(a==0) {\n \t\tans++;\n \t}\n }",
"{\n \tif(a==0) {\n \t\tans++;\n \t}\n }",
"if(a==0) {\n \t\tans++;\n \t}",
"a==0",
"a",
"0",
"{\n \t\tans++;\n \t}",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n final int N = sc.nextInt();\n final int K = sc.nextInt();\n int S[] = new int[N];\n for(int i=0;i<K;i++) {\n \tint d = sc.nextInt();\n \tfor(int j=0;j<d;j++) {\n \t\tint a = sc.nextInt();\n \t\tS[a-1]++;\n \t}\n }\n sc.close();\n int ans = 0;\n for(int a : S) {\n \tif(a==0) {\n \t\tans++;\n \t}\n }\n System.out.println(ans);\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n final int N = sc.nextInt();\n final int K = sc.nextInt();\n int S[] = new int[N];\n for(int i=0;i<K;i++) {\n \tint d = sc.nextInt();\n \tfor(int j=0;j<d;j++) {\n \t\tint a = sc.nextInt();\n \t\tS[a-1]++;\n \t}\n }\n sc.close();\n int ans = 0;\n for(int a : S) {\n \tif(a==0) {\n \t\tans++;\n \t}\n }\n System.out.println(ans);\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
final int N = sc.nextInt();
final int K = sc.nextInt();
int S[] = new int[N];
for(int i=0;i<K;i++) {
int d = sc.nextInt();
for(int j=0;j<d;j++) {
int a = sc.nextInt();
S[a-1]++;
}
}
sc.close();
int ans = 0;
for(int a : S) {
if(a==0) {
ans++;
}
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
2,
13,
17,
4,
18,
13,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
18,
13,
13,
17,
30,
40,
18,
13,
13,
40,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
110,
8
],
[
110,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
29
],
[
29,
30
],
[
29,
31
],
[
32,
33
],
[
32,
34
],
[
11,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
35,
39
],
[
11,
40
],
[
40,
41
],
[
40,
42
],
[
11,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
43,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
63,
73
],
[
73,
74
],
[
74,
75
],
[
63,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
77,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
83,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
11,
96
],
[
96,
97
],
[
97,
98
],
[
11,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
9,
107
],
[
107,
108
],
[
0,
109
],
[
109,
110
],
[
109,
111
]
] |
[
"import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n\n int[] D = new int[K];\n int[] A = new int[N + 1];\n Arrays.fill(A, 0);\n\n int count = 0;\n for (int j = 0; j < K; j++) {\n D[j] = sc.nextInt();\n for (int i = 0; i < D[j]; i++) {\n int sunuke = sc.nextInt();\n if (A[sunuke] == 0) {\n A[sunuke]++;\n count++;\n }\n }\n }\n sc.close();\n\n System.out.println(N - count);\n\n }\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n\n int[] D = new int[K];\n int[] A = new int[N + 1];\n Arrays.fill(A, 0);\n\n int count = 0;\n for (int j = 0; j < K; j++) {\n D[j] = sc.nextInt();\n for (int i = 0; i < D[j]; i++) {\n int sunuke = sc.nextInt();\n if (A[sunuke] == 0) {\n A[sunuke]++;\n count++;\n }\n }\n }\n sc.close();\n\n System.out.println(N - count);\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n\n int[] D = new int[K];\n int[] A = new int[N + 1];\n Arrays.fill(A, 0);\n\n int count = 0;\n for (int j = 0; j < K; j++) {\n D[j] = sc.nextInt();\n for (int i = 0; i < D[j]; i++) {\n int sunuke = sc.nextInt();\n if (A[sunuke] == 0) {\n A[sunuke]++;\n count++;\n }\n }\n }\n sc.close();\n\n System.out.println(N - count);\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n\n int[] D = new int[K];\n int[] A = new int[N + 1];\n Arrays.fill(A, 0);\n\n int count = 0;\n for (int j = 0; j < K; j++) {\n D[j] = sc.nextInt();\n for (int i = 0; i < D[j]; i++) {\n int sunuke = sc.nextInt();\n if (A[sunuke] == 0) {\n A[sunuke]++;\n count++;\n }\n }\n }\n sc.close();\n\n System.out.println(N - count);\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] D = new int[K];",
"D",
"new int[K]",
"K",
"int[] A = new int[N + 1];",
"A",
"new int[N + 1]",
"N + 1",
"N",
"1",
"Arrays.fill(A, 0)",
"Arrays.fill",
"Arrays",
"A",
"0",
"int count = 0;",
"count",
"0",
"for (int j = 0; j < K; j++) {\n D[j] = sc.nextInt();\n for (int i = 0; i < D[j]; i++) {\n int sunuke = sc.nextInt();\n if (A[sunuke] == 0) {\n A[sunuke]++;\n count++;\n }\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < K",
"j",
"K",
"j++",
"j++",
"j",
"{\n D[j] = sc.nextInt();\n for (int i = 0; i < D[j]; i++) {\n int sunuke = sc.nextInt();\n if (A[sunuke] == 0) {\n A[sunuke]++;\n count++;\n }\n }\n }",
"{\n D[j] = sc.nextInt();\n for (int i = 0; i < D[j]; i++) {\n int sunuke = sc.nextInt();\n if (A[sunuke] == 0) {\n A[sunuke]++;\n count++;\n }\n }\n }",
"D[j] = sc.nextInt()",
"D[j]",
"D",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < D[j]; i++) {\n int sunuke = sc.nextInt();\n if (A[sunuke] == 0) {\n A[sunuke]++;\n count++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < D[j]",
"i",
"D[j]",
"D",
"j",
"i++",
"i++",
"i",
"{\n int sunuke = sc.nextInt();\n if (A[sunuke] == 0) {\n A[sunuke]++;\n count++;\n }\n }",
"{\n int sunuke = sc.nextInt();\n if (A[sunuke] == 0) {\n A[sunuke]++;\n count++;\n }\n }",
"int sunuke = sc.nextInt();",
"sunuke",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (A[sunuke] == 0) {\n A[sunuke]++;\n count++;\n }",
"A[sunuke] == 0",
"A[sunuke]",
"A",
"sunuke",
"0",
"{\n A[sunuke]++;\n count++;\n }",
"A[sunuke]++",
"A[sunuke]",
"A",
"sunuke",
"count++",
"count",
"sc.close()",
"sc.close",
"sc",
"System.out.println(N - count)",
"System.out.println",
"System.out",
"System",
"System.out",
"N - count",
"N",
"count",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n\n int[] D = new int[K];\n int[] A = new int[N + 1];\n Arrays.fill(A, 0);\n\n int count = 0;\n for (int j = 0; j < K; j++) {\n D[j] = sc.nextInt();\n for (int i = 0; i < D[j]; i++) {\n int sunuke = sc.nextInt();\n if (A[sunuke] == 0) {\n A[sunuke]++;\n count++;\n }\n }\n }\n sc.close();\n\n System.out.println(N - count);\n\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n\n int[] D = new int[K];\n int[] A = new int[N + 1];\n Arrays.fill(A, 0);\n\n int count = 0;\n for (int j = 0; j < K; j++) {\n D[j] = sc.nextInt();\n for (int i = 0; i < D[j]; i++) {\n int sunuke = sc.nextInt();\n if (A[sunuke] == 0) {\n A[sunuke]++;\n count++;\n }\n }\n }\n sc.close();\n\n System.out.println(N - count);\n\n }\n}",
"Main"
] |
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int K = sc.nextInt();
int[] D = new int[K];
int[] A = new int[N + 1];
Arrays.fill(A, 0);
int count = 0;
for (int j = 0; j < K; j++) {
D[j] = sc.nextInt();
for (int i = 0; i < D[j]; i++) {
int sunuke = sc.nextInt();
if (A[sunuke] == 0) {
A[sunuke]++;
count++;
}
}
}
sc.close();
System.out.println(N - count);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
4,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
8,
40,
18,
13,
13,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
100,
5
],
[
100,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
25,
26
],
[
25,
27
],
[
8,
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
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
59,
65
],
[
8,
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
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
84,
90
],
[
8,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
6,
97
],
[
97,
98
],
[
0,
99
],
[
99,
100
],
[
99,
101
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n\n boolean[] na = new boolean[N + 1];\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n na[sc.nextInt()] = true;\n }\n }\n int count = 0;\n for (int i = 1; i <= N; i++) {\n count += !na[i] ? 1 : 0;\n }\n System.out.println(count);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n\n boolean[] na = new boolean[N + 1];\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n na[sc.nextInt()] = true;\n }\n }\n int count = 0;\n for (int i = 1; i <= N; i++) {\n count += !na[i] ? 1 : 0;\n }\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n\n boolean[] na = new boolean[N + 1];\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n na[sc.nextInt()] = true;\n }\n }\n int count = 0;\n for (int i = 1; i <= N; i++) {\n count += !na[i] ? 1 : 0;\n }\n System.out.println(count);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n\n boolean[] na = new boolean[N + 1];\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n na[sc.nextInt()] = true;\n }\n }\n int count = 0;\n for (int i = 1; i <= N; i++) {\n count += !na[i] ? 1 : 0;\n }\n System.out.println(count);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"boolean[] na = new boolean[N + 1];",
"na",
"new boolean[N + 1]",
"N + 1",
"N",
"1",
"for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n na[sc.nextInt()] = true;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < K",
"i",
"K",
"i++",
"i++",
"i",
"{\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n na[sc.nextInt()] = true;\n }\n }",
"{\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n na[sc.nextInt()] = true;\n }\n }",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int j = 0; j < d; j++) {\n na[sc.nextInt()] = true;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < d",
"j",
"d",
"j++",
"j++",
"j",
"{\n na[sc.nextInt()] = true;\n }",
"{\n na[sc.nextInt()] = true;\n }",
"na[sc.nextInt()] = true",
"na[sc.nextInt()]",
"na",
"sc.nextInt()",
"sc.nextInt",
"sc",
"true",
"int count = 0;",
"count",
"0",
"for (int i = 1; i <= N; i++) {\n count += !na[i] ? 1 : 0;\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n count += !na[i] ? 1 : 0;\n }",
"{\n count += !na[i] ? 1 : 0;\n }",
"count += !na[i] ? 1 : 0",
"count",
"!na[i] ? 1 : 0",
"!na[i]",
"na[i]",
"na",
"i",
"1",
"0",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n\n boolean[] na = new boolean[N + 1];\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n na[sc.nextInt()] = true;\n }\n }\n int count = 0;\n for (int i = 1; i <= N; i++) {\n count += !na[i] ? 1 : 0;\n }\n System.out.println(count);\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n\n boolean[] na = new boolean[N + 1];\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n na[sc.nextInt()] = true;\n }\n }\n int count = 0;\n for (int i = 1; i <= N; i++) {\n count += !na[i] ? 1 : 0;\n }\n System.out.println(count);\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 K = sc.nextInt();
boolean[] na = new boolean[N + 1];
for (int i = 0; i < K; i++) {
int d = sc.nextInt();
for (int j = 0; j < d; j++) {
na[sc.nextInt()] = true;
}
}
int count = 0;
for (int i = 1; i <= N; i++) {
count += !na[i] ? 1 : 0;
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
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,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
2,
13,
17,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
40,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
122,
5
],
[
122,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
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
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
80,
86
],
[
8,
87
],
[
87,
88
],
[
87,
89
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
90,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
103,
112
],
[
8,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
6,
119
],
[
119,
120
],
[
0,
121
],
[
121,
122
],
[
121,
123
]
] |
[
"import java.util.Scanner;\npublic class Main{\n\tpublic static void main(String args[]) {\n\tScanner scan=new Scanner(System.in);\n\tint N=scan.nextInt();\n\tint K=scan.nextInt();\n\tint A[]=new int[N];\n\tfor(int i=0;i<N;i++) {\n\t\tA[i]=0;\n\t}\n\tfor(int i=0;i<K;i++) {\n\tint d=scan.nextInt();\n\t\tfor(int j=0;j<d;j++) {\n\t\t\tint m=scan.nextInt();\n\t\t\tA[m-1]=1;\n\t\t}\n\t}\n\tint num=0;\n\tfor(int i =0;i<N;i++) {\n\t\tif(A[i]==0) {\n\t\tnum++;\n\t\t}\n\t\telse {}\n\t}\n\tSystem.out.println(num);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String args[]) {\n\tScanner scan=new Scanner(System.in);\n\tint N=scan.nextInt();\n\tint K=scan.nextInt();\n\tint A[]=new int[N];\n\tfor(int i=0;i<N;i++) {\n\t\tA[i]=0;\n\t}\n\tfor(int i=0;i<K;i++) {\n\tint d=scan.nextInt();\n\t\tfor(int j=0;j<d;j++) {\n\t\t\tint m=scan.nextInt();\n\t\t\tA[m-1]=1;\n\t\t}\n\t}\n\tint num=0;\n\tfor(int i =0;i<N;i++) {\n\t\tif(A[i]==0) {\n\t\tnum++;\n\t\t}\n\t\telse {}\n\t}\n\tSystem.out.println(num);\n\t}\n}",
"Main",
"public static void main(String args[]) {\n\tScanner scan=new Scanner(System.in);\n\tint N=scan.nextInt();\n\tint K=scan.nextInt();\n\tint A[]=new int[N];\n\tfor(int i=0;i<N;i++) {\n\t\tA[i]=0;\n\t}\n\tfor(int i=0;i<K;i++) {\n\tint d=scan.nextInt();\n\t\tfor(int j=0;j<d;j++) {\n\t\t\tint m=scan.nextInt();\n\t\t\tA[m-1]=1;\n\t\t}\n\t}\n\tint num=0;\n\tfor(int i =0;i<N;i++) {\n\t\tif(A[i]==0) {\n\t\tnum++;\n\t\t}\n\t\telse {}\n\t}\n\tSystem.out.println(num);\n\t}",
"main",
"{\n\tScanner scan=new Scanner(System.in);\n\tint N=scan.nextInt();\n\tint K=scan.nextInt();\n\tint A[]=new int[N];\n\tfor(int i=0;i<N;i++) {\n\t\tA[i]=0;\n\t}\n\tfor(int i=0;i<K;i++) {\n\tint d=scan.nextInt();\n\t\tfor(int j=0;j<d;j++) {\n\t\t\tint m=scan.nextInt();\n\t\t\tA[m-1]=1;\n\t\t}\n\t}\n\tint num=0;\n\tfor(int i =0;i<N;i++) {\n\t\tif(A[i]==0) {\n\t\tnum++;\n\t\t}\n\t\telse {}\n\t}\n\tSystem.out.println(num);\n\t}",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int N=scan.nextInt();",
"N",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int K=scan.nextInt();",
"K",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int A[]=new int[N];",
"A",
"new int[N]",
"N",
"for(int i=0;i<N;i++) {\n\t\tA[i]=0;\n\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\tA[i]=0;\n\t}",
"{\n\t\tA[i]=0;\n\t}",
"A[i]=0",
"A[i]",
"A",
"i",
"0",
"for(int i=0;i<K;i++) {\n\tint d=scan.nextInt();\n\t\tfor(int j=0;j<d;j++) {\n\t\t\tint m=scan.nextInt();\n\t\t\tA[m-1]=1;\n\t\t}\n\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<K",
"i",
"K",
"i++",
"i++",
"i",
"{\n\tint d=scan.nextInt();\n\t\tfor(int j=0;j<d;j++) {\n\t\t\tint m=scan.nextInt();\n\t\t\tA[m-1]=1;\n\t\t}\n\t}",
"{\n\tint d=scan.nextInt();\n\t\tfor(int j=0;j<d;j++) {\n\t\t\tint m=scan.nextInt();\n\t\t\tA[m-1]=1;\n\t\t}\n\t}",
"int d=scan.nextInt();",
"d",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int j=0;j<d;j++) {\n\t\t\tint m=scan.nextInt();\n\t\t\tA[m-1]=1;\n\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<d",
"j",
"d",
"j++",
"j++",
"j",
"{\n\t\t\tint m=scan.nextInt();\n\t\t\tA[m-1]=1;\n\t\t}",
"{\n\t\t\tint m=scan.nextInt();\n\t\t\tA[m-1]=1;\n\t\t}",
"int m=scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"A[m-1]=1",
"A[m-1]",
"A",
"m-1",
"m",
"1",
"1",
"int num=0;",
"num",
"0",
"for(int i =0;i<N;i++) {\n\t\tif(A[i]==0) {\n\t\tnum++;\n\t\t}\n\t\telse {}\n\t}",
"int i =0;",
"int i =0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\tif(A[i]==0) {\n\t\tnum++;\n\t\t}\n\t\telse {}\n\t}",
"{\n\t\tif(A[i]==0) {\n\t\tnum++;\n\t\t}\n\t\telse {}\n\t}",
"if(A[i]==0) {\n\t\tnum++;\n\t\t}\n\t\telse {}",
"A[i]==0",
"A[i]",
"A",
"i",
"0",
"{\n\t\tnum++;\n\t\t}",
"num++",
"num",
"{}",
"System.out.println(num)",
"System.out.println",
"System.out",
"System",
"System.out",
"num",
"String args[]",
"args",
"public class Main{\n\tpublic static void main(String args[]) {\n\tScanner scan=new Scanner(System.in);\n\tint N=scan.nextInt();\n\tint K=scan.nextInt();\n\tint A[]=new int[N];\n\tfor(int i=0;i<N;i++) {\n\t\tA[i]=0;\n\t}\n\tfor(int i=0;i<K;i++) {\n\tint d=scan.nextInt();\n\t\tfor(int j=0;j<d;j++) {\n\t\t\tint m=scan.nextInt();\n\t\t\tA[m-1]=1;\n\t\t}\n\t}\n\tint num=0;\n\tfor(int i =0;i<N;i++) {\n\t\tif(A[i]==0) {\n\t\tnum++;\n\t\t}\n\t\telse {}\n\t}\n\tSystem.out.println(num);\n\t}\n}",
"public class Main{\n\tpublic static void main(String args[]) {\n\tScanner scan=new Scanner(System.in);\n\tint N=scan.nextInt();\n\tint K=scan.nextInt();\n\tint A[]=new int[N];\n\tfor(int i=0;i<N;i++) {\n\t\tA[i]=0;\n\t}\n\tfor(int i=0;i<K;i++) {\n\tint d=scan.nextInt();\n\t\tfor(int j=0;j<d;j++) {\n\t\t\tint m=scan.nextInt();\n\t\t\tA[m-1]=1;\n\t\t}\n\t}\n\tint num=0;\n\tfor(int i =0;i<N;i++) {\n\t\tif(A[i]==0) {\n\t\tnum++;\n\t\t}\n\t\telse {}\n\t}\n\tSystem.out.println(num);\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String args[]) {
Scanner scan=new Scanner(System.in);
int N=scan.nextInt();
int K=scan.nextInt();
int A[]=new int[N];
for(int i=0;i<N;i++) {
A[i]=0;
}
for(int i=0;i<K;i++) {
int d=scan.nextInt();
for(int j=0;j<d;j++) {
int m=scan.nextInt();
A[m-1]=1;
}
}
int num=0;
for(int i =0;i<N;i++) {
if(A[i]==0) {
num++;
}
else {}
}
System.out.println(num);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
40,
13,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
13,
29,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
122,
5
],
[
122,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
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
],
[
43,
45
],
[
42,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
59,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
65,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
77,
83
],
[
83,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
90,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
8,
118
],
[
6,
119
],
[
119,
120
],
[
0,
121
],
[
121,
122
],
[
121,
123
]
] |
[
"import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint sunukeCount = sc.nextInt();\n\t\tint okashiCount = sc.nextInt();\n\t\tint itazuraCount = 0;\n\t\tboolean[] itazuraFlag = new boolean [sunukeCount];\n\t\tfor (int i = 0; i < sunukeCount; i++) {\n\t\t\t\titazuraFlag[i] = true;\n\t\t}\n\n\t\tfor (int i = 0; i < okashiCount; i++) {\n\t\t\tint dCount = sc.nextInt();\n\t\t\tfor (int j = 0; j < dCount; j++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\ttmp--;\n\t\t\t\titazuraFlag[tmp] = false;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < sunukeCount; i++) {\n\t\t\tif (itazuraFlag[i] == true) {\n\t\t\t\titazuraCount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(itazuraCount);\n\n\treturn;\n\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\n\t\tint sunukeCount = sc.nextInt();\n\t\tint okashiCount = sc.nextInt();\n\t\tint itazuraCount = 0;\n\t\tboolean[] itazuraFlag = new boolean [sunukeCount];\n\t\tfor (int i = 0; i < sunukeCount; i++) {\n\t\t\t\titazuraFlag[i] = true;\n\t\t}\n\n\t\tfor (int i = 0; i < okashiCount; i++) {\n\t\t\tint dCount = sc.nextInt();\n\t\t\tfor (int j = 0; j < dCount; j++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\ttmp--;\n\t\t\t\titazuraFlag[tmp] = false;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < sunukeCount; i++) {\n\t\t\tif (itazuraFlag[i] == true) {\n\t\t\t\titazuraCount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(itazuraCount);\n\n\treturn;\n\n\t}\n}",
"Main",
"public static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint sunukeCount = sc.nextInt();\n\t\tint okashiCount = sc.nextInt();\n\t\tint itazuraCount = 0;\n\t\tboolean[] itazuraFlag = new boolean [sunukeCount];\n\t\tfor (int i = 0; i < sunukeCount; i++) {\n\t\t\t\titazuraFlag[i] = true;\n\t\t}\n\n\t\tfor (int i = 0; i < okashiCount; i++) {\n\t\t\tint dCount = sc.nextInt();\n\t\t\tfor (int j = 0; j < dCount; j++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\ttmp--;\n\t\t\t\titazuraFlag[tmp] = false;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < sunukeCount; i++) {\n\t\t\tif (itazuraFlag[i] == true) {\n\t\t\t\titazuraCount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(itazuraCount);\n\n\treturn;\n\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint sunukeCount = sc.nextInt();\n\t\tint okashiCount = sc.nextInt();\n\t\tint itazuraCount = 0;\n\t\tboolean[] itazuraFlag = new boolean [sunukeCount];\n\t\tfor (int i = 0; i < sunukeCount; i++) {\n\t\t\t\titazuraFlag[i] = true;\n\t\t}\n\n\t\tfor (int i = 0; i < okashiCount; i++) {\n\t\t\tint dCount = sc.nextInt();\n\t\t\tfor (int j = 0; j < dCount; j++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\ttmp--;\n\t\t\t\titazuraFlag[tmp] = false;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < sunukeCount; i++) {\n\t\t\tif (itazuraFlag[i] == true) {\n\t\t\t\titazuraCount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(itazuraCount);\n\n\treturn;\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int sunukeCount = sc.nextInt();",
"sunukeCount",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int okashiCount = sc.nextInt();",
"okashiCount",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int itazuraCount = 0;",
"itazuraCount",
"0",
"boolean[] itazuraFlag = new boolean [sunukeCount];",
"itazuraFlag",
"new boolean [sunukeCount]",
"sunukeCount",
"for (int i = 0; i < sunukeCount; i++) {\n\t\t\t\titazuraFlag[i] = true;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < sunukeCount",
"i",
"sunukeCount",
"i++",
"i++",
"i",
"{\n\t\t\t\titazuraFlag[i] = true;\n\t\t}",
"{\n\t\t\t\titazuraFlag[i] = true;\n\t\t}",
"itazuraFlag[i] = true",
"itazuraFlag[i]",
"itazuraFlag",
"i",
"true",
"for (int i = 0; i < okashiCount; i++) {\n\t\t\tint dCount = sc.nextInt();\n\t\t\tfor (int j = 0; j < dCount; j++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\ttmp--;\n\t\t\t\titazuraFlag[tmp] = false;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < okashiCount",
"i",
"okashiCount",
"i++",
"i++",
"i",
"{\n\t\t\tint dCount = sc.nextInt();\n\t\t\tfor (int j = 0; j < dCount; j++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\ttmp--;\n\t\t\t\titazuraFlag[tmp] = false;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint dCount = sc.nextInt();\n\t\t\tfor (int j = 0; j < dCount; j++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\ttmp--;\n\t\t\t\titazuraFlag[tmp] = false;\n\t\t\t}\n\t\t}",
"int dCount = sc.nextInt();",
"dCount",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int j = 0; j < dCount; j++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\ttmp--;\n\t\t\t\titazuraFlag[tmp] = false;\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < dCount",
"j",
"dCount",
"j++",
"j++",
"j",
"{\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\ttmp--;\n\t\t\t\titazuraFlag[tmp] = false;\n\t\t\t}",
"{\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\ttmp--;\n\t\t\t\titazuraFlag[tmp] = false;\n\t\t\t}",
"int tmp = sc.nextInt();",
"tmp",
"sc.nextInt()",
"sc.nextInt",
"sc",
"tmp--",
"tmp",
"itazuraFlag[tmp] = false",
"itazuraFlag[tmp]",
"itazuraFlag",
"tmp",
"false",
"for (int i = 0; i < sunukeCount; i++) {\n\t\t\tif (itazuraFlag[i] == true) {\n\t\t\t\titazuraCount++;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < sunukeCount",
"i",
"sunukeCount",
"i++",
"i++",
"i",
"{\n\t\t\tif (itazuraFlag[i] == true) {\n\t\t\t\titazuraCount++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (itazuraFlag[i] == true) {\n\t\t\t\titazuraCount++;\n\t\t\t}\n\t\t}",
"if (itazuraFlag[i] == true) {\n\t\t\t\titazuraCount++;\n\t\t\t}",
"itazuraFlag[i] == true",
"itazuraFlag[i]",
"itazuraFlag",
"i",
"true",
"{\n\t\t\t\titazuraCount++;\n\t\t\t}",
"itazuraCount++",
"itazuraCount",
"System.out.print(itazuraCount)",
"System.out.print",
"System.out",
"System",
"System.out",
"itazuraCount",
"return;",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint sunukeCount = sc.nextInt();\n\t\tint okashiCount = sc.nextInt();\n\t\tint itazuraCount = 0;\n\t\tboolean[] itazuraFlag = new boolean [sunukeCount];\n\t\tfor (int i = 0; i < sunukeCount; i++) {\n\t\t\t\titazuraFlag[i] = true;\n\t\t}\n\n\t\tfor (int i = 0; i < okashiCount; i++) {\n\t\t\tint dCount = sc.nextInt();\n\t\t\tfor (int j = 0; j < dCount; j++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\ttmp--;\n\t\t\t\titazuraFlag[tmp] = false;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < sunukeCount; i++) {\n\t\t\tif (itazuraFlag[i] == true) {\n\t\t\t\titazuraCount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(itazuraCount);\n\n\treturn;\n\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint sunukeCount = sc.nextInt();\n\t\tint okashiCount = sc.nextInt();\n\t\tint itazuraCount = 0;\n\t\tboolean[] itazuraFlag = new boolean [sunukeCount];\n\t\tfor (int i = 0; i < sunukeCount; i++) {\n\t\t\t\titazuraFlag[i] = true;\n\t\t}\n\n\t\tfor (int i = 0; i < okashiCount; i++) {\n\t\t\tint dCount = sc.nextInt();\n\t\t\tfor (int j = 0; j < dCount; j++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\ttmp--;\n\t\t\t\titazuraFlag[tmp] = false;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < sunukeCount; i++) {\n\t\t\tif (itazuraFlag[i] == true) {\n\t\t\t\titazuraCount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(itazuraCount);\n\n\treturn;\n\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int sunukeCount = sc.nextInt();
int okashiCount = sc.nextInt();
int itazuraCount = 0;
boolean[] itazuraFlag = new boolean [sunukeCount];
for (int i = 0; i < sunukeCount; i++) {
itazuraFlag[i] = true;
}
for (int i = 0; i < okashiCount; i++) {
int dCount = sc.nextInt();
for (int j = 0; j < dCount; j++) {
int tmp = sc.nextInt();
tmp--;
itazuraFlag[tmp] = false;
}
}
for (int i = 0; i < sunukeCount; i++) {
if (itazuraFlag[i] == true) {
itazuraCount++;
}
}
System.out.print(itazuraCount);
return;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
13,
17,
41,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
102,
5
],
[
102,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
25,
26
],
[
25,
27
],
[
8,
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
],
[
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
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
58,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
8,
69
],
[
69,
70
],
[
69,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
72,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
85,
91
],
[
91,
92
],
[
8,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
6,
99
],
[
99,
100
],
[
0,
101
],
[
101,
102
],
[
101,
103
]
] |
[
"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\t/*人数 種類 3人 2種類\n\t\t * お菓子1を持ってるやつ 2人\n\t\t * すぬけ 1 3\n\t\t * おかし2をもってるやつ 1人\n\t\t * すぬけ 3\n\t\t *\n\t\t * す1 す2 す3\n\t\t * A[0] A[1] A[2] A[3]\n\t\t */\n\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\t//int d[] = new int[K];\n\t\tint A[] = new int[N+1];\n\t\t//int no_snack = 0;\n\n\t\tfor(int i = 0;i<K;i++) {\n\n\t\t\tint d = sc.nextInt();\n\n\t\t\tfor(int j = 0;j<d;j++) {\n\t\t\t\tint sunuke = sc.nextInt();\n\t\t\t\tA[sunuke] = 1;\n\t\t\t}\n\t\t}\n\n\t\tint no_snack = N;\n\t\tfor(int i = 1;i<=N;i++) {\n\t\t\tif(A[i] == 1)\n\t\t\t\tno_snack--;\n\t\t}\n\t\tSystem.out.println(no_snack);\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t/*人数 種類 3人 2種類\n\t\t * お菓子1を持ってるやつ 2人\n\t\t * すぬけ 1 3\n\t\t * おかし2をもってるやつ 1人\n\t\t * すぬけ 3\n\t\t *\n\t\t * す1 す2 す3\n\t\t * A[0] A[1] A[2] A[3]\n\t\t */\n\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\t//int d[] = new int[K];\n\t\tint A[] = new int[N+1];\n\t\t//int no_snack = 0;\n\n\t\tfor(int i = 0;i<K;i++) {\n\n\t\t\tint d = sc.nextInt();\n\n\t\t\tfor(int j = 0;j<d;j++) {\n\t\t\t\tint sunuke = sc.nextInt();\n\t\t\t\tA[sunuke] = 1;\n\t\t\t}\n\t\t}\n\n\t\tint no_snack = N;\n\t\tfor(int i = 1;i<=N;i++) {\n\t\t\tif(A[i] == 1)\n\t\t\t\tno_snack--;\n\t\t}\n\t\tSystem.out.println(no_snack);\n\n }\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t/*人数 種類 3人 2種類\n\t\t * お菓子1を持ってるやつ 2人\n\t\t * すぬけ 1 3\n\t\t * おかし2をもってるやつ 1人\n\t\t * すぬけ 3\n\t\t *\n\t\t * す1 す2 す3\n\t\t * A[0] A[1] A[2] A[3]\n\t\t */\n\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\t//int d[] = new int[K];\n\t\tint A[] = new int[N+1];\n\t\t//int no_snack = 0;\n\n\t\tfor(int i = 0;i<K;i++) {\n\n\t\t\tint d = sc.nextInt();\n\n\t\t\tfor(int j = 0;j<d;j++) {\n\t\t\t\tint sunuke = sc.nextInt();\n\t\t\t\tA[sunuke] = 1;\n\t\t\t}\n\t\t}\n\n\t\tint no_snack = N;\n\t\tfor(int i = 1;i<=N;i++) {\n\t\t\tif(A[i] == 1)\n\t\t\t\tno_snack--;\n\t\t}\n\t\tSystem.out.println(no_snack);\n\n }",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t/*人数 種類 3人 2種類\n\t\t * お菓子1を持ってるやつ 2人\n\t\t * すぬけ 1 3\n\t\t * おかし2をもってるやつ 1人\n\t\t * すぬけ 3\n\t\t *\n\t\t * す1 す2 す3\n\t\t * A[0] A[1] A[2] A[3]\n\t\t */\n\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\t//int d[] = new int[K];\n\t\tint A[] = new int[N+1];\n\t\t//int no_snack = 0;\n\n\t\tfor(int i = 0;i<K;i++) {\n\n\t\t\tint d = sc.nextInt();\n\n\t\t\tfor(int j = 0;j<d;j++) {\n\t\t\t\tint sunuke = sc.nextInt();\n\t\t\t\tA[sunuke] = 1;\n\t\t\t}\n\t\t}\n\n\t\tint no_snack = N;\n\t\tfor(int i = 1;i<=N;i++) {\n\t\t\tif(A[i] == 1)\n\t\t\t\tno_snack--;\n\t\t}\n\t\tSystem.out.println(no_snack);\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A[] = new int[N+1];",
"A",
"new int[N+1]",
"N+1",
"N",
"1",
"for(int i = 0;i<K;i++) {\n\n\t\t\tint d = sc.nextInt();\n\n\t\t\tfor(int j = 0;j<d;j++) {\n\t\t\t\tint sunuke = sc.nextInt();\n\t\t\t\tA[sunuke] = 1;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<K",
"i",
"K",
"i++",
"i++",
"i",
"{\n\n\t\t\tint d = sc.nextInt();\n\n\t\t\tfor(int j = 0;j<d;j++) {\n\t\t\t\tint sunuke = sc.nextInt();\n\t\t\t\tA[sunuke] = 1;\n\t\t\t}\n\t\t}",
"{\n\n\t\t\tint d = sc.nextInt();\n\n\t\t\tfor(int j = 0;j<d;j++) {\n\t\t\t\tint sunuke = sc.nextInt();\n\t\t\t\tA[sunuke] = 1;\n\t\t\t}\n\t\t}",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j = 0;j<d;j++) {\n\t\t\t\tint sunuke = sc.nextInt();\n\t\t\t\tA[sunuke] = 1;\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j<d",
"j",
"d",
"j++",
"j++",
"j",
"{\n\t\t\t\tint sunuke = sc.nextInt();\n\t\t\t\tA[sunuke] = 1;\n\t\t\t}",
"{\n\t\t\t\tint sunuke = sc.nextInt();\n\t\t\t\tA[sunuke] = 1;\n\t\t\t}",
"int sunuke = sc.nextInt();",
"sunuke",
"sc.nextInt()",
"sc.nextInt",
"sc",
"A[sunuke] = 1",
"A[sunuke]",
"A",
"sunuke",
"1",
"int no_snack = N;",
"no_snack",
"N",
"for(int i = 1;i<=N;i++) {\n\t\t\tif(A[i] == 1)\n\t\t\t\tno_snack--;\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i<=N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tif(A[i] == 1)\n\t\t\t\tno_snack--;\n\t\t}",
"{\n\t\t\tif(A[i] == 1)\n\t\t\t\tno_snack--;\n\t\t}",
"if(A[i] == 1)\n\t\t\t\tno_snack--;",
"A[i] == 1",
"A[i]",
"A",
"i",
"1",
"no_snack--",
"no_snack",
"System.out.println(no_snack)",
"System.out.println",
"System.out",
"System",
"System.out",
"no_snack",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t/*人数 種類 3人 2種類\n\t\t * お菓子1を持ってるやつ 2人\n\t\t * すぬけ 1 3\n\t\t * おかし2をもってるやつ 1人\n\t\t * すぬけ 3\n\t\t *\n\t\t * す1 す2 す3\n\t\t * A[0] A[1] A[2] A[3]\n\t\t */\n\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\t//int d[] = new int[K];\n\t\tint A[] = new int[N+1];\n\t\t//int no_snack = 0;\n\n\t\tfor(int i = 0;i<K;i++) {\n\n\t\t\tint d = sc.nextInt();\n\n\t\t\tfor(int j = 0;j<d;j++) {\n\t\t\t\tint sunuke = sc.nextInt();\n\t\t\t\tA[sunuke] = 1;\n\t\t\t}\n\t\t}\n\n\t\tint no_snack = N;\n\t\tfor(int i = 1;i<=N;i++) {\n\t\t\tif(A[i] == 1)\n\t\t\t\tno_snack--;\n\t\t}\n\t\tSystem.out.println(no_snack);\n\n }\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t/*人数 種類 3人 2種類\n\t\t * お菓子1を持ってるやつ 2人\n\t\t * すぬけ 1 3\n\t\t * おかし2をもってるやつ 1人\n\t\t * すぬけ 3\n\t\t *\n\t\t * す1 す2 す3\n\t\t * A[0] A[1] A[2] A[3]\n\t\t */\n\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\t//int d[] = new int[K];\n\t\tint A[] = new int[N+1];\n\t\t//int no_snack = 0;\n\n\t\tfor(int i = 0;i<K;i++) {\n\n\t\t\tint d = sc.nextInt();\n\n\t\t\tfor(int j = 0;j<d;j++) {\n\t\t\t\tint sunuke = sc.nextInt();\n\t\t\t\tA[sunuke] = 1;\n\t\t\t}\n\t\t}\n\n\t\tint no_snack = N;\n\t\tfor(int i = 1;i<=N;i++) {\n\t\t\tif(A[i] == 1)\n\t\t\t\tno_snack--;\n\t\t}\n\t\tSystem.out.println(no_snack);\n\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
/*人数 種類 3人 2種類
* お菓子1を持ってるやつ 2人
* すぬけ 1 3
* おかし2をもってるやつ 1人
* すぬけ 3
*
* す1 す2 す3
* A[0] A[1] A[2] A[3]
*/
int N = sc.nextInt();
int K = sc.nextInt();
//int d[] = new int[K];
int A[] = new int[N+1];
//int no_snack = 0;
for(int i = 0;i<K;i++) {
int d = sc.nextInt();
for(int j = 0;j<d;j++) {
int sunuke = sc.nextInt();
A[sunuke] = 1;
}
}
int no_snack = N;
for(int i = 1;i<=N;i++) {
if(A[i] == 1)
no_snack--;
}
System.out.println(no_snack);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
2,
17,
17,
41,
13,
2,
18,
13,
13,
17,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
2,
4,
18,
13,
17,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
40,
18,
13,
13,
40,
13,
4,
18,
13,
13,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
4,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
6,
13,
41,
13,
12,
13,
30,
4,
13,
18,
13,
13,
12,
13,
30,
0,
18,
36,
13,
20,
23,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
4,
18,
18,
36,
13,
12,
13,
30,
29,
4,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
29,
40,
17,
30,
41,
13,
17,
41,
13,
4,
18,
13,
42,
2,
2,
2,
2,
13,
17,
2,
17,
13,
2,
13,
17,
2,
13,
17,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
4,
18,
13,
41,
13,
2,
13,
17,
42,
17,
30,
0,
13,
4,
18,
13,
14,
2,
2,
13,
17,
2,
17,
13,
29,
2,
13,
13,
0,
13,
17,
0,
13,
2,
13,
17,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
29,
18,
13,
13,
30,
41,
13,
17,
41,
13,
4,
18,
13,
42,
2,
2,
2,
2,
13,
17,
2,
17,
13,
2,
13,
17,
2,
13,
17,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
4,
18,
13,
41,
13,
2,
13,
17,
42,
17,
30,
0,
13,
4,
18,
13,
14,
2,
2,
13,
17,
2,
17,
13,
3,
0,
13,
17,
0,
13,
2,
13,
17,
14,
2,
13,
17,
29,
2,
13,
13,
41,
13,
17,
0,
13,
4,
18,
13,
42,
2,
2,
17,
13,
2,
13,
17,
30,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
17,
0,
13,
4,
18,
13,
29,
2,
2,
13,
13,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
29,
17,
30,
41,
13,
4,
18,
13,
42,
4,
18,
13,
13,
30,
0,
13,
4,
18,
13,
29,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
29,
17,
30,
41,
13,
20,
41,
13,
4,
18,
13,
42,
4,
18,
13,
13,
30,
0,
13,
4,
18,
13,
42,
2,
2,
13,
40,
17,
40,
4,
18,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
18,
13,
29,
4,
18,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
29,
17,
30,
41,
13,
20,
41,
13,
4,
18,
13,
42,
2,
2,
13,
40,
17,
2,
13,
17,
30,
4,
18,
13,
13,
0,
13,
4,
18,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
4,
13,
17,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
2,
13,
17,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
4,
13,
17,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
2,
13,
17,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
783,
8
],
[
783,
9
],
[
9,
10
],
[
783,
11
],
[
11,
12
],
[
783,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
15,
17
],
[
783,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
783,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
27,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
38,
39
],
[
38,
40
],
[
27,
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
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
54,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
60,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
76,
80
],
[
73,
81
],
[
27,
82
],
[
82,
83
],
[
82,
84
],
[
27,
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
],
[
27,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
783,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
109,
115
],
[
115,
116
],
[
783,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
123,
125
],
[
119,
126
],
[
126,
127
],
[
119,
128
],
[
128,
129
],
[
129,
130
],
[
119,
131
],
[
131,
132
],
[
132,
133
],
[
119,
134
],
[
134,
135
],
[
135,
136
],
[
783,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
137,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
146,
148
],
[
137,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
149,
157
],
[
157,
158
],
[
137,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
162,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
137,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
137,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
187,
191
],
[
191,
192
],
[
192,
193
],
[
184,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
194,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
201,
202
],
[
194,
203
],
[
203,
204
],
[
205,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
206,
210
],
[
210,
211
],
[
210,
212
],
[
205,
213
],
[
213,
214
],
[
213,
215
],
[
205,
216
],
[
216,
217
],
[
216,
218
],
[
203,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
223,
224
],
[
194,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
225,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
229,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
237,
238
],
[
225,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
239,
243
],
[
243,
244
],
[
244,
245
],
[
244,
246
],
[
246,
247
],
[
247,
248
],
[
194,
249
],
[
249,
250
],
[
249,
251
],
[
251,
252
],
[
251,
253
],
[
194,
254
],
[
254,
255
],
[
254,
256
],
[
256,
257
],
[
257,
258
],
[
257,
259
],
[
259,
260
],
[
260,
261
],
[
256,
262
],
[
262,
263
],
[
263,
264
],
[
264,
265
],
[
264,
266
],
[
263,
267
],
[
267,
268
],
[
267,
269
],
[
262,
270
],
[
270,
271
],
[
271,
272
],
[
271,
273
],
[
256,
274
],
[
274,
275
],
[
274,
276
],
[
256,
277
],
[
277,
278
],
[
277,
279
],
[
279,
280
],
[
279,
281
],
[
137,
282
],
[
282,
283
],
[
282,
284
],
[
284,
285
],
[
285,
286
],
[
286,
287
],
[
286,
288
],
[
288,
289
],
[
289,
290
],
[
290,
291
],
[
288,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
285,
296
],
[
296,
297
],
[
297,
298
],
[
297,
299
],
[
296,
300
],
[
300,
301
],
[
300,
302
],
[
302,
303
],
[
303,
304
],
[
296,
305
],
[
305,
306
],
[
307,
307
],
[
307,
308
],
[
308,
309
],
[
309,
310
],
[
309,
311
],
[
308,
312
],
[
312,
313
],
[
312,
314
],
[
307,
315
],
[
315,
316
],
[
315,
317
],
[
307,
318
],
[
318,
319
],
[
318,
320
],
[
305,
321
],
[
321,
322
],
[
322,
323
],
[
322,
324
],
[
324,
325
],
[
325,
326
],
[
296,
327
],
[
327,
328
],
[
328,
329
],
[
328,
330
],
[
327,
331
],
[
331,
332
],
[
332,
333
],
[
332,
334
],
[
334,
335
],
[
331,
336
],
[
336,
337
],
[
336,
338
],
[
338,
339
],
[
339,
340
],
[
327,
341
],
[
341,
342
],
[
342,
343
],
[
342,
344
],
[
341,
345
],
[
345,
346
],
[
346,
347
],
[
346,
348
],
[
348,
349
],
[
349,
350
],
[
296,
351
],
[
351,
352
],
[
351,
353
],
[
353,
354
],
[
353,
355
],
[
296,
356
],
[
356,
357
],
[
356,
358
],
[
358,
359
],
[
359,
360
],
[
359,
361
],
[
361,
362
],
[
362,
363
],
[
358,
364
],
[
364,
365
],
[
365,
366
],
[
366,
367
],
[
366,
368
],
[
365,
369
],
[
369,
370
],
[
369,
371
],
[
364,
372
],
[
358,
373
],
[
373,
374
],
[
373,
375
],
[
358,
376
],
[
376,
377
],
[
376,
378
],
[
378,
379
],
[
378,
380
],
[
296,
381
],
[
381,
382
],
[
382,
383
],
[
382,
384
],
[
381,
385
],
[
385,
386
],
[
386,
387
],
[
386,
388
],
[
296,
389
],
[
389,
390
],
[
389,
391
],
[
296,
392
],
[
392,
393
],
[
392,
394
],
[
394,
395
],
[
395,
396
],
[
296,
397
],
[
397,
398
],
[
398,
399
],
[
399,
400
],
[
399,
401
],
[
398,
402
],
[
402,
403
],
[
402,
404
],
[
397,
405
],
[
405,
406
],
[
406,
407
],
[
406,
408
],
[
405,
409
],
[
409,
410
],
[
409,
411
],
[
411,
412
],
[
411,
413
],
[
405,
414
],
[
414,
415
],
[
414,
416
],
[
405,
417
],
[
417,
418
],
[
417,
419
],
[
419,
420
],
[
420,
421
],
[
296,
422
],
[
422,
423
],
[
423,
424
],
[
424,
425
],
[
424,
426
],
[
423,
427
],
[
137,
428
],
[
428,
429
],
[
428,
430
],
[
430,
431
],
[
431,
432
],
[
432,
433
],
[
432,
434
],
[
434,
435
],
[
435,
436
],
[
436,
437
],
[
434,
438
],
[
438,
439
],
[
431,
440
],
[
440,
441
],
[
441,
442
],
[
441,
443
],
[
443,
444
],
[
444,
445
],
[
440,
446
],
[
446,
447
],
[
447,
448
],
[
448,
449
],
[
447,
450
],
[
446,
451
],
[
451,
452
],
[
452,
453
],
[
452,
454
],
[
454,
455
],
[
455,
456
],
[
440,
457
],
[
457,
458
],
[
137,
459
],
[
459,
460
],
[
459,
461
],
[
461,
462
],
[
462,
463
],
[
463,
464
],
[
463,
465
],
[
465,
466
],
[
466,
467
],
[
467,
468
],
[
465,
469
],
[
469,
470
],
[
462,
471
],
[
471,
472
],
[
472,
473
],
[
472,
474
],
[
471,
475
],
[
475,
476
],
[
475,
477
],
[
477,
478
],
[
478,
479
],
[
471,
480
],
[
480,
481
],
[
481,
482
],
[
482,
483
],
[
481,
484
],
[
480,
485
],
[
485,
486
],
[
486,
487
],
[
486,
488
],
[
488,
489
],
[
489,
490
],
[
471,
491
],
[
491,
492
],
[
492,
493
],
[
493,
494
],
[
493,
495
],
[
495,
496
],
[
492,
497
],
[
497,
498
],
[
498,
499
],
[
499,
500
],
[
498,
501
],
[
491,
502
],
[
502,
503
],
[
503,
504
],
[
504,
505
],
[
503,
506
],
[
502,
507
],
[
507,
508
],
[
507,
509
],
[
509,
510
],
[
510,
511
],
[
471,
512
],
[
512,
513
],
[
513,
514
],
[
514,
515
],
[
137,
516
],
[
516,
517
],
[
516,
518
],
[
518,
519
],
[
519,
520
],
[
520,
521
],
[
520,
522
],
[
522,
523
],
[
523,
524
],
[
524,
525
],
[
522,
526
],
[
526,
527
],
[
519,
528
],
[
528,
529
],
[
529,
530
],
[
529,
531
],
[
528,
532
],
[
532,
533
],
[
532,
534
],
[
534,
535
],
[
535,
536
],
[
528,
537
],
[
537,
538
],
[
538,
539
],
[
539,
540
],
[
539,
541
],
[
541,
542
],
[
538,
543
],
[
543,
544
],
[
543,
545
],
[
537,
546
],
[
546,
547
],
[
547,
548
],
[
548,
549
],
[
547,
550
],
[
546,
551
],
[
551,
552
],
[
551,
553
],
[
553,
554
],
[
554,
555
],
[
528,
556
],
[
556,
557
],
[
557,
558
],
[
558,
559
],
[
137,
560
],
[
560,
561
],
[
560,
562
],
[
562,
563
],
[
563,
564
],
[
563,
565
],
[
562,
567
],
[
567,
568
],
[
568,
569
],
[
569,
570
],
[
569,
571
],
[
567,
572
],
[
572,
573
],
[
572,
574
],
[
567,
575
],
[
575,
576
],
[
576,
577
],
[
567,
578
],
[
579,
579
],
[
579,
580
],
[
580,
581
],
[
581,
582
],
[
581,
583
],
[
580,
584
],
[
584,
585
],
[
562,
586
],
[
586,
587
],
[
560,
588
],
[
588,
589
],
[
137,
590
],
[
590,
591
],
[
590,
592
],
[
592,
593
],
[
593,
594
],
[
593,
595
],
[
592,
597
],
[
597,
598
],
[
598,
599
],
[
599,
600
],
[
599,
601
],
[
597,
602
],
[
602,
603
],
[
602,
604
],
[
597,
605
],
[
605,
606
],
[
606,
607
],
[
597,
608
],
[
609,
609
],
[
609,
610
],
[
610,
611
],
[
611,
612
],
[
611,
613
],
[
610,
614
],
[
614,
615
],
[
615,
616
],
[
614,
617
],
[
592,
618
],
[
618,
619
],
[
590,
620
],
[
620,
621
],
[
137,
622
],
[
622,
623
],
[
622,
624
],
[
624,
625
],
[
625,
626
],
[
625,
627
],
[
628,
629
],
[
628,
630
],
[
624,
631
],
[
631,
632
],
[
632,
633
],
[
633,
634
],
[
633,
635
],
[
631,
636
],
[
636,
637
],
[
636,
638
],
[
631,
639
],
[
639,
640
],
[
640,
641
],
[
631,
642
],
[
643,
643
],
[
643,
644
],
[
644,
645
],
[
645,
646
],
[
645,
647
],
[
647,
648
],
[
647,
649
],
[
644,
650
],
[
650,
651
],
[
624,
652
],
[
652,
653
],
[
622,
654
],
[
654,
655
],
[
137,
656
],
[
656,
657
],
[
656,
658
],
[
658,
659
],
[
659,
660
],
[
659,
661
],
[
658,
663
],
[
663,
664
],
[
664,
665
],
[
665,
666
],
[
665,
667
],
[
663,
668
],
[
668,
669
],
[
668,
670
],
[
663,
671
],
[
671,
672
],
[
672,
673
],
[
663,
674
],
[
675,
675
],
[
675,
676
],
[
676,
677
],
[
677,
678
],
[
677,
679
],
[
676,
680
],
[
680,
681
],
[
658,
682
],
[
682,
683
],
[
656,
684
],
[
684,
685
],
[
137,
686
],
[
686,
687
],
[
686,
688
],
[
688,
689
],
[
689,
690
],
[
689,
691
],
[
688,
693
],
[
693,
694
],
[
694,
695
],
[
695,
696
],
[
695,
697
],
[
693,
698
],
[
698,
699
],
[
698,
700
],
[
693,
701
],
[
701,
702
],
[
702,
703
],
[
693,
704
],
[
705,
705
],
[
705,
706
],
[
706,
707
],
[
707,
708
],
[
707,
709
],
[
706,
710
],
[
710,
711
],
[
711,
712
],
[
710,
713
],
[
688,
714
],
[
714,
715
],
[
686,
716
],
[
716,
717
],
[
137,
718
],
[
718,
719
],
[
718,
720
],
[
720,
721
],
[
721,
722
],
[
721,
723
],
[
724,
725
],
[
724,
726
],
[
720,
727
],
[
727,
728
],
[
728,
729
],
[
729,
730
],
[
729,
731
],
[
727,
732
],
[
732,
733
],
[
732,
734
],
[
727,
735
],
[
735,
736
],
[
736,
737
],
[
727,
738
],
[
739,
739
],
[
739,
740
],
[
740,
741
],
[
741,
742
],
[
741,
743
],
[
743,
744
],
[
743,
745
],
[
740,
746
],
[
746,
747
],
[
720,
748
],
[
748,
749
],
[
718,
750
],
[
750,
751
],
[
137,
752
],
[
752,
753
],
[
752,
754
],
[
754,
755
],
[
755,
756
],
[
755,
757
],
[
754,
759
],
[
759,
760
],
[
760,
761
],
[
761,
762
],
[
761,
763
],
[
759,
764
],
[
764,
765
],
[
764,
766
],
[
759,
767
],
[
767,
768
],
[
768,
769
],
[
759,
770
],
[
771,
771
],
[
771,
772
],
[
772,
773
],
[
773,
774
],
[
773,
775
],
[
772,
776
],
[
776,
777
],
[
754,
778
],
[
778,
779
],
[
752,
780
],
[
780,
781
],
[
0,
782
],
[
782,
783
],
[
782,
784
]
] |
[
"import java.io.*;\nimport java.util.*;\n\n@SuppressWarnings(\"unused\")\npublic class Main {\n FastScanner in;\n PrintWriter out;\n final static int MOD = (int)1e9+7;\n final static long INF = Long.MAX_VALUE / 2;\n \n void solve(){\n int N = in.nextInt(), K = in.nextInt();\n boolean[] visited = new boolean[N];\n for(int i = 0; i < K; i++){\n int d = in.nextInt();\n for(int j = 0; j < d; j++){\n visited[in.nextInt()-1] = true;\n }\n }\n int cnt = 0;\n for(int i = 0; i < N; i++){\n if(!visited[i]) cnt++;\n }\n out.println(cnt);\n }\n \n public static void main(String[] args) {\n new Main().m();\n }\n \n private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }\n \n static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {return (int) nextLong();}\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n FastScanner in;\n PrintWriter out;\n final static int MOD = (int)1e9+7;\n final static long INF = Long.MAX_VALUE / 2;\n \n void solve(){\n int N = in.nextInt(), K = in.nextInt();\n boolean[] visited = new boolean[N];\n for(int i = 0; i < K; i++){\n int d = in.nextInt();\n for(int j = 0; j < d; j++){\n visited[in.nextInt()-1] = true;\n }\n }\n int cnt = 0;\n for(int i = 0; i < N; i++){\n if(!visited[i]) cnt++;\n }\n out.println(cnt);\n }\n \n public static void main(String[] args) {\n new Main().m();\n }\n \n private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }\n \n static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {return (int) nextLong();}\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }\n}",
"Main",
"FastScanner in;",
"in",
"PrintWriter out;",
"out",
"final static int MOD = (int)1e9+7;",
"MOD",
"(int)1e9+7",
"(int)1e9",
"7",
"final static long INF = Long.MAX_VALUE / 2;",
"INF",
"Long.MAX_VALUE / 2",
"Long.MAX_VALUE",
"Long",
"Long.MAX_VALUE",
"2",
"void solve(){\n int N = in.nextInt(), K = in.nextInt();\n boolean[] visited = new boolean[N];\n for(int i = 0; i < K; i++){\n int d = in.nextInt();\n for(int j = 0; j < d; j++){\n visited[in.nextInt()-1] = true;\n }\n }\n int cnt = 0;\n for(int i = 0; i < N; i++){\n if(!visited[i]) cnt++;\n }\n out.println(cnt);\n }",
"solve",
"{\n int N = in.nextInt(), K = in.nextInt();\n boolean[] visited = new boolean[N];\n for(int i = 0; i < K; i++){\n int d = in.nextInt();\n for(int j = 0; j < d; j++){\n visited[in.nextInt()-1] = true;\n }\n }\n int cnt = 0;\n for(int i = 0; i < N; i++){\n if(!visited[i]) cnt++;\n }\n out.println(cnt);\n }",
"int N = in.nextInt()",
"N",
"in.nextInt()",
"in.nextInt",
"in",
"K = in.nextInt();",
"K",
"in.nextInt()",
"in.nextInt",
"in",
"boolean[] visited = new boolean[N];",
"visited",
"new boolean[N]",
"N",
"for(int i = 0; i < K; i++){\n int d = in.nextInt();\n for(int j = 0; j < d; j++){\n visited[in.nextInt()-1] = true;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < K",
"i",
"K",
"i++",
"i++",
"i",
"{\n int d = in.nextInt();\n for(int j = 0; j < d; j++){\n visited[in.nextInt()-1] = true;\n }\n }",
"{\n int d = in.nextInt();\n for(int j = 0; j < d; j++){\n visited[in.nextInt()-1] = true;\n }\n }",
"int d = in.nextInt();",
"d",
"in.nextInt()",
"in.nextInt",
"in",
"for(int j = 0; j < d; j++){\n visited[in.nextInt()-1] = true;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < d",
"j",
"d",
"j++",
"j++",
"j",
"{\n visited[in.nextInt()-1] = true;\n }",
"{\n visited[in.nextInt()-1] = true;\n }",
"visited[in.nextInt()-1] = true",
"visited[in.nextInt()-1]",
"visited",
"in.nextInt()-1",
"in.nextInt()",
"in.nextInt",
"in",
"1",
"true",
"int cnt = 0;",
"cnt",
"0",
"for(int i = 0; i < N; i++){\n if(!visited[i]) cnt++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n if(!visited[i]) cnt++;\n }",
"{\n if(!visited[i]) cnt++;\n }",
"if(!visited[i]) cnt++;",
"!visited[i]",
"visited[i]",
"visited",
"i",
"cnt++",
"cnt",
"out.println(cnt)",
"out.println",
"out",
"cnt",
"public static void main(String[] args) {\n new Main().m();\n }",
"main",
"{\n new Main().m();\n }",
"new Main().m()",
"new Main().m",
"new Main()",
"String[] args",
"args",
"private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }",
"m",
"{\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }",
"in = new FastScanner(System.in)",
"in",
"new FastScanner(System.in)",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"solve()",
"solve",
"out.flush()",
"out.flush",
"out",
"in.close()",
"in.close",
"in",
"out.close()",
"out.close",
"out",
"static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {return (int) nextLong();}\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }",
"FastScanner",
"private Reader input;",
"input",
"public FastScanner() {this(System.in);}",
"FastScanner",
"{this(System.in);}",
"this(System.in)",
"this",
"System.in",
"System",
"System.in",
"public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}",
"FastScanner",
"{this.input = new BufferedReader(new InputStreamReader(stream));}",
"this.input = new BufferedReader(new InputStreamReader(stream))",
"this.input",
"this",
"this.input",
"new BufferedReader(new InputStreamReader(stream))",
"InputStream stream",
"stream",
"public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"close",
"{\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n this.input.close();\n }",
"this.input.close()",
"this.input.close",
"this.input",
"this",
"this.input",
"public int nextInt() {return (int) nextLong();}",
"nextInt",
"{return (int) nextLong();}",
"return (int) nextLong();",
"(int) nextLong()",
"nextLong",
"public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }",
"nextLong",
"{\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }",
"try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }",
"catch (IOException e) {\n e.printStackTrace();\n return -1;\n }",
"IOException e",
"{\n e.printStackTrace();\n return -1;\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"return -1;",
"-1",
"1",
"{\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n }",
"int sign = 1;",
"sign",
"1",
"int b = input.read();",
"b",
"input.read()",
"input.read",
"input",
"while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }",
"(b < '0' || '9' < b) && b != '-' && b != '+'",
"(b < '0' || '9' < b) && b != '-' && b != '+'",
"(b < '0' || '9' < b)",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"b != '-'",
"b",
"'-'",
"b != '+'",
"b",
"'+'",
"{\n b = input.read();\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }",
"b == '-'",
"b",
"'-'",
"{\n sign = -1;\n b = input.read();\n }",
"sign = -1",
"sign",
"-1",
"1",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"if (b == '+') {\n b = input.read();\n }",
"b == '+'",
"b",
"'+'",
"{\n b = input.read();\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"long ret = b - '0';",
"ret",
"b - '0'",
"b",
"'0'",
"while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }",
"true",
"{\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"if (b < '0' || '9' < b) return ret * sign;",
"b < '0' || '9' < b",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"return ret * sign;",
"ret * sign",
"ret",
"sign",
"ret *= 10",
"ret",
"10",
"ret += b - '0'",
"ret",
"b - '0'",
"b",
"'0'",
"public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }",
"nextDouble",
"{\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }",
"try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }",
"catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }",
"IOException e",
"{\n e.printStackTrace();\n return Double.NaN;\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"return Double.NaN;",
"Double.NaN",
"Double",
"Double.NaN",
"{\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n }",
"double sign = 1;",
"sign",
"1",
"int b = input.read();",
"b",
"input.read()",
"input.read",
"input",
"while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }",
"(b < '0' || '9' < b) && b != '-' && b != '+'",
"(b < '0' || '9' < b) && b != '-' && b != '+'",
"(b < '0' || '9' < b)",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"b != '-'",
"b",
"'-'",
"b != '+'",
"b",
"'+'",
"{\n b = input.read();\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }",
"b == '-'",
"b",
"'-'",
"{\n sign = -1;\n b = input.read();\n }",
"sign = -1",
"sign",
"-1",
"1",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"if (b == '+') {\n b = input.read();\n }",
"b == '+'",
"b",
"'+'",
"{\n b = input.read();\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"double ret = b - '0';",
"ret",
"b - '0'",
"b",
"'0'",
"while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }",
"true",
"{\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"if (b < '0' || '9' < b) break;",
"b < '0' || '9' < b",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"break;",
"ret *= 10",
"ret",
"10",
"ret += b - '0'",
"ret",
"b - '0'",
"b",
"'0'",
"if (b != '.') return sign * ret;",
"b != '.'",
"b",
"'.'",
"return sign * ret;",
"sign * ret",
"sign",
"ret",
"double div = 1;",
"div",
"1",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }",
"'0' <= b && b <= '9'",
"'0' <= b",
"'0'",
"b",
"b <= '9'",
"b",
"'9'",
"{\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }",
"ret *= 10",
"ret",
"10",
"ret += b - '0'",
"ret",
"b - '0'",
"b",
"'0'",
"div *= 10",
"div",
"10",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"return sign * ret / div;",
"sign * ret / div",
"sign * ret",
"sign",
"ret",
"div",
"public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }",
"nextChar",
"{\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }",
"try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }",
"catch (IOException e) {\n e.printStackTrace();\n return 0;\n }",
"IOException e",
"{\n e.printStackTrace();\n return 0;\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"return 0;",
"0",
"{\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n }",
"int b = input.read();",
"b",
"input.read()",
"input.read",
"input",
"while (Character.isWhitespace(b)) {\n b = input.read();\n }",
"Character.isWhitespace(b)",
"Character.isWhitespace",
"Character",
"b",
"{\n b = input.read();\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"return (char) b;",
"(char) b",
"public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }",
"nextStr",
"{\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }",
"try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }",
"catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }",
"IOException e",
"{\n e.printStackTrace();\n return \"\";\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"return \"\";",
"\"\"",
"{\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n }",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int b = input.read();",
"b",
"input.read()",
"input.read",
"input",
"while (Character.isWhitespace(b)) {\n b = input.read();\n }",
"Character.isWhitespace(b)",
"Character.isWhitespace",
"Character",
"b",
"{\n b = input.read();\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }",
"b != -1 && !Character.isWhitespace(b)",
"b != -1",
"b",
"-1",
"1",
"!Character.isWhitespace(b)",
"Character.isWhitespace(b)",
"Character.isWhitespace",
"Character",
"b",
"{\n sb.append((char) b);\n b = input.read();\n }",
"sb.append((char) b)",
"sb.append",
"sb",
"(char) b",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }",
"nextLine",
"{\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }",
"try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }",
"catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }",
"IOException e",
"{\n e.printStackTrace();\n return \"\";\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"return \"\";",
"\"\"",
"{\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n }",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int b = input.read();",
"b",
"input.read()",
"input.read",
"input",
"while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }",
"b != -1 && b != '\\n'",
"b != -1",
"b",
"-1",
"1",
"b != '\\n'",
"b",
"'\\n'",
"{\n sb.append((char) b);\n b = input.read();\n }",
"sb.append((char) b)",
"sb.append",
"sb",
"(char) b",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }",
"nextIntArray",
"{\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }",
"int[] res = new int[n];",
"res",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i] = nextInt();\n }",
"{\n res[i] = nextInt();\n }",
"res[i] = nextInt()",
"res[i]",
"res",
"i",
"nextInt()",
"nextInt",
"return res;",
"res",
"int n",
"n",
"public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }",
"nextIntArrayDec",
"{\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }",
"int[] res = new int[n];",
"res",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i] = nextInt() - 1;\n }",
"{\n res[i] = nextInt() - 1;\n }",
"res[i] = nextInt() - 1",
"res[i]",
"res",
"i",
"nextInt() - 1",
"nextInt()",
"nextInt",
"1",
"return res;",
"res",
"int n",
"n",
"public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }",
"nextIntArray1Index",
"{\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }",
"int[] res = new int[n + 1];",
"res",
"new int[n + 1]",
"n + 1",
"n",
"1",
"for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i + 1] = nextInt();\n }",
"{\n res[i + 1] = nextInt();\n }",
"res[i + 1] = nextInt()",
"res[i + 1]",
"res",
"i + 1",
"i",
"1",
"nextInt()",
"nextInt",
"return res;",
"res",
"int n",
"n",
"public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }",
"nextLongArray",
"{\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }",
"long[] res = new long[n];",
"res",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i] = nextLong();\n }",
"{\n res[i] = nextLong();\n }",
"res[i] = nextLong()",
"res[i]",
"res",
"i",
"nextLong()",
"nextLong",
"return res;",
"res",
"int n",
"n",
"public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }",
"nextLongArrayDec",
"{\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }",
"long[] res = new long[n];",
"res",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i] = nextLong() - 1;\n }",
"{\n res[i] = nextLong() - 1;\n }",
"res[i] = nextLong() - 1",
"res[i]",
"res",
"i",
"nextLong() - 1",
"nextLong()",
"nextLong",
"1",
"return res;",
"res",
"int n",
"n",
"public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }",
"nextLongArray1Index",
"{\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }",
"long[] res = new long[n + 1];",
"res",
"new long[n + 1]",
"n + 1",
"n",
"1",
"for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i + 1] = nextLong();\n }",
"{\n res[i + 1] = nextLong();\n }",
"res[i + 1] = nextLong()",
"res[i + 1]",
"res",
"i + 1",
"i",
"1",
"nextLong()",
"nextLong",
"return res;",
"res",
"int n",
"n",
"public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }",
"nextDoubleArray",
"{\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }",
"double[] res = new double[n];",
"res",
"new double[n]",
"n",
"for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i] = nextDouble();\n }",
"{\n res[i] = nextDouble();\n }",
"res[i] = nextDouble()",
"res[i]",
"res",
"i",
"nextDouble()",
"nextDouble",
"return res;",
"res",
"int n",
"n",
"public class Main {\n FastScanner in;\n PrintWriter out;\n final static int MOD = (int)1e9+7;\n final static long INF = Long.MAX_VALUE / 2;\n \n void solve(){\n int N = in.nextInt(), K = in.nextInt();\n boolean[] visited = new boolean[N];\n for(int i = 0; i < K; i++){\n int d = in.nextInt();\n for(int j = 0; j < d; j++){\n visited[in.nextInt()-1] = true;\n }\n }\n int cnt = 0;\n for(int i = 0; i < N; i++){\n if(!visited[i]) cnt++;\n }\n out.println(cnt);\n }\n \n public static void main(String[] args) {\n new Main().m();\n }\n \n private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }\n \n static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {return (int) nextLong();}\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }\n}",
"public class Main {\n FastScanner in;\n PrintWriter out;\n final static int MOD = (int)1e9+7;\n final static long INF = Long.MAX_VALUE / 2;\n \n void solve(){\n int N = in.nextInt(), K = in.nextInt();\n boolean[] visited = new boolean[N];\n for(int i = 0; i < K; i++){\n int d = in.nextInt();\n for(int j = 0; j < d; j++){\n visited[in.nextInt()-1] = true;\n }\n }\n int cnt = 0;\n for(int i = 0; i < N; i++){\n if(!visited[i]) cnt++;\n }\n out.println(cnt);\n }\n \n public static void main(String[] args) {\n new Main().m();\n }\n \n private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }\n \n static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {return (int) nextLong();}\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }\n}",
"Main"
] |
import java.io.*;
import java.util.*;
@SuppressWarnings("unused")
public class Main {
FastScanner in;
PrintWriter out;
final static int MOD = (int)1e9+7;
final static long INF = Long.MAX_VALUE / 2;
void solve(){
int N = in.nextInt(), K = in.nextInt();
boolean[] visited = new boolean[N];
for(int i = 0; i < K; i++){
int d = in.nextInt();
for(int j = 0; j < d; j++){
visited[in.nextInt()-1] = true;
}
}
int cnt = 0;
for(int i = 0; i < N; i++){
if(!visited[i]) cnt++;
}
out.println(cnt);
}
public static void main(String[] args) {
new Main().m();
}
private void m() {
in = new FastScanner(System.in);
out = new PrintWriter(System.out);
/*
try {
String path = "input.txt";
out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));
}catch (IOException e){
e.printStackTrace();
}
*/
solve();
out.flush();
in.close();
out.close();
}
static class FastScanner {
private Reader input;
public FastScanner() {this(System.in);}
public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}
public void close() {
try {
this.input.close();
} catch (IOException e) {
e.printStackTrace();
}
}
public int nextInt() {return (int) nextLong();}
public long nextLong() {
try {
int sign = 1;
int b = input.read();
while ((b < '0' || '9' < b) && b != '-' && b != '+') {
b = input.read();
}
if (b == '-') {
sign = -1;
b = input.read();
} else if (b == '+') {
b = input.read();
}
long ret = b - '0';
while (true) {
b = input.read();
if (b < '0' || '9' < b) return ret * sign;
ret *= 10;
ret += b - '0';
}
} catch (IOException e) {
e.printStackTrace();
return -1;
}
}
public double nextDouble() {
try {
double sign = 1;
int b = input.read();
while ((b < '0' || '9' < b) && b != '-' && b != '+') {
b = input.read();
}
if (b == '-') {
sign = -1;
b = input.read();
} else if (b == '+') {
b = input.read();
}
double ret = b - '0';
while (true) {
b = input.read();
if (b < '0' || '9' < b) break;
ret *= 10;
ret += b - '0';
}
if (b != '.') return sign * ret;
double div = 1;
b = input.read();
while ('0' <= b && b <= '9') {
ret *= 10;
ret += b - '0';
div *= 10;
b = input.read();
}
return sign * ret / div;
} catch (IOException e) {
e.printStackTrace();
return Double.NaN;
}
}
public char nextChar() {
try {
int b = input.read();
while (Character.isWhitespace(b)) {
b = input.read();
}
return (char) b;
} catch (IOException e) {
e.printStackTrace();
return 0;
}
}
public String nextStr() {
try {
StringBuilder sb = new StringBuilder();
int b = input.read();
while (Character.isWhitespace(b)) {
b = input.read();
}
while (b != -1 && !Character.isWhitespace(b)) {
sb.append((char) b);
b = input.read();
}
return sb.toString();
} catch (IOException e) {
e.printStackTrace();
return "";
}
}
public String nextLine() {
try {
StringBuilder sb = new StringBuilder();
int b = input.read();
while (b != -1 && b != '\n') {
sb.append((char) b);
b = input.read();
}
return sb.toString();
} catch (IOException e) {
e.printStackTrace();
return "";
}
}
public int[] nextIntArray(int n) {
int[] res = new int[n];
for (int i = 0; i < n; i++) {
res[i] = nextInt();
}
return res;
}
public int[] nextIntArrayDec(int n) {
int[] res = new int[n];
for (int i = 0; i < n; i++) {
res[i] = nextInt() - 1;
}
return res;
}
public int[] nextIntArray1Index(int n) {
int[] res = new int[n + 1];
for (int i = 0; i < n; i++) {
res[i + 1] = nextInt();
}
return res;
}
public long[] nextLongArray(int n) {
long[] res = new long[n];
for (int i = 0; i < n; i++) {
res[i] = nextLong();
}
return res;
}
public long[] nextLongArrayDec(int n) {
long[] res = new long[n];
for (int i = 0; i < n; i++) {
res[i] = nextLong() - 1;
}
return res;
}
public long[] nextLongArray1Index(int n) {
long[] res = new long[n + 1];
for (int i = 0; i < n; i++) {
res[i + 1] = nextLong();
}
return res;
}
public double[] nextDoubleArray(int n) {
double[] res = new double[n];
for (int i = 0; i < n; i++) {
res[i] = nextDouble();
}
return res;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
20,
2,
13,
17,
41,
13,
17,
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,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
112,
5
],
[
112,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
31,
32
],
[
31,
33
],
[
8,
34
],
[
34,
35
],
[
34,
36
],
[
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
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
67,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
8,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
78,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
91,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
8,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
6,
109
],
[
109,
110
],
[
0,
111
],
[
111,
112
],
[
111,
113
]
] |
[
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args) {\n \tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\tint D = 0;\n\t\tint A = 0;\n\t\t\n\t\t\n\t\tint ans[]=new int[N+1];\n\t\tint anss = 0;\n\t\t\n\t\tfor(int i=1;i<=K;i++){\n\t\t\tD = sc.nextInt();\n\t\t\tfor(int j=1;j<=D;j++){\n\t\t\t\tA = sc.nextInt();\n\t\t\t\tans[A]=1;\t\n\t\t\t}\n\t\t}\n\n\t\tfor(int k=1;k<=N;k++){\n\t\t\tif (ans[k]!=1) {\n\t\t\tanss=anss+1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(anss);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n \tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\tint D = 0;\n\t\tint A = 0;\n\t\t\n\t\t\n\t\tint ans[]=new int[N+1];\n\t\tint anss = 0;\n\t\t\n\t\tfor(int i=1;i<=K;i++){\n\t\t\tD = sc.nextInt();\n\t\t\tfor(int j=1;j<=D;j++){\n\t\t\t\tA = sc.nextInt();\n\t\t\t\tans[A]=1;\t\n\t\t\t}\n\t\t}\n\n\t\tfor(int k=1;k<=N;k++){\n\t\t\tif (ans[k]!=1) {\n\t\t\tanss=anss+1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(anss);\n }\n}",
"Main",
"public static void main(String[] args) {\n \tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\tint D = 0;\n\t\tint A = 0;\n\t\t\n\t\t\n\t\tint ans[]=new int[N+1];\n\t\tint anss = 0;\n\t\t\n\t\tfor(int i=1;i<=K;i++){\n\t\t\tD = sc.nextInt();\n\t\t\tfor(int j=1;j<=D;j++){\n\t\t\t\tA = sc.nextInt();\n\t\t\t\tans[A]=1;\t\n\t\t\t}\n\t\t}\n\n\t\tfor(int k=1;k<=N;k++){\n\t\t\tif (ans[k]!=1) {\n\t\t\tanss=anss+1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(anss);\n }",
"main",
"{\n \tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\tint D = 0;\n\t\tint A = 0;\n\t\t\n\t\t\n\t\tint ans[]=new int[N+1];\n\t\tint anss = 0;\n\t\t\n\t\tfor(int i=1;i<=K;i++){\n\t\t\tD = sc.nextInt();\n\t\t\tfor(int j=1;j<=D;j++){\n\t\t\t\tA = sc.nextInt();\n\t\t\t\tans[A]=1;\t\n\t\t\t}\n\t\t}\n\n\t\tfor(int k=1;k<=N;k++){\n\t\t\tif (ans[k]!=1) {\n\t\t\tanss=anss+1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(anss);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int D = 0;",
"D",
"0",
"int A = 0;",
"A",
"0",
"int ans[]=new int[N+1];",
"ans",
"new int[N+1]",
"N+1",
"N",
"1",
"int anss = 0;",
"anss",
"0",
"for(int i=1;i<=K;i++){\n\t\t\tD = sc.nextInt();\n\t\t\tfor(int j=1;j<=D;j++){\n\t\t\t\tA = sc.nextInt();\n\t\t\t\tans[A]=1;\t\n\t\t\t}\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=K",
"i",
"K",
"i++",
"i++",
"i",
"{\n\t\t\tD = sc.nextInt();\n\t\t\tfor(int j=1;j<=D;j++){\n\t\t\t\tA = sc.nextInt();\n\t\t\t\tans[A]=1;\t\n\t\t\t}\n\t\t}",
"{\n\t\t\tD = sc.nextInt();\n\t\t\tfor(int j=1;j<=D;j++){\n\t\t\t\tA = sc.nextInt();\n\t\t\t\tans[A]=1;\t\n\t\t\t}\n\t\t}",
"D = sc.nextInt()",
"D",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j=1;j<=D;j++){\n\t\t\t\tA = sc.nextInt();\n\t\t\t\tans[A]=1;\t\n\t\t\t}",
"int j=1;",
"int j=1;",
"j",
"1",
"j<=D",
"j",
"D",
"j++",
"j++",
"j",
"{\n\t\t\t\tA = sc.nextInt();\n\t\t\t\tans[A]=1;\t\n\t\t\t}",
"{\n\t\t\t\tA = sc.nextInt();\n\t\t\t\tans[A]=1;\t\n\t\t\t}",
"A = sc.nextInt()",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"ans[A]=1",
"ans[A]",
"ans",
"A",
"1",
"for(int k=1;k<=N;k++){\n\t\t\tif (ans[k]!=1) {\n\t\t\tanss=anss+1;\n\t\t\t}\n\t\t}",
"int k=1;",
"int k=1;",
"k",
"1",
"k<=N",
"k",
"N",
"k++",
"k++",
"k",
"{\n\t\t\tif (ans[k]!=1) {\n\t\t\tanss=anss+1;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (ans[k]!=1) {\n\t\t\tanss=anss+1;\n\t\t\t}\n\t\t}",
"if (ans[k]!=1) {\n\t\t\tanss=anss+1;\n\t\t\t}",
"ans[k]!=1",
"ans[k]",
"ans",
"k",
"1",
"{\n\t\t\tanss=anss+1;\n\t\t\t}",
"anss=anss+1",
"anss",
"anss+1",
"anss",
"1",
"System.out.println(anss)",
"System.out.println",
"System.out",
"System",
"System.out",
"anss",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n \tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\tint D = 0;\n\t\tint A = 0;\n\t\t\n\t\t\n\t\tint ans[]=new int[N+1];\n\t\tint anss = 0;\n\t\t\n\t\tfor(int i=1;i<=K;i++){\n\t\t\tD = sc.nextInt();\n\t\t\tfor(int j=1;j<=D;j++){\n\t\t\t\tA = sc.nextInt();\n\t\t\t\tans[A]=1;\t\n\t\t\t}\n\t\t}\n\n\t\tfor(int k=1;k<=N;k++){\n\t\t\tif (ans[k]!=1) {\n\t\t\tanss=anss+1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(anss);\n }\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n \tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\tint D = 0;\n\t\tint A = 0;\n\t\t\n\t\t\n\t\tint ans[]=new int[N+1];\n\t\tint anss = 0;\n\t\t\n\t\tfor(int i=1;i<=K;i++){\n\t\t\tD = sc.nextInt();\n\t\t\tfor(int j=1;j<=D;j++){\n\t\t\t\tA = sc.nextInt();\n\t\t\t\tans[A]=1;\t\n\t\t\t}\n\t\t}\n\n\t\tfor(int k=1;k<=N;k++){\n\t\t\tif (ans[k]!=1) {\n\t\t\tanss=anss+1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(anss);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int K = sc.nextInt();
int D = 0;
int A = 0;
int ans[]=new int[N+1];
int anss = 0;
for(int i=1;i<=K;i++){
D = sc.nextInt();
for(int j=1;j<=D;j++){
A = sc.nextInt();
ans[A]=1;
}
}
for(int k=1;k<=N;k++){
if (ans[k]!=1) {
anss=anss+1;
}
}
System.out.println(anss);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
0,
13,
4,
18,
4,
18,
13,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
18,
13,
13,
0,
18,
13,
13,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
13,
28,
13,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
12,
13,
30,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
194,
11
],
[
194,
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
],
[
25,
26
],
[
14,
27
],
[
27,
28
],
[
28,
29
],
[
12,
30
],
[
30,
31
],
[
194,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
37,
42
],
[
34,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
48,
49
],
[
48,
50
],
[
34,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
56,
58
],
[
34,
59
],
[
59,
60
],
[
59,
61
],
[
34,
63
],
[
63,
64
],
[
63,
65
],
[
34,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
87,
88
],
[
88,
89
],
[
79,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
92,
97
],
[
79,
98
],
[
98,
99
],
[
98,
100
],
[
79,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
108,
110
],
[
101,
111
],
[
111,
112
],
[
112,
113
],
[
101,
114
],
[
115,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
122,
123
],
[
122,
124
],
[
79,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
34,
130
],
[
130,
131
],
[
130,
132
],
[
34,
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
],
[
146,
149
],
[
34,
150
],
[
150,
151
],
[
150,
152
],
[
150,
153
],
[
154,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
155,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
155,
165
],
[
165,
166
],
[
166,
167
],
[
155,
168
],
[
169,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
170,
173
],
[
173,
174
],
[
174,
175
],
[
173,
176
],
[
34,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
182,
183
],
[
183,
184
],
[
32,
185
],
[
185,
186
],
[
194,
187
],
[
187,
188
],
[
187,
189
],
[
194,
190
],
[
190,
191
],
[
190,
192
],
[
0,
193
],
[
193,
194
],
[
193,
195
]
] |
[
"import java.util.*;\nimport java.io.*;\nimport java.nio.charset.StandardCharsets;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}\n\n\tMain(BufferedReader in) throws IOException {\n\t\tString[] tokens = in.readLine().split(\" \");\n\t\tint N = Integer.parseInt(tokens[0]);\n\t\tint K = Integer.parseInt(tokens[1]);\n\n\t\tint[] d = new int[K];\n\t\tList<Integer>[] A = new List[K];\n\t\tfor (int i = 0; i < K; ++i) {\n\t\t\td[i] = Integer.parseInt(in.readLine());\n\t\t\ttokens = in.readLine().split(\" \");\n\t\t\tList<Integer> list = new ArrayList<>();\n\t\t\tfor (int j = 0; j < d[i]; ++j) {\n\t\t\t\tlist.add(Integer.parseInt(tokens[j]));\n\t\t\t}\n\t\t\tA[i] = list;\n\t\t}\n\n\t\tSet<Integer> set = new HashSet<>();\n\t\tfor (int i = 1; i <= N; ++i) {\n\t\t\tset.add(i);\n\t\t}\n\t\tfor (List<Integer> list : A) {\n\t\t\tfor (int j = 0; j < list.size(); ++j) {\n\t\t\t\tset.remove(list.get(j));\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(set.size());\n\t}\n\n\tvoid calc() {\n\t}\n\n\tvoid showResult() {\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.nio.charset.StandardCharsets;",
"StandardCharsets",
"java.nio.charset",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}\n\n\tMain(BufferedReader in) throws IOException {\n\t\tString[] tokens = in.readLine().split(\" \");\n\t\tint N = Integer.parseInt(tokens[0]);\n\t\tint K = Integer.parseInt(tokens[1]);\n\n\t\tint[] d = new int[K];\n\t\tList<Integer>[] A = new List[K];\n\t\tfor (int i = 0; i < K; ++i) {\n\t\t\td[i] = Integer.parseInt(in.readLine());\n\t\t\ttokens = in.readLine().split(\" \");\n\t\t\tList<Integer> list = new ArrayList<>();\n\t\t\tfor (int j = 0; j < d[i]; ++j) {\n\t\t\t\tlist.add(Integer.parseInt(tokens[j]));\n\t\t\t}\n\t\t\tA[i] = list;\n\t\t}\n\n\t\tSet<Integer> set = new HashSet<>();\n\t\tfor (int i = 1; i <= N; ++i) {\n\t\t\tset.add(i);\n\t\t}\n\t\tfor (List<Integer> list : A) {\n\t\t\tfor (int j = 0; j < list.size(); ++j) {\n\t\t\t\tset.remove(list.get(j));\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(set.size());\n\t}\n\n\tvoid calc() {\n\t}\n\n\tvoid showResult() {\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}",
"main",
"{\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}",
"InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);",
"reader",
"new InputStreamReader(System.in, StandardCharsets.UTF_8)",
"BufferedReader in = new BufferedReader(reader);",
"in",
"new BufferedReader(reader)",
"Main ins = new Main(in);",
"ins",
"new Main(in)",
"ins.calc()",
"ins.calc",
"ins",
"ins.showResult()",
"ins.showResult",
"ins",
"String[] args",
"args",
"Main(BufferedReader in) throws IOException {\n\t\tString[] tokens = in.readLine().split(\" \");\n\t\tint N = Integer.parseInt(tokens[0]);\n\t\tint K = Integer.parseInt(tokens[1]);\n\n\t\tint[] d = new int[K];\n\t\tList<Integer>[] A = new List[K];\n\t\tfor (int i = 0; i < K; ++i) {\n\t\t\td[i] = Integer.parseInt(in.readLine());\n\t\t\ttokens = in.readLine().split(\" \");\n\t\t\tList<Integer> list = new ArrayList<>();\n\t\t\tfor (int j = 0; j < d[i]; ++j) {\n\t\t\t\tlist.add(Integer.parseInt(tokens[j]));\n\t\t\t}\n\t\t\tA[i] = list;\n\t\t}\n\n\t\tSet<Integer> set = new HashSet<>();\n\t\tfor (int i = 1; i <= N; ++i) {\n\t\t\tset.add(i);\n\t\t}\n\t\tfor (List<Integer> list : A) {\n\t\t\tfor (int j = 0; j < list.size(); ++j) {\n\t\t\t\tset.remove(list.get(j));\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(set.size());\n\t}",
"Main",
"{\n\t\tString[] tokens = in.readLine().split(\" \");\n\t\tint N = Integer.parseInt(tokens[0]);\n\t\tint K = Integer.parseInt(tokens[1]);\n\n\t\tint[] d = new int[K];\n\t\tList<Integer>[] A = new List[K];\n\t\tfor (int i = 0; i < K; ++i) {\n\t\t\td[i] = Integer.parseInt(in.readLine());\n\t\t\ttokens = in.readLine().split(\" \");\n\t\t\tList<Integer> list = new ArrayList<>();\n\t\t\tfor (int j = 0; j < d[i]; ++j) {\n\t\t\t\tlist.add(Integer.parseInt(tokens[j]));\n\t\t\t}\n\t\t\tA[i] = list;\n\t\t}\n\n\t\tSet<Integer> set = new HashSet<>();\n\t\tfor (int i = 1; i <= N; ++i) {\n\t\t\tset.add(i);\n\t\t}\n\t\tfor (List<Integer> list : A) {\n\t\t\tfor (int j = 0; j < list.size(); ++j) {\n\t\t\t\tset.remove(list.get(j));\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(set.size());\n\t}",
"String[] tokens = in.readLine().split(\" \");",
"tokens",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"int N = Integer.parseInt(tokens[0]);",
"N",
"Integer.parseInt(tokens[0])",
"Integer.parseInt",
"Integer",
"tokens[0]",
"tokens",
"0",
"int K = Integer.parseInt(tokens[1]);",
"K",
"Integer.parseInt(tokens[1])",
"Integer.parseInt",
"Integer",
"tokens[1]",
"tokens",
"1",
"int[] d = new int[K];",
"d",
"new int[K]",
"K",
"List<Integer>[] A = new List[K];",
"A",
"new List[K]",
"K",
"for (int i = 0; i < K; ++i) {\n\t\t\td[i] = Integer.parseInt(in.readLine());\n\t\t\ttokens = in.readLine().split(\" \");\n\t\t\tList<Integer> list = new ArrayList<>();\n\t\t\tfor (int j = 0; j < d[i]; ++j) {\n\t\t\t\tlist.add(Integer.parseInt(tokens[j]));\n\t\t\t}\n\t\t\tA[i] = list;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < K",
"i",
"K",
"++i",
"++i",
"i",
"{\n\t\t\td[i] = Integer.parseInt(in.readLine());\n\t\t\ttokens = in.readLine().split(\" \");\n\t\t\tList<Integer> list = new ArrayList<>();\n\t\t\tfor (int j = 0; j < d[i]; ++j) {\n\t\t\t\tlist.add(Integer.parseInt(tokens[j]));\n\t\t\t}\n\t\t\tA[i] = list;\n\t\t}",
"{\n\t\t\td[i] = Integer.parseInt(in.readLine());\n\t\t\ttokens = in.readLine().split(\" \");\n\t\t\tList<Integer> list = new ArrayList<>();\n\t\t\tfor (int j = 0; j < d[i]; ++j) {\n\t\t\t\tlist.add(Integer.parseInt(tokens[j]));\n\t\t\t}\n\t\t\tA[i] = list;\n\t\t}",
"d[i] = Integer.parseInt(in.readLine())",
"d[i]",
"d",
"i",
"Integer.parseInt(in.readLine())",
"Integer.parseInt",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"tokens = in.readLine().split(\" \")",
"tokens",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"List<Integer> list = new ArrayList<>();",
"list",
"new ArrayList<>()",
"for (int j = 0; j < d[i]; ++j) {\n\t\t\t\tlist.add(Integer.parseInt(tokens[j]));\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < d[i]",
"j",
"d[i]",
"d",
"i",
"++j",
"++j",
"j",
"{\n\t\t\t\tlist.add(Integer.parseInt(tokens[j]));\n\t\t\t}",
"{\n\t\t\t\tlist.add(Integer.parseInt(tokens[j]));\n\t\t\t}",
"list.add(Integer.parseInt(tokens[j]))",
"list.add",
"list",
"Integer.parseInt(tokens[j])",
"Integer.parseInt",
"Integer",
"tokens[j]",
"tokens",
"j",
"A[i] = list",
"A[i]",
"A",
"i",
"list",
"Set<Integer> set = new HashSet<>();",
"set",
"new HashSet<>()",
"for (int i = 1; i <= N; ++i) {\n\t\t\tset.add(i);\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"++i",
"++i",
"i",
"{\n\t\t\tset.add(i);\n\t\t}",
"{\n\t\t\tset.add(i);\n\t\t}",
"set.add(i)",
"set.add",
"set",
"i",
"for (List<Integer> list : A) {\n\t\t\tfor (int j = 0; j < list.size(); ++j) {\n\t\t\t\tset.remove(list.get(j));\n\t\t\t}\n\t\t}",
"List<Integer> list",
"A",
"{\n\t\t\tfor (int j = 0; j < list.size(); ++j) {\n\t\t\t\tset.remove(list.get(j));\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < list.size(); ++j) {\n\t\t\t\tset.remove(list.get(j));\n\t\t\t}\n\t\t}",
"for (int j = 0; j < list.size(); ++j) {\n\t\t\t\tset.remove(list.get(j));\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < list.size()",
"j",
"list.size()",
"list.size",
"list",
"++j",
"++j",
"j",
"{\n\t\t\t\tset.remove(list.get(j));\n\t\t\t}",
"{\n\t\t\t\tset.remove(list.get(j));\n\t\t\t}",
"set.remove(list.get(j))",
"set.remove",
"set",
"list.get(j)",
"list.get",
"list",
"j",
"System.out.println(set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"set.size()",
"set.size",
"set",
"BufferedReader in",
"in",
"void calc() {\n\t}",
"calc",
"{\n\t}",
"void showResult() {\n\t}",
"showResult",
"{\n\t}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}\n\n\tMain(BufferedReader in) throws IOException {\n\t\tString[] tokens = in.readLine().split(\" \");\n\t\tint N = Integer.parseInt(tokens[0]);\n\t\tint K = Integer.parseInt(tokens[1]);\n\n\t\tint[] d = new int[K];\n\t\tList<Integer>[] A = new List[K];\n\t\tfor (int i = 0; i < K; ++i) {\n\t\t\td[i] = Integer.parseInt(in.readLine());\n\t\t\ttokens = in.readLine().split(\" \");\n\t\t\tList<Integer> list = new ArrayList<>();\n\t\t\tfor (int j = 0; j < d[i]; ++j) {\n\t\t\t\tlist.add(Integer.parseInt(tokens[j]));\n\t\t\t}\n\t\t\tA[i] = list;\n\t\t}\n\n\t\tSet<Integer> set = new HashSet<>();\n\t\tfor (int i = 1; i <= N; ++i) {\n\t\t\tset.add(i);\n\t\t}\n\t\tfor (List<Integer> list : A) {\n\t\t\tfor (int j = 0; j < list.size(); ++j) {\n\t\t\t\tset.remove(list.get(j));\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(set.size());\n\t}\n\n\tvoid calc() {\n\t}\n\n\tvoid showResult() {\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}\n\n\tMain(BufferedReader in) throws IOException {\n\t\tString[] tokens = in.readLine().split(\" \");\n\t\tint N = Integer.parseInt(tokens[0]);\n\t\tint K = Integer.parseInt(tokens[1]);\n\n\t\tint[] d = new int[K];\n\t\tList<Integer>[] A = new List[K];\n\t\tfor (int i = 0; i < K; ++i) {\n\t\t\td[i] = Integer.parseInt(in.readLine());\n\t\t\ttokens = in.readLine().split(\" \");\n\t\t\tList<Integer> list = new ArrayList<>();\n\t\t\tfor (int j = 0; j < d[i]; ++j) {\n\t\t\t\tlist.add(Integer.parseInt(tokens[j]));\n\t\t\t}\n\t\t\tA[i] = list;\n\t\t}\n\n\t\tSet<Integer> set = new HashSet<>();\n\t\tfor (int i = 1; i <= N; ++i) {\n\t\t\tset.add(i);\n\t\t}\n\t\tfor (List<Integer> list : A) {\n\t\t\tfor (int j = 0; j < list.size(); ++j) {\n\t\t\t\tset.remove(list.get(j));\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(set.size());\n\t}\n\n\tvoid calc() {\n\t}\n\n\tvoid showResult() {\n\t}\n\n}",
"Main"
] |
import java.util.*;
import java.io.*;
import java.nio.charset.StandardCharsets;
public class Main {
public static void main(String[] args) throws IOException {
InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
BufferedReader in = new BufferedReader(reader);
Main ins = new Main(in);
ins.calc();
ins.showResult();
}
Main(BufferedReader in) throws IOException {
String[] tokens = in.readLine().split(" ");
int N = Integer.parseInt(tokens[0]);
int K = Integer.parseInt(tokens[1]);
int[] d = new int[K];
List<Integer>[] A = new List[K];
for (int i = 0; i < K; ++i) {
d[i] = Integer.parseInt(in.readLine());
tokens = in.readLine().split(" ");
List<Integer> list = new ArrayList<>();
for (int j = 0; j < d[i]; ++j) {
list.add(Integer.parseInt(tokens[j]));
}
A[i] = list;
}
Set<Integer> set = new HashSet<>();
for (int i = 1; i <= N; ++i) {
set.add(i);
}
for (List<Integer> list : A) {
for (int j = 0; j < list.size(); ++j) {
set.remove(list.get(j));
}
}
System.out.println(set.size());
}
void calc() {
}
void showResult() {
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
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
],
[
84,
11
],
[
84,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
14,
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
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
14,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
12,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
] |
[
"import java.util.HashSet;\nimport java.util.Scanner;\nimport java.util.Set;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n int K = scanner.nextInt();\n\n Set<Integer> set = new HashSet<>();\n\n for (int i = 0 ; i < K ; i++) {\n int d = scanner.nextInt();\n\n for (int j = 0 ; j < d ; j++) {\n int a = scanner.nextInt();\n set.add(a);\n }\n }\n\n System.out.println(N - set.size());\n }\n}",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n int K = scanner.nextInt();\n\n Set<Integer> set = new HashSet<>();\n\n for (int i = 0 ; i < K ; i++) {\n int d = scanner.nextInt();\n\n for (int j = 0 ; j < d ; j++) {\n int a = scanner.nextInt();\n set.add(a);\n }\n }\n\n System.out.println(N - set.size());\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n int K = scanner.nextInt();\n\n Set<Integer> set = new HashSet<>();\n\n for (int i = 0 ; i < K ; i++) {\n int d = scanner.nextInt();\n\n for (int j = 0 ; j < d ; j++) {\n int a = scanner.nextInt();\n set.add(a);\n }\n }\n\n System.out.println(N - set.size());\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n int K = scanner.nextInt();\n\n Set<Integer> set = new HashSet<>();\n\n for (int i = 0 ; i < K ; i++) {\n int d = scanner.nextInt();\n\n for (int j = 0 ; j < d ; j++) {\n int a = scanner.nextInt();\n set.add(a);\n }\n }\n\n System.out.println(N - set.size());\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int N = scanner.nextInt();",
"N",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int K = scanner.nextInt();",
"K",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"Set<Integer> set = new HashSet<>();",
"set",
"new HashSet<>()",
"for (int i = 0 ; i < K ; i++) {\n int d = scanner.nextInt();\n\n for (int j = 0 ; j < d ; j++) {\n int a = scanner.nextInt();\n set.add(a);\n }\n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < K",
"i",
"K",
"i++",
"i++",
"i",
"{\n int d = scanner.nextInt();\n\n for (int j = 0 ; j < d ; j++) {\n int a = scanner.nextInt();\n set.add(a);\n }\n }",
"{\n int d = scanner.nextInt();\n\n for (int j = 0 ; j < d ; j++) {\n int a = scanner.nextInt();\n set.add(a);\n }\n }",
"int d = scanner.nextInt();",
"d",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for (int j = 0 ; j < d ; j++) {\n int a = scanner.nextInt();\n set.add(a);\n }",
"int j = 0 ;",
"int j = 0 ;",
"j",
"0",
"j < d",
"j",
"d",
"j++",
"j++",
"j",
"{\n int a = scanner.nextInt();\n set.add(a);\n }",
"{\n int a = scanner.nextInt();\n set.add(a);\n }",
"int a = scanner.nextInt();",
"a",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"set.add(a)",
"set.add",
"set",
"a",
"System.out.println(N - set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"N - set.size()",
"N",
"set.size()",
"set.size",
"set",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n int K = scanner.nextInt();\n\n Set<Integer> set = new HashSet<>();\n\n for (int i = 0 ; i < K ; i++) {\n int d = scanner.nextInt();\n\n for (int j = 0 ; j < d ; j++) {\n int a = scanner.nextInt();\n set.add(a);\n }\n }\n\n System.out.println(N - set.size());\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n int K = scanner.nextInt();\n\n Set<Integer> set = new HashSet<>();\n\n for (int i = 0 ; i < K ; i++) {\n int d = scanner.nextInt();\n\n for (int j = 0 ; j < d ; j++) {\n int a = scanner.nextInt();\n set.add(a);\n }\n }\n\n System.out.println(N - set.size());\n }\n}",
"Main"
] |
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
int K = scanner.nextInt();
Set<Integer> set = new HashSet<>();
for (int i = 0 ; i < K ; i++) {
int d = scanner.nextInt();
for (int j = 0 ; j < d ; j++) {
int a = scanner.nextInt();
set.add(a);
}
}
System.out.println(N - set.size());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
40,
18,
13,
2,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
15,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
19,
28
],
[
28,
29
],
[
28,
30
],
[
19,
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
],
[
46,
48
],
[
45,
49
],
[
19,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
19,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
67,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
73,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
85,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
94,
96
],
[
19,
97
],
[
97,
98
],
[
97,
99
],
[
19,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
100,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
113,
119
],
[
119,
120
],
[
19,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
12,
127
],
[
127,
128
]
] |
[
"import java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\n/* Name of the class has to be \"Main\" only if the class is public. */\nclass Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\t// your code goes here\n\t\ttry {\n\t\t Scanner sc=new Scanner(System.in);\n\t\t int n=sc.nextInt();\n\t\t int ar[]=new int[n];\n\t\t for(int i=0;i<n;i++)\n\t\t {\n\t\t ar[i]=0;\n\t\t }\n\t\t int k=sc.nextInt();\n\t\t for(int i=1;i<=k;i++)\n\t\t {\n\t\t int d=sc.nextInt();\n\t\t for(int j=1;j<=d;j++)\n\t\t {\n\t\t int in=sc.nextInt();\n\t\t ar[in-1]++;\n\t\t }\n\t\t }\n\t\t int s=0;\n\t\t for(int i=0;i<n;i++)\n\t\t {\n\t\t if(ar[i]==0)\n\t\t s++;\n\t\t }\n\t\t System.out.println(s);\n\t\t \n\t\t} catch(Exception e) {\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\t// your code goes here\n\t\ttry {\n\t\t Scanner sc=new Scanner(System.in);\n\t\t int n=sc.nextInt();\n\t\t int ar[]=new int[n];\n\t\t for(int i=0;i<n;i++)\n\t\t {\n\t\t ar[i]=0;\n\t\t }\n\t\t int k=sc.nextInt();\n\t\t for(int i=1;i<=k;i++)\n\t\t {\n\t\t int d=sc.nextInt();\n\t\t for(int j=1;j<=d;j++)\n\t\t {\n\t\t int in=sc.nextInt();\n\t\t ar[in-1]++;\n\t\t }\n\t\t }\n\t\t int s=0;\n\t\t for(int i=0;i<n;i++)\n\t\t {\n\t\t if(ar[i]==0)\n\t\t s++;\n\t\t }\n\t\t System.out.println(s);\n\t\t \n\t\t} catch(Exception e) {\n\t\t}\n\t}\n}",
"Main",
"public static void main (String[] args) throws java.lang.Exception\n\t{\n\t\t// your code goes here\n\t\ttry {\n\t\t Scanner sc=new Scanner(System.in);\n\t\t int n=sc.nextInt();\n\t\t int ar[]=new int[n];\n\t\t for(int i=0;i<n;i++)\n\t\t {\n\t\t ar[i]=0;\n\t\t }\n\t\t int k=sc.nextInt();\n\t\t for(int i=1;i<=k;i++)\n\t\t {\n\t\t int d=sc.nextInt();\n\t\t for(int j=1;j<=d;j++)\n\t\t {\n\t\t int in=sc.nextInt();\n\t\t ar[in-1]++;\n\t\t }\n\t\t }\n\t\t int s=0;\n\t\t for(int i=0;i<n;i++)\n\t\t {\n\t\t if(ar[i]==0)\n\t\t s++;\n\t\t }\n\t\t System.out.println(s);\n\t\t \n\t\t} catch(Exception e) {\n\t\t}\n\t}",
"main",
"{\n\t\t// your code goes here\n\t\ttry {\n\t\t Scanner sc=new Scanner(System.in);\n\t\t int n=sc.nextInt();\n\t\t int ar[]=new int[n];\n\t\t for(int i=0;i<n;i++)\n\t\t {\n\t\t ar[i]=0;\n\t\t }\n\t\t int k=sc.nextInt();\n\t\t for(int i=1;i<=k;i++)\n\t\t {\n\t\t int d=sc.nextInt();\n\t\t for(int j=1;j<=d;j++)\n\t\t {\n\t\t int in=sc.nextInt();\n\t\t ar[in-1]++;\n\t\t }\n\t\t }\n\t\t int s=0;\n\t\t for(int i=0;i<n;i++)\n\t\t {\n\t\t if(ar[i]==0)\n\t\t s++;\n\t\t }\n\t\t System.out.println(s);\n\t\t \n\t\t} catch(Exception e) {\n\t\t}\n\t}",
"try {\n\t\t Scanner sc=new Scanner(System.in);\n\t\t int n=sc.nextInt();\n\t\t int ar[]=new int[n];\n\t\t for(int i=0;i<n;i++)\n\t\t {\n\t\t ar[i]=0;\n\t\t }\n\t\t int k=sc.nextInt();\n\t\t for(int i=1;i<=k;i++)\n\t\t {\n\t\t int d=sc.nextInt();\n\t\t for(int j=1;j<=d;j++)\n\t\t {\n\t\t int in=sc.nextInt();\n\t\t ar[in-1]++;\n\t\t }\n\t\t }\n\t\t int s=0;\n\t\t for(int i=0;i<n;i++)\n\t\t {\n\t\t if(ar[i]==0)\n\t\t s++;\n\t\t }\n\t\t System.out.println(s);\n\t\t \n\t\t} catch(Exception e) {\n\t\t}",
"catch(Exception e) {\n\t\t}",
"Exception e",
"{\n\t\t}",
"{\n\t\t Scanner sc=new Scanner(System.in);\n\t\t int n=sc.nextInt();\n\t\t int ar[]=new int[n];\n\t\t for(int i=0;i<n;i++)\n\t\t {\n\t\t ar[i]=0;\n\t\t }\n\t\t int k=sc.nextInt();\n\t\t for(int i=1;i<=k;i++)\n\t\t {\n\t\t int d=sc.nextInt();\n\t\t for(int j=1;j<=d;j++)\n\t\t {\n\t\t int in=sc.nextInt();\n\t\t ar[in-1]++;\n\t\t }\n\t\t }\n\t\t int s=0;\n\t\t for(int i=0;i<n;i++)\n\t\t {\n\t\t if(ar[i]==0)\n\t\t s++;\n\t\t }\n\t\t System.out.println(s);\n\t\t \n\t\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ar[]=new int[n];",
"ar",
"new int[n]",
"n",
"for(int i=0;i<n;i++)\n\t\t {\n\t\t ar[i]=0;\n\t\t }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t ar[i]=0;\n\t\t }",
"{\n\t\t ar[i]=0;\n\t\t }",
"ar[i]=0",
"ar[i]",
"ar",
"i",
"0",
"int k=sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=1;i<=k;i++)\n\t\t {\n\t\t int d=sc.nextInt();\n\t\t for(int j=1;j<=d;j++)\n\t\t {\n\t\t int in=sc.nextInt();\n\t\t ar[in-1]++;\n\t\t }\n\t\t }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=k",
"i",
"k",
"i++",
"i++",
"i",
"{\n\t\t int d=sc.nextInt();\n\t\t for(int j=1;j<=d;j++)\n\t\t {\n\t\t int in=sc.nextInt();\n\t\t ar[in-1]++;\n\t\t }\n\t\t }",
"{\n\t\t int d=sc.nextInt();\n\t\t for(int j=1;j<=d;j++)\n\t\t {\n\t\t int in=sc.nextInt();\n\t\t ar[in-1]++;\n\t\t }\n\t\t }",
"int d=sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j=1;j<=d;j++)\n\t\t {\n\t\t int in=sc.nextInt();\n\t\t ar[in-1]++;\n\t\t }",
"int j=1;",
"int j=1;",
"j",
"1",
"j<=d",
"j",
"d",
"j++",
"j++",
"j",
"{\n\t\t int in=sc.nextInt();\n\t\t ar[in-1]++;\n\t\t }",
"{\n\t\t int in=sc.nextInt();\n\t\t ar[in-1]++;\n\t\t }",
"int in=sc.nextInt();",
"in",
"sc.nextInt()",
"sc.nextInt",
"sc",
"ar[in-1]++",
"ar[in-1]",
"ar",
"in-1",
"in",
"1",
"int s=0;",
"s",
"0",
"for(int i=0;i<n;i++)\n\t\t {\n\t\t if(ar[i]==0)\n\t\t s++;\n\t\t }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t if(ar[i]==0)\n\t\t s++;\n\t\t }",
"{\n\t\t if(ar[i]==0)\n\t\t s++;\n\t\t }",
"if(ar[i]==0)\n\t\t s++;",
"ar[i]==0",
"ar[i]",
"ar",
"i",
"0",
"s++",
"s",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String[] args",
"args"
] |
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
try {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int ar[]=new int[n];
for(int i=0;i<n;i++)
{
ar[i]=0;
}
int k=sc.nextInt();
for(int i=1;i<=k;i++)
{
int d=sc.nextInt();
for(int j=1;j<=d;j++)
{
int in=sc.nextInt();
ar[in-1]++;
}
}
int s=0;
for(int i=0;i<n;i++)
{
if(ar[i]==0)
s++;
}
System.out.println(s);
} catch(Exception e) {
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
4,
18,
13,
13,
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,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
2,
13,
17,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
106,
5
],
[
106,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
26,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
67,
73
],
[
8,
74
],
[
74,
75
],
[
74,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
95,
96
],
[
8,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
6,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
] |
[
"//package atcoder;\n \nimport java.util.*;\n \npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\t\n\t\tboolean judge[] = new boolean[N];\n\t\tArrays.fill(judge, true);\n\t\t\n\t\tfor(int i=0;i<K;i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j=0;j<d;j++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tjudge[a-1] = false;\n\t\t\t}\n\t\t\t//System.out.println(d);\n\t\t}\n\t\tint count = 0;\n\t\tfor(int l=0;l<N;l++) {\n\t\t\tif(judge[l]) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\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 K = sc.nextInt();\n\t\t\n\t\tboolean judge[] = new boolean[N];\n\t\tArrays.fill(judge, true);\n\t\t\n\t\tfor(int i=0;i<K;i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j=0;j<d;j++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tjudge[a-1] = false;\n\t\t\t}\n\t\t\t//System.out.println(d);\n\t\t}\n\t\tint count = 0;\n\t\tfor(int l=0;l<N;l++) {\n\t\t\tif(judge[l]) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\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 K = sc.nextInt();\n\t\t\n\t\tboolean judge[] = new boolean[N];\n\t\tArrays.fill(judge, true);\n\t\t\n\t\tfor(int i=0;i<K;i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j=0;j<d;j++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tjudge[a-1] = false;\n\t\t\t}\n\t\t\t//System.out.println(d);\n\t\t}\n\t\tint count = 0;\n\t\tfor(int l=0;l<N;l++) {\n\t\t\tif(judge[l]) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\t\n\t\tboolean judge[] = new boolean[N];\n\t\tArrays.fill(judge, true);\n\t\t\n\t\tfor(int i=0;i<K;i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j=0;j<d;j++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tjudge[a-1] = false;\n\t\t\t}\n\t\t\t//System.out.println(d);\n\t\t}\n\t\tint count = 0;\n\t\tfor(int l=0;l<N;l++) {\n\t\t\tif(judge[l]) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"boolean judge[] = new boolean[N];",
"judge",
"new boolean[N]",
"N",
"Arrays.fill(judge, true)",
"Arrays.fill",
"Arrays",
"judge",
"true",
"for(int i=0;i<K;i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j=0;j<d;j++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tjudge[a-1] = false;\n\t\t\t}\n\t\t\t//System.out.println(d);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<K",
"i",
"K",
"i++",
"i++",
"i",
"{\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j=0;j<d;j++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tjudge[a-1] = false;\n\t\t\t}\n\t\t\t//System.out.println(d);\n\t\t}",
"{\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j=0;j<d;j++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tjudge[a-1] = false;\n\t\t\t}\n\t\t\t//System.out.println(d);\n\t\t}",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j=0;j<d;j++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tjudge[a-1] = false;\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<d",
"j",
"d",
"j++",
"j++",
"j",
"{\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tjudge[a-1] = false;\n\t\t\t}",
"{\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tjudge[a-1] = false;\n\t\t\t}",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"judge[a-1] = false",
"judge[a-1]",
"judge",
"a-1",
"a",
"1",
"false",
"int count = 0;",
"count",
"0",
"for(int l=0;l<N;l++) {\n\t\t\tif(judge[l]) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}",
"int l=0;",
"int l=0;",
"l",
"0",
"l<N",
"l",
"N",
"l++",
"l++",
"l",
"{\n\t\t\tif(judge[l]) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(judge[l]) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}",
"if(judge[l]) {\n\t\t\t\tcount ++;\n\t\t\t}",
"judge[l]",
"judge",
"l",
"{\n\t\t\t\tcount ++;\n\t\t\t}",
"count ++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"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 K = sc.nextInt();\n\t\t\n\t\tboolean judge[] = new boolean[N];\n\t\tArrays.fill(judge, true);\n\t\t\n\t\tfor(int i=0;i<K;i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j=0;j<d;j++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tjudge[a-1] = false;\n\t\t\t}\n\t\t\t//System.out.println(d);\n\t\t}\n\t\tint count = 0;\n\t\tfor(int l=0;l<N;l++) {\n\t\t\tif(judge[l]) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\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 K = sc.nextInt();\n\t\t\n\t\tboolean judge[] = new boolean[N];\n\t\tArrays.fill(judge, true);\n\t\t\n\t\tfor(int i=0;i<K;i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j=0;j<d;j++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tjudge[a-1] = false;\n\t\t\t}\n\t\t\t//System.out.println(d);\n\t\t}\n\t\tint count = 0;\n\t\tfor(int l=0;l<N;l++) {\n\t\t\tif(judge[l]) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t}\n}",
"Main"
] |
//package atcoder;
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int K = sc.nextInt();
boolean judge[] = new boolean[N];
Arrays.fill(judge, true);
for(int i=0;i<K;i++) {
int d = sc.nextInt();
for(int j=0;j<d;j++) {
int a = sc.nextInt();
judge[a-1] = false;
}
//System.out.println(d);
}
int count = 0;
for(int l=0;l<N;l++) {
if(judge[l]) {
count ++;
}
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
2,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
42,
2,
40,
13,
17,
30,
0,
18,
13,
4,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
87,
5
],
[
87,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
28,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
33,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
45,
51
],
[
8,
52
],
[
52,
53
],
[
52,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
55,
65
],
[
65,
66
],
[
66,
67
],
[
55,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
70,
76
],
[
76,
77
],
[
8,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
6,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
] |
[
"\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 = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\tint[] a = new int[N + 1];\n\t\twhile (K-- > 0) {\n\t\t\tint x = sc.nextInt();\n\t\t\twhile (x-- > 0) {\n\t\t\t\ta[sc.nextInt()] = 1;\n\t\t\t}\n\t\t}\n\t\tint count = 0;\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\tif (a[i] != 1)\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(count);\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 K = sc.nextInt();\n\t\tint[] a = new int[N + 1];\n\t\twhile (K-- > 0) {\n\t\t\tint x = sc.nextInt();\n\t\t\twhile (x-- > 0) {\n\t\t\t\ta[sc.nextInt()] = 1;\n\t\t\t}\n\t\t}\n\t\tint count = 0;\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\tif (a[i] != 1)\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(count);\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 K = sc.nextInt();\n\t\tint[] a = new int[N + 1];\n\t\twhile (K-- > 0) {\n\t\t\tint x = sc.nextInt();\n\t\t\twhile (x-- > 0) {\n\t\t\t\ta[sc.nextInt()] = 1;\n\t\t\t}\n\t\t}\n\t\tint count = 0;\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\tif (a[i] != 1)\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\tint[] a = new int[N + 1];\n\t\twhile (K-- > 0) {\n\t\t\tint x = sc.nextInt();\n\t\t\twhile (x-- > 0) {\n\t\t\t\ta[sc.nextInt()] = 1;\n\t\t\t}\n\t\t}\n\t\tint count = 0;\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\tif (a[i] != 1)\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] a = new int[N + 1];",
"a",
"new int[N + 1]",
"N + 1",
"N",
"1",
"while (K-- > 0) {\n\t\t\tint x = sc.nextInt();\n\t\t\twhile (x-- > 0) {\n\t\t\t\ta[sc.nextInt()] = 1;\n\t\t\t}\n\t\t}",
"K-- > 0",
"K--",
"K",
"0",
"{\n\t\t\tint x = sc.nextInt();\n\t\t\twhile (x-- > 0) {\n\t\t\t\ta[sc.nextInt()] = 1;\n\t\t\t}\n\t\t}",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"while (x-- > 0) {\n\t\t\t\ta[sc.nextInt()] = 1;\n\t\t\t}",
"x-- > 0",
"x--",
"x",
"0",
"{\n\t\t\t\ta[sc.nextInt()] = 1;\n\t\t\t}",
"a[sc.nextInt()] = 1",
"a[sc.nextInt()]",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"int count = 0;",
"count",
"0",
"for (int i = 1; i < a.length; i++) {\n\t\t\tif (a[i] != 1)\n\t\t\t\tcount++;\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"{\n\t\t\tif (a[i] != 1)\n\t\t\t\tcount++;\n\t\t}",
"{\n\t\t\tif (a[i] != 1)\n\t\t\t\tcount++;\n\t\t}",
"if (a[i] != 1)\n\t\t\t\tcount++;",
"a[i] != 1",
"a[i]",
"a",
"i",
"1",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"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 K = sc.nextInt();\n\t\tint[] a = new int[N + 1];\n\t\twhile (K-- > 0) {\n\t\t\tint x = sc.nextInt();\n\t\t\twhile (x-- > 0) {\n\t\t\t\ta[sc.nextInt()] = 1;\n\t\t\t}\n\t\t}\n\t\tint count = 0;\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\tif (a[i] != 1)\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(count);\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 K = sc.nextInt();\n\t\tint[] a = new int[N + 1];\n\t\twhile (K-- > 0) {\n\t\t\tint x = sc.nextInt();\n\t\t\twhile (x-- > 0) {\n\t\t\t\ta[sc.nextInt()] = 1;\n\t\t\t}\n\t\t}\n\t\tint count = 0;\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\tif (a[i] != 1)\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(count);\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 K = sc.nextInt();
int[] a = new int[N + 1];
while (K-- > 0) {
int x = sc.nextInt();
while (x-- > 0) {
a[sc.nextInt()] = 1;
}
}
int count = 0;
for (int i = 1; i < a.length; i++) {
if (a[i] != 1)
count++;
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
4,
18,
13,
13,
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,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
2,
13,
17,
17,
4,
18,
13,
41,
13,
17,
28,
13,
13,
30,
30,
14,
40,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
100,
5
],
[
100,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
26,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
67,
73
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
8,
77
],
[
77,
78
],
[
77,
79
],
[
8,
80
],
[
80,
81
],
[
80,
82
],
[
80,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
89,
90
],
[
8,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
6,
97
],
[
97,
98
],
[
0,
99
],
[
99,
100
],
[
99,
101
]
] |
[
"import java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n boolean[] valList = new boolean[n];\n Arrays.fill(valList, false);\n for (int i = 0; i < k; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n int havingMan = sc.nextInt();\n valList[havingMan - 1] = true;\n }\n }\n sc.close();\n\n int result = 0;\n for (boolean b : valList) {\n if (!b) {\n result++;\n }\n }\n\n System.out.println(result);\n }\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n boolean[] valList = new boolean[n];\n Arrays.fill(valList, false);\n for (int i = 0; i < k; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n int havingMan = sc.nextInt();\n valList[havingMan - 1] = true;\n }\n }\n sc.close();\n\n int result = 0;\n for (boolean b : valList) {\n if (!b) {\n result++;\n }\n }\n\n System.out.println(result);\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n boolean[] valList = new boolean[n];\n Arrays.fill(valList, false);\n for (int i = 0; i < k; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n int havingMan = sc.nextInt();\n valList[havingMan - 1] = true;\n }\n }\n sc.close();\n\n int result = 0;\n for (boolean b : valList) {\n if (!b) {\n result++;\n }\n }\n\n System.out.println(result);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n boolean[] valList = new boolean[n];\n Arrays.fill(valList, false);\n for (int i = 0; i < k; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n int havingMan = sc.nextInt();\n valList[havingMan - 1] = true;\n }\n }\n sc.close();\n\n int result = 0;\n for (boolean b : valList) {\n if (!b) {\n result++;\n }\n }\n\n System.out.println(result);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"boolean[] valList = new boolean[n];",
"valList",
"new boolean[n]",
"n",
"Arrays.fill(valList, false)",
"Arrays.fill",
"Arrays",
"valList",
"false",
"for (int i = 0; i < k; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n int havingMan = sc.nextInt();\n valList[havingMan - 1] = true;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"{\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n int havingMan = sc.nextInt();\n valList[havingMan - 1] = true;\n }\n }",
"{\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n int havingMan = sc.nextInt();\n valList[havingMan - 1] = true;\n }\n }",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int j = 0; j < d; j++) {\n int havingMan = sc.nextInt();\n valList[havingMan - 1] = true;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < d",
"j",
"d",
"j++",
"j++",
"j",
"{\n int havingMan = sc.nextInt();\n valList[havingMan - 1] = true;\n }",
"{\n int havingMan = sc.nextInt();\n valList[havingMan - 1] = true;\n }",
"int havingMan = sc.nextInt();",
"havingMan",
"sc.nextInt()",
"sc.nextInt",
"sc",
"valList[havingMan - 1] = true",
"valList[havingMan - 1]",
"valList",
"havingMan - 1",
"havingMan",
"1",
"true",
"sc.close()",
"sc.close",
"sc",
"int result = 0;",
"result",
"0",
"for (boolean b : valList) {\n if (!b) {\n result++;\n }\n }",
"boolean b",
"valList",
"{\n if (!b) {\n result++;\n }\n }",
"{\n if (!b) {\n result++;\n }\n }",
"if (!b) {\n result++;\n }",
"!b",
"b",
"{\n result++;\n }",
"result++",
"result",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n boolean[] valList = new boolean[n];\n Arrays.fill(valList, false);\n for (int i = 0; i < k; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n int havingMan = sc.nextInt();\n valList[havingMan - 1] = true;\n }\n }\n sc.close();\n\n int result = 0;\n for (boolean b : valList) {\n if (!b) {\n result++;\n }\n }\n\n System.out.println(result);\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n boolean[] valList = new boolean[n];\n Arrays.fill(valList, false);\n for (int i = 0; i < k; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n int havingMan = sc.nextInt();\n valList[havingMan - 1] = true;\n }\n }\n sc.close();\n\n int result = 0;\n for (boolean b : valList) {\n if (!b) {\n result++;\n }\n }\n\n System.out.println(result);\n }\n\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int k = sc.nextInt();
boolean[] valList = new boolean[n];
Arrays.fill(valList, false);
for (int i = 0; i < k; i++) {
int d = sc.nextInt();
for (int j = 0; j < d; j++) {
int havingMan = sc.nextInt();
valList[havingMan - 1] = true;
}
}
sc.close();
int result = 0;
for (boolean b : valList) {
if (!b) {
result++;
}
}
System.out.println(result);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
13,
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,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
17,
4,
18,
13,
28,
13,
4,
18,
13,
30,
30,
14,
2,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
119,
11
],
[
119,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
14,
31
],
[
31,
32
],
[
31,
33
],
[
14,
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
],
[
47,
50
],
[
47,
51
],
[
14,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
52,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
64,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
82,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
88,
92
],
[
14,
93
],
[
93,
94
],
[
94,
95
],
[
14,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
96,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
108,
109
],
[
14,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
12,
116
],
[
116,
117
],
[
0,
118
],
[
118,
119
],
[
118,
120
]
] |
[
"\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.Scanner;\n\n\npublic class Main {\n\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n int sum = 0;\n Map<Integer, Integer> map = new HashMap<Integer, Integer>();\n for(int i=1;i<=n;i++){\n map.put(i, 0);\n }\n for(int i=0;i<k;i++){\n int d = sc.nextInt();\n for(int j=0;j<d;j++){\n int a = sc.nextInt();\n map.put(a, 1);\n }\n }\n sc.close();\n for(int ans : map.values()){\n if(ans == 0){\n sum++;\n }\n }\n System.out.println(sum); \n }\n}",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.Map;",
"Map",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n int sum = 0;\n Map<Integer, Integer> map = new HashMap<Integer, Integer>();\n for(int i=1;i<=n;i++){\n map.put(i, 0);\n }\n for(int i=0;i<k;i++){\n int d = sc.nextInt();\n for(int j=0;j<d;j++){\n int a = sc.nextInt();\n map.put(a, 1);\n }\n }\n sc.close();\n for(int ans : map.values()){\n if(ans == 0){\n sum++;\n }\n }\n System.out.println(sum); \n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n int sum = 0;\n Map<Integer, Integer> map = new HashMap<Integer, Integer>();\n for(int i=1;i<=n;i++){\n map.put(i, 0);\n }\n for(int i=0;i<k;i++){\n int d = sc.nextInt();\n for(int j=0;j<d;j++){\n int a = sc.nextInt();\n map.put(a, 1);\n }\n }\n sc.close();\n for(int ans : map.values()){\n if(ans == 0){\n sum++;\n }\n }\n System.out.println(sum); \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n int sum = 0;\n Map<Integer, Integer> map = new HashMap<Integer, Integer>();\n for(int i=1;i<=n;i++){\n map.put(i, 0);\n }\n for(int i=0;i<k;i++){\n int d = sc.nextInt();\n for(int j=0;j<d;j++){\n int a = sc.nextInt();\n map.put(a, 1);\n }\n }\n sc.close();\n for(int ans : map.values()){\n if(ans == 0){\n sum++;\n }\n }\n System.out.println(sum); \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int sum = 0;",
"sum",
"0",
"Map<Integer, Integer> map = new HashMap<Integer, Integer>();",
"map",
"new HashMap<Integer, Integer>()",
"for(int i=1;i<=n;i++){\n map.put(i, 0);\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n map.put(i, 0);\n }",
"{\n map.put(i, 0);\n }",
"map.put(i, 0)",
"map.put",
"map",
"i",
"0",
"for(int i=0;i<k;i++){\n int d = sc.nextInt();\n for(int j=0;j<d;j++){\n int a = sc.nextInt();\n map.put(a, 1);\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<k",
"i",
"k",
"i++",
"i++",
"i",
"{\n int d = sc.nextInt();\n for(int j=0;j<d;j++){\n int a = sc.nextInt();\n map.put(a, 1);\n }\n }",
"{\n int d = sc.nextInt();\n for(int j=0;j<d;j++){\n int a = sc.nextInt();\n map.put(a, 1);\n }\n }",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j=0;j<d;j++){\n int a = sc.nextInt();\n map.put(a, 1);\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<d",
"j",
"d",
"j++",
"j++",
"j",
"{\n int a = sc.nextInt();\n map.put(a, 1);\n }",
"{\n int a = sc.nextInt();\n map.put(a, 1);\n }",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"map.put(a, 1)",
"map.put",
"map",
"a",
"1",
"sc.close()",
"sc.close",
"sc",
"for(int ans : map.values()){\n if(ans == 0){\n sum++;\n }\n }",
"int ans",
"map.values()",
"map.values",
"map",
"{\n if(ans == 0){\n sum++;\n }\n }",
"{\n if(ans == 0){\n sum++;\n }\n }",
"if(ans == 0){\n sum++;\n }",
"ans == 0",
"ans",
"0",
"{\n sum++;\n }",
"sum++",
"sum",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main {\n\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n int sum = 0;\n Map<Integer, Integer> map = new HashMap<Integer, Integer>();\n for(int i=1;i<=n;i++){\n map.put(i, 0);\n }\n for(int i=0;i<k;i++){\n int d = sc.nextInt();\n for(int j=0;j<d;j++){\n int a = sc.nextInt();\n map.put(a, 1);\n }\n }\n sc.close();\n for(int ans : map.values()){\n if(ans == 0){\n sum++;\n }\n }\n System.out.println(sum); \n }\n}",
"public class Main {\n\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n int sum = 0;\n Map<Integer, Integer> map = new HashMap<Integer, Integer>();\n for(int i=1;i<=n;i++){\n map.put(i, 0);\n }\n for(int i=0;i<k;i++){\n int d = sc.nextInt();\n for(int j=0;j<d;j++){\n int a = sc.nextInt();\n map.put(a, 1);\n }\n }\n sc.close();\n for(int ans : map.values()){\n if(ans == 0){\n sum++;\n }\n }\n System.out.println(sum); \n }\n}",
"Main"
] |
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int k = sc.nextInt();
int sum = 0;
Map<Integer, Integer> map = new HashMap<Integer, Integer>();
for(int i=1;i<=n;i++){
map.put(i, 0);
}
for(int i=0;i<k;i++){
int d = sc.nextInt();
for(int j=0;j<d;j++){
int a = sc.nextInt();
map.put(a, 1);
}
}
sc.close();
for(int ans : map.values()){
if(ans == 0){
sum++;
}
}
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
40,
4,
18,
13,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
103,
11
],
[
103,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
14,
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
],
[
43,
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
],
[
65,
66
],
[
66,
67
],
[
14,
68
],
[
68,
69
],
[
68,
70
],
[
14,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
71,
82
],
[
83,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
84,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
14,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
12,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
] |
[
"import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n\n List<Integer> list = new ArrayList<>();\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n list.add(sc.nextInt());\n }\n }\n\n int count = 0;\n for (int k = 1; k <= N; k++) {\n if(!list.contains(k)) {\n count += 1;\n }\n }\n System.out.println(count);\n }\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 public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n\n List<Integer> list = new ArrayList<>();\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n list.add(sc.nextInt());\n }\n }\n\n int count = 0;\n for (int k = 1; k <= N; k++) {\n if(!list.contains(k)) {\n count += 1;\n }\n }\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n\n List<Integer> list = new ArrayList<>();\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n list.add(sc.nextInt());\n }\n }\n\n int count = 0;\n for (int k = 1; k <= N; k++) {\n if(!list.contains(k)) {\n count += 1;\n }\n }\n System.out.println(count);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n\n List<Integer> list = new ArrayList<>();\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n list.add(sc.nextInt());\n }\n }\n\n int count = 0;\n for (int k = 1; k <= N; k++) {\n if(!list.contains(k)) {\n count += 1;\n }\n }\n System.out.println(count);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"List<Integer> list = new ArrayList<>();",
"list",
"new ArrayList<>()",
"for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n list.add(sc.nextInt());\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < K",
"i",
"K",
"i++",
"i++",
"i",
"{\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n list.add(sc.nextInt());\n }\n }",
"{\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n list.add(sc.nextInt());\n }\n }",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int j = 0; j < d; j++) {\n list.add(sc.nextInt());\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < d",
"j",
"d",
"j++",
"j++",
"j",
"{\n list.add(sc.nextInt());\n }",
"{\n list.add(sc.nextInt());\n }",
"list.add(sc.nextInt())",
"list.add",
"list",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int count = 0;",
"count",
"0",
"for (int k = 1; k <= N; k++) {\n if(!list.contains(k)) {\n count += 1;\n }\n }",
"int k = 1;",
"int k = 1;",
"k",
"1",
"k <= N",
"k",
"N",
"k++",
"k++",
"k",
"{\n if(!list.contains(k)) {\n count += 1;\n }\n }",
"{\n if(!list.contains(k)) {\n count += 1;\n }\n }",
"if(!list.contains(k)) {\n count += 1;\n }",
"!list.contains(k)",
"list.contains(k)",
"list.contains",
"list",
"k",
"{\n count += 1;\n }",
"count += 1",
"count",
"1",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n\n List<Integer> list = new ArrayList<>();\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n list.add(sc.nextInt());\n }\n }\n\n int count = 0;\n for (int k = 1; k <= N; k++) {\n if(!list.contains(k)) {\n count += 1;\n }\n }\n System.out.println(count);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n\n List<Integer> list = new ArrayList<>();\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n list.add(sc.nextInt());\n }\n }\n\n int count = 0;\n for (int k = 1; k <= N; k++) {\n if(!list.contains(k)) {\n count += 1;\n }\n }\n System.out.println(count);\n }\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 = sc.nextInt();
int K = sc.nextInt();
List<Integer> list = new ArrayList<>();
for (int i = 0; i < K; i++) {
int d = sc.nextInt();
for (int j = 0; j < d; j++) {
list.add(sc.nextInt());
}
}
int count = 0;
for (int k = 1; k <= N; k++) {
if(!list.contains(k)) {
count += 1;
}
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
17,
0,
18,
13,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
106,
5
],
[
106,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
59,
63
],
[
56,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
8,
69
],
[
69,
70
],
[
69,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
72,
82
],
[
82,
83
],
[
83,
84
],
[
72,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
87,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
8,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
6,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
] |
[
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 人数の入力\n\t\tint ninzu = sc.nextInt();\n\t\tint okasi = sc.nextInt();\n \tint[] sum = new int[ninzu];\n \tfor (int i=0; i<okasi; i++){\n \tint c = sc.nextInt();\n \tfor (int j=0; j<c; j++){\n int d = sc.nextInt() - 1;\n sum[d] = 1;\n }\n }\n \tint ans = 0;\n \tfor (int i=0; i<sum.length; i++) {\n if (sum[i] == 0) {\n ans += 1;\n }\n }\n\t\t// 出力\n\t\tSystem.out.println(ans);\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\t// 人数の入力\n\t\tint ninzu = sc.nextInt();\n\t\tint okasi = sc.nextInt();\n \tint[] sum = new int[ninzu];\n \tfor (int i=0; i<okasi; i++){\n \tint c = sc.nextInt();\n \tfor (int j=0; j<c; j++){\n int d = sc.nextInt() - 1;\n sum[d] = 1;\n }\n }\n \tint ans = 0;\n \tfor (int i=0; i<sum.length; i++) {\n if (sum[i] == 0) {\n ans += 1;\n }\n }\n\t\t// 出力\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 人数の入力\n\t\tint ninzu = sc.nextInt();\n\t\tint okasi = sc.nextInt();\n \tint[] sum = new int[ninzu];\n \tfor (int i=0; i<okasi; i++){\n \tint c = sc.nextInt();\n \tfor (int j=0; j<c; j++){\n int d = sc.nextInt() - 1;\n sum[d] = 1;\n }\n }\n \tint ans = 0;\n \tfor (int i=0; i<sum.length; i++) {\n if (sum[i] == 0) {\n ans += 1;\n }\n }\n\t\t// 出力\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 人数の入力\n\t\tint ninzu = sc.nextInt();\n\t\tint okasi = sc.nextInt();\n \tint[] sum = new int[ninzu];\n \tfor (int i=0; i<okasi; i++){\n \tint c = sc.nextInt();\n \tfor (int j=0; j<c; j++){\n int d = sc.nextInt() - 1;\n sum[d] = 1;\n }\n }\n \tint ans = 0;\n \tfor (int i=0; i<sum.length; i++) {\n if (sum[i] == 0) {\n ans += 1;\n }\n }\n\t\t// 出力\n\t\tSystem.out.println(ans);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int ninzu = sc.nextInt();",
"ninzu",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int okasi = sc.nextInt();",
"okasi",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] sum = new int[ninzu];",
"sum",
"new int[ninzu]",
"ninzu",
"for (int i=0; i<okasi; i++){\n \tint c = sc.nextInt();\n \tfor (int j=0; j<c; j++){\n int d = sc.nextInt() - 1;\n sum[d] = 1;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<okasi",
"i",
"okasi",
"i++",
"i++",
"i",
"{\n \tint c = sc.nextInt();\n \tfor (int j=0; j<c; j++){\n int d = sc.nextInt() - 1;\n sum[d] = 1;\n }\n }",
"{\n \tint c = sc.nextInt();\n \tfor (int j=0; j<c; j++){\n int d = sc.nextInt() - 1;\n sum[d] = 1;\n }\n }",
"int c = sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int j=0; j<c; j++){\n int d = sc.nextInt() - 1;\n sum[d] = 1;\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<c",
"j",
"c",
"j++",
"j++",
"j",
"{\n int d = sc.nextInt() - 1;\n sum[d] = 1;\n }",
"{\n int d = sc.nextInt() - 1;\n sum[d] = 1;\n }",
"int d = sc.nextInt() - 1;",
"d",
"sc.nextInt() - 1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"sum[d] = 1",
"sum[d]",
"sum",
"d",
"1",
"int ans = 0;",
"ans",
"0",
"for (int i=0; i<sum.length; i++) {\n if (sum[i] == 0) {\n ans += 1;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<sum.length",
"i",
"sum.length",
"sum",
"sum.length",
"i++",
"i++",
"i",
"{\n if (sum[i] == 0) {\n ans += 1;\n }\n }",
"{\n if (sum[i] == 0) {\n ans += 1;\n }\n }",
"if (sum[i] == 0) {\n ans += 1;\n }",
"sum[i] == 0",
"sum[i]",
"sum",
"i",
"0",
"{\n ans += 1;\n }",
"ans += 1",
"ans",
"1",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 人数の入力\n\t\tint ninzu = sc.nextInt();\n\t\tint okasi = sc.nextInt();\n \tint[] sum = new int[ninzu];\n \tfor (int i=0; i<okasi; i++){\n \tint c = sc.nextInt();\n \tfor (int j=0; j<c; j++){\n int d = sc.nextInt() - 1;\n sum[d] = 1;\n }\n }\n \tint ans = 0;\n \tfor (int i=0; i<sum.length; i++) {\n if (sum[i] == 0) {\n ans += 1;\n }\n }\n\t\t// 出力\n\t\tSystem.out.println(ans);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 人数の入力\n\t\tint ninzu = sc.nextInt();\n\t\tint okasi = sc.nextInt();\n \tint[] sum = new int[ninzu];\n \tfor (int i=0; i<okasi; i++){\n \tint c = sc.nextInt();\n \tfor (int j=0; j<c; j++){\n int d = sc.nextInt() - 1;\n sum[d] = 1;\n }\n }\n \tint ans = 0;\n \tfor (int i=0; i<sum.length; i++) {\n if (sum[i] == 0) {\n ans += 1;\n }\n }\n\t\t// 出力\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 人数の入力
int ninzu = sc.nextInt();
int okasi = sc.nextInt();
int[] sum = new int[ninzu];
for (int i=0; i<okasi; i++){
int c = sc.nextInt();
for (int j=0; j<c; j++){
int d = sc.nextInt() - 1;
sum[d] = 1;
}
}
int ans = 0;
for (int i=0; i<sum.length; i++) {
if (sum[i] == 0) {
ans += 1;
}
}
// 出力
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
2,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
40,
18,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
43,
49
],
[
49,
50
],
[
49,
51
],
[
43,
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
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
71,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
79,
89
],
[
89,
90
],
[
90,
91
],
[
79,
92
],
[
93,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
94,
100
],
[
100,
101
],
[
8,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
6,
108
],
[
108,
109
]
] |
[
"import java.util.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n //ArrayList<Integer> array = new ArrayList<Integer>();\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n int ans[] = new int[N+1];\n int sum = 0;\n for(int i=0; i<K; i++) {\n int d = sc.nextInt();\n int[] A = new int[d];\n for(int j=0;j<d; j++) {\n A[j] = sc.nextInt();\n ans[A[j]]++;\n }\n //array.add(A[i]);\n }\n //System.out.println(N-array.size());\n for(int i=1;i<N+1;i++) {\n if(ans[i] == 0) sum++;\n }\n System.out.println(sum);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n\tpublic static void main(String[] args) {\n //ArrayList<Integer> array = new ArrayList<Integer>();\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n int ans[] = new int[N+1];\n int sum = 0;\n for(int i=0; i<K; i++) {\n int d = sc.nextInt();\n int[] A = new int[d];\n for(int j=0;j<d; j++) {\n A[j] = sc.nextInt();\n ans[A[j]]++;\n }\n //array.add(A[i]);\n }\n //System.out.println(N-array.size());\n for(int i=1;i<N+1;i++) {\n if(ans[i] == 0) sum++;\n }\n System.out.println(sum);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n //ArrayList<Integer> array = new ArrayList<Integer>();\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n int ans[] = new int[N+1];\n int sum = 0;\n for(int i=0; i<K; i++) {\n int d = sc.nextInt();\n int[] A = new int[d];\n for(int j=0;j<d; j++) {\n A[j] = sc.nextInt();\n ans[A[j]]++;\n }\n //array.add(A[i]);\n }\n //System.out.println(N-array.size());\n for(int i=1;i<N+1;i++) {\n if(ans[i] == 0) sum++;\n }\n System.out.println(sum);\n\t}",
"main",
"{\n //ArrayList<Integer> array = new ArrayList<Integer>();\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n int ans[] = new int[N+1];\n int sum = 0;\n for(int i=0; i<K; i++) {\n int d = sc.nextInt();\n int[] A = new int[d];\n for(int j=0;j<d; j++) {\n A[j] = sc.nextInt();\n ans[A[j]]++;\n }\n //array.add(A[i]);\n }\n //System.out.println(N-array.size());\n for(int i=1;i<N+1;i++) {\n if(ans[i] == 0) sum++;\n }\n System.out.println(sum);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ans[] = new int[N+1];",
"ans",
"new int[N+1]",
"N+1",
"N",
"1",
"int sum = 0;",
"sum",
"0",
"for(int i=0; i<K; i++) {\n int d = sc.nextInt();\n int[] A = new int[d];\n for(int j=0;j<d; j++) {\n A[j] = sc.nextInt();\n ans[A[j]]++;\n }\n //array.add(A[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<K",
"i",
"K",
"i++",
"i++",
"i",
"{\n int d = sc.nextInt();\n int[] A = new int[d];\n for(int j=0;j<d; j++) {\n A[j] = sc.nextInt();\n ans[A[j]]++;\n }\n //array.add(A[i]);\n }",
"{\n int d = sc.nextInt();\n int[] A = new int[d];\n for(int j=0;j<d; j++) {\n A[j] = sc.nextInt();\n ans[A[j]]++;\n }\n //array.add(A[i]);\n }",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] A = new int[d];",
"A",
"new int[d]",
"d",
"for(int j=0;j<d; j++) {\n A[j] = sc.nextInt();\n ans[A[j]]++;\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<d",
"j",
"d",
"j++",
"j++",
"j",
"{\n A[j] = sc.nextInt();\n ans[A[j]]++;\n }",
"{\n A[j] = sc.nextInt();\n ans[A[j]]++;\n }",
"A[j] = sc.nextInt()",
"A[j]",
"A",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"ans[A[j]]++",
"ans[A[j]]",
"ans",
"A[j]",
"A",
"j",
"for(int i=1;i<N+1;i++) {\n if(ans[i] == 0) sum++;\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<N+1",
"i",
"N+1",
"N",
"1",
"i++",
"i++",
"i",
"{\n if(ans[i] == 0) sum++;\n }",
"{\n if(ans[i] == 0) sum++;\n }",
"if(ans[i] == 0) sum++;",
"ans[i] == 0",
"ans[i]",
"ans",
"i",
"0",
"sum++",
"sum",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args"
] |
import java.util.*;
class Main {
public static void main(String[] args) {
//ArrayList<Integer> array = new ArrayList<Integer>();
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int K = sc.nextInt();
int ans[] = new int[N+1];
int sum = 0;
for(int i=0; i<K; i++) {
int d = sc.nextInt();
int[] A = new int[d];
for(int j=0;j<d; j++) {
A[j] = sc.nextInt();
ans[A[j]]++;
}
//array.add(A[i]);
}
//System.out.println(N-array.size());
for(int i=1;i<N+1;i++) {
if(ans[i] == 0) sum++;
}
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
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
],
[
92,
11
],
[
92,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
14,
32
],
[
32,
33
],
[
32,
34
],
[
14,
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
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
55,
65
],
[
65,
66
],
[
66,
67
],
[
55,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
74,
75
],
[
14,
76
],
[
76,
77
],
[
77,
78
],
[
14,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
12,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
]
] |
[
"import java.util.HashSet;\nimport java.util.Scanner;\nimport java.util.Set;\n\npublic class Main {\n public static void main(final String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] d = new int[K];\n Set<String> A = new HashSet<>();\n for (int i = 0; i < K; i++) {\n d[i] = sc.nextInt();\n for (int j = 0; j < d[i]; j++) {\n A.add(sc.next());\n }\n }\n sc.close();\n\n System.out.println(N - A.size());\n }\n}",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"public class Main {\n public static void main(final String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] d = new int[K];\n Set<String> A = new HashSet<>();\n for (int i = 0; i < K; i++) {\n d[i] = sc.nextInt();\n for (int j = 0; j < d[i]; j++) {\n A.add(sc.next());\n }\n }\n sc.close();\n\n System.out.println(N - A.size());\n }\n}",
"Main",
"public static void main(final String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] d = new int[K];\n Set<String> A = new HashSet<>();\n for (int i = 0; i < K; i++) {\n d[i] = sc.nextInt();\n for (int j = 0; j < d[i]; j++) {\n A.add(sc.next());\n }\n }\n sc.close();\n\n System.out.println(N - A.size());\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] d = new int[K];\n Set<String> A = new HashSet<>();\n for (int i = 0; i < K; i++) {\n d[i] = sc.nextInt();\n for (int j = 0; j < d[i]; j++) {\n A.add(sc.next());\n }\n }\n sc.close();\n\n System.out.println(N - A.size());\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] d = new int[K];",
"d",
"new int[K]",
"K",
"Set<String> A = new HashSet<>();",
"A",
"new HashSet<>()",
"for (int i = 0; i < K; i++) {\n d[i] = sc.nextInt();\n for (int j = 0; j < d[i]; j++) {\n A.add(sc.next());\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < K",
"i",
"K",
"i++",
"i++",
"i",
"{\n d[i] = sc.nextInt();\n for (int j = 0; j < d[i]; j++) {\n A.add(sc.next());\n }\n }",
"{\n d[i] = sc.nextInt();\n for (int j = 0; j < d[i]; j++) {\n A.add(sc.next());\n }\n }",
"d[i] = sc.nextInt()",
"d[i]",
"d",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int j = 0; j < d[i]; j++) {\n A.add(sc.next());\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < d[i]",
"j",
"d[i]",
"d",
"i",
"j++",
"j++",
"j",
"{\n A.add(sc.next());\n }",
"{\n A.add(sc.next());\n }",
"A.add(sc.next())",
"A.add",
"A",
"sc.next()",
"sc.next",
"sc",
"sc.close()",
"sc.close",
"sc",
"System.out.println(N - A.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"N - A.size()",
"N",
"A.size()",
"A.size",
"A",
"final String[] args",
"args",
"public class Main {\n public static void main(final String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] d = new int[K];\n Set<String> A = new HashSet<>();\n for (int i = 0; i < K; i++) {\n d[i] = sc.nextInt();\n for (int j = 0; j < d[i]; j++) {\n A.add(sc.next());\n }\n }\n sc.close();\n\n System.out.println(N - A.size());\n }\n}",
"public class Main {\n public static void main(final String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] d = new int[K];\n Set<String> A = new HashSet<>();\n for (int i = 0; i < K; i++) {\n d[i] = sc.nextInt();\n for (int j = 0; j < d[i]; j++) {\n A.add(sc.next());\n }\n }\n sc.close();\n\n System.out.println(N - A.size());\n }\n}",
"Main"
] |
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
public class Main {
public static void main(final String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int K = sc.nextInt();
int[] d = new int[K];
Set<String> A = new HashSet<>();
for (int i = 0; i < K; i++) {
d[i] = sc.nextInt();
for (int j = 0; j < d[i]; j++) {
A.add(sc.next());
}
}
sc.close();
System.out.println(N - A.size());
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
20,
13,
0,
18,
13,
13,
4,
18,
13,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
2,
13,
17,
30,
0,
18,
13,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
157,
5
],
[
157,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
66,
67
],
[
56,
68
],
[
68,
69
],
[
68,
70
],
[
71,
72
],
[
71,
73
],
[
56,
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
],
[
90,
92
],
[
89,
93
],
[
93,
94
],
[
94,
95
],
[
88,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
96,
104
],
[
104,
105
],
[
105,
106
],
[
96,
107
],
[
108,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
114,
116
],
[
109,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
8,
123
],
[
123,
124
],
[
123,
125
],
[
8,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
126,
134
],
[
134,
135
],
[
135,
136
],
[
126,
137
],
[
138,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
139,
145
],
[
145,
146
],
[
146,
147
],
[
8,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
6,
154
],
[
154,
155
],
[
0,
156
],
[
156,
157
],
[
156,
158
]
] |
[
"\n\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 = sc.nextInt();\n\t\tint k = sc.nextInt();\n\n\t\tint[] count = new int[n];\n\t\tfor(int i = 0;i < n;i++) {\n\t\t\tcount[i] = 0;\n\t\t}\n\n\t\tfor(int j = 0;j < k;j++) {\n\t\t\tint[] d = new int[k];\n\t\t\td[j] = sc.nextInt();\n\t\t\tint[] a = new int[d[j]];\n\t\t\tfor(int i = 0;i < d[j];i++) {\n\t\t\t\ta[i] = sc.nextInt();\n\t\t\t\tfor(int q = 0;q < n;q++) {\n\t\t\t\t\tif(a[i] == q+1) {\n\t\t\t\t\t\tcount[q] = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\n\t\tint totalcount = 0;\n\t\tfor(int i = 0;i < n;i++) {\n\t\t\tif(count[i] == 0) {\n\t\t\t\ttotalcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(totalcount);\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\n\t\tint[] count = new int[n];\n\t\tfor(int i = 0;i < n;i++) {\n\t\t\tcount[i] = 0;\n\t\t}\n\n\t\tfor(int j = 0;j < k;j++) {\n\t\t\tint[] d = new int[k];\n\t\t\td[j] = sc.nextInt();\n\t\t\tint[] a = new int[d[j]];\n\t\t\tfor(int i = 0;i < d[j];i++) {\n\t\t\t\ta[i] = sc.nextInt();\n\t\t\t\tfor(int q = 0;q < n;q++) {\n\t\t\t\t\tif(a[i] == q+1) {\n\t\t\t\t\t\tcount[q] = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\n\t\tint totalcount = 0;\n\t\tfor(int i = 0;i < n;i++) {\n\t\t\tif(count[i] == 0) {\n\t\t\t\ttotalcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(totalcount);\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\n\t\tint[] count = new int[n];\n\t\tfor(int i = 0;i < n;i++) {\n\t\t\tcount[i] = 0;\n\t\t}\n\n\t\tfor(int j = 0;j < k;j++) {\n\t\t\tint[] d = new int[k];\n\t\t\td[j] = sc.nextInt();\n\t\t\tint[] a = new int[d[j]];\n\t\t\tfor(int i = 0;i < d[j];i++) {\n\t\t\t\ta[i] = sc.nextInt();\n\t\t\t\tfor(int q = 0;q < n;q++) {\n\t\t\t\t\tif(a[i] == q+1) {\n\t\t\t\t\t\tcount[q] = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\n\t\tint totalcount = 0;\n\t\tfor(int i = 0;i < n;i++) {\n\t\t\tif(count[i] == 0) {\n\t\t\t\ttotalcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(totalcount);\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\n\t\tint[] count = new int[n];\n\t\tfor(int i = 0;i < n;i++) {\n\t\t\tcount[i] = 0;\n\t\t}\n\n\t\tfor(int j = 0;j < k;j++) {\n\t\t\tint[] d = new int[k];\n\t\t\td[j] = sc.nextInt();\n\t\t\tint[] a = new int[d[j]];\n\t\t\tfor(int i = 0;i < d[j];i++) {\n\t\t\t\ta[i] = sc.nextInt();\n\t\t\t\tfor(int q = 0;q < n;q++) {\n\t\t\t\t\tif(a[i] == q+1) {\n\t\t\t\t\t\tcount[q] = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\n\t\tint totalcount = 0;\n\t\tfor(int i = 0;i < n;i++) {\n\t\t\tif(count[i] == 0) {\n\t\t\t\ttotalcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(totalcount);\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] count = new int[n];",
"count",
"new int[n]",
"n",
"for(int i = 0;i < n;i++) {\n\t\t\tcount[i] = 0;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tcount[i] = 0;\n\t\t}",
"{\n\t\t\tcount[i] = 0;\n\t\t}",
"count[i] = 0",
"count[i]",
"count",
"i",
"0",
"for(int j = 0;j < k;j++) {\n\t\t\tint[] d = new int[k];\n\t\t\td[j] = sc.nextInt();\n\t\t\tint[] a = new int[d[j]];\n\t\t\tfor(int i = 0;i < d[j];i++) {\n\t\t\t\ta[i] = sc.nextInt();\n\t\t\t\tfor(int q = 0;q < n;q++) {\n\t\t\t\t\tif(a[i] == q+1) {\n\t\t\t\t\t\tcount[q] = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < k",
"j",
"k",
"j++",
"j++",
"j",
"{\n\t\t\tint[] d = new int[k];\n\t\t\td[j] = sc.nextInt();\n\t\t\tint[] a = new int[d[j]];\n\t\t\tfor(int i = 0;i < d[j];i++) {\n\t\t\t\ta[i] = sc.nextInt();\n\t\t\t\tfor(int q = 0;q < n;q++) {\n\t\t\t\t\tif(a[i] == q+1) {\n\t\t\t\t\t\tcount[q] = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}",
"{\n\t\t\tint[] d = new int[k];\n\t\t\td[j] = sc.nextInt();\n\t\t\tint[] a = new int[d[j]];\n\t\t\tfor(int i = 0;i < d[j];i++) {\n\t\t\t\ta[i] = sc.nextInt();\n\t\t\t\tfor(int q = 0;q < n;q++) {\n\t\t\t\t\tif(a[i] == q+1) {\n\t\t\t\t\t\tcount[q] = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}",
"int[] d = new int[k];",
"d",
"new int[k]",
"k",
"d[j] = sc.nextInt()",
"d[j]",
"d",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] a = new int[d[j]];",
"a",
"new int[d[j]]",
"d[j]",
"d",
"j",
"for(int i = 0;i < d[j];i++) {\n\t\t\t\ta[i] = sc.nextInt();\n\t\t\t\tfor(int q = 0;q < n;q++) {\n\t\t\t\t\tif(a[i] == q+1) {\n\t\t\t\t\t\tcount[q] = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < d[j]",
"i",
"d[j]",
"d",
"j",
"i++",
"i++",
"i",
"{\n\t\t\t\ta[i] = sc.nextInt();\n\t\t\t\tfor(int q = 0;q < n;q++) {\n\t\t\t\t\tif(a[i] == q+1) {\n\t\t\t\t\t\tcount[q] = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\ta[i] = sc.nextInt();\n\t\t\t\tfor(int q = 0;q < n;q++) {\n\t\t\t\t\tif(a[i] == q+1) {\n\t\t\t\t\t\tcount[q] = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"a[i] = sc.nextInt()",
"a[i]",
"a",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int q = 0;q < n;q++) {\n\t\t\t\t\tif(a[i] == q+1) {\n\t\t\t\t\t\tcount[q] = 1;\n\t\t\t\t\t}\n\t\t\t\t}",
"int q = 0;",
"int q = 0;",
"q",
"0",
"q < n",
"q",
"n",
"q++",
"q++",
"q",
"{\n\t\t\t\t\tif(a[i] == q+1) {\n\t\t\t\t\t\tcount[q] = 1;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif(a[i] == q+1) {\n\t\t\t\t\t\tcount[q] = 1;\n\t\t\t\t\t}\n\t\t\t\t}",
"if(a[i] == q+1) {\n\t\t\t\t\t\tcount[q] = 1;\n\t\t\t\t\t}",
"a[i] == q+1",
"a[i]",
"a",
"i",
"q+1",
"q",
"1",
"{\n\t\t\t\t\t\tcount[q] = 1;\n\t\t\t\t\t}",
"count[q] = 1",
"count[q]",
"count",
"q",
"1",
"int totalcount = 0;",
"totalcount",
"0",
"for(int i = 0;i < n;i++) {\n\t\t\tif(count[i] == 0) {\n\t\t\t\ttotalcount++;\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\tif(count[i] == 0) {\n\t\t\t\ttotalcount++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(count[i] == 0) {\n\t\t\t\ttotalcount++;\n\t\t\t}\n\t\t}",
"if(count[i] == 0) {\n\t\t\t\ttotalcount++;\n\t\t\t}",
"count[i] == 0",
"count[i]",
"count",
"i",
"0",
"{\n\t\t\t\ttotalcount++;\n\t\t\t}",
"totalcount++",
"totalcount",
"System.out.println(totalcount)",
"System.out.println",
"System.out",
"System",
"System.out",
"totalcount",
"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 k = sc.nextInt();\n\n\t\tint[] count = new int[n];\n\t\tfor(int i = 0;i < n;i++) {\n\t\t\tcount[i] = 0;\n\t\t}\n\n\t\tfor(int j = 0;j < k;j++) {\n\t\t\tint[] d = new int[k];\n\t\t\td[j] = sc.nextInt();\n\t\t\tint[] a = new int[d[j]];\n\t\t\tfor(int i = 0;i < d[j];i++) {\n\t\t\t\ta[i] = sc.nextInt();\n\t\t\t\tfor(int q = 0;q < n;q++) {\n\t\t\t\t\tif(a[i] == q+1) {\n\t\t\t\t\t\tcount[q] = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\n\t\tint totalcount = 0;\n\t\tfor(int i = 0;i < n;i++) {\n\t\t\tif(count[i] == 0) {\n\t\t\t\ttotalcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(totalcount);\n\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\n\t\tint[] count = new int[n];\n\t\tfor(int i = 0;i < n;i++) {\n\t\t\tcount[i] = 0;\n\t\t}\n\n\t\tfor(int j = 0;j < k;j++) {\n\t\t\tint[] d = new int[k];\n\t\t\td[j] = sc.nextInt();\n\t\t\tint[] a = new int[d[j]];\n\t\t\tfor(int i = 0;i < d[j];i++) {\n\t\t\t\ta[i] = sc.nextInt();\n\t\t\t\tfor(int q = 0;q < n;q++) {\n\t\t\t\t\tif(a[i] == q+1) {\n\t\t\t\t\t\tcount[q] = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\n\t\tint totalcount = 0;\n\t\tfor(int i = 0;i < n;i++) {\n\t\t\tif(count[i] == 0) {\n\t\t\t\ttotalcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(totalcount);\n\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int k = sc.nextInt();
int[] count = new int[n];
for(int i = 0;i < n;i++) {
count[i] = 0;
}
for(int j = 0;j < k;j++) {
int[] d = new int[k];
d[j] = sc.nextInt();
int[] a = new int[d[j]];
for(int i = 0;i < d[j];i++) {
a[i] = sc.nextInt();
for(int q = 0;q < n;q++) {
if(a[i] == q+1) {
count[q] = 1;
}
}
}
}
int totalcount = 0;
for(int i = 0;i < n;i++) {
if(count[i] == 0) {
totalcount++;
}
}
System.out.println(totalcount);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
2,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
0,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
18,
13,
13,
14,
2,
18,
13,
13,
17,
30,
0,
18,
13,
13,
17,
40,
13,
4,
18,
13,
2,
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
],
[
133,
14
],
[
133,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
23,
28
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
34,
35
],
[
34,
36
],
[
17,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
42,
44
],
[
17,
45
],
[
45,
46
],
[
45,
47
],
[
48,
49
],
[
48,
50
],
[
17,
51
],
[
51,
52
],
[
51,
53
],
[
17,
54
],
[
54,
55
],
[
54,
56
],
[
17,
57
],
[
57,
58
],
[
57,
59
],
[
17,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
60,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
79,
80
],
[
72,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
83,
88
],
[
72,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
97,
98
],
[
98,
99
],
[
89,
100
],
[
101,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
107,
108
],
[
107,
109
],
[
101,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
110,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
116,
122
],
[
122,
123
],
[
17,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
127,
128
],
[
127,
129
],
[
15,
130
],
[
130,
131
],
[
0,
132
],
[
132,
133
],
[
132,
134
]
] |
[
"import java.io.*;\nimport java.util.*;\nimport static java.lang.System.*;\nimport static java.lang.Math.*;\n\npublic class Main\n{\t\n\tpublic static void main(String []args)throws IOException\n\t{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString []s=br.readLine().split(\" \");\n\t\tint N=Integer.parseInt(s[0]);\n\t\tint K=Integer.parseInt(s[1]);\n\t\t\n\t\tint a[]=new int[N+1]; //you can use a set instead of array\n\t\t\n\t\tboolean flag=false;\n\t\tString ans=\"\";\n\t\tint c=0;\n\t\t\n\t\tfor(int i=0;i<K;i++)\n\t\t{\n\t\t\tint d=Integer.parseInt(br.readLine());\n\t\t\ts=br.readLine().split(\" \");\n\t\t\tfor(int j=0;j<d;j++)\n\t\t\t{\n\t\t\t\tint x=Integer.parseInt(s[j]);\n\t\t\t\tif(a[x]==0)\n\t\t\t\t{\n\t\t\t\t\ta[x]=1;\n\t\t\t\t\tc++;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tout.println(N-c);\n\t\t\n\t}\n\t\n\t\n}\n\n",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import static java.lang.System.*;",
"import static java.lang.System.*;",
"import static java.lang.System.*;",
"import static java.lang.Math.*;",
"import static java.lang.Math.*;",
"import static java.lang.Math.*;",
"public class Main\n{\t\n\tpublic static void main(String []args)throws IOException\n\t{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString []s=br.readLine().split(\" \");\n\t\tint N=Integer.parseInt(s[0]);\n\t\tint K=Integer.parseInt(s[1]);\n\t\t\n\t\tint a[]=new int[N+1]; //you can use a set instead of array\n\t\t\n\t\tboolean flag=false;\n\t\tString ans=\"\";\n\t\tint c=0;\n\t\t\n\t\tfor(int i=0;i<K;i++)\n\t\t{\n\t\t\tint d=Integer.parseInt(br.readLine());\n\t\t\ts=br.readLine().split(\" \");\n\t\t\tfor(int j=0;j<d;j++)\n\t\t\t{\n\t\t\t\tint x=Integer.parseInt(s[j]);\n\t\t\t\tif(a[x]==0)\n\t\t\t\t{\n\t\t\t\t\ta[x]=1;\n\t\t\t\t\tc++;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tout.println(N-c);\n\t\t\n\t}\n\t\n\t\n}",
"Main",
"public static void main(String []args)throws IOException\n\t{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString []s=br.readLine().split(\" \");\n\t\tint N=Integer.parseInt(s[0]);\n\t\tint K=Integer.parseInt(s[1]);\n\t\t\n\t\tint a[]=new int[N+1]; //you can use a set instead of array\n\t\t\n\t\tboolean flag=false;\n\t\tString ans=\"\";\n\t\tint c=0;\n\t\t\n\t\tfor(int i=0;i<K;i++)\n\t\t{\n\t\t\tint d=Integer.parseInt(br.readLine());\n\t\t\ts=br.readLine().split(\" \");\n\t\t\tfor(int j=0;j<d;j++)\n\t\t\t{\n\t\t\t\tint x=Integer.parseInt(s[j]);\n\t\t\t\tif(a[x]==0)\n\t\t\t\t{\n\t\t\t\t\ta[x]=1;\n\t\t\t\t\tc++;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tout.println(N-c);\n\t\t\n\t}",
"main",
"{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString []s=br.readLine().split(\" \");\n\t\tint N=Integer.parseInt(s[0]);\n\t\tint K=Integer.parseInt(s[1]);\n\t\t\n\t\tint a[]=new int[N+1]; //you can use a set instead of array\n\t\t\n\t\tboolean flag=false;\n\t\tString ans=\"\";\n\t\tint c=0;\n\t\t\n\t\tfor(int i=0;i<K;i++)\n\t\t{\n\t\t\tint d=Integer.parseInt(br.readLine());\n\t\t\ts=br.readLine().split(\" \");\n\t\t\tfor(int j=0;j<d;j++)\n\t\t\t{\n\t\t\t\tint x=Integer.parseInt(s[j]);\n\t\t\t\tif(a[x]==0)\n\t\t\t\t{\n\t\t\t\t\ta[x]=1;\n\t\t\t\t\tc++;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tout.println(N-c);\n\t\t\n\t}",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String []s=br.readLine().split(\" \");",
"s",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int N=Integer.parseInt(s[0]);",
"N",
"Integer.parseInt(s[0])",
"Integer.parseInt",
"Integer",
"s[0]",
"s",
"0",
"int K=Integer.parseInt(s[1]);",
"K",
"Integer.parseInt(s[1])",
"Integer.parseInt",
"Integer",
"s[1]",
"s",
"1",
"int a[]=new int[N+1];",
"a",
"new int[N+1]",
"N+1",
"N",
"1",
"boolean flag=false;",
"flag",
"false",
"String ans=\"\";",
"ans",
"\"\"",
"int c=0;",
"c",
"0",
"for(int i=0;i<K;i++)\n\t\t{\n\t\t\tint d=Integer.parseInt(br.readLine());\n\t\t\ts=br.readLine().split(\" \");\n\t\t\tfor(int j=0;j<d;j++)\n\t\t\t{\n\t\t\t\tint x=Integer.parseInt(s[j]);\n\t\t\t\tif(a[x]==0)\n\t\t\t\t{\n\t\t\t\t\ta[x]=1;\n\t\t\t\t\tc++;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<K",
"i",
"K",
"i++",
"i++",
"i",
"{\n\t\t\tint d=Integer.parseInt(br.readLine());\n\t\t\ts=br.readLine().split(\" \");\n\t\t\tfor(int j=0;j<d;j++)\n\t\t\t{\n\t\t\t\tint x=Integer.parseInt(s[j]);\n\t\t\t\tif(a[x]==0)\n\t\t\t\t{\n\t\t\t\t\ta[x]=1;\n\t\t\t\t\tc++;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}",
"{\n\t\t\tint d=Integer.parseInt(br.readLine());\n\t\t\ts=br.readLine().split(\" \");\n\t\t\tfor(int j=0;j<d;j++)\n\t\t\t{\n\t\t\t\tint x=Integer.parseInt(s[j]);\n\t\t\t\tif(a[x]==0)\n\t\t\t\t{\n\t\t\t\t\ta[x]=1;\n\t\t\t\t\tc++;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}",
"int d=Integer.parseInt(br.readLine());",
"d",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"s=br.readLine().split(\" \")",
"s",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(int j=0;j<d;j++)\n\t\t\t{\n\t\t\t\tint x=Integer.parseInt(s[j]);\n\t\t\t\tif(a[x]==0)\n\t\t\t\t{\n\t\t\t\t\ta[x]=1;\n\t\t\t\t\tc++;\n\t\t\t\t}\t\t\t\t\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<d",
"j",
"d",
"j++",
"j++",
"j",
"{\n\t\t\t\tint x=Integer.parseInt(s[j]);\n\t\t\t\tif(a[x]==0)\n\t\t\t\t{\n\t\t\t\t\ta[x]=1;\n\t\t\t\t\tc++;\n\t\t\t\t}\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\tint x=Integer.parseInt(s[j]);\n\t\t\t\tif(a[x]==0)\n\t\t\t\t{\n\t\t\t\t\ta[x]=1;\n\t\t\t\t\tc++;\n\t\t\t\t}\t\t\t\t\n\t\t\t}",
"int x=Integer.parseInt(s[j]);",
"x",
"Integer.parseInt(s[j])",
"Integer.parseInt",
"Integer",
"s[j]",
"s",
"j",
"if(a[x]==0)\n\t\t\t\t{\n\t\t\t\t\ta[x]=1;\n\t\t\t\t\tc++;\n\t\t\t\t}",
"a[x]==0",
"a[x]",
"a",
"x",
"0",
"{\n\t\t\t\t\ta[x]=1;\n\t\t\t\t\tc++;\n\t\t\t\t}",
"a[x]=1",
"a[x]",
"a",
"x",
"1",
"c++",
"c",
"out.println(N-c)",
"out.println",
"out",
"N-c",
"N",
"c",
"String []args",
"args",
"public class Main\n{\t\n\tpublic static void main(String []args)throws IOException\n\t{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString []s=br.readLine().split(\" \");\n\t\tint N=Integer.parseInt(s[0]);\n\t\tint K=Integer.parseInt(s[1]);\n\t\t\n\t\tint a[]=new int[N+1]; //you can use a set instead of array\n\t\t\n\t\tboolean flag=false;\n\t\tString ans=\"\";\n\t\tint c=0;\n\t\t\n\t\tfor(int i=0;i<K;i++)\n\t\t{\n\t\t\tint d=Integer.parseInt(br.readLine());\n\t\t\ts=br.readLine().split(\" \");\n\t\t\tfor(int j=0;j<d;j++)\n\t\t\t{\n\t\t\t\tint x=Integer.parseInt(s[j]);\n\t\t\t\tif(a[x]==0)\n\t\t\t\t{\n\t\t\t\t\ta[x]=1;\n\t\t\t\t\tc++;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tout.println(N-c);\n\t\t\n\t}\n\t\n\t\n}",
"public class Main\n{\t\n\tpublic static void main(String []args)throws IOException\n\t{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString []s=br.readLine().split(\" \");\n\t\tint N=Integer.parseInt(s[0]);\n\t\tint K=Integer.parseInt(s[1]);\n\t\t\n\t\tint a[]=new int[N+1]; //you can use a set instead of array\n\t\t\n\t\tboolean flag=false;\n\t\tString ans=\"\";\n\t\tint c=0;\n\t\t\n\t\tfor(int i=0;i<K;i++)\n\t\t{\n\t\t\tint d=Integer.parseInt(br.readLine());\n\t\t\ts=br.readLine().split(\" \");\n\t\t\tfor(int j=0;j<d;j++)\n\t\t\t{\n\t\t\t\tint x=Integer.parseInt(s[j]);\n\t\t\t\tif(a[x]==0)\n\t\t\t\t{\n\t\t\t\t\ta[x]=1;\n\t\t\t\t\tc++;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tout.println(N-c);\n\t\t\n\t}\n\t\n\t\n}",
"Main"
] |
import java.io.*;
import java.util.*;
import static java.lang.System.*;
import static java.lang.Math.*;
public class Main
{
public static void main(String []args)throws IOException
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String []s=br.readLine().split(" ");
int N=Integer.parseInt(s[0]);
int K=Integer.parseInt(s[1]);
int a[]=new int[N+1]; //you can use a set instead of array
boolean flag=false;
String ans="";
int c=0;
for(int i=0;i<K;i++)
{
int d=Integer.parseInt(br.readLine());
s=br.readLine().split(" ");
for(int j=0;j<d;j++)
{
int x=Integer.parseInt(s[j]);
if(a[x]==0)
{
a[x]=1;
c++;
}
}
}
out.println(N-c);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
40,
4,
18,
13,
13,
30,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
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
],
[
91,
11
],
[
91,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
14,
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
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
67,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
14,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
12,
88
],
[
88,
89
],
[
0,
90
],
[
90,
91
],
[
90,
92
]
] |
[
"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\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\t List<Integer> list = new ArrayList<>();\n\t\tfor(int i =0; i < K; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int num = 0; num < d; num++ ) {\n\t\t\t\tint kos = sc.nextInt();\n\t\t\t\tif(!list.contains(kos)) {\n\t\t\t\t\t list.add(kos);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\t\tSystem.out.println(N-list.size());\n\t\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\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\t List<Integer> list = new ArrayList<>();\n\t\tfor(int i =0; i < K; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int num = 0; num < d; num++ ) {\n\t\t\t\tint kos = sc.nextInt();\n\t\t\t\tif(!list.contains(kos)) {\n\t\t\t\t\t list.add(kos);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\t\tSystem.out.println(N-list.size());\n\t\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\t List<Integer> list = new ArrayList<>();\n\t\tfor(int i =0; i < K; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int num = 0; num < d; num++ ) {\n\t\t\t\tint kos = sc.nextInt();\n\t\t\t\tif(!list.contains(kos)) {\n\t\t\t\t\t list.add(kos);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\t\tSystem.out.println(N-list.size());\n\t\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\t List<Integer> list = new ArrayList<>();\n\t\tfor(int i =0; i < K; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int num = 0; num < d; num++ ) {\n\t\t\t\tint kos = sc.nextInt();\n\t\t\t\tif(!list.contains(kos)) {\n\t\t\t\t\t list.add(kos);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\t\tSystem.out.println(N-list.size());\n\t\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"List<Integer> list = new ArrayList<>();",
"list",
"new ArrayList<>()",
"for(int i =0; i < K; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int num = 0; num < d; num++ ) {\n\t\t\t\tint kos = sc.nextInt();\n\t\t\t\tif(!list.contains(kos)) {\n\t\t\t\t\t list.add(kos);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"int i =0;",
"int i =0;",
"i",
"0",
"i < K",
"i",
"K",
"i++",
"i++",
"i",
"{\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int num = 0; num < d; num++ ) {\n\t\t\t\tint kos = sc.nextInt();\n\t\t\t\tif(!list.contains(kos)) {\n\t\t\t\t\t list.add(kos);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"{\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int num = 0; num < d; num++ ) {\n\t\t\t\tint kos = sc.nextInt();\n\t\t\t\tif(!list.contains(kos)) {\n\t\t\t\t\t list.add(kos);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int num = 0; num < d; num++ ) {\n\t\t\t\tint kos = sc.nextInt();\n\t\t\t\tif(!list.contains(kos)) {\n\t\t\t\t\t list.add(kos);\n\t\t\t\t}\n\n\t\t\t}",
"int num = 0;",
"int num = 0;",
"num",
"0",
"num < d",
"num",
"d",
"num++",
"num++",
"num",
"{\n\t\t\t\tint kos = sc.nextInt();\n\t\t\t\tif(!list.contains(kos)) {\n\t\t\t\t\t list.add(kos);\n\t\t\t\t}\n\n\t\t\t}",
"{\n\t\t\t\tint kos = sc.nextInt();\n\t\t\t\tif(!list.contains(kos)) {\n\t\t\t\t\t list.add(kos);\n\t\t\t\t}\n\n\t\t\t}",
"int kos = sc.nextInt();",
"kos",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(!list.contains(kos)) {\n\t\t\t\t\t list.add(kos);\n\t\t\t\t}",
"!list.contains(kos)",
"list.contains(kos)",
"list.contains",
"list",
"kos",
"{\n\t\t\t\t\t list.add(kos);\n\t\t\t\t}",
"list.add(kos)",
"list.add",
"list",
"kos",
"System.out.println(N-list.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"N-list.size()",
"N",
"list.size()",
"list.size",
"list",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\t List<Integer> list = new ArrayList<>();\n\t\tfor(int i =0; i < K; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int num = 0; num < d; num++ ) {\n\t\t\t\tint kos = sc.nextInt();\n\t\t\t\tif(!list.contains(kos)) {\n\t\t\t\t\t list.add(kos);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\t\tSystem.out.println(N-list.size());\n\t\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint N = sc.nextInt();\n\t\tint K = sc.nextInt();\n\t\t List<Integer> list = new ArrayList<>();\n\t\tfor(int i =0; i < K; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int num = 0; num < d; num++ ) {\n\t\t\t\tint kos = sc.nextInt();\n\t\t\t\tif(!list.contains(kos)) {\n\t\t\t\t\t list.add(kos);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\t\tSystem.out.println(N-list.size());\n\t\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 = sc.nextInt();
int K = sc.nextInt();
List<Integer> list = new ArrayList<>();
for(int i =0; i < K; i++) {
int d = sc.nextInt();
for(int num = 0; num < d; num++ ) {
int kos = sc.nextInt();
if(!list.contains(kos)) {
list.add(kos);
}
}
}
System.out.println(N-list.size());
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
17,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
2,
18,
18,
13,
13,
13,
17,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
157,
5
],
[
157,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
10,
24
],
[
24,
25
],
[
24,
26
],
[
10,
28
],
[
28,
29
],
[
28,
30
],
[
32,
33
],
[
32,
34
],
[
10,
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
],
[
54,
55
],
[
55,
56
],
[
47,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
57,
69
],
[
69,
70
],
[
70,
71
],
[
57,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
74,
80
],
[
80,
81
],
[
81,
82
],
[
10,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
83,
91
],
[
91,
92
],
[
92,
93
],
[
83,
94
],
[
95,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
96,
108
],
[
108,
109
],
[
109,
110
],
[
96,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
116,
122
],
[
113,
123
],
[
10,
124
],
[
124,
125
],
[
124,
126
],
[
10,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
127,
135
],
[
135,
136
],
[
136,
137
],
[
127,
138
],
[
139,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
140,
146
],
[
146,
147
],
[
10,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
6,
154
],
[
154,
155
],
[
0,
156
],
[
156,
157
],
[
156,
158
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scn = new Scanner(System.in)) {\n\t\t\tint N = scn.nextInt();\n\t\t\tint K = scn.nextInt();\n\n\t\t\tint[] A = new int[N];\n\t\t\tint[][] ak = new int[K][N+1];\n\n\t\t\tfor(int i = 0; i < K; i++) {\n\t\t\t\tak[i][0] = scn.nextInt();\n\t\t\t\tfor(int j = 1; j <= ak[i][0]; j++) {\n\t\t\t\t\tak[i][j] = scn.nextInt();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(int i = 0; i < K; i++) {\n\t\t\t\tfor(int j = 1; j <= ak[i][0]; j++) {\n\t\t\t\t\tA[ak[i][j]-1] = 1;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tint cnt = 0;\n\t\t\tfor(int i = 0; i < N; i++) {\n\t\t\t\tif(A[i] == 0) cnt++;\n\t\t\t}\n\n\t\t\tSystem.out.println(cnt);\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\ttry (Scanner scn = new Scanner(System.in)) {\n\t\t\tint N = scn.nextInt();\n\t\t\tint K = scn.nextInt();\n\n\t\t\tint[] A = new int[N];\n\t\t\tint[][] ak = new int[K][N+1];\n\n\t\t\tfor(int i = 0; i < K; i++) {\n\t\t\t\tak[i][0] = scn.nextInt();\n\t\t\t\tfor(int j = 1; j <= ak[i][0]; j++) {\n\t\t\t\t\tak[i][j] = scn.nextInt();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(int i = 0; i < K; i++) {\n\t\t\t\tfor(int j = 1; j <= ak[i][0]; j++) {\n\t\t\t\t\tA[ak[i][j]-1] = 1;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tint cnt = 0;\n\t\t\tfor(int i = 0; i < N; i++) {\n\t\t\t\tif(A[i] == 0) cnt++;\n\t\t\t}\n\n\t\t\tSystem.out.println(cnt);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\ttry (Scanner scn = new Scanner(System.in)) {\n\t\t\tint N = scn.nextInt();\n\t\t\tint K = scn.nextInt();\n\n\t\t\tint[] A = new int[N];\n\t\t\tint[][] ak = new int[K][N+1];\n\n\t\t\tfor(int i = 0; i < K; i++) {\n\t\t\t\tak[i][0] = scn.nextInt();\n\t\t\t\tfor(int j = 1; j <= ak[i][0]; j++) {\n\t\t\t\t\tak[i][j] = scn.nextInt();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(int i = 0; i < K; i++) {\n\t\t\t\tfor(int j = 1; j <= ak[i][0]; j++) {\n\t\t\t\t\tA[ak[i][j]-1] = 1;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tint cnt = 0;\n\t\t\tfor(int i = 0; i < N; i++) {\n\t\t\t\tif(A[i] == 0) cnt++;\n\t\t\t}\n\n\t\t\tSystem.out.println(cnt);\n\t\t}\n\t}",
"main",
"{\n\t\ttry (Scanner scn = new Scanner(System.in)) {\n\t\t\tint N = scn.nextInt();\n\t\t\tint K = scn.nextInt();\n\n\t\t\tint[] A = new int[N];\n\t\t\tint[][] ak = new int[K][N+1];\n\n\t\t\tfor(int i = 0; i < K; i++) {\n\t\t\t\tak[i][0] = scn.nextInt();\n\t\t\t\tfor(int j = 1; j <= ak[i][0]; j++) {\n\t\t\t\t\tak[i][j] = scn.nextInt();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(int i = 0; i < K; i++) {\n\t\t\t\tfor(int j = 1; j <= ak[i][0]; j++) {\n\t\t\t\t\tA[ak[i][j]-1] = 1;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tint cnt = 0;\n\t\t\tfor(int i = 0; i < N; i++) {\n\t\t\t\tif(A[i] == 0) cnt++;\n\t\t\t}\n\n\t\t\tSystem.out.println(cnt);\n\t\t}\n\t}",
"try (Scanner scn = new Scanner(System.in)) {\n\t\t\tint N = scn.nextInt();\n\t\t\tint K = scn.nextInt();\n\n\t\t\tint[] A = new int[N];\n\t\t\tint[][] ak = new int[K][N+1];\n\n\t\t\tfor(int i = 0; i < K; i++) {\n\t\t\t\tak[i][0] = scn.nextInt();\n\t\t\t\tfor(int j = 1; j <= ak[i][0]; j++) {\n\t\t\t\t\tak[i][j] = scn.nextInt();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(int i = 0; i < K; i++) {\n\t\t\t\tfor(int j = 1; j <= ak[i][0]; j++) {\n\t\t\t\t\tA[ak[i][j]-1] = 1;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tint cnt = 0;\n\t\t\tfor(int i = 0; i < N; i++) {\n\t\t\t\tif(A[i] == 0) cnt++;\n\t\t\t}\n\n\t\t\tSystem.out.println(cnt);\n\t\t}",
"{\n\t\t\tint N = scn.nextInt();\n\t\t\tint K = scn.nextInt();\n\n\t\t\tint[] A = new int[N];\n\t\t\tint[][] ak = new int[K][N+1];\n\n\t\t\tfor(int i = 0; i < K; i++) {\n\t\t\t\tak[i][0] = scn.nextInt();\n\t\t\t\tfor(int j = 1; j <= ak[i][0]; j++) {\n\t\t\t\t\tak[i][j] = scn.nextInt();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(int i = 0; i < K; i++) {\n\t\t\t\tfor(int j = 1; j <= ak[i][0]; j++) {\n\t\t\t\t\tA[ak[i][j]-1] = 1;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tint cnt = 0;\n\t\t\tfor(int i = 0; i < N; i++) {\n\t\t\t\tif(A[i] == 0) cnt++;\n\t\t\t}\n\n\t\t\tSystem.out.println(cnt);\n\t\t}",
"Scanner scn = new Scanner(System.in)",
"Scanner scn = new Scanner(System.in)",
"new Scanner(System.in)",
"int N = scn.nextInt();",
"N",
"scn.nextInt()",
"scn.nextInt",
"scn",
"int K = scn.nextInt();",
"K",
"scn.nextInt()",
"scn.nextInt",
"scn",
"int[] A = new int[N];",
"A",
"new int[N]",
"N",
"int[][] ak = new int[K][N+1];",
"ak",
"new int[K][N+1]",
"K",
"N+1",
"N",
"1",
"for(int i = 0; i < K; i++) {\n\t\t\t\tak[i][0] = scn.nextInt();\n\t\t\t\tfor(int j = 1; j <= ak[i][0]; j++) {\n\t\t\t\t\tak[i][j] = scn.nextInt();\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < K",
"i",
"K",
"i++",
"i++",
"i",
"{\n\t\t\t\tak[i][0] = scn.nextInt();\n\t\t\t\tfor(int j = 1; j <= ak[i][0]; j++) {\n\t\t\t\t\tak[i][j] = scn.nextInt();\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tak[i][0] = scn.nextInt();\n\t\t\t\tfor(int j = 1; j <= ak[i][0]; j++) {\n\t\t\t\t\tak[i][j] = scn.nextInt();\n\t\t\t\t}\n\t\t\t}",
"ak[i][0] = scn.nextInt()",
"ak[i][0]",
"ak[i]",
"ak",
"i",
"0",
"scn.nextInt()",
"scn.nextInt",
"scn",
"for(int j = 1; j <= ak[i][0]; j++) {\n\t\t\t\t\tak[i][j] = scn.nextInt();\n\t\t\t\t}",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j <= ak[i][0]",
"j",
"ak[i][0]",
"ak[i]",
"ak",
"i",
"0",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tak[i][j] = scn.nextInt();\n\t\t\t\t}",
"{\n\t\t\t\t\tak[i][j] = scn.nextInt();\n\t\t\t\t}",
"ak[i][j] = scn.nextInt()",
"ak[i][j]",
"ak[i]",
"ak",
"i",
"j",
"scn.nextInt()",
"scn.nextInt",
"scn",
"for(int i = 0; i < K; i++) {\n\t\t\t\tfor(int j = 1; j <= ak[i][0]; j++) {\n\t\t\t\t\tA[ak[i][j]-1] = 1;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < K",
"i",
"K",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(int j = 1; j <= ak[i][0]; j++) {\n\t\t\t\t\tA[ak[i][j]-1] = 1;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int j = 1; j <= ak[i][0]; j++) {\n\t\t\t\t\tA[ak[i][j]-1] = 1;\n\t\t\t\t}\n\t\t\t}",
"for(int j = 1; j <= ak[i][0]; j++) {\n\t\t\t\t\tA[ak[i][j]-1] = 1;\n\t\t\t\t}",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j <= ak[i][0]",
"j",
"ak[i][0]",
"ak[i]",
"ak",
"i",
"0",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tA[ak[i][j]-1] = 1;\n\t\t\t\t}",
"{\n\t\t\t\t\tA[ak[i][j]-1] = 1;\n\t\t\t\t}",
"A[ak[i][j]-1] = 1",
"A[ak[i][j]-1]",
"A",
"ak[i][j]-1",
"ak[i][j]",
"ak[i]",
"ak",
"i",
"j",
"1",
"1",
"int cnt = 0;",
"cnt",
"0",
"for(int i = 0; i < N; i++) {\n\t\t\t\tif(A[i] == 0) cnt++;\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(A[i] == 0) cnt++;\n\t\t\t}",
"{\n\t\t\t\tif(A[i] == 0) cnt++;\n\t\t\t}",
"if(A[i] == 0) cnt++;",
"A[i] == 0",
"A[i]",
"A",
"i",
"0",
"cnt++",
"cnt",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scn = new Scanner(System.in)) {\n\t\t\tint N = scn.nextInt();\n\t\t\tint K = scn.nextInt();\n\n\t\t\tint[] A = new int[N];\n\t\t\tint[][] ak = new int[K][N+1];\n\n\t\t\tfor(int i = 0; i < K; i++) {\n\t\t\t\tak[i][0] = scn.nextInt();\n\t\t\t\tfor(int j = 1; j <= ak[i][0]; j++) {\n\t\t\t\t\tak[i][j] = scn.nextInt();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(int i = 0; i < K; i++) {\n\t\t\t\tfor(int j = 1; j <= ak[i][0]; j++) {\n\t\t\t\t\tA[ak[i][j]-1] = 1;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tint cnt = 0;\n\t\t\tfor(int i = 0; i < N; i++) {\n\t\t\t\tif(A[i] == 0) cnt++;\n\t\t\t}\n\n\t\t\tSystem.out.println(cnt);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scn = new Scanner(System.in)) {\n\t\t\tint N = scn.nextInt();\n\t\t\tint K = scn.nextInt();\n\n\t\t\tint[] A = new int[N];\n\t\t\tint[][] ak = new int[K][N+1];\n\n\t\t\tfor(int i = 0; i < K; i++) {\n\t\t\t\tak[i][0] = scn.nextInt();\n\t\t\t\tfor(int j = 1; j <= ak[i][0]; j++) {\n\t\t\t\t\tak[i][j] = scn.nextInt();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(int i = 0; i < K; i++) {\n\t\t\t\tfor(int j = 1; j <= ak[i][0]; j++) {\n\t\t\t\t\tA[ak[i][j]-1] = 1;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tint cnt = 0;\n\t\t\tfor(int i = 0; i < N; i++) {\n\t\t\t\tif(A[i] == 0) cnt++;\n\t\t\t}\n\n\t\t\tSystem.out.println(cnt);\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner scn = new Scanner(System.in)) {
int N = scn.nextInt();
int K = scn.nextInt();
int[] A = new int[N];
int[][] ak = new int[K][N+1];
for(int i = 0; i < K; i++) {
ak[i][0] = scn.nextInt();
for(int j = 1; j <= ak[i][0]; j++) {
ak[i][j] = scn.nextInt();
}
}
for(int i = 0; i < K; i++) {
for(int j = 1; j <= ak[i][0]; j++) {
A[ak[i][j]-1] = 1;
}
}
int cnt = 0;
for(int i = 0; i < N; i++) {
if(A[i] == 0) cnt++;
}
System.out.println(cnt);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
18,
13,
13,
0,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
40,
18,
13,
2,
18,
18,
13,
13,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
158,
11
],
[
158,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
20,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
31,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
14,
42
],
[
42,
43
],
[
42,
44
],
[
14,
46
],
[
46,
47
],
[
46,
48
],
[
14,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
50,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
71,
72
],
[
62,
73
],
[
73,
74
],
[
73,
75
],
[
77,
78
],
[
77,
79
],
[
62,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
82,
87
],
[
62,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
88,
98
],
[
98,
99
],
[
99,
100
],
[
88,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
112,
113
],
[
112,
114
],
[
102,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
118,
124
],
[
14,
125
],
[
125,
126
],
[
125,
127
],
[
14,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
133,
134
],
[
133,
135
],
[
128,
136
],
[
136,
137
],
[
137,
138
],
[
128,
139
],
[
140,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
142,
146
],
[
141,
147
],
[
147,
148
],
[
14,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
149,
154
],
[
12,
155
],
[
155,
156
],
[
0,
157
],
[
157,
158
],
[
157,
159
]
] |
[
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String[] str = in.readLine().split(\" \");\n int n = Integer.parseInt(str[0]);\n int k = Integer.parseInt(str[1]);\n int[] d = new int[k];\n int[] count = new int[n];\n for(int i=0; i<k; i++) {\n d[i] = Integer.parseInt(in.readLine());\n int[][] a = new int[k][d[i]];\n str = in.readLine().split(\" \");\n for(int j=0; j<d[i]; j++) {\n a[i][j] = Integer.parseInt(str[j]);\n count[a[i][j]-1]++;\n }\n }\n \n int ans = 0;\n for(int i=0; i<n; i++) {\n if(count[i]==0)\n ans++;\n }\n \n System.out.println(ans);\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String[] str = in.readLine().split(\" \");\n int n = Integer.parseInt(str[0]);\n int k = Integer.parseInt(str[1]);\n int[] d = new int[k];\n int[] count = new int[n];\n for(int i=0; i<k; i++) {\n d[i] = Integer.parseInt(in.readLine());\n int[][] a = new int[k][d[i]];\n str = in.readLine().split(\" \");\n for(int j=0; j<d[i]; j++) {\n a[i][j] = Integer.parseInt(str[j]);\n count[a[i][j]-1]++;\n }\n }\n \n int ans = 0;\n for(int i=0; i<n; i++) {\n if(count[i]==0)\n ans++;\n }\n \n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String[] str = in.readLine().split(\" \");\n int n = Integer.parseInt(str[0]);\n int k = Integer.parseInt(str[1]);\n int[] d = new int[k];\n int[] count = new int[n];\n for(int i=0; i<k; i++) {\n d[i] = Integer.parseInt(in.readLine());\n int[][] a = new int[k][d[i]];\n str = in.readLine().split(\" \");\n for(int j=0; j<d[i]; j++) {\n a[i][j] = Integer.parseInt(str[j]);\n count[a[i][j]-1]++;\n }\n }\n \n int ans = 0;\n for(int i=0; i<n; i++) {\n if(count[i]==0)\n ans++;\n }\n \n System.out.println(ans);\n }",
"main",
"{\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String[] str = in.readLine().split(\" \");\n int n = Integer.parseInt(str[0]);\n int k = Integer.parseInt(str[1]);\n int[] d = new int[k];\n int[] count = new int[n];\n for(int i=0; i<k; i++) {\n d[i] = Integer.parseInt(in.readLine());\n int[][] a = new int[k][d[i]];\n str = in.readLine().split(\" \");\n for(int j=0; j<d[i]; j++) {\n a[i][j] = Integer.parseInt(str[j]);\n count[a[i][j]-1]++;\n }\n }\n \n int ans = 0;\n for(int i=0; i<n; i++) {\n if(count[i]==0)\n ans++;\n }\n \n System.out.println(ans);\n }",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] str = in.readLine().split(\" \");",
"str",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"int n = Integer.parseInt(str[0]);",
"n",
"Integer.parseInt(str[0])",
"Integer.parseInt",
"Integer",
"str[0]",
"str",
"0",
"int k = Integer.parseInt(str[1]);",
"k",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"int[] d = new int[k];",
"d",
"new int[k]",
"k",
"int[] count = new int[n];",
"count",
"new int[n]",
"n",
"for(int i=0; i<k; i++) {\n d[i] = Integer.parseInt(in.readLine());\n int[][] a = new int[k][d[i]];\n str = in.readLine().split(\" \");\n for(int j=0; j<d[i]; j++) {\n a[i][j] = Integer.parseInt(str[j]);\n count[a[i][j]-1]++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<k",
"i",
"k",
"i++",
"i++",
"i",
"{\n d[i] = Integer.parseInt(in.readLine());\n int[][] a = new int[k][d[i]];\n str = in.readLine().split(\" \");\n for(int j=0; j<d[i]; j++) {\n a[i][j] = Integer.parseInt(str[j]);\n count[a[i][j]-1]++;\n }\n }",
"{\n d[i] = Integer.parseInt(in.readLine());\n int[][] a = new int[k][d[i]];\n str = in.readLine().split(\" \");\n for(int j=0; j<d[i]; j++) {\n a[i][j] = Integer.parseInt(str[j]);\n count[a[i][j]-1]++;\n }\n }",
"d[i] = Integer.parseInt(in.readLine())",
"d[i]",
"d",
"i",
"Integer.parseInt(in.readLine())",
"Integer.parseInt",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"int[][] a = new int[k][d[i]];",
"a",
"new int[k][d[i]]",
"k",
"d[i]",
"d",
"i",
"str = in.readLine().split(\" \")",
"str",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"for(int j=0; j<d[i]; j++) {\n a[i][j] = Integer.parseInt(str[j]);\n count[a[i][j]-1]++;\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<d[i]",
"j",
"d[i]",
"d",
"i",
"j++",
"j++",
"j",
"{\n a[i][j] = Integer.parseInt(str[j]);\n count[a[i][j]-1]++;\n }",
"{\n a[i][j] = Integer.parseInt(str[j]);\n count[a[i][j]-1]++;\n }",
"a[i][j] = Integer.parseInt(str[j])",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"Integer.parseInt(str[j])",
"Integer.parseInt",
"Integer",
"str[j]",
"str",
"j",
"count[a[i][j]-1]++",
"count[a[i][j]-1]",
"count",
"a[i][j]-1",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"1",
"int ans = 0;",
"ans",
"0",
"for(int i=0; i<n; i++) {\n if(count[i]==0)\n ans++;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(count[i]==0)\n ans++;\n }",
"{\n if(count[i]==0)\n ans++;\n }",
"if(count[i]==0)\n ans++;",
"count[i]==0",
"count[i]",
"count",
"i",
"0",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String[] str = in.readLine().split(\" \");\n int n = Integer.parseInt(str[0]);\n int k = Integer.parseInt(str[1]);\n int[] d = new int[k];\n int[] count = new int[n];\n for(int i=0; i<k; i++) {\n d[i] = Integer.parseInt(in.readLine());\n int[][] a = new int[k][d[i]];\n str = in.readLine().split(\" \");\n for(int j=0; j<d[i]; j++) {\n a[i][j] = Integer.parseInt(str[j]);\n count[a[i][j]-1]++;\n }\n }\n \n int ans = 0;\n for(int i=0; i<n; i++) {\n if(count[i]==0)\n ans++;\n }\n \n System.out.println(ans);\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String[] str = in.readLine().split(\" \");\n int n = Integer.parseInt(str[0]);\n int k = Integer.parseInt(str[1]);\n int[] d = new int[k];\n int[] count = new int[n];\n for(int i=0; i<k; i++) {\n d[i] = Integer.parseInt(in.readLine());\n int[][] a = new int[k][d[i]];\n str = in.readLine().split(\" \");\n for(int j=0; j<d[i]; j++) {\n a[i][j] = Integer.parseInt(str[j]);\n count[a[i][j]-1]++;\n }\n }\n \n int ans = 0;\n for(int i=0; i<n; i++) {\n if(count[i]==0)\n ans++;\n }\n \n System.out.println(ans);\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String[] str = in.readLine().split(" ");
int n = Integer.parseInt(str[0]);
int k = Integer.parseInt(str[1]);
int[] d = new int[k];
int[] count = new int[n];
for(int i=0; i<k; i++) {
d[i] = Integer.parseInt(in.readLine());
int[][] a = new int[k][d[i]];
str = in.readLine().split(" ");
for(int j=0; j<d[i]; j++) {
a[i][j] = Integer.parseInt(str[j]);
count[a[i][j]-1]++;
}
}
int ans = 0;
for(int i=0; i<n; i++) {
if(count[i]==0)
ans++;
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
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,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
40,
18,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
103,
5
],
[
103,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
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
],
[
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
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
8,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
71,
82
],
[
83,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
84,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
6,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
] |
[
"import java.util.*;\n \npublic class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] l = new int[N];\n int ans = 0;\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n int a = sc.nextInt();\n l[a-1]++;\n }\n }\n \n for (int k = 0; k < N; k++) {\n if (l[k] == 0) {\n ans += 1;\n }\n }\n System.out.println(ans);\n }\n} ",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] l = new int[N];\n int ans = 0;\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n int a = sc.nextInt();\n l[a-1]++;\n }\n }\n \n for (int k = 0; k < N; k++) {\n if (l[k] == 0) {\n ans += 1;\n }\n }\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] l = new int[N];\n int ans = 0;\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n int a = sc.nextInt();\n l[a-1]++;\n }\n }\n \n for (int k = 0; k < N; k++) {\n if (l[k] == 0) {\n ans += 1;\n }\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] l = new int[N];\n int ans = 0;\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n int a = sc.nextInt();\n l[a-1]++;\n }\n }\n \n for (int k = 0; k < N; k++) {\n if (l[k] == 0) {\n ans += 1;\n }\n }\n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] l = new int[N];",
"l",
"new int[N]",
"N",
"int ans = 0;",
"ans",
"0",
"for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n int a = sc.nextInt();\n l[a-1]++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < K",
"i",
"K",
"i++",
"i++",
"i",
"{\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n int a = sc.nextInt();\n l[a-1]++;\n }\n }",
"{\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n int a = sc.nextInt();\n l[a-1]++;\n }\n }",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int j = 0; j < d; j++) {\n int a = sc.nextInt();\n l[a-1]++;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < d",
"j",
"d",
"j++",
"j++",
"j",
"{\n int a = sc.nextInt();\n l[a-1]++;\n }",
"{\n int a = sc.nextInt();\n l[a-1]++;\n }",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"l[a-1]++",
"l[a-1]",
"l",
"a-1",
"a",
"1",
"for (int k = 0; k < N; k++) {\n if (l[k] == 0) {\n ans += 1;\n }\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < N",
"k",
"N",
"k++",
"k++",
"k",
"{\n if (l[k] == 0) {\n ans += 1;\n }\n }",
"{\n if (l[k] == 0) {\n ans += 1;\n }\n }",
"if (l[k] == 0) {\n ans += 1;\n }",
"l[k] == 0",
"l[k]",
"l",
"k",
"0",
"{\n ans += 1;\n }",
"ans += 1",
"ans",
"1",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String args[]",
"args",
"public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] l = new int[N];\n int ans = 0;\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n int a = sc.nextInt();\n l[a-1]++;\n }\n }\n \n for (int k = 0; k < N; k++) {\n if (l[k] == 0) {\n ans += 1;\n }\n }\n System.out.println(ans);\n }\n}",
"public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] l = new int[N];\n int ans = 0;\n for (int i = 0; i < K; i++) {\n int d = sc.nextInt();\n for (int j = 0; j < d; j++) {\n int a = sc.nextInt();\n l[a-1]++;\n }\n }\n \n for (int k = 0; k < N; k++) {\n if (l[k] == 0) {\n ans += 1;\n }\n }\n System.out.println(ans);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int K = sc.nextInt();
int[] l = new int[N];
int ans = 0;
for (int i = 0; i < K; i++) {
int d = sc.nextInt();
for (int j = 0; j < d; j++) {
int a = sc.nextInt();
l[a-1]++;
}
}
for (int k = 0; k < N; k++) {
if (l[k] == 0) {
ans += 1;
}
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
2,
13,
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,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
13,
2,
18,
13,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
40,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
28,
29
],
[
28,
30
],
[
11,
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
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
11,
76
],
[
76,
77
],
[
76,
78
],
[
11,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
79,
87
],
[
87,
88
],
[
88,
89
],
[
79,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
92,
98
],
[
98,
99
],
[
11,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
11,
106
],
[
106,
107
],
[
107,
108
],
[
9,
109
],
[
109,
110
]
] |
[
"/*package whatever //do not write package name here */\nimport java.util.*;\nimport java.io.*;\n\nclass Main{\n\tpublic static void main (String[] args) {\n// \t\tSystem.out.println(\"GfG!\");\n\t\tScanner input=new Scanner(System.in);\n\t\tint n=input.nextInt();\n\t\tint k=input.nextInt();\n\t\tint[] a=new int[n+1];\n\t\tfor(int i=1;i<=k;i++)\n\t\t{\n\t\t int x=input.nextInt();\n\t\t for(int j=1;j<=x;j++)\n\t\t {\n\t\t int y=input.nextInt();\n\t\t a[y]=a[y]+1;\n\t\t }\n\t\t}\n\t\tint count=0;\n\t\tfor(int i=1;i<=n;i++)\n\t\t {\n\t\t if(a[i]==0)\n\t\t count++;\n\t\t }\n\t\t System.out.println(count);\n\t\t input.close();\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main{\n\tpublic static void main (String[] args) {\n// \t\tSystem.out.println(\"GfG!\");\n\t\tScanner input=new Scanner(System.in);\n\t\tint n=input.nextInt();\n\t\tint k=input.nextInt();\n\t\tint[] a=new int[n+1];\n\t\tfor(int i=1;i<=k;i++)\n\t\t{\n\t\t int x=input.nextInt();\n\t\t for(int j=1;j<=x;j++)\n\t\t {\n\t\t int y=input.nextInt();\n\t\t a[y]=a[y]+1;\n\t\t }\n\t\t}\n\t\tint count=0;\n\t\tfor(int i=1;i<=n;i++)\n\t\t {\n\t\t if(a[i]==0)\n\t\t count++;\n\t\t }\n\t\t System.out.println(count);\n\t\t input.close();\n\t}\n}",
"Main",
"public static void main (String[] args) {\n// \t\tSystem.out.println(\"GfG!\");\n\t\tScanner input=new Scanner(System.in);\n\t\tint n=input.nextInt();\n\t\tint k=input.nextInt();\n\t\tint[] a=new int[n+1];\n\t\tfor(int i=1;i<=k;i++)\n\t\t{\n\t\t int x=input.nextInt();\n\t\t for(int j=1;j<=x;j++)\n\t\t {\n\t\t int y=input.nextInt();\n\t\t a[y]=a[y]+1;\n\t\t }\n\t\t}\n\t\tint count=0;\n\t\tfor(int i=1;i<=n;i++)\n\t\t {\n\t\t if(a[i]==0)\n\t\t count++;\n\t\t }\n\t\t System.out.println(count);\n\t\t input.close();\n\t}",
"main",
"{\n// \t\tSystem.out.println(\"GfG!\");\n\t\tScanner input=new Scanner(System.in);\n\t\tint n=input.nextInt();\n\t\tint k=input.nextInt();\n\t\tint[] a=new int[n+1];\n\t\tfor(int i=1;i<=k;i++)\n\t\t{\n\t\t int x=input.nextInt();\n\t\t for(int j=1;j<=x;j++)\n\t\t {\n\t\t int y=input.nextInt();\n\t\t a[y]=a[y]+1;\n\t\t }\n\t\t}\n\t\tint count=0;\n\t\tfor(int i=1;i<=n;i++)\n\t\t {\n\t\t if(a[i]==0)\n\t\t count++;\n\t\t }\n\t\t System.out.println(count);\n\t\t input.close();\n\t}",
"Scanner input=new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"int n=input.nextInt();",
"n",
"input.nextInt()",
"input.nextInt",
"input",
"int k=input.nextInt();",
"k",
"input.nextInt()",
"input.nextInt",
"input",
"int[] a=new int[n+1];",
"a",
"new int[n+1]",
"n+1",
"n",
"1",
"for(int i=1;i<=k;i++)\n\t\t{\n\t\t int x=input.nextInt();\n\t\t for(int j=1;j<=x;j++)\n\t\t {\n\t\t int y=input.nextInt();\n\t\t a[y]=a[y]+1;\n\t\t }\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=k",
"i",
"k",
"i++",
"i++",
"i",
"{\n\t\t int x=input.nextInt();\n\t\t for(int j=1;j<=x;j++)\n\t\t {\n\t\t int y=input.nextInt();\n\t\t a[y]=a[y]+1;\n\t\t }\n\t\t}",
"{\n\t\t int x=input.nextInt();\n\t\t for(int j=1;j<=x;j++)\n\t\t {\n\t\t int y=input.nextInt();\n\t\t a[y]=a[y]+1;\n\t\t }\n\t\t}",
"int x=input.nextInt();",
"x",
"input.nextInt()",
"input.nextInt",
"input",
"for(int j=1;j<=x;j++)\n\t\t {\n\t\t int y=input.nextInt();\n\t\t a[y]=a[y]+1;\n\t\t }",
"int j=1;",
"int j=1;",
"j",
"1",
"j<=x",
"j",
"x",
"j++",
"j++",
"j",
"{\n\t\t int y=input.nextInt();\n\t\t a[y]=a[y]+1;\n\t\t }",
"{\n\t\t int y=input.nextInt();\n\t\t a[y]=a[y]+1;\n\t\t }",
"int y=input.nextInt();",
"y",
"input.nextInt()",
"input.nextInt",
"input",
"a[y]=a[y]+1",
"a[y]",
"a",
"y",
"a[y]+1",
"a[y]",
"a",
"y",
"1",
"int count=0;",
"count",
"0",
"for(int i=1;i<=n;i++)\n\t\t {\n\t\t if(a[i]==0)\n\t\t count++;\n\t\t }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t if(a[i]==0)\n\t\t count++;\n\t\t }",
"{\n\t\t if(a[i]==0)\n\t\t count++;\n\t\t }",
"if(a[i]==0)\n\t\t count++;",
"a[i]==0",
"a[i]",
"a",
"i",
"0",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"input.close()",
"input.close",
"input",
"String[] args",
"args"
] |
/*package whatever //do not write package name here */
import java.util.*;
import java.io.*;
class Main{
public static void main (String[] args) {
// System.out.println("GfG!");
Scanner input=new Scanner(System.in);
int n=input.nextInt();
int k=input.nextInt();
int[] a=new int[n+1];
for(int i=1;i<=k;i++)
{
int x=input.nextInt();
for(int j=1;j<=x;j++)
{
int y=input.nextInt();
a[y]=a[y]+1;
}
}
int count=0;
for(int i=1;i<=n;i++)
{
if(a[i]==0)
count++;
}
System.out.println(count);
input.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
0,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
2,
4,
18,
13,
17,
17,
28,
13,
13,
30,
30,
14,
2,
13,
17,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
4,
8
],
[
8,
9
],
[
8,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
10,
24
],
[
24,
25
],
[
24,
26
],
[
10,
27
],
[
27,
28
],
[
27,
29
],
[
10,
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
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
65,
69
],
[
62,
70
],
[
10,
71
],
[
71,
72
],
[
71,
73
],
[
71,
74
],
[
75,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
10,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
8,
88
],
[
88,
89
]
] |
[
"import java.util.*;\n\nclass Main {\n private static Scanner sc;\n\n public static void main(final String[] args) {\n sc = new Scanner(System.in);\n int a = sc.nextInt(),b = sc.nextInt(),ans = 0;\n int[] list = new int[a];\n for(int i = 0; i < b; i++){\n int c = sc.nextInt();\n for (int j = 0; j < c; j++){\n list[sc.nextInt()-1] +=1;\n }\n }\n for(int x: list){\n if(x == 0) ans++;\n }\n System.out.println(ans);\n }\n}\n\n\n\n\n\n",
"import java.util.*;",
"util.*",
"java",
"class Main {\n private static Scanner sc;\n\n public static void main(final String[] args) {\n sc = new Scanner(System.in);\n int a = sc.nextInt(),b = sc.nextInt(),ans = 0;\n int[] list = new int[a];\n for(int i = 0; i < b; i++){\n int c = sc.nextInt();\n for (int j = 0; j < c; j++){\n list[sc.nextInt()-1] +=1;\n }\n }\n for(int x: list){\n if(x == 0) ans++;\n }\n System.out.println(ans);\n }\n}",
"Main",
"private static Scanner sc;",
"sc",
"public static void main(final String[] args) {\n sc = new Scanner(System.in);\n int a = sc.nextInt(),b = sc.nextInt(),ans = 0;\n int[] list = new int[a];\n for(int i = 0; i < b; i++){\n int c = sc.nextInt();\n for (int j = 0; j < c; j++){\n list[sc.nextInt()-1] +=1;\n }\n }\n for(int x: list){\n if(x == 0) ans++;\n }\n System.out.println(ans);\n }",
"main",
"{\n sc = new Scanner(System.in);\n int a = sc.nextInt(),b = sc.nextInt(),ans = 0;\n int[] list = new int[a];\n for(int i = 0; i < b; i++){\n int c = sc.nextInt();\n for (int j = 0; j < c; j++){\n list[sc.nextInt()-1] +=1;\n }\n }\n for(int x: list){\n if(x == 0) ans++;\n }\n System.out.println(ans);\n }",
"sc = new Scanner(System.in)",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt()",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"b = sc.nextInt()",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"ans = 0;",
"ans",
"0",
"int[] list = new int[a];",
"list",
"new int[a]",
"a",
"for(int i = 0; i < b; i++){\n int c = sc.nextInt();\n for (int j = 0; j < c; j++){\n list[sc.nextInt()-1] +=1;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < b",
"i",
"b",
"i++",
"i++",
"i",
"{\n int c = sc.nextInt();\n for (int j = 0; j < c; j++){\n list[sc.nextInt()-1] +=1;\n }\n }",
"{\n int c = sc.nextInt();\n for (int j = 0; j < c; j++){\n list[sc.nextInt()-1] +=1;\n }\n }",
"int c = sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int j = 0; j < c; j++){\n list[sc.nextInt()-1] +=1;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < c",
"j",
"c",
"j++",
"j++",
"j",
"{\n list[sc.nextInt()-1] +=1;\n }",
"{\n list[sc.nextInt()-1] +=1;\n }",
"list[sc.nextInt()-1] +=1",
"list[sc.nextInt()-1]",
"list",
"sc.nextInt()-1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"1",
"for(int x: list){\n if(x == 0) ans++;\n }",
"int x",
"list",
"{\n if(x == 0) ans++;\n }",
"{\n if(x == 0) ans++;\n }",
"if(x == 0) ans++;",
"x == 0",
"x",
"0",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"final String[] args",
"args"
] |
import java.util.*;
class Main {
private static Scanner sc;
public static void main(final String[] args) {
sc = new Scanner(System.in);
int a = sc.nextInt(),b = sc.nextInt(),ans = 0;
int[] list = new int[a];
for(int i = 0; i < b; i++){
int c = sc.nextInt();
for (int j = 0; j < c; j++){
list[sc.nextInt()-1] +=1;
}
}
for(int x: list){
if(x == 0) ans++;
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
20,
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,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
40,
18,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
105,
5
],
[
105,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
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
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
51,
62
],
[
63,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
63,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
75,
83
],
[
83,
84
],
[
84,
85
],
[
75,
86
],
[
87,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
88,
94
],
[
94,
95
],
[
8,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
6,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
] |
[
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int N=sc.nextInt(), K=sc.nextInt(), d, e, t=0;\n int A[]= new int[N];\n for(int i=0; i<K; i++){\n d=sc.nextInt();\n for(int j=0; j<d; j++){\n e=sc.nextInt();\n A[e-1]++;\n }\n }\n for(int k=0; k<N; k++){\n if(A[k]==0) t++;\n }\n System.out.println(t);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int N=sc.nextInt(), K=sc.nextInt(), d, e, t=0;\n int A[]= new int[N];\n for(int i=0; i<K; i++){\n d=sc.nextInt();\n for(int j=0; j<d; j++){\n e=sc.nextInt();\n A[e-1]++;\n }\n }\n for(int k=0; k<N; k++){\n if(A[k]==0) t++;\n }\n System.out.println(t);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int N=sc.nextInt(), K=sc.nextInt(), d, e, t=0;\n int A[]= new int[N];\n for(int i=0; i<K; i++){\n d=sc.nextInt();\n for(int j=0; j<d; j++){\n e=sc.nextInt();\n A[e-1]++;\n }\n }\n for(int k=0; k<N; k++){\n if(A[k]==0) t++;\n }\n System.out.println(t);\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int N=sc.nextInt(), K=sc.nextInt(), d, e, t=0;\n int A[]= new int[N];\n for(int i=0; i<K; i++){\n d=sc.nextInt();\n for(int j=0; j<d; j++){\n e=sc.nextInt();\n A[e-1]++;\n }\n }\n for(int k=0; k<N; k++){\n if(A[k]==0) t++;\n }\n System.out.println(t);\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N=sc.nextInt()",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"K=sc.nextInt()",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"d",
"d",
"e",
"e",
"t=0;",
"t",
"0",
"int A[]= new int[N];",
"A",
"new int[N]",
"N",
"for(int i=0; i<K; i++){\n d=sc.nextInt();\n for(int j=0; j<d; j++){\n e=sc.nextInt();\n A[e-1]++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<K",
"i",
"K",
"i++",
"i++",
"i",
"{\n d=sc.nextInt();\n for(int j=0; j<d; j++){\n e=sc.nextInt();\n A[e-1]++;\n }\n }",
"{\n d=sc.nextInt();\n for(int j=0; j<d; j++){\n e=sc.nextInt();\n A[e-1]++;\n }\n }",
"d=sc.nextInt()",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j=0; j<d; j++){\n e=sc.nextInt();\n A[e-1]++;\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<d",
"j",
"d",
"j++",
"j++",
"j",
"{\n e=sc.nextInt();\n A[e-1]++;\n }",
"{\n e=sc.nextInt();\n A[e-1]++;\n }",
"e=sc.nextInt()",
"e",
"sc.nextInt()",
"sc.nextInt",
"sc",
"A[e-1]++",
"A[e-1]",
"A",
"e-1",
"e",
"1",
"for(int k=0; k<N; k++){\n if(A[k]==0) t++;\n }",
"int k=0;",
"int k=0;",
"k",
"0",
"k<N",
"k",
"N",
"k++",
"k++",
"k",
"{\n if(A[k]==0) t++;\n }",
"{\n if(A[k]==0) t++;\n }",
"if(A[k]==0) t++;",
"A[k]==0",
"A[k]",
"A",
"k",
"0",
"t++",
"t",
"System.out.println(t)",
"System.out.println",
"System.out",
"System",
"System.out",
"t",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int N=sc.nextInt(), K=sc.nextInt(), d, e, t=0;\n int A[]= new int[N];\n for(int i=0; i<K; i++){\n d=sc.nextInt();\n for(int j=0; j<d; j++){\n e=sc.nextInt();\n A[e-1]++;\n }\n }\n for(int k=0; k<N; k++){\n if(A[k]==0) t++;\n }\n System.out.println(t);\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int N=sc.nextInt(), K=sc.nextInt(), d, e, t=0;\n int A[]= new int[N];\n for(int i=0; i<K; i++){\n d=sc.nextInt();\n for(int j=0; j<d; j++){\n e=sc.nextInt();\n A[e-1]++;\n }\n }\n for(int k=0; k<N; k++){\n if(A[k]==0) t++;\n }\n System.out.println(t);\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int N=sc.nextInt(), K=sc.nextInt(), d, e, t=0;
int A[]= new int[N];
for(int i=0; i<K; i++){
d=sc.nextInt();
for(int j=0; j<d; j++){
e=sc.nextInt();
A[e-1]++;
}
}
for(int k=0; k<N; k++){
if(A[k]==0) t++;
}
System.out.println(t);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
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,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
18,
13,
13,
14,
40,
4,
18,
13,
13,
30,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
118,
5
],
[
118,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
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
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
54,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
54,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
54,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
71,
81
],
[
81,
82
],
[
82,
83
],
[
71,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
91,
92
],
[
91,
93
],
[
85,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
94,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
8,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
6,
115
],
[
115,
116
],
[
0,
117
],
[
117,
118
],
[
117,
119
]
] |
[
"import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner a = new Scanner(System.in);\n\t\tString b = a.nextLine();\n\t\tString[] vals = b.split(\" \");\n\t\tint comp = Integer.parseInt(vals[0]);\n\t\tint c = Integer.parseInt(vals[1]);\n\t\tArrayList<Integer> list= new ArrayList<Integer>();\n\t\tfor (int i = 0;i<c;i++) {\n\t\t\tString wfeihu = a.nextLine();\n\t\t\tString nums = a.nextLine();\n\t\t\tString[] d = nums.split(\" \");\n\t\t\tfor (int j=0;j<d.length;j++) {\n\t\t\t\tint p = Integer.parseInt(d[j]);\n\t\t\t\tif (!list.contains(p)) {\n\t\t\t\t\tlist.add(p);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(comp-list.size());\n\t}\n\t\t\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner a = new Scanner(System.in);\n\t\tString b = a.nextLine();\n\t\tString[] vals = b.split(\" \");\n\t\tint comp = Integer.parseInt(vals[0]);\n\t\tint c = Integer.parseInt(vals[1]);\n\t\tArrayList<Integer> list= new ArrayList<Integer>();\n\t\tfor (int i = 0;i<c;i++) {\n\t\t\tString wfeihu = a.nextLine();\n\t\t\tString nums = a.nextLine();\n\t\t\tString[] d = nums.split(\" \");\n\t\t\tfor (int j=0;j<d.length;j++) {\n\t\t\t\tint p = Integer.parseInt(d[j]);\n\t\t\t\tif (!list.contains(p)) {\n\t\t\t\t\tlist.add(p);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(comp-list.size());\n\t}\n\t\t\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner a = new Scanner(System.in);\n\t\tString b = a.nextLine();\n\t\tString[] vals = b.split(\" \");\n\t\tint comp = Integer.parseInt(vals[0]);\n\t\tint c = Integer.parseInt(vals[1]);\n\t\tArrayList<Integer> list= new ArrayList<Integer>();\n\t\tfor (int i = 0;i<c;i++) {\n\t\t\tString wfeihu = a.nextLine();\n\t\t\tString nums = a.nextLine();\n\t\t\tString[] d = nums.split(\" \");\n\t\t\tfor (int j=0;j<d.length;j++) {\n\t\t\t\tint p = Integer.parseInt(d[j]);\n\t\t\t\tif (!list.contains(p)) {\n\t\t\t\t\tlist.add(p);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(comp-list.size());\n\t}",
"main",
"{\n\t\tScanner a = new Scanner(System.in);\n\t\tString b = a.nextLine();\n\t\tString[] vals = b.split(\" \");\n\t\tint comp = Integer.parseInt(vals[0]);\n\t\tint c = Integer.parseInt(vals[1]);\n\t\tArrayList<Integer> list= new ArrayList<Integer>();\n\t\tfor (int i = 0;i<c;i++) {\n\t\t\tString wfeihu = a.nextLine();\n\t\t\tString nums = a.nextLine();\n\t\t\tString[] d = nums.split(\" \");\n\t\t\tfor (int j=0;j<d.length;j++) {\n\t\t\t\tint p = Integer.parseInt(d[j]);\n\t\t\t\tif (!list.contains(p)) {\n\t\t\t\t\tlist.add(p);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(comp-list.size());\n\t}",
"Scanner a = new Scanner(System.in);",
"a",
"new Scanner(System.in)",
"String b = a.nextLine();",
"b",
"a.nextLine()",
"a.nextLine",
"a",
"String[] vals = b.split(\" \");",
"vals",
"b.split(\" \")",
"b.split",
"b",
"\" \"",
"int comp = Integer.parseInt(vals[0]);",
"comp",
"Integer.parseInt(vals[0])",
"Integer.parseInt",
"Integer",
"vals[0]",
"vals",
"0",
"int c = Integer.parseInt(vals[1]);",
"c",
"Integer.parseInt(vals[1])",
"Integer.parseInt",
"Integer",
"vals[1]",
"vals",
"1",
"ArrayList<Integer> list= new ArrayList<Integer>();",
"list",
"new ArrayList<Integer>()",
"for (int i = 0;i<c;i++) {\n\t\t\tString wfeihu = a.nextLine();\n\t\t\tString nums = a.nextLine();\n\t\t\tString[] d = nums.split(\" \");\n\t\t\tfor (int j=0;j<d.length;j++) {\n\t\t\t\tint p = Integer.parseInt(d[j]);\n\t\t\t\tif (!list.contains(p)) {\n\t\t\t\t\tlist.add(p);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<c",
"i",
"c",
"i++",
"i++",
"i",
"{\n\t\t\tString wfeihu = a.nextLine();\n\t\t\tString nums = a.nextLine();\n\t\t\tString[] d = nums.split(\" \");\n\t\t\tfor (int j=0;j<d.length;j++) {\n\t\t\t\tint p = Integer.parseInt(d[j]);\n\t\t\t\tif (!list.contains(p)) {\n\t\t\t\t\tlist.add(p);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tString wfeihu = a.nextLine();\n\t\t\tString nums = a.nextLine();\n\t\t\tString[] d = nums.split(\" \");\n\t\t\tfor (int j=0;j<d.length;j++) {\n\t\t\t\tint p = Integer.parseInt(d[j]);\n\t\t\t\tif (!list.contains(p)) {\n\t\t\t\t\tlist.add(p);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"String wfeihu = a.nextLine();",
"wfeihu",
"a.nextLine()",
"a.nextLine",
"a",
"String nums = a.nextLine();",
"nums",
"a.nextLine()",
"a.nextLine",
"a",
"String[] d = nums.split(\" \");",
"d",
"nums.split(\" \")",
"nums.split",
"nums",
"\" \"",
"for (int j=0;j<d.length;j++) {\n\t\t\t\tint p = Integer.parseInt(d[j]);\n\t\t\t\tif (!list.contains(p)) {\n\t\t\t\t\tlist.add(p);\n\t\t\t\t}\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<d.length",
"j",
"d.length",
"d",
"d.length",
"j++",
"j++",
"j",
"{\n\t\t\t\tint p = Integer.parseInt(d[j]);\n\t\t\t\tif (!list.contains(p)) {\n\t\t\t\t\tlist.add(p);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tint p = Integer.parseInt(d[j]);\n\t\t\t\tif (!list.contains(p)) {\n\t\t\t\t\tlist.add(p);\n\t\t\t\t}\n\t\t\t}",
"int p = Integer.parseInt(d[j]);",
"p",
"Integer.parseInt(d[j])",
"Integer.parseInt",
"Integer",
"d[j]",
"d",
"j",
"if (!list.contains(p)) {\n\t\t\t\t\tlist.add(p);\n\t\t\t\t}",
"!list.contains(p)",
"list.contains(p)",
"list.contains",
"list",
"p",
"{\n\t\t\t\t\tlist.add(p);\n\t\t\t\t}",
"list.add(p)",
"list.add",
"list",
"p",
"System.out.println(comp-list.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"comp-list.size()",
"comp",
"list.size()",
"list.size",
"list",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner a = new Scanner(System.in);\n\t\tString b = a.nextLine();\n\t\tString[] vals = b.split(\" \");\n\t\tint comp = Integer.parseInt(vals[0]);\n\t\tint c = Integer.parseInt(vals[1]);\n\t\tArrayList<Integer> list= new ArrayList<Integer>();\n\t\tfor (int i = 0;i<c;i++) {\n\t\t\tString wfeihu = a.nextLine();\n\t\t\tString nums = a.nextLine();\n\t\t\tString[] d = nums.split(\" \");\n\t\t\tfor (int j=0;j<d.length;j++) {\n\t\t\t\tint p = Integer.parseInt(d[j]);\n\t\t\t\tif (!list.contains(p)) {\n\t\t\t\t\tlist.add(p);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(comp-list.size());\n\t}\n\t\t\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner a = new Scanner(System.in);\n\t\tString b = a.nextLine();\n\t\tString[] vals = b.split(\" \");\n\t\tint comp = Integer.parseInt(vals[0]);\n\t\tint c = Integer.parseInt(vals[1]);\n\t\tArrayList<Integer> list= new ArrayList<Integer>();\n\t\tfor (int i = 0;i<c;i++) {\n\t\t\tString wfeihu = a.nextLine();\n\t\t\tString nums = a.nextLine();\n\t\t\tString[] d = nums.split(\" \");\n\t\t\tfor (int j=0;j<d.length;j++) {\n\t\t\t\tint p = Integer.parseInt(d[j]);\n\t\t\t\tif (!list.contains(p)) {\n\t\t\t\t\tlist.add(p);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(comp-list.size());\n\t}\n\t\t\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner a = new Scanner(System.in);
String b = a.nextLine();
String[] vals = b.split(" ");
int comp = Integer.parseInt(vals[0]);
int c = Integer.parseInt(vals[1]);
ArrayList<Integer> list= new ArrayList<Integer>();
for (int i = 0;i<c;i++) {
String wfeihu = a.nextLine();
String nums = a.nextLine();
String[] d = nums.split(" ");
for (int j=0;j<d.length;j++) {
int p = Integer.parseInt(d[j]);
if (!list.contains(p)) {
list.add(p);
}
}
}
System.out.println(comp-list.size());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
13,
41,
13,
2,
13,
4,
18,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
96,
8
],
[
96,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
29,
30
],
[
11,
31
],
[
31,
32
],
[
31,
33
],
[
11,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
39,
41
],
[
34,
42
],
[
42,
43
],
[
43,
44
],
[
34,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
52,
53
],
[
53,
54
],
[
46,
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
],
[
68,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
74,
75
],
[
75,
76
],
[
11,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
11,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
11,
90
],
[
90,
91
],
[
91,
92
],
[
9,
93
],
[
93,
94
],
[
0,
95
],
[
95,
96
],
[
95,
97
]
] |
[
"import java.util.HashSet;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int k = Integer.parseInt(sc.next());\n HashSet<Integer> hs = new HashSet<>();\n for (int i = 0; i < k; i++) {\n int d = Integer.parseInt(sc.next());\n for (int j = 0; j < d; j++) {\n hs.add(Integer.parseInt(sc.next()));\n }\n }\n int answer = n - hs.size();\n System.out.println(answer);\n sc.close();\n }\n\n}",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int k = Integer.parseInt(sc.next());\n HashSet<Integer> hs = new HashSet<>();\n for (int i = 0; i < k; i++) {\n int d = Integer.parseInt(sc.next());\n for (int j = 0; j < d; j++) {\n hs.add(Integer.parseInt(sc.next()));\n }\n }\n int answer = n - hs.size();\n System.out.println(answer);\n sc.close();\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int k = Integer.parseInt(sc.next());\n HashSet<Integer> hs = new HashSet<>();\n for (int i = 0; i < k; i++) {\n int d = Integer.parseInt(sc.next());\n for (int j = 0; j < d; j++) {\n hs.add(Integer.parseInt(sc.next()));\n }\n }\n int answer = n - hs.size();\n System.out.println(answer);\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int k = Integer.parseInt(sc.next());\n HashSet<Integer> hs = new HashSet<>();\n for (int i = 0; i < k; i++) {\n int d = Integer.parseInt(sc.next());\n for (int j = 0; j < d; j++) {\n hs.add(Integer.parseInt(sc.next()));\n }\n }\n int answer = n - hs.size();\n System.out.println(answer);\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.next());",
"n",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int k = Integer.parseInt(sc.next());",
"k",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"HashSet<Integer> hs = new HashSet<>();",
"hs",
"new HashSet<>()",
"for (int i = 0; i < k; i++) {\n int d = Integer.parseInt(sc.next());\n for (int j = 0; j < d; j++) {\n hs.add(Integer.parseInt(sc.next()));\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"{\n int d = Integer.parseInt(sc.next());\n for (int j = 0; j < d; j++) {\n hs.add(Integer.parseInt(sc.next()));\n }\n }",
"{\n int d = Integer.parseInt(sc.next());\n for (int j = 0; j < d; j++) {\n hs.add(Integer.parseInt(sc.next()));\n }\n }",
"int d = Integer.parseInt(sc.next());",
"d",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"for (int j = 0; j < d; j++) {\n hs.add(Integer.parseInt(sc.next()));\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < d",
"j",
"d",
"j++",
"j++",
"j",
"{\n hs.add(Integer.parseInt(sc.next()));\n }",
"{\n hs.add(Integer.parseInt(sc.next()));\n }",
"hs.add(Integer.parseInt(sc.next()))",
"hs.add",
"hs",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int answer = n - hs.size();",
"answer",
"n - hs.size()",
"n",
"hs.size()",
"hs.size",
"hs",
"System.out.println(answer)",
"System.out.println",
"System.out",
"System",
"System.out",
"answer",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int k = Integer.parseInt(sc.next());\n HashSet<Integer> hs = new HashSet<>();\n for (int i = 0; i < k; i++) {\n int d = Integer.parseInt(sc.next());\n for (int j = 0; j < d; j++) {\n hs.add(Integer.parseInt(sc.next()));\n }\n }\n int answer = n - hs.size();\n System.out.println(answer);\n sc.close();\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int k = Integer.parseInt(sc.next());\n HashSet<Integer> hs = new HashSet<>();\n for (int i = 0; i < k; i++) {\n int d = Integer.parseInt(sc.next());\n for (int j = 0; j < d; j++) {\n hs.add(Integer.parseInt(sc.next()));\n }\n }\n int answer = n - hs.size();\n System.out.println(answer);\n sc.close();\n }\n\n}",
"Main"
] |
import java.util.HashSet;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.next());
int k = Integer.parseInt(sc.next());
HashSet<Integer> hs = new HashSet<>();
for (int i = 0; i < k; i++) {
int d = Integer.parseInt(sc.next());
for (int j = 0; j < d; j++) {
hs.add(Integer.parseInt(sc.next()));
}
}
int answer = n - hs.size();
System.out.println(answer);
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
2,
13,
17,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
104,
5
],
[
104,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
62,
68
],
[
8,
69
],
[
69,
70
],
[
69,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
72,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
85,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
8,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
6,
101
],
[
101,
102
],
[
0,
103
],
[
103,
104
],
[
103,
105
]
] |
[
"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 k = sc.nextInt();\n\t\tint s[] = new int[n];\n\n\t\tfor(int i = 0; i < k; i++ ) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\ts[tmp - 1] = 1;\n\t\t\t}\n\t\t}\n\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(s[i] == 0) {\n\t\t\t\tans += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\t\tint s[] = new int[n];\n\n\t\tfor(int i = 0; i < k; i++ ) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\ts[tmp - 1] = 1;\n\t\t\t}\n\t\t}\n\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(s[i] == 0) {\n\t\t\t\tans += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\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 k = sc.nextInt();\n\t\tint s[] = new int[n];\n\n\t\tfor(int i = 0; i < k; i++ ) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\ts[tmp - 1] = 1;\n\t\t\t}\n\t\t}\n\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(s[i] == 0) {\n\t\t\t\tans += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\t\tint s[] = new int[n];\n\n\t\tfor(int i = 0; i < k; i++ ) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\ts[tmp - 1] = 1;\n\t\t\t}\n\t\t}\n\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(s[i] == 0) {\n\t\t\t\tans += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int s[] = new int[n];",
"s",
"new int[n]",
"n",
"for(int i = 0; i < k; i++ ) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\ts[tmp - 1] = 1;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"{\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\ts[tmp - 1] = 1;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\ts[tmp - 1] = 1;\n\t\t\t}\n\t\t}",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j = 0; j < d; j++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\ts[tmp - 1] = 1;\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < d",
"j",
"d",
"j++",
"j++",
"j",
"{\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\ts[tmp - 1] = 1;\n\t\t\t}",
"{\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\ts[tmp - 1] = 1;\n\t\t\t}",
"int tmp = sc.nextInt();",
"tmp",
"sc.nextInt()",
"sc.nextInt",
"sc",
"s[tmp - 1] = 1",
"s[tmp - 1]",
"s",
"tmp - 1",
"tmp",
"1",
"1",
"int ans = 0;",
"ans",
"0",
"for(int i = 0; i < n; i++) {\n\t\t\tif(s[i] == 0) {\n\t\t\t\tans += 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\tif(s[i] == 0) {\n\t\t\t\tans += 1;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(s[i] == 0) {\n\t\t\t\tans += 1;\n\t\t\t}\n\t\t}",
"if(s[i] == 0) {\n\t\t\t\tans += 1;\n\t\t\t}",
"s[i] == 0",
"s[i]",
"s",
"i",
"0",
"{\n\t\t\t\tans += 1;\n\t\t\t}",
"ans += 1",
"ans",
"1",
"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 = sc.nextInt();\n\t\tint k = sc.nextInt();\n\t\tint s[] = new int[n];\n\n\t\tfor(int i = 0; i < k; i++ ) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\ts[tmp - 1] = 1;\n\t\t\t}\n\t\t}\n\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(s[i] == 0) {\n\t\t\t\tans += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\t\tint s[] = new int[n];\n\n\t\tfor(int i = 0; i < k; i++ ) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint tmp = sc.nextInt();\n\t\t\t\ts[tmp - 1] = 1;\n\t\t\t}\n\t\t}\n\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(s[i] == 0) {\n\t\t\t\tans += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int k = sc.nextInt();
int s[] = new int[n];
for(int i = 0; i < k; i++ ) {
int d = sc.nextInt();
for(int j = 0; j < d; j++) {
int tmp = sc.nextInt();
s[tmp - 1] = 1;
}
}
int ans = 0;
for(int i = 0; i < n; i++) {
if(s[i] == 0) {
ans += 1;
}
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
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
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
84,
14
],
[
84,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
17,
31
],
[
31,
32
],
[
31,
33
],
[
17,
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
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
52,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
68,
69
],
[
69,
70
],
[
17,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
15,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
] |
[
"import java.io.BufferedInputStream;\nimport java.io.IOException;\nimport java.util.HashSet;\nimport java.util.Scanner;\n\n/**\n * Created by Harry on 5/3/20.\n */\npublic class Main {\n public static void main(String[] args) throws IOException {\n Scanner scanner = new Scanner(new BufferedInputStream(System.in));\n int n = scanner.nextInt();\n int k = scanner.nextInt();\n HashSet set = new HashSet();\n for(int s=0; s<k; s++){\n int d = scanner.nextInt();\n for(int i=0; i<d; i++){\n set.add(scanner.nextInt());\n }\n }\n System.out.println(n-set.size());\n }\n\n}",
"import java.io.BufferedInputStream;",
"BufferedInputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) throws IOException {\n Scanner scanner = new Scanner(new BufferedInputStream(System.in));\n int n = scanner.nextInt();\n int k = scanner.nextInt();\n HashSet set = new HashSet();\n for(int s=0; s<k; s++){\n int d = scanner.nextInt();\n for(int i=0; i<d; i++){\n set.add(scanner.nextInt());\n }\n }\n System.out.println(n-set.size());\n }\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n Scanner scanner = new Scanner(new BufferedInputStream(System.in));\n int n = scanner.nextInt();\n int k = scanner.nextInt();\n HashSet set = new HashSet();\n for(int s=0; s<k; s++){\n int d = scanner.nextInt();\n for(int i=0; i<d; i++){\n set.add(scanner.nextInt());\n }\n }\n System.out.println(n-set.size());\n }",
"main",
"{\n Scanner scanner = new Scanner(new BufferedInputStream(System.in));\n int n = scanner.nextInt();\n int k = scanner.nextInt();\n HashSet set = new HashSet();\n for(int s=0; s<k; s++){\n int d = scanner.nextInt();\n for(int i=0; i<d; i++){\n set.add(scanner.nextInt());\n }\n }\n System.out.println(n-set.size());\n }",
"Scanner scanner = new Scanner(new BufferedInputStream(System.in));",
"scanner",
"new Scanner(new BufferedInputStream(System.in))",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int k = scanner.nextInt();",
"k",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"HashSet set = new HashSet();",
"set",
"new HashSet()",
"for(int s=0; s<k; s++){\n int d = scanner.nextInt();\n for(int i=0; i<d; i++){\n set.add(scanner.nextInt());\n }\n }",
"int s=0;",
"int s=0;",
"s",
"0",
"s<k",
"s",
"k",
"s++",
"s++",
"s",
"{\n int d = scanner.nextInt();\n for(int i=0; i<d; i++){\n set.add(scanner.nextInt());\n }\n }",
"{\n int d = scanner.nextInt();\n for(int i=0; i<d; i++){\n set.add(scanner.nextInt());\n }\n }",
"int d = scanner.nextInt();",
"d",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for(int i=0; i<d; i++){\n set.add(scanner.nextInt());\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<d",
"i",
"d",
"i++",
"i++",
"i",
"{\n set.add(scanner.nextInt());\n }",
"{\n set.add(scanner.nextInt());\n }",
"set.add(scanner.nextInt())",
"set.add",
"set",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"System.out.println(n-set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"n-set.size()",
"n",
"set.size()",
"set.size",
"set",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws IOException {\n Scanner scanner = new Scanner(new BufferedInputStream(System.in));\n int n = scanner.nextInt();\n int k = scanner.nextInt();\n HashSet set = new HashSet();\n for(int s=0; s<k; s++){\n int d = scanner.nextInt();\n for(int i=0; i<d; i++){\n set.add(scanner.nextInt());\n }\n }\n System.out.println(n-set.size());\n }\n\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n Scanner scanner = new Scanner(new BufferedInputStream(System.in));\n int n = scanner.nextInt();\n int k = scanner.nextInt();\n HashSet set = new HashSet();\n for(int s=0; s<k; s++){\n int d = scanner.nextInt();\n for(int i=0; i<d; i++){\n set.add(scanner.nextInt());\n }\n }\n System.out.println(n-set.size());\n }\n\n}",
"Main"
] |
import java.io.BufferedInputStream;
import java.io.IOException;
import java.util.HashSet;
import java.util.Scanner;
/**
* Created by Harry on 5/3/20.
*/
public class Main {
public static void main(String[] args) throws IOException {
Scanner scanner = new Scanner(new BufferedInputStream(System.in));
int n = scanner.nextInt();
int k = scanner.nextInt();
HashSet set = new HashSet();
for(int s=0; s<k; s++){
int d = scanner.nextInt();
for(int i=0; i<d; i++){
set.add(scanner.nextInt());
}
}
System.out.println(n-set.size());
}
}
|
[
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,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
13,
2,
13,
4,
18,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
30,
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,
30,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
37,
20,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
4,
18,
13,
13,
29,
4,
13,
13,
23,
13,
12,
13,
30,
29,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
6,
13,
12,
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
],
[
318,
26
],
[
318,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
29,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
29,
40
],
[
40,
41
],
[
40,
42
],
[
29,
43
],
[
43,
44
],
[
43,
45
],
[
29,
46
],
[
46,
47
],
[
46,
48
],
[
29,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
49,
53
],
[
49,
54
],
[
29,
55
],
[
55,
56
],
[
56,
57
],
[
27,
58
],
[
58,
59
],
[
318,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
64,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
64,
75
],
[
75,
76
],
[
75,
77
],
[
64,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
78,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
90,
96
],
[
96,
97
],
[
97,
98
],
[
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
],
[
109,
112
],
[
112,
113
],
[
113,
114
],
[
64,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
62,
123
],
[
123,
124
],
[
62,
125
],
[
125,
126
],
[
62,
127
],
[
127,
128
],
[
318,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
129,
133
],
[
133,
134
],
[
133,
135
],
[
129,
137
],
[
137,
138
],
[
129,
139
],
[
139,
140
],
[
129,
141
],
[
141,
142
],
[
129,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
143,
151
],
[
151,
152
],
[
129,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
156,
161
],
[
161,
162
],
[
162,
163
],
[
155,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
176,
177
],
[
172,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
182,
183
],
[
181,
184
],
[
168,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
185,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
155,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
129,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
200,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
205,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
212,
213
],
[
200,
214
],
[
214,
215
],
[
214,
216
],
[
200,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
217,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
224,
225
],
[
221,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
200,
230
],
[
230,
231
],
[
230,
232
],
[
200,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
233,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
240,
244
],
[
244,
245
],
[
244,
246
],
[
239,
247
],
[
247,
248
],
[
248,
249
],
[
238,
250
],
[
250,
251
],
[
250,
252
],
[
238,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
255,
257
],
[
238,
258
],
[
258,
259
],
[
258,
260
],
[
260,
261
],
[
200,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
129,
266
],
[
266,
267
],
[
266,
268
],
[
268,
269
],
[
269,
270
],
[
270,
271
],
[
270,
272
],
[
269,
273
],
[
273,
274
],
[
274,
275
],
[
275,
276
],
[
276,
277
],
[
275,
278
],
[
268,
279
],
[
279,
280
],
[
280,
281
],
[
280,
282
],
[
266,
283
],
[
283,
284
],
[
129,
285
],
[
285,
286
],
[
285,
287
],
[
287,
288
],
[
288,
289
],
[
292,
290
],
[
302,
291
],
[
299,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
292,
296
],
[
296,
297
],
[
296,
298
],
[
299,
299
],
[
299,
300
],
[
299,
301
],
[
302,
302
],
[
302,
303
],
[
302,
304
],
[
292,
305
],
[
305,
306
],
[
305,
307
],
[
307,
308
],
[
285,
309
],
[
309,
310
],
[
129,
311
],
[
311,
312
],
[
311,
313
],
[
313,
314
],
[
313,
315
],
[
315,
316
],
[
0,
317
],
[
317,
318
],
[
317,
319
]
] |
[
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.HashSet;\nimport java.util.InputMismatchException;\nimport java.io.IOException;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BTrickOrTreat solver = new BTrickOrTreat();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BTrickOrTreat {\n public void solve(int testNumber, FastReader s, PrintWriter out) {\n int n = s.nextInt();\n int k = s.nextInt();\n HashSet<Integer> set = new HashSet<>();\n for (int i = 0; i < k; i++) {\n int size = s.nextInt();\n for (int j = 0; j < size; j++) {\n set.add(s.nextInt());\n }\n }\n\n out.println(n - set.size());\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"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.HashSet;",
"HashSet",
"java.util",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BTrickOrTreat solver = new BTrickOrTreat();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BTrickOrTreat {\n public void solve(int testNumber, FastReader s, PrintWriter out) {\n int n = s.nextInt();\n int k = s.nextInt();\n HashSet<Integer> set = new HashSet<>();\n for (int i = 0; i < k; i++) {\n int size = s.nextInt();\n for (int j = 0; j < size; j++) {\n set.add(s.nextInt());\n }\n }\n\n out.println(n - set.size());\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BTrickOrTreat solver = new BTrickOrTreat();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BTrickOrTreat solver = new BTrickOrTreat();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"FastReader in = new FastReader(inputStream);",
"in",
"new FastReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"BTrickOrTreat solver = new BTrickOrTreat();",
"solver",
"new BTrickOrTreat()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class BTrickOrTreat {\n public void solve(int testNumber, FastReader s, PrintWriter out) {\n int n = s.nextInt();\n int k = s.nextInt();\n HashSet<Integer> set = new HashSet<>();\n for (int i = 0; i < k; i++) {\n int size = s.nextInt();\n for (int j = 0; j < size; j++) {\n set.add(s.nextInt());\n }\n }\n\n out.println(n - set.size());\n }\n\n }",
"BTrickOrTreat",
"public void solve(int testNumber, FastReader s, PrintWriter out) {\n int n = s.nextInt();\n int k = s.nextInt();\n HashSet<Integer> set = new HashSet<>();\n for (int i = 0; i < k; i++) {\n int size = s.nextInt();\n for (int j = 0; j < size; j++) {\n set.add(s.nextInt());\n }\n }\n\n out.println(n - set.size());\n }",
"solve",
"{\n int n = s.nextInt();\n int k = s.nextInt();\n HashSet<Integer> set = new HashSet<>();\n for (int i = 0; i < k; i++) {\n int size = s.nextInt();\n for (int j = 0; j < size; j++) {\n set.add(s.nextInt());\n }\n }\n\n out.println(n - set.size());\n }",
"int n = s.nextInt();",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"int k = s.nextInt();",
"k",
"s.nextInt()",
"s.nextInt",
"s",
"HashSet<Integer> set = new HashSet<>();",
"set",
"new HashSet<>()",
"for (int i = 0; i < k; i++) {\n int size = s.nextInt();\n for (int j = 0; j < size; j++) {\n set.add(s.nextInt());\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"{\n int size = s.nextInt();\n for (int j = 0; j < size; j++) {\n set.add(s.nextInt());\n }\n }",
"{\n int size = s.nextInt();\n for (int j = 0; j < size; j++) {\n set.add(s.nextInt());\n }\n }",
"int size = s.nextInt();",
"size",
"s.nextInt()",
"s.nextInt",
"s",
"for (int j = 0; j < size; j++) {\n set.add(s.nextInt());\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < size",
"j",
"size",
"j++",
"j++",
"j",
"{\n set.add(s.nextInt());\n }",
"{\n set.add(s.nextInt());\n }",
"set.add(s.nextInt())",
"set.add",
"set",
"s.nextInt()",
"s.nextInt",
"s",
"out.println(n - set.size())",
"out.println",
"out",
"n - set.size()",
"n",
"set.size()",
"set.size",
"set",
"int testNumber",
"testNumber",
"FastReader s",
"s",
"PrintWriter out",
"out",
"static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }",
"FastReader",
"private InputStream stream;",
"stream",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar;",
"curChar",
"private int numChars;",
"numChars",
"private FastReader.SpaceCharFilter filter;",
"filter",
"public FastReader(InputStream stream) {\n this.stream = stream;\n }",
"FastReader",
"{\n this.stream = stream;\n }",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"read",
"{\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"if (numChars == -1) {\n throw new InputMismatchException();\n }",
"numChars == -1",
"numChars",
"-1",
"1",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar >= numChars",
"curChar",
"numChars",
"{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar = 0",
"curChar",
"0",
"try {\n numChars = stream.read(buf);\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 numChars = stream.read(buf);\n }",
"numChars = stream.read(buf)",
"numChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (numChars <= 0) {\n return -1;\n }",
"numChars <= 0",
"numChars",
"0",
"{\n return -1;\n }",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"nextInt",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n c = read();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n sgn = -1;\n c = read();\n }",
"c == '-'",
"c",
"'-'",
"{\n sgn = -1;\n c = read();\n }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"int res = 0;",
"res",
"0",
"do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n }",
"if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }",
"isSpaceChar",
"{\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }",
"if (filter != null) {\n return filter.isSpaceChar(c);\n }",
"filter != null",
"filter",
"null",
"{\n return filter.isSpaceChar(c);\n }",
"return filter.isSpaceChar(c);",
"filter.isSpaceChar(c)",
"filter.isSpaceChar",
"filter",
"c",
"return isWhitespace(c);",
"isWhitespace(c)",
"isWhitespace",
"c",
"int c",
"c",
"public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isWhitespace",
"{\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == '\\t'",
"c == '\\r'",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == ' '",
"c",
"' '",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == '\\t'",
"c",
"'\\t'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }",
"SpaceCharFilter",
"public boolean isSpaceChar(int ch);",
"isSpaceChar",
"int ch",
"ch",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BTrickOrTreat solver = new BTrickOrTreat();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BTrickOrTreat {\n public void solve(int testNumber, FastReader s, PrintWriter out) {\n int n = s.nextInt();\n int k = s.nextInt();\n HashSet<Integer> set = new HashSet<>();\n for (int i = 0; i < k; i++) {\n int size = s.nextInt();\n for (int j = 0; j < size; j++) {\n set.add(s.nextInt());\n }\n }\n\n out.println(n - set.size());\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BTrickOrTreat solver = new BTrickOrTreat();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BTrickOrTreat {\n public void solve(int testNumber, FastReader s, PrintWriter out) {\n int n = s.nextInt();\n int k = s.nextInt();\n HashSet<Integer> set = new HashSet<>();\n for (int i = 0; i < k; i++) {\n int size = s.nextInt();\n for (int j = 0; j < size; j++) {\n set.add(s.nextInt());\n }\n }\n\n out.println(n - set.size());\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}",
"Main"
] |
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.HashSet;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
FastReader in = new FastReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
BTrickOrTreat solver = new BTrickOrTreat();
solver.solve(1, in, out);
out.close();
}
static class BTrickOrTreat {
public void solve(int testNumber, FastReader s, PrintWriter out) {
int n = s.nextInt();
int k = s.nextInt();
HashSet<Integer> set = new HashSet<>();
for (int i = 0; i < k; i++) {
int size = s.nextInt();
for (int j = 0; j < size; j++) {
set.add(s.nextInt());
}
}
out.println(n - set.size());
}
}
static class FastReader {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
private FastReader.SpaceCharFilter filter;
public FastReader(InputStream stream) {
this.stream = stream;
}
public int read() {
if (numChars == -1) {
throw new InputMismatchException();
}
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (numChars <= 0) {
return -1;
}
}
return buf[curChar++];
}
public int nextInt() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
int res = 0;
do {
if (c < '0' || c > '9') {
throw new InputMismatchException();
}
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public boolean isSpaceChar(int c) {
if (filter != null) {
return filter.isSpaceChar(c);
}
return isWhitespace(c);
}
public static boolean isWhitespace(int c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
public interface SpaceCharFilter {
public boolean isSpaceChar(int ch);
}
}
}
|
[
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,
41,
13,
20,
0,
13,
19,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
17,
41,
13,
20,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
2,
13,
4,
18,
13,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
12,
13,
30,
0,
13,
20,
17,
0,
13,
17,
0,
13,
20,
12,
13,
30,
38,
30,
4,
13,
30,
4,
18,
33,
12,
13,
30,
14,
2,
13,
17,
4,
18,
13,
12,
13,
30,
14,
2,
13,
18,
13,
13,
29,
18,
13,
40,
13,
41,
13,
4,
18,
13,
42,
2,
13,
17,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
17,
0,
13,
17,
29,
18,
13,
40,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
281,
23
],
[
281,
24
],
[
24,
25
],
[
281,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
28,
37
],
[
37,
38
],
[
38,
39
],
[
26,
40
],
[
40,
41
],
[
281,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
45,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
52,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
52,
63
],
[
63,
64
],
[
63,
65
],
[
52,
67
],
[
67,
68
],
[
67,
69
],
[
52,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
72,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
90,
91
],
[
84,
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
],
[
106,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
107,
113
],
[
113,
114
],
[
114,
115
],
[
52,
116
],
[
116,
117
],
[
116,
118
],
[
52,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
119,
127
],
[
127,
128
],
[
128,
129
],
[
119,
130
],
[
131,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
139,
141
],
[
132,
142
],
[
142,
143
],
[
143,
144
],
[
132,
145
],
[
146,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
147,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
52,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
155,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
281,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
165,
169
],
[
169,
170
],
[
165,
171
],
[
171,
172
],
[
165,
173
],
[
173,
174
],
[
173,
175
],
[
165,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
183
],
[
183,
184
],
[
183,
185
],
[
178,
186
],
[
186,
187
],
[
186,
188
],
[
165,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
192,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
165,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
203,
207
],
[
207,
208
],
[
208,
209
],
[
165,
210
],
[
210,
211
],
[
210,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
216,
218
],
[
213,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
212,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
227,
228
],
[
212,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
229,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
236,
237
],
[
212,
238
],
[
238,
239
],
[
238,
240
],
[
240,
241
],
[
241,
242
],
[
240,
243
],
[
240,
244
],
[
212,
245
],
[
245,
246
],
[
245,
247
],
[
212,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
251,
252
],
[
165,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
256,
257
],
[
257,
258
],
[
258,
259
],
[
257,
260
],
[
260,
261
],
[
165,
262
],
[
262,
263
],
[
262,
264
],
[
264,
265
],
[
265,
266
],
[
266,
267
],
[
267,
268
],
[
266,
269
],
[
269,
270
],
[
165,
271
],
[
271,
272
],
[
271,
273
],
[
273,
274
],
[
274,
275
],
[
275,
276
],
[
276,
277
],
[
275,
278
],
[
278,
279
],
[
0,
280
],
[
280,
281
],
[
280,
282
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.List;\nimport java.util.HashSet;\n\npublic class Main {\n\n private static Scanner sc;\n\n public static void main(String[] args) {\n Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }\n\n private void solve() {\n try {\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] d = new int[110];\n int[][] A = new int[120][120];\n\n for(int i=0; i<K; i++) {\n d[i] = sc.nextInt();\n for(int j=0; j<d[i]; j++) {\n A[i][j] = sc.nextInt();\n }\n }\n\n HashSet<Integer> set = new HashSet<>();\n\n for(int i=0; i<K; i++) {\n for(int j=0; j<d[i]; j++) {\n set.add(A[i][j]);\n }\n }\n\n System.out.println(N-set.size());\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n private class Scanner {\n String[] s;\n int i;\n BufferedReader br;\n String regex = \" \";\n\n public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n @Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }\n\n private void destruction() throws IOException {\n if (br != null) br.close();\n }\n\n public String next() throws IOException {\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }\n\n public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }\n\n public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\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.List;",
"List",
"java.util",
"import java.util.HashSet;",
"HashSet",
"java.util",
"public class Main {\n\n private static Scanner sc;\n\n public static void main(String[] args) {\n Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }\n\n private void solve() {\n try {\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] d = new int[110];\n int[][] A = new int[120][120];\n\n for(int i=0; i<K; i++) {\n d[i] = sc.nextInt();\n for(int j=0; j<d[i]; j++) {\n A[i][j] = sc.nextInt();\n }\n }\n\n HashSet<Integer> set = new HashSet<>();\n\n for(int i=0; i<K; i++) {\n for(int j=0; j<d[i]; j++) {\n set.add(A[i][j]);\n }\n }\n\n System.out.println(N-set.size());\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n private class Scanner {\n String[] s;\n int i;\n BufferedReader br;\n String regex = \" \";\n\n public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n @Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }\n\n private void destruction() throws IOException {\n if (br != null) br.close();\n }\n\n public String next() throws IOException {\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }\n\n public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }\n\n public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }\n }\n}",
"Main",
"private static Scanner sc;",
"sc",
"public static void main(String[] args) {\n Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }",
"main",
"{\n Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }",
"Main instance = new Main();",
"instance",
"new Main()",
"sc = instance.new Scanner()",
"sc",
"instance.new Scanner()",
"instance",
"instance",
"instance.solve()",
"instance.solve",
"instance",
"String[] args",
"args",
"private void solve() {\n try {\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] d = new int[110];\n int[][] A = new int[120][120];\n\n for(int i=0; i<K; i++) {\n d[i] = sc.nextInt();\n for(int j=0; j<d[i]; j++) {\n A[i][j] = sc.nextInt();\n }\n }\n\n HashSet<Integer> set = new HashSet<>();\n\n for(int i=0; i<K; i++) {\n for(int j=0; j<d[i]; j++) {\n set.add(A[i][j]);\n }\n }\n\n System.out.println(N-set.size());\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"solve",
"{\n try {\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] d = new int[110];\n int[][] A = new int[120][120];\n\n for(int i=0; i<K; i++) {\n d[i] = sc.nextInt();\n for(int j=0; j<d[i]; j++) {\n A[i][j] = sc.nextInt();\n }\n }\n\n HashSet<Integer> set = new HashSet<>();\n\n for(int i=0; i<K; i++) {\n for(int j=0; j<d[i]; j++) {\n set.add(A[i][j]);\n }\n }\n\n System.out.println(N-set.size());\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"try {\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] d = new int[110];\n int[][] A = new int[120][120];\n\n for(int i=0; i<K; i++) {\n d[i] = sc.nextInt();\n for(int j=0; j<d[i]; j++) {\n A[i][j] = sc.nextInt();\n }\n }\n\n HashSet<Integer> set = new HashSet<>();\n\n for(int i=0; i<K; i++) {\n for(int j=0; j<d[i]; j++) {\n set.add(A[i][j]);\n }\n }\n\n System.out.println(N-set.size());\n\n } catch (Exception e) {\n e.printStackTrace();\n }",
"catch (Exception e) {\n e.printStackTrace();\n }",
"Exception e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] d = new int[110];\n int[][] A = new int[120][120];\n\n for(int i=0; i<K; i++) {\n d[i] = sc.nextInt();\n for(int j=0; j<d[i]; j++) {\n A[i][j] = sc.nextInt();\n }\n }\n\n HashSet<Integer> set = new HashSet<>();\n\n for(int i=0; i<K; i++) {\n for(int j=0; j<d[i]; j++) {\n set.add(A[i][j]);\n }\n }\n\n System.out.println(N-set.size());\n\n }",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] d = new int[110];",
"d",
"new int[110]",
"110",
"int[][] A = new int[120][120];",
"A",
"new int[120][120]",
"120",
"120",
"for(int i=0; i<K; i++) {\n d[i] = sc.nextInt();\n for(int j=0; j<d[i]; j++) {\n A[i][j] = sc.nextInt();\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<K",
"i",
"K",
"i++",
"i++",
"i",
"{\n d[i] = sc.nextInt();\n for(int j=0; j<d[i]; j++) {\n A[i][j] = sc.nextInt();\n }\n }",
"{\n d[i] = sc.nextInt();\n for(int j=0; j<d[i]; j++) {\n A[i][j] = sc.nextInt();\n }\n }",
"d[i] = sc.nextInt()",
"d[i]",
"d",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j=0; j<d[i]; j++) {\n A[i][j] = sc.nextInt();\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<d[i]",
"j",
"d[i]",
"d",
"i",
"j++",
"j++",
"j",
"{\n A[i][j] = sc.nextInt();\n }",
"{\n A[i][j] = sc.nextInt();\n }",
"A[i][j] = sc.nextInt()",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"HashSet<Integer> set = new HashSet<>();",
"set",
"new HashSet<>()",
"for(int i=0; i<K; i++) {\n for(int j=0; j<d[i]; j++) {\n set.add(A[i][j]);\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<K",
"i",
"K",
"i++",
"i++",
"i",
"{\n for(int j=0; j<d[i]; j++) {\n set.add(A[i][j]);\n }\n }",
"{\n for(int j=0; j<d[i]; j++) {\n set.add(A[i][j]);\n }\n }",
"for(int j=0; j<d[i]; j++) {\n set.add(A[i][j]);\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<d[i]",
"j",
"d[i]",
"d",
"i",
"j++",
"j++",
"j",
"{\n set.add(A[i][j]);\n }",
"{\n set.add(A[i][j]);\n }",
"set.add(A[i][j])",
"set.add",
"set",
"A[i][j]",
"A[i]",
"A",
"i",
"j",
"System.out.println(N-set.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"N-set.size()",
"N",
"set.size()",
"set.size",
"set",
"private class Scanner {\n String[] s;\n int i;\n BufferedReader br;\n String regex = \" \";\n\n public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n @Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }\n\n private void destruction() throws IOException {\n if (br != null) br.close();\n }\n\n public String next() throws IOException {\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }\n\n public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }\n\n public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }\n }",
"Scanner",
"String[] s;",
"s",
"int i;",
"i",
"BufferedReader br;",
"br",
"String regex = \" \";",
"regex",
"\" \"",
"public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"Scanner",
"{\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"s = new String[0]",
"s",
"new String[0]",
"0",
"i = 0",
"i",
"0",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"@Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }",
"finalize",
"{\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }",
"try {\n super.finalize();\n } finally {\n destruction();\n }",
"{\n destruction();\n }",
"destruction()",
"destruction",
"{\n super.finalize();\n }",
"super.finalize()",
"super.finalize",
"super",
"private void destruction() throws IOException {\n if (br != null) br.close();\n }",
"destruction",
"{\n if (br != null) br.close();\n }",
"if (br != null) br.close();",
"br != null",
"br",
"null",
"br.close()",
"br.close",
"br",
"public String next() throws IOException {\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }",
"next",
"{\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }",
"if (i < s.length) return s[i++];",
"i < s.length",
"i",
"s.length",
"s",
"s.length",
"return s[i++];",
"s[i++]",
"s",
"i++",
"i",
"String st = br.readLine();",
"st",
"br.readLine()",
"br.readLine",
"br",
"while (st == \"\") st = br.readLine();",
"st == \"\"",
"st",
"\"\"",
"st = br.readLine()",
"st",
"br.readLine()",
"br.readLine",
"br",
"s = st.split(regex, 0)",
"s",
"st.split(regex, 0)",
"st.split",
"st",
"regex",
"0",
"i = 0",
"i",
"0",
"return s[i++];",
"s[i++]",
"s",
"i++",
"i",
"public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public class Main {\n\n private static Scanner sc;\n\n public static void main(String[] args) {\n Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }\n\n private void solve() {\n try {\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] d = new int[110];\n int[][] A = new int[120][120];\n\n for(int i=0; i<K; i++) {\n d[i] = sc.nextInt();\n for(int j=0; j<d[i]; j++) {\n A[i][j] = sc.nextInt();\n }\n }\n\n HashSet<Integer> set = new HashSet<>();\n\n for(int i=0; i<K; i++) {\n for(int j=0; j<d[i]; j++) {\n set.add(A[i][j]);\n }\n }\n\n System.out.println(N-set.size());\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n private class Scanner {\n String[] s;\n int i;\n BufferedReader br;\n String regex = \" \";\n\n public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n @Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }\n\n private void destruction() throws IOException {\n if (br != null) br.close();\n }\n\n public String next() throws IOException {\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }\n\n public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }\n\n public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }\n }\n}",
"public class Main {\n\n private static Scanner sc;\n\n public static void main(String[] args) {\n Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }\n\n private void solve() {\n try {\n int N = sc.nextInt();\n int K = sc.nextInt();\n int[] d = new int[110];\n int[][] A = new int[120][120];\n\n for(int i=0; i<K; i++) {\n d[i] = sc.nextInt();\n for(int j=0; j<d[i]; j++) {\n A[i][j] = sc.nextInt();\n }\n }\n\n HashSet<Integer> set = new HashSet<>();\n\n for(int i=0; i<K; i++) {\n for(int j=0; j<d[i]; j++) {\n set.add(A[i][j]);\n }\n }\n\n System.out.println(N-set.size());\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n private class Scanner {\n String[] s;\n int i;\n BufferedReader br;\n String regex = \" \";\n\n public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n @Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }\n\n private void destruction() throws IOException {\n if (br != null) br.close();\n }\n\n public String next() throws IOException {\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }\n\n public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }\n\n public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\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.List;
import java.util.HashSet;
public class Main {
private static Scanner sc;
public static void main(String[] args) {
Main instance = new Main();
sc = instance.new Scanner();
instance.solve();
}
private void solve() {
try {
int N = sc.nextInt();
int K = sc.nextInt();
int[] d = new int[110];
int[][] A = new int[120][120];
for(int i=0; i<K; i++) {
d[i] = sc.nextInt();
for(int j=0; j<d[i]; j++) {
A[i][j] = sc.nextInt();
}
}
HashSet<Integer> set = new HashSet<>();
for(int i=0; i<K; i++) {
for(int j=0; j<d[i]; j++) {
set.add(A[i][j]);
}
}
System.out.println(N-set.size());
} catch (Exception e) {
e.printStackTrace();
}
}
private class Scanner {
String[] s;
int i;
BufferedReader br;
String regex = " ";
public Scanner() {
s = new String[0];
i = 0;
br = new BufferedReader(new InputStreamReader(System.in));
}
@Override
protected void finalize() throws Throwable {
try {
super.finalize();
} finally {
destruction();
}
}
private void destruction() throws IOException {
if (br != null) br.close();
}
public String next() throws IOException {
if (i < s.length) return s[i++];
String st = br.readLine();
while (st == "") st = br.readLine();
s = st.split(regex, 0);
i = 0;
return s[i++];
}
public int nextInt() throws NumberFormatException, IOException {
return Integer.parseInt(next());
}
public Long nextLong() throws NumberFormatException, IOException {
return Long.parseLong(next());
}
public Double nextDouble() throws NumberFormatException, IOException {
return Double.parseDouble(next());
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
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,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
2,
13,
17,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
122,
5
],
[
122,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
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
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
80,
86
],
[
8,
87
],
[
87,
88
],
[
87,
89
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
90,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
8,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
6,
119
],
[
119,
120
],
[
0,
121
],
[
121,
122
],
[
121,
123
]
] |
[
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int k = scan.nextInt();\n boolean [] g = new boolean[n];\n for (int gg = 0;gg<n;gg++){\n g[gg] = true;\n }\n for (int i=0; i<k; i++){\n int a = scan.nextInt();\n for (int j=0;j<a;j++){\n int d = scan.nextInt();\n g[d-1] = false;\n }\n }\n int sum = 0;\n for (int q=0; q<n; q++){\n if (g[q] == true){\n sum += 1;\n }\n }\n System.out.println(sum);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int k = scan.nextInt();\n boolean [] g = new boolean[n];\n for (int gg = 0;gg<n;gg++){\n g[gg] = true;\n }\n for (int i=0; i<k; i++){\n int a = scan.nextInt();\n for (int j=0;j<a;j++){\n int d = scan.nextInt();\n g[d-1] = false;\n }\n }\n int sum = 0;\n for (int q=0; q<n; q++){\n if (g[q] == true){\n sum += 1;\n }\n }\n System.out.println(sum);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int k = scan.nextInt();\n boolean [] g = new boolean[n];\n for (int gg = 0;gg<n;gg++){\n g[gg] = true;\n }\n for (int i=0; i<k; i++){\n int a = scan.nextInt();\n for (int j=0;j<a;j++){\n int d = scan.nextInt();\n g[d-1] = false;\n }\n }\n int sum = 0;\n for (int q=0; q<n; q++){\n if (g[q] == true){\n sum += 1;\n }\n }\n System.out.println(sum);\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int k = scan.nextInt();\n boolean [] g = new boolean[n];\n for (int gg = 0;gg<n;gg++){\n g[gg] = true;\n }\n for (int i=0; i<k; i++){\n int a = scan.nextInt();\n for (int j=0;j<a;j++){\n int d = scan.nextInt();\n g[d-1] = false;\n }\n }\n int sum = 0;\n for (int q=0; q<n; q++){\n if (g[q] == true){\n sum += 1;\n }\n }\n System.out.println(sum);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int k = scan.nextInt();",
"k",
"scan.nextInt()",
"scan.nextInt",
"scan",
"boolean [] g = new boolean[n];",
"g",
"new boolean[n]",
"n",
"for (int gg = 0;gg<n;gg++){\n g[gg] = true;\n }",
"int gg = 0;",
"int gg = 0;",
"gg",
"0",
"gg<n",
"gg",
"n",
"gg++",
"gg++",
"gg",
"{\n g[gg] = true;\n }",
"{\n g[gg] = true;\n }",
"g[gg] = true",
"g[gg]",
"g",
"gg",
"true",
"for (int i=0; i<k; i++){\n int a = scan.nextInt();\n for (int j=0;j<a;j++){\n int d = scan.nextInt();\n g[d-1] = false;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<k",
"i",
"k",
"i++",
"i++",
"i",
"{\n int a = scan.nextInt();\n for (int j=0;j<a;j++){\n int d = scan.nextInt();\n g[d-1] = false;\n }\n }",
"{\n int a = scan.nextInt();\n for (int j=0;j<a;j++){\n int d = scan.nextInt();\n g[d-1] = false;\n }\n }",
"int a = scan.nextInt();",
"a",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int j=0;j<a;j++){\n int d = scan.nextInt();\n g[d-1] = false;\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<a",
"j",
"a",
"j++",
"j++",
"j",
"{\n int d = scan.nextInt();\n g[d-1] = false;\n }",
"{\n int d = scan.nextInt();\n g[d-1] = false;\n }",
"int d = scan.nextInt();",
"d",
"scan.nextInt()",
"scan.nextInt",
"scan",
"g[d-1] = false",
"g[d-1]",
"g",
"d-1",
"d",
"1",
"false",
"int sum = 0;",
"sum",
"0",
"for (int q=0; q<n; q++){\n if (g[q] == true){\n sum += 1;\n }\n }",
"int q=0;",
"int q=0;",
"q",
"0",
"q<n",
"q",
"n",
"q++",
"q++",
"q",
"{\n if (g[q] == true){\n sum += 1;\n }\n }",
"{\n if (g[q] == true){\n sum += 1;\n }\n }",
"if (g[q] == true){\n sum += 1;\n }",
"g[q] == true",
"g[q]",
"g",
"q",
"true",
"{\n sum += 1;\n }",
"sum += 1",
"sum",
"1",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int k = scan.nextInt();\n boolean [] g = new boolean[n];\n for (int gg = 0;gg<n;gg++){\n g[gg] = true;\n }\n for (int i=0; i<k; i++){\n int a = scan.nextInt();\n for (int j=0;j<a;j++){\n int d = scan.nextInt();\n g[d-1] = false;\n }\n }\n int sum = 0;\n for (int q=0; q<n; q++){\n if (g[q] == true){\n sum += 1;\n }\n }\n System.out.println(sum);\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int k = scan.nextInt();\n boolean [] g = new boolean[n];\n for (int gg = 0;gg<n;gg++){\n g[gg] = true;\n }\n for (int i=0; i<k; i++){\n int a = scan.nextInt();\n for (int j=0;j<a;j++){\n int d = scan.nextInt();\n g[d-1] = false;\n }\n }\n int sum = 0;\n for (int q=0; q<n; q++){\n if (g[q] == true){\n sum += 1;\n }\n }\n System.out.println(sum);\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int k = scan.nextInt();
boolean [] g = new boolean[n];
for (int gg = 0;gg<n;gg++){
g[gg] = true;
}
for (int i=0; i<k; i++){
int a = scan.nextInt();
for (int j=0;j<a;j++){
int d = scan.nextInt();
g[d-1] = false;
}
}
int sum = 0;
for (int q=0; q<n; q++){
if (g[q] == true){
sum += 1;
}
}
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
20,
13,
41,
13,
17,
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,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
40,
13,
40,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
108,
5
],
[
108,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
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
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
65,
71
],
[
71,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
90,
96
],
[
96,
97
],
[
97,
98
],
[
8,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
6,
105
],
[
105,
106
],
[
0,
107
],
[
107,
108
],
[
107,
109
]
] |
[
"import java.util.*;\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n int K = sc.nextInt();\n\n int D = 0;\n int tmp = 0;\n int[] arrA = new int[N];\n int cnt = 0;\n\n for(int i = 0; i < K; i++) {\n D = sc.nextInt();\n for(int j = 0; j < D; j++) {\n tmp = sc.nextInt();\n tmp--;\n arrA[tmp]++;\n }\n }\n for(int i = 0; i < N; i++) {\n if(arrA[i] == 0) {\n cnt++;\n }\n }\n System.out.println(cnt);\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\t\tint N = sc.nextInt();\n int K = sc.nextInt();\n\n int D = 0;\n int tmp = 0;\n int[] arrA = new int[N];\n int cnt = 0;\n\n for(int i = 0; i < K; i++) {\n D = sc.nextInt();\n for(int j = 0; j < D; j++) {\n tmp = sc.nextInt();\n tmp--;\n arrA[tmp]++;\n }\n }\n for(int i = 0; i < N; i++) {\n if(arrA[i] == 0) {\n cnt++;\n }\n }\n System.out.println(cnt);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n int K = sc.nextInt();\n\n int D = 0;\n int tmp = 0;\n int[] arrA = new int[N];\n int cnt = 0;\n\n for(int i = 0; i < K; i++) {\n D = sc.nextInt();\n for(int j = 0; j < D; j++) {\n tmp = sc.nextInt();\n tmp--;\n arrA[tmp]++;\n }\n }\n for(int i = 0; i < N; i++) {\n if(arrA[i] == 0) {\n cnt++;\n }\n }\n System.out.println(cnt);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n int K = sc.nextInt();\n\n int D = 0;\n int tmp = 0;\n int[] arrA = new int[N];\n int cnt = 0;\n\n for(int i = 0; i < K; i++) {\n D = sc.nextInt();\n for(int j = 0; j < D; j++) {\n tmp = sc.nextInt();\n tmp--;\n arrA[tmp]++;\n }\n }\n for(int i = 0; i < N; i++) {\n if(arrA[i] == 0) {\n cnt++;\n }\n }\n System.out.println(cnt);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int D = 0;",
"D",
"0",
"int tmp = 0;",
"tmp",
"0",
"int[] arrA = new int[N];",
"arrA",
"new int[N]",
"N",
"int cnt = 0;",
"cnt",
"0",
"for(int i = 0; i < K; i++) {\n D = sc.nextInt();\n for(int j = 0; j < D; j++) {\n tmp = sc.nextInt();\n tmp--;\n arrA[tmp]++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < K",
"i",
"K",
"i++",
"i++",
"i",
"{\n D = sc.nextInt();\n for(int j = 0; j < D; j++) {\n tmp = sc.nextInt();\n tmp--;\n arrA[tmp]++;\n }\n }",
"{\n D = sc.nextInt();\n for(int j = 0; j < D; j++) {\n tmp = sc.nextInt();\n tmp--;\n arrA[tmp]++;\n }\n }",
"D = sc.nextInt()",
"D",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j = 0; j < D; j++) {\n tmp = sc.nextInt();\n tmp--;\n arrA[tmp]++;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < D",
"j",
"D",
"j++",
"j++",
"j",
"{\n tmp = sc.nextInt();\n tmp--;\n arrA[tmp]++;\n }",
"{\n tmp = sc.nextInt();\n tmp--;\n arrA[tmp]++;\n }",
"tmp = sc.nextInt()",
"tmp",
"sc.nextInt()",
"sc.nextInt",
"sc",
"tmp--",
"tmp",
"arrA[tmp]++",
"arrA[tmp]",
"arrA",
"tmp",
"for(int i = 0; i < N; i++) {\n if(arrA[i] == 0) {\n cnt++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n if(arrA[i] == 0) {\n cnt++;\n }\n }",
"{\n if(arrA[i] == 0) {\n cnt++;\n }\n }",
"if(arrA[i] == 0) {\n cnt++;\n }",
"arrA[i] == 0",
"arrA[i]",
"arrA",
"i",
"0",
"{\n cnt++;\n }",
"cnt++",
"cnt",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n int K = sc.nextInt();\n\n int D = 0;\n int tmp = 0;\n int[] arrA = new int[N];\n int cnt = 0;\n\n for(int i = 0; i < K; i++) {\n D = sc.nextInt();\n for(int j = 0; j < D; j++) {\n tmp = sc.nextInt();\n tmp--;\n arrA[tmp]++;\n }\n }\n for(int i = 0; i < N; i++) {\n if(arrA[i] == 0) {\n cnt++;\n }\n }\n System.out.println(cnt);\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n int K = sc.nextInt();\n\n int D = 0;\n int tmp = 0;\n int[] arrA = new int[N];\n int cnt = 0;\n\n for(int i = 0; i < K; i++) {\n D = sc.nextInt();\n for(int j = 0; j < D; j++) {\n tmp = sc.nextInt();\n tmp--;\n arrA[tmp]++;\n }\n }\n for(int i = 0; i < N; i++) {\n if(arrA[i] == 0) {\n cnt++;\n }\n }\n System.out.println(cnt);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int K = sc.nextInt();
int D = 0;
int tmp = 0;
int[] arrA = new int[N];
int cnt = 0;
for(int i = 0; i < K; i++) {
D = sc.nextInt();
for(int j = 0; j < D; j++) {
tmp = sc.nextInt();
tmp--;
arrA[tmp]++;
}
}
for(int i = 0; i < N; i++) {
if(arrA[i] == 0) {
cnt++;
}
}
System.out.println(cnt);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
2,
13,
17,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
40,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
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
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
62,
68
],
[
8,
69
],
[
69,
70
],
[
69,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
72,
82
],
[
82,
83
],
[
83,
84
],
[
72,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
93,
94
],
[
8,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
6,
101
],
[
101,
102
]
] |
[
"import java.util.Scanner;\nclass Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n boolean[] hasSunuke = new boolean[N];\n for(int i = 1;i <= K;i++) {\n int di = sc.nextInt();\n for(int j = 0;j < di;j++) {\n int a = sc.nextInt();\n hasSunuke[a-1] = true;\n }\n }\n int result = 0;\n for(int i = 0;i < hasSunuke.length;i++) {\n if(!hasSunuke[i]) {\n result++;\n }\n }\n System.out.println(result);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n boolean[] hasSunuke = new boolean[N];\n for(int i = 1;i <= K;i++) {\n int di = sc.nextInt();\n for(int j = 0;j < di;j++) {\n int a = sc.nextInt();\n hasSunuke[a-1] = true;\n }\n }\n int result = 0;\n for(int i = 0;i < hasSunuke.length;i++) {\n if(!hasSunuke[i]) {\n result++;\n }\n }\n System.out.println(result);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n boolean[] hasSunuke = new boolean[N];\n for(int i = 1;i <= K;i++) {\n int di = sc.nextInt();\n for(int j = 0;j < di;j++) {\n int a = sc.nextInt();\n hasSunuke[a-1] = true;\n }\n }\n int result = 0;\n for(int i = 0;i < hasSunuke.length;i++) {\n if(!hasSunuke[i]) {\n result++;\n }\n }\n System.out.println(result);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int K = sc.nextInt();\n boolean[] hasSunuke = new boolean[N];\n for(int i = 1;i <= K;i++) {\n int di = sc.nextInt();\n for(int j = 0;j < di;j++) {\n int a = sc.nextInt();\n hasSunuke[a-1] = true;\n }\n }\n int result = 0;\n for(int i = 0;i < hasSunuke.length;i++) {\n if(!hasSunuke[i]) {\n result++;\n }\n }\n System.out.println(result);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"boolean[] hasSunuke = new boolean[N];",
"hasSunuke",
"new boolean[N]",
"N",
"for(int i = 1;i <= K;i++) {\n int di = sc.nextInt();\n for(int j = 0;j < di;j++) {\n int a = sc.nextInt();\n hasSunuke[a-1] = true;\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= K",
"i",
"K",
"i++",
"i++",
"i",
"{\n int di = sc.nextInt();\n for(int j = 0;j < di;j++) {\n int a = sc.nextInt();\n hasSunuke[a-1] = true;\n }\n }",
"{\n int di = sc.nextInt();\n for(int j = 0;j < di;j++) {\n int a = sc.nextInt();\n hasSunuke[a-1] = true;\n }\n }",
"int di = sc.nextInt();",
"di",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j = 0;j < di;j++) {\n int a = sc.nextInt();\n hasSunuke[a-1] = true;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < di",
"j",
"di",
"j++",
"j++",
"j",
"{\n int a = sc.nextInt();\n hasSunuke[a-1] = true;\n }",
"{\n int a = sc.nextInt();\n hasSunuke[a-1] = true;\n }",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"hasSunuke[a-1] = true",
"hasSunuke[a-1]",
"hasSunuke",
"a-1",
"a",
"1",
"true",
"int result = 0;",
"result",
"0",
"for(int i = 0;i < hasSunuke.length;i++) {\n if(!hasSunuke[i]) {\n result++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < hasSunuke.length",
"i",
"hasSunuke.length",
"hasSunuke",
"hasSunuke.length",
"i++",
"i++",
"i",
"{\n if(!hasSunuke[i]) {\n result++;\n }\n }",
"{\n if(!hasSunuke[i]) {\n result++;\n }\n }",
"if(!hasSunuke[i]) {\n result++;\n }",
"!hasSunuke[i]",
"hasSunuke[i]",
"hasSunuke",
"i",
"{\n result++;\n }",
"result++",
"result",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args"
] |
import java.util.Scanner;
class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int K = sc.nextInt();
boolean[] hasSunuke = new boolean[N];
for(int i = 1;i <= K;i++) {
int di = sc.nextInt();
for(int j = 0;j < di;j++) {
int a = sc.nextInt();
hasSunuke[a-1] = true;
}
}
int result = 0;
for(int i = 0;i < hasSunuke.length;i++) {
if(!hasSunuke[i]) {
result++;
}
}
System.out.println(result);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
2,
13,
17,
17,
41,
13,
17,
28,
13,
13,
30,
30,
14,
2,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
96,
5
],
[
96,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
62,
68
],
[
8,
69
],
[
69,
70
],
[
69,
71
],
[
8,
72
],
[
72,
73
],
[
72,
74
],
[
72,
75
],
[
76,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
82,
83
],
[
8,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
6,
93
],
[
93,
94
],
[
0,
95
],
[
95,
96
],
[
95,
97
]
] |
[
"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 k = sc.nextInt();\n\t\tint[] list = new int[n];\n\n\t\tfor (int i = 0; i < k; i++) {\n\t\t\tint num = sc.nextInt();\n\t\t\tfor (int j = 0; j < num; j++) {\n\t\t\t\tint index = sc.nextInt();\n\t\t\t\tlist[index-1] += 1;\n\t\t\t}\n\t\t}\n\n\t\tint count = 0;\n\t\tfor (int num : list) {\n\t\t\tif(num == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\t\tint[] list = new int[n];\n\n\t\tfor (int i = 0; i < k; i++) {\n\t\t\tint num = sc.nextInt();\n\t\t\tfor (int j = 0; j < num; j++) {\n\t\t\t\tint index = sc.nextInt();\n\t\t\t\tlist[index-1] += 1;\n\t\t\t}\n\t\t}\n\n\t\tint count = 0;\n\t\tfor (int num : list) {\n\t\t\tif(num == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\t\tint[] list = new int[n];\n\n\t\tfor (int i = 0; i < k; i++) {\n\t\t\tint num = sc.nextInt();\n\t\t\tfor (int j = 0; j < num; j++) {\n\t\t\t\tint index = sc.nextInt();\n\t\t\t\tlist[index-1] += 1;\n\t\t\t}\n\t\t}\n\n\t\tint count = 0;\n\t\tfor (int num : list) {\n\t\t\tif(num == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\t\tint[] list = new int[n];\n\n\t\tfor (int i = 0; i < k; i++) {\n\t\t\tint num = sc.nextInt();\n\t\t\tfor (int j = 0; j < num; j++) {\n\t\t\t\tint index = sc.nextInt();\n\t\t\t\tlist[index-1] += 1;\n\t\t\t}\n\t\t}\n\n\t\tint count = 0;\n\t\tfor (int num : list) {\n\t\t\tif(num == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] list = new int[n];",
"list",
"new int[n]",
"n",
"for (int i = 0; i < k; i++) {\n\t\t\tint num = sc.nextInt();\n\t\t\tfor (int j = 0; j < num; j++) {\n\t\t\t\tint index = sc.nextInt();\n\t\t\t\tlist[index-1] += 1;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"{\n\t\t\tint num = sc.nextInt();\n\t\t\tfor (int j = 0; j < num; j++) {\n\t\t\t\tint index = sc.nextInt();\n\t\t\t\tlist[index-1] += 1;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint num = sc.nextInt();\n\t\t\tfor (int j = 0; j < num; j++) {\n\t\t\t\tint index = sc.nextInt();\n\t\t\t\tlist[index-1] += 1;\n\t\t\t}\n\t\t}",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int j = 0; j < num; j++) {\n\t\t\t\tint index = sc.nextInt();\n\t\t\t\tlist[index-1] += 1;\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < num",
"j",
"num",
"j++",
"j++",
"j",
"{\n\t\t\t\tint index = sc.nextInt();\n\t\t\t\tlist[index-1] += 1;\n\t\t\t}",
"{\n\t\t\t\tint index = sc.nextInt();\n\t\t\t\tlist[index-1] += 1;\n\t\t\t}",
"int index = sc.nextInt();",
"index",
"sc.nextInt()",
"sc.nextInt",
"sc",
"list[index-1] += 1",
"list[index-1]",
"list",
"index-1",
"index",
"1",
"1",
"int count = 0;",
"count",
"0",
"for (int num : list) {\n\t\t\tif(num == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"int num",
"list",
"{\n\t\t\tif(num == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(num == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"if(num == 0) {\n\t\t\t\tcount++;\n\t\t\t}",
"num == 0",
"num",
"0",
"{\n\t\t\t\tcount++;\n\t\t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\t\tint[] list = new int[n];\n\n\t\tfor (int i = 0; i < k; i++) {\n\t\t\tint num = sc.nextInt();\n\t\t\tfor (int j = 0; j < num; j++) {\n\t\t\t\tint index = sc.nextInt();\n\t\t\t\tlist[index-1] += 1;\n\t\t\t}\n\t\t}\n\n\t\tint count = 0;\n\t\tfor (int num : list) {\n\t\t\tif(num == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\t\tint[] list = new int[n];\n\n\t\tfor (int i = 0; i < k; i++) {\n\t\t\tint num = sc.nextInt();\n\t\t\tfor (int j = 0; j < num; j++) {\n\t\t\t\tint index = sc.nextInt();\n\t\t\t\tlist[index-1] += 1;\n\t\t\t}\n\t\t}\n\n\t\tint count = 0;\n\t\tfor (int num : list) {\n\t\t\tif(num == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int k = sc.nextInt();
int[] list = new int[n];
for (int i = 0; i < k; i++) {
int num = sc.nextInt();
for (int j = 0; j < num; j++) {
int index = sc.nextInt();
list[index-1] += 1;
}
}
int count = 0;
for (int num : list) {
if(num == 0) {
count++;
}
}
System.out.println(count);
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
20,
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,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
40,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
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
],
[
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
],
[
59,
62
],
[
62,
63
],
[
63,
64
],
[
8,
65
],
[
65,
66
],
[
65,
67
],
[
8,
69
],
[
69,
70
],
[
69,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
72,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
85,
91
],
[
91,
92
],
[
92,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
6,
100
],
[
100,
101
]
] |
[
"import java.util.*;\n\nclass Main {\n public static void main(String args[]) {\n Scanner inp = new Scanner(System.in);\n int n = inp.nextInt();\n int k = inp.nextInt();\n int ni = 0;\n Set<Integer> a = new TreeSet<Integer>();\n for (int i = 0; i < k; i++) {\n ni = inp.nextInt();\n for (int j = 0; j < ni; j++) {\n a.add(inp.nextInt());\n }\n }\n int tmp[] = new int[n];\n int ans = 0;\n for (int i = 1; i <= n; i++) {\n if (!(a.contains(i))) {\n ans++;\n }\n }\n System.out.println(ans);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String args[]) {\n Scanner inp = new Scanner(System.in);\n int n = inp.nextInt();\n int k = inp.nextInt();\n int ni = 0;\n Set<Integer> a = new TreeSet<Integer>();\n for (int i = 0; i < k; i++) {\n ni = inp.nextInt();\n for (int j = 0; j < ni; j++) {\n a.add(inp.nextInt());\n }\n }\n int tmp[] = new int[n];\n int ans = 0;\n for (int i = 1; i <= n; i++) {\n if (!(a.contains(i))) {\n ans++;\n }\n }\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String args[]) {\n Scanner inp = new Scanner(System.in);\n int n = inp.nextInt();\n int k = inp.nextInt();\n int ni = 0;\n Set<Integer> a = new TreeSet<Integer>();\n for (int i = 0; i < k; i++) {\n ni = inp.nextInt();\n for (int j = 0; j < ni; j++) {\n a.add(inp.nextInt());\n }\n }\n int tmp[] = new int[n];\n int ans = 0;\n for (int i = 1; i <= n; i++) {\n if (!(a.contains(i))) {\n ans++;\n }\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner inp = new Scanner(System.in);\n int n = inp.nextInt();\n int k = inp.nextInt();\n int ni = 0;\n Set<Integer> a = new TreeSet<Integer>();\n for (int i = 0; i < k; i++) {\n ni = inp.nextInt();\n for (int j = 0; j < ni; j++) {\n a.add(inp.nextInt());\n }\n }\n int tmp[] = new int[n];\n int ans = 0;\n for (int i = 1; i <= n; i++) {\n if (!(a.contains(i))) {\n ans++;\n }\n }\n System.out.println(ans);\n }",
"Scanner inp = new Scanner(System.in);",
"inp",
"new Scanner(System.in)",
"int n = inp.nextInt();",
"n",
"inp.nextInt()",
"inp.nextInt",
"inp",
"int k = inp.nextInt();",
"k",
"inp.nextInt()",
"inp.nextInt",
"inp",
"int ni = 0;",
"ni",
"0",
"Set<Integer> a = new TreeSet<Integer>();",
"a",
"new TreeSet<Integer>()",
"for (int i = 0; i < k; i++) {\n ni = inp.nextInt();\n for (int j = 0; j < ni; j++) {\n a.add(inp.nextInt());\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"{\n ni = inp.nextInt();\n for (int j = 0; j < ni; j++) {\n a.add(inp.nextInt());\n }\n }",
"{\n ni = inp.nextInt();\n for (int j = 0; j < ni; j++) {\n a.add(inp.nextInt());\n }\n }",
"ni = inp.nextInt()",
"ni",
"inp.nextInt()",
"inp.nextInt",
"inp",
"for (int j = 0; j < ni; j++) {\n a.add(inp.nextInt());\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < ni",
"j",
"ni",
"j++",
"j++",
"j",
"{\n a.add(inp.nextInt());\n }",
"{\n a.add(inp.nextInt());\n }",
"a.add(inp.nextInt())",
"a.add",
"a",
"inp.nextInt()",
"inp.nextInt",
"inp",
"int tmp[] = new int[n];",
"tmp",
"new int[n]",
"n",
"int ans = 0;",
"ans",
"0",
"for (int i = 1; i <= n; i++) {\n if (!(a.contains(i))) {\n ans++;\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if (!(a.contains(i))) {\n ans++;\n }\n }",
"{\n if (!(a.contains(i))) {\n ans++;\n }\n }",
"if (!(a.contains(i))) {\n ans++;\n }",
"!(a.contains(i))",
"(a.contains(i))",
"a.contains",
"a",
"i",
"{\n ans++;\n }",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String args[]",
"args"
] |
import java.util.*;
class Main {
public static void main(String args[]) {
Scanner inp = new Scanner(System.in);
int n = inp.nextInt();
int k = inp.nextInt();
int ni = 0;
Set<Integer> a = new TreeSet<Integer>();
for (int i = 0; i < k; i++) {
ni = inp.nextInt();
for (int j = 0; j < ni; j++) {
a.add(inp.nextInt());
}
}
int tmp[] = new int[n];
int ans = 0;
for (int i = 1; i <= n; i++) {
if (!(a.contains(i))) {
ans++;
}
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
2,
13,
17,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
124,
5
],
[
124,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
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
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
80,
86
],
[
8,
87
],
[
87,
88
],
[
87,
89
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
90,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
8,
118
],
[
118,
119
],
[
119,
120
],
[
6,
121
],
[
121,
122
],
[
0,
123
],
[
123,
124
],
[
123,
125
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\n\t\tint[] array = new int[n];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tarray[i] = 0;\n\t\t}\n\n\t\tfor(int i = 0; i < k; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tarray[a - 1] = 1;\n\t\t\t}\n\t\t}\n\n\t\tint ans = 0;\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(array[i] == 0) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\n\t\tint[] array = new int[n];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tarray[i] = 0;\n\t\t}\n\n\t\tfor(int i = 0; i < k; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tarray[a - 1] = 1;\n\t\t\t}\n\t\t}\n\n\t\tint ans = 0;\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(array[i] == 0) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\n\t\tint[] array = new int[n];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tarray[i] = 0;\n\t\t}\n\n\t\tfor(int i = 0; i < k; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tarray[a - 1] = 1;\n\t\t\t}\n\t\t}\n\n\t\tint ans = 0;\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(array[i] == 0) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\n\t\tint[] array = new int[n];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tarray[i] = 0;\n\t\t}\n\n\t\tfor(int i = 0; i < k; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tarray[a - 1] = 1;\n\t\t\t}\n\t\t}\n\n\t\tint ans = 0;\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(array[i] == 0) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] array = new int[n];",
"array",
"new int[n]",
"n",
"for(int i = 0; i < n; i++) {\n\t\t\tarray[i] = 0;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tarray[i] = 0;\n\t\t}",
"{\n\t\t\tarray[i] = 0;\n\t\t}",
"array[i] = 0",
"array[i]",
"array",
"i",
"0",
"for(int i = 0; i < k; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tarray[a - 1] = 1;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"{\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tarray[a - 1] = 1;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tarray[a - 1] = 1;\n\t\t\t}\n\t\t}",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j = 0; j < d; j++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tarray[a - 1] = 1;\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < d",
"j",
"d",
"j++",
"j++",
"j",
"{\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tarray[a - 1] = 1;\n\t\t\t}",
"{\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tarray[a - 1] = 1;\n\t\t\t}",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"array[a - 1] = 1",
"array[a - 1]",
"array",
"a - 1",
"a",
"1",
"1",
"int ans = 0;",
"ans",
"0",
"for(int i = 0; i < n; i++) {\n\t\t\tif(array[i] == 0) {\n\t\t\t\tans++;\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\tif(array[i] == 0) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(array[i] == 0) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"if(array[i] == 0) {\n\t\t\t\tans++;\n\t\t\t}",
"array[i] == 0",
"array[i]",
"array",
"i",
"0",
"{\n\t\t\t\tans++;\n\t\t\t}",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\n\t\tint[] array = new int[n];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tarray[i] = 0;\n\t\t}\n\n\t\tfor(int i = 0; i < k; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tarray[a - 1] = 1;\n\t\t\t}\n\t\t}\n\n\t\tint ans = 0;\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(array[i] == 0) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\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\n\t\tint n = sc.nextInt();\n\t\tint k = sc.nextInt();\n\n\t\tint[] array = new int[n];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tarray[i] = 0;\n\t\t}\n\n\t\tfor(int i = 0; i < k; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tarray[a - 1] = 1;\n\t\t\t}\n\t\t}\n\n\t\tint ans = 0;\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(array[i] == 0) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int k = sc.nextInt();
int[] array = new int[n];
for(int i = 0; i < n; i++) {
array[i] = 0;
}
for(int i = 0; i < k; i++) {
int d = sc.nextInt();
for(int j = 0; j < d; j++) {
int a = sc.nextInt();
array[a - 1] = 1;
}
}
int ans = 0;
for(int i = 0; i < n; i++) {
if(array[i] == 0) {
ans++;
}
}
System.out.println(ans);
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
40,
18,
13,
2,
4,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
99,
5
],
[
99,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
60,
64
],
[
8,
65
],
[
65,
66
],
[
65,
67
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
6,
96
],
[
96,
97
],
[
0,
98
],
[
98,
99
],
[
98,
100
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int k = scan.nextInt();\n int[] x = new int[n];\n for(int i = 0; i < k; i++){\n int d = scan.nextInt();\n for(int j = 0; j < d; j++){\n x[scan.nextInt() - 1]++;\n }\n }\n int out = 0;\n for(int i = 0; i < n; i++){\n if(x[i] == 0){\n out++;\n }\n }\n System.out.println(out);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int k = scan.nextInt();\n int[] x = new int[n];\n for(int i = 0; i < k; i++){\n int d = scan.nextInt();\n for(int j = 0; j < d; j++){\n x[scan.nextInt() - 1]++;\n }\n }\n int out = 0;\n for(int i = 0; i < n; i++){\n if(x[i] == 0){\n out++;\n }\n }\n System.out.println(out);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int k = scan.nextInt();\n int[] x = new int[n];\n for(int i = 0; i < k; i++){\n int d = scan.nextInt();\n for(int j = 0; j < d; j++){\n x[scan.nextInt() - 1]++;\n }\n }\n int out = 0;\n for(int i = 0; i < n; i++){\n if(x[i] == 0){\n out++;\n }\n }\n System.out.println(out);\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int k = scan.nextInt();\n int[] x = new int[n];\n for(int i = 0; i < k; i++){\n int d = scan.nextInt();\n for(int j = 0; j < d; j++){\n x[scan.nextInt() - 1]++;\n }\n }\n int out = 0;\n for(int i = 0; i < n; i++){\n if(x[i] == 0){\n out++;\n }\n }\n System.out.println(out);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int k = scan.nextInt();",
"k",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[] x = new int[n];",
"x",
"new int[n]",
"n",
"for(int i = 0; i < k; i++){\n int d = scan.nextInt();\n for(int j = 0; j < d; j++){\n x[scan.nextInt() - 1]++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"{\n int d = scan.nextInt();\n for(int j = 0; j < d; j++){\n x[scan.nextInt() - 1]++;\n }\n }",
"{\n int d = scan.nextInt();\n for(int j = 0; j < d; j++){\n x[scan.nextInt() - 1]++;\n }\n }",
"int d = scan.nextInt();",
"d",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int j = 0; j < d; j++){\n x[scan.nextInt() - 1]++;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < d",
"j",
"d",
"j++",
"j++",
"j",
"{\n x[scan.nextInt() - 1]++;\n }",
"{\n x[scan.nextInt() - 1]++;\n }",
"x[scan.nextInt() - 1]++",
"x[scan.nextInt() - 1]",
"x",
"scan.nextInt() - 1",
"scan.nextInt()",
"scan.nextInt",
"scan",
"1",
"int out = 0;",
"out",
"0",
"for(int i = 0; i < n; i++){\n if(x[i] == 0){\n out++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(x[i] == 0){\n out++;\n }\n }",
"{\n if(x[i] == 0){\n out++;\n }\n }",
"if(x[i] == 0){\n out++;\n }",
"x[i] == 0",
"x[i]",
"x",
"i",
"0",
"{\n out++;\n }",
"out++",
"out",
"System.out.println(out)",
"System.out.println",
"System.out",
"System",
"System.out",
"out",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int k = scan.nextInt();\n int[] x = new int[n];\n for(int i = 0; i < k; i++){\n int d = scan.nextInt();\n for(int j = 0; j < d; j++){\n x[scan.nextInt() - 1]++;\n }\n }\n int out = 0;\n for(int i = 0; i < n; i++){\n if(x[i] == 0){\n out++;\n }\n }\n System.out.println(out);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int k = scan.nextInt();\n int[] x = new int[n];\n for(int i = 0; i < k; i++){\n int d = scan.nextInt();\n for(int j = 0; j < d; j++){\n x[scan.nextInt() - 1]++;\n }\n }\n int out = 0;\n for(int i = 0; i < n; i++){\n if(x[i] == 0){\n out++;\n }\n }\n System.out.println(out);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int k = scan.nextInt();
int[] x = new int[n];
for(int i = 0; i < k; i++){
int d = scan.nextInt();
for(int j = 0; j < d; j++){
x[scan.nextInt() - 1]++;
}
}
int out = 0;
for(int i = 0; i < n; i++){
if(x[i] == 0){
out++;
}
}
System.out.println(out);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
2,
4,
18,
13,
17,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
99,
5
],
[
99,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
60,
64
],
[
57,
65
],
[
8,
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
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
6,
96
],
[
96,
97
],
[
0,
98
],
[
98,
99
],
[
98,
100
]
] |
[
"import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t Scanner sc = new Scanner(System.in);\n\t int n = sc.nextInt();\n\t int k = sc.nextInt();\n\n\t int[] array = new int[n];\n\t for(int i = 0; i < k; i++){\n\t int d = sc.nextInt();\n\t for(int j = 0; j < d; j++){\n\t array[sc.nextInt() - 1] = 1;\n\t }\n\t }\n\n\t int count = 0;\n\t for(int i = 0; i < n; i++){\n\t if(array[i] != 1) count++;\n\t }\n\t System.out.print(count);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args){\n\t Scanner sc = new Scanner(System.in);\n\t int n = sc.nextInt();\n\t int k = sc.nextInt();\n\n\t int[] array = new int[n];\n\t for(int i = 0; i < k; i++){\n\t int d = sc.nextInt();\n\t for(int j = 0; j < d; j++){\n\t array[sc.nextInt() - 1] = 1;\n\t }\n\t }\n\n\t int count = 0;\n\t for(int i = 0; i < n; i++){\n\t if(array[i] != 1) count++;\n\t }\n\t System.out.print(count);\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t Scanner sc = new Scanner(System.in);\n\t int n = sc.nextInt();\n\t int k = sc.nextInt();\n\n\t int[] array = new int[n];\n\t for(int i = 0; i < k; i++){\n\t int d = sc.nextInt();\n\t for(int j = 0; j < d; j++){\n\t array[sc.nextInt() - 1] = 1;\n\t }\n\t }\n\n\t int count = 0;\n\t for(int i = 0; i < n; i++){\n\t if(array[i] != 1) count++;\n\t }\n\t System.out.print(count);\n\t}",
"main",
"{\n\t Scanner sc = new Scanner(System.in);\n\t int n = sc.nextInt();\n\t int k = sc.nextInt();\n\n\t int[] array = new int[n];\n\t for(int i = 0; i < k; i++){\n\t int d = sc.nextInt();\n\t for(int j = 0; j < d; j++){\n\t array[sc.nextInt() - 1] = 1;\n\t }\n\t }\n\n\t int count = 0;\n\t for(int i = 0; i < n; i++){\n\t if(array[i] != 1) count++;\n\t }\n\t System.out.print(count);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] array = new int[n];",
"array",
"new int[n]",
"n",
"for(int i = 0; i < k; i++){\n\t int d = sc.nextInt();\n\t for(int j = 0; j < d; j++){\n\t array[sc.nextInt() - 1] = 1;\n\t }\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"{\n\t int d = sc.nextInt();\n\t for(int j = 0; j < d; j++){\n\t array[sc.nextInt() - 1] = 1;\n\t }\n\t }",
"{\n\t int d = sc.nextInt();\n\t for(int j = 0; j < d; j++){\n\t array[sc.nextInt() - 1] = 1;\n\t }\n\t }",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j = 0; j < d; j++){\n\t array[sc.nextInt() - 1] = 1;\n\t }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < d",
"j",
"d",
"j++",
"j++",
"j",
"{\n\t array[sc.nextInt() - 1] = 1;\n\t }",
"{\n\t array[sc.nextInt() - 1] = 1;\n\t }",
"array[sc.nextInt() - 1] = 1",
"array[sc.nextInt() - 1]",
"array",
"sc.nextInt() - 1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"1",
"1",
"int count = 0;",
"count",
"0",
"for(int i = 0; i < n; i++){\n\t if(array[i] != 1) count++;\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t if(array[i] != 1) count++;\n\t }",
"{\n\t if(array[i] != 1) count++;\n\t }",
"if(array[i] != 1) count++;",
"array[i] != 1",
"array[i]",
"array",
"i",
"1",
"count++",
"count",
"System.out.print(count)",
"System.out.print",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n\t Scanner sc = new Scanner(System.in);\n\t int n = sc.nextInt();\n\t int k = sc.nextInt();\n\n\t int[] array = new int[n];\n\t for(int i = 0; i < k; i++){\n\t int d = sc.nextInt();\n\t for(int j = 0; j < d; j++){\n\t array[sc.nextInt() - 1] = 1;\n\t }\n\t }\n\n\t int count = 0;\n\t for(int i = 0; i < n; i++){\n\t if(array[i] != 1) count++;\n\t }\n\t System.out.print(count);\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\t Scanner sc = new Scanner(System.in);\n\t int n = sc.nextInt();\n\t int k = sc.nextInt();\n\n\t int[] array = new int[n];\n\t for(int i = 0; i < k; i++){\n\t int d = sc.nextInt();\n\t for(int j = 0; j < d; j++){\n\t array[sc.nextInt() - 1] = 1;\n\t }\n\t }\n\n\t int count = 0;\n\t for(int i = 0; i < n; i++){\n\t if(array[i] != 1) count++;\n\t }\n\t System.out.print(count);\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int k = sc.nextInt();
int[] array = new int[n];
for(int i = 0; i < k; i++){
int d = sc.nextInt();
for(int j = 0; j < d; j++){
array[sc.nextInt() - 1] = 1;
}
}
int count = 0;
for(int i = 0; i < n; i++){
if(array[i] != 1) count++;
}
System.out.print(count);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
41,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
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,
13,
4,
18,
13,
14,
40,
4,
18,
13,
13,
30,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
18,
13,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
14,
2,
13,
13,
30,
29,
17,
30,
0,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
17,
29,
17,
12,
13,
30,
14,
4,
13,
29,
18,
13,
40,
13,
29,
40,
17,
12,
13,
30,
29,
2,
2,
17,
13,
2,
13,
17,
23,
13,
12,
13,
30,
42,
2,
4,
13,
40,
4,
13,
18,
13,
13,
40,
13,
29,
4,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
20,
41,
13,
4,
13,
42,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
245,
17
],
[
245,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
20,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
38,
39
],
[
20,
40
],
[
40,
41
],
[
40,
42
],
[
20,
43
],
[
43,
44
],
[
20,
45
],
[
45,
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
],
[
62,
65
],
[
65,
66
],
[
66,
67
],
[
59,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
86,
87
],
[
87,
88
],
[
80,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
89,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
20,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
18,
110
],
[
110,
111
],
[
0,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
116,
118
],
[
112,
119
],
[
119,
120
],
[
119,
121
],
[
112,
123
],
[
123,
124
],
[
123,
125
],
[
112,
126
],
[
126,
127
],
[
126,
128
],
[
112,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
136,
137
],
[
137,
138
],
[
132,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
143,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
153,
156
],
[
139,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
161,
162
],
[
162,
163
],
[
131,
164
],
[
164,
165
],
[
112,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
169,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
169,
177
],
[
177,
178
],
[
178,
179
],
[
112,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
184,
188
],
[
188,
189
],
[
188,
190
],
[
180,
191
],
[
191,
192
],
[
112,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
197,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
203,
205
],
[
196,
206
],
[
206,
207
],
[
195,
208
],
[
208,
209
],
[
209,
210
],
[
112,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
214,
218
],
[
218,
219
],
[
213,
220
],
[
220,
221
],
[
220,
222
],
[
213,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
213,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
227,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
232,
235
],
[
231,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
213,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
0,
244
],
[
244,
245
],
[
244,
246
]
] |
[
"import java.io.IOException;\nimport java.io.InputStream;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.NoSuchElementException;\n\npublic class Main {\n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n\n int N = Integer.parseInt(sc.next());\n int K = Integer.parseInt(sc.next());\n List<Integer> a = new ArrayList<Integer>();\n int num;\n int num2;\n\n for(int i = 1; i <= K; i ++) {\n \tnum = Integer.parseInt(sc.next());\n \tfor(int j = 0; j < num; j++) {\n \t\tnum2 = Integer.parseInt(sc.next());\n \t\tif(!a.contains(num2)) {\n \t\t\ta.add(num2);\n \t\t}\n \t}\n }\n System.out.print(N - a.size());\n }\n}\n\nclass FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.NoSuchElementException;",
"NoSuchElementException",
"java.util",
"public class Main {\n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n\n int N = Integer.parseInt(sc.next());\n int K = Integer.parseInt(sc.next());\n List<Integer> a = new ArrayList<Integer>();\n int num;\n int num2;\n\n for(int i = 1; i <= K; i ++) {\n \tnum = Integer.parseInt(sc.next());\n \tfor(int j = 0; j < num; j++) {\n \t\tnum2 = Integer.parseInt(sc.next());\n \t\tif(!a.contains(num2)) {\n \t\t\ta.add(num2);\n \t\t}\n \t}\n }\n System.out.print(N - a.size());\n }\n}",
"Main",
"public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n\n int N = Integer.parseInt(sc.next());\n int K = Integer.parseInt(sc.next());\n List<Integer> a = new ArrayList<Integer>();\n int num;\n int num2;\n\n for(int i = 1; i <= K; i ++) {\n \tnum = Integer.parseInt(sc.next());\n \tfor(int j = 0; j < num; j++) {\n \t\tnum2 = Integer.parseInt(sc.next());\n \t\tif(!a.contains(num2)) {\n \t\t\ta.add(num2);\n \t\t}\n \t}\n }\n System.out.print(N - a.size());\n }",
"main",
"{\n FastScanner sc = new FastScanner();\n\n int N = Integer.parseInt(sc.next());\n int K = Integer.parseInt(sc.next());\n List<Integer> a = new ArrayList<Integer>();\n int num;\n int num2;\n\n for(int i = 1; i <= K; i ++) {\n \tnum = Integer.parseInt(sc.next());\n \tfor(int j = 0; j < num; j++) {\n \t\tnum2 = Integer.parseInt(sc.next());\n \t\tif(!a.contains(num2)) {\n \t\t\ta.add(num2);\n \t\t}\n \t}\n }\n System.out.print(N - a.size());\n }",
"FastScanner sc = new FastScanner();",
"sc",
"new FastScanner()",
"int N = Integer.parseInt(sc.next());",
"N",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int K = Integer.parseInt(sc.next());",
"K",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"List<Integer> a = new ArrayList<Integer>();",
"a",
"new ArrayList<Integer>()",
"int num;",
"num",
"int num2;",
"num2",
"for(int i = 1; i <= K; i ++) {\n \tnum = Integer.parseInt(sc.next());\n \tfor(int j = 0; j < num; j++) {\n \t\tnum2 = Integer.parseInt(sc.next());\n \t\tif(!a.contains(num2)) {\n \t\t\ta.add(num2);\n \t\t}\n \t}\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= K",
"i",
"K",
"i ++",
"i ++",
"i",
"{\n \tnum = Integer.parseInt(sc.next());\n \tfor(int j = 0; j < num; j++) {\n \t\tnum2 = Integer.parseInt(sc.next());\n \t\tif(!a.contains(num2)) {\n \t\t\ta.add(num2);\n \t\t}\n \t}\n }",
"{\n \tnum = Integer.parseInt(sc.next());\n \tfor(int j = 0; j < num; j++) {\n \t\tnum2 = Integer.parseInt(sc.next());\n \t\tif(!a.contains(num2)) {\n \t\t\ta.add(num2);\n \t\t}\n \t}\n }",
"num = Integer.parseInt(sc.next())",
"num",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"for(int j = 0; j < num; j++) {\n \t\tnum2 = Integer.parseInt(sc.next());\n \t\tif(!a.contains(num2)) {\n \t\t\ta.add(num2);\n \t\t}\n \t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < num",
"j",
"num",
"j++",
"j++",
"j",
"{\n \t\tnum2 = Integer.parseInt(sc.next());\n \t\tif(!a.contains(num2)) {\n \t\t\ta.add(num2);\n \t\t}\n \t}",
"{\n \t\tnum2 = Integer.parseInt(sc.next());\n \t\tif(!a.contains(num2)) {\n \t\t\ta.add(num2);\n \t\t}\n \t}",
"num2 = Integer.parseInt(sc.next())",
"num2",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"if(!a.contains(num2)) {\n \t\t\ta.add(num2);\n \t\t}",
"!a.contains(num2)",
"a.contains(num2)",
"a.contains",
"a",
"num2",
"{\n \t\t\ta.add(num2);\n \t\t}",
"a.add(num2)",
"a.add",
"a",
"num2",
"System.out.print(N - a.size())",
"System.out.print",
"System.out",
"System",
"System.out",
"N - a.size()",
"N",
"a.size()",
"a.size",
"a",
"String[] args",
"args",
"class FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n}",
"FastScanner",
"private final InputStream in = System.in;",
"in",
"System.in",
"System",
"System.in",
"private final byte[] buffer = new byte[1024];",
"buffer",
"new byte[1024]",
"1024",
"private int ptr = 0;",
"ptr",
"0",
"private int buflen = 0;",
"buflen",
"0",
"private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }",
"hasNextByte",
"{\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }",
"if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }",
"ptr < buflen",
"ptr",
"buflen",
"{\n return true;\n }",
"return true;",
"true",
"{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }",
"ptr = 0",
"ptr",
"0",
"try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n buflen = in.read(buffer);\n }",
"buflen = in.read(buffer)",
"buflen",
"in.read(buffer)",
"in.read",
"in",
"buffer",
"if (buflen <= 0) {\n return false;\n }",
"buflen <= 0",
"buflen",
"0",
"{\n return false;\n }",
"return false;",
"false",
"return true;",
"true",
"private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}",
"readByte",
"{ if (hasNextByte()) return buffer[ptr++]; else return -1;}",
"if (hasNextByte()) return buffer[ptr++]; else return -1;",
"hasNextByte()",
"hasNextByte",
"return buffer[ptr++];",
"buffer[ptr++]",
"buffer",
"ptr++",
"ptr",
"return -1;",
"-1",
"1",
"private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}",
"isPrintableChar",
"{ return 33 <= c && c <= 126;}",
"return 33 <= c && c <= 126;",
"33 <= c && c <= 126",
"33 <= c",
"33",
"c",
"c <= 126",
"c",
"126",
"int c",
"c",
"public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}",
"hasNext",
"{ while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}",
"while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;",
"hasNextByte() && !isPrintableChar(buffer[ptr])",
"hasNextByte()",
"hasNextByte",
"!isPrintableChar(buffer[ptr])",
"isPrintableChar(buffer[ptr])",
"isPrintableChar",
"buffer[ptr]",
"buffer",
"ptr",
"ptr++",
"ptr",
"return hasNextByte();",
"hasNextByte()",
"hasNextByte",
"public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }",
"next",
"{\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }",
"if (!hasNext()) throw new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n sb.appendCodePoint(b);\n b = readByte();\n }",
"sb.appendCodePoint(b)",
"sb.appendCodePoint",
"sb",
"b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public class Main {\n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n\n int N = Integer.parseInt(sc.next());\n int K = Integer.parseInt(sc.next());\n List<Integer> a = new ArrayList<Integer>();\n int num;\n int num2;\n\n for(int i = 1; i <= K; i ++) {\n \tnum = Integer.parseInt(sc.next());\n \tfor(int j = 0; j < num; j++) {\n \t\tnum2 = Integer.parseInt(sc.next());\n \t\tif(!a.contains(num2)) {\n \t\t\ta.add(num2);\n \t\t}\n \t}\n }\n System.out.print(N - a.size());\n }\n}",
"public class Main {\n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n\n int N = Integer.parseInt(sc.next());\n int K = Integer.parseInt(sc.next());\n List<Integer> a = new ArrayList<Integer>();\n int num;\n int num2;\n\n for(int i = 1; i <= K; i ++) {\n \tnum = Integer.parseInt(sc.next());\n \tfor(int j = 0; j < num; j++) {\n \t\tnum2 = Integer.parseInt(sc.next());\n \t\tif(!a.contains(num2)) {\n \t\t\ta.add(num2);\n \t\t}\n \t}\n }\n System.out.print(N - a.size());\n }\n}",
"Main"
] |
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.NoSuchElementException;
public class Main {
public static void main(String[] args) {
FastScanner sc = new FastScanner();
int N = Integer.parseInt(sc.next());
int K = Integer.parseInt(sc.next());
List<Integer> a = new ArrayList<Integer>();
int num;
int num2;
for(int i = 1; i <= K; i ++) {
num = Integer.parseInt(sc.next());
for(int j = 0; j < num; j++) {
num2 = Integer.parseInt(sc.next());
if(!a.contains(num2)) {
a.add(num2);
}
}
}
System.out.print(N - a.size());
}
}
class FastScanner {
private final InputStream in = System.in;
private final byte[] buffer = new byte[1024];
private int ptr = 0;
private int buflen = 0;
private boolean hasNextByte() {
if (ptr < buflen) {
return true;
}else{
ptr = 0;
try {
buflen = in.read(buffer);
} catch (IOException e) {
e.printStackTrace();
}
if (buflen <= 0) {
return false;
}
}
return true;
}
private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}
public String next() {
if (!hasNext()) throw new NoSuchElementException();
StringBuilder sb = new StringBuilder();
int b = readByte();
while(isPrintableChar(b)) {
sb.appendCodePoint(b);
b = readByte();
}
return sb.toString();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
18,
13,
2,
13,
17,
14,
2,
13,
17,
30,
0,
13,
20,
4,
18,
13,
2,
4,
18,
13,
17,
0,
18,
13,
2,
13,
17,
13,
41,
13,
17,
28,
13,
13,
30,
30,
14,
2,
2,
13,
17,
2,
4,
18,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
140,
11
],
[
140,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
14,
32
],
[
32,
33
],
[
32,
34
],
[
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
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
48,
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
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
71,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
71,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
95,
99
],
[
71,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
103,
105
],
[
100,
106
],
[
14,
107
],
[
107,
108
],
[
107,
109
],
[
14,
110
],
[
110,
111
],
[
110,
112
],
[
110,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
120,
124
],
[
115,
125
],
[
125,
126
],
[
126,
127
],
[
14,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
14,
134
],
[
134,
135
],
[
135,
136
],
[
12,
137
],
[
137,
138
],
[
0,
139
],
[
139,
140
],
[
139,
141
]
] |
[
"import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\t\n\tpublic static void main(String [] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint k = scanner.nextInt();\n\t\tint n = scanner.nextInt();\n\t\tint[] d = new int[n];\n\t\tList<Integer> a[] = new ArrayList[k];\n\t\tfor (int i = 0 ; i < n ; i ++) {\n\t\t\tint di = scanner.nextInt();\n\t\t\td[i] = di;\n\t\t\tfor (int j = 0 ; j < di ; j ++) {\n\t\t\t\tint aj = scanner.nextInt();\n\t\t\t\tList<Integer> ajtemp = a[aj - 1];\n\t\t\t\tif (ajtemp == null ) {\n\t\t\t\t\tajtemp = new ArrayList<>();\n\t\t\t\t}\n\t\t\t\tajtemp.add(ajtemp.size() + 1);\n\t\t\t\ta[aj - 1] = ajtemp;\n\t\t\t}\n\t\t}\n\t\tint ans = 0;\n\t\tfor (List<Integer> temp : a) {\n\t\t\tif (temp == null || temp.size() == 0) {\n\t\t\t\tans ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tscanner.close();\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\t\n\tpublic static void main(String [] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint k = scanner.nextInt();\n\t\tint n = scanner.nextInt();\n\t\tint[] d = new int[n];\n\t\tList<Integer> a[] = new ArrayList[k];\n\t\tfor (int i = 0 ; i < n ; i ++) {\n\t\t\tint di = scanner.nextInt();\n\t\t\td[i] = di;\n\t\t\tfor (int j = 0 ; j < di ; j ++) {\n\t\t\t\tint aj = scanner.nextInt();\n\t\t\t\tList<Integer> ajtemp = a[aj - 1];\n\t\t\t\tif (ajtemp == null ) {\n\t\t\t\t\tajtemp = new ArrayList<>();\n\t\t\t\t}\n\t\t\t\tajtemp.add(ajtemp.size() + 1);\n\t\t\t\ta[aj - 1] = ajtemp;\n\t\t\t}\n\t\t}\n\t\tint ans = 0;\n\t\tfor (List<Integer> temp : a) {\n\t\t\tif (temp == null || temp.size() == 0) {\n\t\t\t\tans ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tscanner.close();\n\t}\n}",
"Main",
"public static void main(String [] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint k = scanner.nextInt();\n\t\tint n = scanner.nextInt();\n\t\tint[] d = new int[n];\n\t\tList<Integer> a[] = new ArrayList[k];\n\t\tfor (int i = 0 ; i < n ; i ++) {\n\t\t\tint di = scanner.nextInt();\n\t\t\td[i] = di;\n\t\t\tfor (int j = 0 ; j < di ; j ++) {\n\t\t\t\tint aj = scanner.nextInt();\n\t\t\t\tList<Integer> ajtemp = a[aj - 1];\n\t\t\t\tif (ajtemp == null ) {\n\t\t\t\t\tajtemp = new ArrayList<>();\n\t\t\t\t}\n\t\t\t\tajtemp.add(ajtemp.size() + 1);\n\t\t\t\ta[aj - 1] = ajtemp;\n\t\t\t}\n\t\t}\n\t\tint ans = 0;\n\t\tfor (List<Integer> temp : a) {\n\t\t\tif (temp == null || temp.size() == 0) {\n\t\t\t\tans ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tscanner.close();\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint k = scanner.nextInt();\n\t\tint n = scanner.nextInt();\n\t\tint[] d = new int[n];\n\t\tList<Integer> a[] = new ArrayList[k];\n\t\tfor (int i = 0 ; i < n ; i ++) {\n\t\t\tint di = scanner.nextInt();\n\t\t\td[i] = di;\n\t\t\tfor (int j = 0 ; j < di ; j ++) {\n\t\t\t\tint aj = scanner.nextInt();\n\t\t\t\tList<Integer> ajtemp = a[aj - 1];\n\t\t\t\tif (ajtemp == null ) {\n\t\t\t\t\tajtemp = new ArrayList<>();\n\t\t\t\t}\n\t\t\t\tajtemp.add(ajtemp.size() + 1);\n\t\t\t\ta[aj - 1] = ajtemp;\n\t\t\t}\n\t\t}\n\t\tint ans = 0;\n\t\tfor (List<Integer> temp : a) {\n\t\t\tif (temp == null || temp.size() == 0) {\n\t\t\t\tans ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tscanner.close();\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int k = scanner.nextInt();",
"k",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int[] d = new int[n];",
"d",
"new int[n]",
"n",
"List<Integer> a[] = new ArrayList[k];",
"a",
"new ArrayList[k]",
"k",
"for (int i = 0 ; i < n ; i ++) {\n\t\t\tint di = scanner.nextInt();\n\t\t\td[i] = di;\n\t\t\tfor (int j = 0 ; j < di ; j ++) {\n\t\t\t\tint aj = scanner.nextInt();\n\t\t\t\tList<Integer> ajtemp = a[aj - 1];\n\t\t\t\tif (ajtemp == null ) {\n\t\t\t\t\tajtemp = new ArrayList<>();\n\t\t\t\t}\n\t\t\t\tajtemp.add(ajtemp.size() + 1);\n\t\t\t\ta[aj - 1] = ajtemp;\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\tint di = scanner.nextInt();\n\t\t\td[i] = di;\n\t\t\tfor (int j = 0 ; j < di ; j ++) {\n\t\t\t\tint aj = scanner.nextInt();\n\t\t\t\tList<Integer> ajtemp = a[aj - 1];\n\t\t\t\tif (ajtemp == null ) {\n\t\t\t\t\tajtemp = new ArrayList<>();\n\t\t\t\t}\n\t\t\t\tajtemp.add(ajtemp.size() + 1);\n\t\t\t\ta[aj - 1] = ajtemp;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint di = scanner.nextInt();\n\t\t\td[i] = di;\n\t\t\tfor (int j = 0 ; j < di ; j ++) {\n\t\t\t\tint aj = scanner.nextInt();\n\t\t\t\tList<Integer> ajtemp = a[aj - 1];\n\t\t\t\tif (ajtemp == null ) {\n\t\t\t\t\tajtemp = new ArrayList<>();\n\t\t\t\t}\n\t\t\t\tajtemp.add(ajtemp.size() + 1);\n\t\t\t\ta[aj - 1] = ajtemp;\n\t\t\t}\n\t\t}",
"int di = scanner.nextInt();",
"di",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"d[i] = di",
"d[i]",
"d",
"i",
"di",
"for (int j = 0 ; j < di ; j ++) {\n\t\t\t\tint aj = scanner.nextInt();\n\t\t\t\tList<Integer> ajtemp = a[aj - 1];\n\t\t\t\tif (ajtemp == null ) {\n\t\t\t\t\tajtemp = new ArrayList<>();\n\t\t\t\t}\n\t\t\t\tajtemp.add(ajtemp.size() + 1);\n\t\t\t\ta[aj - 1] = ajtemp;\n\t\t\t}",
"int j = 0 ;",
"int j = 0 ;",
"j",
"0",
"j < di",
"j",
"di",
"j ++",
"j ++",
"j",
"{\n\t\t\t\tint aj = scanner.nextInt();\n\t\t\t\tList<Integer> ajtemp = a[aj - 1];\n\t\t\t\tif (ajtemp == null ) {\n\t\t\t\t\tajtemp = new ArrayList<>();\n\t\t\t\t}\n\t\t\t\tajtemp.add(ajtemp.size() + 1);\n\t\t\t\ta[aj - 1] = ajtemp;\n\t\t\t}",
"{\n\t\t\t\tint aj = scanner.nextInt();\n\t\t\t\tList<Integer> ajtemp = a[aj - 1];\n\t\t\t\tif (ajtemp == null ) {\n\t\t\t\t\tajtemp = new ArrayList<>();\n\t\t\t\t}\n\t\t\t\tajtemp.add(ajtemp.size() + 1);\n\t\t\t\ta[aj - 1] = ajtemp;\n\t\t\t}",
"int aj = scanner.nextInt();",
"aj",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"List<Integer> ajtemp = a[aj - 1];",
"ajtemp",
"a[aj - 1]",
"a",
"aj - 1",
"aj",
"1",
"if (ajtemp == null ) {\n\t\t\t\t\tajtemp = new ArrayList<>();\n\t\t\t\t}",
"ajtemp == null",
"ajtemp",
"null",
"{\n\t\t\t\t\tajtemp = new ArrayList<>();\n\t\t\t\t}",
"ajtemp = new ArrayList<>()",
"ajtemp",
"new ArrayList<>()",
"ajtemp.add(ajtemp.size() + 1)",
"ajtemp.add",
"ajtemp",
"ajtemp.size() + 1",
"ajtemp.size()",
"ajtemp.size",
"ajtemp",
"1",
"a[aj - 1] = ajtemp",
"a[aj - 1]",
"a",
"aj - 1",
"aj",
"1",
"ajtemp",
"int ans = 0;",
"ans",
"0",
"for (List<Integer> temp : a) {\n\t\t\tif (temp == null || temp.size() == 0) {\n\t\t\t\tans ++;\n\t\t\t}\n\t\t}",
"List<Integer> temp",
"a",
"{\n\t\t\tif (temp == null || temp.size() == 0) {\n\t\t\t\tans ++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (temp == null || temp.size() == 0) {\n\t\t\t\tans ++;\n\t\t\t}\n\t\t}",
"if (temp == null || temp.size() == 0) {\n\t\t\t\tans ++;\n\t\t\t}",
"temp == null || temp.size() == 0",
"temp == null",
"temp",
"null",
"temp.size() == 0",
"temp.size()",
"temp.size",
"temp",
"0",
"{\n\t\t\t\tans ++;\n\t\t\t}",
"ans ++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"scanner.close()",
"scanner.close",
"scanner",
"String [] args",
"args",
"public class Main {\n\t\n\tpublic static void main(String [] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint k = scanner.nextInt();\n\t\tint n = scanner.nextInt();\n\t\tint[] d = new int[n];\n\t\tList<Integer> a[] = new ArrayList[k];\n\t\tfor (int i = 0 ; i < n ; i ++) {\n\t\t\tint di = scanner.nextInt();\n\t\t\td[i] = di;\n\t\t\tfor (int j = 0 ; j < di ; j ++) {\n\t\t\t\tint aj = scanner.nextInt();\n\t\t\t\tList<Integer> ajtemp = a[aj - 1];\n\t\t\t\tif (ajtemp == null ) {\n\t\t\t\t\tajtemp = new ArrayList<>();\n\t\t\t\t}\n\t\t\t\tajtemp.add(ajtemp.size() + 1);\n\t\t\t\ta[aj - 1] = ajtemp;\n\t\t\t}\n\t\t}\n\t\tint ans = 0;\n\t\tfor (List<Integer> temp : a) {\n\t\t\tif (temp == null || temp.size() == 0) {\n\t\t\t\tans ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tscanner.close();\n\t}\n}",
"public class Main {\n\t\n\tpublic static void main(String [] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint k = scanner.nextInt();\n\t\tint n = scanner.nextInt();\n\t\tint[] d = new int[n];\n\t\tList<Integer> a[] = new ArrayList[k];\n\t\tfor (int i = 0 ; i < n ; i ++) {\n\t\t\tint di = scanner.nextInt();\n\t\t\td[i] = di;\n\t\t\tfor (int j = 0 ; j < di ; j ++) {\n\t\t\t\tint aj = scanner.nextInt();\n\t\t\t\tList<Integer> ajtemp = a[aj - 1];\n\t\t\t\tif (ajtemp == null ) {\n\t\t\t\t\tajtemp = new ArrayList<>();\n\t\t\t\t}\n\t\t\t\tajtemp.add(ajtemp.size() + 1);\n\t\t\t\ta[aj - 1] = ajtemp;\n\t\t\t}\n\t\t}\n\t\tint ans = 0;\n\t\tfor (List<Integer> temp : a) {\n\t\t\tif (temp == null || temp.size() == 0) {\n\t\t\t\tans ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tscanner.close();\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 scanner = new Scanner(System.in);
int k = scanner.nextInt();
int n = scanner.nextInt();
int[] d = new int[n];
List<Integer> a[] = new ArrayList[k];
for (int i = 0 ; i < n ; i ++) {
int di = scanner.nextInt();
d[i] = di;
for (int j = 0 ; j < di ; j ++) {
int aj = scanner.nextInt();
List<Integer> ajtemp = a[aj - 1];
if (ajtemp == null ) {
ajtemp = new ArrayList<>();
}
ajtemp.add(ajtemp.size() + 1);
a[aj - 1] = ajtemp;
}
}
int ans = 0;
for (List<Integer> temp : a) {
if (temp == null || temp.size() == 0) {
ans ++;
}
}
System.out.println(ans);
scanner.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
2,
13,
17,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
105,
5
],
[
105,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
62,
68
],
[
8,
69
],
[
69,
70
],
[
69,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
72,
82
],
[
82,
83
],
[
83,
84
],
[
72,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
87,
93
],
[
93,
94
],
[
94,
95
],
[
8,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
6,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint k = scan.nextInt();\n\t\tboolean[] judge = new boolean[n];\n\t\t\n\t\tfor( int i = 0; i < k; i++) {\n\t\t\tint d = scan.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint a = scan.nextInt();\n\t\t\t\tjudge[a-1] = true;\n\t\t\t}\n\t\t}\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < judge.length; i++) {\n\t\t\tif(judge[i] == false) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(ans);\n\t\t\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint k = scan.nextInt();\n\t\tboolean[] judge = new boolean[n];\n\t\t\n\t\tfor( int i = 0; i < k; i++) {\n\t\t\tint d = scan.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint a = scan.nextInt();\n\t\t\t\tjudge[a-1] = true;\n\t\t\t}\n\t\t}\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < judge.length; i++) {\n\t\t\tif(judge[i] == false) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(ans);\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint k = scan.nextInt();\n\t\tboolean[] judge = new boolean[n];\n\t\t\n\t\tfor( int i = 0; i < k; i++) {\n\t\t\tint d = scan.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint a = scan.nextInt();\n\t\t\t\tjudge[a-1] = true;\n\t\t\t}\n\t\t}\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < judge.length; i++) {\n\t\t\tif(judge[i] == false) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(ans);\n\t\t\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint k = scan.nextInt();\n\t\tboolean[] judge = new boolean[n];\n\t\t\n\t\tfor( int i = 0; i < k; i++) {\n\t\t\tint d = scan.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint a = scan.nextInt();\n\t\t\t\tjudge[a-1] = true;\n\t\t\t}\n\t\t}\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < judge.length; i++) {\n\t\t\tif(judge[i] == false) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(ans);\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 k = scan.nextInt();",
"k",
"scan.nextInt()",
"scan.nextInt",
"scan",
"boolean[] judge = new boolean[n];",
"judge",
"new boolean[n]",
"n",
"for( int i = 0; i < k; i++) {\n\t\t\tint d = scan.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint a = scan.nextInt();\n\t\t\t\tjudge[a-1] = true;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"{\n\t\t\tint d = scan.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint a = scan.nextInt();\n\t\t\t\tjudge[a-1] = true;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint d = scan.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint a = scan.nextInt();\n\t\t\t\tjudge[a-1] = true;\n\t\t\t}\n\t\t}",
"int d = scan.nextInt();",
"d",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int j = 0; j < d; j++) {\n\t\t\t\tint a = scan.nextInt();\n\t\t\t\tjudge[a-1] = true;\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < d",
"j",
"d",
"j++",
"j++",
"j",
"{\n\t\t\t\tint a = scan.nextInt();\n\t\t\t\tjudge[a-1] = true;\n\t\t\t}",
"{\n\t\t\t\tint a = scan.nextInt();\n\t\t\t\tjudge[a-1] = true;\n\t\t\t}",
"int a = scan.nextInt();",
"a",
"scan.nextInt()",
"scan.nextInt",
"scan",
"judge[a-1] = true",
"judge[a-1]",
"judge",
"a-1",
"a",
"1",
"true",
"int ans = 0;",
"ans",
"0",
"for(int i = 0; i < judge.length; i++) {\n\t\t\tif(judge[i] == false) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < judge.length",
"i",
"judge.length",
"judge",
"judge.length",
"i++",
"i++",
"i",
"{\n\t\t\tif(judge[i] == false) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(judge[i] == false) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"if(judge[i] == false) {\n\t\t\t\tans++;\n\t\t\t}",
"judge[i] == false",
"judge[i]",
"judge",
"i",
"false",
"{\n\t\t\t\tans++;\n\t\t\t}",
"ans++",
"ans",
"System.out.print(ans)",
"System.out.print",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint k = scan.nextInt();\n\t\tboolean[] judge = new boolean[n];\n\t\t\n\t\tfor( int i = 0; i < k; i++) {\n\t\t\tint d = scan.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint a = scan.nextInt();\n\t\t\t\tjudge[a-1] = true;\n\t\t\t}\n\t\t}\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < judge.length; i++) {\n\t\t\tif(judge[i] == false) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(ans);\n\t\t\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint k = scan.nextInt();\n\t\tboolean[] judge = new boolean[n];\n\t\t\n\t\tfor( int i = 0; i < k; i++) {\n\t\t\tint d = scan.nextInt();\n\t\t\tfor(int j = 0; j < d; j++) {\n\t\t\t\tint a = scan.nextInt();\n\t\t\t\tjudge[a-1] = true;\n\t\t\t}\n\t\t}\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < judge.length; i++) {\n\t\t\tif(judge[i] == false) {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(ans);\n\t\t\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int k = scan.nextInt();
boolean[] judge = new boolean[n];
for( int i = 0; i < k; i++) {
int d = scan.nextInt();
for(int j = 0; j < d; j++) {
int a = scan.nextInt();
judge[a-1] = true;
}
}
int ans = 0;
for(int i = 0; i < judge.length; i++) {
if(judge[i] == false) {
ans++;
}
}
System.out.print(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
40,
18,
13,
2,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
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
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
8,
68
],
[
68,
69
],
[
68,
70
],
[
8,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
71,
82
],
[
83,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
84,
90
],
[
90,
91
],
[
91,
92
],
[
8,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
6,
99
],
[
99,
100
]
] |
[
"import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n int people=scan.nextInt();\n int sweet=scan.nextInt();\n int[] swenum=new int[people];\n for(int a=0; a<sweet; a++){\n int num=scan.nextInt();\n for(int b=0; b<num; b++){\n int stuck=scan.nextInt();\n swenum[stuck-1]++;\n }\n }\n int ans=0;\n for(int a=0; a<people; a++){\n if(swenum[a]==0){\n ans++;\n }\n }\n System.out.println(ans);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n int people=scan.nextInt();\n int sweet=scan.nextInt();\n int[] swenum=new int[people];\n for(int a=0; a<sweet; a++){\n int num=scan.nextInt();\n for(int b=0; b<num; b++){\n int stuck=scan.nextInt();\n swenum[stuck-1]++;\n }\n }\n int ans=0;\n for(int a=0; a<people; a++){\n if(swenum[a]==0){\n ans++;\n }\n }\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n int people=scan.nextInt();\n int sweet=scan.nextInt();\n int[] swenum=new int[people];\n for(int a=0; a<sweet; a++){\n int num=scan.nextInt();\n for(int b=0; b<num; b++){\n int stuck=scan.nextInt();\n swenum[stuck-1]++;\n }\n }\n int ans=0;\n for(int a=0; a<people; a++){\n if(swenum[a]==0){\n ans++;\n }\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner scan=new Scanner(System.in);\n int people=scan.nextInt();\n int sweet=scan.nextInt();\n int[] swenum=new int[people];\n for(int a=0; a<sweet; a++){\n int num=scan.nextInt();\n for(int b=0; b<num; b++){\n int stuck=scan.nextInt();\n swenum[stuck-1]++;\n }\n }\n int ans=0;\n for(int a=0; a<people; a++){\n if(swenum[a]==0){\n ans++;\n }\n }\n System.out.println(ans);\n }",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int people=scan.nextInt();",
"people",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int sweet=scan.nextInt();",
"sweet",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[] swenum=new int[people];",
"swenum",
"new int[people]",
"people",
"for(int a=0; a<sweet; a++){\n int num=scan.nextInt();\n for(int b=0; b<num; b++){\n int stuck=scan.nextInt();\n swenum[stuck-1]++;\n }\n }",
"int a=0;",
"int a=0;",
"a",
"0",
"a<sweet",
"a",
"sweet",
"a++",
"a++",
"a",
"{\n int num=scan.nextInt();\n for(int b=0; b<num; b++){\n int stuck=scan.nextInt();\n swenum[stuck-1]++;\n }\n }",
"{\n int num=scan.nextInt();\n for(int b=0; b<num; b++){\n int stuck=scan.nextInt();\n swenum[stuck-1]++;\n }\n }",
"int num=scan.nextInt();",
"num",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int b=0; b<num; b++){\n int stuck=scan.nextInt();\n swenum[stuck-1]++;\n }",
"int b=0;",
"int b=0;",
"b",
"0",
"b<num",
"b",
"num",
"b++",
"b++",
"b",
"{\n int stuck=scan.nextInt();\n swenum[stuck-1]++;\n }",
"{\n int stuck=scan.nextInt();\n swenum[stuck-1]++;\n }",
"int stuck=scan.nextInt();",
"stuck",
"scan.nextInt()",
"scan.nextInt",
"scan",
"swenum[stuck-1]++",
"swenum[stuck-1]",
"swenum",
"stuck-1",
"stuck",
"1",
"int ans=0;",
"ans",
"0",
"for(int a=0; a<people; a++){\n if(swenum[a]==0){\n ans++;\n }\n }",
"int a=0;",
"int a=0;",
"a",
"0",
"a<people",
"a",
"people",
"a++",
"a++",
"a",
"{\n if(swenum[a]==0){\n ans++;\n }\n }",
"{\n if(swenum[a]==0){\n ans++;\n }\n }",
"if(swenum[a]==0){\n ans++;\n }",
"swenum[a]==0",
"swenum[a]",
"swenum",
"a",
"0",
"{\n ans++;\n }",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args"
] |
import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int people=scan.nextInt();
int sweet=scan.nextInt();
int[] swenum=new int[people];
for(int a=0; a<sweet; a++){
int num=scan.nextInt();
for(int b=0; b<num; b++){
int stuck=scan.nextInt();
swenum[stuck-1]++;
}
}
int ans=0;
for(int a=0; a<people; a++){
if(swenum[a]==0){
ans++;
}
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
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,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
2,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
102,
5
],
[
102,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
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
],
[
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
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
65,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
72,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
85,
91
],
[
91,
92
],
[
8,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
6,
99
],
[
99,
100
],
[
0,
101
],
[
101,
102
],
[
101,
103
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] arg) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint k = scan.nextInt();\n\t\tboolean[] res = new boolean[n];\n\t\tint result = 0;\n\t\tfor(int i = 0; i < k; i++){\n\t\t\tint d = scan.nextInt();\n\t\t\tfor(int j = 0; j < d; j++){\n\t\t\t\tint a = scan.nextInt();\n\t\t\t\tres[a-1] = true;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tif(res[i] == false)result++;\n\t\t}\n\t\tSystem.out.println(result);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] arg) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint k = scan.nextInt();\n\t\tboolean[] res = new boolean[n];\n\t\tint result = 0;\n\t\tfor(int i = 0; i < k; i++){\n\t\t\tint d = scan.nextInt();\n\t\t\tfor(int j = 0; j < d; j++){\n\t\t\t\tint a = scan.nextInt();\n\t\t\t\tres[a-1] = true;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tif(res[i] == false)result++;\n\t\t}\n\t\tSystem.out.println(result);\n\t}\n}",
"Main",
"public static void main(String[] arg) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint k = scan.nextInt();\n\t\tboolean[] res = new boolean[n];\n\t\tint result = 0;\n\t\tfor(int i = 0; i < k; i++){\n\t\t\tint d = scan.nextInt();\n\t\t\tfor(int j = 0; j < d; j++){\n\t\t\t\tint a = scan.nextInt();\n\t\t\t\tres[a-1] = true;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tif(res[i] == false)result++;\n\t\t}\n\t\tSystem.out.println(result);\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint k = scan.nextInt();\n\t\tboolean[] res = new boolean[n];\n\t\tint result = 0;\n\t\tfor(int i = 0; i < k; i++){\n\t\t\tint d = scan.nextInt();\n\t\t\tfor(int j = 0; j < d; j++){\n\t\t\t\tint a = scan.nextInt();\n\t\t\t\tres[a-1] = true;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tif(res[i] == false)result++;\n\t\t}\n\t\tSystem.out.println(result);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int k = scan.nextInt();",
"k",
"scan.nextInt()",
"scan.nextInt",
"scan",
"boolean[] res = new boolean[n];",
"res",
"new boolean[n]",
"n",
"int result = 0;",
"result",
"0",
"for(int i = 0; i < k; i++){\n\t\t\tint d = scan.nextInt();\n\t\t\tfor(int j = 0; j < d; j++){\n\t\t\t\tint a = scan.nextInt();\n\t\t\t\tres[a-1] = true;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"{\n\t\t\tint d = scan.nextInt();\n\t\t\tfor(int j = 0; j < d; j++){\n\t\t\t\tint a = scan.nextInt();\n\t\t\t\tres[a-1] = true;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint d = scan.nextInt();\n\t\t\tfor(int j = 0; j < d; j++){\n\t\t\t\tint a = scan.nextInt();\n\t\t\t\tres[a-1] = true;\n\t\t\t}\n\t\t}",
"int d = scan.nextInt();",
"d",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int j = 0; j < d; j++){\n\t\t\t\tint a = scan.nextInt();\n\t\t\t\tres[a-1] = true;\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < d",
"j",
"d",
"j++",
"j++",
"j",
"{\n\t\t\t\tint a = scan.nextInt();\n\t\t\t\tres[a-1] = true;\n\t\t\t}",
"{\n\t\t\t\tint a = scan.nextInt();\n\t\t\t\tres[a-1] = true;\n\t\t\t}",
"int a = scan.nextInt();",
"a",
"scan.nextInt()",
"scan.nextInt",
"scan",
"res[a-1] = true",
"res[a-1]",
"res",
"a-1",
"a",
"1",
"true",
"for(int i = 0; i < n; i++){\n\t\t\tif(res[i] == false)result++;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif(res[i] == false)result++;\n\t\t}",
"{\n\t\t\tif(res[i] == false)result++;\n\t\t}",
"if(res[i] == false)result++;",
"res[i] == false",
"res[i]",
"res",
"i",
"false",
"result++",
"result",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] arg",
"arg",
"public class Main {\n\n\tpublic static void main(String[] arg) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint k = scan.nextInt();\n\t\tboolean[] res = new boolean[n];\n\t\tint result = 0;\n\t\tfor(int i = 0; i < k; i++){\n\t\t\tint d = scan.nextInt();\n\t\t\tfor(int j = 0; j < d; j++){\n\t\t\t\tint a = scan.nextInt();\n\t\t\t\tres[a-1] = true;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tif(res[i] == false)result++;\n\t\t}\n\t\tSystem.out.println(result);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] arg) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint k = scan.nextInt();\n\t\tboolean[] res = new boolean[n];\n\t\tint result = 0;\n\t\tfor(int i = 0; i < k; i++){\n\t\t\tint d = scan.nextInt();\n\t\t\tfor(int j = 0; j < d; j++){\n\t\t\t\tint a = scan.nextInt();\n\t\t\t\tres[a-1] = true;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tif(res[i] == false)result++;\n\t\t}\n\t\tSystem.out.println(result);\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] arg) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int k = scan.nextInt();
boolean[] res = new boolean[n];
int result = 0;
for(int i = 0; i < k; i++){
int d = scan.nextInt();
for(int j = 0; j < d; j++){
int a = scan.nextInt();
res[a-1] = true;
}
}
for(int i = 0; i < n; i++){
if(res[i] == false)result++;
}
System.out.println(result);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
67,
5
],
[
67,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
25,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
52,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
6,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
]
] |
[
"import java.util.*;\npublic class Main {\n\n public static void main(String[] args) { \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n Set<Integer> sets = new HashSet<>();\n while(k-- > 0) {\n int d = sc.nextInt();\n for(int i = 0; i < d; i++)\n sets.add(sc.nextInt());\n }\n\n System.out.println(n - sets.size());\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args) { \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n Set<Integer> sets = new HashSet<>();\n while(k-- > 0) {\n int d = sc.nextInt();\n for(int i = 0; i < d; i++)\n sets.add(sc.nextInt());\n }\n\n System.out.println(n - sets.size());\n }\n}",
"Main",
"public static void main(String[] args) { \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n Set<Integer> sets = new HashSet<>();\n while(k-- > 0) {\n int d = sc.nextInt();\n for(int i = 0; i < d; i++)\n sets.add(sc.nextInt());\n }\n\n System.out.println(n - sets.size());\n }",
"main",
"{ \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n Set<Integer> sets = new HashSet<>();\n while(k-- > 0) {\n int d = sc.nextInt();\n for(int i = 0; i < d; i++)\n sets.add(sc.nextInt());\n }\n\n System.out.println(n - sets.size());\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Set<Integer> sets = new HashSet<>();",
"sets",
"new HashSet<>()",
"while(k-- > 0) {\n int d = sc.nextInt();\n for(int i = 0; i < d; i++)\n sets.add(sc.nextInt());\n }",
"k-- > 0",
"k--",
"k",
"0",
"{\n int d = sc.nextInt();\n for(int i = 0; i < d; i++)\n sets.add(sc.nextInt());\n }",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < d; i++)\n sets.add(sc.nextInt());",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < d",
"i",
"d",
"i++",
"i++",
"i",
"sets.add(sc.nextInt());",
"sets.add(sc.nextInt())",
"sets.add",
"sets",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println(n - sets.size())",
"System.out.println",
"System.out",
"System",
"System.out",
"n - sets.size()",
"n",
"sets.size()",
"sets.size",
"sets",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) { \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n Set<Integer> sets = new HashSet<>();\n while(k-- > 0) {\n int d = sc.nextInt();\n for(int i = 0; i < d; i++)\n sets.add(sc.nextInt());\n }\n\n System.out.println(n - sets.size());\n }\n}",
"public class Main {\n\n public static void main(String[] args) { \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int k = sc.nextInt();\n Set<Integer> sets = new HashSet<>();\n while(k-- > 0) {\n int d = sc.nextInt();\n for(int i = 0; i < d; i++)\n sets.add(sc.nextInt());\n }\n\n System.out.println(n - sets.size());\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int k = sc.nextInt();
Set<Integer> sets = new HashSet<>();
while(k-- > 0) {
int d = sc.nextInt();
for(int i = 0; i < d; i++)
sets.add(sc.nextInt());
}
System.out.println(n - sets.size());
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
13,
2,
13,
13,
30,
14,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
30,
4,
18,
18,
13,
13,
17,
29,
40,
13,
4,
18,
18,
13,
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
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
11,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
38
],
[
33,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
40,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
52,
59
],
[
40,
60
],
[
60,
61
],
[
11,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
9,
68
],
[
68,
69
]
] |
[
"import java.io.*;\nimport java.util.*;\nclass Main\n{\n public static void main(String [] args)\n {\n Scanner sc=new Scanner(System.in);\n int K=sc.nextInt();\n int A=sc.nextInt();\n int B=sc.nextInt();\n int n=1;\n while(n<=(B/K))\n {\n if(A<=(K*n) && (K*n)<=B)\n {\n System.out.print(\"OK\");\n return;\n }\n else\n n++;\n }\n System.out.print(\"NG\");\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"class Main\n{\n public static void main(String [] args)\n {\n Scanner sc=new Scanner(System.in);\n int K=sc.nextInt();\n int A=sc.nextInt();\n int B=sc.nextInt();\n int n=1;\n while(n<=(B/K))\n {\n if(A<=(K*n) && (K*n)<=B)\n {\n System.out.print(\"OK\");\n return;\n }\n else\n n++;\n }\n System.out.print(\"NG\");\n }\n}",
"Main",
"public static void main(String [] args)\n {\n Scanner sc=new Scanner(System.in);\n int K=sc.nextInt();\n int A=sc.nextInt();\n int B=sc.nextInt();\n int n=1;\n while(n<=(B/K))\n {\n if(A<=(K*n) && (K*n)<=B)\n {\n System.out.print(\"OK\");\n return;\n }\n else\n n++;\n }\n System.out.print(\"NG\");\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int K=sc.nextInt();\n int A=sc.nextInt();\n int B=sc.nextInt();\n int n=1;\n while(n<=(B/K))\n {\n if(A<=(K*n) && (K*n)<=B)\n {\n System.out.print(\"OK\");\n return;\n }\n else\n n++;\n }\n System.out.print(\"NG\");\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K=sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A=sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B=sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int n=1;",
"n",
"1",
"while(n<=(B/K))\n {\n if(A<=(K*n) && (K*n)<=B)\n {\n System.out.print(\"OK\");\n return;\n }\n else\n n++;\n }",
"n<=(B/K)",
"n",
"(B/K)",
"B",
"K",
"{\n if(A<=(K*n) && (K*n)<=B)\n {\n System.out.print(\"OK\");\n return;\n }\n else\n n++;\n }",
"if(A<=(K*n) && (K*n)<=B)\n {\n System.out.print(\"OK\");\n return;\n }\n else\n n++;",
"A<=(K*n) && (K*n)<=B",
"A<=(K*n)",
"A",
"(K*n)",
"K",
"n",
"(K*n)<=B",
"(K*n)",
"K",
"n",
"B",
"{\n System.out.print(\"OK\");\n return;\n }",
"System.out.print(\"OK\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"OK\"",
"return;",
"n++",
"n",
"System.out.print(\"NG\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"NG\"",
"String [] args",
"args"
] |
import java.io.*;
import java.util.*;
class Main
{
public static void main(String [] args)
{
Scanner sc=new Scanner(System.in);
int K=sc.nextInt();
int A=sc.nextInt();
int B=sc.nextInt();
int n=1;
while(n<=(B/K))
{
if(A<=(K*n) && (K*n)<=B)
{
System.out.print("OK");
return;
}
else
n++;
}
System.out.print("NG");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
8,
2,
2,
2,
2,
2,
13,
13,
13,
13,
13,
2,
2,
13,
13,
17,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
56,
5
],
[
56,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
32,
38
],
[
31,
39
],
[
30,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
29,
45
],
[
29,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
6,
53
],
[
53,
54
],
[
0,
55
],
[
55,
56
],
[
55,
57
]
] |
[
"import java.util.*;\n \npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n String ans = (a/k * k + k <= b || a%k == 0) ? \"OK\" : \"NG\";\n System.out.println(ans);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n String ans = (a/k * k + k <= b || a%k == 0) ? \"OK\" : \"NG\";\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n String ans = (a/k * k + k <= b || a%k == 0) ? \"OK\" : \"NG\";\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n String ans = (a/k * k + k <= b || a%k == 0) ? \"OK\" : \"NG\";\n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String ans = (a/k * k + k <= b || a%k == 0) ? \"OK\" : \"NG\";",
"ans",
"(a/k * k + k <= b || a%k == 0) ? \"OK\" : \"NG\"",
"(a/k * k + k <= b || a%k == 0)",
"a/k * k + k <= b",
"a/k * k + k",
"a/k * k",
"a/k",
"a",
"k",
"k",
"k",
"b",
"a%k == 0",
"a%k",
"a",
"k",
"0",
"\"OK\"",
"\"NG\"",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n String ans = (a/k * k + k <= b || a%k == 0) ? \"OK\" : \"NG\";\n System.out.println(ans);\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n String ans = (a/k * k + k <= b || a%k == 0) ? \"OK\" : \"NG\";\n System.out.println(ans);\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
String ans = (a/k * k + k <= b || a%k == 0) ? "OK" : "NG";
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
14,
2,
2,
13,
13,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
64,
5
],
[
64,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
37,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
37,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
6,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
] |
[
"\nimport java.util.*;\npublic class Main {// Main\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\tint n = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint q = a/n;\n\t\tint q2 = b/n;\n\t\tif(q2>q || a%n==0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\t\n}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {// Main\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\tint n = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint q = a/n;\n\t\tint q2 = b/n;\n\t\tif(q2>q || a%n==0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\t\n}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\tint n = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint q = a/n;\n\t\tint q2 = b/n;\n\t\tif(q2>q || a%n==0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\t\n}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\tint n = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint q = a/n;\n\t\tint q2 = b/n;\n\t\tif(q2>q || a%n==0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\t\n}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int q = a/n;",
"q",
"a/n",
"a",
"n",
"int q2 = b/n;",
"q2",
"b/n",
"b",
"n",
"if(q2>q || a%n==0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"q2>q || a%n==0",
"q2>q",
"q2",
"q",
"a%n==0",
"a%n",
"a",
"n",
"0",
"{\n\t\t\tSystem.out.println(\"OK\");\n\t\t}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {// Main\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\tint n = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint q = a/n;\n\t\tint q2 = b/n;\n\t\tif(q2>q || a%n==0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\t\n}\n}",
"public class Main {// Main\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\tint n = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint q = a/n;\n\t\tint q2 = b/n;\n\t\tif(q2>q || a%n==0) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t\t\n}\n}",
"Main"
] |
import java.util.*;
public class Main {// Main
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
int q = a/n;
int q2 = b/n;
if(q2>q || a%n==0) {
System.out.println("OK");
}else {
System.out.println("NG");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
8,
2,
2,
17,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
17,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
53,
5
],
[
53,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
10,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
10,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
45,
47
],
[
34,
48
],
[
34,
49
],
[
6,
50
],
[
50,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tint k = scanner.nextInt();\n\t\t\tint a = scanner.nextInt(), b = scanner.nextInt();\n\t\t\tSystem.out.println(((0 == (a % k)) || ((a / k) != (b / k))) ? \"OK\" : \"NG\");\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tint k = scanner.nextInt();\n\t\t\tint a = scanner.nextInt(), b = scanner.nextInt();\n\t\t\tSystem.out.println(((0 == (a % k)) || ((a / k) != (b / k))) ? \"OK\" : \"NG\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tint k = scanner.nextInt();\n\t\t\tint a = scanner.nextInt(), b = scanner.nextInt();\n\t\t\tSystem.out.println(((0 == (a % k)) || ((a / k) != (b / k))) ? \"OK\" : \"NG\");\n\t\t}\n\t}",
"main",
"{\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tint k = scanner.nextInt();\n\t\t\tint a = scanner.nextInt(), b = scanner.nextInt();\n\t\t\tSystem.out.println(((0 == (a % k)) || ((a / k) != (b / k))) ? \"OK\" : \"NG\");\n\t\t}\n\t}",
"try (Scanner scanner = new Scanner(System.in)) {\n\t\t\tint k = scanner.nextInt();\n\t\t\tint a = scanner.nextInt(), b = scanner.nextInt();\n\t\t\tSystem.out.println(((0 == (a % k)) || ((a / k) != (b / k))) ? \"OK\" : \"NG\");\n\t\t}",
"{\n\t\t\tint k = scanner.nextInt();\n\t\t\tint a = scanner.nextInt(), b = scanner.nextInt();\n\t\t\tSystem.out.println(((0 == (a % k)) || ((a / k) != (b / k))) ? \"OK\" : \"NG\");\n\t\t}",
"Scanner scanner = new Scanner(System.in)",
"Scanner scanner = new Scanner(System.in)",
"new Scanner(System.in)",
"int k = scanner.nextInt();",
"k",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int a = scanner.nextInt()",
"a",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"b = scanner.nextInt();",
"b",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"System.out.println(((0 == (a % k)) || ((a / k) != (b / k))) ? \"OK\" : \"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"((0 == (a % k)) || ((a / k) != (b / k))) ? \"OK\" : \"NG\"",
"((0 == (a % k)) || ((a / k) != (b / k)))",
"(0 == (a % k))",
"0",
"(a % k)",
"a",
"k",
"((a / k) != (b / k))",
"(a / k)",
"a",
"k",
"(b / k)",
"b",
"k",
"\"OK\"",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tint k = scanner.nextInt();\n\t\t\tint a = scanner.nextInt(), b = scanner.nextInt();\n\t\t\tSystem.out.println(((0 == (a % k)) || ((a / k) != (b / k))) ? \"OK\" : \"NG\");\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tint k = scanner.nextInt();\n\t\t\tint a = scanner.nextInt(), b = scanner.nextInt();\n\t\t\tSystem.out.println(((0 == (a % k)) || ((a / k) != (b / k))) ? \"OK\" : \"NG\");\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner scanner = new Scanner(System.in)) {
int k = scanner.nextInt();
int a = scanner.nextInt(), b = scanner.nextInt();
System.out.println(((0 == (a % k)) || ((a / k) != (b / k))) ? "OK" : "NG");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
2,
13,
17,
30,
14,
2,
2,
2,
13,
13,
13,
2,
2,
13,
13,
13,
30,
0,
13,
17,
3,
14,
2,
2,
2,
13,
13,
13,
17,
30,
0,
13,
17,
3,
40,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
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
],
[
26,
27
],
[
27,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
20,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
20,
39
],
[
39,
40
],
[
39,
41
],
[
20,
42
],
[
42,
43
],
[
42,
44
],
[
20,
45
],
[
45,
46
],
[
45,
47
],
[
20,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
54,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
53,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
52,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
71,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
52,
83
],
[
83,
84
],
[
20,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
85,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
18,
103
],
[
103,
104
]
] |
[
"import java.util.Scanner;\nimport java.util.Arrays;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.stream.Collectors;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K=sc.nextInt();\n int A=sc.nextInt();\n int B=sc.nextInt();\n int N=1;\n boolean judge=false;\n boolean judge1=true;\n while(judge1==true){\n if(K*N>=A&K*N<=B){\n judge=true;\n break;\n }\n if(K*N-B>0){\n judge=false;\n break;\n }\n N++;\n }\n if(judge==true){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n\n\n\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.stream.Collectors;",
"Collectors",
"java.util.stream",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K=sc.nextInt();\n int A=sc.nextInt();\n int B=sc.nextInt();\n int N=1;\n boolean judge=false;\n boolean judge1=true;\n while(judge1==true){\n if(K*N>=A&K*N<=B){\n judge=true;\n break;\n }\n if(K*N-B>0){\n judge=false;\n break;\n }\n N++;\n }\n if(judge==true){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n\n\n\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K=sc.nextInt();\n int A=sc.nextInt();\n int B=sc.nextInt();\n int N=1;\n boolean judge=false;\n boolean judge1=true;\n while(judge1==true){\n if(K*N>=A&K*N<=B){\n judge=true;\n break;\n }\n if(K*N-B>0){\n judge=false;\n break;\n }\n N++;\n }\n if(judge==true){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n\n\n\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int K=sc.nextInt();\n int A=sc.nextInt();\n int B=sc.nextInt();\n int N=1;\n boolean judge=false;\n boolean judge1=true;\n while(judge1==true){\n if(K*N>=A&K*N<=B){\n judge=true;\n break;\n }\n if(K*N-B>0){\n judge=false;\n break;\n }\n N++;\n }\n if(judge==true){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }\n\n\n\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K=sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A=sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B=sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int N=1;",
"N",
"1",
"boolean judge=false;",
"judge",
"false",
"boolean judge1=true;",
"judge1",
"true",
"while(judge1==true){\n if(K*N>=A&K*N<=B){\n judge=true;\n break;\n }\n if(K*N-B>0){\n judge=false;\n break;\n }\n N++;\n }",
"judge1==true",
"judge1",
"true",
"{\n if(K*N>=A&K*N<=B){\n judge=true;\n break;\n }\n if(K*N-B>0){\n judge=false;\n break;\n }\n N++;\n }",
"if(K*N>=A&K*N<=B){\n judge=true;\n break;\n }",
"K*N>=A&K*N<=B",
"K*N>=A",
"K*N",
"K",
"N",
"A",
"K*N<=B",
"K*N",
"K",
"N",
"B",
"{\n judge=true;\n break;\n }",
"judge=true",
"judge",
"true",
"break;",
"if(K*N-B>0){\n judge=false;\n break;\n }",
"K*N-B>0",
"K*N-B",
"K*N",
"K",
"N",
"B",
"0",
"{\n judge=false;\n break;\n }",
"judge=false",
"judge",
"false",
"break;",
"N++",
"N",
"if(judge==true){\n System.out.println(\"OK\");\n }else{\n System.out.println(\"NG\");\n }",
"judge==true",
"judge",
"true",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args"
] |
import java.util.Scanner;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K=sc.nextInt();
int A=sc.nextInt();
int B=sc.nextInt();
int N=1;
boolean judge=false;
boolean judge1=true;
while(judge1==true){
if(K*N>=A&K*N<=B){
judge=true;
break;
}
if(K*N-B>0){
judge=false;
break;
}
N++;
}
if(judge==true){
System.out.println("OK");
}else{
System.out.println("NG");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
87,
5
],
[
87,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
37,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
48,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
61,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
8,
81
],
[
81,
82
],
[
82,
83
],
[
6,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
] |
[
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\n int KA = A/K; int KB = B/K;\n\n if(KA<KB){\n System.out.println(\"OK\");\n } else if(A%K==0){\n System.out.println(\"OK\");\n } else if(B%K==0){\n System.out.println(\"OK\");\n } else{\n System.out.println(\"NG\");\n }\n\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\n int KA = A/K; int KB = B/K;\n\n if(KA<KB){\n System.out.println(\"OK\");\n } else if(A%K==0){\n System.out.println(\"OK\");\n } else if(B%K==0){\n System.out.println(\"OK\");\n } else{\n System.out.println(\"NG\");\n }\n\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\n int KA = A/K; int KB = B/K;\n\n if(KA<KB){\n System.out.println(\"OK\");\n } else if(A%K==0){\n System.out.println(\"OK\");\n } else if(B%K==0){\n System.out.println(\"OK\");\n } else{\n System.out.println(\"NG\");\n }\n\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\n int KA = A/K; int KB = B/K;\n\n if(KA<KB){\n System.out.println(\"OK\");\n } else if(A%K==0){\n System.out.println(\"OK\");\n } else if(B%K==0){\n System.out.println(\"OK\");\n } else{\n System.out.println(\"NG\");\n }\n\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int KA = A/K;",
"KA",
"A/K",
"A",
"K",
"int KB = B/K;",
"KB",
"B/K",
"B",
"K",
"if(KA<KB){\n System.out.println(\"OK\");\n } else if(A%K==0){\n System.out.println(\"OK\");\n } else if(B%K==0){\n System.out.println(\"OK\");\n } else{\n System.out.println(\"NG\");\n }",
"KA<KB",
"KA",
"KB",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"if(A%K==0){\n System.out.println(\"OK\");\n } else if(B%K==0){\n System.out.println(\"OK\");\n } else{\n System.out.println(\"NG\");\n }",
"A%K==0",
"A%K",
"A",
"K",
"0",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"if(B%K==0){\n System.out.println(\"OK\");\n } else{\n System.out.println(\"NG\");\n }",
"B%K==0",
"B%K",
"B",
"K",
"0",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\n int KA = A/K; int KB = B/K;\n\n if(KA<KB){\n System.out.println(\"OK\");\n } else if(A%K==0){\n System.out.println(\"OK\");\n } else if(B%K==0){\n System.out.println(\"OK\");\n } else{\n System.out.println(\"NG\");\n }\n\n sc.close();\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n\n int KA = A/K; int KB = B/K;\n\n if(KA<KB){\n System.out.println(\"OK\");\n } else if(A%K==0){\n System.out.println(\"OK\");\n } else if(B%K==0){\n System.out.println(\"OK\");\n } else{\n System.out.println(\"NG\");\n }\n\n sc.close();\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
int KA = A/K; int KB = B/K;
if(KA<KB){
System.out.println("OK");
} else if(A%K==0){
System.out.println("OK");
} else if(B%K==0){
System.out.println("OK");
} else{
System.out.println("NG");
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
17,
30,
0,
13,
2,
13,
13,
40,
13,
14,
2,
13,
13,
30,
0,
13,
17,
3,
14,
2,
2,
13,
13,
2,
13,
13,
30,
3,
14,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
84,
5
],
[
84,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
38,
44
],
[
44,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
46,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
8,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
65,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
6,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n \n int i = 0;\n int j = 0;\n boolean flg = true;\n \n while (true) {\n j = K * i;\n i++;\n if ( B < j ) {\n flg = false;\n break;\n } else if ( A <= j && j <= B ) {\n break;\n }\n }\n \n if (flg) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n \n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n \n int i = 0;\n int j = 0;\n boolean flg = true;\n \n while (true) {\n j = K * i;\n i++;\n if ( B < j ) {\n flg = false;\n break;\n } else if ( A <= j && j <= B ) {\n break;\n }\n }\n \n if (flg) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n \n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n \n int i = 0;\n int j = 0;\n boolean flg = true;\n \n while (true) {\n j = K * i;\n i++;\n if ( B < j ) {\n flg = false;\n break;\n } else if ( A <= j && j <= B ) {\n break;\n }\n }\n \n if (flg) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n \n }",
"main",
"{\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n \n int i = 0;\n int j = 0;\n boolean flg = true;\n \n while (true) {\n j = K * i;\n i++;\n if ( B < j ) {\n flg = false;\n break;\n } else if ( A <= j && j <= B ) {\n break;\n }\n }\n \n if (flg) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int i = 0;",
"i",
"0",
"int j = 0;",
"j",
"0",
"boolean flg = true;",
"flg",
"true",
"while (true) {\n j = K * i;\n i++;\n if ( B < j ) {\n flg = false;\n break;\n } else if ( A <= j && j <= B ) {\n break;\n }\n }",
"true",
"{\n j = K * i;\n i++;\n if ( B < j ) {\n flg = false;\n break;\n } else if ( A <= j && j <= B ) {\n break;\n }\n }",
"j = K * i",
"j",
"K * i",
"K",
"i",
"i++",
"i",
"if ( B < j ) {\n flg = false;\n break;\n } else if ( A <= j && j <= B ) {\n break;\n }",
"B < j",
"B",
"j",
"{\n flg = false;\n break;\n }",
"flg = false",
"flg",
"false",
"break;",
"if ( A <= j && j <= B ) {\n break;\n }",
"A <= j && j <= B",
"A <= j",
"A",
"j",
"j <= B",
"j",
"B",
"{\n break;\n }",
"break;",
"if (flg) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }",
"flg",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n \n int i = 0;\n int j = 0;\n boolean flg = true;\n \n while (true) {\n j = K * i;\n i++;\n if ( B < j ) {\n flg = false;\n break;\n } else if ( A <= j && j <= B ) {\n break;\n }\n }\n \n if (flg) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n \n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n int A = sc.nextInt();\n int B = sc.nextInt();\n \n int i = 0;\n int j = 0;\n boolean flg = true;\n \n while (true) {\n j = K * i;\n i++;\n if ( B < j ) {\n flg = false;\n break;\n } else if ( A <= j && j <= B ) {\n break;\n }\n }\n \n if (flg) {\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n \n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
int i = 0;
int j = 0;
boolean flg = true;
while (true) {
j = K * i;
i++;
if ( B < j ) {
flg = false;
break;
} else if ( A <= j && j <= B ) {
break;
}
}
if (flg) {
System.out.println("OK");
} else {
System.out.println("NG");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
2,
2,
2,
13,
13,
2,
13,
13,
17,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
6,
13,
41,
13,
17,
41,
13,
17,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
14,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
14,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
29,
4,
18,
13,
29,
4,
18,
13,
17,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
242,
17
],
[
242,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
20,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
20,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
42,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
41,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
40,
62
],
[
62,
63
],
[
62,
64
],
[
39,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
39,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
18,
79
],
[
79,
80
],
[
242,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
86,
87
],
[
86,
88
],
[
81,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
95,
97
],
[
89,
98
],
[
98,
99
],
[
81,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
103,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
113,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
102,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
81,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
130,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
140,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
129,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
152,
155
],
[
81,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
160,
163
],
[
163,
164
],
[
81,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
169,
172
],
[
172,
173
],
[
81,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
178,
181
],
[
181,
182
],
[
81,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
185,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
190,
195
],
[
195,
196
],
[
195,
197
],
[
190,
198
],
[
198,
199
],
[
199,
200
],
[
190,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
202,
206
],
[
206,
207
],
[
185,
208
],
[
208,
209
],
[
183,
210
],
[
210,
211
],
[
81,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
214,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
219,
224
],
[
224,
225
],
[
224,
226
],
[
219,
227
],
[
227,
228
],
[
228,
229
],
[
219,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
231,
235
],
[
235,
236
],
[
214,
237
],
[
237,
238
],
[
212,
239
],
[
239,
240
],
[
0,
241
],
[
241,
242
],
[
241,
243
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner(System.in);\n\t\tint k = sc.nextInt(), a = sc.nextInt(), b= sc.nextInt();\n\t\tif((b/k - a/k >= 1 || a%k == 0 || b%k == 0 )&&(b >= k)) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}\n\n\tstatic class FastScanner {\n\t\tprivate BufferedReader reader = null;\n\t private StringTokenizer tokenizer = null;\n\t public FastScanner(InputStream in) {\n\t reader = new BufferedReader(new InputStreamReader(in));\n\t tokenizer = null;\n\t }\n\n\t public String next() {\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t tokenizer = new StringTokenizer(reader.readLine());\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\t return tokenizer.nextToken();\n\t }\n\n\t public String nextLine() {\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t return reader.readLine();\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\n\t return tokenizer.nextToken(\"\\n\");\n\t }\n\n\t public long nextLong() {\n\t return Long.parseLong(next());\n\t }\n\n\t public int nextInt() {\n\t return Integer.parseInt(next());\n\t }\n\n\t public double nextDouble() {\n\t return Double.parseDouble(next());\n\t }\n\n\t public int[] nextIntArray(int n) {\n\t int[] a = new int[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextInt();\n\t return a;\n\t }\n\n\t public long[] nextLongArray(int n) {\n\t long[] a = new long[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextLong();\n\t return a;\n\t }\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner(System.in);\n\t\tint k = sc.nextInt(), a = sc.nextInt(), b= sc.nextInt();\n\t\tif((b/k - a/k >= 1 || a%k == 0 || b%k == 0 )&&(b >= k)) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}\n\n\tstatic class FastScanner {\n\t\tprivate BufferedReader reader = null;\n\t private StringTokenizer tokenizer = null;\n\t public FastScanner(InputStream in) {\n\t reader = new BufferedReader(new InputStreamReader(in));\n\t tokenizer = null;\n\t }\n\n\t public String next() {\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t tokenizer = new StringTokenizer(reader.readLine());\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\t return tokenizer.nextToken();\n\t }\n\n\t public String nextLine() {\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t return reader.readLine();\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\n\t return tokenizer.nextToken(\"\\n\");\n\t }\n\n\t public long nextLong() {\n\t return Long.parseLong(next());\n\t }\n\n\t public int nextInt() {\n\t return Integer.parseInt(next());\n\t }\n\n\t public double nextDouble() {\n\t return Double.parseDouble(next());\n\t }\n\n\t public int[] nextIntArray(int n) {\n\t int[] a = new int[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextInt();\n\t return a;\n\t }\n\n\t public long[] nextLongArray(int n) {\n\t long[] a = new long[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextLong();\n\t return a;\n\t }\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner(System.in);\n\t\tint k = sc.nextInt(), a = sc.nextInt(), b= sc.nextInt();\n\t\tif((b/k - a/k >= 1 || a%k == 0 || b%k == 0 )&&(b >= k)) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}",
"main",
"{\n\t\tFastScanner sc = new FastScanner(System.in);\n\t\tint k = sc.nextInt(), a = sc.nextInt(), b= sc.nextInt();\n\t\tif((b/k - a/k >= 1 || a%k == 0 || b%k == 0 )&&(b >= k)) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}",
"FastScanner sc = new FastScanner(System.in);",
"sc",
"new FastScanner(System.in)",
"int k = sc.nextInt()",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a = sc.nextInt()",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"b= sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if((b/k - a/k >= 1 || a%k == 0 || b%k == 0 )&&(b >= k)) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"(b/k - a/k >= 1 || a%k == 0 || b%k == 0 )&&(b >= k)",
"(b/k - a/k >= 1 || a%k == 0 || b%k == 0 )",
"b/k - a/k >= 1 || a%k == 0 || b%k == 0",
"b/k - a/k >= 1",
"b/k - a/k",
"b/k",
"b",
"k",
"a/k",
"a",
"k",
"1",
"a%k == 0",
"a%k",
"a",
"k",
"0",
"b%k == 0",
"b%k",
"b",
"k",
"0",
"(b >= k)",
"b",
"k",
"{\n\t\t\tSystem.out.println(\"OK\");\n\t\t}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n\t\t\tSystem.out.println(\"NG\");\n\t\t}",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"static class FastScanner {\n\t\tprivate BufferedReader reader = null;\n\t private StringTokenizer tokenizer = null;\n\t public FastScanner(InputStream in) {\n\t reader = new BufferedReader(new InputStreamReader(in));\n\t tokenizer = null;\n\t }\n\n\t public String next() {\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t tokenizer = new StringTokenizer(reader.readLine());\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\t return tokenizer.nextToken();\n\t }\n\n\t public String nextLine() {\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t return reader.readLine();\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\n\t return tokenizer.nextToken(\"\\n\");\n\t }\n\n\t public long nextLong() {\n\t return Long.parseLong(next());\n\t }\n\n\t public int nextInt() {\n\t return Integer.parseInt(next());\n\t }\n\n\t public double nextDouble() {\n\t return Double.parseDouble(next());\n\t }\n\n\t public int[] nextIntArray(int n) {\n\t int[] a = new int[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextInt();\n\t return a;\n\t }\n\n\t public long[] nextLongArray(int n) {\n\t long[] a = new long[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextLong();\n\t return a;\n\t }\n\t}",
"FastScanner",
"private BufferedReader reader = null;",
"reader",
"null",
"private StringTokenizer tokenizer = null;",
"tokenizer",
"null",
"public FastScanner(InputStream in) {\n\t reader = new BufferedReader(new InputStreamReader(in));\n\t tokenizer = null;\n\t }",
"FastScanner",
"{\n\t reader = new BufferedReader(new InputStreamReader(in));\n\t tokenizer = null;\n\t }",
"reader = new BufferedReader(new InputStreamReader(in))",
"reader",
"new BufferedReader(new InputStreamReader(in))",
"tokenizer = null",
"tokenizer",
"null",
"InputStream in",
"in",
"public String next() {\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t tokenizer = new StringTokenizer(reader.readLine());\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\t return tokenizer.nextToken();\n\t }",
"next",
"{\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t tokenizer = new StringTokenizer(reader.readLine());\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\t return tokenizer.nextToken();\n\t }",
"if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t tokenizer = new StringTokenizer(reader.readLine());\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n\t try {\n\t tokenizer = new StringTokenizer(reader.readLine());\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }",
"try {\n\t tokenizer = new StringTokenizer(reader.readLine());\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }",
"catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }",
"IOException e",
"{\n\t throw new RuntimeException(e);\n\t }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n\t tokenizer = new StringTokenizer(reader.readLine());\n\t }",
"tokenizer = new StringTokenizer(reader.readLine())",
"tokenizer",
"new StringTokenizer(reader.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"public String nextLine() {\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t return reader.readLine();\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\n\t return tokenizer.nextToken(\"\\n\");\n\t }",
"nextLine",
"{\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t return reader.readLine();\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\n\t return tokenizer.nextToken(\"\\n\");\n\t }",
"if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t return reader.readLine();\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n\t try {\n\t return reader.readLine();\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }",
"try {\n\t return reader.readLine();\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }",
"catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }",
"IOException e",
"{\n\t throw new RuntimeException(e);\n\t }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n\t return reader.readLine();\n\t }",
"return reader.readLine();",
"reader.readLine()",
"reader.readLine",
"reader",
"return tokenizer.nextToken(\"\\n\");",
"tokenizer.nextToken(\"\\n\")",
"tokenizer.nextToken",
"tokenizer",
"\"\\n\"",
"public long nextLong() {\n\t return Long.parseLong(next());\n\t }",
"nextLong",
"{\n\t return Long.parseLong(next());\n\t }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public int nextInt() {\n\t return Integer.parseInt(next());\n\t }",
"nextInt",
"{\n\t return Integer.parseInt(next());\n\t }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public double nextDouble() {\n\t return Double.parseDouble(next());\n\t }",
"nextDouble",
"{\n\t return Double.parseDouble(next());\n\t }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public int[] nextIntArray(int n) {\n\t int[] a = new int[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextInt();\n\t return a;\n\t }",
"nextIntArray",
"{\n\t int[] a = new int[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextInt();\n\t return a;\n\t }",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n\t a[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nextInt();",
"a[i] = nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"public long[] nextLongArray(int n) {\n\t long[] a = new long[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextLong();\n\t return a;\n\t }",
"nextLongArray",
"{\n\t long[] a = new long[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextLong();\n\t return a;\n\t }",
"long[] a = new long[n];",
"a",
"new long[n]",
"n",
"for (int i = 0; i < n; i++)\n\t a[i] = nextLong();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nextLong();",
"a[i] = nextLong()",
"a[i]",
"a",
"i",
"nextLong()",
"nextLong",
"return a;",
"a",
"int n",
"n",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner(System.in);\n\t\tint k = sc.nextInt(), a = sc.nextInt(), b= sc.nextInt();\n\t\tif((b/k - a/k >= 1 || a%k == 0 || b%k == 0 )&&(b >= k)) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}\n\n\tstatic class FastScanner {\n\t\tprivate BufferedReader reader = null;\n\t private StringTokenizer tokenizer = null;\n\t public FastScanner(InputStream in) {\n\t reader = new BufferedReader(new InputStreamReader(in));\n\t tokenizer = null;\n\t }\n\n\t public String next() {\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t tokenizer = new StringTokenizer(reader.readLine());\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\t return tokenizer.nextToken();\n\t }\n\n\t public String nextLine() {\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t return reader.readLine();\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\n\t return tokenizer.nextToken(\"\\n\");\n\t }\n\n\t public long nextLong() {\n\t return Long.parseLong(next());\n\t }\n\n\t public int nextInt() {\n\t return Integer.parseInt(next());\n\t }\n\n\t public double nextDouble() {\n\t return Double.parseDouble(next());\n\t }\n\n\t public int[] nextIntArray(int n) {\n\t int[] a = new int[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextInt();\n\t return a;\n\t }\n\n\t public long[] nextLongArray(int n) {\n\t long[] a = new long[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextLong();\n\t return a;\n\t }\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner(System.in);\n\t\tint k = sc.nextInt(), a = sc.nextInt(), b= sc.nextInt();\n\t\tif((b/k - a/k >= 1 || a%k == 0 || b%k == 0 )&&(b >= k)) {\n\t\t\tSystem.out.println(\"OK\");\n\t\t}else {\n\t\t\tSystem.out.println(\"NG\");\n\t\t}\n\t}\n\n\tstatic class FastScanner {\n\t\tprivate BufferedReader reader = null;\n\t private StringTokenizer tokenizer = null;\n\t public FastScanner(InputStream in) {\n\t reader = new BufferedReader(new InputStreamReader(in));\n\t tokenizer = null;\n\t }\n\n\t public String next() {\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t tokenizer = new StringTokenizer(reader.readLine());\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\t return tokenizer.nextToken();\n\t }\n\n\t public String nextLine() {\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t return reader.readLine();\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\n\t return tokenizer.nextToken(\"\\n\");\n\t }\n\n\t public long nextLong() {\n\t return Long.parseLong(next());\n\t }\n\n\t public int nextInt() {\n\t return Integer.parseInt(next());\n\t }\n\n\t public double nextDouble() {\n\t return Double.parseDouble(next());\n\t }\n\n\t public int[] nextIntArray(int n) {\n\t int[] a = new int[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextInt();\n\t return a;\n\t }\n\n\t public long[] nextLongArray(int n) {\n\t long[] a = new long[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextLong();\n\t return a;\n\t }\n\t}\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) {
FastScanner sc = new FastScanner(System.in);
int k = sc.nextInt(), a = sc.nextInt(), b= sc.nextInt();
if((b/k - a/k >= 1 || a%k == 0 || b%k == 0 )&&(b >= k)) {
System.out.println("OK");
}else {
System.out.println("NG");
}
}
static class FastScanner {
private BufferedReader reader = null;
private StringTokenizer tokenizer = null;
public FastScanner(InputStream in) {
reader = new BufferedReader(new InputStreamReader(in));
tokenizer = null;
}
public String next() {
if (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
public String nextLine() {
if (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
return reader.readLine();
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken("\n");
}
public long nextLong() {
return Long.parseLong(next());
}
public int nextInt() {
return Integer.parseInt(next());
}
public double nextDouble() {
return Double.parseDouble(next());
}
public int[] nextIntArray(int n) {
int[] a = new int[n];
for (int i = 0; i < n; i++)
a[i] = nextInt();
return a;
}
public long[] nextLongArray(int n) {
long[] a = new long[n];
for (int i = 0; i < n; i++)
a[i] = nextLong();
return a;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
14,
4,
13,
13,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
14,
2,
2,
13,
13,
13,
29,
17,
30,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
29,
17,
29,
17,
23,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
99,
5
],
[
99,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
34,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
37,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
36,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
6,
54
],
[
54,
55
],
[
99,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
59,
65
],
[
65,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
67,
90
],
[
90,
91
],
[
56,
92
],
[
92,
93
],
[
56,
94
],
[
94,
95
],
[
56,
96
],
[
96,
97
],
[
0,
98
],
[
98,
99
],
[
98,
100
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main (String[] args) {\n Scanner s = new Scanner(System.in);\n int number = Integer.parseInt(s.next());\n int min = Integer.parseInt(s.next());\n int max = Integer.parseInt(s.next());\n \n if (flag(max, min, number)) System.out.println(\"OK\");\n else System.out.println(\"NG\");\n \t\n }\n\n public static boolean flag (int max, int min, int number) {\n if ((max - min) > number) return true;\n else {\n for (int i = min; i <= max; i++) {\n if (i%number == 0) {\n return true;\n }\n }\n return false;\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main (String[] args) {\n Scanner s = new Scanner(System.in);\n int number = Integer.parseInt(s.next());\n int min = Integer.parseInt(s.next());\n int max = Integer.parseInt(s.next());\n \n if (flag(max, min, number)) System.out.println(\"OK\");\n else System.out.println(\"NG\");\n \t\n }\n\n public static boolean flag (int max, int min, int number) {\n if ((max - min) > number) return true;\n else {\n for (int i = min; i <= max; i++) {\n if (i%number == 0) {\n return true;\n }\n }\n return false;\n }\n }\n}",
"Main",
"public static void main (String[] args) {\n Scanner s = new Scanner(System.in);\n int number = Integer.parseInt(s.next());\n int min = Integer.parseInt(s.next());\n int max = Integer.parseInt(s.next());\n \n if (flag(max, min, number)) System.out.println(\"OK\");\n else System.out.println(\"NG\");\n \t\n }",
"main",
"{\n Scanner s = new Scanner(System.in);\n int number = Integer.parseInt(s.next());\n int min = Integer.parseInt(s.next());\n int max = Integer.parseInt(s.next());\n \n if (flag(max, min, number)) System.out.println(\"OK\");\n else System.out.println(\"NG\");\n \t\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int number = Integer.parseInt(s.next());",
"number",
"Integer.parseInt(s.next())",
"Integer.parseInt",
"Integer",
"s.next()",
"s.next",
"s",
"int min = Integer.parseInt(s.next());",
"min",
"Integer.parseInt(s.next())",
"Integer.parseInt",
"Integer",
"s.next()",
"s.next",
"s",
"int max = Integer.parseInt(s.next());",
"max",
"Integer.parseInt(s.next())",
"Integer.parseInt",
"Integer",
"s.next()",
"s.next",
"s",
"if (flag(max, min, number)) System.out.println(\"OK\");\n else System.out.println(\"NG\");",
"flag(max, min, number)",
"flag",
"max",
"min",
"number",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public static boolean flag (int max, int min, int number) {\n if ((max - min) > number) return true;\n else {\n for (int i = min; i <= max; i++) {\n if (i%number == 0) {\n return true;\n }\n }\n return false;\n }\n }",
"flag",
"{\n if ((max - min) > number) return true;\n else {\n for (int i = min; i <= max; i++) {\n if (i%number == 0) {\n return true;\n }\n }\n return false;\n }\n }",
"if ((max - min) > number) return true;\n else {\n for (int i = min; i <= max; i++) {\n if (i%number == 0) {\n return true;\n }\n }\n return false;\n }",
"(max - min) > number",
"(max - min)",
"max",
"min",
"number",
"return true;",
"true",
"{\n for (int i = min; i <= max; i++) {\n if (i%number == 0) {\n return true;\n }\n }\n return false;\n }",
"for (int i = min; i <= max; i++) {\n if (i%number == 0) {\n return true;\n }\n }",
"int i = min;",
"int i = min;",
"i",
"min",
"i <= max",
"i",
"max",
"i++",
"i++",
"i",
"{\n if (i%number == 0) {\n return true;\n }\n }",
"{\n if (i%number == 0) {\n return true;\n }\n }",
"if (i%number == 0) {\n return true;\n }",
"i%number == 0",
"i%number",
"i",
"number",
"0",
"{\n return true;\n }",
"return true;",
"true",
"return false;",
"false",
"int max",
"max",
"int min",
"min",
"int number",
"number",
"public class Main {\n public static void main (String[] args) {\n Scanner s = new Scanner(System.in);\n int number = Integer.parseInt(s.next());\n int min = Integer.parseInt(s.next());\n int max = Integer.parseInt(s.next());\n \n if (flag(max, min, number)) System.out.println(\"OK\");\n else System.out.println(\"NG\");\n \t\n }\n\n public static boolean flag (int max, int min, int number) {\n if ((max - min) > number) return true;\n else {\n for (int i = min; i <= max; i++) {\n if (i%number == 0) {\n return true;\n }\n }\n return false;\n }\n }\n}",
"public class Main {\n public static void main (String[] args) {\n Scanner s = new Scanner(System.in);\n int number = Integer.parseInt(s.next());\n int min = Integer.parseInt(s.next());\n int max = Integer.parseInt(s.next());\n \n if (flag(max, min, number)) System.out.println(\"OK\");\n else System.out.println(\"NG\");\n \t\n }\n\n public static boolean flag (int max, int min, int number) {\n if ((max - min) > number) return true;\n else {\n for (int i = min; i <= max; i++) {\n if (i%number == 0) {\n return true;\n }\n }\n return false;\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main (String[] args) {
Scanner s = new Scanner(System.in);
int number = Integer.parseInt(s.next());
int min = Integer.parseInt(s.next());
int max = Integer.parseInt(s.next());
if (flag(max, min, number)) System.out.println("OK");
else System.out.println("NG");
}
public static boolean flag (int max, int min, int number) {
if ((max - min) > number) return true;
else {
for (int i = min; i <= max; i++) {
if (i%number == 0) {
return true;
}
}
return false;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
2,
13,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
13,
13,
17,
30,
0,
13,
17,
30,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
30,
42
],
[
42,
43
],
[
43,
44
],
[
30,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
48,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
47,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
8,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
6,
82
],
[
82,
83
]
] |
[
"import java.util.Scanner;\nclass Main{\npublic static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n \n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n int count = 0;\n \n for (int i = 0; i < B-A+1; i++){\n \tif ((A + i) % K == 0){\n count += 1;\n }\n else{\n }\n }\n if (count > 0){\n System.out.println(\"OK\");\n }\n if (count == 0){\n System.out.println(\"NG\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\npublic static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n \n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n int count = 0;\n \n for (int i = 0; i < B-A+1; i++){\n \tif ((A + i) % K == 0){\n count += 1;\n }\n else{\n }\n }\n if (count > 0){\n System.out.println(\"OK\");\n }\n if (count == 0){\n System.out.println(\"NG\");\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n \n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n int count = 0;\n \n for (int i = 0; i < B-A+1; i++){\n \tif ((A + i) % K == 0){\n count += 1;\n }\n else{\n }\n }\n if (count > 0){\n System.out.println(\"OK\");\n }\n if (count == 0){\n System.out.println(\"NG\");\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n \n int K = scan.nextInt();\n int A = scan.nextInt();\n int B = scan.nextInt();\n int count = 0;\n \n for (int i = 0; i < B-A+1; i++){\n \tif ((A + i) % K == 0){\n count += 1;\n }\n else{\n }\n }\n if (count > 0){\n System.out.println(\"OK\");\n }\n if (count == 0){\n System.out.println(\"NG\");\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int K = scan.nextInt();",
"K",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int A = scan.nextInt();",
"A",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int B = scan.nextInt();",
"B",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int count = 0;",
"count",
"0",
"for (int i = 0; i < B-A+1; i++){\n \tif ((A + i) % K == 0){\n count += 1;\n }\n else{\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < B-A+1",
"i",
"B-A+1",
"B-A",
"B",
"A",
"1",
"i++",
"i++",
"i",
"{\n \tif ((A + i) % K == 0){\n count += 1;\n }\n else{\n }\n }",
"{\n \tif ((A + i) % K == 0){\n count += 1;\n }\n else{\n }\n }",
"if ((A + i) % K == 0){\n count += 1;\n }\n else{\n }",
"(A + i) % K == 0",
"(A + i) % K",
"(A + i)",
"A",
"i",
"K",
"0",
"{\n count += 1;\n }",
"count += 1",
"count",
"1",
"{\n }",
"if (count > 0){\n System.out.println(\"OK\");\n }",
"count > 0",
"count",
"0",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"if (count == 0){\n System.out.println(\"NG\");\n }",
"count == 0",
"count",
"0",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args"
] |
import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int K = scan.nextInt();
int A = scan.nextInt();
int B = scan.nextInt();
int count = 0;
for (int i = 0; i < B-A+1; i++){
if ((A + i) % K == 0){
count += 1;
}
else{
}
}
if (count > 0){
System.out.println("OK");
}
if (count == 0){
System.out.println("NG");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
65,
5
],
[
65,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
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
],
[
47,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
8,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
6,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
]
] |
[
"import java.util.*;\n\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n// String s = sc.nextLine();\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n sc.close();\n// String s = sc.nextLine();\n// String t = sc.next();\n// String[] arr = s.split(\" \");\n// sc.close();\n// System.out.println(\"input: \"+ s);\n// System.out.println(\"k:\" + k);\n// System.out.println(\"a:\" + a);\n// System.out.println(\"b:\" + b);\n String ans = \"NG\";\n for(int x = a; x<=b; x++){\n if(x%k == 0){\n ans = \"OK\";\n }\n }\n System.out.println(ans);\n// \\\n// System.out.println(\"arr[1]:\" + arr[1]);\n//\n// if(s.equals(\"ABC\")){\n// System.out.println(\"ARC\");\n// }else{\n// System.out.println(\"ABC\");\n// }\n// String[] arr1 = s.split(\"\");\n// String[] arr2 = t.split(\"\");\n//// List<String> list1 = Arrays.asList(s.split(\"\"));\n// List list1 = new LinkedList(Arrays.asList(s.split(\"\")));\n//// List<String> list2 = Arrays.asList(t.split(\"\"));\n// List list2 = new LinkedList(Arrays.asList(t.split(\"\")));\n//// int num = Integer.parseInt(arr[arr.length - 1]);\n// list2.remove(arr2.length - 1);\n//// System.out.println(list1);\n//// System.out.println(list2);\n// if(list1.toString().contentEquals(list2.toString())){\n// System.out.println(\"Yes\");\n// }else{\n// System.out.println(\"No\");\n// }\n// switch(num){\n// case 3:\n// System.out.println(\"bon\");\n// break;\n// case 0:\n// case 1:\n// case 6:\n// case 8:\n// System.out.println(\"pon\");\n// break;\n// default:\n// System.out.println(\"hon\");\n// break;\n// }\n// String[] array = str.split(\" \");\n// int sum = 0;\n// for(int i=0; i<array.length; i++) {\n// int num = Integer.parseInt(array[i]);\n// sum += num;\n// }\n// System.out.println(15-sum);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n// String s = sc.nextLine();\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n sc.close();\n// String s = sc.nextLine();\n// String t = sc.next();\n// String[] arr = s.split(\" \");\n// sc.close();\n// System.out.println(\"input: \"+ s);\n// System.out.println(\"k:\" + k);\n// System.out.println(\"a:\" + a);\n// System.out.println(\"b:\" + b);\n String ans = \"NG\";\n for(int x = a; x<=b; x++){\n if(x%k == 0){\n ans = \"OK\";\n }\n }\n System.out.println(ans);\n// \\\n// System.out.println(\"arr[1]:\" + arr[1]);\n//\n// if(s.equals(\"ABC\")){\n// System.out.println(\"ARC\");\n// }else{\n// System.out.println(\"ABC\");\n// }\n// String[] arr1 = s.split(\"\");\n// String[] arr2 = t.split(\"\");\n//// List<String> list1 = Arrays.asList(s.split(\"\"));\n// List list1 = new LinkedList(Arrays.asList(s.split(\"\")));\n//// List<String> list2 = Arrays.asList(t.split(\"\"));\n// List list2 = new LinkedList(Arrays.asList(t.split(\"\")));\n//// int num = Integer.parseInt(arr[arr.length - 1]);\n// list2.remove(arr2.length - 1);\n//// System.out.println(list1);\n//// System.out.println(list2);\n// if(list1.toString().contentEquals(list2.toString())){\n// System.out.println(\"Yes\");\n// }else{\n// System.out.println(\"No\");\n// }\n// switch(num){\n// case 3:\n// System.out.println(\"bon\");\n// break;\n// case 0:\n// case 1:\n// case 6:\n// case 8:\n// System.out.println(\"pon\");\n// break;\n// default:\n// System.out.println(\"hon\");\n// break;\n// }\n// String[] array = str.split(\" \");\n// int sum = 0;\n// for(int i=0; i<array.length; i++) {\n// int num = Integer.parseInt(array[i]);\n// sum += num;\n// }\n// System.out.println(15-sum);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n// String s = sc.nextLine();\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n sc.close();\n// String s = sc.nextLine();\n// String t = sc.next();\n// String[] arr = s.split(\" \");\n// sc.close();\n// System.out.println(\"input: \"+ s);\n// System.out.println(\"k:\" + k);\n// System.out.println(\"a:\" + a);\n// System.out.println(\"b:\" + b);\n String ans = \"NG\";\n for(int x = a; x<=b; x++){\n if(x%k == 0){\n ans = \"OK\";\n }\n }\n System.out.println(ans);\n// \\\n// System.out.println(\"arr[1]:\" + arr[1]);\n//\n// if(s.equals(\"ABC\")){\n// System.out.println(\"ARC\");\n// }else{\n// System.out.println(\"ABC\");\n// }\n// String[] arr1 = s.split(\"\");\n// String[] arr2 = t.split(\"\");\n//// List<String> list1 = Arrays.asList(s.split(\"\"));\n// List list1 = new LinkedList(Arrays.asList(s.split(\"\")));\n//// List<String> list2 = Arrays.asList(t.split(\"\"));\n// List list2 = new LinkedList(Arrays.asList(t.split(\"\")));\n//// int num = Integer.parseInt(arr[arr.length - 1]);\n// list2.remove(arr2.length - 1);\n//// System.out.println(list1);\n//// System.out.println(list2);\n// if(list1.toString().contentEquals(list2.toString())){\n// System.out.println(\"Yes\");\n// }else{\n// System.out.println(\"No\");\n// }\n// switch(num){\n// case 3:\n// System.out.println(\"bon\");\n// break;\n// case 0:\n// case 1:\n// case 6:\n// case 8:\n// System.out.println(\"pon\");\n// break;\n// default:\n// System.out.println(\"hon\");\n// break;\n// }\n// String[] array = str.split(\" \");\n// int sum = 0;\n// for(int i=0; i<array.length; i++) {\n// int num = Integer.parseInt(array[i]);\n// sum += num;\n// }\n// System.out.println(15-sum);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n// String s = sc.nextLine();\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n sc.close();\n// String s = sc.nextLine();\n// String t = sc.next();\n// String[] arr = s.split(\" \");\n// sc.close();\n// System.out.println(\"input: \"+ s);\n// System.out.println(\"k:\" + k);\n// System.out.println(\"a:\" + a);\n// System.out.println(\"b:\" + b);\n String ans = \"NG\";\n for(int x = a; x<=b; x++){\n if(x%k == 0){\n ans = \"OK\";\n }\n }\n System.out.println(ans);\n// \\\n// System.out.println(\"arr[1]:\" + arr[1]);\n//\n// if(s.equals(\"ABC\")){\n// System.out.println(\"ARC\");\n// }else{\n// System.out.println(\"ABC\");\n// }\n// String[] arr1 = s.split(\"\");\n// String[] arr2 = t.split(\"\");\n//// List<String> list1 = Arrays.asList(s.split(\"\"));\n// List list1 = new LinkedList(Arrays.asList(s.split(\"\")));\n//// List<String> list2 = Arrays.asList(t.split(\"\"));\n// List list2 = new LinkedList(Arrays.asList(t.split(\"\")));\n//// int num = Integer.parseInt(arr[arr.length - 1]);\n// list2.remove(arr2.length - 1);\n//// System.out.println(list1);\n//// System.out.println(list2);\n// if(list1.toString().contentEquals(list2.toString())){\n// System.out.println(\"Yes\");\n// }else{\n// System.out.println(\"No\");\n// }\n// switch(num){\n// case 3:\n// System.out.println(\"bon\");\n// break;\n// case 0:\n// case 1:\n// case 6:\n// case 8:\n// System.out.println(\"pon\");\n// break;\n// default:\n// System.out.println(\"hon\");\n// break;\n// }\n// String[] array = str.split(\" \");\n// int sum = 0;\n// for(int i=0; i<array.length; i++) {\n// int num = Integer.parseInt(array[i]);\n// sum += num;\n// }\n// System.out.println(15-sum);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"String ans = \"NG\";",
"ans",
"\"NG\"",
"for(int x = a; x<=b; x++){\n if(x%k == 0){\n ans = \"OK\";\n }\n }",
"int x = a;",
"int x = a;",
"x",
"a",
"x<=b",
"x",
"b",
"x++",
"x++",
"x",
"{\n if(x%k == 0){\n ans = \"OK\";\n }\n }",
"{\n if(x%k == 0){\n ans = \"OK\";\n }\n }",
"if(x%k == 0){\n ans = \"OK\";\n }",
"x%k == 0",
"x%k",
"x",
"k",
"0",
"{\n ans = \"OK\";\n }",
"ans = \"OK\"",
"ans",
"\"OK\"",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n// String s = sc.nextLine();\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n sc.close();\n// String s = sc.nextLine();\n// String t = sc.next();\n// String[] arr = s.split(\" \");\n// sc.close();\n// System.out.println(\"input: \"+ s);\n// System.out.println(\"k:\" + k);\n// System.out.println(\"a:\" + a);\n// System.out.println(\"b:\" + b);\n String ans = \"NG\";\n for(int x = a; x<=b; x++){\n if(x%k == 0){\n ans = \"OK\";\n }\n }\n System.out.println(ans);\n// \\\n// System.out.println(\"arr[1]:\" + arr[1]);\n//\n// if(s.equals(\"ABC\")){\n// System.out.println(\"ARC\");\n// }else{\n// System.out.println(\"ABC\");\n// }\n// String[] arr1 = s.split(\"\");\n// String[] arr2 = t.split(\"\");\n//// List<String> list1 = Arrays.asList(s.split(\"\"));\n// List list1 = new LinkedList(Arrays.asList(s.split(\"\")));\n//// List<String> list2 = Arrays.asList(t.split(\"\"));\n// List list2 = new LinkedList(Arrays.asList(t.split(\"\")));\n//// int num = Integer.parseInt(arr[arr.length - 1]);\n// list2.remove(arr2.length - 1);\n//// System.out.println(list1);\n//// System.out.println(list2);\n// if(list1.toString().contentEquals(list2.toString())){\n// System.out.println(\"Yes\");\n// }else{\n// System.out.println(\"No\");\n// }\n// switch(num){\n// case 3:\n// System.out.println(\"bon\");\n// break;\n// case 0:\n// case 1:\n// case 6:\n// case 8:\n// System.out.println(\"pon\");\n// break;\n// default:\n// System.out.println(\"hon\");\n// break;\n// }\n// String[] array = str.split(\" \");\n// int sum = 0;\n// for(int i=0; i<array.length; i++) {\n// int num = Integer.parseInt(array[i]);\n// sum += num;\n// }\n// System.out.println(15-sum);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n// String s = sc.nextLine();\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n sc.close();\n// String s = sc.nextLine();\n// String t = sc.next();\n// String[] arr = s.split(\" \");\n// sc.close();\n// System.out.println(\"input: \"+ s);\n// System.out.println(\"k:\" + k);\n// System.out.println(\"a:\" + a);\n// System.out.println(\"b:\" + b);\n String ans = \"NG\";\n for(int x = a; x<=b; x++){\n if(x%k == 0){\n ans = \"OK\";\n }\n }\n System.out.println(ans);\n// \\\n// System.out.println(\"arr[1]:\" + arr[1]);\n//\n// if(s.equals(\"ABC\")){\n// System.out.println(\"ARC\");\n// }else{\n// System.out.println(\"ABC\");\n// }\n// String[] arr1 = s.split(\"\");\n// String[] arr2 = t.split(\"\");\n//// List<String> list1 = Arrays.asList(s.split(\"\"));\n// List list1 = new LinkedList(Arrays.asList(s.split(\"\")));\n//// List<String> list2 = Arrays.asList(t.split(\"\"));\n// List list2 = new LinkedList(Arrays.asList(t.split(\"\")));\n//// int num = Integer.parseInt(arr[arr.length - 1]);\n// list2.remove(arr2.length - 1);\n//// System.out.println(list1);\n//// System.out.println(list2);\n// if(list1.toString().contentEquals(list2.toString())){\n// System.out.println(\"Yes\");\n// }else{\n// System.out.println(\"No\");\n// }\n// switch(num){\n// case 3:\n// System.out.println(\"bon\");\n// break;\n// case 0:\n// case 1:\n// case 6:\n// case 8:\n// System.out.println(\"pon\");\n// break;\n// default:\n// System.out.println(\"hon\");\n// break;\n// }\n// String[] array = str.split(\" \");\n// int sum = 0;\n// for(int i=0; i<array.length; i++) {\n// int num = Integer.parseInt(array[i]);\n// sum += num;\n// }\n// System.out.println(15-sum);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// String s = sc.nextLine();
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
sc.close();
// String s = sc.nextLine();
// String t = sc.next();
// String[] arr = s.split(" ");
// sc.close();
// System.out.println("input: "+ s);
// System.out.println("k:" + k);
// System.out.println("a:" + a);
// System.out.println("b:" + b);
String ans = "NG";
for(int x = a; x<=b; x++){
if(x%k == 0){
ans = "OK";
}
}
System.out.println(ans);
// \
// System.out.println("arr[1]:" + arr[1]);
//
// if(s.equals("ABC")){
// System.out.println("ARC");
// }else{
// System.out.println("ABC");
// }
// String[] arr1 = s.split("");
// String[] arr2 = t.split("");
//// List<String> list1 = Arrays.asList(s.split(""));
// List list1 = new LinkedList(Arrays.asList(s.split("")));
//// List<String> list2 = Arrays.asList(t.split(""));
// List list2 = new LinkedList(Arrays.asList(t.split("")));
//// int num = Integer.parseInt(arr[arr.length - 1]);
// list2.remove(arr2.length - 1);
//// System.out.println(list1);
//// System.out.println(list2);
// if(list1.toString().contentEquals(list2.toString())){
// System.out.println("Yes");
// }else{
// System.out.println("No");
// }
// switch(num){
// case 3:
// System.out.println("bon");
// break;
// case 0:
// case 1:
// case 6:
// case 8:
// System.out.println("pon");
// break;
// default:
// System.out.println("hon");
// break;
// }
// String[] array = str.split(" ");
// int sum = 0;
// for(int i=0; i<array.length; i++) {
// int num = Integer.parseInt(array[i]);
// sum += num;
// }
// System.out.println(15-sum);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
2,
13,
13,
14,
2,
2,
13,
13,
2,
13,
13,
30,
0,
13,
17,
3,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
70,
5
],
[
70,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
42,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
6,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
] |
[
"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\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\n\t\tString ans = \"NG\";\n\n\t\tfor (int i = 1; i <= 1000; i++) {\n\n\t\t\tint n = K * i;\n\n\t\t\tif (A <= n && n <= B) {\n\t\t\t\tans = \"OK\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// 出力\n\t\tSystem.out.println(ans);\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\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\n\t\tString ans = \"NG\";\n\n\t\tfor (int i = 1; i <= 1000; i++) {\n\n\t\t\tint n = K * i;\n\n\t\t\tif (A <= n && n <= B) {\n\t\t\t\tans = \"OK\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// 出力\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\n\t\tString ans = \"NG\";\n\n\t\tfor (int i = 1; i <= 1000; i++) {\n\n\t\t\tint n = K * i;\n\n\t\t\tif (A <= n && n <= B) {\n\t\t\t\tans = \"OK\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// 出力\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\n\t\tString ans = \"NG\";\n\n\t\tfor (int i = 1; i <= 1000; i++) {\n\n\t\t\tint n = K * i;\n\n\t\t\tif (A <= n && n <= B) {\n\t\t\t\tans = \"OK\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// 出力\n\t\tSystem.out.println(ans);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String ans = \"NG\";",
"ans",
"\"NG\"",
"for (int i = 1; i <= 1000; i++) {\n\n\t\t\tint n = K * i;\n\n\t\t\tif (A <= n && n <= B) {\n\t\t\t\tans = \"OK\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= 1000",
"i",
"1000",
"i++",
"i++",
"i",
"{\n\n\t\t\tint n = K * i;\n\n\t\t\tif (A <= n && n <= B) {\n\t\t\t\tans = \"OK\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\n\t\t\tint n = K * i;\n\n\t\t\tif (A <= n && n <= B) {\n\t\t\t\tans = \"OK\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int n = K * i;",
"n",
"K * i",
"K",
"i",
"if (A <= n && n <= B) {\n\t\t\t\tans = \"OK\";\n\t\t\t\tbreak;\n\t\t\t}",
"A <= n && n <= B",
"A <= n",
"A",
"n",
"n <= B",
"n",
"B",
"{\n\t\t\t\tans = \"OK\";\n\t\t\t\tbreak;\n\t\t\t}",
"ans = \"OK\"",
"ans",
"\"OK\"",
"break;",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\n\t\tString ans = \"NG\";\n\n\t\tfor (int i = 1; i <= 1000; i++) {\n\n\t\t\tint n = K * i;\n\n\t\t\tif (A <= n && n <= B) {\n\t\t\t\tans = \"OK\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// 出力\n\t\tSystem.out.println(ans);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\n\t\tString ans = \"NG\";\n\n\t\tfor (int i = 1; i <= 1000; i++) {\n\n\t\t\tint n = K * i;\n\n\t\t\tif (A <= n && n <= B) {\n\t\t\t\tans = \"OK\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// 出力\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int A = sc.nextInt();
int B = sc.nextInt();
String ans = "NG";
for (int i = 1; i <= 1000; i++) {
int n = K * i;
if (A <= n && n <= B) {
ans = "OK";
break;
}
}
// 出力
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
13,
13,
2,
2,
13,
17,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
27,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
27,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
] |
[
" import java.util.Scanner;\n \n \n public class Main {\n public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n if (b/k>(a-1)/k){\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n }",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n if (b/k>(a-1)/k){\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n }",
"Main",
"public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n if (b/k>(a-1)/k){\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }",
"main",
"{\n \n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n if (b/k>(a-1)/k){\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (b/k>(a-1)/k){\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }",
"b/k>(a-1)/k",
"b/k",
"b",
"k",
"(a-1)/k",
"(a-1)",
"a",
"1",
"k",
"{\n System.out.println(\"OK\");\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n System.out.println(\"NG\");\n }",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n if (b/k>(a-1)/k){\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n }",
"public class Main {\n public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n if (b/k>(a-1)/k){\n System.out.println(\"OK\");\n } else {\n System.out.println(\"NG\");\n }\n }\n }",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
if (b/k>(a-1)/k){
System.out.println("OK");
} else {
System.out.println("NG");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
13,
13,
13,
13,
14,
13,
30,
4,
18,
13,
17,
30,
4,
18,
13,
17,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
29,
17,
29,
17,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
2,
17,
17,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
13,
0,
13,
0,
13,
17,
12,
13,
30,
0,
13,
20,
0,
13,
20,
13,
0,
13,
0,
13,
17,
23,
13,
12,
13,
30,
41,
13,
20,
17,
41,
13,
17,
41,
13,
42,
2,
0,
13,
4,
13,
40,
17,
30,
14,
2,
13,
17,
3,
0,
18,
13,
40,
13,
13,
29,
20,
12,
13,
30,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
2,
13,
17,
30,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
13,
17,
0,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
0,
13,
4,
18,
13,
13,
0,
13,
17,
13,
14,
2,
13,
40,
17,
0,
18,
13,
17,
40,
17,
12,
13,
30,
14,
2,
13,
13,
4,
13,
29,
18,
13,
40,
13,
12,
13,
30,
14,
2,
13,
17,
29,
4,
18,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
429,
14
],
[
429,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
17,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
17,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
41,
44
],
[
41,
45
],
[
17,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
46,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
17,
58
],
[
58,
59
],
[
59,
60
],
[
17,
61
],
[
61,
62
],
[
62,
63
],
[
15,
64
],
[
64,
65
],
[
429,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
69,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
82,
88
],
[
88,
89
],
[
68,
90
],
[
90,
91
],
[
66,
92
],
[
92,
93
],
[
66,
94
],
[
94,
95
],
[
66,
96
],
[
96,
97
],
[
429,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
98,
105
],
[
105,
106
],
[
98,
107
],
[
107,
108
],
[
98,
109
],
[
109,
110
],
[
98,
111
],
[
111,
112
],
[
98,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
119,
120
],
[
119,
121
],
[
115,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
125,
127
],
[
98,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
134,
136
],
[
130,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
140,
142
],
[
128,
143
],
[
143,
144
],
[
98,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
152
],
[
152,
153
],
[
152,
154
],
[
147,
155
],
[
155,
156
],
[
147,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
158,
163
],
[
163,
164
],
[
157,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
165,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
171,
176
],
[
147,
177
],
[
177,
178
],
[
98,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
181,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
189,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
181,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
199,
201
],
[
181,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
181,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
210,
215
],
[
209,
216
],
[
216,
217
],
[
216,
218
],
[
208,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
223,
227
],
[
222,
228
],
[
181,
229
],
[
229,
230
],
[
229,
231
],
[
231,
232
],
[
232,
233
],
[
181,
234
],
[
234,
235
],
[
98,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
238,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
238,
246
],
[
246,
247
],
[
247,
248
],
[
247,
249
],
[
246,
250
],
[
250,
251
],
[
250,
252
],
[
252,
253
],
[
238,
254
],
[
254,
255
],
[
254,
256
],
[
256,
257
],
[
256,
258
],
[
238,
259
],
[
259,
260
],
[
259,
261
],
[
261,
262
],
[
261,
263
],
[
263,
264
],
[
238,
265
],
[
265,
266
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
268,
270
],
[
270,
271
],
[
267,
272
],
[
266,
273
],
[
273,
274
],
[
273,
275
],
[
265,
276
],
[
276,
277
],
[
277,
278
],
[
277,
279
],
[
279,
280
],
[
280,
281
],
[
281,
282
],
[
281,
283
],
[
280,
284
],
[
279,
285
],
[
238,
286
],
[
286,
287
],
[
286,
288
],
[
288,
289
],
[
289,
290
],
[
238,
291
],
[
291,
292
],
[
98,
293
],
[
293,
294
],
[
293,
295
],
[
295,
296
],
[
296,
297
],
[
296,
298
],
[
295,
299
],
[
299,
300
],
[
299,
301
],
[
295,
302
],
[
302,
303
],
[
302,
304
],
[
304,
305
],
[
295,
306
],
[
306,
307
],
[
307,
308
],
[
307,
309
],
[
306,
310
],
[
310,
311
],
[
310,
312
],
[
312,
313
],
[
295,
314
],
[
314,
315
],
[
314,
316
],
[
316,
317
],
[
316,
318
],
[
295,
319
],
[
319,
320
],
[
319,
321
],
[
321,
322
],
[
321,
323
],
[
323,
324
],
[
295,
325
],
[
325,
326
],
[
326,
327
],
[
327,
328
],
[
328,
329
],
[
328,
330
],
[
330,
331
],
[
327,
332
],
[
326,
333
],
[
333,
334
],
[
333,
335
],
[
325,
336
],
[
336,
337
],
[
337,
338
],
[
337,
339
],
[
339,
340
],
[
340,
341
],
[
341,
342
],
[
341,
343
],
[
340,
344
],
[
339,
345
],
[
295,
346
],
[
346,
347
],
[
347,
348
],
[
347,
349
],
[
346,
350
],
[
350,
351
],
[
351,
352
],
[
352,
353
],
[
353,
354
],
[
354,
355
],
[
354,
356
],
[
356,
357
],
[
353,
358
],
[
352,
359
],
[
359,
360
],
[
359,
361
],
[
351,
362
],
[
362,
363
],
[
363,
364
],
[
363,
365
],
[
365,
366
],
[
366,
367
],
[
366,
368
],
[
365,
369
],
[
369,
370
],
[
369,
371
],
[
295,
372
],
[
372,
373
],
[
372,
374
],
[
374,
375
],
[
375,
376
],
[
295,
377
],
[
377,
378
],
[
98,
379
],
[
379,
380
],
[
379,
381
],
[
381,
382
],
[
382,
383
],
[
382,
384
],
[
384,
385
],
[
385,
386
],
[
384,
387
],
[
384,
388
],
[
388,
389
],
[
388,
390
],
[
384,
391
],
[
381,
392
],
[
392,
393
],
[
393,
394
],
[
393,
395
],
[
395,
396
],
[
392,
397
],
[
397,
398
],
[
398,
399
],
[
398,
400
],
[
397,
401
],
[
401,
402
],
[
98,
403
],
[
403,
404
],
[
403,
405
],
[
405,
406
],
[
406,
407
],
[
407,
408
],
[
407,
409
],
[
406,
410
],
[
410,
411
],
[
405,
412
],
[
412,
413
],
[
413,
414
],
[
413,
415
],
[
415,
416
],
[
98,
417
],
[
417,
418
],
[
417,
419
],
[
419,
420
],
[
420,
421
],
[
421,
422
],
[
421,
423
],
[
420,
424
],
[
419,
425
],
[
425,
426
],
[
426,
427
],
[
0,
428
],
[
428,
429
],
[
428,
430
]
] |
[
"import java.util.*;\nimport java.io.*;\nimport java.lang.*;\nimport java.math.*;\n \npublic class Main {\n\n static class Reader {\n\n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n\n public Reader() { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n\n public Reader(String file_name) throws IOException { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n\n public String readLine() throws IOException { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n\n public int nextInt() throws IOException { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n\n if (neg) \n return -ret; \n return ret; \n } \n\n public long nextLong() throws IOException { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n\n public double nextDouble() throws IOException { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n\n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n\n if (c == '.') { \n while ((c = read()) >= '0' && c <= '9') { \n ret += (c - '0') / (div *= 10); \n } \n } \n\n if (neg) \n return -ret; \n return ret; \n } \n\n private void fillBuffer() throws IOException { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n\n private byte read() throws IOException { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n\n public void close() throws IOException { \n if (din == null) \n return; \n din.close(); \n } \n }\n\n \n public static void main(String args[]) throws IOException {\n // try {\n // FileOutputStream output = new FileOutputStream(\"temp.out\");\n // PrintStream out = new PrintStream(output);\n // //Diverting the output stream into file \"temp.out\".Comment the below line to use console\n // System.setOut(out);\n \n // InputStream input = new FileInputStream(\"temp.in\");\n // //Diverting the input stream into file \"temp.in\".Comment the below line to use console\n // System.setIn(input);\n \n // } catch (FileNotFoundException e) {\n // e.printStackTrace();\n // }\n \n // Scanner sc = new Scanner(System.in);\n Reader sc = new Reader();\n // BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter wr = new PrintWriter(System.out);\n\n // int t = 1;\n // t = sc.nextInt(); //Comment this line if there is single test case\n \n // while((t--) != 0) {\n\n\n\n\n // }\n\n\n\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n\n boolean ans = check(k, a, b);\n if(ans) {\n wr.println(\"OK\");\n } else {\n wr.println(\"NG\");\n }\n\n wr.flush();\n wr.close();\n }\n\n public static boolean check(int k, int a, int b) {\n \n for(int i = a; i <= b; i++) {\n if(i % k == 0)\n return true;\n }\n return false;\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main {\n\n static class Reader {\n\n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n\n public Reader() { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n\n public Reader(String file_name) throws IOException { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n\n public String readLine() throws IOException { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n\n public int nextInt() throws IOException { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n\n if (neg) \n return -ret; \n return ret; \n } \n\n public long nextLong() throws IOException { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n\n public double nextDouble() throws IOException { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n\n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n\n if (c == '.') { \n while ((c = read()) >= '0' && c <= '9') { \n ret += (c - '0') / (div *= 10); \n } \n } \n\n if (neg) \n return -ret; \n return ret; \n } \n\n private void fillBuffer() throws IOException { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n\n private byte read() throws IOException { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n\n public void close() throws IOException { \n if (din == null) \n return; \n din.close(); \n } \n }\n\n \n public static void main(String args[]) throws IOException {\n // try {\n // FileOutputStream output = new FileOutputStream(\"temp.out\");\n // PrintStream out = new PrintStream(output);\n // //Diverting the output stream into file \"temp.out\".Comment the below line to use console\n // System.setOut(out);\n \n // InputStream input = new FileInputStream(\"temp.in\");\n // //Diverting the input stream into file \"temp.in\".Comment the below line to use console\n // System.setIn(input);\n \n // } catch (FileNotFoundException e) {\n // e.printStackTrace();\n // }\n \n // Scanner sc = new Scanner(System.in);\n Reader sc = new Reader();\n // BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter wr = new PrintWriter(System.out);\n\n // int t = 1;\n // t = sc.nextInt(); //Comment this line if there is single test case\n \n // while((t--) != 0) {\n\n\n\n\n // }\n\n\n\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n\n boolean ans = check(k, a, b);\n if(ans) {\n wr.println(\"OK\");\n } else {\n wr.println(\"NG\");\n }\n\n wr.flush();\n wr.close();\n }\n\n public static boolean check(int k, int a, int b) {\n \n for(int i = a; i <= b; i++) {\n if(i % k == 0)\n return true;\n }\n return false;\n }\n}",
"Main",
"public static void main(String args[]) throws IOException {\n // try {\n // FileOutputStream output = new FileOutputStream(\"temp.out\");\n // PrintStream out = new PrintStream(output);\n // //Diverting the output stream into file \"temp.out\".Comment the below line to use console\n // System.setOut(out);\n \n // InputStream input = new FileInputStream(\"temp.in\");\n // //Diverting the input stream into file \"temp.in\".Comment the below line to use console\n // System.setIn(input);\n \n // } catch (FileNotFoundException e) {\n // e.printStackTrace();\n // }\n \n // Scanner sc = new Scanner(System.in);\n Reader sc = new Reader();\n // BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter wr = new PrintWriter(System.out);\n\n // int t = 1;\n // t = sc.nextInt(); //Comment this line if there is single test case\n \n // while((t--) != 0) {\n\n\n\n\n // }\n\n\n\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n\n boolean ans = check(k, a, b);\n if(ans) {\n wr.println(\"OK\");\n } else {\n wr.println(\"NG\");\n }\n\n wr.flush();\n wr.close();\n }",
"main",
"{\n // try {\n // FileOutputStream output = new FileOutputStream(\"temp.out\");\n // PrintStream out = new PrintStream(output);\n // //Diverting the output stream into file \"temp.out\".Comment the below line to use console\n // System.setOut(out);\n \n // InputStream input = new FileInputStream(\"temp.in\");\n // //Diverting the input stream into file \"temp.in\".Comment the below line to use console\n // System.setIn(input);\n \n // } catch (FileNotFoundException e) {\n // e.printStackTrace();\n // }\n \n // Scanner sc = new Scanner(System.in);\n Reader sc = new Reader();\n // BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter wr = new PrintWriter(System.out);\n\n // int t = 1;\n // t = sc.nextInt(); //Comment this line if there is single test case\n \n // while((t--) != 0) {\n\n\n\n\n // }\n\n\n\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n\n boolean ans = check(k, a, b);\n if(ans) {\n wr.println(\"OK\");\n } else {\n wr.println(\"NG\");\n }\n\n wr.flush();\n wr.close();\n }",
"Reader sc = new Reader();",
"sc",
"new Reader()",
"PrintWriter wr = new PrintWriter(System.out);",
"wr",
"new PrintWriter(System.out)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"boolean ans = check(k, a, b);",
"ans",
"check(k, a, b)",
"check",
"k",
"a",
"b",
"if(ans) {\n wr.println(\"OK\");\n } else {\n wr.println(\"NG\");\n }",
"ans",
"{\n wr.println(\"OK\");\n }",
"wr.println(\"OK\")",
"wr.println",
"wr",
"\"OK\"",
"{\n wr.println(\"NG\");\n }",
"wr.println(\"NG\")",
"wr.println",
"wr",
"\"NG\"",
"wr.flush()",
"wr.flush",
"wr",
"wr.close()",
"wr.close",
"wr",
"String args[]",
"args",
"public static boolean check(int k, int a, int b) {\n \n for(int i = a; i <= b; i++) {\n if(i % k == 0)\n return true;\n }\n return false;\n }",
"check",
"{\n \n for(int i = a; i <= b; i++) {\n if(i % k == 0)\n return true;\n }\n return false;\n }",
"for(int i = a; i <= b; i++) {\n if(i % k == 0)\n return true;\n }",
"int i = a;",
"int i = a;",
"i",
"a",
"i <= b",
"i",
"b",
"i++",
"i++",
"i",
"{\n if(i % k == 0)\n return true;\n }",
"{\n if(i % k == 0)\n return true;\n }",
"if(i % k == 0)\n return true;",
"i % k == 0",
"i % k",
"i",
"k",
"0",
"return true;",
"true",
"return false;",
"false",
"int k",
"k",
"int a",
"a",
"int b",
"b",
"static class Reader {\n\n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n\n public Reader() { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n\n public Reader(String file_name) throws IOException { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n\n public String readLine() throws IOException { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n\n public int nextInt() throws IOException { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n\n if (neg) \n return -ret; \n return ret; \n } \n\n public long nextLong() throws IOException { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n\n public double nextDouble() throws IOException { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n\n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n\n if (c == '.') { \n while ((c = read()) >= '0' && c <= '9') { \n ret += (c - '0') / (div *= 10); \n } \n } \n\n if (neg) \n return -ret; \n return ret; \n } \n\n private void fillBuffer() throws IOException { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n\n private byte read() throws IOException { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n\n public void close() throws IOException { \n if (din == null) \n return; \n din.close(); \n } \n }",
"Reader",
"final private int BUFFER_SIZE = 1 << 16;",
"BUFFER_SIZE",
"1 << 16",
"1",
"16",
"private DataInputStream din;",
"din",
"private byte[] buffer;",
"buffer",
"private int bufferPointer",
"bufferPointer",
"bytesRead;",
"bytesRead",
"public Reader() { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"Reader",
"{ \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"din = new DataInputStream(System.in)",
"din",
"new DataInputStream(System.in)",
"buffer = new byte[BUFFER_SIZE]",
"buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"bufferPointer = bytesRead = 0",
"bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"public Reader(String file_name) throws IOException { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"Reader",
"{ \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"din = new DataInputStream(new FileInputStream(file_name))",
"din",
"new DataInputStream(new FileInputStream(file_name))",
"buffer = new byte[BUFFER_SIZE]",
"buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"bufferPointer = bytesRead = 0",
"bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"String file_name",
"file_name",
"public String readLine() throws IOException { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n }",
"readLine",
"{ \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n }",
"byte[] buf = new byte[64];",
"buf",
"new byte[64]",
"64",
"int cnt = 0",
"cnt",
"0",
"c;",
"c",
"while ((c = read()) != -1) { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n }",
"(c = read()) != -1",
"(c = read())",
"c",
"read()",
"read",
"-1",
"1",
"{ \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n }",
"if (c == '\\n') \n break;",
"c == '\\n'",
"c",
"'\\n'",
"break;",
"buf[cnt++] = (byte) c",
"buf[cnt++]",
"buf",
"cnt++",
"cnt",
"(byte) c",
"return new String(buf, 0, cnt);",
"new String(buf, 0, cnt)",
"public int nextInt() throws IOException { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n\n if (neg) \n return -ret; \n return ret; \n }",
"nextInt",
"{ \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n\n if (neg) \n return -ret; \n return ret; \n }",
"int ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n ret = ret * 10 + c - '0'; \n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg) \n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public long nextLong() throws IOException { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n }",
"nextLong",
"{ \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n }",
"long ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n ret = ret * 10 + c - '0'; \n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg) \n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public double nextDouble() throws IOException { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n\n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n\n if (c == '.') { \n while ((c = read()) >= '0' && c <= '9') { \n ret += (c - '0') / (div *= 10); \n } \n } \n\n if (neg) \n return -ret; \n return ret; \n }",
"nextDouble",
"{ \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n\n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n\n if (c == '.') { \n while ((c = read()) >= '0' && c <= '9') { \n ret += (c - '0') / (div *= 10); \n } \n } \n\n if (neg) \n return -ret; \n return ret; \n }",
"double ret = 0",
"ret",
"0",
"div = 1;",
"div",
"1",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n ret = ret * 10 + c - '0'; \n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (c == '.') { \n while ((c = read()) >= '0' && c <= '9') { \n ret += (c - '0') / (div *= 10); \n } \n }",
"c == '.'",
"c",
"'.'",
"{ \n while ((c = read()) >= '0' && c <= '9') { \n ret += (c - '0') / (div *= 10); \n } \n }",
"while ((c = read()) >= '0' && c <= '9') { \n ret += (c - '0') / (div *= 10); \n }",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n ret += (c - '0') / (div *= 10); \n }",
"ret += (c - '0') / (div *= 10)",
"ret",
"(c - '0') / (div *= 10)",
"(c - '0')",
"c",
"'0'",
"(div *= 10)",
"div",
"10",
"if (neg) \n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"private void fillBuffer() throws IOException { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }",
"fillBuffer",
"{ \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }",
"bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE)",
"bytesRead",
"din.read(buffer, bufferPointer = 0, BUFFER_SIZE)",
"din.read",
"din",
"buffer",
"bufferPointer = 0",
"bufferPointer",
"0",
"BUFFER_SIZE",
"if (bytesRead == -1) \n buffer[0] = -1;",
"bytesRead == -1",
"bytesRead",
"-1",
"1",
"buffer[0] = -1",
"buffer[0]",
"buffer",
"0",
"-1",
"1",
"private byte read() throws IOException { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }",
"read",
"{ \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }",
"if (bufferPointer == bytesRead) \n fillBuffer();",
"bufferPointer == bytesRead",
"bufferPointer",
"bytesRead",
"fillBuffer()",
"fillBuffer",
"return buffer[bufferPointer++];",
"buffer[bufferPointer++]",
"buffer",
"bufferPointer++",
"bufferPointer",
"public void close() throws IOException { \n if (din == null) \n return; \n din.close(); \n }",
"close",
"{ \n if (din == null) \n return; \n din.close(); \n }",
"if (din == null) \n return;",
"din == null",
"din",
"null",
"return;",
"din.close()",
"din.close",
"din",
"public class Main {\n\n static class Reader {\n\n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n\n public Reader() { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n\n public Reader(String file_name) throws IOException { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n\n public String readLine() throws IOException { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n\n public int nextInt() throws IOException { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n\n if (neg) \n return -ret; \n return ret; \n } \n\n public long nextLong() throws IOException { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n\n public double nextDouble() throws IOException { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n\n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n\n if (c == '.') { \n while ((c = read()) >= '0' && c <= '9') { \n ret += (c - '0') / (div *= 10); \n } \n } \n\n if (neg) \n return -ret; \n return ret; \n } \n\n private void fillBuffer() throws IOException { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n\n private byte read() throws IOException { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n\n public void close() throws IOException { \n if (din == null) \n return; \n din.close(); \n } \n }\n\n \n public static void main(String args[]) throws IOException {\n // try {\n // FileOutputStream output = new FileOutputStream(\"temp.out\");\n // PrintStream out = new PrintStream(output);\n // //Diverting the output stream into file \"temp.out\".Comment the below line to use console\n // System.setOut(out);\n \n // InputStream input = new FileInputStream(\"temp.in\");\n // //Diverting the input stream into file \"temp.in\".Comment the below line to use console\n // System.setIn(input);\n \n // } catch (FileNotFoundException e) {\n // e.printStackTrace();\n // }\n \n // Scanner sc = new Scanner(System.in);\n Reader sc = new Reader();\n // BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter wr = new PrintWriter(System.out);\n\n // int t = 1;\n // t = sc.nextInt(); //Comment this line if there is single test case\n \n // while((t--) != 0) {\n\n\n\n\n // }\n\n\n\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n\n boolean ans = check(k, a, b);\n if(ans) {\n wr.println(\"OK\");\n } else {\n wr.println(\"NG\");\n }\n\n wr.flush();\n wr.close();\n }\n\n public static boolean check(int k, int a, int b) {\n \n for(int i = a; i <= b; i++) {\n if(i % k == 0)\n return true;\n }\n return false;\n }\n}",
"public class Main {\n\n static class Reader {\n\n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n\n public Reader() { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n\n public Reader(String file_name) throws IOException { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n\n public String readLine() throws IOException { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n\n public int nextInt() throws IOException { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n\n if (neg) \n return -ret; \n return ret; \n } \n\n public long nextLong() throws IOException { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n\n public double nextDouble() throws IOException { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n\n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n\n if (c == '.') { \n while ((c = read()) >= '0' && c <= '9') { \n ret += (c - '0') / (div *= 10); \n } \n } \n\n if (neg) \n return -ret; \n return ret; \n } \n\n private void fillBuffer() throws IOException { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n\n private byte read() throws IOException { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n\n public void close() throws IOException { \n if (din == null) \n return; \n din.close(); \n } \n }\n\n \n public static void main(String args[]) throws IOException {\n // try {\n // FileOutputStream output = new FileOutputStream(\"temp.out\");\n // PrintStream out = new PrintStream(output);\n // //Diverting the output stream into file \"temp.out\".Comment the below line to use console\n // System.setOut(out);\n \n // InputStream input = new FileInputStream(\"temp.in\");\n // //Diverting the input stream into file \"temp.in\".Comment the below line to use console\n // System.setIn(input);\n \n // } catch (FileNotFoundException e) {\n // e.printStackTrace();\n // }\n \n // Scanner sc = new Scanner(System.in);\n Reader sc = new Reader();\n // BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter wr = new PrintWriter(System.out);\n\n // int t = 1;\n // t = sc.nextInt(); //Comment this line if there is single test case\n \n // while((t--) != 0) {\n\n\n\n\n // }\n\n\n\n int k = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n\n boolean ans = check(k, a, b);\n if(ans) {\n wr.println(\"OK\");\n } else {\n wr.println(\"NG\");\n }\n\n wr.flush();\n wr.close();\n }\n\n public static boolean check(int k, int a, int b) {\n \n for(int i = a; i <= b; i++) {\n if(i % k == 0)\n return true;\n }\n return false;\n }\n}",
"Main"
] |
import java.util.*;
import java.io.*;
import java.lang.*;
import java.math.*;
public class Main {
static class Reader {
final private int BUFFER_SIZE = 1 << 16;
private DataInputStream din;
private byte[] buffer;
private int bufferPointer, bytesRead;
public Reader() {
din = new DataInputStream(System.in);
buffer = new byte[BUFFER_SIZE];
bufferPointer = bytesRead = 0;
}
public Reader(String file_name) throws IOException {
din = new DataInputStream(new FileInputStream(file_name));
buffer = new byte[BUFFER_SIZE];
bufferPointer = bytesRead = 0;
}
public String readLine() throws IOException {
byte[] buf = new byte[64]; // line length
int cnt = 0, c;
while ((c = read()) != -1) {
if (c == '\n')
break;
buf[cnt++] = (byte) c;
}
return new String(buf, 0, cnt);
}
public int nextInt() throws IOException {
int ret = 0;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do {
ret = ret * 10 + c - '0';
} while ((c = read()) >= '0' && c <= '9');
if (neg)
return -ret;
return ret;
}
public long nextLong() throws IOException {
long ret = 0;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do {
ret = ret * 10 + c - '0';
}
while ((c = read()) >= '0' && c <= '9');
if (neg)
return -ret;
return ret;
}
public double nextDouble() throws IOException {
double ret = 0, div = 1;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do {
ret = ret * 10 + c - '0';
}
while ((c = read()) >= '0' && c <= '9');
if (c == '.') {
while ((c = read()) >= '0' && c <= '9') {
ret += (c - '0') / (div *= 10);
}
}
if (neg)
return -ret;
return ret;
}
private void fillBuffer() throws IOException {
bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);
if (bytesRead == -1)
buffer[0] = -1;
}
private byte read() throws IOException {
if (bufferPointer == bytesRead)
fillBuffer();
return buffer[bufferPointer++];
}
public void close() throws IOException {
if (din == null)
return;
din.close();
}
}
public static void main(String args[]) throws IOException {
// try {
// FileOutputStream output = new FileOutputStream("temp.out");
// PrintStream out = new PrintStream(output);
// //Diverting the output stream into file "temp.out".Comment the below line to use console
// System.setOut(out);
// InputStream input = new FileInputStream("temp.in");
// //Diverting the input stream into file "temp.in".Comment the below line to use console
// System.setIn(input);
// } catch (FileNotFoundException e) {
// e.printStackTrace();
// }
// Scanner sc = new Scanner(System.in);
Reader sc = new Reader();
// BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));
PrintWriter wr = new PrintWriter(System.out);
// int t = 1;
// t = sc.nextInt(); //Comment this line if there is single test case
// while((t--) != 0) {
// }
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
boolean ans = check(k, a, b);
if(ans) {
wr.println("OK");
} else {
wr.println("NG");
}
wr.flush();
wr.close();
}
public static boolean check(int k, int a, int b) {
for(int i = a; i <= b; i++) {
if(i % k == 0)
return true;
}
return false;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
64,
5
],
[
64,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
8,
58
],
[
58,
59
],
[
59,
60
],
[
6,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
] |
[
"import java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner keyboard = new Scanner(System.in);\n\n\t\tint K = keyboard.nextInt();\n\t\tint A = keyboard.nextInt();\n\t\tint B = keyboard.nextInt();\n\t\t\n\t\tString ans =\"NG\"; \n\t\tfor(int x=A; x<=B; x++) {\n\t\t\tif(x%K == 0)\n\t\t\tans = \"OK\";\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t\tkeyboard.close();\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner keyboard = new Scanner(System.in);\n\n\t\tint K = keyboard.nextInt();\n\t\tint A = keyboard.nextInt();\n\t\tint B = keyboard.nextInt();\n\t\t\n\t\tString ans =\"NG\"; \n\t\tfor(int x=A; x<=B; x++) {\n\t\t\tif(x%K == 0)\n\t\t\tans = \"OK\";\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t\tkeyboard.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner keyboard = new Scanner(System.in);\n\n\t\tint K = keyboard.nextInt();\n\t\tint A = keyboard.nextInt();\n\t\tint B = keyboard.nextInt();\n\t\t\n\t\tString ans =\"NG\"; \n\t\tfor(int x=A; x<=B; x++) {\n\t\t\tif(x%K == 0)\n\t\t\tans = \"OK\";\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t\tkeyboard.close();\n\t}",
"main",
"{\n\n\t\tScanner keyboard = new Scanner(System.in);\n\n\t\tint K = keyboard.nextInt();\n\t\tint A = keyboard.nextInt();\n\t\tint B = keyboard.nextInt();\n\t\t\n\t\tString ans =\"NG\"; \n\t\tfor(int x=A; x<=B; x++) {\n\t\t\tif(x%K == 0)\n\t\t\tans = \"OK\";\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t\tkeyboard.close();\n\t}",
"Scanner keyboard = new Scanner(System.in);",
"keyboard",
"new Scanner(System.in)",
"int K = keyboard.nextInt();",
"K",
"keyboard.nextInt()",
"keyboard.nextInt",
"keyboard",
"int A = keyboard.nextInt();",
"A",
"keyboard.nextInt()",
"keyboard.nextInt",
"keyboard",
"int B = keyboard.nextInt();",
"B",
"keyboard.nextInt()",
"keyboard.nextInt",
"keyboard",
"String ans =\"NG\";",
"ans",
"\"NG\"",
"for(int x=A; x<=B; x++) {\n\t\t\tif(x%K == 0)\n\t\t\tans = \"OK\";\n\t\t}",
"int x=A;",
"int x=A;",
"x",
"A",
"x<=B",
"x",
"B",
"x++",
"x++",
"x",
"{\n\t\t\tif(x%K == 0)\n\t\t\tans = \"OK\";\n\t\t}",
"{\n\t\t\tif(x%K == 0)\n\t\t\tans = \"OK\";\n\t\t}",
"if(x%K == 0)\n\t\t\tans = \"OK\";",
"x%K == 0",
"x%K",
"x",
"K",
"0",
"ans = \"OK\"",
"ans",
"\"OK\"",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"keyboard.close()",
"keyboard.close",
"keyboard",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner keyboard = new Scanner(System.in);\n\n\t\tint K = keyboard.nextInt();\n\t\tint A = keyboard.nextInt();\n\t\tint B = keyboard.nextInt();\n\t\t\n\t\tString ans =\"NG\"; \n\t\tfor(int x=A; x<=B; x++) {\n\t\t\tif(x%K == 0)\n\t\t\tans = \"OK\";\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t\tkeyboard.close();\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner keyboard = new Scanner(System.in);\n\n\t\tint K = keyboard.nextInt();\n\t\tint A = keyboard.nextInt();\n\t\tint B = keyboard.nextInt();\n\t\t\n\t\tString ans =\"NG\"; \n\t\tfor(int x=A; x<=B; x++) {\n\t\t\tif(x%K == 0)\n\t\t\tans = \"OK\";\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t\tkeyboard.close();\n\t}\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
int K = keyboard.nextInt();
int A = keyboard.nextInt();
int B = keyboard.nextInt();
String ans ="NG";
for(int x=A; x<=B; x++) {
if(x%K == 0)
ans = "OK";
}
System.out.println(ans);
keyboard.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
20,
41,
13,
20,
2,
17,
17,
41,
13,
20,
12,
13,
30,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
30,
4,
18,
13,
17,
9,
14,
2,
2,
13,
13,
2,
13,
13,
30,
4,
18,
13,
17,
9,
4,
18,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
13,
0,
13,
13,
23,
13,
23,
13,
12,
13,
30,
12,
13,
30,
29,
2,
18,
36,
13,
18,
13,
13,
23,
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
],
[
139,
14
],
[
139,
15
],
[
15,
16
],
[
139,
17
],
[
17,
18
],
[
139,
19
],
[
19,
20
],
[
19,
21
],
[
139,
22
],
[
22,
23
],
[
22,
24
],
[
25,
26
],
[
25,
27
],
[
139,
28
],
[
28,
29
],
[
28,
30
],
[
139,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
37,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
42,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
42,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
59,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
58,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
70,
75
],
[
42,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
84,
89
],
[
42,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
33,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
31,
100
],
[
100,
101
],
[
139,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
102,
106
],
[
106,
107
],
[
102,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
114,
116
],
[
108,
117
],
[
117,
118
],
[
108,
119
],
[
119,
120
],
[
102,
121
],
[
121,
122
],
[
121,
123
],
[
102,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
132,
134
],
[
124,
135
],
[
135,
136
],
[
102,
137
],
[
0,
138
],
[
138,
139
],
[
138,
140
]
] |
[
"\nimport java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Scanner;\n\n\n\npublic class Main {\n\n\tpublic static class pair implements Comparable<pair> {\n\t\tint id;\n\t\tint ans;\n \n\t\tpair(int x, int y) {\n \n\t\t\tid = x;\n\t\t\tans = y;\n \n\t\t}\n \n\t\tpublic pair() {\n \n\t\t}\n \n\t\tpublic int compareTo(pair o) {\n\t\t\t// TODO Auto-generated method stub\n \n\t\t\treturn this.id - o.id;\n\t\t}\n\t}\n \n//\tstatic int mod = (int) 998244353.;\n\tstatic ArrayList<Integer> gr[];\n\tstatic int[] ar;\n\tstatic Scanner sc = new Scanner(System.in);\n\tstatic int pri[] = new int[(int) 1e6 + 5];\n\tstatic StringBuilder out = new StringBuilder();\n \n\t//static long dp[];\n \n\tpublic static void main(String[] args) throws IOException {\n\t\tint t =1;//sc.nextInt();\n\t\t\n\t\twhile (t-- > 0) {\n \n\t\t\tint n=sc.nextInt();\n\t\t\tint a=sc.nextInt();\n\t\t\tint b=sc.nextInt();\n\t\t\tif(a%n==0 || b%n==0) {\n\t\t\t\tout.append(\"OK\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(a/n!=b/n ) {\n\t\t\t\tout.append(\"OK\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tout.append(\"NG\\n\");\n\t\t\t\n\n\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(out);\n\t}\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.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static class pair implements Comparable<pair> {\n\t\tint id;\n\t\tint ans;\n \n\t\tpair(int x, int y) {\n \n\t\t\tid = x;\n\t\t\tans = y;\n \n\t\t}\n \n\t\tpublic pair() {\n \n\t\t}\n \n\t\tpublic int compareTo(pair o) {\n\t\t\t// TODO Auto-generated method stub\n \n\t\t\treturn this.id - o.id;\n\t\t}\n\t}\n \n//\tstatic int mod = (int) 998244353.;\n\tstatic ArrayList<Integer> gr[];\n\tstatic int[] ar;\n\tstatic Scanner sc = new Scanner(System.in);\n\tstatic int pri[] = new int[(int) 1e6 + 5];\n\tstatic StringBuilder out = new StringBuilder();\n \n\t//static long dp[];\n \n\tpublic static void main(String[] args) throws IOException {\n\t\tint t =1;//sc.nextInt();\n\t\t\n\t\twhile (t-- > 0) {\n \n\t\t\tint n=sc.nextInt();\n\t\t\tint a=sc.nextInt();\n\t\t\tint b=sc.nextInt();\n\t\t\tif(a%n==0 || b%n==0) {\n\t\t\t\tout.append(\"OK\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(a/n!=b/n ) {\n\t\t\t\tout.append(\"OK\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tout.append(\"NG\\n\");\n\t\t\t\n\n\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(out);\n\t}\n \n\t\n}",
"Main",
"//\tstatic int mod = (int) 998244353.;\n\tstatic ArrayList<Integer> gr[];",
"gr",
"static int[] ar;",
"ar",
"static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"static int pri[] = new int[(int) 1e6 + 5];",
"pri",
"new int[(int) 1e6 + 5]",
"(int) 1e6 + 5",
"(int) 1e6",
"5",
"static StringBuilder out = new StringBuilder();",
"out",
"new StringBuilder()",
"public static void main(String[] args) throws IOException {\n\t\tint t =1;//sc.nextInt();\n\t\t\n\t\twhile (t-- > 0) {\n \n\t\t\tint n=sc.nextInt();\n\t\t\tint a=sc.nextInt();\n\t\t\tint b=sc.nextInt();\n\t\t\tif(a%n==0 || b%n==0) {\n\t\t\t\tout.append(\"OK\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(a/n!=b/n ) {\n\t\t\t\tout.append(\"OK\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tout.append(\"NG\\n\");\n\t\t\t\n\n\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(out);\n\t}",
"main",
"{\n\t\tint t =1;//sc.nextInt();\n\t\t\n\t\twhile (t-- > 0) {\n \n\t\t\tint n=sc.nextInt();\n\t\t\tint a=sc.nextInt();\n\t\t\tint b=sc.nextInt();\n\t\t\tif(a%n==0 || b%n==0) {\n\t\t\t\tout.append(\"OK\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(a/n!=b/n ) {\n\t\t\t\tout.append(\"OK\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tout.append(\"NG\\n\");\n\t\t\t\n\n\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(out);\n\t}",
"int t =1;",
"t",
"1",
"while (t-- > 0) {\n \n\t\t\tint n=sc.nextInt();\n\t\t\tint a=sc.nextInt();\n\t\t\tint b=sc.nextInt();\n\t\t\tif(a%n==0 || b%n==0) {\n\t\t\t\tout.append(\"OK\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(a/n!=b/n ) {\n\t\t\t\tout.append(\"OK\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tout.append(\"NG\\n\");\n\t\t\t\n\n\t\t\n\t\t}",
"t-- > 0",
"t--",
"t",
"0",
"{\n \n\t\t\tint n=sc.nextInt();\n\t\t\tint a=sc.nextInt();\n\t\t\tint b=sc.nextInt();\n\t\t\tif(a%n==0 || b%n==0) {\n\t\t\t\tout.append(\"OK\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(a/n!=b/n ) {\n\t\t\t\tout.append(\"OK\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tout.append(\"NG\\n\");\n\t\t\t\n\n\t\t\n\t\t}",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a=sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b=sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(a%n==0 || b%n==0) {\n\t\t\t\tout.append(\"OK\\n\");\n\t\t\t\tcontinue;\n\t\t\t}",
"a%n==0 || b%n==0",
"a%n==0",
"a%n",
"a",
"n",
"0",
"b%n==0",
"b%n",
"b",
"n",
"0",
"{\n\t\t\t\tout.append(\"OK\\n\");\n\t\t\t\tcontinue;\n\t\t\t}",
"out.append(\"OK\\n\")",
"out.append",
"out",
"\"OK\\n\"",
"continue;",
"if(a/n!=b/n ) {\n\t\t\t\tout.append(\"OK\\n\");\n\t\t\t\tcontinue;\n\t\t\t}",
"a/n!=b/n",
"a/n",
"a",
"n",
"b/n",
"b",
"n",
"{\n\t\t\t\tout.append(\"OK\\n\");\n\t\t\t\tcontinue;\n\t\t\t}",
"out.append(\"OK\\n\")",
"out.append",
"out",
"\"OK\\n\"",
"continue;",
"out.append(\"NG\\n\")",
"out.append",
"out",
"\"NG\\n\"",
"System.out.println(out)",
"System.out.println",
"System.out",
"System",
"System.out",
"out",
"String[] args",
"args",
"public static class pair implements Comparable<pair> {\n\t\tint id;\n\t\tint ans;\n \n\t\tpair(int x, int y) {\n \n\t\t\tid = x;\n\t\t\tans = y;\n \n\t\t}\n \n\t\tpublic pair() {\n \n\t\t}\n \n\t\tpublic int compareTo(pair o) {\n\t\t\t// TODO Auto-generated method stub\n \n\t\t\treturn this.id - o.id;\n\t\t}\n\t}",
"pair",
"int id;",
"id",
"int ans;",
"ans",
"pair(int x, int y) {\n \n\t\t\tid = x;\n\t\t\tans = y;\n \n\t\t}",
"pair",
"{\n \n\t\t\tid = x;\n\t\t\tans = y;\n \n\t\t}",
"id = x",
"id",
"x",
"ans = y",
"ans",
"y",
"int x",
"x",
"int y",
"y",
"public pair() {\n \n\t\t}",
"pair",
"{\n \n\t\t}",
"public int compareTo(pair o) {\n\t\t\t// TODO Auto-generated method stub\n \n\t\t\treturn this.id - o.id;\n\t\t}",
"compareTo",
"{\n\t\t\t// TODO Auto-generated method stub\n \n\t\t\treturn this.id - o.id;\n\t\t}",
"return this.id - o.id;",
"this.id - o.id",
"this.id",
"this",
"this.id",
"o.id",
"o",
"o.id",
"pair o",
"o",
"Comparable",
"public class Main {\n\n\tpublic static class pair implements Comparable<pair> {\n\t\tint id;\n\t\tint ans;\n \n\t\tpair(int x, int y) {\n \n\t\t\tid = x;\n\t\t\tans = y;\n \n\t\t}\n \n\t\tpublic pair() {\n \n\t\t}\n \n\t\tpublic int compareTo(pair o) {\n\t\t\t// TODO Auto-generated method stub\n \n\t\t\treturn this.id - o.id;\n\t\t}\n\t}\n \n//\tstatic int mod = (int) 998244353.;\n\tstatic ArrayList<Integer> gr[];\n\tstatic int[] ar;\n\tstatic Scanner sc = new Scanner(System.in);\n\tstatic int pri[] = new int[(int) 1e6 + 5];\n\tstatic StringBuilder out = new StringBuilder();\n \n\t//static long dp[];\n \n\tpublic static void main(String[] args) throws IOException {\n\t\tint t =1;//sc.nextInt();\n\t\t\n\t\twhile (t-- > 0) {\n \n\t\t\tint n=sc.nextInt();\n\t\t\tint a=sc.nextInt();\n\t\t\tint b=sc.nextInt();\n\t\t\tif(a%n==0 || b%n==0) {\n\t\t\t\tout.append(\"OK\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(a/n!=b/n ) {\n\t\t\t\tout.append(\"OK\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tout.append(\"NG\\n\");\n\t\t\t\n\n\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(out);\n\t}\n \n\t\n}",
"public class Main {\n\n\tpublic static class pair implements Comparable<pair> {\n\t\tint id;\n\t\tint ans;\n \n\t\tpair(int x, int y) {\n \n\t\t\tid = x;\n\t\t\tans = y;\n \n\t\t}\n \n\t\tpublic pair() {\n \n\t\t}\n \n\t\tpublic int compareTo(pair o) {\n\t\t\t// TODO Auto-generated method stub\n \n\t\t\treturn this.id - o.id;\n\t\t}\n\t}\n \n//\tstatic int mod = (int) 998244353.;\n\tstatic ArrayList<Integer> gr[];\n\tstatic int[] ar;\n\tstatic Scanner sc = new Scanner(System.in);\n\tstatic int pri[] = new int[(int) 1e6 + 5];\n\tstatic StringBuilder out = new StringBuilder();\n \n\t//static long dp[];\n \n\tpublic static void main(String[] args) throws IOException {\n\t\tint t =1;//sc.nextInt();\n\t\t\n\t\twhile (t-- > 0) {\n \n\t\t\tint n=sc.nextInt();\n\t\t\tint a=sc.nextInt();\n\t\t\tint b=sc.nextInt();\n\t\t\tif(a%n==0 || b%n==0) {\n\t\t\t\tout.append(\"OK\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(a/n!=b/n ) {\n\t\t\t\tout.append(\"OK\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tout.append(\"NG\\n\");\n\t\t\t\n\n\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(out);\n\t}\n \n\t\n}",
"Main"
] |
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static class pair implements Comparable<pair> {
int id;
int ans;
pair(int x, int y) {
id = x;
ans = y;
}
public pair() {
}
public int compareTo(pair o) {
// TODO Auto-generated method stub
return this.id - o.id;
}
}
// static int mod = (int) 998244353.;
static ArrayList<Integer> gr[];
static int[] ar;
static Scanner sc = new Scanner(System.in);
static int pri[] = new int[(int) 1e6 + 5];
static StringBuilder out = new StringBuilder();
//static long dp[];
public static void main(String[] args) throws IOException {
int t =1;//sc.nextInt();
while (t-- > 0) {
int n=sc.nextInt();
int a=sc.nextInt();
int b=sc.nextInt();
if(a%n==0 || b%n==0) {
out.append("OK\n");
continue;
}
if(a/n!=b/n ) {
out.append("OK\n");
continue;
}
out.append("NG\n");
}
System.out.println(out);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
3,
14,
13,
30,
4,
13,
17,
30,
4,
13,
17,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
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
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
8,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
54,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
6,
64
],
[
64,
65
],
[
4,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
66,
75
],
[
75,
76
],
[
4,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
77,
86
],
[
86,
87
]
] |
[
"import java.util.*;\nclass Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt(),a = sc.nextInt(),b = sc.nextInt();\n boolean flg=false;\n for(int i=a;i<=b;i++){\n if(i%k==0){\n flg=true;\n break;\n }\n }\n if(flg){\n pl(\"OK\");\n }else{\n pl(\"NG\");\n }\n }\n\n public static void pr(String str){\n System.out.print(str);\n }\n public static void pl(String str){\n System.out.println(str);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt(),a = sc.nextInt(),b = sc.nextInt();\n boolean flg=false;\n for(int i=a;i<=b;i++){\n if(i%k==0){\n flg=true;\n break;\n }\n }\n if(flg){\n pl(\"OK\");\n }else{\n pl(\"NG\");\n }\n }\n\n public static void pr(String str){\n System.out.print(str);\n }\n public static void pl(String str){\n System.out.println(str);\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt(),a = sc.nextInt(),b = sc.nextInt();\n boolean flg=false;\n for(int i=a;i<=b;i++){\n if(i%k==0){\n flg=true;\n break;\n }\n }\n if(flg){\n pl(\"OK\");\n }else{\n pl(\"NG\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt(),a = sc.nextInt(),b = sc.nextInt();\n boolean flg=false;\n for(int i=a;i<=b;i++){\n if(i%k==0){\n flg=true;\n break;\n }\n }\n if(flg){\n pl(\"OK\");\n }else{\n pl(\"NG\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt()",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a = sc.nextInt()",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"boolean flg=false;",
"flg",
"false",
"for(int i=a;i<=b;i++){\n if(i%k==0){\n flg=true;\n break;\n }\n }",
"int i=a;",
"int i=a;",
"i",
"a",
"i<=b",
"i",
"b",
"i++",
"i++",
"i",
"{\n if(i%k==0){\n flg=true;\n break;\n }\n }",
"{\n if(i%k==0){\n flg=true;\n break;\n }\n }",
"if(i%k==0){\n flg=true;\n break;\n }",
"i%k==0",
"i%k",
"i",
"k",
"0",
"{\n flg=true;\n break;\n }",
"flg=true",
"flg",
"true",
"break;",
"if(flg){\n pl(\"OK\");\n }else{\n pl(\"NG\");\n }",
"flg",
"{\n pl(\"OK\");\n }",
"pl(\"OK\")",
"pl",
"\"OK\"",
"{\n pl(\"NG\");\n }",
"pl(\"NG\")",
"pl",
"\"NG\"",
"String args[]",
"args",
"public static void pr(String str){\n System.out.print(str);\n }",
"pr",
"{\n System.out.print(str);\n }",
"System.out.print(str)",
"System.out.print",
"System.out",
"System",
"System.out",
"str",
"String str",
"str",
"public static void pl(String str){\n System.out.println(str);\n }",
"pl",
"{\n System.out.println(str);\n }",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"String str",
"str"
] |
import java.util.*;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int k = sc.nextInt(),a = sc.nextInt(),b = sc.nextInt();
boolean flg=false;
for(int i=a;i<=b;i++){
if(i%k==0){
flg=true;
break;
}
}
if(flg){
pl("OK");
}else{
pl("NG");
}
}
public static void pr(String str){
System.out.print(str);
}
public static void pl(String str){
System.out.println(str);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
41,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
0,
13,
17,
14,
13,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
23,
13,
6,
13,
41,
13,
18,
13,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
14,
2,
13,
13,
30,
29,
17,
30,
0,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
17,
29,
17,
12,
13,
30,
14,
4,
13,
29,
18,
13,
40,
13,
29,
40,
17,
12,
13,
30,
29,
2,
2,
17,
13,
2,
13,
17,
23,
13,
12,
13,
30,
42,
2,
4,
13,
40,
4,
13,
18,
13,
13,
40,
13,
12,
13,
30,
4,
13,
29,
4,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
20,
41,
13,
4,
13,
42,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
14,
2,
2,
13,
17,
2,
17,
13,
30,
37,
20,
42,
17,
30,
14,
2,
2,
17,
13,
2,
13,
17,
30,
0,
13,
17,
0,
13,
2,
13,
17,
14,
2,
2,
13,
40,
17,
40,
4,
13,
13,
30,
29,
8,
13,
40,
13,
13,
30,
37,
20,
0,
13,
4,
13,
12,
13,
30,
29,
4,
13,
12,
13,
30,
14,
13,
30,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
14,
13,
30,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
23,
13,
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
],
[
457,
17
],
[
457,
18
],
[
18,
19
],
[
18,
20
],
[
457,
21
],
[
21,
22
],
[
21,
23
],
[
457,
24
],
[
24,
25
],
[
457,
26
],
[
26,
27
],
[
457,
28
],
[
28,
29
],
[
457,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
32,
48
],
[
48,
49
],
[
48,
50
],
[
32,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
51,
62
],
[
63,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
64,
70
],
[
70,
71
],
[
70,
72
],
[
32,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
73,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
32,
83
],
[
83,
84
],
[
84,
85
],
[
30,
86
],
[
86,
87
],
[
457,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
92,
94
],
[
88,
95
],
[
95,
96
],
[
95,
97
],
[
88,
99
],
[
99,
100
],
[
99,
101
],
[
88,
102
],
[
102,
103
],
[
102,
104
],
[
88,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
112,
113
],
[
113,
114
],
[
108,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
119,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
115,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
137,
138
],
[
138,
139
],
[
107,
140
],
[
140,
141
],
[
88,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
145,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
145,
153
],
[
153,
154
],
[
154,
155
],
[
88,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
164,
165
],
[
164,
166
],
[
156,
167
],
[
167,
168
],
[
88,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
173,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
179,
181
],
[
172,
182
],
[
182,
183
],
[
88,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
187,
188
],
[
186,
189
],
[
189,
190
],
[
190,
191
],
[
88,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
195,
199
],
[
199,
200
],
[
194,
201
],
[
201,
202
],
[
201,
203
],
[
194,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
194,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
213,
216
],
[
212,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
194,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
88,
225
],
[
225,
226
],
[
225,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
229,
232
],
[
232,
233
],
[
88,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
237,
241
],
[
241,
242
],
[
236,
243
],
[
243,
244
],
[
243,
245
],
[
236,
246
],
[
246,
247
],
[
246,
248
],
[
236,
249
],
[
249,
250
],
[
249,
251
],
[
251,
252
],
[
236,
253
],
[
253,
254
],
[
254,
255
],
[
254,
256
],
[
253,
257
],
[
257,
258
],
[
258,
259
],
[
258,
260
],
[
257,
261
],
[
261,
262
],
[
261,
263
],
[
263,
264
],
[
236,
265
],
[
265,
266
],
[
266,
267
],
[
267,
268
],
[
267,
269
],
[
266,
270
],
[
270,
271
],
[
270,
272
],
[
265,
273
],
[
273,
274
],
[
274,
275
],
[
236,
276
],
[
276,
277
],
[
276,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
281,
282
],
[
281,
283
],
[
280,
284
],
[
284,
285
],
[
284,
286
],
[
279,
287
],
[
287,
288
],
[
288,
289
],
[
288,
290
],
[
287,
291
],
[
291,
292
],
[
291,
293
],
[
293,
294
],
[
293,
295
],
[
279,
296
],
[
296,
297
],
[
297,
298
],
[
298,
299
],
[
298,
300
],
[
300,
301
],
[
297,
302
],
[
302,
303
],
[
303,
304
],
[
303,
305
],
[
296,
306
],
[
306,
307
],
[
307,
308
],
[
308,
309
],
[
308,
310
],
[
310,
311
],
[
308,
312
],
[
296,
313
],
[
313,
314
],
[
314,
315
],
[
278,
316
],
[
316,
317
],
[
316,
318
],
[
318,
319
],
[
88,
320
],
[
320,
321
],
[
320,
322
],
[
322,
323
],
[
323,
324
],
[
324,
325
],
[
88,
326
],
[
326,
327
],
[
326,
328
],
[
328,
329
],
[
329,
330
],
[
329,
331
],
[
331,
332
],
[
332,
333
],
[
332,
334
],
[
335,
336
],
[
335,
337
],
[
331,
338
],
[
338,
339
],
[
339,
340
],
[
340,
341
],
[
340,
342
],
[
338,
343
],
[
343,
344
],
[
343,
345
],
[
338,
346
],
[
346,
347
],
[
347,
348
],
[
338,
349
],
[
350,
350
],
[
350,
351
],
[
351,
352
],
[
352,
353
],
[
352,
354
],
[
351,
355
],
[
355,
356
],
[
356,
357
],
[
331,
358
],
[
358,
359
],
[
329,
360
],
[
360,
361
],
[
361,
362
],
[
361,
363
],
[
360,
365
],
[
365,
366
],
[
366,
367
],
[
367,
368
],
[
367,
369
],
[
365,
370
],
[
370,
371
],
[
370,
372
],
[
365,
373
],
[
373,
374
],
[
374,
375
],
[
365,
376
],
[
377,
377
],
[
377,
378
],
[
378,
379
],
[
379,
380
],
[
379,
381
],
[
378,
382
],
[
382,
383
],
[
383,
384
],
[
360,
385
],
[
385,
386
],
[
326,
387
],
[
387,
388
],
[
326,
389
],
[
389,
390
],
[
88,
391
],
[
391,
392
],
[
391,
393
],
[
393,
394
],
[
394,
395
],
[
394,
396
],
[
396,
397
],
[
397,
398
],
[
397,
399
],
[
400,
401
],
[
400,
402
],
[
396,
403
],
[
403,
404
],
[
404,
405
],
[
405,
406
],
[
405,
407
],
[
403,
408
],
[
408,
409
],
[
408,
410
],
[
403,
411
],
[
411,
412
],
[
412,
413
],
[
403,
414
],
[
415,
415
],
[
415,
416
],
[
416,
417
],
[
417,
418
],
[
417,
419
],
[
416,
420
],
[
420,
421
],
[
421,
422
],
[
396,
423
],
[
423,
424
],
[
394,
425
],
[
425,
426
],
[
426,
427
],
[
426,
428
],
[
425,
430
],
[
430,
431
],
[
431,
432
],
[
432,
433
],
[
432,
434
],
[
430,
435
],
[
435,
436
],
[
435,
437
],
[
430,
438
],
[
438,
439
],
[
439,
440
],
[
430,
441
],
[
442,
442
],
[
442,
443
],
[
443,
444
],
[
444,
445
],
[
444,
446
],
[
443,
447
],
[
447,
448
],
[
448,
449
],
[
425,
450
],
[
450,
451
],
[
391,
452
],
[
452,
453
],
[
391,
454
],
[
454,
455
],
[
0,
456
],
[
456,
457
],
[
456,
458
]
] |
[
"import java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.HashMap;\nimport java.util.NoSuchElementException;\n\n\npublic class Main{\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\t//static PriorityQueue <Integer> q ;\n\t//static Deque <Integer> q;\n\t//Deque deque = new LinkedList();\n\tstatic HashMap <Integer, Integer> map;\n\tstatic int n;\n\t//static final int mod = 1_000_000_007;\n\t//static int ROW;\n\t//static int COL;\n\t//static final int[] dx = {0,1,0,-1};\n\t//static final int[] dy = {-1,0,1,0};\n\t//static int max_d;\n\tstatic int [] dp;\t\t\t\t\n\t\n\tpublic static void main(String[] args) {\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\t\n\t\tboolean c = false;\n\t\tfor (int i=a; i<=b; i++) {\n\t\t\tif (i%k==0) \n\t\t\t\tc = true;\n\t\t}\n\t\t\n\t\tif (c)\n\t\t\tout.println(\"OK\");\n\t\t\n\t\telse\n\t\t\tout.println(\"NG\");\n\t\tout.flush();\n\t\t\n\t}\n\n\t\n\tstatic class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\t \n\t public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t }\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.NoSuchElementException;",
"NoSuchElementException",
"java.util",
"public class Main{\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\t//static PriorityQueue <Integer> q ;\n\t//static Deque <Integer> q;\n\t//Deque deque = new LinkedList();\n\tstatic HashMap <Integer, Integer> map;\n\tstatic int n;\n\t//static final int mod = 1_000_000_007;\n\t//static int ROW;\n\t//static int COL;\n\t//static final int[] dx = {0,1,0,-1};\n\t//static final int[] dy = {-1,0,1,0};\n\t//static int max_d;\n\tstatic int [] dp;\t\t\t\t\n\t\n\tpublic static void main(String[] args) {\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\t\n\t\tboolean c = false;\n\t\tfor (int i=a; i<=b; i++) {\n\t\t\tif (i%k==0) \n\t\t\t\tc = true;\n\t\t}\n\t\t\n\t\tif (c)\n\t\t\tout.println(\"OK\");\n\t\t\n\t\telse\n\t\t\tout.println(\"NG\");\n\t\tout.flush();\n\t\t\n\t}\n\n\t\n\tstatic class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\t \n\t public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t }\n}",
"Main",
"static FastScanner sc = new FastScanner();",
"sc",
"new FastScanner()",
"static PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"//static PriorityQueue <Integer> q ;\n\t//static Deque <Integer> q;\n\t//Deque deque = new LinkedList();\n\tstatic HashMap <Integer, Integer> map;",
"map",
"static int n;",
"n",
"//static final int mod = 1_000_000_007;\n\t//static int ROW;\n\t//static int COL;\n\t//static final int[] dx = {0,1,0,-1};\n\t//static final int[] dy = {-1,0,1,0};\n\t//static int max_d;\n\tstatic int [] dp;",
"dp",
"public static void main(String[] args) {\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\t\n\t\tboolean c = false;\n\t\tfor (int i=a; i<=b; i++) {\n\t\t\tif (i%k==0) \n\t\t\t\tc = true;\n\t\t}\n\t\t\n\t\tif (c)\n\t\t\tout.println(\"OK\");\n\t\t\n\t\telse\n\t\t\tout.println(\"NG\");\n\t\tout.flush();\n\t\t\n\t}",
"main",
"{\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\t\n\t\tboolean c = false;\n\t\tfor (int i=a; i<=b; i++) {\n\t\t\tif (i%k==0) \n\t\t\t\tc = true;\n\t\t}\n\t\t\n\t\tif (c)\n\t\t\tout.println(\"OK\");\n\t\t\n\t\telse\n\t\t\tout.println(\"NG\");\n\t\tout.flush();\n\t\t\n\t}",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"boolean c = false;",
"c",
"false",
"for (int i=a; i<=b; i++) {\n\t\t\tif (i%k==0) \n\t\t\t\tc = true;\n\t\t}",
"int i=a;",
"int i=a;",
"i",
"a",
"i<=b",
"i",
"b",
"i++",
"i++",
"i",
"{\n\t\t\tif (i%k==0) \n\t\t\t\tc = true;\n\t\t}",
"{\n\t\t\tif (i%k==0) \n\t\t\t\tc = true;\n\t\t}",
"if (i%k==0) \n\t\t\t\tc = true;",
"i%k==0",
"i%k",
"i",
"k",
"0",
"c = true",
"c",
"true",
"if (c)\n\t\t\tout.println(\"OK\");\n\t\t\n\t\telse\n\t\t\tout.println(\"NG\");",
"c",
"out.println(\"OK\")",
"out.println",
"out",
"\"OK\"",
"out.println(\"NG\")",
"out.println",
"out",
"\"NG\"",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"static class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\t \n\t public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t }",
"FastScanner",
"private final InputStream in = System.in;",
"in",
"System.in",
"System",
"System.in",
"private final byte[] buffer = new byte[1024];",
"buffer",
"new byte[1024]",
"1024",
"private int ptr = 0;",
"ptr",
"0",
"private int buflen = 0;",
"buflen",
"0",
"private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }",
"hasNextByte",
"{\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }",
"if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }",
"ptr < buflen",
"ptr",
"buflen",
"{\n\t return true;\n\t }",
"return true;",
"true",
"{\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }",
"ptr = 0",
"ptr",
"0",
"try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }",
"catch (IOException e) {\n\t e.printStackTrace();\n\t }",
"IOException e",
"{\n\t e.printStackTrace();\n\t }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t buflen = in.read(buffer);\n\t }",
"buflen = in.read(buffer)",
"buflen",
"in.read(buffer)",
"in.read",
"in",
"buffer",
"if (buflen <= 0) {\n\t return false;\n\t }",
"buflen <= 0",
"buflen",
"0",
"{\n\t return false;\n\t }",
"return false;",
"false",
"return true;",
"true",
"private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }",
"readByte",
"{\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }",
"if (hasNextByte()) return buffer[ptr++];\n\t else return -1;",
"hasNextByte()",
"hasNextByte",
"return buffer[ptr++];",
"buffer[ptr++]",
"buffer",
"ptr++",
"ptr",
"return -1;",
"-1",
"1",
"private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }",
"isPrintableChar",
"{\n\t return 33 <= c && c <= 126;\n\t }",
"return 33 <= c && c <= 126;",
"33 <= c && c <= 126",
"33 <= c",
"33",
"c",
"c <= 126",
"c",
"126",
"int c",
"c",
"private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }",
"skipUnprintable",
"{\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }",
"while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;",
"hasNextByte() && !isPrintableChar(buffer[ptr])",
"hasNextByte()",
"hasNextByte",
"!isPrintableChar(buffer[ptr])",
"isPrintableChar(buffer[ptr])",
"isPrintableChar",
"buffer[ptr]",
"buffer",
"ptr",
"ptr++",
"ptr",
"public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }",
"hasNext",
"{\n\t skipUnprintable();\n\t return hasNextByte();\n\t }",
"skipUnprintable()",
"skipUnprintable",
"return hasNextByte();",
"hasNextByte()",
"hasNextByte",
"public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }",
"next",
"{\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }",
"if (!hasNext()) throw new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }",
"sb.appendCodePoint(b)",
"sb.appendCodePoint",
"sb",
"b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }",
"nextDouble",
"{\n\t \treturn Double.parseDouble(next());\n\t }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }",
"nextLong",
"{\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }",
"if (!hasNext()) throw new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"long n = 0;",
"n",
"0",
"boolean minus = false;",
"minus",
"false",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }",
"b == '-'",
"b",
"'-'",
"{\n\t minus = true;\n\t b = readByte();\n\t }",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }",
"b < '0' || '9' < b",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"{\n\t throw new NumberFormatException();\n\t }",
"throw new NumberFormatException();",
"new NumberFormatException()",
"while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }",
"true",
"{\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }",
"if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }",
"'0' <= b && b <= '9'",
"'0' <= b",
"'0'",
"b",
"b <= '9'",
"b",
"'9'",
"{\n\t n *= 10;\n\t n += b - '0';\n\t }",
"n *= 10",
"n",
"10",
"n += b - '0'",
"n",
"b - '0'",
"b",
"'0'",
"if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }",
"b == -1 || !isPrintableChar(b)",
"b == -1",
"b",
"-1",
"1",
"!isPrintableChar(b)",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n\t return minus ? -n : n;\n\t }",
"return minus ? -n : n;",
"minus ? -n : n",
"minus",
"-n",
"n",
"n",
"{\n\t throw new NumberFormatException();\n\t }",
"throw new NumberFormatException();",
"new NumberFormatException()",
"b = readByte()",
"b",
"readByte()",
"readByte",
"public int nextInt() {\n\t return (int) nextLong();\n\t }",
"nextInt",
"{\n\t return (int) nextLong();\n\t }",
"return (int) nextLong();",
"(int) nextLong()",
"nextLong",
"public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }",
"nextIntArray",
"{\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }",
"if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }",
"oneBased",
"{\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }",
"int[] array = new int[N + 1];",
"array",
"new int[N + 1]",
"N + 1",
"N",
"1",
"for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t array[i] = sc.nextInt();\n\t }",
"{\n\t array[i] = sc.nextInt();\n\t }",
"array[i] = sc.nextInt()",
"array[i]",
"array",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"return array;",
"array",
"{\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }",
"int[] array = new int[N];",
"array",
"new int[N]",
"N",
"for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t array[i] = sc.nextInt();\n\t }",
"{\n\t array[i] = sc.nextInt();\n\t }",
"array[i] = sc.nextInt()",
"array[i]",
"array",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"return array;",
"array",
"int N",
"N",
"boolean oneBased",
"oneBased",
"public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }",
"nextLongArray",
"{\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }",
"if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }",
"oneBased",
"{\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }",
"long[] array = new long[N + 1];",
"array",
"new long[N + 1]",
"N + 1",
"N",
"1",
"for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t array[i] = sc.nextLong();\n\t }",
"{\n\t array[i] = sc.nextLong();\n\t }",
"array[i] = sc.nextLong()",
"array[i]",
"array",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"return array;",
"array",
"{\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }",
"long[] array = new long[N];",
"array",
"new long[N]",
"N",
"for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t array[i] = sc.nextLong();\n\t }",
"{\n\t array[i] = sc.nextLong();\n\t }",
"array[i] = sc.nextLong()",
"array[i]",
"array",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"return array;",
"array",
"int N",
"N",
"boolean oneBased",
"oneBased",
"public class Main{\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\t//static PriorityQueue <Integer> q ;\n\t//static Deque <Integer> q;\n\t//Deque deque = new LinkedList();\n\tstatic HashMap <Integer, Integer> map;\n\tstatic int n;\n\t//static final int mod = 1_000_000_007;\n\t//static int ROW;\n\t//static int COL;\n\t//static final int[] dx = {0,1,0,-1};\n\t//static final int[] dy = {-1,0,1,0};\n\t//static int max_d;\n\tstatic int [] dp;\t\t\t\t\n\t\n\tpublic static void main(String[] args) {\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\t\n\t\tboolean c = false;\n\t\tfor (int i=a; i<=b; i++) {\n\t\t\tif (i%k==0) \n\t\t\t\tc = true;\n\t\t}\n\t\t\n\t\tif (c)\n\t\t\tout.println(\"OK\");\n\t\t\n\t\telse\n\t\t\tout.println(\"NG\");\n\t\tout.flush();\n\t\t\n\t}\n\n\t\n\tstatic class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\t \n\t public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t }\n}",
"public class Main{\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\t//static PriorityQueue <Integer> q ;\n\t//static Deque <Integer> q;\n\t//Deque deque = new LinkedList();\n\tstatic HashMap <Integer, Integer> map;\n\tstatic int n;\n\t//static final int mod = 1_000_000_007;\n\t//static int ROW;\n\t//static int COL;\n\t//static final int[] dx = {0,1,0,-1};\n\t//static final int[] dy = {-1,0,1,0};\n\t//static int max_d;\n\tstatic int [] dp;\t\t\t\t\n\t\n\tpublic static void main(String[] args) {\n\t\tint k = sc.nextInt();\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\t\n\t\tboolean c = false;\n\t\tfor (int i=a; i<=b; i++) {\n\t\t\tif (i%k==0) \n\t\t\t\tc = true;\n\t\t}\n\t\t\n\t\tif (c)\n\t\t\tout.println(\"OK\");\n\t\t\n\t\telse\n\t\t\tout.println(\"NG\");\n\t\tout.flush();\n\t\t\n\t}\n\n\t\n\tstatic class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\t \n\t public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t }\n}",
"Main"
] |
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.NoSuchElementException;
public class Main{
static FastScanner sc = new FastScanner();
static PrintWriter out = new PrintWriter(System.out);
//static PriorityQueue <Integer> q ;
//static Deque <Integer> q;
//Deque deque = new LinkedList();
static HashMap <Integer, Integer> map;
static int n;
//static final int mod = 1_000_000_007;
//static int ROW;
//static int COL;
//static final int[] dx = {0,1,0,-1};
//static final int[] dy = {-1,0,1,0};
//static int max_d;
static int [] dp;
public static void main(String[] args) {
int k = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
boolean c = false;
for (int i=a; i<=b; i++) {
if (i%k==0)
c = true;
}
if (c)
out.println("OK");
else
out.println("NG");
out.flush();
}
static class FastScanner {
private final InputStream in = System.in;
private final byte[] buffer = new byte[1024];
private int ptr = 0;
private int buflen = 0;
private boolean hasNextByte() {
if (ptr < buflen) {
return true;
} else {
ptr = 0;
try {
buflen = in.read(buffer);
} catch (IOException e) {
e.printStackTrace();
}
if (buflen <= 0) {
return false;
}
}
return true;
}
private int readByte() {
if (hasNextByte()) return buffer[ptr++];
else return -1;
}
private static boolean isPrintableChar(int c) {
return 33 <= c && c <= 126;
}
private void skipUnprintable() {
while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;
}
public boolean hasNext() {
skipUnprintable();
return hasNextByte();
}
public String next() {
if (!hasNext()) throw new NoSuchElementException();
StringBuilder sb = new StringBuilder();
int b = readByte();
while (isPrintableChar(b)) {
sb.appendCodePoint(b);
b = readByte();
}
return sb.toString();
}
public double nextDouble () {
return Double.parseDouble(next());
}
public long nextLong() {
if (!hasNext()) throw new NoSuchElementException();
long n = 0;
boolean minus = false;
int b = readByte();
if (b == '-') {
minus = true;
b = readByte();
}
if (b < '0' || '9' < b) {
throw new NumberFormatException();
}
while (true) {
if ('0' <= b && b <= '9') {
n *= 10;
n += b - '0';
} else if (b == -1 || !isPrintableChar(b)) {
return minus ? -n : n;
} else {
throw new NumberFormatException();
}
b = readByte();
}
}
public int nextInt() {
return (int) nextLong();
}
public int[] nextIntArray(int N, boolean oneBased) {
if (oneBased) {
int[] array = new int[N + 1];
for (int i = 1; i <= N; i++) {
array[i] = sc.nextInt();
}
return array;
} else {
int[] array = new int[N];
for (int i = 0; i < N; i++) {
array[i] = sc.nextInt();
}
return array;
}
}
public long[] nextLongArray(int N, boolean oneBased) {
if (oneBased) {
long[] array = new long[N + 1];
for (int i = 1; i <= N; i++) {
array[i] = sc.nextLong();
}
return array;
} else {
long[] array = new long[N];
for (int i = 0; i < N; i++) {
array[i] = sc.nextLong();
}
return array;
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
13,
2,
13,
13,
1,
0,
13,
13,
30,
30,
14,
2,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
29,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
66,
5
],
[
66,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
27,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
49,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
6,
63
],
[
63,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n final Scanner sc = new Scanner(System.in);\n\n final int k = sc.nextInt();\n final int a = sc.nextInt();\n final int b = sc.nextInt();\n\n for (int i = k; i <= b; i += k) {\n if (a <= i && i <= b) {\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n final Scanner sc = new Scanner(System.in);\n\n final int k = sc.nextInt();\n final int a = sc.nextInt();\n final int b = sc.nextInt();\n\n for (int i = k; i <= b; i += k) {\n if (a <= i && i <= b) {\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n }\n}",
"Main",
"public static void main(String[] args) {\n final Scanner sc = new Scanner(System.in);\n\n final int k = sc.nextInt();\n final int a = sc.nextInt();\n final int b = sc.nextInt();\n\n for (int i = k; i <= b; i += k) {\n if (a <= i && i <= b) {\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n }",
"main",
"{\n final Scanner sc = new Scanner(System.in);\n\n final int k = sc.nextInt();\n final int a = sc.nextInt();\n final int b = sc.nextInt();\n\n for (int i = k; i <= b; i += k) {\n if (a <= i && i <= b) {\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n }",
"final Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"final int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"final int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"final int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = k; i <= b; i += k) {\n if (a <= i && i <= b) {\n System.out.println(\"OK\");\n return;\n }\n }",
"int i = k;",
"int i = k;",
"i",
"k",
"i <= b",
"i",
"b",
"i += k",
"i += k",
"i",
"k",
"{\n if (a <= i && i <= b) {\n System.out.println(\"OK\");\n return;\n }\n }",
"{\n if (a <= i && i <= b) {\n System.out.println(\"OK\");\n return;\n }\n }",
"if (a <= i && i <= b) {\n System.out.println(\"OK\");\n return;\n }",
"a <= i && i <= b",
"a <= i",
"a",
"i",
"i <= b",
"i",
"b",
"{\n System.out.println(\"OK\");\n return;\n }",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"return;",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n final Scanner sc = new Scanner(System.in);\n\n final int k = sc.nextInt();\n final int a = sc.nextInt();\n final int b = sc.nextInt();\n\n for (int i = k; i <= b; i += k) {\n if (a <= i && i <= b) {\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n final Scanner sc = new Scanner(System.in);\n\n final int k = sc.nextInt();\n final int a = sc.nextInt();\n final int b = sc.nextInt();\n\n for (int i = k; i <= b; i += k) {\n if (a <= i && i <= b) {\n System.out.println(\"OK\");\n return;\n }\n }\n System.out.println(\"NG\");\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
final Scanner sc = new Scanner(System.in);
final int k = sc.nextInt();
final int a = sc.nextInt();
final int b = sc.nextInt();
for (int i = k; i <= b; i += k) {
if (a <= i && i <= b) {
System.out.println("OK");
return;
}
}
System.out.println("NG");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
13,
13,
14,
2,
2,
13,
13,
2,
13,
13,
30,
0,
13,
17,
3,
0,
13,
17,
41,
13,
4,
18,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
106,
5
],
[
106,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
8,
48
],
[
48,
49
],
[
48,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
51,
62
],
[
63,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
63,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
63,
82
],
[
82,
83
],
[
82,
84
],
[
8,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
8,
91
],
[
91,
92
],
[
91,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
8,
100
],
[
100,
101
],
[
101,
102
],
[
6,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str1 = scan.nextLine();\n String str2 = scan.next();\n String str3 = scan.next(); \n \n int num1 = Integer.parseInt(str1);\n int num2 = Integer.parseInt(str2);\n int num3 = Integer.parseInt(str3); \n\n int sum = 0;\n String str4 = \"\";\n \n for(int i=1;i<=1000;i++) {\n sum = num1 * i;\n if(num2 <= sum && num3 >= sum) {\n str4 = \"OK\";\n break;\n }\n str4 = \"NG\";\n }\n String str = String.valueOf(num1);\n str = str4;\n System.out.println(str);\n scan.close(); \n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str1 = scan.nextLine();\n String str2 = scan.next();\n String str3 = scan.next(); \n \n int num1 = Integer.parseInt(str1);\n int num2 = Integer.parseInt(str2);\n int num3 = Integer.parseInt(str3); \n\n int sum = 0;\n String str4 = \"\";\n \n for(int i=1;i<=1000;i++) {\n sum = num1 * i;\n if(num2 <= sum && num3 >= sum) {\n str4 = \"OK\";\n break;\n }\n str4 = \"NG\";\n }\n String str = String.valueOf(num1);\n str = str4;\n System.out.println(str);\n scan.close(); \n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str1 = scan.nextLine();\n String str2 = scan.next();\n String str3 = scan.next(); \n \n int num1 = Integer.parseInt(str1);\n int num2 = Integer.parseInt(str2);\n int num3 = Integer.parseInt(str3); \n\n int sum = 0;\n String str4 = \"\";\n \n for(int i=1;i<=1000;i++) {\n sum = num1 * i;\n if(num2 <= sum && num3 >= sum) {\n str4 = \"OK\";\n break;\n }\n str4 = \"NG\";\n }\n String str = String.valueOf(num1);\n str = str4;\n System.out.println(str);\n scan.close(); \n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n String str1 = scan.nextLine();\n String str2 = scan.next();\n String str3 = scan.next(); \n \n int num1 = Integer.parseInt(str1);\n int num2 = Integer.parseInt(str2);\n int num3 = Integer.parseInt(str3); \n\n int sum = 0;\n String str4 = \"\";\n \n for(int i=1;i<=1000;i++) {\n sum = num1 * i;\n if(num2 <= sum && num3 >= sum) {\n str4 = \"OK\";\n break;\n }\n str4 = \"NG\";\n }\n String str = String.valueOf(num1);\n str = str4;\n System.out.println(str);\n scan.close(); \n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String str1 = scan.nextLine();",
"str1",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String str2 = scan.next();",
"str2",
"scan.next()",
"scan.next",
"scan",
"String str3 = scan.next();",
"str3",
"scan.next()",
"scan.next",
"scan",
"int num1 = Integer.parseInt(str1);",
"num1",
"Integer.parseInt(str1)",
"Integer.parseInt",
"Integer",
"str1",
"int num2 = Integer.parseInt(str2);",
"num2",
"Integer.parseInt(str2)",
"Integer.parseInt",
"Integer",
"str2",
"int num3 = Integer.parseInt(str3);",
"num3",
"Integer.parseInt(str3)",
"Integer.parseInt",
"Integer",
"str3",
"int sum = 0;",
"sum",
"0",
"String str4 = \"\";",
"str4",
"\"\"",
"for(int i=1;i<=1000;i++) {\n sum = num1 * i;\n if(num2 <= sum && num3 >= sum) {\n str4 = \"OK\";\n break;\n }\n str4 = \"NG\";\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=1000",
"i",
"1000",
"i++",
"i++",
"i",
"{\n sum = num1 * i;\n if(num2 <= sum && num3 >= sum) {\n str4 = \"OK\";\n break;\n }\n str4 = \"NG\";\n }",
"{\n sum = num1 * i;\n if(num2 <= sum && num3 >= sum) {\n str4 = \"OK\";\n break;\n }\n str4 = \"NG\";\n }",
"sum = num1 * i",
"sum",
"num1 * i",
"num1",
"i",
"if(num2 <= sum && num3 >= sum) {\n str4 = \"OK\";\n break;\n }",
"num2 <= sum && num3 >= sum",
"num2 <= sum",
"num2",
"sum",
"num3 >= sum",
"num3",
"sum",
"{\n str4 = \"OK\";\n break;\n }",
"str4 = \"OK\"",
"str4",
"\"OK\"",
"break;",
"str4 = \"NG\"",
"str4",
"\"NG\"",
"String str = String.valueOf(num1);",
"str",
"String.valueOf(num1)",
"String.valueOf",
"String",
"num1",
"str = str4",
"str",
"str4",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str1 = scan.nextLine();\n String str2 = scan.next();\n String str3 = scan.next(); \n \n int num1 = Integer.parseInt(str1);\n int num2 = Integer.parseInt(str2);\n int num3 = Integer.parseInt(str3); \n\n int sum = 0;\n String str4 = \"\";\n \n for(int i=1;i<=1000;i++) {\n sum = num1 * i;\n if(num2 <= sum && num3 >= sum) {\n str4 = \"OK\";\n break;\n }\n str4 = \"NG\";\n }\n String str = String.valueOf(num1);\n str = str4;\n System.out.println(str);\n scan.close(); \n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str1 = scan.nextLine();\n String str2 = scan.next();\n String str3 = scan.next(); \n \n int num1 = Integer.parseInt(str1);\n int num2 = Integer.parseInt(str2);\n int num3 = Integer.parseInt(str3); \n\n int sum = 0;\n String str4 = \"\";\n \n for(int i=1;i<=1000;i++) {\n sum = num1 * i;\n if(num2 <= sum && num3 >= sum) {\n str4 = \"OK\";\n break;\n }\n str4 = \"NG\";\n }\n String str = String.valueOf(num1);\n str = str4;\n System.out.println(str);\n scan.close(); \n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String str1 = scan.nextLine();
String str2 = scan.next();
String str3 = scan.next();
int num1 = Integer.parseInt(str1);
int num2 = Integer.parseInt(str2);
int num3 = Integer.parseInt(str3);
int sum = 0;
String str4 = "";
for(int i=1;i<=1000;i++) {
sum = num1 * i;
if(num2 <= sum && num3 >= sum) {
str4 = "OK";
break;
}
str4 = "NG";
}
String str = String.valueOf(num1);
str = str4;
System.out.println(str);
scan.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
2,
13,
2,
13,
13,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
70,
5
],
[
70,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
27,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
42,
48
],
[
41,
49
],
[
40,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
40,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
6,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
] |
[
"\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint K = scan.nextInt();\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\n\t\tif (A % K == 0) {\n\n\t\t\tSystem.out.println(\"OK\");\n\n\t\t} else if ((K - A % K) + A <= B) {\n\n\t\t\tSystem.out.println(\"OK\");\n\n\t\t} else {\n\n\t\t\tSystem.out.println(\"NG\");\n\n\t\t}\n\n\t\tscan.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint K = scan.nextInt();\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\n\t\tif (A % K == 0) {\n\n\t\t\tSystem.out.println(\"OK\");\n\n\t\t} else if ((K - A % K) + A <= B) {\n\n\t\t\tSystem.out.println(\"OK\");\n\n\t\t} else {\n\n\t\t\tSystem.out.println(\"NG\");\n\n\t\t}\n\n\t\tscan.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint K = scan.nextInt();\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\n\t\tif (A % K == 0) {\n\n\t\t\tSystem.out.println(\"OK\");\n\n\t\t} else if ((K - A % K) + A <= B) {\n\n\t\t\tSystem.out.println(\"OK\");\n\n\t\t} else {\n\n\t\t\tSystem.out.println(\"NG\");\n\n\t\t}\n\n\t\tscan.close();\n\t}",
"main",
"{\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint K = scan.nextInt();\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\n\t\tif (A % K == 0) {\n\n\t\t\tSystem.out.println(\"OK\");\n\n\t\t} else if ((K - A % K) + A <= B) {\n\n\t\t\tSystem.out.println(\"OK\");\n\n\t\t} else {\n\n\t\t\tSystem.out.println(\"NG\");\n\n\t\t}\n\n\t\tscan.close();\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int K = scan.nextInt();",
"K",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int A = scan.nextInt();",
"A",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int B = scan.nextInt();",
"B",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if (A % K == 0) {\n\n\t\t\tSystem.out.println(\"OK\");\n\n\t\t} else if ((K - A % K) + A <= B) {\n\n\t\t\tSystem.out.println(\"OK\");\n\n\t\t} else {\n\n\t\t\tSystem.out.println(\"NG\");\n\n\t\t}",
"A % K == 0",
"A % K",
"A",
"K",
"0",
"{\n\n\t\t\tSystem.out.println(\"OK\");\n\n\t\t}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"if ((K - A % K) + A <= B) {\n\n\t\t\tSystem.out.println(\"OK\");\n\n\t\t} else {\n\n\t\t\tSystem.out.println(\"NG\");\n\n\t\t}",
"(K - A % K) + A <= B",
"(K - A % K) + A",
"(K - A % K)",
"K",
"A % K",
"A",
"K",
"A",
"B",
"{\n\n\t\t\tSystem.out.println(\"OK\");\n\n\t\t}",
"System.out.println(\"OK\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"OK\"",
"{\n\n\t\t\tSystem.out.println(\"NG\");\n\n\t\t}",
"System.out.println(\"NG\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NG\"",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint K = scan.nextInt();\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\n\t\tif (A % K == 0) {\n\n\t\t\tSystem.out.println(\"OK\");\n\n\t\t} else if ((K - A % K) + A <= B) {\n\n\t\t\tSystem.out.println(\"OK\");\n\n\t\t} else {\n\n\t\t\tSystem.out.println(\"NG\");\n\n\t\t}\n\n\t\tscan.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint K = scan.nextInt();\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\n\t\tif (A % K == 0) {\n\n\t\t\tSystem.out.println(\"OK\");\n\n\t\t} else if ((K - A % K) + A <= B) {\n\n\t\t\tSystem.out.println(\"OK\");\n\n\t\t} else {\n\n\t\t\tSystem.out.println(\"NG\");\n\n\t\t}\n\n\t\tscan.close();\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int K = scan.nextInt();
int A = scan.nextInt();
int B = scan.nextInt();
if (A % K == 0) {
System.out.println("OK");
} else if ((K - A % K) + A <= B) {
System.out.println("OK");
} else {
System.out.println("NG");
}
scan.close();
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.