buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define ld long double
#define pii pair<int, int>
#define sz(a) (int)(a.size())
#define resize(v) v.resize(unique(all(v)) - v.begin());
#defin... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define ld long double
#define pii pair<int, int>
#define sz(a) (int)(a.size())
#define resize(v) v.resize(unique(all(v)) - v.begin());
#defin... | [["+", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]] | 1 | 248 |
# coding: utf-8
# Your code here!
tmp = input()
if tmp == "ABC":
print("ARC")
else:
print("ARC") | # coding: utf-8
# Your code here!
tmp = input()
if tmp == "ABC":
print("ARC")
else:
print("ABC") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 28 |
//#pragma GCC optimize("O3")
//#pragma GCC target("avx2")
// 293206GT
#include <algorithm>
#include <algorithm>
#include <bitset>
#include <chrono>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <... | //#pragma GCC optimize("O3")
//#pragma GCC target("avx2")
// 293206GT
#include <algorithm>
#include <algorithm>
#include <bitset>
#include <chrono>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <... | [["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 468 |
S = gets.chomp
puts "ARC" if S == ABC
puts "ABC" if S == ARC | S = gets.chomp
puts "ARC" if S == "ABC"
puts "ABC" if S == "ARC" | [["+", 0, 493, 0, 751, 15, 738, 12, 557, 0, 62]] | 4 | 21 |
#include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <ctime>
#include <functional>
#include <iostream>
#include <map>
#include <memory.h>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
typed... | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <ctime>
#include <functional>
#include <iostream>
#include <map>
#include <memory.h>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
typed... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 282 |
#A
s = input()
if s == ABC:
print('ARC')
else:
print('ABC') | #A
s = input()
if s == 'ABC':
print('ARC')
else:
print('ABC') | [["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655]] | 5 | 25 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
// Your code here!
string S;
cin >> S;
if (S == "ABC") {
cout << "ARC" << endl;
}
if (S == "ARC") {
cout << "ARC" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main(void) {
// Your code here!
string S;
cin >> S;
if (S == "ABC") {
cout << "ARC" << endl;
}
if (S == "ARC") {
cout << "ABC" << endl;
}
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 57 |
n = $stdin.gets.chomp
if n[2] == "B"
puts "ARC"
else
puts "ABC"
end | n = $stdin.gets.chomp
if n[1] == "B"
puts "ARC"
else
puts "ABC"
end | [["-", 0, 493, 0, 121, 15, 738, 31, 742, 0, 612], ["+", 0, 493, 0, 121, 15, 738, 31, 742, 0, 612]] | 4 | 26 |
S = input()[2]
if S=="B":
print("ARC")
else:
print("ABC") | S = input()[1]
if S=="B":
print("ARC")
else:
print("ABC") | [["-", 0, 656, 0, 1, 0, 662, 12, 206, 206, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 206, 206, 612]] | 5 | 29 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
string s;
cin >> s;
if (s == "ABC")
cout << "AGC" << endl;
else
cout << "ABC" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
string s;
cin >> s;
if (s == "ABC")
cout << "ARC" << endl;
else
cout << "ABC" << endl;
}
| [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 71 |
#import math
S=input()
#int(input())
#map(int,input().split())
#list(map(int,input().split()))
#[input() for _ in range()]
if S[1] == B:
print('ARC')
else:
print('ABC') | #import math
S=input()
#int(input())
#map(int,input().split())
#list(map(int,input().split()))
#[input() for _ in range()]
if S[1] == 'B':
print('ARC')
else:
print('ABC') | [["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655]] | 5 | 32 |
s = input()
print('ARC' if s == 'ABC' else 'ARC')
| s = input()
print('ARC' if s == 'ABC' else 'ABC')
| [["-", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6]] | 5 | 21 |
s = int(input())
if s[1] == 'B':
print('ARC')
else:
print('ABC') | s = input()
if s[1] == 'B':
print('ARC')
else:
print('ABC') | [["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 32 |
s=gets.chomp
if s="ABC"
puts "ARC"
else
puts "ABC"
end | s=gets.chomp
if s=="ABC"
puts "ARC"
else
puts "ABC"
end | [["-", 36, 36, 0, 493, 0, 121, 15, 662, 0, 32], ["+", 36, 36, 0, 493, 0, 121, 15, 738, 17, 60]] | 4 | 21 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
#define rrep(i, n) for (int i = n - 1; i >= 0; i--)
#define rep2(i, s, n) for (int i = s; i < n; ++i)
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define tmax(a, b, c) max(a, max(b, c))
#define tmin(a, b, c) min(a, min(b, ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
#define rrep(i, n) for (int i = n - 1; i >= 0; i--)
#define rep2(i, s, n) for (int i = s; i < n; ++i)
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define tmax(a, b, c) max(a, max(b, c))
#define tmin(a, b, c) min(a, min(b, ... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 398 |
import sys
def input():
return sys.stdin.readline().strip()
sys.setrecursionlimit(20000000)
def main():
S = input()
if S == "ARC":
print("ABC")
else:
print("ABC")
if __name__ == "__main__":
main()
| import sys
def input():
return sys.stdin.readline().strip()
sys.setrecursionlimit(20000000)
def main():
S = input()
if S == "ARC":
print("ABC")
else:
print("ARC")
if __name__ == "__main__":
main()
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 66 |
#include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
using namespace std;
using ll = long long;
using vec = vector<ll>;
using vect = vector<double>;
using Graph = vector<vector<ll>>;
#define loop(i, n) for (ll i = 0; i < n; i++)
#define Loop(i, m, n) for (ll i = m; i < n; i++)
#define pool(i, n) for (ll i = n; i >= 0; i--)
... | #include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
using namespace std;
using ll = long long;
using vec = vector<ll>;
using vect = vector<double>;
using Graph = vector<vector<ll>>;
#define loop(i, n) for (ll i = 0; i < n; i++)
#define Loop(i, m, n) for (ll i = m; i < n; i++)
#define pool(i, n) for (ll i = n; i >= 0; i--)
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 466 |
if __name__ == '__main__':
S = input()
if S =='ABC':
print('SRC')
else:
print('ABC')
| if __name__ == '__main__':
S = input()
if S =='ABC':
print('ARC')
else:
print('ABC')
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 33 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int main() {
string s;
cin >> s;
s[1] == (s[1] == 'B' ? 'R' : 'B');
cout << s << '\n';
return 0;
}
| #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int main() {
string s;
cin >> s;
s[1] = (s[1] == 'B' ? 'R' : 'B');
cout << s << '\n';
return 0;
}
| [["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 60], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32]] | 1 | 62 |
// #include <bits/stdc++.h>
#include <algorithm>
#include <cmath>
#include <iostream>
#include <set>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
#define exf(x) \
for (auto &&tmp : x) { ... | // #include <bits/stdc++.h>
#include <algorithm>
#include <cmath>
#include <iostream>
#include <set>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
#define exf(x) \
for (auto &&tmp : x) { ... | [["-", 0, 1, 0, 16, 12, 23, 0, 42, 0, 32], ["+", 0, 16, 12, 23, 0, 41, 15, 16, 17, 60]] | 1 | 291 |
#include <bits/stdc++.h>
#define rep(i, x) for (int i = 0; i < (int)(x); i++)
#define PI 3.14159265359
using namespace std;
int main() {
string s;
cin >> s;
if (s == "ABC")
cout << "ARC";
if (s == "ABC")
cout << "ABC";
//////////////////////////////////
//--------end--------
//
return 0;
}
| #include <bits/stdc++.h>
#define rep(i, x) for (int i = 0; i < (int)(x); i++)
#define PI 3.14159265359
using namespace std;
int main() {
string s;
cin >> s;
if (s == "ABC")
cout << "ARC";
if (s == "ARC")
cout << "ABC";
//////////////////////////////////
//--------end--------
//
return 0;
}
| [["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]] | 1 | 64 |
/*-- ILSH --*/
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
#define pb push_back
#define pop pop_back
#define mp make_pair
#define vii vector<int>
#define vll vector<ll>
#define pii pair<int, int>
#define pll pair<ll, ll>
#define vpi vector<pll>
#define vpl vector<pll>
#define fi first
#define s... | /*-- ILSH --*/
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
#define pb push_back
#define pop pop_back
#define mp make_pair
#define vii vector<int>
#define vll vector<ll>
#define pii pair<int, int>
#define pll pair<ll, ll>
#define vpi vector<pll>
#define vpl vector<pll>
#define fi first
#define s... | [["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 323 |
#include <stdio.h>
int main() {
char S[3];
scanf("%s", &S);
if (S[2] == 'B') {
printf("ARC");
} else {
printf("ABC");
}
} | #include <stdio.h>
int main() {
char S[3];
scanf("%s", &S);
if (S[1] == 'B') {
printf("ARC");
} else {
printf("ABC");
}
} | [["-", 0, 57, 15, 23, 0, 16, 31, 69, 71, 13], ["+", 0, 57, 15, 23, 0, 16, 31, 69, 71, 13]] | 0 | 54 |
def solve
s = gets
if s == 'ABC'
print 'ARC'
else
print 'ABC'
end
end
solve
| def solve
s = gets.chomp
if s == 'ABC'
print 'ARC'
else
print 'ABC'
end
end
solve
| [["+", 0, 735, 8, 736, 0, 662, 12, 652, 17, 131], ["+", 0, 735, 8, 736, 0, 662, 12, 652, 735, 22]] | 4 | 23 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define FOR(i, a, b) for (ll(i) = a; (i) < (b); ++(i))
#define RFOR(i, a, b) for (ll(i) = a; (i) >= (b); --(i))
#define REP(i, n) FOR(i, 0, n)
#define RREP(i, n) RFOR(i, n, 0)
#define ALL(v) v.begin(), v.end()
#define UNIQ(v) ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define FOR(i, a, b) for (ll(i) = a; (i) < (b); ++(i))
#define RFOR(i, a, b) for (ll(i) = a; (i) >= (b); --(i))
#define REP(i, n) FOR(i, 0, n)
#define RREP(i, n) RFOR(i, n, 0)
#define ALL(v) v.begin(), v.end()
#define UNIQ(v) ... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["-", 8, 9, 0, 1, 0, 16,... | 1 | 156 |
#include <algorithm>
#include <cassert>
#include <cmath>
#include <ctime>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> p;
#define rep(i, n) fo... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <ctime>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> p;
#define rep(i, n) fo... | [["-", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13], ["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13]] | 1 | 181 |
#include <stdio.h>
int main() {
char S[10];
scanf("%s", S);
if (S[1] == 'B')
printf("ARC\n");
else
printf("ARC\n");
return 0;
} | #include <stdio.h>
int main() {
char S[10];
scanf("%s", S);
if (S[1] == 'B')
printf("ARC\n");
else
printf("ABC\n");
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 54 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
string s;
cin >> s;
if (s == "ARC")
cout << "ARC" << endl;
else
cout << "ABC" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
string s;
cin >> s;
if (s == "ABC")
cout << "ARC" << endl;
else
cout << "ABC" << endl;
}
| [["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]] | 1 | 50 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb(x) push_back(x)
#define mp(a, b) make_pair(a, b)
#define all(x) x.begin(), x.end()
#define lscan(x) scanf("%I64d", &x)
#define lprint(x) printf("%I64d", x)
ll gcd(ll a, ll b) {
int c = a % b;
while (c != 0) {
a = b;
b = c;
c ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb(x) push_back(x)
#define mp(a, b) make_pair(a, b)
#define all(x) x.begin(), x.end()
#define lscan(x) scanf("%I64d", &x)
#define lprint(x) printf("%I64d", x)
ll gcd(ll a, ll b) {
int c = a % b;
while (c != 0) {
a = b;
b = c;
c ... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 2,754 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define repp(i, n, m) for (int(i) = (n); (i) < (m); (i)++)
#define repn(i, n) for (int(i) = 1; (i) <= (n); (i)++)
#define repr(i, n) for (int(i) = (n - 1); (i) >= 0; (i)--)
#define all(x) (x).begin(), (x).end()
#define l... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define repp(i, n, m) for (int(i) = (n); (i) < (m); (i)++)
#define repn(i, n) for (int(i) = 1; (i) <= (n); (i)++)
#define repr(i, n) for (int(i) = (n - 1); (i) >= 0; (i)--)
#define all(x) (x).begin(), (x).end()
#define l... | [["-", 15, 339, 51, 11, 31, 69, 341, 342, 0, 70], ["-", 15, 339, 51, 11, 31, 69, 341, 342, 0, 13], ["-", 15, 339, 51, 11, 31, 69, 341, 342, 0, 73], ["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["-", 0, 57, 15, 339, 51, 11, 12, 103, 0, 104], ["-", 0, 57, 15, 339, 51, 11, 12, 103, 0, 125], ["+", 8, 9, 0, 57, 15, 339, 51,... | 1 | 255 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
string s;
cin >> s;
if (s == "ABC")
cout << "ARC" << endl;
else
cout << "AbC" << endl;
return 0;
}
| #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
string s;
cin >> s;
if (s == "ABC")
cout << "ARC" << endl;
else
cout << "ABC" << endl;
return 0;
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 71 |
#include <stdio.h>
int main() {
char str[4];
scanf("%s", str);
if (str[1] == 'R') {
printf("ABC");
} else {
printf("ARS");
}
} | #include <stdio.h>
int main() {
char str[4];
scanf("%s", str);
if (str[1] == 'R') {
printf("ABC");
} else {
printf("ARC");
}
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 53 |
#include <bits/stdc++.h>
#include <cmath>
#include <math.h>
#include <stdio.h>
using namespace std;
#define vsort(vec) sort(vec.begin(), vec.end())
#define vreverse(vec) reverse(vec.begin(), vec.end())
using ll = long long;
using ull = unsigned long long;
const ll INF = 1001001001;
// 10億7。 100000007
//最大公約数
ll gcd... | #include <bits/stdc++.h>
#include <cmath>
#include <math.h>
#include <stdio.h>
using namespace std;
#define vsort(vec) sort(vec.begin(), vec.end())
#define vreverse(vec) reverse(vec.begin(), vec.end())
using ll = long long;
using ull = unsigned long long;
const ll INF = 1001001001;
// 10億7。 100000007
//最大公約数
ll gcd... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 162 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
string s;
if (s == "ABC") {
cout << "ARC" << endl;
} else if (s == "ARC") {
cout << "ABC" << endl;
}
return 0;
}
| #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
string s;
cin >> s;
if (s == "ABC") {
cout << "ARC" << endl;
} else if (s == "ARC") {
cout << "ABC" << endl;
}
return 0;
}
| [["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 79 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repr(i, n) for (int i = (int)(n); i >= 0; i--)
#define REP(i, m, n) for (int i = (int)(m); i <= (int)(n); i++)
#define all(v) v.begin(), v.end()
typedef long long ll;
template <class T> inline bool chmax(T &a, T ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repr(i, n) for (int i = (int)(n); i >= 0; i--)
#define REP(i, m, n) for (int i = (int)(m); i <= (int)(n); i++)
#define all(v) v.begin(), v.end()
typedef long long ll;
template <class T> inline bool chmax(T &a, T ... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 177 |
<?php
fscanf(STDIN, "%s", $s);
if($s == "ABC"){
echo "ARC";
} else {
"ABC";
} | <?php
fscanf(STDIN, "%s", $s);
if($s === "ABC"){
echo "ARC";
} else {
echo "ABC";
} | [["-", 0, 493, 0, 57, 15, 23, 0, 16, 17, 60], ["+", 0, 493, 0, 57, 15, 23, 0, 16, 17, 565], ["+", 0, 57, 75, 76, 8, 9, 0, 608, 0, 621]] | 6 | 36 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
string S;
cin >> S;
string ans;
if (S == "ABC") {
string ans = "ARC";
} else {
string ans = "ABC";
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
string S;
cin >> S;
string ans;
if (S == "ABC") {
ans = "ARC";
} else {
ans = "ABC";
}
cout << ans << endl;
}
| [["-", 8, 9, 0, 57, 64, 9, 0, 43, 39, 78], ["-", 0, 57, 75, 76, 0, 9, 0, 43, 39, 78]] | 1 | 61 |
/* AUTHOR : SHIVANK JAIN */
#include <bits/stdc++.h>
#define fast ios_base::sync_with_stdio(false)
#define itt cin.tie(0)
#define now cout.tie(0)
using namespace std;
#define ll long long
#define li long int
#define pb push_back
#define rep(i, a, n) for (int i = a; i < n; i++)
#define reprev(i, n, a) for (int i = ... | /* AUTHOR : SHIVANK JAIN */
#include <bits/stdc++.h>
#define fast ios_base::sync_with_stdio(false)
#define itt cin.tie(0)
#define now cout.tie(0)
using namespace std;
#define ll long long
#define li long int
#define pb push_back
#define rep(i, a, n) for (int i = a; i < n; i++)
#define reprev(i, n, a) for (int i = ... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 174 |
s = input()
ans = "ABC"
if s == "ABC":
print("ARC")
print(ans)
| s = input()
ans = "ABC"
if s == "ABC":
ans = "ARC"
print(ans)
| [["-", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 0, 32], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 27 |
#include <algorithm>
#include <cctype>
#include <iostream>
#include <math.h>
#include <string>
#include <tuple>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define repp(i, j, n) for (int i = (j); i < (n); i++)
#define Reo(i, j, n) for (int i = (j); i <= (n); i++)
using namespace std;
typedef long ... | #include <algorithm>
#include <cctype>
#include <iostream>
#include <math.h>
#include <string>
#include <tuple>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define repp(i, j, n) for (int i = (j); i < (n); i++)
#define Reo(i, j, n) for (int i = (j); i <= (n); i++)
using namespace std;
typedef long ... | [["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 92 |
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
if (s == "ABC") {
cout << "ARC";
} else if (s == "ARC") {
cout << "ABc";
}
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
if (s == "ABC") {
cout << "ARC";
} else if (s == "ARC") {
cout << "ABC";
}
return 0;
} | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 57 |
import java.util.Scanner;
public class Main {
static String S;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
S = sc.next();
if (S == "ABC") {
System.out.println("ARC");
} else {
System.out.println("ABC");
}
}
} | import java.util.Scanner;
public class Main {
static String S;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
S = sc.next();
if (S.equals("ABC")) {
System.out.println("ARC");
} else {
System.out.println("ABC");
}
}
}
| [["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 15, 0, 492, 0, 131], ["+", 8, 196, 0, 57, 15, 15, 0, 492, 141, 22], ["+", 0, 57, 15, 15, 0, 492, 3, 4, 0, 24], ["+", 0, 57, 15, 15, 0, 492, 3, 4, 0, 25]] | 3 | 82 |
s = input()
print("ABC") if a[1] == "R" else print("ARC") | s = input()
print("ABC") if s[1] == "R" else print("ARC") | [["-", 0, 1, 0, 41, 0, 666, 0, 206, 51, 22], ["+", 0, 1, 0, 41, 0, 666, 0, 206, 51, 22]] | 5 | 27 |
#include <bits/stdc++.h>
using namespace std;
using llong = long long;
#define rep(i, N) for (int i = 0; i < N; i++)
const llong MOD = 1e9 + 7;
const llong inf = 1 << 30;
int main() {
string S;
cin >> S;
string word[2] = {"ABC", "ARC"};
string res;
if (S == word[0]) {
res = word[1];
} else {
res =... | #include <bits/stdc++.h>
using namespace std;
using llong = long long;
#define rep(i, N) for (int i = 0; i < N; i++)
const llong MOD = 1e9 + 7;
const llong inf = 1 << 30;
int main() {
string S;
cin >> S;
string word[2] = {"ABC", "ARC"};
string res;
if (S == word[0]) {
res = word[1];
} else {
res =... | [["-", 75, 76, 0, 9, 0, 1, 0, 16, 17, 60], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 17, 32]] | 1 | 105 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define Canuc80k \
cin.tie(0); \
cout.tie(0);
#define I_am ios_base::sync_with_stdio(false);
#define REP(i, a, b) for (... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define Canuc80k \
cin.tie(0); \
cout.tie(0);
#define I_am ios_base::sync_with_stdio(false);
#define REP(i, a, b) for (... | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6]] | 1 | 101 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
int main() {
std::string S;
std::cin >> S;
std::cout << (S[1] == 'B' ? "ARC" : "ARC") << std::endl;
return 0;
} | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
int main() {
std::string S;
std::cin >> S;
std::cout << (S[1] == 'B' ? "ARC" : "ABC") << std::endl;
return 0;
} | [["-", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6]] | 1 | 57 |
#include <iostream>
#include <vector>
int main() {
int N, K;
std::cin >> N >> K;
std::vector<int> flag(K, 1);
for (int i = 0; i < K; i++) {
int di;
std::cin >> di;
for (int j = 0; j < di; j++) {
int a;
std::cin >> a;
flag[a - 1] = 0;
}
}
int ans = 0;
for (int i = 0; i < ... | #include <iostream>
#include <vector>
int main() {
int N, K;
std::cin >> N >> K;
std::vector<int> flag(N, 1);
for (int i = 0; i < K; i++) {
int di;
std::cin >> di;
for (int j = 0; j < di; j++) {
int a;
std::cin >> a;
flag[a - 1] = 0;
}
}
int ans = 0;
for (int i = 0; i < ... | [["-", 8, 9, 0, 43, 49, 50, 51, 4, 0, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 22], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]] | 1 | 136 |
#include <stdio.h>
int main(void) {
int n, k;
scanf("%d %d", &n, &k);
int d[200];
int flag[200] = {0};
int a[200][200] = {0};
int count = 0;
for (int i = 0; i < k; i++) {
scanf("%d", &d[i]);
for (int j = 1; j <= d[i]; j++) {
scanf("%d", &a[i][j]);
}
}
for (int i = 0; i < k; i++) {
... | #include <stdio.h>
int main(void) {
int n, k;
scanf("%d %d", &n, &k);
int d[200];
int flag[200] = {0};
int a[200][200] = {0};
int count = 0;
for (int i = 0; i < k; i++) {
scanf("%d", &d[i]);
for (int j = 1; j <= d[i]; j++) {
scanf("%d", &a[i][j]);
}
}
for (int i = 0; i < k; i++) {
... | [["-", 0, 1, 0, 11, 31, 69, 71, 16, 17, 33], ["-", 0, 1, 0, 11, 31, 69, 71, 16, 12, 13], ["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, ... | 0 | 232 |
#include <iostream>
#include <vector>
using namespace std;
int main() {
int N, K;
cin >> N >> K;
int d;
vector<int> A(110);
for (int i = 0; i < K; i++) {
cin >> d;
for (int j = 0; j < d; j++) {
int tmp = 1;
cin >> tmp;
A[tmp] = 1;
}
}
int res = 0;
for (int i = 1; i < ... | #include <iostream>
#include <vector>
using namespace std;
int main() {
int N, K;
cin >> N >> K;
int d;
vector<int> A(110);
for (int i = 0; i < K; i++) {
cin >> d;
for (int j = 0; j < d; j++) {
int tmp = 0;
cin >> tmp;
A[tmp] = 1;
}
}
int res = 0;
for (int i = 1; i < ... | [["-", 0, 7, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 7, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 1 | 129 |
N, K = map(int, input().split())
A = []
for i in range(K):
d = int(input())
B = list(map(int, input().split()))
A.extend(B)
E = list(set(A))
F = N - len(E) | N, K = map(int, input().split())
A = []
for i in range(K):
d = int(input())
B = list(map(int, input().split()))
A.extend(B)
E = list(set(A))
F = N - len(E)
print(F) | [["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 76 |
n, k = map(int, input().split())
check = [False for i in range(n)]
for j in range(k):
d = int(input())
a = map(int, input().split())
for k in a:
check[k-1] = True
print(check.count(True)) | n, k = map(int, input().split())
check = [False for i in range(n)]
for j in range(k):
d = int(input())
a = map(int, input().split())
for k in a:
check[k-1] = True
print(check.count(False)) | [["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 146], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 147]] | 5 | 80 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, k;
cin >> n >> k;
vector<bool> a(n, false);
for (int i = 0; i < k; i++) {
int d;
cin >> d;
for (int j = 0; j < d; j++) {
int s;
cin >> s;
a[s - 1] = true;
}
}
int countt = 0;
for (int i = 0; i < n; i++) {
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, k;
cin >> n >> k;
vector<bool> a(n, false);
for (int i = 0; i < k; i++) {
int d;
cin >> d;
for (int j = 0; j < d; j++) {
int s;
cin >> s;
a[s - 1] = true;
}
}
int countt = 0;
for (int i = 0; i < n; i++) {
... | [["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 130 |
n, k = map(int, input().split())
count = 0
lis = []
for m in range(0, k):
d = int(input())
li = [int(i) for i in input().split()]
lis = lis + li
print(lis)
for s in range(1, n+1):
if s in lis:
count += 0
else:
count += 1
print(count) | n, k = map(int, input().split())
count = 0
lis = []
for m in range(0, k):
d = int(input())
li = [int(i) for i in input().split()]
lis = lis + li
for s in range(1, n+1):
if s in lis:
count += 0
else:
count += 1
print(count) | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 97 |
def check(human):
sum = 0
for i in human:
if(i == 0):
sum += 1
return sum
def resolve():
data = [int(i) for i in input().split()]
human = [0 for i in range(data[0])]
sweet = data[1]
for i in range(sweet):
mem = int(input())
have = [int(j) for j ... | def check(human):
sum = 0
for i in human:
if(i == 0):
sum += 1
return sum
def resolve():
data = [int(i) for i in input().split()]
human = [0 for i in range(data[0])]
sweet = data[1]
for i in range(sweet):
mem = int(input())
have = [int(j) for j ... | [["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 124 |
n, k = map(int, input().split())
snk = [-1] * (n + 1)
ans = 0
for j in range(k):
d = int(input())
lis = list(input().split())
for i in range(d):
y = int(lis[i])
snk[y] = 0
for j in range(n):
if snk[j] == -1:
ans += 1
print(ans) | n, k = map(int, input().split())
snk = [-1] * (n+1)
ans = 0
for j in range(k):
d = int(input())
lis = list(input().split())
for i in range(d):
y = int(lis[i])
snk[y] = 0
for j in range(n):
if snk[j+1] == -1:
ans += 1
print(ans) | [["+", 0, 57, 15, 666, 0, 206, 206, 657, 17, 72], ["+", 0, 57, 15, 666, 0, 206, 206, 657, 12, 612]] | 5 | 106 |
#include <bits/stdc++.h>
using namespace std;
long long int n, k, x, a, j, i;
bool tr[110];
signed main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin >> n >> k;
for (i = 1; i < n + 1; i++)
tr[i] = false;
for (i = 1; i < k + 1; i++) {
cin >> x;
for (j = 1; j < x + 1; j++)
... | #include <bits/stdc++.h>
using namespace std;
long long int n, k, x, a, j, i;
bool tr[110];
signed main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin >> n >> k;
for (i = 1; i < n + 1; i++)
tr[i] = false;
for (i = 1; i < k + 1; i++) {
cin >> x;
for (j = 1; j < x + 1; j++)
... | [["-", 15, 339, 51, 91, 28, 69, 341, 342, 0, 22], ["+", 15, 339, 51, 91, 28, 69, 341, 342, 0, 22]] | 1 | 163 |
n,k = map(int,input().split())
s = []
ans = 0
for i in range(k):
d = int(input())
A = list(map(int,input().split()))
for i in range(d):
s.append(A[i])
print(s)
for i in range(n+1):
if s.count(i) == 0:
ans += 1
print(ans-1) | n,k = map(int,input().split())
s = []
ans = 0
for i in range(k):
d = int(input())
A = list(map(int,input().split()))
for i in range(d):
s.append(A[i])
for i in range(n+1):
if s.count(i) == 0:
ans += 1
print(ans-1) | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 106 |
N, K = map(int, input().split())
does_have = [False]*N
for _ in range(K):
d = int(input())
A = list(map(int, input().split()))
for a in A:
does_have[a-1] = True
print(sum(does_have)) | N, K = map(int, input().split())
does_have = [False]*N
for _ in range(K):
d = int(input())
A = list(map(int, input().split()))
for a in A:
does_have[a-1] = True
print(N-sum(does_have)) | [["+", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 33]] | 5 | 76 |
n,k = map(int, input().split())
a = set()
for i in [0]*k:
_ = input()
a.add(*map(int, input().split()))
print(n - len(a)) | n,k = map(int, input().split())
a = set()
for i in [0]*k:
_ = input()
a = a | set([*map(int, input().split())])
print(n - len(a)) | [["-", 8, 196, 0, 1, 0, 652, 63, 319, 0, 131], ["-", 8, 196, 0, 1, 0, 652, 63, 319, 319, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 139], ["+", 0, 1, 0, 662, 12, 657, 12, 652, 63, 22], ["+", 12, 657, 12, 652, 3, 4, 0, 634, 0, 70]... | 5 | 62 |
n,k = map(int,input().split())
humans = [x+1 for x in range(n)]
for _ in range(k):
d = int(input())
l = list(map(int,input().split()))
for i in humans:
if i in l:
humans.remove(i)
print(len(humans))
| n,k = map(int,input().split())
humans = [x+1 for x in range(n)]
for _ in range(k):
d = int(input())
l = list(map(int,input().split()))
for i in l:
if i in humans:
humans.remove(i)
print(len(humans)) | [["-", 0, 656, 0, 7, 8, 196, 0, 7, 12, 22], ["+", 0, 656, 0, 7, 8, 196, 0, 7, 12, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 86 |
#include <bits/stdc++.h>
#define ll long long
const int N = 100005;
using namespace std;
int n, a[105], k, ans;
int main() {
cin >> n >> k;
for (int i = 1; i <= k; i++) {
int d, c;
cin >> d;
for (int j = 1; j <= d; j++)
cin >> c, a[c]++;
}
for (int i = 1; i <= k; i++)
if (a[i] == 0)
... | #include <bits/stdc++.h>
#define ll long long
const int N = 100005;
using namespace std;
int n, a[105], k, ans;
int main() {
cin >> n >> k;
for (int i = 1; i <= k; i++) {
int d, c;
cin >> d;
for (int j = 1; j <= d; j++)
cin >> c, a[c]++;
}
for (int i = 1; i <= n; i++)
if (a[i] == 0)
... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]] | 1 | 121 |
N, K = map(int, input().split())
snuke = [0] * N
for n in range(N-1):
snack = int(input())
d_snuke = map(int, input().split())
for d in d_snuke:
snuke[d-1] = snack
c = 0
for n in range(N):
if snuke[n] == 0:
c += 1
print(c) | N, K = map(int, input().split())
snuke = [0] * N
for n in range(K):
snack = int(input())
d_snuke = map(int, input().split())
for d in d_snuke:
snuke[d-1] = snack
c = 0
for n in range(N):
if snuke[n] == 0:
c += 1
print(c) | [["-", 0, 7, 12, 652, 3, 4, 0, 657, 31, 22], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 33], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22]] | 5 | 94 |
N,K=map(int,input().split())
t=[0]*N
for _ in range(K):
d=int(input())
a=list(map(int,input().split()))
for k in a:
t[k-1]+=1
print(t.count(0))
| N,K=map(int,input().split())
t=[0]*N
for i in range(K):
d=int(input())
a=list(map(int,input().split()))
for k in a:
t[k-1]+=1
print(t.count(0))
| [["-", 36, 36, 36, 36, 0, 656, 0, 7, 31, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 7, 31, 22]] | 5 | 78 |
import itertools
N,K=map(int,input().split())
A=[]
for i in range(K):
a=list(map(int,input().split()))
if i%2==1:
A.append(a)
x=list(itertools.chain.from_iterable(A))
print(N-len(set(x)))
| import itertools
N,K=map(int,input().split())
A=[]
for i in range(K*2):
a=list(map(int,input().split()))
if i%2==1:
A.append(a)
x=list(itertools.chain.from_iterable(A))
print(N-len(set(x)))
| [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 48], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 85 |
N,K=map(int,input().split())
d=[]
A=[]
U=set(range(1,N))
X=set()
for i in range(K):
d.append(int(input()))
S=map(int,input().split())
for s in S:
X.add(s)
print(len(U-X))
| N,K=map(int,input().split())
d=[]
U=set(range(1,N+1))
X=set()
for i in range(K):
d.append(int(input()))
S=map(int,input().split())
for s in S:
X.add(s)
print(len(U-X))
| [["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["-", 0, 656, 0, 1, 0, 662, 12, 634, 0, 70], ["-", 0, 656, 0, 1, 0, 662, 12, 634, 0, 73], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 93 |
n,k = map(int,input().split())
a=[list(map(int,input().split())) for _ in range(2*k)]
b=[]
for i in range(k):
b += a[2*i]
c=set(b)
print(n-len(c)) | n,k = map(int,input().split())
a=[list(map(int,input().split())) for _ in range(2*k)]
b=[]
for i in range(k):
b += a[2*i+1]
c=set(b)
print(n-len(c)) | [["+", 0, 1, 0, 677, 12, 206, 206, 657, 17, 72], ["+", 0, 1, 0, 677, 12, 206, 206, 657, 12, 612]] | 5 | 79 |
#include <bits/stdc++.h>
#define REP(i, m, n) for (int(i) = (m); (i) < (n); ++i)
#define rep(i, n) REP(i, 0, n)
#define all(x) (x).begin(), (x).end()
using namespace std;
using Graph = vector<vector<int>>;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}... | #include <bits/stdc++.h>
#define REP(i, m, n) for (int(i) = (m); (i) < (n); ++i)
#define rep(i, n) REP(i, 0, n)
#define all(x) (x).begin(), (x).end()
using namespace std;
using Graph = vector<vector<int>>;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}... | [["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 212 |
#include <algorithm>
#include <complex>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <string.h>
#include <string>
#include <time.h>
#include <vector>
using namespace std;
typedef long long int llint;
typedef pai... | #include <algorithm>
#include <complex>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <string.h>
#include <string>
#include <time.h>
#include <vector>
using namespace std;
typedef long long int llint;
typedef pai... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 1,196 |
#include <bits/stdc++.h>
using namespace std;
#define __ << ' ' <<
#define ___ << ' '
#define bash push_back
#define ALL(x) x.begin(), x.end()
//#define int long long
struct IoSetup {
IoSetup() {
cin.tie(0);
ios::sync_with_stdio(false);
cout << fixed << setprecision(12);
cerr << fixed << setprecision... | #include <bits/stdc++.h>
using namespace std;
#define __ << ' ' <<
#define ___ << ' '
#define bash push_back
#define ALL(x) x.begin(), x.end()
//#define int long long
struct IoSetup {
IoSetup() {
cin.tie(0);
ios::sync_with_stdio(false);
cout << fixed << setprecision(12);
cerr << fixed << setprecision... | [["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 357 |
n, k = map(int, input().split())
s = [0]*(n+1)
for i in range(k):
d = int(input())
a = list(map(int,input().split()))
for j in range(d):
s[a[0]] += 1
s[0] += 1
print(s.count(0)) | n, k = map(int, input().split())
s = [0]*(n+1)
for i in range(k):
d = int(input())
a = list(map(int,input().split()))
for j in range(d):
s[a[j]] += 1
s[0] += 1
print(s.count(0))
| [["-", 0, 1, 0, 677, 31, 206, 206, 206, 206, 612], ["+", 0, 1, 0, 677, 31, 206, 206, 206, 206, 22]] | 5 | 92 |
n, k = map(int, input().split())
s = [0]*(n+1)
for i in range(k):
d = int(input())
a = list(map(int,input().split()))
for j in range(d):
s[a[0]] += 1
cnt = 0
for k in range(1,n+1):
if s[k] == 0:
cnt += 1
print(cnt) | n, k = map(int, input().split())
s = [0]*(n+1)
for i in range(k):
d = int(input())
a = list(map(int,input().split()))
for j in range(d):
s[a[j]] += 1
cnt = 0
for k in range(1,n+1):
if s[k] == 0:
cnt += 1
print(cnt)
| [["-", 0, 1, 0, 677, 31, 206, 206, 206, 206, 612], ["+", 0, 1, 0, 677, 31, 206, 206, 206, 206, 22]] | 5 | 107 |
#include <bits/stdc++.h>
#include <vector>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int n, k;
cin >> n >> k;
int N[n];
for (int i = 0; i < k; i++) {
int m;
cin >> m;
for (int j = 0; j < m; j++) {
int a;
cin >> a;
N[a - 1] = 1;
}
}
... | #include <bits/stdc++.h>
#include <vector>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int n, k;
cin >> n >> k;
vector<int> N(n);
for (int i = 0; i < k; i++) {
int m;
cin >> m;
for (int j = 0; j < m; j++) {
int a;
cin >> a;
N[a - 1] = 1;
}... | [["+", 0, 14, 8, 9, 0, 43, 39, 344, 141, 78], ["+", 8, 9, 0, 43, 39, 344, 3, 347, 0, 18], ["+", 8, 9, 0, 43, 39, 344, 3, 347, 0, 47], ["-", 0, 14, 8, 9, 0, 43, 49, 80, 0, 70], ["+", 8, 9, 0, 43, 49, 53, 54, 55, 0, 24], ["-", 0, 14, 8, 9, 0, 43, 49, 80, 0, 73], ["+", 8, 9, 0, 43, 49, 53, 54, 55, 0, 25]] | 1 | 144 |
N,K=map(int,input().split())
ans=list()
for i in range(K):
D=int(input())
L=list(map(int,input(),split()))
ans+=L
ans=list(set(ans))
print(N-len(ans)) | N,K=map(int,input().split())
ans=list()
for i in range(K):
D=int(input())
L=list(map(int,input().split()))
ans+=L
ans=list(set(ans))
print(N-len(ans)) | [["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 21], ["+", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131]] | 5 | 75 |
N,K = gets.split.map(&:to_i)
has = Array.new(N, false)
K.times {
gets
a = gets.split.map(&:to_i)
a.each { |_a|
has[_a-1] = true
}
}
cnt = 0
#p has
has.each { |v|
if v == false
cnt = 1
end
}
puts cnt | N,K = gets.split.map(&:to_i)
has = Array.new(N, false)
K.times {
gets
a = gets.split.map(&:to_i)
a.each { |_a|
has[_a-1] = true
}
}
cnt = 0
#p has
has.each { |v|
if v == false
cnt += 1
end
}
puts cnt | [["-", 8, 734, 0, 121, 64, 749, 0, 662, 0, 32], ["+", 8, 734, 0, 121, 64, 749, 0, 755, 17, 107]] | 4 | 78 |
n,k=map(int,input().split())
ans=[1]*n
for _ in range(k):
d=int(input())
li=list(map(int,input().split()))
for i in li:
ans[i-1]==0
print(sum(ans)) | n,k=map(int,input().split())
ans=[1]*n
for _ in range(k):
d=int(input())
li=list(map(int,input().split()))
for i in li:
ans[i-1]=0
print(sum(ans)) | [["-", 0, 7, 8, 196, 0, 1, 0, 666, 667, 60], ["+", 0, 7, 8, 196, 0, 1, 0, 662, 0, 32]] | 5 | 76 |
import itertools
n,k = map(int,input().split())
ans = 0
l = []
for i in range(k) :
d = int(input())
l.append(input().split())
l = list(itertools.chain.from_iterable(l))
l = [int(i) for i in l]
for i in range(k) :
if not i in l :
ans += 1
print(ans) | import itertools
n,k = map(int,input().split())
ans = 0
l = []
for i in range(k) :
d = int(input())
l.append(input().split())
l = list(itertools.chain.from_iterable(l))
l = [int(i) for i in l]
for i in range(1,n+1) :
if not i in l :
ans += 1
print(ans) | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 99 |
N,K=map(int,input().split())
A=[]
people=list(range(1,N+1,1))
for idx in range(K):
d=int(input())
X=list((map(int,input().split())))
for i in range(len(X)):
A.append(X[i])
ans =[i for i in people if not i in A]
print(ans[0]) | N,K=map(int,input().split())
A=[]
people=list(range(1,N+1,1))
for idx in range(K):
d=int(input())
X=list((map(int,input().split())))
for i in range(len(X)):
A.append(X[i])
ans =[i for i in people if not i in A]
print(len(ans)) | [["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 652, 3, 4, 0, 206, 0, 70], ["-", 0, 1, 0, 652, 3, 4, 0, 206, 206, 612], ["-", 0, 1, 0, 652, 3, 4, 0, 206, 0, 73], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 111 |
#include <bits/stdc++.h>
using namespace std;
#define print cout <<
#define printl(s) cout << s << endl;
#define rep(i, n) for (int i = 0; i < (n); ++i)
int main() {
int N, K;
cin >> N >> K;
set<int> sunukeS;
rep(i, N) { sunukeS.insert(i + 1); }
rep(i, K) {
int tgt;
cin >> tgt;
rep(g, tgt) {
... | #include <bits/stdc++.h>
using namespace std;
#define print cout <<
#define printl(s) cout << s << endl;
#define rep(i, n) for (int i = 0; i < (n); ++i)
int main() {
int N, K;
cin >> N >> K;
set<int> sunukeS;
rep(i, N) { sunukeS.insert(i + 1); }
rep(i, K) {
int tgt;
cin >> tgt;
rep(g, tgt) {
... | [["-", 0, 57, 15, 339, 51, 2, 3, 4, 0, 22], ["+", 0, 57, 15, 339, 51, 2, 3, 4, 0, 22], ["-", 64, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 64, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 1 | 120 |
N, K = map(int, input().split())
a = [0]*n
for i in range(K):
d = int(input())
A = list(map(int, input().split()))
for l in A:
a[l-1] = 1
print(a.count(0))
| N, K = map(int, input().split())
a = [0]*N
for i in range(K):
d = int(input())
A = list(map(int, input().split()))
for l in A:
a[l-1] = 1
print(a.count(0))
| [["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22]] | 5 | 78 |
from collections import Counter
import itertools
n, k = map(int, input().split())
d = []
sunuke = []
for i in range(k * 2 - 2):
d.append(int(input()))
sunuke.append(list(map(int, input().split())))
new = list(itertools.chain.from_iterable(sunuke))
c = Counter(new)
print(n - len(c)) | from collections import Counter
import itertools
n, k = map(int, input().split())
d = []
sunuke = []
for i in range(k):
d.append(int(input()))
sunuke.append(list(map(int, input().split())))
new = list(itertools.chain.from_iterable(sunuke))
c = Counter(new)
print(n - len(c))
| [["-", 12, 652, 3, 4, 0, 657, 31, 657, 17, 48], ["-", 12, 652, 3, 4, 0, 657, 31, 657, 12, 612], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 33], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 101 |
# coding=utf-8
if __name__ == '__main__':
N, K = map(int, input().split())
sunuke = [0] * N
print(sunuke)
for i in range(K):
D = int(input())
li = list(map(int, input().split()))
for j in range(D):
sunuke[li[j] - 1] += 1
#print(sunuke)
print(sunuk... | # coding=utf-8
if __name__ == '__main__':
N, K = map(int, input().split())
sunuke = [0] * N
#print(sunuke)
for i in range(K):
D = int(input())
li = list(map(int, input().split()))
for j in range(D):
sunuke[li[j] - 1] += 1
#print(sunuke)
print(sunu... | [["-", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 97 |
N,K = map(int,input().split())
d = [0 for _ in range(K)]
A = [[] for _ in range(K)]
for i in range(K):
d[i] = int(input())
A[i] = list(map(int,input().split()))
su_list = [i for i in range(1,K+1)]
for i in range(K):
for j in range(d[i]):
if A[i][j] in su_list:
su_list.remove(A[i][j]) ... | N,K = map(int,input().split())
d = [0 for _ in range(K)]
A = [[] for _ in range(K)]
for i in range(K):
d[i] = int(input())
A[i] = list(map(int,input().split()))
su_list = [i for i in range(1,N+1)]
for i in range(K):
for j in range(d[i]):
if A[i][j] in su_list:
su_list.remove(A[i][j]) ... | [["-", 0, 659, 12, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 659, 12, 652, 3, 4, 0, 657, 31, 22]] | 5 | 145 |
N,K = map(int, input().split())
A = []
for i in range(K) :
d = int(input())
A.append(input().split(" "))
snukeList = []
for i in range(len(A)) :
for j in range(len(A[i])) :
snukeList.append(int(A[i][j]))
count = 0
for i in range(1, N) :
if i in snukeList :
continue
count += 1
pr... | N,K = map(int, input().split())
A = []
for i in range(K) :
d = int(input())
A.append(input().split(" "))
snukeList = []
for i in range(len(A)) :
for j in range(len(A[i])) :
snukeList.append(int(A[i][j]))
count = 0
for i in range(1, N+1) :
if i in snukeList :
continue
count += 1
... | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 121 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
n,k = map(int, input().split())
s=[[0] * k for i in range(n)]
for i in range(k):
input()
l=list(map(int, input().split()))
for j in range(len(l)):
s[l[j]-1][i]=1
r=0
for i in range(k):
if sum(s[i])==0:
r=r+1
print(r)
| #!/usr/bin/env python3
# -*- coding: utf-8 -*-
n,k = map(int, input().split())
s=[[0] * k for i in range(n)]
for i in range(k):
input()
l=list(map(int, input().split()))
for j in range(len(l)):
s[l[j]-1][i]=1
r=0
for i in range(n):
if sum(s[i])==0:
r=r+1
print(r)
| [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22]] | 5 | 118 |
#include <algorithm>
#include <bits/stdc++.h>
#include <ctype.h>
#include <iostream>
#include <math.h>
#include <string.h>
#include <string>
using namespace std;
int main() {
int n, k, d[110], A[110][110];
cin >> n >> k;
for (int i = 0; i < k; i++) {
cin >> d[i];
for (int j = 0; j < d[i]; j++)
ci... | #include <algorithm>
#include <bits/stdc++.h>
#include <ctype.h>
#include <iostream>
#include <math.h>
#include <string.h>
#include <string>
using namespace std;
int main() {
int n, k, d[110], A[110][110];
cin >> n >> k;
for (int i = 0; i < k; i++) {
cin >> d[i];
for (int j = 0; j < d[i]; j++)
ci... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 49, 22], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 49, 22], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 7, 26, 27, 28, 22], ["+", 0, 14, 8, 9, 0, 7, 26, 27, 28, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 1... | 1 | 181 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
const unsigned int M = 1000000007;
int main() {
int n, k;
cin >> n >> k;
vector<int> d(k);
rep(i, k) {
int m;
cin >> m;
rep(j, m) {
int a;
cin >> a;
d[a - 1] = 1;
}
}
int ans = 0;
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
const unsigned int M = 1000000007;
int main() {
int n, k;
cin >> n >> k;
vector<int> d(n);
rep(i, k) {
int m;
cin >> m;
rep(j, m) {
int a;
cin >> a;
d[a - 1] = 1;
}
}
int ans = 0;
... | [["-", 0, 43, 49, 53, 54, 55, 0, 56, 39, 78], ["+", 0, 43, 49, 53, 54, 55, 0, 56, 39, 78]] | 1 | 119 |
#include <bits/stdc++.h>
#include <math.h>
using namespace std;
using ll = long long;
int main() {
ll N, K;
cin >> N >> K;
vector<ll> vec(N, 0);
for (ll i = 0; i < K; i++) {
ll a;
cin >> a;
for (ll j = 0; j < a; j++) {
ll b;
cin >> b;
vec.at(b - 1) = 1;
}
}
ll c = 0;
for ... | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
using ll = long long;
int main() {
ll N, K;
cin >> N >> K;
vector<ll> vec(N, 0);
for (ll i = 0; i < K; i++) {
ll a;
cin >> a;
for (ll j = 0; j < a; j++) {
ll b;
cin >> b;
vec.at(b - 1) = 1;
}
}
ll c = 0;
for ... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]] | 1 | 143 |
n, k = map(int, input().split())
sunuke_set = set(i for i in range(1, n))
for i in range(k):
d = int(input())
sunuke_list = list(map(int, input().split()))
for sunuke in sunuke_list:
sunuke_set.discard(sunuke)
print(len(sunuke_set))
| n, k = map(int, input().split())
sunuke_set = set(i for i in range(1, n + 1))
for i in range(k):
d = int(input())
sunuke_tuple = tuple(map(int, input().split()))
for sunuke in sunuke_tuple:
sunuke_set.discard(sunuke)
print(len(sunuke_set))
| [["+", 0, 659, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 659, 12, 652, 3, 4, 0, 657, 12, 612], ["-", 0, 7, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 662, 31, 22], ["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 656, 0, 7, 8, 196, 0, 7, 12, 22], ["+",... | 5 | 82 |
N,K = list(map(int, input('').split(' ')))
D = set()
for i in range(K):
input('')
D |= set(map(int, input('').split(' ')))
print(K-len(D)) | N,K = list(map(int, input('').split(' ')))
D = set()
for i in range(K):
input('')
D |= set(map(int, input('').split(' ')))
print(N-len(D)) | [["-", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22]] | 5 | 73 |
N,K = map(int,input().split())
okasi = [0] * (N + 1)
for i in range(K):
d = int(input())
A = list(map(int,input().split()))
for j in range(d):
okasi[A[j]] = 1
#print(okasi)
count = 0
for i in range(1,N +1,1):
if okasi != 1:
count = count + 1
print(count) | N,K = map(int,input().split())
okasi = [0] * (N + 1)
for i in range(K):
d = int(input())
A = list(map(int,input().split()))
for j in range(d):
okasi[A[j]] = 1
#print(okasi)
count = 0
for i in range(1,N +1,1):
if okasi[i] != 1:
count = count + 1
print(count) | [["+", 8, 196, 0, 57, 15, 666, 0, 206, 0, 70], ["+", 8, 196, 0, 57, 15, 666, 0, 206, 206, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 206, 0, 73]] | 5 | 109 |
#include <stdio.h>
#include <stdlib.h>
int N, K, cnt;
int A[101][101];
int d[101], d_chk[101], sunuke[101];
int main(void) {
scanf("%d %d", &N, &K);
for (int j = 0; j < K; j++) {
scanf("%d", &d[j]);
for (int i = 0; i < d[j]; i++) {
scanf("%d", &A[j][i]);
}
}
for (int j = 0; j < K; j++) {
... | #include <stdio.h>
#include <stdlib.h>
int N, K, cnt;
int A[101][101];
int d[101], d_chk[101], sunuke[101];
int main(void) {
scanf("%d %d", &N, &K);
for (int j = 0; j < K; j++) {
scanf("%d", &d[j]);
for (int i = 0; i < d[j]; i++) {
scanf("%d", &A[j][i]);
}
}
for (int j = 0; j < K; j++) {
... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 33], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 0 | 216 |
#include <stdio.h>
int main() {
int N, K, d, index;
int A[101] = {0};
int ans = 0;
scanf("%d%d", &N, &K);
for (int i = 0; i < K; i++) {
scanf("%d", &d);
for (int j = 0; j < d; j++) {
scanf("%d", &index);
A[index - 1]++;
}
}
for (int i = 0; i < K; i++) {
if (A[i] == 0) {
a... | #include <stdio.h>
int main() {
int N, K, d, index;
int A[101] = {0};
int ans = 0;
scanf("%d%d", &N, &K);
for (int i = 0; i < K; i++) {
scanf("%d", &d);
for (int j = 0; j < d; j++) {
scanf("%d", &index);
A[index - 1]++;
}
}
for (int i = 0; i < N; i++) {
if (A[i] == 0) {
a... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]] | 0 | 148 |
n,k = map(int,input().split())
t = [0] * n
for _ in range(k):
d = int(input())
a = list(map(int,input().split()))
for e in a:
t[e-1] += 1
ans = 0
l = [i for i in t if i != 0]
print(len(l)) | n,k = map(int,input().split())
t = [0] * n
for _ in range(k):
d = int(input())
a = list(map(int,input().split()))
for e in a:
t[e-1] += 1
ans = 0
l = [i for i in t if i == 0]
# print(l)
print(len(l)) | [["-", 0, 662, 12, 658, 0, 678, 0, 666, 667, 79], ["+", 0, 662, 12, 658, 0, 678, 0, 666, 667, 60]] | 5 | 92 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <iostream>
#include <map>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#define INF 100000000000000
using namespace std;
typedef long long llong;
// int isalpha(char ch): ch がアルファベットなら true を返す
// int isdigit(char ch): ch が数字なら true を返す
// i... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <iostream>
#include <map>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#define INF 100000000000000
using namespace std;
typedef long long llong;
// int isalpha(char ch): ch がアルファベットなら true を返す
// int isdigit(char ch): ch が数字なら true を返す
// i... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 49, 22], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 49, 22], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 31, 22], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 31, 22], ["-", 0, 7, 8, 9, 0, 7, 26, 27, 28, 22], ["+", 0, 7, 8, 9, 0, 7, 26, 27, 28, 22]] | 1 | 270 |
#include <iostream>
using namespace std;
int main() {
int i, j, n, k;
cin >> n >> k;
int a[n] = {0};
int d;
int x;
for (i = 0; i < k; i++) {
cin >> d;
for (j = 0; j < d; j++) {
cin >> x;
a[x] = 1;
}
}
int c = 0;
for (i = 0; i < n; i++) {
if (a[i] == 0) {
c++;
}
... | #include <iostream>
using namespace std;
int main() {
int i, j, n, k;
cin >> n >> k;
int a[n] = {0};
int d;
int x;
for (i = 0; i < k; i++) {
cin >> d;
for (j = 0; j < d; j++) {
cin >> x;
a[x - 1] = 1;
}
}
int c = 0;
for (i = 0; i < n; i++) {
if (a[i] == 0) {
c++;
... | [["+", 0, 11, 31, 69, 341, 342, 0, 16, 17, 33], ["+", 0, 11, 31, 69, 341, 342, 0, 16, 12, 13]] | 1 | 129 |
n,k=list(map(int, input("").split()))
d=[]
a=[]
t=[]
for i in range(k):
d.append(int(input()))
a.append(list(map(int, input("").split())))
for i in range(n):
t.append(True)
for i in range(k):
for j in range(d[i]):
if t[j-1]:
t[j-1]=False
out=0
for i in t:
if i:
out+=1
pri... | n,k=list(map(int, input("").split()))
d=[]
a=[]
t=[]
for i in range(k):
d.append(int(input()))
a.append(list(map(int, input("").split())))
for i in range(n):
t.append(True)
for i in range(k):
for j in a[i]:
if t[j-1]:
t[j-1]=False
out=0
for i in t:
if i:
out+=1
print(out)... | [["-", 0, 7, 8, 196, 0, 7, 12, 652, 63, 22], ["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 24], ["-", 0, 7, 12, 652, 3, 4, 0, 206, 51, 22], ["+", 0, 7, 8, 196, 0, 7, 12, 206, 51, 22], ["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 25]] | 5 | 141 |
n,k = list(map(int, input("").split()))
sunuke = [0] * n
for i in range(K):
d = int(input())
a = list(map(int,input().split()))
for j in a:
sunuke[j-1] = 0
print(sum(sunuke)) | n,k = list(map(int, input().split()))
sunuke = [1] * n
for i in range(k):
d = int(input())
a = list(map(int, input().split()))
for j in a:
sunuke[j-1] = 0
print(sum(sunuke)) | [["-", 63, 319, 500, 652, 3, 4, 0, 557, 0, 654], ["-", 63, 319, 500, 652, 3, 4, 0, 557, 0, 655], ["-", 0, 1, 0, 662, 12, 657, 31, 634, 0, 612], ["+", 0, 1, 0, 662, 12, 657, 31, 634, 0, 612], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22]] | 5 | 81 |
def Qb():
n, k = map(int, input().split())
ans = set()
for v in range(k):
d = int(input())
ns = [int(v) for v in input().split()]
for n in ns:
ans.add(n)
print(n - len(ans))
if __name__ == '__main__':
Qb()
| def Qb():
n, k = map(int, input().split())
ans = set()
for v in range(k):
d = int(input())
ns = [int(v) for v in input().split()]
for N in ns:
ans.add(N)
print(n - len(ans))
if __name__ == '__main__':
Qb()
| [["-", 8, 196, 0, 7, 8, 196, 0, 7, 31, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 7, 31, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22]] | 5 | 90 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
int n, k;
unordered_map<int, int> M;
cin >> n >> k;
for (int i = 1; i <= n; i++)
M[i] = 0;
for (int i = 0; i < k; i++) {
int d;
cin >> d;
for (int j = 0; j < d; j++) {
int a;
cin >> a;
M[a]++;
... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
int n, k;
unordered_map<int, int> M;
cin >> n >> k;
for (int i = 1; i <= n; i++)
M[i] = 0;
for (int i = 0; i < k; i++) {
int d;
cin >> d;
for (int j = 0; j < d; j++) {
int a;
cin >> a;
M[a]++;
... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]] | 1 | 144 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, K;
cin >> N >> K;
int d;
int a;
vector<bool> S(N, true);
for (int i = 0; i < K; i++) {
cin >> d;
for (int i = 0; i < d; i++) {
cin >> a;
S.at(a) = false;
}
}
int count = 0;
for (int i = 0; i < N; i++) {
if (... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, K;
cin >> N >> K;
int d;
int a;
vector<bool> S(N, true);
for (int i = 0; i < K; i++) {
cin >> d;
for (int i = 0; i < d; i++) {
cin >> a;
S.at(a - 1) = false;
}
}
int count = 0;
for (int i = 0; i < N; i++) {
... | [["+", 0, 11, 31, 2, 3, 4, 0, 16, 17, 33], ["+", 0, 11, 31, 2, 3, 4, 0, 16, 12, 13]] | 1 | 130 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.