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 9
values |
|---|---|---|---|---|---|---|---|
p02784
|
r=input().split()
H=int(r[0])
N=int(r[1])
data_pre=input().split()
data=[int(s) for s in data_pre]
if max(data)>=H:
print("Yes")
else:
print("No")
|
r=input().split()
H=int(r[0])
N=int(r[1])
data_pre=input().split()
data=[int(s) for s in data_pre]
if sum(data)>=H:
print("Yes")
else:
print("No")
|
[
"identifier.change",
"call.function.change",
"control_flow.branch.if.condition.change"
] | 584,817
| 584,818
|
u321605735
|
python
|
p02784
|
hp, N=input().split()
a=input().split()
print("Yes") if sum([int(x) for x in a]) > int(hp) else print("No")
|
hp, N=input().split()
a=input().split()
print("Yes") if sum([int(x) for x in a]) >= int(hp) else print("No")
|
[
"expression.operator.compare.change"
] | 584,829
| 584,830
|
u939947474
|
python
|
p02784
|
# ABC153
# B Common Raccoon VS Monster
h, n = map(int, input().split())
a = list(map(int, input().split()))
s = sum(a)
if a <= s:
print("Yes")
else:
print("No")
|
# ABC153
# B Common Raccoon VS Monster
h, n = map(int, input().split())
a = list(map(int, input().split()))
s = sum(a)
if h <= s:
print("Yes")
else:
print("No")
|
[
"identifier.change",
"control_flow.branch.if.condition.change"
] | 584,855
| 584,856
|
u987637902
|
python
|
p02784
|
h, n = map(int, input().split())
an = list(map(int, input().split()))
if sum(an) > h:
print('No')
else:
print('Yes')
|
h, n = map(int, input().split())
an = list(map(int, input().split()))
if sum(an) >= h:
print('Yes')
else:
print('No')
|
[
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"call.remove",
"call.add"
] | 584,885
| 584,886
|
u086438369
|
python
|
p02784
|
H, N = list(map(str, input().split()))
A = list(map(str, input().split()))
if sum(A)>=H:
print("Yes")
else:
print("No")
|
H, N = list(map(int, input().split()))
A = list(map(int, input().split()))
if sum(A)>=H:
print("Yes")
else:
print("No")
|
[
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 584,899
| 584,900
|
u095384238
|
python
|
p02784
|
H, N = map(int, input().split())
A = list(map(int, input().split()))
SA = sum(A)
print(H - SA)
if H <= SA:
print("Yes")
elif H > SA:
print("No")
|
H, N = map(int, input().split())
A = list(map(int, input().split()))
SA = sum(A)
if H <= SA:
print("Yes")
elif H > SA:
print("No")
|
[
"call.remove"
] | 584,905
| 584,906
|
u430336181
|
python
|
p02784
|
H,N = map(int, input().split())
A = list(map(input().split()))
if sum(A) >= H:
print('Yes')
else:
print('No')
|
H,N = map(int, input().split())
A = list(map(int, input().split()))
if sum(A) >= H:
print('Yes')
else:
print('No')
|
[
"call.arguments.add"
] | 584,907
| 584,908
|
u819593641
|
python
|
p02784
|
h,n=map(int,input().split())
a=list(map(int, input().split()))
print('Yes' if h<=sum(a) else (No))
|
h,n=map(int,input().split())
a=list(map(int, input().split()))
print('Yes' if h<=sum(a) else ('No'))
|
[
"call.arguments.change"
] | 584,929
| 584,930
|
u405660020
|
python
|
p02784
|
h,n = map(int,input().split())
a = list(map(int,input().split()))
print(["No","Yes"][sum(a) > h])
|
h,n = map(int,input().split())
a = list(map(int,input().split()))
print(["No","Yes"][sum(a) >= h])
|
[
"expression.operator.compare.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"io.output.change"
] | 584,931
| 584,932
|
u283829775
|
python
|
p02784
|
#import collections
#import itertools as it
#import math
#import numpy as np
#import sys
#sys.exit()
# = input()
# = int(input())
h, n = map(int, input().split())
a = list(map(int, input().split()))
'''
n = input()
a = [int(input()) for i in range(n)]
'''
'''
n,m = map(int, input().split())
a = [list(map(int, input().split())) for _ in range(m)]
'''
# c = collections.Counter()
#-------------------------------#
if sum(a)>=n:
print('Yes')
else:
print('No')
|
h, n = map(int, input().split())
a = list(map(int, input().split()))
'''
n = input()
a = [int(input()) for i in range(n)]
'''
'''
n,m = map(int, input().split())
a = [list(map(int, input().split())) for _ in range(m)]
'''
# c = collections.Counter()
#-------------------------------#
if sum(a)>=h:
print('Yes')
else:
print('No')
|
[
"identifier.change",
"control_flow.branch.if.condition.change"
] | 584,945
| 584,946
|
u687135117
|
python
|
p02784
|
H, N = map(int, input().split())
A = list(map(int, input().split()))
if H <= sum(A):
print ('Yse')
else:
print ('No')
|
H, N = map(int, input().split())
A = list(map(int, input().split()))
if H <= sum(A):
print('Yes')
else:
print('No')
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 584,953
| 584,954
|
u491330513
|
python
|
p02784
|
H, N = map(int, input().split())
A = list(map(int, input().split()))
if H <= sum(A):
print ("Yse")
else:
print ("No")
|
H, N = map(int, input().split())
A = list(map(int, input().split()))
if H <= sum(A):
print('Yes')
else:
print('No')
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 584,955
| 584,954
|
u491330513
|
python
|
p02784
|
h,n=map(int, input().split())
a=list(map(int, input().split()))
if h < sum(a):
print('Yes')
else:
print('No')
|
h,n=map(int, input().split())
a=list(map(int, input().split()))
if h <= sum(a):
print('Yes')
else:
print('No')
|
[
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 585,240
| 585,241
|
u585348179
|
python
|
p02784
|
def main():
H,N=map(int,input().split())
have=list(map(int,input().split()))
cal=0
for i in have:
cal+=i
if cal>=H:
print("YES")
return
print("NO")
return
main()
|
def main():
H,N=map(int,input().split())
have=list(map(int,input().split()))
cal=0
for i in have:
cal+=i
if cal>=H:
print("Yes")
return
print("No")
return
main()
|
[
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 585,251
| 585,252
|
u434296044
|
python
|
p02784
|
h, a = map(int, input().split(" "))
aL = list(map(int, input().split(" ")))
if sum(aL) <= h:
print("Yes")
exit()
print("No")
|
h, a = map(int, input().split(" "))
aL = list(map(int, input().split(" ")))
if sum(aL) >= h:
print("Yes")
exit()
print("No")
|
[
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 585,256
| 585,257
|
u552176911
|
python
|
p02784
|
h, a = map(int, input().split(" "))
aL = list(map(int, input().split(" ")))
if sum(aL) <= a:
print("Yes")
exit()
print("No")
|
h, a = map(int, input().split(" "))
aL = list(map(int, input().split(" ")))
if sum(aL) >= h:
print("Yes")
exit()
print("No")
|
[] | 585,258
| 585,257
|
u552176911
|
python
|
p02784
|
h, a = map(int, input().split(" "))
aL = list(map(int, input().split(" ")))
if sum(aL) >= a:
print("Yes")
exit()
print("No")
|
h, a = map(int, input().split(" "))
aL = list(map(int, input().split(" ")))
if sum(aL) >= h:
print("Yes")
exit()
print("No")
|
[
"identifier.change",
"control_flow.branch.if.condition.change"
] | 585,259
| 585,257
|
u552176911
|
python
|
p02784
|
H,N=[int(s) for s in input().split()]
ls=[int(s) for s in input().split()]
if H<sum(ls):
print('No')
else:
print('Yes')
|
H,N=[int(s) for s in input().split()]
ls=[int(s) for s in input().split()]
if H>sum(ls):
print('No')
else:
print('Yes')
|
[
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 585,270
| 585,271
|
u918601425
|
python
|
p02784
|
H,N = (int(x) for x in input().split())
a = list(map(int,input(),split()))
if sum(a) >= H:
print('Yes')
else:
print('No')
|
H,N = (int(x) for x in input().split())
a = list(map(int,input().split()))
if sum(a) >= H:
print('Yes')
else:
print('No')
|
[
"assignment.value.change",
"call.arguments.change"
] | 585,276
| 585,277
|
u250828304
|
python
|
p02784
|
H, _ = map(int, input().split(" "))
print("Yes" if sum(map(int, input().split(" "))) <= H else "No")
|
H, _ = map(int, input().split(" "))
print("Yes" if sum(map(int, input().split(" "))) >= H else "No")
|
[
"misc.opposites",
"expression.operator.compare.change",
"call.arguments.change",
"io.output.change"
] | 585,278
| 585,279
|
u198062737
|
python
|
p02784
|
import numpy as np
ene=list(map(int, input().split()))
num=list(map(int, input().split()))
if ene[0]>np.array(num).sum():
print("NO")
else:
print("Yes")
|
import numpy as np
ene=list(map(int, input().split()))
num=list(map(int, input().split()))
if ene[0]>np.array(num).sum():
print("No")
else:
print("Yes")
|
[
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 585,280
| 585,281
|
u813993459
|
python
|
p02784
|
import math
H,N=map(int,input().split())
A=list(map(int,input().split()))
if H < sum(A):
print('Yes')
else:
print('No')
|
import math
H,N=map(int,input().split())
A=list(map(int,input().split()))
if H <= sum(A):
print('Yes')
else:
print('No')
|
[
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 585,290
| 585,289
|
u861071267
|
python
|
p02784
|
h,n = map(int, input().split())
a = list(map(int,input().split()))
if sum(a) > h:
print('Yes')
else:
print('No')
|
h,n = map(int, input().split())
a = list(map(int,input().split()))
if sum(a) >= h:
print('Yes')
else:
print('No')
|
[
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 585,307
| 585,308
|
u573234244
|
python
|
p02784
|
h,n=map(int, input().split())
c=list(map(int, input().split()))
a = 0
for i in c:
a += i
if h < a:
print('Yes')
else:
print('No')
|
h,n=map(int, input().split())
c=list(map(int, input().split()))
a = 0
for i in c:
a += i
if h <= a:
print('Yes')
else:
print('No')
|
[
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 585,340
| 585,341
|
u060793972
|
python
|
p02784
|
h, n = list(map(int, input().split()))
a = list(map(int, input().split()))
if (sum(a) > h):
print('Yes')
else:
print('No')
|
h, n = list(map(int, input().split()))
a = list(map(int, input().split()))
if (sum(a) >= h):
print('Yes')
else:
print('No')
|
[
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 585,351
| 585,352
|
u366963613
|
python
|
p02784
|
a,b=map(int,input().split())
n=list(map(int,input().split()))
if a<=sum(n):
print('Yes')
else:
print('no')
|
a,b=map(int,input().split())
n=list(map(int,input().split()))
if a<=sum(n):
print('Yes')
else:
print('No')
|
[
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 585,368
| 585,369
|
u631579948
|
python
|
p02784
|
h,n=map(int,input().split())
a=list(map(int,input().split()))
print("Yes") if h<sum(a) else print("No")
|
h,n=map(int,input().split())
a=list(map(int,input().split()))
print("Yes") if h<=sum(a) else print("No")
|
[
"expression.operator.compare.change"
] | 585,372
| 585,373
|
u039189422
|
python
|
p02784
|
H=[int(y) for y in input().split()]
A=[int(y) for y in input().split()]
if H[0]<sum(A):
print("Yes")
else:
print("No")
|
H=[int(y) for y in input().split()]
A=[int(y) for y in input().split()]
if H[0]<=sum(A):
print("Yes")
else:
print("No")
|
[
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 585,380
| 585,381
|
u318909153
|
python
|
p02784
|
H,N = map(int,input().split())
A = list(map(int,input().split()))
ans = 'yes'
if sum(A) < H:
ans = 'No'
print(ans)
|
H,N = map(int,input().split())
A = list(map(int,input().split()))
ans = 'Yes'
if sum(A) < H:
ans = 'No'
print(ans)
|
[
"literal.string.change",
"literal.string.case.change",
"assignment.value.change"
] | 585,397
| 585,398
|
u984989720
|
python
|
p02784
|
h, n = input().split();
h = int(h);
n = int(n);
A = list(map(int, input().split()));
if sum(A) > h:
print("No");
else:
print("Yes");
|
h, n = input().split();
h = int(h);
n = int(n);
A = list(map(int, input().split()));
if sum(A) >= h:
print("Yes");
else:
print("No");
|
[
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 585,401
| 585,402
|
u508061226
|
python
|
p02784
|
h, n = input().split;
h = int(h);
n = int(n);
A = list(map(int, input().split()));
if sum(A) > h:
print("No");
else:
print("Yes");
|
h, n = input().split();
h = int(h);
n = int(n);
A = list(map(int, input().split()));
if sum(A) >= h:
print("Yes");
else:
print("No");
|
[
"call.add",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 585,403
| 585,402
|
u508061226
|
python
|
p02784
|
h,n=map(int,input().split())
a=list(map(int,input().spliy()))
sum=0
for i in n:
sum=sum+a[i]
if sum >=h:
print('Yes')
else:
print('No')
|
h,n=map(int,input().split())
a=list(map(int,input().split()))
sum=0
for i in a:
sum=sum+i
if sum >=h:
print('Yes')
else:
print('No')
|
[
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 585,411
| 585,412
|
u032955959
|
python
|
p02784
|
h,n=map(int,input().split())
a=list(map(int,input().spliy()))
sum=0
for i in a:
sum=sum+i
if sum >=h:
print('Yes')
else:
print('No')
|
h,n=map(int,input().split())
a=list(map(int,input().split()))
sum=0
for i in a:
sum=sum+i
if sum >=h:
print('Yes')
else:
print('No')
|
[
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 585,413
| 585,412
|
u032955959
|
python
|
p02784
|
h,n=map(int,input().split())
l=list(map(int,input().split()))
print('Yes' if sum(l)>h else 'No')
|
h,n=map(int,input().split())
l=list(map(int,input().split()))
print('Yes' if sum(l)>=h else 'No')
|
[
"expression.operator.compare.change",
"call.arguments.change",
"io.output.change"
] | 585,442
| 585,443
|
u519939795
|
python
|
p02784
|
H, N = map(int, input().split())
l = list(map(int, input().split()))
print('Yes' if H <= sum(l) else 'NO')
|
H, N = map(int, input().split())
l = list(map(int, input().split()))
print('Yes' if H <= sum(l) else 'No')
|
[
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 585,448
| 585,449
|
u745562158
|
python
|
p02784
|
H,N=map(int,input().split())
A=[int(i) for i in input().split()]
print('Yes' if H<sum(A) else "No")
|
H,N=map(int,input().split())
A=[int(i) for i in input().split()]
print('Yes' if H<=sum(A) else "No")
|
[
"expression.operator.compare.change",
"call.arguments.change",
"io.output.change"
] | 585,475
| 585,476
|
u229518917
|
python
|
p02784
|
import sys
input = sys.stdin.readline
H, N = map(int, input().split())
sm = sum(list(map(int, input().split())))
if N <= sm: print("Yes")
else: print("No")
|
import sys
input = sys.stdin.readline
H, N = map(int, input().split())
sm = sum(list(map(int, input().split())))
if H <= sm: print("Yes")
else: print("No")
|
[
"identifier.change",
"control_flow.branch.if.condition.change"
] | 585,479
| 585,480
|
u141610915
|
python
|
p02784
|
H, N = map(int, input().split())
A = sum(map(int, input().split()))
if H <= A:
print("YES")
else :
print("NO")
|
H, N = map(int, input().split())
A = sum((map(int, input().split())))
if H <= A:
print("Yes")
else:
print("No")
|
[
"call.arguments.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 585,495
| 585,496
|
u288613683
|
python
|
p02784
|
import sys
input = sys.stdin.readline
H,N = map(int, input().split())
A = list(map(int,input().split()))
print("Yes" if sum(A)>H else "No")
|
import sys
input = sys.stdin.readline
H,N = map(int, input().split())
A = list(map(int,input().split()))
print("Yes" if sum(A)>=H else "No")
|
[
"expression.operator.compare.change",
"call.arguments.change",
"io.output.change"
] | 585,510
| 585,511
|
u656391577
|
python
|
p02784
|
h,n=map(int,input().split())
if sum(list(map(int,input().split())))<h:
print('Yes')
else:
print('No')
|
h,n=map(int,input().split())
if sum(list(map(int,input().split())))<h:
print('No')
else:
print('Yes')
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 585,523
| 585,524
|
u374802266
|
python
|
p02784
|
h,n=map(int,inpiut().split())
a=[int(i) for i in input().split()]
if sum(a)>h:
print("Yes")
else:
print("No")
|
h,n=map(int,input().split())
a=[int(i) for i in input().split()]
if sum(a)>=h:
print("Yes")
else:
print("No")
|
[
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 585,525
| 585,526
|
u740047492
|
python
|
p02784
|
h, n = map(int, input().split())
a = list(map(int, input().split()))
a_sum = 0
for a_i in sorted(a, reverse=True):
a_sum += a_i
if a_sum >= h:
print('YES')
break
else:
print('NO')
|
h, n = map(int, input().split())
a = list(map(int, input().split()))
a_sum = 0
for a_i in sorted(a, reverse=True):
a_sum += a_i
if a_sum >= h:
print('Yes')
break
else:
print('No')
|
[
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 585,529
| 585,530
|
u846101221
|
python
|
p02784
|
HP, n = map(int, input().split())
damege = list(input().split())
if sum(damege) >= HP:
print("Yes")
else:
print("No")
|
HP, n = map(int, input().split())
damege = list(map(int, input().split()))
if sum(damege) >= HP:
print("Yes")
else:
print("No")
|
[
"call.add",
"call.arguments.change"
] | 585,536
| 585,537
|
u323045245
|
python
|
p02784
|
A, gomi = map(int, input().split())
print('Yes' if A <= list(map(int,input().split())) else 'No')
|
A, gomi = map(int, input().split())
print('Yes' if A <= sum(list(map(int,input().split()))) else 'No')
|
[
"call.add",
"call.arguments.change"
] | 585,542
| 585,543
|
u634046173
|
python
|
p02784
|
A, gomi = int(input().split())
print('Yes' if A <= list(map(int,input().split())) else 'No')
|
A, gomi = map(int, input().split())
print('Yes' if A <= sum(list(map(int,input().split()))) else 'No')
|
[
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.add",
"call.add",
"call.arguments.change"
] | 585,544
| 585,543
|
u634046173
|
python
|
p02784
|
H,N = map(int,input().split())
A = list(map(int,input().split()))
Sum = sum(A)
if H - Sum < 0:
print("Yes")
elif H - Sum > 0:
print("No")
|
H,N = map(int,input().split())
A = list(map(int,input().split()))
Sum = sum(A)
if H - Sum <= 0:
print("Yes")
elif H - Sum > 0:
print("No")
|
[
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 585,545
| 585,546
|
u562015767
|
python
|
p02784
|
from sys import stdin
import math
h, n = [int(x) for x in stdin.readline().rstrip().split()]
a = [int(x) for x in stdin.readline().rstrip().split()]
sum = 0
for i in a:
sum += i
if sum > h:
print("Yes")
else:
print("No")
|
from sys import stdin
import math
h, n = [int(x) for x in stdin.readline().rstrip().split()]
a = [int(x) for x in stdin.readline().rstrip().split()]
sum = 0
for i in a:
sum += i
if sum >= h:
print("Yes")
else:
print("No")
|
[
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 585,557
| 585,558
|
u436664080
|
python
|
p02784
|
h, n, *a = map(int, input().split())
if sum(a) >= h:
print("Yes")
else:
print("No")
|
h, n, *a = map(int, open(0).read().split())
if sum(a) >= h:
print("Yes")
else:
print("No")
|
[
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.change"
] | 585,574
| 585,575
|
u824734140
|
python
|
p02784
|
from sys import stdin
# S,T = stdin.readline().rstrip().split()
H,N = [int(x) for x in stdin.readline().rstrip().split()]
s = list(map(int,input().split()))
if H>sum(s):
print("NO")
else :
print("YES")
|
from sys import stdin
# S,T = stdin.readline().rstrip().split()
H,N = [int(x) for x in stdin.readline().rstrip().split()]
s = list(map(int,input().split()))
if H>sum(s):
print("No")
else :
print("Yes")
|
[
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 585,576
| 585,577
|
u396210538
|
python
|
p02784
|
A, B = map(int, input().split())
input_list = input().split( )
for i in (range(len(input_list))):
input_list[i] = int(input_list)
input_sum = sum(input_list)
if(A <= input_sum):
print("Yes")
else:
print("No")
|
A, B = map(int, input().split())
input_list = input().split( )
for i in (range(len(input_list))):
input_list[i] = int(input_list[i])
input_sum = sum(input_list)
if(A <= input_sum):
print("Yes")
else:
print("No")
|
[] | 585,585
| 585,586
|
u964521959
|
python
|
p02784
|
A, B = map(int, input().split())
input_list = input().split( )
for i in (range(input_list)):
input_list[i] = int(input_list)
input_sum = sum(input_list)
if(A <= input_sum):
print("Yes")
else:
print("No")
|
A, B = map(int, input().split())
input_list = input().split( )
for i in (range(len(input_list))):
input_list[i] = int(input_list[i])
input_sum = sum(input_list)
if(A <= input_sum):
print("Yes")
else:
print("No")
|
[
"call.add",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 585,587
| 585,586
|
u964521959
|
python
|
p02784
|
H,N = map(int,input().split())
A = list(map(int,input().split()))
if sum(A)>=H:print("yes")
else:print("No")
|
H,N = map(int,input().split())
A = list(map(int,input().split()))
if sum(A)>=H:print("Yes")
else:print("No")
|
[
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 585,590
| 585,591
|
u350997995
|
python
|
p02784
|
import numpy as np
H, N = map(int, input().split())
A = list(map(int, input().split()))
A = np.array(A)
attack = np.sum(A)
if attack > H:
print('Yes')
else:
print('No')
|
import numpy as np
H, N = map(int, input().split())
A = list(map(int, input().split()))
A = np.array(A)
attack = np.sum(A)
if attack >= H:
print('Yes')
else:
print('No')
|
[
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 585,596
| 585,597
|
u861109991
|
python
|
p02784
|
h, n = map(int, input().split())
A = list(map(int, input().split()))
flag = False
for a in A:
h -= a
if h<0:
flag = True
break
print("Yes" if flag else "No")
|
h, n = map(int, input().split())
A = list(map(int, input().split()))
flag = False
for a in A:
h -= a
if h<=0:
flag = True
break
print("Yes" if flag else "No")
|
[
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 585,609
| 585,610
|
u856564576
|
python
|
p02784
|
H, N = map(int, input().split())
A = list(map(int, input().split()))
if H - sum(A) <= 0:
print("YES")
else:
print("NO")
|
H, N = map(int, input().split())
A = list(map(int, input().split()))
if H - sum(A) <= 0:
print("Yes")
else:
print("No")
|
[
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 585,642
| 585,643
|
u223060578
|
python
|
p02784
|
h, n = (int(x) for x in input().split())
a = list(int(x) for x in input().split())
txt = 'YES' if(sum(a) >= h) else 'NO'
print(txt)
|
h, n = (int(x) for x in input().split())
a = list(int(x) for x in input().split())
txt = 'Yes' if(sum(a) >= h) else 'No'
print(txt)
|
[
"literal.string.change",
"literal.string.case.change",
"assignment.value.change"
] | 585,651
| 585,652
|
u307622233
|
python
|
p02784
|
H,N=map(int,input().split())
A=list(map(int,input().split()))
if H<=sum(a):
print('Yes')
else:
print('No')
|
H,N=map(int,input().split())
A=list(map(int,input().split()))
if H<=sum(A):
print('Yes')
else:
print('No')
|
[
"identifier.change",
"control_flow.branch.if.condition.change"
] | 585,655
| 585,656
|
u719193574
|
python
|
p02784
|
def main():
H,N = list(map(int,input().split()))
A = list(map(int,input().split()))
sum_attack = sum(A)
if(H < sum_attack):
print('Yes')
else:
print('No')
if __name__ == "__main__":
main()
|
def main():
H,N = list(map(int,input().split()))
A = list(map(int,input().split()))
sum_attack = sum(A)
if(H <= sum_attack):
print('Yes')
else:
print('No')
if __name__ == "__main__":
main()
|
[
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 585,663
| 585,664
|
u131411061
|
python
|
p02784
|
h, n = map(int, input().split())
a = list(map(int, input().split()))
ans = ""
if sum(a) >= h:
ans = "Yes"
else:
ans = "No"
|
h, n = map(int, input().split())
a = list(map(int, input().split()))
ans = ""
if sum(a) >= h:
ans = "Yes"
else:
ans = "No"
print(ans)
|
[
"call.add"
] | 585,673
| 585,674
|
u923270446
|
python
|
p02784
|
from sys import stdin
def main():
input = stdin.readline
H,N = map(int,input().split())
A = list(map(int,input().split()))
print(A)
if (H <= sum(A)):
print("Yes")
else:
print("No")
if __name__ == "__main__":
main()
|
from sys import stdin
def main():
input = stdin.readline
H,N = map(int,input().split())
A = list(map(int,input().split()))
if (H <= sum(A)):
print("Yes")
else:
print("No")
if __name__ == "__main__":
main()
|
[
"call.remove"
] | 585,679
| 585,680
|
u727717182
|
python
|
p02784
|
H,N=map(int,input().split())
A=map(int,input().split())
B=sum(A)
ans='YES'
if B<H:
ans='NO'
print(ans)
|
H,N=map(int,input().split())
A=map(int,input().split())
B=sum(A)
ans='Yes'
if B<H:
ans='No'
print(ans)
|
[
"literal.string.change",
"literal.string.case.change",
"assignment.value.change"
] | 585,703
| 585,704
|
u245299791
|
python
|
p02784
|
H,N =map(int, input().split())
A = list(map(int, input().split()))
for Ax in A:
H -= Ax
if H < 0:
print("Yes")
else:
print("No")
|
H,N =map(int, input().split())
A = list(map(int, input().split()))
for Ax in A:
H -= Ax
if H > 0:
print("No")
else:
print("Yes")
|
[
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"call.remove",
"call.add"
] | 585,709
| 585,710
|
u841599623
|
python
|
p02784
|
h, n = map(int, input().split())
A = list(map(int, input().split()))
A.sort(reverse=True)
attack = sum(A[:2])
print("Yes") if h <= attack else print("No")
|
h, n = map(int, input().split())
A = list(map(int, input().split()))
A.sort(reverse=True)
attack = sum(A)
print("Yes") if h <= attack else print("No")
|
[] | 585,731
| 585,732
|
u143492911
|
python
|
p02784
|
H,_=map(int,input().split())
if H <= list(map(int,input().split())):
print("Yes")
else:
print("No")
|
H, _ = map(int, input().split())
if H <= sum(map(int, input().split())):
print("Yes")
else:
print("No")
|
[
"identifier.change",
"call.function.change",
"control_flow.branch.if.condition.change"
] | 585,735
| 585,736
|
u357630630
|
python
|
p02784
|
kazu1 = list(map(int, input().split()))
kazu2 = list(map(int, input().split()))
if kazu1[0] <= sum(kazu2):
print('YES')
else:
print('NO')
|
kazu1 = list(map(int, input().split()))
kazu2 = list(map(int, input().split()))
if kazu1[0] <= sum(kazu2):
print('Yes')
else:
print('No')
|
[
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 585,737
| 585,738
|
u300457253
|
python
|
p02784
|
import math
h,n = map(int, input().split())
a = list(map(int, input().split()))
a_sum = sum(a)
if h <= a_sum:
print('YES')
else:
print('NO')
|
import math
h,n = map(int, input().split())
a = list(map(int, input().split()))
a_sum = sum(a)
if h <= a_sum:
print('Yes')
else:
print('No')
|
[
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 585,740
| 585,741
|
u378082660
|
python
|
p02784
|
L1 = input().split()
L2 = input().split()
H, N = int(L1[0]), int(L1[1])
d = 0
for i in L2:
d += int(i)
if d < H:
print("NO")
else:
print("YES")
|
L1 = input().split()
L2 = input().split()
H, N = int(L1[0]), int(L1[1])
d = 0
for i in L2:
d += int(i)
if d < H:
print("No")
else:
print("Yes")
|
[
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 585,744
| 585,745
|
u571608999
|
python
|
p02784
|
H, N = map(int, input().split())
A = list(map(int, input().split()))
SUM_A = sum(A)
if SUM_A < H :
print("NO")
else :
print("YES")
|
H, N = map(int, input().split())
A = list(map(int, input().split()))
SUM_A = sum(A)
if SUM_A < H :
print("No")
else :
print("Yes")
|
[
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 585,748
| 585,749
|
u773246942
|
python
|
p02784
|
#L, R = map(int,input().split())
H,N = map(int,input().split())
A = list(map(int,input().split()))
a = 0
for i in A:
a += i
if a>H:
print("Yes")
else:
print("No")
|
#L, R = map(int,input().split())
H,N = map(int,input().split())
A = list(map(int,input().split()))
a = 0
for i in A:
a += i
if a>=H:
print("Yes")
else:
print("No")
|
[
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 585,750
| 585,751
|
u493130708
|
python
|
p02784
|
H, N = map(int, input().split())
total_A = sum(list(map(int, input.split())))
if H <= total_A:
print('Yes')
else:
print('No')
|
H, N = map(int, input().split())
total_A = sum(list(map(int, input().split())))
if H <= total_A:
print('Yes')
else:
print('No')
|
[
"call.add"
] | 585,757
| 585,758
|
u362771726
|
python
|
p02784
|
H, N = map(int, input().split())
total_A = sum(map(int, input.split()))
if H <= total_A:
print('Yes')
else:
print('No')
|
H, N = map(int, input().split())
total_A = sum(list(map(int, input().split())))
if H <= total_A:
print('Yes')
else:
print('No')
|
[
"call.arguments.add",
"call.add",
"call.arguments.change"
] | 585,759
| 585,758
|
u362771726
|
python
|
p02784
|
H,N = list(map(int,input().split))
A = list(map(int,input().split))
s = A[0]
for i in range(1,len(A)):
s += A[i]
if s>=H:
print("Yes")
else:
print("No")
|
H,N = list(map(int,input().split()))
A = list(map(int,input().split()))
s = A[0]
for i in range(1,len(A)):
s += A[i]
if s>=H:
print("Yes")
else:
print("No")
|
[
"call.add"
] | 585,760
| 585,761
|
u183976155
|
python
|
p02784
|
N, H = map(int, input().split())
A = list(map(int,input().split()))
if sum(A) >= H:
print('Yes')
else:
print('No')
|
H, N = map(int, input().split())
A = list(map(int,input().split()))
if sum(A) >= H:
print('Yes')
else:
print('No')
|
[] | 585,770
| 585,771
|
u944643608
|
python
|
p02784
|
H,N = map(int,input().split())
total_attack_damage = sum(list(map(int,input().split())))
result = H - total_attack_damage
if result > 0:
print("NO")
elif result <= 0:
print("YES")
|
H,N = map(int,input().split())
total_attack_damage = sum(list(map(int,input().split())))
result = H - total_attack_damage
if result > 0:
print("No")
elif result <= 0:
print("Yes")
|
[
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 585,779
| 585,780
|
u906858931
|
python
|
p02784
|
h,n = map(int,input().split())
A = list(map(int,input().split()))
A = sorted(A, reversed = True)
for a in A[:n] :
h -= a
if h <= 0 :
print("Yes")
else :
print("No")
|
h,n = map(int,input().split())
A = list(map(int,input().split()))
A = sorted(A, reverse = True)
for a in A[:n] :
h -= a
if h <= 0 :
print("Yes")
else :
print("No")
|
[
"assignment.value.change",
"identifier.change",
"call.arguments.change",
"call.arguments.keyword_argument.near.change"
] | 585,781
| 585,782
|
u879870653
|
python
|
p02784
|
H,N=map(int,input().split())
A=list(map(int,input().split()))
A.sort(reverse=True)
total=H-sum(A[0:2])
if total<=0:print("Yes")
else:print("No")
|
H,N=map(int,input().split())
A=list(map(int,input().split()))
A.sort(reverse=True)
total=H-sum(A[0::])
if total<=0:print("Yes")
else:print("No")
|
[
"assignment.value.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 585,805
| 585,806
|
u441320782
|
python
|
p02784
|
H, N = list(map(int, input().split()))
A = list(map(int, input().split()))
if H < sum(A):
print('yes')
else:
print('no')
|
H, N = list(map(int, input().split()))
A = list(map(int, input().split()))
if H <= sum(A):
print('Yes')
else:
print('No')
|
[
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 585,811
| 585,812
|
u323609829
|
python
|
p02784
|
"""
author : halo2halo
date : 4, Feb, 2020
"""
import sys
# import itertools
# import math
# import numpy as np
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
H, N,*A = map(int, read().split())
print('YES' if H<=sum(A) else 'No')
|
"""
author : halo2halo
date : 4, Feb, 2020
"""
import sys
# import itertools
# import math
# import numpy as np
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
H, N,*A = map(int, read().split())
print('Yes' if H<=sum(A) else 'No')
|
[
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 585,813
| 585,814
|
u361826811
|
python
|
p02784
|
"""
author : halo2halo
date : 4, Feb, 2020
"""
import sys
# import itertools
# import math
# import numpy as np
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
H, N,*A = map(int, readline().split())
print('YES' if H<=sum(A) else 'No')
|
"""
author : halo2halo
date : 4, Feb, 2020
"""
import sys
# import itertools
# import math
# import numpy as np
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
H, N,*A = map(int, read().split())
print('Yes' if H<=sum(A) else 'No')
|
[
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 585,815
| 585,814
|
u361826811
|
python
|
p02784
|
h, n = map(int, input().split())
a = map(int, input().split())
if h < sum(a):
print('Yes')
else:
print('No')
|
h, n = map(int, input().split())
a = map(int, input().split())
if h <= sum(a):
print('Yes')
else:
print('No')
|
[
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 585,818
| 585,819
|
u468206018
|
python
|
p02784
|
h, n = map(int, input().split())
a = []
a.append(map(int,input().split()))
sum = 0
for i in a:
sum += i
if sum >= h:
print("Yes")
else:
print("No")
|
h, n = map(int, input().split())
a = list(map(int,input().split()))
sum = 0
for i in a:
sum += i
if sum >= h:
print("Yes")
else:
print("No")
|
[
"assignment.value.change"
] | 585,827
| 585,828
|
u686608807
|
python
|
p02784
|
H, N = input().split()
lis = list(map(int, input().split()))
if sum(lis) >= H:
print("Yes")
else:
print("No")
|
H, N = map(int, input().split())
lis = list(map(int, input().split()))
if sum(lis) >= H:
print("Yes")
else:
print("No")
|
[
"call.add",
"call.arguments.change"
] | 585,829
| 585,830
|
u957843607
|
python
|
p02784
|
H, N = map(int, input().split())
lis = list(map(input().split()))
if sum(lis) >= H:
print("Yes")
else:
print("No")
|
H, N = map(int, input().split())
lis = list(map(int, input().split()))
if sum(lis) >= H:
print("Yes")
else:
print("No")
|
[
"call.arguments.add"
] | 585,831
| 585,830
|
u957843607
|
python
|
p02784
|
H, N = map(int, input().split())
lis = list(input().split())
if sum(lis) >= H:
print("Yes")
else:
print("No")
|
H, N = map(int, input().split())
lis = list(map(int, input().split()))
if sum(lis) >= H:
print("Yes")
else:
print("No")
|
[
"call.add",
"call.arguments.change"
] | 585,832
| 585,830
|
u957843607
|
python
|
p02784
|
import numpy as np
H,N = map(int,input().split())
A = list(map(int,input().split()))
if np.sum(A)>=H:
print("yes")
else:
print("no")
|
import numpy as np
H,N = map(int,input().split())
A = list(map(int,input().split()))
if np.sum(A)>=H:
print("Yes")
else:
print("No")
|
[
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 585,849
| 585,850
|
u005317312
|
python
|
p02784
|
H,N = list(map(int,input().split()))
alist = list(map(int,input().split()))
if H < sum(alist):
print("Yes")
else:
print("No")
|
H,N = list(map(int,input().split()))
alist = list(map(int,input().split()))
if H <= sum(alist):
print("Yes")
else:
print("No")
|
[
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 585,851
| 585,852
|
u901341592
|
python
|
p02784
|
H,N = list(map(int,input().split()))
alist = list(map(int,input().split()))
if H < sum(alist):
print("YES")
else:
print("NO")
|
H,N = list(map(int,input().split()))
alist = list(map(int,input().split()))
if H <= sum(alist):
print("Yes")
else:
print("No")
|
[
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 585,853
| 585,852
|
u901341592
|
python
|
p02784
|
h,n=map(int,input().split())
a=list(map(int,input().split()))
print("Yes" if h > sum(a) else "No")
|
h,n=map(int,input().split())
a=list(map(int,input().split()))
print("No" if h > sum(a) else "Yes")
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 585,854
| 585,855
|
u617515020
|
python
|
p02784
|
a,b=input().split()
l = list(map(int, input().split()))
a=int(a)
b=int(b)
if a >= sum(l):
print('Yes')
else:
print('No')
|
a,b=input().split()
l = list(map(int, input().split()))
a=int(a)
b=int(b)
if a <= sum(l):
print('Yes')
else:
print('No')
|
[
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 585,865
| 585,866
|
u316904674
|
python
|
p02784
|
H, N = map(int, input().split())
List = map(int, input().split())
total = 0
for l in len(List):
total += List[l]
if H > total:
print('No')
elif H <= total:
print('Yes')
|
H, N = map(int, input().split())
List = list(map(int, input().split()))
total = 0
for l in range(len(List)):
total += List[l]
if H > total:
print('No')
elif H <= total:
print('Yes')
|
[
"call.add",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 585,867
| 585,868
|
u697968316
|
python
|
p02784
|
H, N = [int(i) for i in input().split(' ')]
A = [int(i) for i in input().split(' ')]
if H - sum(A) < 0:
print('Yes')
else:
print('No')
|
H, N = [int(i) for i in input().split(' ')]
A = [int(i) for i in input().split(' ')]
if H - sum(A) <= 0:
print('Yes')
else:
print('No')
|
[
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 585,869
| 585,870
|
u804455323
|
python
|
p02784
|
N,K = [int(x) for x in input().split()]
n=[int(x) for x in input().split()]
print("Yes" if sum(n)>N else "No")
|
N,K = [int(x) for x in input().split()]
n=[int(x) for x in input().split()]
print("Yes" if sum(n)>=N else "No")
|
[
"expression.operator.compare.change",
"call.arguments.change",
"io.output.change"
] | 585,897
| 585,896
|
u295294832
|
python
|
p02784
|
H, N = map(int, input().split())
A = map(int, input().split())
sum = 0
for val in A:
sum = sum + val
if sum >= H:
print("Yes")
print("No")
|
H, N = map(int, input().split())
A = map(int, input().split())
sum = 0
for val in A:
sum = sum + val
if sum >= H:
print("Yes")
else:
print("No")
|
[] | 585,905
| 585,906
|
u956811090
|
python
|
p02784
|
H, N = input().split()
A = list(input().split())
if int(H)-sum(A) <=0:
print("Yes")
else:
print("No")
|
H, N = input().split()
A = list(map(int, input().split()))
if int(H)-sum(A) <=0:
print("Yes")
else:
print("No")
|
[
"call.add",
"call.arguments.change"
] | 585,912
| 585,911
|
u436611990
|
python
|
p02784
|
import math
h, n = map(int, input().split())
a = [int(i) for i in input().split()]
if sum(a) >= h:
print('yes')
else:
print('no')
|
h, n = map(int, input().split())
a = [int(i) for i in input().split()]
if sum(a) >= h:
print('Yes')
else:
print('No')
|
[
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 585,918
| 585,919
|
u648257619
|
python
|
p02784
|
import math
h, n = map(int, input().split())
attack_list = list(map(int, input().split()))
damage = 0
for attack in attack_list:
damage += attack
if damage > h:
print('Yes')
exit()
print('No')
|
import math
h, n = map(int, input().split())
attack_list = list(map(int, input().split()))
damage = 0
for attack in attack_list:
damage += attack
if damage >= h:
print('Yes')
exit()
print('No')
|
[
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 585,920
| 585,921
|
u414048826
|
python
|
p02784
|
import math
h, n = map(int, input().split())
attack_list = list(map(int, input().split()))
damage = 0
for attack in attack_list:
damage += attack
if damage >= h:
print('Yes')
print('No')
|
import math
h, n = map(int, input().split())
attack_list = list(map(int, input().split()))
damage = 0
for attack in attack_list:
damage += attack
if damage >= h:
print('Yes')
exit()
print('No')
|
[
"call.add"
] | 585,922
| 585,921
|
u414048826
|
python
|
p02784
|
import math
h, n = map(int, input().split())
attack_list = list(map(int, input().split()))
damage = 0
for attack in attack_list:
damage += attack
if damage > h:
print('Yes')
print('No')
|
import math
h, n = map(int, input().split())
attack_list = list(map(int, input().split()))
damage = 0
for attack in attack_list:
damage += attack
if damage >= h:
print('Yes')
exit()
print('No')
|
[
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"call.add"
] | 585,923
| 585,921
|
u414048826
|
python
|
p02784
|
h,n = list(map(int,input().splii()))
l = list(map(int,input().splii()))
if sum(l)<h:
print("No")
else:
print("Yes")
|
h,n = list(map(int,input().split()))
l = list(map(int,input().split()))
if sum(l)<h:
print("No")
else:
print("Yes")
|
[
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 585,924
| 585,925
|
u144702227
|
python
|
p02784
|
H,N=map(int,input().split())
A=map(int,input().split())
print("Yes" if max(A)>=H else "No")
|
H,N=map(int,input().split())
A=map(int,input().split())
print("Yes" if sum(A)>=H else "No")
|
[
"identifier.change",
"call.function.change",
"call.arguments.change",
"io.output.change"
] | 585,944
| 585,945
|
u132813957
|
python
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.