Datasets:

problem_id
stringlengths
6
6
buggy_code
stringlengths
8
526k
fixed_code
stringlengths
12
526k
labels
listlengths
0
15
⌀
buggy_submission_id
int64
1
1.54M
fixed_submission_id
int64
2
1.54M
user_id
stringlengths
10
10
language
stringclasses
8 values
p02687
a = input() if a == "ABC": print("ARC") if a == "ARC": print("ARC")
a = input() if a == "ABC": print("ARC") if a == "ARC": print("ABC")
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,129
419,130
u501986378
python
p02687
n = input() if n == 'ABC': print ('ARC') else: print ('ARC')
n = input() if n == 'ABC': print ('ARC') else: print ('ABC')
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,153
419,154
u087512063
python
p02687
s = input() if s == 'ABC': ans = 'ARC' else: anse = 'ABC' print(ans)
s = input() if s == 'ABC': ans = 'ARC' else: ans = 'ABC' print(ans)
[ "assignment.variable.change", "identifier.change" ]
419,159
419,160
u067077296
python
p02687
s=str(input()) if s=='ABC': print('ABC') elif s=='ARC': print('ARC') else: pass
s=str(input()) if s=='ABC': print('ARC') elif s=='ARC': print('ABC') else: pass
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,188
419,189
u879061031
python
p02687
contest_1 == "ABC" contest_2 == "ARC" S = input() if S == contest_1: print(contest_2) else: print(contest_1)
contest_1 = "ABC" contest_2 = "ARC" S = input() if S == contest_1: print(contest_2) else: print(contest_1)
[ "expression.operation.compare.replace.remove", "assignment.replace.add", "misc.typo" ]
419,196
419,197
u697758384
python
p02687
S=input() if s=="ABC": ans=ARC else: ans=ABC print(ans)
S=input() if S=="ABC": ans="ARC" else: ans="ABC" print(ans)
[ "identifier.change", "control_flow.branch.if.condition.change" ]
419,240
419,241
u481550011
python
p02687
N = input() print('ABC' if N == 'ARC' else 'ABC')
N = input() print('ABC' if N == 'ARC' else 'ARC')
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,254
419,255
u840155763
python
p02687
S = "ABC" if(S[1]=="B"): result = S.replace("B","R") else: result = S.replace("R","B") print(result)
S = input() if(S[1]=="B"): result = S.replace("B","R") else: result = S.replace("R","B") print(result)
[]
419,256
419,257
u864085306
python
p02687
if(S[1]=="B"): result = S.replace("B","R") else: result = S.replace("R","B") print(result)
S = input() if(S[1]=="B"): result = S.replace("B","R") else: result = S.replace("R","B") print(result)
[ "assignment.add" ]
419,258
419,257
u864085306
python
p02687
user = input() if user == "s": print("ARC") if user == "s": print("ABC")
s = input() if s == "ABC": print("ARC") if s == "ARC": print("ABC")
[ "assignment.variable.change", "identifier.change", "control_flow.branch.if.condition.change", "literal.string.change" ]
419,259
419,260
u147910356
python
p02687
string = input() if string == 'ABC': anser = 'ARC' else: anser = 'ABC'
string = input() if string == 'ABC': answer = 'ARC' else: answer = 'ABC' print(answer)
[ "assignment.variable.change", "identifier.change", "call.add" ]
419,267
419,268
u659587571
python
p02687
a=intput("enter") if a=="ABC": print("ARC") elif a=="ARC": print("ABC")
a=input() if a=="ABC": print("ARC") elif a=="ARC": print("ABC")
[ "assignment.value.change", "identifier.change", "call.function.change" ]
419,273
419,274
u743478358
python
p02687
a=intput() if a=="ABC": print("ARC") elif a=="ARC": print("ABC")
a=input() if a=="ABC": print("ARC") elif a=="ARC": print("ABC")
[ "assignment.value.change", "identifier.change", "call.function.change" ]
419,275
419,274
u743478358
python
p02687
S = input() print('ABC' if S=='ARC' else 'ABC')
S = input() print('ABC' if S=='ARC' else 'ARC')
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,284
419,285
u594862874
python
p02687
from collections import defaultdict, deque, Counter from heapq import heappush, heappop, heapify import math import bisect import random from itertools import permutations, accumulate, combinations, product import sys import string from bisect import bisect_left, bisect_right from math import factorial, ceil, floor fro...
from collections import defaultdict, deque, Counter from heapq import heappush, heappop, heapify import math import bisect import random from itertools import permutations, accumulate, combinations, product import sys import string from bisect import bisect_left, bisect_right from math import factorial, ceil, floor fro...
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,305
419,306
u499381410
python
p02687
import sys input=sys.stdin.readline s=input().rstrip() if s=="ABC": print("ARC") else: print("ARC")
import sys input=sys.stdin.readline s=input().rstrip() if s=="ABC": print("ARC") else: print("ABC")
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,311
419,312
u185896732
python
p02687
S = int(input()) if S == 'ABC': print('ARC') else: print('ABC')
S = input() if S == 'ABC': print('ARC') else: print('ABC')
[ "call.remove", "call.arguments.change" ]
419,328
419,329
u673101577
python
p02687
import itertools s = input() if s =="ABC": print("ARC") else: print("ARC")
import itertools s = input() if s =="ABC": print("ARC") else: print("ABC")
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,334
419,335
u431484963
python
p02687
S==input() B="ABC" if S==B: print("ARC") else: print("ABC")
S=input() B="ABC" if S==B: print("ARC") else: print("ABC")
[ "expression.operation.compare.replace.remove", "assignment.replace.add", "misc.typo" ]
419,356
419,357
u497188176
python
p02687
comp = input() if cpm[1] == 'R' : print("ABC") else : print("ARC")
comp = input() try : if comp[1] == 'R' : print("ABC") else : print("ARC") except: pass
[ "identifier.change", "control_flow.branch.if.condition.change", "control_flow.pass.add" ]
419,362
419,363
u326435117
python
p02687
if S == "ABC": print("ARC") else: print("ABC")
S = input() if S == "ABC": print("ARC") else: print("ABC")
[ "assignment.add" ]
419,368
419,369
u635358120
python
p02687
L = input() if L == 'ABC': print('ARC') else: print('ARC')
L = input() if L == 'ABC': print('ARC') else: print('ABC')
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,376
419,377
u150788544
python
p02687
import sys n = sys.stdin.readline() if n == 'ABC': print('ARC') else: print('ABC')
import sys n = sys.stdin.readline().strip() if n == 'ABC': print('ARC') else: print('ABC')
[ "call.add" ]
419,388
419,389
u823885866
python
p02687
x=input() if x is 'ABC': print('ARC') else: print('ABC')
x=input() if x == 'ABC': print('ARC') else: print('ABC')
[ "control_flow.branch.if.condition.change" ]
419,422
419,423
u366135002
python
p02687
s=input() if s == "ABC": print("ARC") elif s == "ARC": print("ARC")
s=input() if s == "ABC": print("ARC") elif s == "ARC": print("ABC")
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,424
419,425
u752414478
python
p02687
s=input() if s=="ABC": print("ARC") else: print("ARC")
s=input() if s=="ABC": print("ARC") else: print("ABC")
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,426
419,427
u264281836
python
p02687
S=input() if S=='ABC': print('ARC') else: print(S)
S=input() if S=='ABC': print('ARC') else : print('ABC')
[ "call.arguments.change", "io.output.change" ]
419,430
419,429
u119982001
python
p02687
s = intput() if(s[1]=='B'): print('ARC') else: print('ABC')
s = input() if(s[1]=='B'): print('ARC') else: print('ABC')
[ "assignment.value.change", "identifier.change", "call.function.change" ]
419,460
419,461
u207326980
python
p02687
import sys import itertools sys.setrecursionlimit(1000000000) from heapq import heapify,heappop,heappush,heappushpop import math import collections s = input() if s == "ABC": print("ARC") else: print(s)
import sys import itertools sys.setrecursionlimit(1000000000) from heapq import heapify,heappop,heappush,heappushpop import math import collections s = input() if s == "ABC": print("ARC") else: print("ABC")
[ "call.arguments.change", "io.output.change" ]
419,468
419,469
u379142263
python
p02687
raw_input = input().strip() if raw_input == 'ABC': print('ARC') else: print('ARC')
raw_input = input().strip() if raw_input == 'ABC': print('ARC') else: print('ABC')
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,501
419,502
u064136529
python
p02687
s = input() if s[1] == "R": print("ABC") else: print("ABC")
s = input() if s[1] == "R": print("ABC") else: print("ARC")
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,513
419,514
u711539583
python
p02687
s=input() if s == "ABC": print(s) else: print("ARC")
s=input() if s == "ARC": print("ABC") else: print("ARC")
[ "literal.string.change", "control_flow.branch.if.condition.change", "call.arguments.change", "io.output.change" ]
419,526
419,527
u069273180
python
p02687
# n, m, q = map(int, input().split()) s = input() if s is "ARC": print("ABC") else: print("ARC")
# n, m, q = map(int, input().split()) s = input() if s == "ARC": print("ABC") else: print("ARC")
[ "control_flow.branch.if.condition.change" ]
419,542
419,543
u824734140
python
p02687
S = input() if S[1] == B: print("ARC") else: print('ABC')
S = input() if S[1] == 'B': print('ARC') else: print('ABC')
[ "control_flow.branch.if.condition.change", "literal.string.change", "call.arguments.change", "io.output.change" ]
419,548
419,549
u124212130
python
p02687
contest=input() if contest=="ABC": print ("ARC") else: print("ARC")
contest=input() if contest=="ABC": print ("ARC") else: print("ABC")
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,585
419,586
u419658700
python
p02687
s=input() if s=="ABC": print("ARC") else: print("ARC")
s=input() if s=="ABC": print("ARC") else: print("ABC")
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,597
419,598
u223555291
python
p02687
a = input() if a == 'ABC': print('ARC') else: print('ARC')
a = input() if a == 'ABC': print('ARC') else: print('ABC')
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,599
419,600
u564692399
python
p02687
s=input() if s == ARC: print("ABC") elif s == ABC: print("ARC") else: print("input is wrong")
s=input() if s == "ARC": print("ABC") elif s == "ABC": print("ARC") else: print("input is wrong")
[ "control_flow.branch.if.condition.change" ]
419,601
419,602
u113255362
python
p02687
#--A - A?C S = input() if(S == "ABC"): print("ARC") else: print("ARC")
#--A - A?C S = input() if(S == "ABC"): print("ARC") else: print("ABC")
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,603
419,604
u949234226
python
p02687
s=input() if s == 'ABC': print('ARC') else: print('ARC')
s=input() if s == 'ABC': print('ARC') else: print('ABC')
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,615
419,616
u576335153
python
p02687
a = input() if a == input(): print('ARC') elif a == 'ARC': print('ABC')
a = input() if a == 'ABC': print('ARC') elif a == 'ARC': print('ABC')
[]
419,625
419,626
u301317743
python
p02687
string = int(input()) if string=="ABC": print("ARC") elif string=="ARC": print("ABC")
string = input() if string=="ABC": print("ARC") elif string=="ARC": print("ABC")
[ "call.remove", "call.arguments.change" ]
419,630
419,631
u013864607
python
p02687
if N=="ABC": print("ARC") else: print("ABC")
N=input() if N=="ABC": print("ARC") else: print("ABC")
[ "assignment.add" ]
419,642
419,643
u880337594
python
p02687
N=input() if N=="ABC": print("ARC") else: print("ARC")
N=input() if N=="ABC": print("ARC") else: print("ABC")
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,644
419,643
u880337594
python
p02687
S=input() if S=='ABC': print('ARC') else: print('ARC')
S=input() if S=='ABC': print('ARC') else: print('ABC')
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,647
419,648
u138045722
python
p02687
k = input() if k == "ABC": print("ARC") else: print("ARC")
k = input() if k == "ABC": print("ARC") else: print("ABC")
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,656
419,657
u638033979
python
p02687
s = input() if s[1] == 'R': print('ARC') elif s[1] == 'B': print('ABC')
s = input() if s[1] == 'R': print('ABC') elif s[1] == 'B': print('ARC')
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,660
419,661
u962356464
python
p02687
n = input() print(["ABC","ARC"][n=="ARC"])
n = input() print(["ABC","ARC"][n=="ABC"])
[ "literal.string.change", "variable_access.subscript.index.change", "call.arguments.change", "io.output.change" ]
419,677
419,678
u178465329
python
p02687
#n, m, q = map(int, input().split()) #List = list(map(int, input().split())) s = input() if s == ABC: print("ARC") else : print("ABC")
#n, m, q = map(int, input().split()) #List = list(map(int, input().split())) s = input() if s == "ABC": print("ARC") else : print("ABC")
[ "control_flow.branch.if.condition.change" ]
419,679
419,680
u532549251
python
p02687
s=int(input()) if s=='ABC': print('ARC') else: print('ABC')
s=(input()) if s=='ABC': print('ARC') else: print('ABC')
[]
419,684
419,685
u919235786
python
p02687
if __name__ == '__main__': from sys import stdin # from collections import defaultdict import math input = stdin.readline # import random a = input()[-1] if a == 'ARC': print('ABC') else: print('ARC')
if __name__ == '__main__': from sys import stdin # from collections import defaultdict import math input = stdin.readline # import random a = input()[:3] if a == 'ARC': print('ABC') else: print('ARC')
[]
419,694
419,695
u511268447
python
p02687
print("ABC"if input()=="ABC"else"ARC")
print("ABC"if input()=="ARC"else"ARC")
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,720
419,721
u695644361
python
p02687
# -*- coding: utf-8 -*- # スペース区切りの整数の入力 #N, K = map(int, input().split()) # 文字列の入力 s = input() #開業されたN個要素を受け付ける #list = [input() for i in range(N)] if s==ABC: print("ARC") else: print("ABC")
# -*- coding: utf-8 -*- # スペース区切りの整数の入力 #N, K = map(int, input().split()) # 文字列の入力 s = input() #開業されたN個要素を受け付ける #list = [input() for i in range(N)] if s=="ABC": print("ARC") else: print("ABC")
[ "control_flow.branch.if.condition.change" ]
419,722
419,723
u449514925
python
p02687
if S == "ARC": print("ABc") else: print("ARC")
S =input() if S == "ARC": print("ABC") else: print("ARC")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
419,736
419,737
u655833110
python
p02687
s = str(input()) if s == 'ABC': print('ARC') else: print('ARC')
s = str(input()) if s == 'ABC': print('ARC') else: print('ABC')
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,742
419,743
u328179275
python
p02687
S = input() if(s=='ARC'): print('ABC') else: print('ARC')
s = input() if(s=='ARC'): print('ABC') else: print('ARC')
[ "misc.typo", "assignment.variable.change", "identifier.change" ]
419,771
419,772
u370331385
python
p02687
import sys import math input = sys.stdin.readline s = input() if s == 'ABC': print('ARC') else: print('ABC')
import sys import math input = sys.stdin.readline s = input() if s == 'ABC\n': print('ARC') else: print('ABC')
[ "literal.string.change", "control_flow.branch.if.condition.change" ]
419,783
419,784
u134317099
python
p02687
s = str(input()) if s == "ARC": print("ABC") else: print("ABC")
s = str(input()) if s == "ARC": print("ABC") else: print("ARC")
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,785
419,786
u616117610
python
p02687
import sys read = sys.stdin.read readline = sys.stdin.readline readlines = sys.stdin.readlines def main(): s = readline().strip() if s == "ABC": print("ARC") else: print("ARC") if __name__ == "__main__": main()
import sys read = sys.stdin.read readline = sys.stdin.readline readlines = sys.stdin.readlines def main(): s = readline().strip() if s == "ABC": print("ARC") else: print("ABC") if __name__ == "__main__": main()
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,787
419,788
u638456847
python
p02687
from sys import stdin S = int(stdin.readline().rstrip()) if S=="ABC": print("ARC") else: print("ABC")
from sys import stdin S = stdin.readline().rstrip() if S=="ABC": print("ARC") else: print("ABC")
[ "call.remove", "call.arguments.change" ]
419,795
419,796
u087356957
python
p02687
s = input() if (s[1] == B): print("ARC") else: print("ABC")
s = input() if (s[1] == "B"): print("ARC") else: print("ABC")
[ "control_flow.branch.if.condition.change" ]
419,803
419,804
u342456871
python
p02687
# 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")
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,815
419,816
u255595446
python
p02687
n = input() if n == ABC: print("ARC") else: print("ABC")
n = input() if n == "ABC": print("ARC") else: print("ABC")
[ "control_flow.branch.if.condition.change" ]
419,819
419,820
u058264533
python
p02687
#A s = input() if s == ABC: print('ARC') else: print('ABC')
#A s = input() if s == 'ABC': print('ARC') else: print('ABC')
[ "control_flow.branch.if.condition.change" ]
419,837
419,838
u000513658
python
p02687
x=intput() if x=='ABC': print("ARC") else: print("ABC")
x=input() if x=='ABC': print("ARC") else: print("ABC")
[ "assignment.value.change", "identifier.change", "call.function.change" ]
419,848
419,849
u921818939
python
p02687
S = input()[2] if S=="B": print("ARC") else: print("ABC")
S = input()[1] if S=="B": print("ARC") else: print("ABC")
[ "literal.number.integer.change", "assignment.value.change", "variable_access.subscript.index.change" ]
419,852
419,853
u845573105
python
p02687
#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')
[ "control_flow.branch.if.condition.change" ]
419,869
419,870
u957098479
python
p02687
s = input() print('ARC' if s == 'ABC' else 'ARC')
s = input() print('ARC' if s == 'ABC' else 'ABC')
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,877
419,878
u390181802
python
p02687
s = int(input()) if s[1] == 'B': print('ARC') else: print('ABC')
s = input() if s[1] == 'B': print('ARC') else: print('ABC')
[ "call.remove", "call.arguments.change" ]
419,883
419,884
u665452497
python
p02687
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()
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,891
419,892
u977193988
python
p02687
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')
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,895
419,896
u053699292
python
p02687
s=input() if s == 'abc': print('arc') else: print('abc')
s=input() if s == 'ABC': print('ARC') else: print('ABC')
[ "literal.string.change", "literal.string.case.change", "control_flow.branch.if.condition.change", "call.arguments.change", "io.output.change" ]
419,920
419,921
u367163675
python
p02687
input_lin = input() if (input_line == "ABC"): print("ARC") else: print("ABC")
input_line = input() if (input_line == "ABC"): print("ARC") else: print("ABC")
[ "assignment.variable.change", "identifier.change" ]
419,922
419,923
u774163366
python
p02687
#!/usr/bin/env python3 s = input() if s == "ABC": print("ARC") else: print("ARC")
#!/usr/bin/env python3 s = input() if s == "ABC": print("ARC") else: print("ABC")
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,953
419,954
u858748695
python
p02687
def main(): s = input() if s == "ABC": print("ARC") else: print("ARC") if __name__ == '__main__': main()
def main(): s = input() if s == "ABC": print("ARC") else: print("ABC") if __name__ == '__main__': main()
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
419,969
419,970
u630237503
python
p02687
s = input() ans = "ABC" if s == "ABC": print("ARC") print(ans)
s = input() ans = "ABC" if s == "ABC": ans = "ARC" print(ans)
[ "call.arguments.change" ]
419,980
419,981
u233107306
python
p02687
S=input() print('ARC') if S=='ARC' else print('ABC')
S=input() print('ARC') if S=='ABC' else print('ABC')
[ "literal.string.change" ]
420,005
420,006
u464205401
python
p02688
N,K=map(int,input().split()) a=set() for _ in range(K): X=int(input()) Y=list(map(int,input().split())) for b in Y: a.add(b) print(3-len(a))
N,K=map(int,input().split()) a=set() for _ in range(K): X=int(input()) Y=list(map(int,input().split())) for b in Y: a.add(b) print(N-len(a))
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
420,011
420,012
u180824420
python
p02688
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)
[ "call.add" ]
420,031
420,032
u544165032
python
p02688
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))
[ "misc.opposites", "call.arguments.change", "io.output.change" ]
420,035
420,036
u863433366
python
p02688
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)
[ "call.remove" ]
420,045
420,046
u539659844
python
p02688
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 ...
[ "call.add" ]
420,049
420,050
u826354810
python
p02688
n, k = map(int, input().split()) snk = [-1] * (n + 1) ans = -1 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)
[ "assignment.value.change", "expression.operation.unary.remove", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "misc.off_by_one" ]
420,051
420,052
u706121438
python
p02688
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)
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "misc.off_by_one" ]
420,053
420,052
u706121438
python
p02688
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)
[ "call.remove" ]
420,058
420,059
u773440446
python
p02688
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(k+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)
[ "identifier.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change" ]
420,060
420,059
u773440446
python
p02688
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(k+1): if s.count(i+1) == 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)
[ "identifier.change", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change", "control_flow.loop.for.condition.change", "expression.operation.binary.remove" ]
420,061
420,059
u773440446
python
p02688
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(K): if s.count(i) == 0: ans += 1 print(ans)
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)
[ "identifier.change", "call.arguments.change", "control_flow.loop.range.bounds.upper.change" ]
420,062
420,059
u773440446
python
p02688
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))
[ "expression.operation.binary.add" ]
420,063
420,064
u127285813
python
p02688
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))
[ "call.arguments.change" ]
420,067
420,068
u094999522
python
p02688
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-1): 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)
[ "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change", "expression.operation.binary.remove" ]
420,079
420,080
u241800391
python
p02688
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)
[ "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change", "expression.operation.binary.remove" ]
420,081
420,080
u241800391
python
p02688
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))
[ "identifier.change" ]
420,082
420,083
u880480312
python
p02688
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)))
[ "control_flow.loop.range.bounds.upper.change", "expression.operation.binary.add" ]
420,084
420,085
u871934301
python
p02688
N,K = map(int,input().split()) P = [0 for i in range(N)] for i in range(K): a = int(input()) b = list(int,input().split()) for j in range(a): P[b[j]-1] = 1 m = 0 for i in range(N): if P[i] == 0: m += 1 print(m)
N,K = map(int,input().split()) P = [0 for i in range(N)] for i in range(K): a = int(input()) b = list(map(int,input().split())) for j in range(a): P[b[j]-1] = 1 m = 0 for i in range(N): if P[i] == 0: m += 1 print(m)
[ "call.arguments.add", "call.arguments.change" ]
420,097
420,087
u802662134
python
p02688
N,K = map(int,input().split()) P = [0 for i in range(N)] for i in range(K): a = int(input()) b = list(int,input().split()) for i in range(a): P[b[i]-1] = 1 m = 0 for i in range(N): if P[l] == 0: m += 1 print(m)
N,K = map(int,input().split()) P = [0 for i in range(N)] for i in range(K): a = int(input()) b = list(map(int,input().split())) for j in range(a): P[b[j]-1] = 1 m = 0 for i in range(N): if P[i] == 0: m += 1 print(m)
[ "call.arguments.add", "call.arguments.change", "identifier.change", "assignment.variable.change", "variable_access.subscript.index.change", "expression.operation.binary.change", "control_flow.branch.if.condition.change" ]
420,098
420,087
u802662134
python
p02688
N,K = map(int,input().split()) P = [0 for i in range(N)] for i in range(K): a = int(input()) b = list(int,input().split()) for j in range(a): P[b[j]-1] = 1 m = 0 for i in range(N): if P[i] == 0: m += 1 print(m)
N,K = map(int,input().split()) P = [0 for i in range(N)] for i in range(K): a = int(input()) b = list(map(int,input().split())) for j in range(a): P[b[j]-1] = 1 m = 0 for i in range(N): if P[i] == 0: m += 1 print(m)
[ "call.arguments.add", "call.arguments.change" ]
420,097
420,101
u802662134
python
p02688
N,K = map(int,input().split()) P = [0 for i in range(N)] for i in range(K): a = int(input()) b = list(int,input().split()) for i in range(a): P[b[i]-1] = 1 m = 0 for i in range(N): if P[l] == 0: m += 1 print(m)
N,K = map(int,input().split()) P = [0 for i in range(N)] for i in range(K): a = int(input()) b = list(map(int,input().split())) for j in range(a): P[b[j]-1] = 1 m = 0 for i in range(N): if P[i] == 0: m += 1 print(m)
[ "call.arguments.add", "call.arguments.change", "identifier.change", "assignment.variable.change", "variable_access.subscript.index.change", "expression.operation.binary.change", "control_flow.branch.if.condition.change" ]
420,098
420,101
u802662134
python
p02688
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))
[ "assignment.remove", "control_flow.loop.range.bounds.upper.change", "assignment.change" ]
420,108
420,109
u779805689
python
p02688
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))
[ "expression.operation.binary.add" ]
420,115
420,116
u944325914
python