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
p02784
HN=input() HN_list=HN.split() H=int(HN_list[0]) N=int(HN_list[1]) A=input() A_list=A.split() aaa=map(int, A_list) A_sum=sum(aaa) if A_sum>H: print("Yes") else: print("No")
HN=input() HN_list=HN.split() H=int(HN_list[0]) N=int(HN_list[1]) A=input() A_list=A.split() aaa=map(int, A_list) A_sum=sum(aaa) if A_sum>=H: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
586,101
586,102
u224007104
python
p02784
h, n = [int(i) for i in input().split()] a = [int(j) for j in input().split()] if(sum(a) > h): print("Yes") else: print("No")
h, n = [int(i) for i in input().split()] a = [int(j) for j in input().split()] if(sum(a) >= h): print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
586,110
586,111
u522185720
python
p02784
h, n = map(int, input().split()) a = map(int, input().split()) if sum(a)>=h: print("Y") else: print("N")
h, n = map(int, input().split()) a = map(int, input().split()) if sum(a)>=h: print("Yes") else: print("No")
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
586,162
586,163
u516927307
python
p02784
def wczytaj_liste(): ciag = input() rozdzielona_lista = ciag.split() odp = [] for wyraz in rozdzielona_lista: liczba = int(wyraz) odp.append(liczba) return odp def Raccon_vs_Monster(): H, N = wczytaj_liste() ruchy = wczytaj_liste() suma_obrazen = ruchy.sum() if suma_obrazen >= H: print('Yes') else: print('No') Raccon_vs_Monster()
def wczytaj_liste(): ciag = input() rozdzielona_lista = ciag.split() odp = [] for wyraz in rozdzielona_lista: liczba = int(wyraz) odp.append(liczba) return odp def Raccon_vs_Monster(): H, N = wczytaj_liste() ruchy = wczytaj_liste() suma_obrazen = sum(ruchy) if suma_obrazen >= H: print('Yes') else: print('No') Raccon_vs_Monster()
[ "call.arguments.change" ]
586,173
586,174
u443725372
python
p02784
h, n = (int(x) for x in input().split()) a = (int(x) for x in input().split()) if h < sum(a): print('Yes') else: print('No')
h, n = (int(x) for x in input().split()) a = (int(x) for x in input().split()) if h <= sum(a): print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
586,181
586,182
u855393458
python
p02784
import math import string import itertools import fractions import heapq import collections import re import array import bisect import sys import random import time inf = 10**9 def main(): h, n = list(map(int, input().split())) a = list(map(int, input().split())) if sum(a) > h: print("Yes") else: print("No") if __name__ == '__main__': main()
import math import string import itertools import fractions import heapq import collections import re import array import bisect import sys import random import time inf = 10**9 def main(): h, n = list(map(int, input().split())) a = list(map(int, input().split())) if sum(a) >= h: print("Yes") else: print("No") if __name__ == '__main__': main()
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
586,194
586,195
u217556271
python
p02784
H, N = map(int,(input().split())) A = list(map(int,(input().split()))) sum=0 for i in range(len(A)): sum += A[i] if(sum>=N): print("Yes") else: print("No")
H, N = map(int,(input().split())) A = list(map(int,(input().split()))) sum=0 for i in range(len(A)): sum += A[i] if(sum>=H): print("Yes") else: print("No")
[ "identifier.change", "control_flow.branch.if.condition.change" ]
586,196
586,197
u382407432
python
p02784
H, N = map(int, input().split()) a = list(map(int, input8).split()) sum = sum(a) if sum >= H: print("Yes") else: print("No")
H, N = map(int, input().split()) a = list(map(int, input().split())) sum = sum(a) if sum >= H: print("Yes") else: print("No")
[ "assignment.value.change", "call.arguments.change" ]
586,210
586,209
u157874153
python
p02784
h, _ = list(map(int, input().split())) a = list(map(int, input().split())) s = sum(a) if h < s: print("Yes") else: print("No")
h, _ = list(map(int, input().split())) a = list(map(int, input().split())) s = sum(a) if h > s: print("No") else: print("Yes")
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "call.remove", "call.add" ]
586,222
586,223
u316401642
python
p02784
H,N = map(int,input().split()) A = list(map(int,input().split())) sum=0 for a in A: sum += a print("Yes") if sum> H else print("No")
H,N = map(int,input().split()) A = list(map(int,input().split())) sum=0 for a in A: sum += a print("Yes") if sum >= H else print("No")
[ "expression.operator.compare.change" ]
586,224
586,225
u284231738
python
p02784
val = input() h, n = [int(x) for x in val.split()] val = input() a = [int(x) for x in val.split()] sum = a.sum() if h - sum <= 0: print("Yes") else: print("No")
val = input() h, n = [int(x) for x in val.split()] val = input() a = [int(x) for x in val.split()] sum = sum(a) if h - sum <= 0: print("Yes") else: print("No")
[ "call.arguments.change" ]
586,226
586,227
u676232868
python
p02784
H, N = list(map(int, input().split())) tec = list(map(int, input().split())) print("Yes" if sum(tec) > H else "No")
H, N = list(map(int, input().split())) tec = list(map(int, input().split())) print("Yes" if sum(tec) >= H else "No")
[ "expression.operator.compare.change", "call.arguments.change", "io.output.change" ]
586,228
586,229
u055854974
python
p02784
h,n=map(int,input()) a = list(map(int,input().split())) print('Yes' if sum(a)>=h else 'No')
h,n=map(int,input().split()) a = list(map(int,input().split())) print('Yes' if sum(a)>=h else 'No')
[ "call.add" ]
586,237
586,238
u547167033
python
p02784
h, n = map(int, input().split()) a_list = list(map(int, input().split())) if h < sum(a_list): print('Yes') else: print('No')
h, n = map(int, input().split()) a_list = list(map(int, input().split())) if h <= sum(a_list): print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
586,244
586,245
u564589929
python
p02784
hp, n = map(int, input().split()) a = map(int, input().split()) print("YES" if sum(a) >= hp else "NO")
hp, n = map(int, input().split()) a = map(int, input().split()) print("Yes" if sum(a) >= hp else "No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
586,246
586,247
u863119020
python
p02784
h,n=map(int,input().split()) print('YNeos'[sum([int(i)for i in input().split()])<n::2])
h,n=map(int,input().split()) print('YNeos'[sum([int(i)for i in input().split()])<h::2])
[ "identifier.change", "variable_access.subscript.index.change", "call.arguments.change", "io.output.change" ]
586,254
586,255
u623819879
python
p02784
h,n=map(int,input().split()) 'YNeos'[sum([int(i)for i in input().split()])<n::2]
h,n=map(int,input().split()) print('YNeos'[sum([int(i)for i in input().split()])<h::2])
[ "call.add", "identifier.change", "variable_access.subscript.index.change", "call.arguments.change" ]
586,256
586,255
u623819879
python
p02784
H, N = map(int, input().split()) lst = [int(x) for x in input().split()] if N >= sum(lst): print("Yes") else: print("No")
H, N = map(int, input().split()) lst = [int(x) for x in input().split()] if sum(lst) >= H: print("Yes") else: print("No")
[ "control_flow.branch.if.condition.change" ]
586,257
586,258
u987170100
python
p02784
h, n = map(int, input().split()) a = input() alst = [] for i in a.split(): alst.append(int(i)) if sum(alst) > int(h): print("Yes") else: print("No")
h, n = map(int, input().split()) a = input() alst = [] for i in a.split(): alst.append(int(i)) if sum(alst) >= int(h): print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
586,259
586,260
u821969418
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" ]
586,261
586,262
u553824105
python
p02784
h,n = list(map(int,input().split())) a = list(map(int, input().split())) if(h <= sum(a)): ans = "YES" else: ans = "NO" print(ans)
h,n = list(map(int,input().split())) a = list(map(int, input().split())) if(h <= sum(a)): ans = "Yes" else: ans = "No" print(ans)
[ "literal.string.change", "literal.string.case.change", "assignment.value.change" ]
586,291
586,292
u217086212
python
p02784
import sys def main(): # sys.stdin = open('input153b.txt') h, n = map(int, input().split()) a = list(map(int, input().split())) if h > sum(a): print('NO') else: print('YES') if __name__ == '__main__': main()
import sys def main(): # sys.stdin = open('input153b.txt') h, n = map(int, input().split()) a = list(map(int, input().split())) if h > sum(a): print('No') else: print('Yes') if __name__ == '__main__': main()
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
586,329
586,330
u946433121
python
p02784
H, A = map(int, input().split()) sa = list(map(int, input().split())) for i in sa: H = H - i if H <= 0: print("YES") else: print("NO")
H, A = map(int, input().split()) sa = list(map(int, input().split())) for i in sa: H = H - i if H <= 0: print("Yes") else: print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
586,334
586,335
u501451051
python
p02784
a,b=map(int,input().split()) l=list(map(int,input().split())) if max(l)>=a: print('Yes') else: print("No")
a,b=map(int,input().split()) l=list(map(int,input().split())) if sum(l)>=a: print('Yes') else: print("No")
[ "identifier.change", "call.function.change", "control_flow.branch.if.condition.change" ]
586,342
586,343
u995109095
python
p02784
a,b=map(int,input().split()) l=list(map(int,input().spliit())) if max(l)>=a: print('Yes') else: print("No")
a,b=map(int,input().split()) l=list(map(int,input().split())) if sum(l)>=a: print('Yes') else: print("No")
[ "assignment.value.change", "identifier.change", "call.arguments.change", "call.function.change", "control_flow.branch.if.condition.change" ]
586,344
586,343
u995109095
python
p02784
h, n = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) if sum(A[:n]) >= h: print('YES') else: print('NO')
h, n = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) if sum(A[:n]) >= h: print('Yes') else: print('No')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
586,366
586,367
u127873832
python
p02784
h, n = map(int, input().split()) a = list(map(int, input().split())) a = sorted(a) for i in a: h = 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) for i in a: h = h - i if h <= 0: print('Yes') else: print('No')
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
586,376
586,377
u571444155
python
p02784
H,N = map(int, input().split()) A = list(map(int, input().split())) damage = sum(A) if damage >= 0: print("Yes") else: print("No")
H,N = map(int, input().split()) A = list(map(int, input().split())) damage = sum(A) if damage >= H: print("Yes") else: print("No")
[ "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if.condition.change" ]
586,395
586,396
u442877951
python
p02784
# -*- coding: utf-8 -*- """ name: 153B.py プログラムの説明 """ def main(): H,N = map(int, input().split()) A = input().split() TotalA = 0 for i in A: TotalA += int(i) if H<TotalA: print('Yes') else: print('No') if __name__ == '__main__': main()
# -*- coding: utf-8 -*- """ name: 153B.py プログラムの説明 """ def main(): H,N = map(int, input().split()) A = input().split() TotalA = 0 for i in A: TotalA += int(i) if H>TotalA: print('No') else: print('Yes') if __name__ == '__main__': main()
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "call.remove", "call.add" ]
586,431
586,432
u958789802
python
p02784
H, _ = map(int, input().split()) if sum(map(int, input().split())) > H: print('Yes') else: print('No')
H, _ = map(int, input().split()) if sum(map(int, input().split())) >= H: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
586,445
586,446
u133833119
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")
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
586,447
586,448
u699089116
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" ]
586,453
586,454
u084327817
python
p02784
i=list(map(int,input().split())) j=list(map(int,input().split())) h=i[0] a=True c=0 j.sort(reverse=True) for b in j: c+=b if c>=h: print("Yes") a=False if a: print("No")
i=list(map(int,input().split())) j=list(map(int,input().split())) h=i[0] a=True c=0 j.sort(reverse=True) for b in j: c+=b if c>=h: print("Yes") a=False break if a: print("No")
[ "control_flow.break.add" ]
586,457
586,458
u291988695
python
p02784
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")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
586,471
586,472
u528124741
python
p02784
H, A = list(map(int, input().split())) A = sum(list(map(int, input().split()))) if H<A : print("Yes") else: print("No")
H, A = list(map(int, input().split())) A = sum(list(map(int, input().split()))) if H<=A: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
586,491
586,492
u861886710
python
p02784
H, N = map(int, input().split()) if sum(map(int, input().split())) >= N: print("Yes") else: print("No")
H, N = map(int, input().split()) if sum(map(int, input().split())) >= H: print("Yes") else: print("No")
[ "identifier.change", "control_flow.branch.if.condition.change" ]
586,495
586,496
u224522483
python
p02784
''' Hey stalker :) ''' INF = 10**10 def main(): print = out.append ''' Cook your dish here! ''' h, n = get_list() li = get_list() if sum(li)>=h: print("YES") else: print("NO") ''' Pythonista fLite 1.1 ''' import sys #from collections import defaultdict, Counter #from bisect import bisect_left, bisect_right #from functools import reduce #import math input = iter(sys.stdin.buffer.read().decode().splitlines()).__next__ out = [] get_int = lambda: int(input()) get_list = lambda: list(map(int, input().split())) main() #[main() for _ in range(int(input()))] print(*out, sep='\n')
''' Hey stalker :) ''' INF = 10**10 def main(): print = out.append ''' Cook your dish here! ''' h, n = get_list() li = get_list() if sum(li)>=h: print("Yes") else: print("No") ''' Pythonista fLite 1.1 ''' import sys #from collections import defaultdict, Counter #from bisect import bisect_left, bisect_right #from functools import reduce #import math input = iter(sys.stdin.buffer.read().decode().splitlines()).__next__ out = [] get_int = lambda: int(input()) get_list = lambda: list(map(int, input().split())) main() #[main() for _ in range(int(input()))] print(*out, sep='\n')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
586,504
586,505
u824793212
python
p02784
a,b = map(int,input().split()) N = list(map(int,input().split())) print("Yes" if sum(N) > a else "No")
a,b = map(int,input().split()) N = list(map(int,input().split())) print("Yes" if sum(N) >= a else "No")
[ "expression.operator.compare.change", "call.arguments.change", "io.output.change" ]
586,515
586,516
u853547292
python
p02784
from sys import stdin H,N = [int(x) for x in stdin.readline().rstrip().split()] A = [int(x) for x in stdin.readline().rstrip().split()] if N <= sum(A): print("Yes") else: print("No")
from sys import stdin H,N = [int(x) for x in stdin.readline().rstrip().split()] A = [int(x) for x in stdin.readline().rstrip().split()] if H <= sum(A): print("Yes") else: print("No")
[ "identifier.change", "control_flow.branch.if.condition.change" ]
586,529
586,530
u405256066
python
p02784
H , N = map ( int , input().strip().split(" ") ) ; L = sum ( map ( int , input().strip().split(" ") ) ) ; print ( "Yes" if L > H else "No" ) ;
H , N = map ( int , input().strip().split(" ") ) ; L = sum ( map ( int , input().strip().split(" ") ) ) ; print ( "Yes" if L >= H else "No" ) ;
[ "expression.operator.compare.change", "call.arguments.change", "io.output.change" ]
586,538
586,539
u575309064
python
p02784
h,n = map(int,input().split()) moves = list(map(int,input().split())) s = sum(moves) if s < h: resutl = "No" else: result = "Yes" print(result)
h,n = map(int,input().split()) moves = list(map(int,input().split())) s = sum(moves) if s < h: resutl = "No" else: resutl = "Yes" print(resutl)
[ "assignment.variable.change", "identifier.change", "call.arguments.change", "io.output.change" ]
586,569
586,570
u589578850
python
p02784
a, b = map(int, input().split()) c = map(int, input().split()) if a <= c.sum(): print('Yes') else: print('No')
a, b = map(int, input().split()) c = list(map(int, input().split())) if a <= sum(c): print('Yes') else: print('No')
[ "call.add", "call.arguments.change", "control_flow.branch.if.condition.change" ]
586,573
586,574
u303059352
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")
[ "expression.operator.compare.change", "call.arguments.change", "io.output.change" ]
586,588
586,589
u088078693
python
p02784
a,b=map(int, input().split()) A = list(map(int, input().split())) sum = 0 for at in list: sum += at if a <= sum: print("Yes") else: print("No")
a,b=map(int, input().split()) A = list(map(int, input().split())) sum = 0 for at in A: sum += at if a <= sum: print("Yes") else: print("No")
[ "identifier.change" ]
586,601
586,602
u562550538
python
p02784
a,b=map(int, input().split()) A = list(map(int, input().split())) total = 0 for at in list: sum += at if a <= sum: print("Yes") else: print("No")
a,b=map(int, input().split()) A = list(map(int, input().split())) sum = 0 for at in A: sum += at if a <= sum: print("Yes") else: print("No")
[ "assignment.variable.change", "identifier.change" ]
586,603
586,602
u562550538
python
p02784
H, N = map(int, input().split()) atacks = map(int, input().split()) if sum(atacks) >= H: print('YES') else: print('NO')
H, N = map(int, input().split()) atacks = map(int, input().split()) if sum(atacks) >= H: print('Yes') else: print('No')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
586,605
586,606
u191394596
python
p02784
H,N = map(int,input().split()) A = list(map(int,input().split())) if sum(A) > N: 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")
[]
586,673
586,674
u993435350
python
p02784
# -*- coding:utf-8 -*- h,n = map(int, input().strip().split()) a = list(map(int, input().strip().split())) count = 0 for ax in a: count += ax if count > h: print("Yes") else: print("No")
# -*- coding:utf-8 -*- h,n = map(int, input().strip().split()) a = list(map(int, input().strip().split())) count = 0 for ax in a: count += ax if count >= h: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
586,675
586,676
u128661070
python
p02784
h,n=map(int,input().split()) s = sum(list(map(int,input().split()))) print("Yes" if s>=h else print("No"))
h,n=map(int,input().split()) s = sum(list(map(int,input().split()))) print("Yes" if s>=h else "No")
[ "call.remove", "call.arguments.change" ]
586,717
586,718
u115110170
python
p02784
H, N = map(int, input().split()) A = list(map(int, input().split())) S = sum(A) print("yes" if H <= S else "no")
H, N = map(int, input().split()) A = list(map(int, input().split())) S = sum(A) print("Yes" if H <= S else "No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
586,730
586,731
u687053495
python
p02784
import sys read = sys.stdin.read h,n,*lst=map(int, read().split()) s=sum(lst) if s<=h: print('Yes') else: print('No')
import sys read = sys.stdin.read h,n,*lst=map(int, read().split()) s=sum(lst) if s>=h: print('Yes') else: print('No')
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
586,750
586,751
u780475861
python
p02784
h,n=map(int, input().split()) aList=list(map(int, input().split())) result = h for a in aList: result -= a return 'Yes' if result <= 0 else 'No'
h,n=map(int, input().split()) aList=list(map(int, input().split())) result = h for a in aList: result -= a print('Yes') if result <= 0 else print('No')
[ "function.return_value.change", "call.arguments.change", "call.add" ]
586,752
586,753
u218393296
python
p02784
h,n = map(int,input().split()) a = list(map(int,input().split())) del a[n::] if sum(a) > h: print("Yes") else: print("No")
h,n = map(int,input().split()) a = list(map(int,input().split())) del a[n::] if sum(a) >= h: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
586,756
586,757
u969211566
python
p02784
""" NTC here """ import sys inp= sys.stdin.readline input = lambda : inp().strip() flush= sys.stdout.flush # import threading # sys.setrecursionlimit(10**6) # threading.stack_size(2**25) def iin(): return int(input()) def lin(): return list(map(int, input().split())) # range = xrange # input = raw_input def main(): h, n = lin() a = lin() sm = sum(a) print('Yes' if h<sm else 'No') main() # threading.Thread(target=main).start()
""" NTC here """ import sys inp= sys.stdin.readline input = lambda : inp().strip() flush= sys.stdout.flush # import threading # sys.setrecursionlimit(10**6) # threading.stack_size(2**25) def iin(): return int(input()) def lin(): return list(map(int, input().split())) # range = xrange # input = raw_input def main(): h, n = lin() a = lin() sm = sum(a) print('Yes' if h<=sm else 'No') main() # threading.Thread(target=main).start()
[ "expression.operator.compare.change", "call.arguments.change", "io.output.change" ]
586,760
586,761
u542037391
python
p02784
H, N = input().split(" ") A = list(map(int, input().split())) if sum(A) < H: print("No") else: print("Yes")
H, N = input().split(" ") A = list(map(int, input().split())) if sum(A) < int(H): print("No") else: print("Yes")
[ "control_flow.branch.if.condition.change", "call.add" ]
586,766
586,767
u499106786
python
p02784
#!/usr/bin/env python3 from collections import defaultdict,deque from heapq import heappush, heappop from bisect import bisect_left, bisect_right import sys, random, itertools, math sys.setrecursionlimit(10**5) input = sys.stdin.readline sqrt = math.sqrt def LI(): return list(map(int, input().split())) def LF(): return list(map(float, input().split())) def LI_(): return list(map(lambda x: int(x)-1, input().split())) def II(): return int(input()) def IF(): return float(input()) def LS(): return list(map(list, input().split())) def S(): return list(input().rstrip()) def IR(n): return [II() for _ in range(n)] def LIR(n): return [LI() for _ in range(n)] def FR(n): return [IF() for _ in range(n)] def LFR(n): return [LI() for _ in range(n)] def LIR_(n): return [LI_() for _ in range(n)] def SR(n): return [S() for _ in range(n)] def LSR(n): return [LS() for _ in range(n)] mod = 1000000007 inf = float('INF') #solve def solve(): h, n = II() a = LI() print("Yes" if h <= sum(a) else "No") return #main if __name__ == '__main__': solve()
#!/usr/bin/env python3 from collections import defaultdict,deque from heapq import heappush, heappop from bisect import bisect_left, bisect_right import sys, random, itertools, math sys.setrecursionlimit(10**5) input = sys.stdin.readline sqrt = math.sqrt def LI(): return list(map(int, input().split())) def LF(): return list(map(float, input().split())) def LI_(): return list(map(lambda x: int(x)-1, input().split())) def II(): return int(input()) def IF(): return float(input()) def LS(): return list(map(list, input().split())) def S(): return list(input().rstrip()) def IR(n): return [II() for _ in range(n)] def LIR(n): return [LI() for _ in range(n)] def FR(n): return [IF() for _ in range(n)] def LFR(n): return [LI() for _ in range(n)] def LIR_(n): return [LI_() for _ in range(n)] def SR(n): return [S() for _ in range(n)] def LSR(n): return [LS() for _ in range(n)] mod = 1000000007 inf = float('INF') #solve def solve(): h, n = LI() a = LI() print("Yes" if h <= sum(a) else "No") return #main if __name__ == '__main__': solve()
[ "assignment.value.change", "identifier.change", "call.function.change" ]
586,778
586,779
u423585790
python
p02784
h,n = map(int,input().split()) ans = sum([int(i) for i in input().split()]) print(ans) if ans >= h: print('Yes') else: print('No')
h,n = map(int,input().split()) ans = sum([int(i) for i in input().split()]) if ans >= h: print('Yes') else: print('No')
[ "call.remove" ]
586,788
586,789
u026002792
python
p02784
H,N = map(int, input().split()) A = map(int, list(input().split())) if H < sum(A): print('Yes') else: print('No')
H,N = map(int, input().split()) A = map(int, list(input().split())) if H <= sum(A): print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
586,807
586,808
u193657135
python
p02784
H, N = map(int, input().split()) As = list(map(int, input().split())) if sum(As) < H: print('NO') else: print('Yes')
H, N = map(int, input().split()) As = list(map(int, input().split())) if sum(As) < H: print('No') else: print('Yes')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
586,809
586,810
u666476759
python
p02784
h,n=map(int,input().split()) l=[int(x) for x in input().split()] if sum(l)>=h: print("YES") else: print("NO")
h,n=map(int,input().split()) l=[int(x) for x in input().split()] if sum(l)>=h: print("Yes") else: print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
586,813
586,814
u018316211
python
p02784
h,n=map(int,input().split()) l=[int(x) for x in input().split()] if sum(l)>h: print("YES") else: print("NO")
h,n=map(int,input().split()) l=[int(x) for x in input().split()] if sum(l)>=h: 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" ]
586,815
586,814
u018316211
python
p02784
val = input().split(' ') h = int(val[0]) n = int(val[1]) skills = [int(i) for i in input().split(' ')] able = False for i in skills: h -= i if h <= 0: able = True break print(able)
val = input().split(' ') h = int(val[0]) n = int(val[1]) skills = [int(i) for i in input().split(' ')] able = 'No' for i in skills: h -= i if h <= 0: able = 'Yes' break print(able)
[ "assignment.value.change" ]
586,828
586,829
u103724957
python
p02784
#N = int(input()) H , N = map(int,input().split()) A = map(int,input().split()) if H - sum(A) < 0: print("Yes") else: print("No")
#N = int(input()) H , N = map(int,input().split()) A = map(int,input().split()) if H - sum(A) <= 0: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
586,837
586,838
u371132735
python
p02784
H, N = map(int, input().split()) A_list = list(map(int, input().split())) if sum(A_list) > H: print("Yes") else: print("No")
H, N = map(int, input().split()) A_list = list(map(int, input().split())) if sum(A_list) >= H: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
586,839
586,840
u315354220
python
p02784
H, N = map(int, input().split()) As = list(map(int, input().split())) if sum(As)>H: print('Yes') else: print('No')
H, N = map(int, input().split()) As = list(map(int, input().split())) if sum(As)>=H: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
586,841
586,842
u054514819
python
p02784
H,N=map(int,input().split()) A=list(map(int,input().split())) AA=sum(A) if H<=AA: print('Yes') else: print('NO')
H,N=map(int,input().split()) A=list(map(int,input().split())) AA=sum(A) if H<=AA: print('Yes') else: print('No')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
586,851
586,852
u988661952
python
p02784
H,N=map(int,input().split()) A=list(map(int,input().split())) AA=sum(A) if H<AA: print('Yes') else: print('NO')
H,N=map(int,input().split()) A=list(map(int,input().split())) AA=sum(A) if H<=AA: 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" ]
586,853
586,852
u988661952
python
p02784
H,N=map(int,input().split()) A=[map(int,input().split())] a=sum(A) if H<=a: print("Yes") else: print("No")
H,N=map(int,input().split()) A=list(map(int,input().split())) a=sum(A) if H<=a: print("Yes") else: print("No")
[ "assignment.value.change", "call.arguments.change" ]
586,856
586,857
u756399469
python
p02784
h, n= map(int, input().split()) a = list(map(int, input().strip().split())) total = sum(a) print(total) if(h>total): print('No') else: print('Yes')
h, n= map(int, input().split()) a = list(map(int, input().strip().split())) total = sum(a) if(h>total): print('No') else: print('Yes')
[ "call.remove" ]
586,865
586,866
u142223843
python
p02784
h, n= map(int, input().split()) a = list(map(int, input().strip().split())) total = sum(a) if(h>=total): print('No') else: print('Yes')
h, n= map(int, input().split()) a = list(map(int, input().strip().split())) total = sum(a) if(h>total): print('No') else: print('Yes')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
586,867
586,866
u142223843
python
p02784
h,n=[int(i) for i in input().split()] t=[int(i) for i in input().split()] if sum(t)>=h:print("yes") else:print("no")
h,n=[int(i) for i in input().split()] t=[int(i) for i in input().split()] if sum(t)>=h:print("Yes") else:print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
586,888
586,889
u221264296
python
p02784
h, n = map(int, input().split()) a = list(map(int, input().split())) if n <= 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" ]
586,909
586,910
u001495709
python
p02784
h, n = map(int, input().split()) a = list(map(int, input().split())) sums = sum(a) if sums >= h: print('YES') else: print('NO')
h, n = map(int, input().split()) a = list(map(int, input().split())) sums = sum(a) if sums >= h: print('Yes') else: print('No')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
586,915
586,916
u594518120
python
p02784
# import itertools # import math def solve(H, N, A): if (sum(A) > H): return 'Yes' return 'No' # N = int(input()) # S = input() H, N = map(int, input().split()) A = list(map(int, input().split())) # P = [] # S = [] # for i in range(N): # pp, ss = map(int, input().split()) # P.append(pp) # S.append(ss) print(solve(H, N, A))
# import itertools # import math def solve(H, N, A): if (sum(A) >= H): return 'Yes' return 'No' # N = int(input()) # S = input() H, N = map(int, input().split()) A = list(map(int, input().split())) # P = [] # S = [] # for i in range(N): # pp, ss = map(int, input().split()) # P.append(pp) # S.append(ss) print(solve(H, N, A))
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
586,919
586,920
u586662847
python
p02784
def main(): h,n = map(int,input().split()) a_lst = list(map(int,input().split())) for attack in a_lst: h == attack if h <= 0: print("Yes") else: print("No") if __name__ == '__main__': main()
def main(): h,n = map(int,input().split()) a_lst = list(map(int,input().split())) for attack in a_lst: h -= attack if h <= 0: print("Yes") else: print("No") if __name__ == '__main__': main()
[]
586,925
586,926
u695079172
python
p02784
H, N = map(int, input().split()) A = list(map(int, input().split())) # 強い順に並び替え A.sort() for a in A: H -=a if H<=0: print("Yes") exit() else: continue print("N0")
H, N = map(int, input().split()) A = list(map(int, input().split())) # 強い順に並び替え A.sort() for a in A: H -=a if H<=0: print("Yes") exit() else: continue print("No")
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
586,930
586,931
u875600867
python
p02784
x, y = map(int, input().split()) a = list(map(int, input().split())) print("yes" if sum(a) >= x else "no")
x, y = map(int, input().split()) a = list(map(int, input().split())) print("Yes" if sum(a) >= x else "No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
586,934
586,935
u043140379
python
p02784
input_list = list(map(int, input().split())) hp = input_list[0] arts = input_list[1] arts_list = list(map(int, input().split())) if hp < sum(arts_list): print(Yes) else: print(No)
input_list = list(map(int, input().split())) hp = input_list[0] arts = input_list[1] arts_list = list(map(int, input().split())) if hp <= sum(arts_list): print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "call.arguments.change" ]
586,942
586,943
u659587571
python
p02784
h,n=map(int,input().split()) l=list(map(int,input().split())) s=sum(l) if s>=h: print('yes') else: print('no')
h,n=map(int,input().split()) l=list(map(int,input().split())) s=sum(l) if s>=h: print('Yes') else: print('No')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
586,948
586,949
u623283955
python
p02784
H, N = map(int, input().split()) A = sum(list(map(int, input().split()))) if H < A: print('Yes') else: print('No')
H, N = map(int, input().split()) A = sum(list(map(int, input().split()))) if H <= A: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
586,955
586,956
u736470924
python
p02784
H,N=map(int,input().split()) A=list(map(int,input().split())) print("yes" if sum(A)>=H else "No")
H,N=map(int,input().split()) A=list(map(int,input().split())) print("Yes" if sum(A)>=H else "No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
586,959
586,960
u676458682
python
p02784
H, N = input().split() H = int(H) N = int(N) A= input() total=0 for i in A: total += int(i) if total >= H: print("Yes") elif total < H: print("No")
H, N = input().split() H = int(H) N = int(N) A= input().split() total=0 for i in A: total += int(i) if total >= H: print("Yes") elif total < H: print("No")
[ "call.add" ]
586,987
586,988
u510434738
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" ]
587,010
587,011
u305388378
python
p02784
H, N = map(int,input().split()) A = list(map(int, input().split())) sum = 0 for i in range(A.length()): 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 range(len(A)): sum += A[i] if(sum >= H): print("Yes") else: print("No")
[ "call.arguments.change", "control_flow.loop.range.bounds.upper.change" ]
587,016
587,017
u583888880
python
p02784
h, n = [int(x) for x in input().split()] a_n = list(map(int, input().split())) if sum(a_n) >= h: print("yes") else: print("No")
h, n = [int(x) for x in input().split()] a_n = list(map(int, input().split())) if sum(a_n) >= h: print("Yes") else: print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
587,018
587,019
u706330549
python
p02784
H,N = map(int,input().split()) A = list(map(int,input().split())) A.sort() #print(A) MOVES = len(A) NUM = MOVES #print(MOVES) count = 0 flag = 0 while(MOVES > 0): H -= A[MOVES-1] MOVES -= 1 if(H < 1): print('yes') flag = 1 break if(flag == 0): print('no')
H,N = map(int,input().split()) A = list(map(int,input().split())) A.sort() #print(A) MOVES = len(A) NUM = MOVES #print(MOVES) count = 0 flag = 0 while(MOVES > 0): H -= A[MOVES-1] MOVES -= 1 if(H < 1): print('Yes') flag = 1 break if(flag == 0): print('No')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
587,022
587,023
u789282627
python
p02784
H,N = input().split() A = input().split() H = int(H) N = int(N) Aintlist = [int(s) for s in A] print(Aintlist) sumdata = 0 for i in range(0,len(Aintlist)): sumdata += Aintlist[i] if sumdata >= H: print('Yes') else: print('No')
H,N = input().split() A = input().split() H = int(H) N = int(N) Aintlist = [int(s) for s in A] sumdata = 0 for i in range(0,len(Aintlist)): sumdata += Aintlist[i] if sumdata >= H: print('Yes') else: print('No')
[ "call.remove" ]
587,036
587,037
u958210291
python
p02784
H,N=input().split() A=input() A=A.split() B= sum(int(i) for i in A) if (int(B)>int(H)): print("Yes") else: print("No")
H,N=input().split() A=input() A=A.split() B= sum(int(i) for i in A) if (int(B)>=int(H)): print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
587,043
587,044
u345132740
python
p02784
i = list(map(int, input().split())) j = list(map(int, input().split())) if i[0]<=sum(j): print(Yes) else: print(No)
i = list(map(int, input().split())) j = list(map(int, input().split())) if i[0]<=sum(j): print("Yes") else: print("No")
[ "call.arguments.change" ]
587,074
587,075
u185405877
python
p02784
i = list(map(int, input().split())) j = list(map(int, input().split())) if i[0]<=sum(j): print(Yes) else: print(No)
i = list(map(int, input().split())) j = list(map(int, input().split())) if i[0]<=sum(j): print("Yes") else: print("No")
[ "call.arguments.change" ]
587,077
587,075
u185405877
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")
[ "call.arguments.change" ]
587,106
587,107
u620549327
python
p02784
import math a,b=map(int,input().split()) array = map(int,input().split()) sum = 0 for skill in array: a -= skill if(a <= 0): print("yes") else: print("no")
import math a,b=map(int,input().split()) array = map(int,input().split()) sum = 0 for skill in array: a -= skill if(a <= 0): print("Yes") else: print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
587,138
587,139
u609502714
python
p02784
inp = input().split() H = int(inp[0]) N = int(inp[1]) A = input().split() A = list(map(int, A)) def attack_sum(): sum_damage = 0 for i in A: sum_damage += i return sum_damage ans = "" if H <= attack_sum(): ans = "YES" else: ans = "NO" print(ans)
inp = input().split() H = int(inp[0]) N = int(inp[1]) A = input().split() A = list(map(int, A)) def attack_sum(): sum_damage = 0 for i in A: sum_damage += i return sum_damage ans = "" if H <= attack_sum(): ans = "Yes" else: ans = "No" print(ans)
[ "literal.string.change", "literal.string.case.change", "assignment.value.change" ]
587,165
587,166
u294375415
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" ]
587,172
587,173
u929783549
python
p02784
H, N = map(int, input().split()) move = [int(a) for a in map(int, input().split())] smove = sum(move) if smove > H: print("Yes") else: print("No")
H, N = map(int, input().split()) move = [int(a) for a in map(int, input().split())] H -= sum(move) if 0 >= H: print("Yes") else: print("No")
[]
587,176
587,177
u642909262
python
p02784
H, A = map(int, input().split()) move = [int(a) for a in map(int, input().split())] smove = sum(move) if smove > H: print("Yes") else: print("No")
H, N = map(int, input().split()) move = [int(a) for a in map(int, input().split())] H -= sum(move) if 0 >= H: print("Yes") else: print("No")
[ "assignment.variable.change", "identifier.change" ]
587,178
587,177
u642909262
python
p02784
h, n = [int(i) for i in input().split()] a = [int(i) for i in input().split()] print('Yes' if sum(a)>h else 'No')
h, n = [int(i) for i in input().split()] a = [int(i) for i in input().split()] print('Yes' if sum(a)>=h else 'No')
[ "expression.operator.compare.change", "call.arguments.change", "io.output.change" ]
587,194
587,195
u343850880
python
p02784
list1 = input().split(' ') list2 = input().split(' ') list2 = [int(s) for s in list2] num = int(list1[1]) HP = int(list1[0]) D = 0 for N in list2: D += N if D > HP: print('Yes') else: print('No')
list1 = input().split(' ') list2 = input().split(' ') list2 = [int(s) for s in list2] num = int(list1[1]) HP = int(list1[0]) D = 0 for N in list2: D += N if D >= HP: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
587,217
587,218
u652181492
python
p02784
H,N = map(int,input().split()) A = [int(x) for x in input().split()] for xg in A: H=H-xg if H >= 0: print('No') elif H < 0: print('Yes')
H,N = map(int,input().split()) A = [int(x) for x in input().split()] for xg in A: H=H-xg if H > 0: print('No') elif H <= 0: print('Yes')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
587,219
587,220
u549047581
python
p02784
s = input().split() # s[0]は s2 = list(map(int, input().split())) # 必殺技 if sum(s2) > int(s[0]): print("YES") else: print("NO")
s = input().split() # s[0]は体力, s[1]は攻撃の種類 s2 = list(map(int, input().split())) # 必殺技のリスト # print(sum(s2)) if sum(s2) >= int(s[0]): 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" ]
587,232
587,233
u991923581
python