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
p02706
N, M = map(int, input().split()) A = list(map(int, input().split())) for Ai in A: N -= Ai if N < 0: print(-1) if N >= 0: print(N)
N, M = map(int, input().split()) A = list(map(int, input().split())) for Ai in A: N -= Ai if N < 0: print(-1) break if N >= 0: print(N)
[ "control_flow.break.add" ]
458,842
458,843
u299645128
python
p02706
N, M = map(int,input().sprit()) A = list(map(int,input().sprit())) enjoy = N - sum(A) if N >= sum(A): print(enjoy) else: print('-1')
N, M = map(int, input().split()) A = list(map(int, input().split())) enjoy = N - sum(A) if N >= sum(A): print(enjoy) else: print('-1')
[ "assignment.value.change", "identifier.change", "call.arguments.change" ]
458,844
458,845
u454866339
python
p02706
summer_vacation, amount_of_homework = map(int, input().split()) a = map(int, input().split()) homework_list = list[a] total_days = 0 for i in homework_list: total_days += i if summer_vacation >= total_days: print(summer_vacation - total_days) else: print(-1)
summer_vacation, amount_of_homework = map(int, input().split()) a = map(int, input().split()) homework_list = list(a) total_days = 0 for i in homework_list: total_days += i if summer_vacation >= total_days: print(summer_vacation - total_days) else: print(-1)
[ "assignment.value.change" ]
458,846
458,847
u779830746
python
p02706
n, m = map(int, input().split()) lst = [ int(i) for i in input().split() ] if n - lst.sum() >= 0: print(n-lst.sum()) else: print(-1)
n, m = map(int, input().split()) lst = [ int(i) for i in input().split() ] if n - sum(lst) >= 0: print(n-sum(lst)) else: print(-1)
[ "control_flow.branch.if.condition.change", "call.arguments.change" ]
458,861
458,862
u531456543
python
p02706
n, m = map(int, input().split()) a = list(map(int, input().split())) sum = 0 for i in a: sum += i if sum >= n: print(-1) else: print(n - sum)
n, m = map(int, input().split()) a = list(map(int, input().split())) sum = 0 for i in a: sum += i if sum > n: print(-1) else: print(n - sum)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
458,865
458,866
u571537830
python
p02706
N, M = map(int, input().split()) A = list(map(int,input(),split())) a = sum(A) if N >= a: print(int(N-a)) if N < a: print(-1)
N, M = map(int, input().split()) A = list(map(int,input().split())) a = sum(A) if N >= a: print(int(N-a)) else: print(-1)
[ "assignment.value.change", "call.arguments.change" ]
458,873
458,874
u763550415
python
p02706
n,m=map(int,input().split()) L=list(map(int,input().split())) if sum(L)<n: print(n-sum(L)) else: print(-1)
n,m=map(int,input().split()) L=list(map(int,input().split())) if sum(L)<=n: print(n-sum(L)) else: print(-1)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
458,879
458,880
u894694822
python
p02706
x, y = map(int, input().spilit()) array = list(map(int, input().spilit())) su = sum(array) a = x - su if a > -1: print(a) else: print(-1)
x, y = map(int, input().split()) array = list(map(int, input().split())) su = sum(array) a = x - su if a > -1: print(a) else: print(-1)
[ "assignment.value.change", "identifier.change", "call.arguments.change" ]
458,917
458,918
u819911285
python
p02706
x,y = map(int, input().spilit()) array = list(map(int, input().spilit())) su = sum(array) a = x - su if a > -1: print(a) else: print(-1)
x, y = map(int, input().split()) array = list(map(int, input().split())) su = sum(array) a = x - su if a > -1: print(a) else: print(-1)
[ "assignment.value.change", "identifier.change", "call.arguments.change" ]
458,919
458,918
u819911285
python
p02706
x,y = map(int, input().spilit()) array = list(map(int, input().spilit())) su = sum(array) a = x - su if a > -1: print(a) else: print(-1)
x, y = map(int, input().split()) array = list(map(int, input().split())) su = sum(array) a = x - su if a > -1: print(a) else: print(-1)
[ "assignment.value.change", "identifier.change", "call.arguments.change" ]
458,920
458,918
u819911285
python
p02706
n, m = map(int, input().split()) a = list(map(int, input().split())) ans = n for i in a: ans -= i if ans < 0: print(-1) print(ans)
n, m = map(int, input().split()) a = list(map(int, input().split())) ans = n for i in a: ans -= i if ans < 0: print(-1) else: print(ans)
[]
458,921
458,922
u863433366
python
p02706
a = list(map(int, input().split())) b = list(map(int, input().split())) if a[0] == sum(b): print(-1) else: print(a[0] - sum(b))
a = list(map(int, input().split())) b = list(map(int, input().split())) if a[0] < sum(b): print(-1) else: print(a[0] - sum(b))
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
458,923
458,924
u780698286
python
p02706
import numpy as np N,M=map(int,input().split()) p=list(map(int,input().split())) if np.sum(p)>M: print(-1) else: print(N-np.sum(p))
import numpy as np N,M=map(int,input().split()) p=list(map(int,input().split())) if np.sum(p)>N: print(-1) else: print(N-np.sum(p))
[ "identifier.change", "control_flow.branch.if.condition.change" ]
458,927
458,928
u088475928
python
p02706
N,M=map(int,input().split()) p=list(map(int,input().split())) if np.sum(p)>M: print(-1) else: print(N-np.sum(p))
import numpy as np N,M=map(int,input().split()) p=list(map(int,input().split())) if np.sum(p)>N: print(-1) else: print(N-np.sum(p))
[ "identifier.change", "control_flow.branch.if.condition.change" ]
458,929
458,928
u088475928
python
p02706
a, b = map(int, input().split()) c = sum(map(int, input().split())) print(max([c - a, -1]))
a, b = map(int, input().split()) c = sum(map(int, input().split())) print(max(a - c, -1))
[ "call.arguments.change" ]
458,934
458,935
u530339790
python
p02706
a, b = map(int, input().split()) c = sum(map(int, input().split())) print(max(c - a, -1))
a, b = map(int, input().split()) c = sum(map(int, input().split())) print(max(a - c, -1))
[ "expression.operation.binary.remove" ]
458,936
458,935
u530339790
python
p02706
N,M = [int(i) for i in input().split(" ")] A = [int(i) for i in input().split(" ")] print ((N - sum(A)) if sum(A)<N else -1 )
N,M = [int(i) for i in input().split(" ")] A = [int(i) for i in input().split(" ")] print ((N - sum(A)) if sum(A)<=N else -1 )
[ "expression.operator.compare.change", "call.arguments.change", "io.output.change" ]
458,937
458,938
u199356004
python
p02706
n,m = map(int,input().split()) A = list(int(input()).split()) tmp = n-sum(A) if tmp >= 0: print(tmp) else: print(-1)
n,m = map(int,input().split()) A = list(map(int,input().split())) tmp = n-sum(A) if tmp >= 0: print(tmp) else: print(-1)
[ "assignment.value.change", "identifier.change", "call.function.change", "call.arguments.change", "call.arguments.add" ]
458,946
458,947
u849229491
python
p02706
n,m = map(int,input().split()) grid = [] a = list(map(int, input().strip().split())) res = n - sum(a) if(res <= 0): res = -1 print(res)
n,m = map(int,input().split()) a = list(map(int, input().strip().split())) res = n - sum(a) if(res < 0): res = -1 print(res)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
458,948
458,949
u688281605
python
p02706
n,m=map(int, input().split()) a=list(map(int, input().split())) if sum(a)>=0: print(n-sum(a)) else: print(-1)
n,m=map(int, input().split()) a=list(map(int, input().split())) if n-sum(a)>=0: print(n-sum(a)) else: print(-1)
[ "control_flow.branch.if.condition.change" ]
458,950
458,951
u322187839
python
p02706
n,m = map(int,input().split()) a = list(map(int, input().split())) if n-sum(a)>n: print(-1) else: print(n-sum(a))
n,m = map(int,input().split()) a = list(map(int, input().split())) if sum(a)>n: print(-1) else: print(n-sum(a))
[ "expression.operation.binary.remove" ]
458,952
458,953
u563838154
python
p02706
a=[int(x) for x in input().split()] b=[int(x) for x in input().split()] c=sum(b) if(c > a[0]): print(-1) else: print(c - a[0])
a=[int(x) for x in input().split()] b=[int(x) for x in input().split()] c=sum(b) if(c > a[0]): print(-1) else: print(a[0] - c)
[ "expression.operation.binary.remove" ]
458,965
458,966
u471754194
python
p02706
n,m=map(int,input().split(" ")) a=list(map(int,input().split(" "))) print(min(-1, n-sum(a)))
n,m=map(int,input().split(" ")) a=list(map(int,input().split(" "))) print(max(-1, n-sum(a)))
[ "misc.opposites", "identifier.change", "call.function.change", "call.arguments.change", "io.output.change" ]
458,977
458,978
u847923740
python
p02706
n,m = map(int, input().split()) a = list(map(int, input().split())) print(n-sum(a) if n-sum(a) > 0 else "-1")
n,m = map(int, input().split()) a = list(map(int, input().split())) print(n-sum(a) if n-sum(a) >= 0 else "-1")
[ "expression.operator.compare.change", "call.arguments.change", "io.output.change" ]
458,982
458,983
u843073153
python
p02706
N, M = map(int, input().split()) A = list(map(int, input().split())) ASOBU = sum(A) - N if ASOBU >= 0: print(ASOBU) else: print('-1')
N, M = map(int, input().split()) A = list(map(int, input().split())) ASOBU = N - sum(A) if ASOBU >= 0: print(ASOBU) else: print('-1')
[ "expression.operation.binary.remove" ]
458,984
458,985
u463281863
python
p02706
n,m=map(int,input().split()) a=list(map,int().input()) x=sum(a) if n<x: print('-1') else: print(n-x)
n,m=map(int,input().split()) a=list(map(int,input().split())) x=sum(a) if n<x: print('-1') else: print(n-x)
[ "call.arguments.change", "call.arguments.add" ]
458,986
458,987
u350093546
python
p02706
n,m = (int(x) for x in input().split()) a = (int(x) for x in input().split()) for node in a: n = n - node print(n if n > 0 else -1)
n,m = (int(x) for x in input().split()) a = (int(x) for x in input().split()) for node in a: n = n - node print(n if n >= 0 else -1)
[ "expression.operator.compare.change", "call.arguments.change", "io.output.change" ]
458,990
458,991
u840920983
python
p02706
import math ex = [] N, M = map(int, input().split()) ex = [exi for exi in map(int, input().split())] rem = N - sum(ex) print(rem) if rem > 0 else print('-1')
import math ex = [] N, M = map(int, input().split()) ex = [exi for exi in map(int, input().split())] rem = N - sum(ex) print(rem) if rem >= 0 else print('-1')
[ "expression.operator.compare.change" ]
458,997
458,998
u347203174
python
p02706
n,m=map(int,input().split()) a=list(map(int,input().split())) p=0 for i in a: p+=i if(n>=p): print("{}",n-p) else: print("-1")
n,m=map(int,input().split()) a=list(map(int,input().split())) p=0 for i in a: p+=i if(n>=p): print("{}".format(n-p)) else: print("-1")
[ "call.arguments.change", "io.output.change", "call.add" ]
459,006
459,007
u080475902
python
p02706
n, m = map(int, input().split()) a = list(map(int, input().split())) d = n-sum(a) if(a<0): d = -1 pritn(d)
n, m = map(int, input().split()) a = list(map(int, input().split())) d = n-sum(a) if(d<0): d = -1 print(d)
[ "identifier.change", "control_flow.branch.if.condition.change", "call.function.change" ]
459,010
459,011
u406379114
python
p02706
N, M = map(int, input().split()) A = sum([int(x) for x in input().split()]) if N - M < 0: print(-1) else: print(N-M)
N, M = map(int, input().split()) A = sum([int(x) for x in input().split()]) if N - A < 0: print(-1) else: print(N-A)
[ "identifier.change", "control_flow.branch.if.condition.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
459,018
459,019
u736729525
python
p02706
N, M = map(int, input().split()) A = map(int, input().split()) if sum(A) > N: print(-1) else: print(N - sum(A))
N, M = map(int, input().split()) A = list(map(int, input().split())) if sum(A) > N: print(-1) else: print(N - sum(A))
[ "call.add", "call.arguments.change" ]
459,024
459,025
u536034761
python
p02706
n,m = map(int,input()) ai = list(map(int,input().split())) sumday = sum(ai) if n-sumday<0: print(-1) else: print(n-sumday)
n,m = map(int,input().split()) ai = list(map(int,input().split())) sumday = sum(ai) if n-sumday<0: print(-1) else: print(n-sumday)
[ "call.add" ]
459,028
459,029
u843318346
python
p02706
N, M = map(int, input().split()) l = list(map(int, input().split())) res = N - sum(l) print(res if res>0 else -1)
N, M = map(int, input().split()) l = list(map(int, input().split())) free = N - sum(l) print(free if free>=0 else -1)
[ "assignment.variable.change", "identifier.change", "call.arguments.change", "io.output.change" ]
459,032
459,033
u411302151
python
p02706
n, m = map(int, input().split()) a = list(map(int, input().split())) ans = n - sum(a) if ans > 0: print(ans) else: print(-1)
# ABC163B n, m = map(int, input().split()) a = list(map(int, input().split())) ans = n - sum(a) if ans >= 0: print(ans) else: print(-1)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
459,042
459,043
u437215432
python
p02706
n,m=map(int,input().split()) a=list(map(int,input().split())) s=int(sum(a)) if (n-s)> 0: print(n-s) else: print(-1)
n,m=map(int,input().split()) a=list(map(int,input().split())) s=int(sum(a)) if (n-s)>= 0: print(n-s) else: print(-1)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
459,058
459,059
u768256617
python
p02706
N, M = map(int, input().split()) days = list(map(int, input().split())) hw_day = 0 for day in days: hw_day += day if N > hw_day: print(N - hw_day) else: print('-1')
N, M = map(int, input().split()) days = list(map(int, input().split())) hw_day = 0 for day in days: hw_day += day if N >= hw_day: print(N - hw_day) else: print('-1')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
459,060
459,061
u242890210
python
p02706
def actual(n, m, a_list): a_sum = sum(a_list) if n >= a_sum: return n - a_sum return -1 N, M = map(int, input().split()) a_list = map(int, input().split()) print(actual(n, m, a_list))
def actual(n, m, a_list): a_sum = sum(a_list) if n >= a_sum: return n - a_sum return -1 n, m = map(int, input().split()) a_list = map(int, input().split()) print(actual(n, m, a_list))
[ "assignment.variable.change", "identifier.change" ]
459,062
459,063
u717839182
python
p02706
N,M = map(int,input().split()) lst = list(map(int,input().split())) plus = 0 for a in range(lst): plus += a if plus <= N: print(N-plus) else: print('-1')
N,M = map(int,input().split()) lst = list(map(int,input().split())) plus = 0 for a in lst: plus += a if plus <= N: print(N-plus) else: print('-1')
[ "call.remove", "call.arguments.change" ]
459,064
459,065
u586857375
python
p02706
n,m=map(int,input().split()) hoge=list(map(int,input().split())) if(sum(hoge)>=n): print(-1) else: print(n-sum(hoge))
n,m=map(int,input().split()) hoge=list(map(int,input().split())) if(sum(hoge)>n): print(-1) else: print(n-sum(hoge))
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
459,080
459,081
u777028980
python
p02706
N,M = map(int, input().split()) A = list(map(int, input().split())) N -= sum(A) if N > 0: print(N) else: print(-1)
N,M = map(int, input().split()) A = list(map(int, input().split())) N -= sum(A) if N >= 0: print(N) else: print(-1)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
459,086
459,087
u610120522
python
p02706
n, m = input().split() a = input().split() a = [int(i) for i in a] if int(n) >= sum(a): print(int(n)-sum(a)) else: print(0)
n, m = input().split() a = input().split() a = [int(i) for i in a] if int(n) >= sum(a): print(int(n)-sum(a)) else: print(-1)
[ "call.arguments.change", "io.output.change", "expression.operation.unary.add" ]
459,096
459,097
u750378652
python
p02706
n,m=map(int,input().split()) for num in input().split(): n-=num print(n if n>=0 else -1)
n,m=map(int,input().split()) for num in input().split(): n-=int(num) print(n if n>=0 else -1)
[ "call.add", "call.arguments.change" ]
459,114
459,115
u831752983
python
p02706
import sys n, m = map(int, input().split()) cur = list(map(int, input().split())) if sum(cur) >= n: print(-1) else: print(n - sum(cur))
import sys n, m = map(int, input().split()) cur = list(map(int, input().split())) if sum(cur) > n: print(-1) else: print(n - sum(cur))
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
459,122
459,123
u572138437
python
p02706
n, m = map(int, input().split()) A = [int(x) for x in input().split()] if n-sum(A)>0: print(n-sum(A)) else: print("-1")
n, m = map(int, input().split()) A = [int(x) for x in input().split()] if n-sum(A)>=0: print(n-sum(A)) else: print("-1")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
459,124
459,125
u318909153
python
p02706
N, M = map(int, input().split()) A = list(map(int, input().split())) s = 0 for n in A: s += n d = N - s if d > 0: print(d) else: print(-1)
N, M = map(int, input().split()) A = list(map(int, input().split())) s = 0 for n in A: s += n d = N - s if d >= 0: print(d) else: print(-1)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
459,128
459,129
u547375079
python
p02706
a, b = map(int, input().split()) c = list(map(int, input().split())) d = sum(c) print(a-d if a >= 0 else "-1")
a, b = map(int, input().split()) c = list(map(int, input().split())) d = sum(c) e = a - d print(e if e >= 0 else "-1")
[ "call.add", "identifier.change", "call.arguments.change", "io.output.change" ]
459,147
459,148
u655102148
python
p02706
NM = list(map(int, input().split())) N, M = NM[0],NM[1] a = list(map(int, input().split())) if sum(a)> N: print(-1) else: print(N - sum(A))
NM = list(map(int, input().split())) N, M = NM[0],NM[1] a = list(map(int, input().split())) if sum(a)> N: print(-1) else: print(N - sum(a))
[ "identifier.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
459,159
459,160
u257442624
python
p02706
a,b = map(int,input().split()) c =[int(i) for i in input().split()] su=sum(c) n = a-su if n>0: print(n) else: print(-1)
a,b = map(int,input().split()) c =[int(i) for i in input().split()] su=sum(c) n = a-su if n>=0: print(n) else: print(-1)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
459,178
459,179
u161155417
python
p02706
n,m=map(int,input().split()) list1=list(map(int,input().split())) ans=n-sum(list1) print(ans if ans>=0 else 0)
n,m=map(int,input().split()) list1=list(map(int,input().split())) ans=n-sum(list1) print(ans if ans>=0 else -1)
[ "call.arguments.change", "io.output.change", "expression.operation.unary.add" ]
459,186
459,187
u404678206
python
p02706
import math def main(): N, M = map(int, input().split()) A = sum(list(map(int, input().split()))) print(N - A) return 0 if __name__ == '__main__': main()
import math def main(): N, M = map(int, input().split()) A = sum(list(map(int, input().split()))) print(max(-1, N - A)) return 0 if __name__ == '__main__': main()
[ "call.add", "call.arguments.change" ]
459,196
459,197
u981332890
python
p02706
M,N = map(int,input().split()) A = list(map(int,input().split())) s = sum(A) if s > N: print(-1) else: print(N-s)
N,M = map(int,input().split()) A = list(map(int,input().split())) s = sum(A) if s > N: print(-1) else: print(N-s)
[]
459,230
459,231
u532107923
python
p02706
n, m = map(int, input().split()) li = input().split() b = 0 for a in li: b = b + a if n >= b: print(n-b) else: print("-1")
n, m = map(int, input().split()) li = input().split() b = 0 for a in li: b = b + int(a) if n >= b: print(n-b) else: print("-1")
[ "call.add", "call.arguments.change" ]
459,234
459,235
u694402282
python
p02706
N,M = map(int, input().split()) A_list = list(map(int, input.split())) avail = N - sum(A_list) if avail >= 0: print(avail) else: print(-1)
N,M = map(int, input().split()) A_list = list(map(int, input().split())) avail = N - sum(A_list) if avail >= 0: print(avail) else: print(-1)
[ "call.add" ]
459,236
459,237
u574565611
python
p02706
N, M = map(int, input().split()) A = list(map(int, input().split())) s = sum(A) if s > N: print(-1) else: print(N - s) print(-1)
N, M = map(int, input().split()) A = list(map(int, input().split())) s = sum(A) if s > N: print(-1) else: print(N - s)
[ "call.remove" ]
459,238
459,239
u910426639
python
p02706
N, M = map(int, input().split()) a = list(map(int, input().split)) homework = sum(a) if homework > N: print("-1") else: print(N - homework)
N, M = map(int, input().split()) a = list(map(int, input().split())) homework = sum(a) if homework > N: print("-1") else: print(N - homework)
[ "call.add" ]
459,251
459,252
u997927785
python
p02706
n,m = map(int,input().split()) a = list(map(int,input().split())) sum = 314 for i in a: sum -= i if sum < 0: print(-1) else: print(sum)
n,m = map(int,input().split()) a = list(map(int,input().split())) sum = n for i in a: sum -= i if sum < 0: print(-1) else: print(sum)
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove" ]
459,255
459,256
u953110527
python
p02706
n,m = map(int,input().split()) a = list(map(int,input().split())) sum = -314 for i in a: sum += a if sum < 0: print(-1) else: print(sum)
n,m = map(int,input().split()) a = list(map(int,input().split())) sum = n for i in a: sum -= i if sum < 0: print(-1) else: print(sum)
[ "assignment.value.change", "expression.operation.unary.remove" ]
459,257
459,256
u953110527
python
p02706
NM = [int(i) for i in input().split()] A = [int(i) for i in input().split()] N = NM[0] M = NM[1] if NM >= sum(A): print(NM-sum(A)) else: print(-1)
NM = [int(i) for i in input().split()] A = [int(i) for i in input().split()] N = NM[0] M = NM[1] if N >= sum(A): print(N-sum(A)) else: print(-1)
[ "identifier.change", "control_flow.branch.if.condition.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
459,262
459,263
u565436116
python
p02706
#!/usr/bin/env python3 n, m = list(map(int, input().split())) a = list(map(int, input().split())) sum_a = sum(a) if sum_a > n: print(-1) else: print(sum_a-n)
#!/usr/bin/env python3 n, m = list(map(int, input().split())) a = list(map(int, input().split())) sum_a = sum(a) if sum_a > n: print(-1) else: print(n-sum_a)
[ "expression.operation.binary.remove" ]
459,270
459,271
u239528020
python
p02706
N, M = map(int, input().sprit()) A = list(map(int, input().split())) a = sum(A) ans = N -a if ans >= 0: print(ans) else: print(-1)
N,M = map(int, input().split()) A = list(map(int, input().split())) a = sum(A) ans = N -a if ans >= 0: print(ans) else: print(-1)
[ "assignment.value.change", "identifier.change", "call.arguments.change" ]
459,280
459,281
u106954338
python
p02706
N,M = map(int, input().sprit()) A = list(map(int, input().split())) a = sum(A) ans = N -a if ans >= 0: print(ans) else: print(-1)
N,M = map(int, input().split()) A = list(map(int, input().split())) a = sum(A) ans = N -a if ans >= 0: print(ans) else: print(-1)
[ "assignment.value.change", "identifier.change", "call.arguments.change" ]
459,282
459,281
u106954338
python
p02706
N, M = list(map(int, input().split())) A = list(map(int, input().split())) asoberuhi = N - sum(A) if asoberuhi < 0: print(asoberuhi) else: print(-1)
N, M = list(map(int, input().split())) A = list(map(int, input().split())) asoberuhi = N - sum(A) if asoberuhi >= 0: print(asoberuhi) else: print(-1)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
459,287
459,288
u178439102
python
p02706
n,m=[int(i)for i in input()] list=[int(i) for i in input().split()] a=n-sum(list) if a>=0: print(a) else: print('-1')
n,m=[int(i)for i in input().split()] list=[int(i) for i in input().split()] a=n-sum(list) if a>=0: print(a) else: print('-1')
[ "call.add" ]
459,295
459,296
u235066013
python
p02706
n, m = map(int, input().split()) A = list(map(int, input().split())) if sum(A) < 0: print("-1") else: print(n - sum(A))
n, m = map(int, input().split()) A = list(map(int, input().split())) if (n - sum(A)) < 0: print("-1") else: print(n - sum(A))
[ "control_flow.branch.if.condition.change" ]
459,297
459,298
u763210820
python
p02706
N, M = map(int, input().split()) A = sum(list(map(int, input().split()))) if A >= M: print(A-M) else: print(-1)
N, M = map(int, input().split()) A = sum(list(map(int, input().split()))) if N >= A: print(N-A) else: print(-1)
[ "identifier.change", "control_flow.branch.if.condition.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
459,303
459,304
u569272329
python
p02706
n,m=(int(i) for i in input().split()) a=[int(i) for i in input().split()] s=sum(a) if n-a>=0: print(n-a) else: print(-1)
n,m=(int(i) for i in input().split()) a=[int(i) for i in input().split()] s=sum(a) if n-s>=0: print(n-s) else: print(-1)
[ "identifier.change", "control_flow.branch.if.condition.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
459,340
459,341
u907223098
python
p02706
n,m = map(int,input().split()) list1 = list(map(int,input().split())) if(n>sum(list1)): print(n-sum(list1)) else: print(-1)
n,m = map(int,input().split()) list1 = list(map(int,input().split())) if(n>=sum(list1)): print(n-sum(list1)) else: print(-1)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
459,342
459,343
u379378343
python
p02706
N,M = map(int,input().split()) A = list(map(int,input().split())) if sum(A) > N: print("-1") else: print(M - sum(A))
N,M = map(int,input().split()) A = list(map(int,input().split())) if sum(A) > N: print("-1") else: print(N - sum(A))
[ "identifier.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
459,378
459,379
u148183225
python
p02706
n,m = map(int, input().split()) a = list(map(int, input().split())) suma = sum(a) tmp = n - suma if tmp > 0: print(tmp) else: print(-1)
n,m = map(int, input().split()) a = list(map(int, input().split())) suma = sum(a) tmp = n - suma if tmp >= 0: print(tmp) else: print(-1)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
459,380
459,381
u321163853
python
p02706
import numpy as np N, M = map(int, input().split()) A_list = np.array(list(map(int, input().split()))) total = np.sum(A_list) free_day = max(N - M, -1) print(free_day)
import numpy as np N, M = map(int, input().split()) A_list = np.array(list(map(int, input().split()))) total = np.sum(A_list) free_day = max(N - total, -1) print(free_day)
[ "assignment.value.change", "identifier.change", "call.arguments.change", "expression.operation.binary.change" ]
459,398
459,399
u650265349
python
p02706
n, m = input().split() n = int(n) a = input().split() for i in range(len(a)): a[i] = int(a[i]) if n > sum(a): print(n-sum(a)) else: print("-1")
n, m = input().split() n = int(n) a = input().split() for i in range(len(a)): a[i] = int(a[i]) if n >= sum(a): print(n-sum(a)) else: print(-1)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "call.arguments.change" ]
459,412
459,411
u809578009
python
p02706
n, m = list(map(int, input().split())) print(max(n - sum(list(map(int, input().split()))), 0))
n, m = list(map(int, input().split())) print(max(n - sum(list(map(int, input().split()))), -1))
[ "call.arguments.change", "io.output.change", "expression.operation.unary.add" ]
459,415
459,416
u955865184
python
p02706
N, M = map(int, input().split()) A = list(map(int, input().split())) ans = N - sum(A) if N > sum(A) else -1 print(ans)
N, M = map(int, input().split()) A = list(map(int, input().split())) ans = N - sum(A) if N >= sum(A) else -1 print(ans)
[ "expression.operator.compare.change", "assignment.value.change" ]
459,423
459,424
u186121428
python
p02706
N, M = map(int, input().split()) A = list(map(int, input().split())) ans = N - sum(A) if N > sum(A) else 'No' print(ans)
N, M = map(int, input().split()) A = list(map(int, input().split())) ans = N - sum(A) if N >= sum(A) else -1 print(ans)
[ "expression.operator.compare.change", "assignment.value.change" ]
459,425
459,424
u186121428
python
p02706
N, M = map(int, input().split()) A = list(map(int, input().split())) ans = sum(A) if N > sum(A) else 'No' print(ans)
N, M = map(int, input().split()) A = list(map(int, input().split())) ans = N - sum(A) if N >= sum(A) else -1 print(ans)
[ "expression.operator.compare.change", "assignment.value.change" ]
459,426
459,424
u186121428
python
p02706
import math from sys import * inp=stdin.readline zip=zip def linp(x): return list(map(int,x.split())) def minp(x): return map(int,x.split()) n,m=minp(inp()) a=linp(inp()) an=sum(a)-n if an>=0: print(an) else: print("-1")
import math from sys import * inp=stdin.readline zip=zip def linp(x): return list(map(int,x.split())) def minp(x): return map(int,x.split()) n,m=minp(inp()) a=linp(inp()) an=n-sum(a) if an>=0: print(an) else: print("-1")
[ "expression.operation.binary.remove" ]
459,427
459,428
u163725566
python
p02706
if __name__ == '__main__': x=list(map(int,input().split(" "))) y = list(map(int, input().split(" "))) num=0 for i in y: num+=i if x[0]<y: print(-1) else: print(x[0]-y)
if __name__ == '__main__': x=list(map(int,input().split(" "))) y = list(map(int, input().split(" "))) num=0 for i in y: num+=i if x[0]<num: print(-1) else: print(x[0]-num)
[ "identifier.change", "control_flow.branch.if.condition.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
459,433
459,434
u565448206
python
p02706
n, m = map(int, input().split()) A = list(map(int, input().split())) homework = sum(A) print(n - m if n - m >= 0 else -1)
n, m = map(int, input().split()) A = list(map(int, input().split())) homework = sum(A) print(n - homework if n - homework >= 0 else -1)
[ "identifier.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
459,445
459,446
u006425112
python
p02706
n, m = map(int, input().split()) A = list(map(int, input().split())) homework = A.sum() print(n - m if n - m >= 0 else -1)
n, m = map(int, input().split()) A = list(map(int, input().split())) homework = sum(A) print(n - homework if n - homework >= 0 else -1)
[ "call.arguments.change", "identifier.change", "expression.operation.binary.change", "io.output.change" ]
459,447
459,446
u006425112
python
p02706
n, m = (int(i) for i in input().split()) a = [int(i) for i in input().split()] total = sum(a) ans = n - total if ans < 0: ans == -1 print(ans)
n, m = (int(i) for i in input().split()) a = [int(i) for i in input().split()] total = sum(a) ans = n - total if ans < 0: ans = -1 print(ans)
[ "expression.operation.compare.replace.remove", "assignment.replace.add", "misc.typo" ]
459,448
459,449
u782009499
python
p02706
n,m=map(int,input().split()) a=list(map(int,input().split())) if n-sum(a)<=0: print(-1) else: print(n-sum(a))
n,m=map(int,input().split()) a=list(map(int,input().split())) if n-sum(a)<0: print(-1) else: print(n-sum(a))
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
459,452
459,453
u344065503
python
p02706
N, M = int(input().split()) A = list(map(int, input().split())) S = sum(A) ans = -1 if N >= S: ans = N-S print (ans)
N, M = list(map(int, input().split())) A = list(map(int, input().split())) S = sum(A) ans = -1 if N >= S: ans = N-S print (ans)
[ "assignment.value.change", "identifier.change", "call.function.change", "call.add", "call.arguments.change" ]
459,458
459,459
u991134049
python
p02706
n,m=map(int,input().split()) a=[int(b) for b in input()] def func(n,a): if n< sum(a):return "-1" else: return n-sum(a) print(func(n,a))
n,m=map(int,input().split()) a=[int(b) for b in input().split()] def func(n,a): if n< sum(a):return "-1" else: return n-sum(a) print(func(n,a))
[ "call.add" ]
459,475
459,476
u681390786
python
p02706
n,m = map(int,input()) a = [int(x) for x in input().split()] s = sum(a) if n < s: print("-1") else: print(n-s)
n,m = map(int,input().split()) a = [int(x) for x in input().split()] s = sum(a) if n < s: print("-1") else: print(n-s)
[ "call.add" ]
459,478
459,479
u961059809
python
p02706
N, M = map(int, input().split()) A = input().split() travail = 0 for i in range(0, len(A)): A[i] = int(A[i]) travail += A[i] if N - travail > 0: print(N - travail) else: print(-1)
N, M = map(int, input().split()) A = input().split() travail = 0 for i in range(0, len(A)): A[i] = int(A[i]) travail += A[i] if N - travail >= 0: print(N - travail) else: print(-1)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
459,492
459,493
u384379887
python
p02706
n, m = map(int, input().split()) works = list(map(int, input().split())) print(works) plays = n - sum(works) print(plays if plays >= 0 else -1)
n, m = map(int, input().split()) works = list(map(int, input().split())) plays = n - sum(works) print(plays if plays >= 0 else -1)
[ "call.remove" ]
459,503
459,504
u731322489
python
p02706
N, M=map(int,input.split()) a=list(map(int,input.split())) if N-sum(a)>=0: print(N-sum(a)) else: print(-1)
N, M=map(int,input().split()) a=list(map(int,input().split())) if N-sum(a)>=0: print(N-sum(a)) else: print(-1)
[ "call.add" ]
459,511
459,512
u646203242
python
p02706
N, M = map(int, input().split()) day = sum(map(int, input().split())) (print(N - day) if (N - day) > 0 else print(-1))
N, M = map(int, input().split()) day = sum(map(int, input().split())) (print(N - day) if (N - day) >= 0 else print(-1))
[ "expression.operator.compare.change" ]
459,517
459,518
u186542450
python
p02706
n,m=map(int,input().split()) l=list(map(int,input().split())) s=sum(l) if s>l: print(-1) else: print(l-s)
n,m=map(int,input().split()) l=list(map(int,input().split())) s=sum(l) if s>n: print(-1) else: print(n-s)
[ "identifier.change", "control_flow.branch.if.condition.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
459,521
459,522
u021217230
python
p02706
yasumi = 0 syukudai = 1 nissu = list(map(int,input().split())) syukudaiNissu = list(map(int,input().split())) if sum(syukudaiNissu) > nissu[yasumi]: print()-1 print(nissu[yasumi] - sum(syukudaiNissu))
yasumi = 0 syukudai = 1 nissu = list(map(int,input().split())) syukudaiNissu = list(map(int,input().split())) if sum(syukudaiNissu) > nissu[yasumi]: print(-1) exit() print(nissu[yasumi] - sum(syukudaiNissu))
[ "call.arguments.add", "control_flow.exit.add", "expression.operation.binary.remove" ]
459,528
459,529
u055865960
python
p02706
from math import * from copy import * from string import * # alpha = ascii_lowercase from random import * from sys import stdin from sys import maxsize from operator import * # d = sorted(d.items(), key=itemgetter(1)) from itertools import * from collections import Counter # d = dict(Counter(l)) import math def...
from math import * from copy import * from string import * # alpha = ascii_lowercase from random import * from sys import stdin from sys import maxsize from operator import * # d = sorted(d.items(), key=itemgetter(1)) from itertools import * from collections import Counter # d = dict(Counter(l)) import math def...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
459,536
459,537
u346531902
python
p02706
n, m = map(int, input().split()) a = list(map(int, input().split())) p = sum(a) if n>p: print(n-p) else: print(-1)
n, m = map(int, input().split()) a = list(map(int, input().split())) p = sum(a) if n>=p: print(n-p) else: print(-1)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
459,542
459,543
u569479281
python
p02706
N, M = map(int, input().split()) A = list(map(int, input().split())) diff = N - sum(A) if diff > 0: print(diff) else: print(-1)
N, M = map(int, input().split()) A = list(map(int, input().split())) diff = N - sum(A) if diff >= 0: print(diff) else: print(-1)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
459,551
459,552
u095192632
python
p02706
N, M = map(int, input().split()) A = [int(i) for i in range(M)] B = sum(A) if N <= B: print(N-B) else: print('-1')
N, M = map(int, input().split()) A = [int(i) for i in input().split()] B = sum(A) if N >= B: print(N-B) else: print('-1')
[ "assignment.value.change", "identifier.change", "call.function.change", "control_flow.loop.range.bounds.upper.change", "call.arguments.change", "call.add", "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
459,553
459,554
u284167015
python
p02706
N, M = map(int, input().split()) A = [int(i) for i in input().split()] B = sum(A) if M <= B: print(N-B) else: print('-1')
N, M = map(int, input().split()) A = [int(i) for i in input().split()] B = sum(A) if N >= B: print(N-B) else: print('-1')
[]
459,555
459,554
u284167015
python
p02706
n, m = map(int, input().split()) a = [int(i) for i in input().split()] x = n - sum(a) print(x) if x else print(-1)
n, m = map(int, input().split()) a = [int(i) for i in input().split()] x = n - sum(a) print(x) if x>=0 else print(-1)
[]
459,571
459,572
u430223993
python
p02706
import numpy as np N, M = input().split() A=[int(x) for x in input().split()] if np.sum(A) < int(N): print(int(N)-np.sum(A)) else: print(-1)
import numpy as np N, M = input().split() A=[int(x) for x in input().split()] if np.sum(A) <= int(N): print(int(N)-np.sum(A)) else: print(-1)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
459,588
459,589
u629355744
python
p02706
N,M = map(int,input().split(" ")) A = [int(e) for e in input().split(" ")] if N - sum(A) <= 0: print(-1) else: print(N - sum(A))
N,M = map(int,input().split(" ")) A = [int(e) for e in input().split(" ")] if N - sum(A) < 0: print(-1) else: print(N - sum(A))
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
459,611
459,612
u789205676
python
p02706
#先にAの合計値を出してもよい N, M = map(int, input().split()) A = list(map(int, input().split())) suma = sum(A) if N-suma>=0: print(N) else: print(-1)
#先にAの合計値を出してもよい N, M = map(int, input().split()) A = list(map(int, input().split())) suma = sum(A) if N-suma>=0: print(N-suma) else: print(-1)
[ "expression.operation.binary.add" ]
459,613
459,614
u581603131
python