problem_id
stringlengths
6
6
user_id
stringlengths
10
10
time_limit
float64
1k
8k
memory_limit
float64
262k
1.05M
problem_description
stringlengths
48
1.55k
codes
stringlengths
35
98.9k
status
stringlengths
28
1.7k
submission_ids
stringlengths
28
1.41k
memories
stringlengths
13
808
cpu_times
stringlengths
11
610
code_sizes
stringlengths
7
505
p02784
u038084150
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["h, n = map(int, input().split())\na = list(map(int, input().split()))\n\nsum = 0\nfor i int range(n):\n sum += a[i]\n\nif h <= sum:\n print('YES')\nelse:\n print('NO')\n", "h, n = map(int, input().split())\na = list(map(int, input().split()))\n \nsum = 0\nfor i in range(n):\n sum += a[i]\n \nif h <= sum:\n print('YES')\nelse:\n print('NO')", "h, n = map(int, input().split())\na = list(map(int, input().split()))\n \nsum = 0\nfor i in range(n):\n sum += a[i]\n \nif h <= sum:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s425283173', 's760181280', 's597963419']
[2940.0, 13964.0, 13964.0]
[17.0, 55.0, 57.0]
[161, 161, 161]
p02784
u039864635
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["h, n = map(int, input().split())\n\na = [map(int, input().split()) for _ in range(n)]\nprint(a)\nfor i in a:\n h -= a\nif h <= 0:\n print('Yes')\nelse:\n print('No')\n", "h, n = map(int, input().split())\n\na = [map(int, input().split()) for _ in range(n)]\n\nh -= sum(a)\nif h <= 0:\n print('Yes')\nelse:\n print('No')", 'def can_win_without_repeated_move(health, special_moves_damages) -> str:\n """\n Given a monster\'s health and a number of special moves with differ damages,\n can we deplete the monster\'s health without repeating the same move twice?\n :param health: int\n :param special_moves_damages: list[int]\n :return: str\n """\n return \'Yes\' if health <= sum(special_moves_damages) else \'No\'\n\n\nif __name__ == \'__main__\':\n print(can_win_without_repeated_move(list(map(int, input().split()))[0], list(map(int, input().split()))))\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s266654007', 's306177911', 's481120564']
[10584.0, 9944.0, 13964.0]
[26.0, 25.0, 41.0]
[166, 146, 538]
p02784
u043140379
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['x, y = map(int, input().split())\na = list(map(int, input().split()))\nprint("yes" if sum(a) >= x else "no")', 'x, y = map(int, input().split())\na = list(map(int, input().split()))\nprint("Yes" if sum(a) >= x else "No")']
['Wrong Answer', 'Accepted']
['s614121609', 's830543450']
[14092.0, 13964.0]
[42.0, 42.0]
[106, 106]
p02784
u044138790
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["h, n = (int(x) for x in input().split())\na = list((int(x) for x in input().split()))\na.sort()\nfor num in range(n):\n h -= num\nif h <= 0:\n print('Yes')\nelse:\n print('No')\n ", "h, n = (int(x) for x in input().split())\na = list((int(x) for x in input().split()))\na.sort()\nk = 0\nfor num in a:\n h -= num\n k += 1\n if k == n:\n break\nif h <= 0:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s867271692', 's228990550']
[14016.0, 13964.0]
[91.0, 100.0]
[178, 202]
p02784
u051928503
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["H,N=map(int,input().split())\na=0\nfor i in range(N):\n\tb=int(input())\n\ta+=b\nif H>a:\n\tprint('No')\nelse:\n\tprint('Yes')", "H,N=map(int,input().split())\na=list(map(int,input().split()))\nb=sum(a)\nif H>b:\n\tprint('No')\nelse:\n\tprint('Yes')"]
['Runtime Error', 'Accepted']
['s909770637', 's917995392']
[4260.0, 14092.0]
[21.0, 41.0]
[114, 111]
p02784
u056659569
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['H, N = map(int, input().split())\nA= [0] * N\nfor i in range(N):\n A[i]= map(int, input().split())\n \nif sum(A[i])>N:\n print("Yes")\nelse:\n print("No")', 'H, N = map(int, input().split())\nA= [0] * N\nfor i in range(N):\n A[i]= map(int, input().split())\n \nif (sum(A[i]>N):\n print("Yes")\nelse:\n print("No")', 'N = int(input())\nA = list(map(int, input().split()))\nif sum(A)>=H:\n print("Yes")\nelse:\n print("No")', 'H, N = map(int, input().split())\nA= [0] * N\nfor i in range(N):\n A[i]= map(int, input().split())\n \nif sum(A)>H:\n print("Yes")\nelse:\n print("No")', 'H, N = map(int, input().split())\nA= [0] * N\nfor i in range(N):\n A[i]= map(int, input().split())\n\nif (sum(A[i]>N);\n print("Yes")\nelse;\n print("No")', 'H, N = map(int, input().split())\nA= [0] * N\nfor i in range(N):\n A[i]= map(int, input().split())\nif sum(A)>=H:\n print("Yes")\nelse:\n print("No")', 'H, N = map(int, input().split())\nA= [0] * N\nfor i in range(N):\n A[i]= map(int, input().split())\n \nif sum(A[i])>H:\n print("Yes")\nelse:\n print("No")', 'H,N = int(input())\nA = list(map(int, input().split()))\nif sum(A)>=H:\n print("Yes")\nelse:\n print("No")\n', 'H,N = map(int,input().split())\nA = list(map(int, input().split()))\nif sum(A)>=H:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s093109683', 's150427514', 's322226976', 's335419770', 's732695601', 's767191806', 's900156430', 's911223955', 's832654305']
[10900.0, 2940.0, 3060.0, 11480.0, 2940.0, 11320.0, 10712.0, 2940.0, 13964.0]
[26.0, 18.0, 17.0, 26.0, 17.0, 26.0, 26.0, 17.0, 41.0]
[155, 156, 105, 152, 155, 151, 155, 108, 120]
p02784
u064027771
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['a,b = map(int,input().split())\nprint(sum(map(int,input().split())))', "a,b = map(int,input().split());s=sum(map(int,input().split()));print('Yes' if s>=a else 'No')"]
['Wrong Answer', 'Accepted']
['s522061950', 's182968545']
[10528.0, 10132.0]
[37.0, 37.0]
[67, 93]
p02784
u064563749
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["H, N=map(int,input().split())\nA=list(map(int,input().split())\nif H<=sum(A):\n print('Yes')\nelse:\n print('No')", "H,N=map(int,input().split())\nA=list(map(int,input().split()))\nif H<=sum(A):\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s552431456', 's177449361']
[2940.0, 13964.0]
[17.0, 41.0]
[120, 114]
p02784
u068142202
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['h, n = map(int, input().split())\nDeathblow = list(map(int, input().split()))\nfor i in n:\n h -= Deathblow[i]\nif h < 1:\n print("Yes")\nelse:\n print("No")', 'h, n = map(int, input().split())\nDeathblow = list(map(int, input().split()))\nfor i in range(n):\n h -= Deathblow[i]\nif h < 1:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s912892654', 's201979280']
[13964.0, 13964.0]
[42.0, 55.0]
[153, 160]
p02784
u069868485
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['H,N = (input()).split(" ")\nH=(int)(H)\nN=(int)(N)\nAs = (input()).split(" ")\n\nsum=0\n\nfor A in As:\n sum+=(int)(A)\n \nif sum>=A:\n print("Yes")\nelse:\n print("No")', 'H,N = (input()).split(" ")\nH=(int)(H)\nN=(int)(N)\nAs = (input()).split(" ")\n \nsum=0\n \nfor A in As:\n sum+=(int)(A)\n \nif sum>=H:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s470607819', 's078692895']
[10424.0, 10712.0]
[52.0, 50.0]
[160, 162]
p02784
u069870334
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["a,b=map(int,input().split(' '))\nprint((a+b-1)//b)\n", 'n,m=map(int,input().split(\' \'))\na=map(int,input().split(\' \'))\nif sum(a)>=n:\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Accepted']
['s300199572', 's318907553']
[2940.0, 10424.0]
[17.0, 37.0]
[50, 111]
p02784
u069978048
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['H, N = map(int, input().split())\nA = map(int, input().split())\nAns = 0\n\nfor x in A:\n Ans += x\n \nif(Ans >= H):\n print(`Yes`)\nelse:\n print(`No`)', "H, N = map(int, input().split())\nA = map(int, input().split())\nAns = 0\n \nfor x in A:\n Ans += x\n \nif Ans >= H:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s922393930', 's509963276']
[2940.0, 10132.0]
[17.0, 48.0]
[146, 146]
p02784
u071960168
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['line=input()\ndata=input()\nline=line.split()\ndata=data.split()\nnum=int(line[0])\nprint(num)\nfor i in range(int(line[1])):\n num-=int(data[i])\nif num>0:\n print("No")\nelse:\n print("Yes")', 'line=input()\ndata=input()\nline=line.split()\ndata=data.split()\nnum=int(line[0])\nfor i in range(int(line[1])):\n num-=int(data[i])\nif num>0:\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Accepted']
['s262288950', 's994188223']
[10712.0, 10584.0]
[53.0, 61.0]
[190, 179]
p02784
u072812663
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['h, n = map(int, input().split())\na = input().split()\n\na.sort(reverse=True)\n\nsum=0\nfor i in range(n):\n sum += a[i]\n \nif sum>=h:\n print("Yes")\nelse:\n print("No")', 'h, n = map(int, input().split())\na = input().split()\n\na.sort(reverse=True)\n\nsum=0\nfor i in Range(N):\n sum += a[i]\n \nif sum>=h:\n print("Yes")\nelse:\n print("No")', 'h, n = map(int, input().split())\na = list(map(int, input().split()))\n\na.sort(reverse=True)\n\nsum=0\nfor i in range(n):\n sum += a[i]\n \nif sum>=h:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s339446486', 's458680198', 's364097295']
[10552.0, 10532.0, 13964.0]
[77.0, 77.0, 87.0]
[163, 163, 179]
p02784
u077291787
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['\ndef main():\n H, _, *A = map(int, input().split())\n print("Yes" if sum(A) >= H else "No")\n\n\nif __name__ == "__main__":\n main()\n', '\ndef main():\n H, _, *A = map(int, open(0).read().split())\n print("Yes" if sum(A) >= H else "No")\n\n\nif __name__ == "__main__":\n main()\n']
['Wrong Answer', 'Accepted']
['s626817526', 's966682546']
[2940.0, 13868.0]
[19.0, 40.0]
[167, 174]
p02784
u078316894
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["H, N = list(map(int, input().split(' ')))\n# A_list = list(map(int, input().split(' ')))\nA_list = [int(x) for x in input().split()]\nsum_atack = sum(A_list)\nif sum_atack >= H:\n print('YES')\nelse:\n print('NO')", "H, N = list(map(int, input().split(' ')))\nA_list = list(map(int, input().split(' ')))\nsum_atack = sum(A_list)\nif sum_atack >= H:\n print('YES')\nelse:\n print('NO')", "H, N = list(map(int, input().split(' ')))\nA_list = list(map(int, input().split(' ')))\nsum_atack = sum(A_list)\nif sum_atack >= H:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s351798278', 's759392771', 's398317459']
[13964.0, 13964.0, 13964.0]
[44.0, 42.0, 41.0]
[212, 167, 167]
p02784
u081899737
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['l1 = list(map(int, input().split()))\nl2 = list(map(int, input().split()))\n\ndef attack2(l1, l2):\n H = l1[0]\n N = l1[1]\n A = sum(l2)\n result = H - A\n if result >0:\n return "no"\n else:\n return "yes"\n \nprint(attack2(l1, l2))', 'l1 = list(map(int, input().split()))\ndef attack2(l1):\n H, N= l1[0], l1[1]\n v = 0\n for i in range(2, N):\n v += l1[i]\n result = H - v\n if result >0:\n return "no"\n else:\n return "yes"\nprint(attack2(l1))', 'l1 = list(map(int, input().split()))\nl2 = list(map(int, input().split()))\n \nH int(l1[0])\nN = int(l1[1])\nA = int(sum(l2))\nresult = H - A\nif result <= 0:\n print("Yes")\nelse:\n print("No")', 'l1 = list(map(int, input().split()))\n\ndef attack2(l1):\n H, N= l1[0], l1[1]\n v=0\n for i in range(2, len(l1)):\n v += l1[i]\n result = H - v\n if result >0:\n return "no"\n else:\n return "yes"\nprint(attack2(l1))', 'l1 = list(map(int, input().split()))\nl2 = list(map(int, input().split()))\n \nH = int(l1[0])\nA = int(sum(l2))\nresult = H - A\nif result <= 0:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s433834557', 's794764275', 's836470768', 's842198132', 's751905808']
[13964.0, 3060.0, 2940.0, 3060.0, 13964.0]
[42.0, 17.0, 17.0, 18.0, 40.0]
[257, 238, 191, 243, 177]
p02784
u086438369
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["h, n = map(int, input().split())\nan = list(map(int, input().split()))\n\nif sum(an) > h:\n print('No')\nelse:\n print('Yes')", "h, n = map(int, input().split())\nan = list(map(int, input().split()))\n\nif sum(an) >= h:\n print('Yes')\nelse:\n print('No')\n"]
['Wrong Answer', 'Accepted']
['s970759839', 's136070512']
[13964.0, 13964.0]
[41.0, 42.0]
[121, 123]
p02784
u086503932
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["H,N=map(int,input().split())\nA=[]\nfor i in range(N):\n A.append(int(input()))\nprint('YNeos'[H<sum(A)::2])\n ", "H,N=map(int,input().split())\nprint('NYoe s'[H<=sum(list(map(int,input().split())))::2])"]
['Runtime Error', 'Accepted']
['s727151406', 's689039412']
[4468.0, 13964.0]
[21.0, 40.0]
[117, 87]
p02784
u089230684
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['\ninputa = input()\n\nh,n = inputa.split()\nH=int(h)\nN=int(n)\ninputb=input()\nAttacks=inputb.split()\nAttacks.sort(reverse=True)\nprint(Attacks)\ncnt=0\nmaxlen=len(Attacks)\nfor i in range(N):\n H=H-int(Attacks[maxlen-i-1])\n cnt=cnt+1\n\nif(H >0):\n print("No")\nelse:\n print("Yes")\n', 'h, n = list (map (int, input ().split ()))\na = list (map (int, input ().split ()))\nprint ("Yes" if sum (a) >= h else "No")']
['Wrong Answer', 'Accepted']
['s323036876', 's508863786']
[12504.0, 13964.0]
[130.0, 41.0]
[272, 122]
p02784
u094425865
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["h,n = map(int,input().split())\nalist = list(map(int,input().split()))\nwhile n >0:\n n -= 1\n h = h-alist[n]\nif h <=0:\n print('YES') \nelse:\n print('NO')", "h,n = map(int,input().split())\nalist = list(map(int,input().split()))\n\nwhile n >0:\n n -= 1\n h = h-alist[n]\nif h <=0:\n print('YES') \nelse:\n print('NO')", "h,n = map(int,input().split())\nalist = list(map(int,input().split()))\nwhile n >=0:\n n -= 1\n h = h-alist[n]\nif h <=0:\n print('YES') \nelse:\n print('NO')", "h,n = map(int,input().split())\nalist = list(map(int,input().split()))\n \nwhile n >0:\n n -= 1\n h = h-alist[n]\nif h <=0:\n print('Yes') \nelse:\n print('No')"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s018519039', 's114390047', 's992179428', 's526893601']
[13964.0, 13964.0, 13964.0, 13964.0]
[61.0, 61.0, 64.0, 64.0]
[161, 162, 162, 163]
p02784
u095384238
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['H, N = list(map(str, input().split()))\nA = list(map(str, input().split()))\n\nif sum(A)>=H:\n print("Yes")\nelse:\n print("No")', 'H, N = list(map(int, input().split()))\nA = list(map(int, input().split()))\n\nif sum(A)>=H:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s457291977', 's049601509']
[10844.0, 13964.0]
[33.0, 41.0]
[128, 128]
p02784
u096025032
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['a,b = map(int,input().split())\nc = list(map(int,input().split()))\n\nd = []\n\nd = sorted(c, reverse = True)\n\ni = sum(d[:2])\n\nif a / i <= 0:\n print("yes")\nelse:\n print("no")\n\n\n\n\n\n\n\n\n', 'a,b = map(int,input().split())\nc = list(map(int,input().split()))\n\nd = sum(c)\n\nif a <= d:\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Accepted']
['s200369797', 's579664207']
[13964.0, 13964.0]
[75.0, 41.0]
[180, 125]
p02784
u096845660
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["\n\n\n\n\n\n\n\n\nh, n = map(int, input().split())\nA = list(map(int, input(). split()))\n\n\n\n\n\ndef hp(h: int, n: int, A: list) -> str:\n damage = 0 \n for i in range(0, n): \n damage += int(A[i]) \n i += 1 \n\n if damage < 0: \n return 'No'\n else: \n return 'Yes'", "\n\n\n\n\n\n\n\n\nh, n = map(int, input().split())\nA = list(map(int, input(). split()))\n\n\n\n\n\ndef hp(h: int, n: int, A: list) -> str:\n damage = 0 \n for i in range(0, n): \n damage += int(A[i]) \n i += 1 \n\n if (h - damage) <= 0: \n return 'Yes'\n else: \n return 'No'\n\n\nprint(hp(h, n, A))\n\n# TypeError: list expected at most 1 argument, got 2"]
['Wrong Answer', 'Accepted']
['s769928372', 's976597905']
[20472.0, 20396.0]
[51.0, 63.0]
[1553, 1635]
p02784
u098994567
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['\n\n\n\n\nh, m = map(int, input().split())\na = list(map(int, input().split()))\n\n\n\n\n\nhissatu_hp = sum(a)\n\n\nresult = ""\nif hissatsu_hp >= h:\n result = "Yes"\nelse:\n result = "No"\n\nprint(result)\n', '\n\n\n\n\nh, m = map(int, input().split())\na = list(map(int, input().split()))\n\n\nhissatsu_hp = 0\nfor i in range(0, m):\n hissatsu_hp += a[i]\n\n\nresult = ""\nif hissatsu_hp >= h:\n result = "Yes"\nelse:\n result = "No"\n\nprint(result)\n']
['Runtime Error', 'Accepted']
['s367639358', 's981588427']
[20568.0, 20540.0]
[48.0, 63.0]
[1321, 1295]
p02784
u101350975
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["H, N = map(int, input().split())\ncount = 0\nA = list(map(int, input().split()))\nfor i in range(N):\n Ai = A[i]\n count += Ai\nif H <= Ai:\n print('Yes')\nelse:\n print('No')\n", "H, N = map(int, input().split())\ncount = 0\nA = list(map(int, input().split()))\nfor i in range(N):\n Ai = A[i]\n count += Ai\nif H <= count:\n print('Yes')\nelse:\n print('No')\n"]
['Wrong Answer', 'Accepted']
['s638893849', 's003473614']
[13964.0, 13964.0]
[61.0, 58.0]
[179, 182]
p02784
u103724957
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["val = input().split(' ')\nh = int(val[0])\nn = int(val[1])\nskills = [int(i) for i in input().split(' ')]\n\nable = False\nfor i in skills:\n h -= i\n if h <= 0:\n able = True\n break\n\nprint(able)\n", "val = input().split(' ')\nh = int(val[0])\nn = int(val[1])\nskills = [int(i) for i in input().split(' ')]\n\nable = 'No'\nfor i in skills:\n h -= i\n if h <= 0:\n able = 'Yes'\n break\n\nprint(able)\n"]
['Wrong Answer', 'Accepted']
['s678788583', 's535179050']
[13788.0, 13836.0]
[53.0, 55.0]
[207, 207]
p02784
u103902792
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['n,k = map(int,input().split())\nhs = list(map(int,input().split()))\n\nhs.sort()\n\nprint(sum(hs[:len(hs)-k]))\n\n', "h,n = map(int,input().split())\nAS = list(map(int,input().split()))\n\nprint('Yes' if h <= sum(AS) else 'No')"]
['Wrong Answer', 'Accepted']
['s159267233', 's661261132']
[13964.0, 13964.0]
[74.0, 44.0]
[107, 106]
p02784
u106342872
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["h,n = map(int,input().split())\na = list(map,input().split())\n\nif sum(a) >= h:\n print('Yes')\nelse:\n print('No')\n", "h,n = map(int,input.split())\na = list(map,input().split())\n\nif sum(a) >= h:\n print('Yes')\nelse:\n print('No')\n", "h,n = map(int,input().split())\na = list(map(int,input().split()))\n\nif sum(a) >= h:\n print('Yes')\nelse:\n print('No')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s708311006', 's964327382', 's690346092']
[9944.0, 2940.0, 13964.0]
[24.0, 17.0, 43.0]
[117, 115, 122]
p02784
u115877451
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["a,b=map(int,input().split())\nn=[int(input()) for i in reange(b+1)]\nif a<=sum(n):\n print('Yes')\nelse:\n print('No')", "a,b=map(int,input().split())\nn=list(map(int,input().split()))\nif a<=sum(n):\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s764313471', 's076220237']
[3060.0, 13964.0]
[17.0, 41.0]
[115, 110]
p02784
u127873832
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["h, n = map(int, input().split())\nA = list(map(int, input().split()))\nA.sort(reverse=True)\nif sum(A[:n]) >= h:\n print('YES')\nelse:\n print('NO')", "h, n = map(int, input().split())\nA = list(map(int, input().split()))\nA.sort(reverse=True)\nif sum(A[:n]) >= h:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s000506623', 's626788391']
[13964.0, 13964.0]
[76.0, 76.0]
[148, 148]
p02784
u129961029
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['a,b=map(int,input().split())\ns=list(map(int,input().split()))\ncount=0\nfor i in range(b):\n if count==0:\n for j in range(i,b):\n if a<s[i]+s[j] and count==0:\n print("yes")\n count+=1\nif count==0:\n print("no")\n', 'a,b=map(int,input().split())\ns=list(map(int,input().split()))\nif a<=sum(s):\n print ("yes")\nelse:\n print("no")\n\n', 'a,b=map(int,input().split())\ns=list(map(int,input().split()))\nif a<=sum(s):\n print ("Yes")\nelse:\n print("No")\n\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s407059294', 's763507971', 's250492021']
[13964.0, 13964.0, 13964.0]
[2104.0, 41.0, 41.0]
[259, 117, 117]
p02784
u130492706
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\nh, n = map(int, input().split())\na = [int(i) for i in input().split()]\n\na.sort(key = lambda x : -1*x)\n\nif h > a[0] + a[1]:\n print("Yes")\nelse:\n print("No")', '#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\nh, n = map(int, input().split())\na = [int(i) for i in input().split()]\n\nd = 0\nfor i in a:\n d += i\n\nif h > d:\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Accepted']
['s119445148', 's056213556']
[14016.0, 13964.0]
[93.0, 52.0]
[209, 198]
p02784
u131406572
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['n,m=map(int,input().split())\nl=list(map(int,input().split())\ns=sum(l)\nif n<=s:\n print("Yes")\nelse:\n print("No")', 'n,m=map(int,input().split())\nl=list(map(int,input().split()))\ns=sum(l)\nif n<=s:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Accepted']
['s149634590', 's954439164']
[2940.0, 14020.0]
[17.0, 40.0]
[113, 115]
p02784
u132813957
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['H,N=map(int,input().split())\nA=map(int,input().split())\nprint("Yes" if max(A)>=H else "No")', 'H,N=map(int,input().split())\nA=map(int,input().split())\nprint("Yes" if sum(A)>=H else "No")']
['Wrong Answer', 'Accepted']
['s546726881', 's587646472']
[10132.0, 10528.0]
[38.0, 37.0]
[91, 91]
p02784
u135360096
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["H, N= map(int, input().split())\nAn = list(map(int, input().split()))\nif sum(An)>= H:\n\tprint('Yes')\nelse:\n\tprint('No", 'H,N= map(int, input().split())\nAList = list(map(int,input().split()))\nif sum(AList)>=H:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s965628021', 's124264725']
[2940.0, 13964.0]
[17.0, 40.0]
[115, 122]
p02784
u142223843
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["h, n= map(int, input().split())\na = list(map(int, input().strip().split()))\ntotal = sum(a) \nprint(total)\nif(h>total):\n print('No')\nelse:\n print('Yes')", "h, n= map(int, input().split())\na = list(map(int, input().strip().split()))\ntotal = sum(a) \nif(h>total):\n print('No')\nelse:\n print('Yes')\n\n"]
['Wrong Answer', 'Accepted']
['s888263355', 's626655000']
[13964.0, 13964.0]
[41.0, 42.0]
[156, 145]
p02784
u144702227
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['h,n = list(map(int,input().splii()))\nl = list(map(int,input().splii()))\n\nif sum(l)<h:\n print("No")\nelse:\n print("Yes")', 'h,n = list(map(int,input().split()))\nl = list(map(int,input().split()))\n \nif sum(l)<h:\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Accepted']
['s101494013', 's421476659']
[3060.0, 13964.0]
[17.0, 41.0]
[120, 121]
p02784
u150906260
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["h,n=map(int,input().split())\nList=list(map(int,input().split()))\n# print(h)\n# print(n)\n# print(List)\nif sum(List)>= h:\n print('YES')\nelse:\n print('NO')", "h,n=map(int,input().split())\nList=list(map(int,input().split()))\n# print(h)\n# print(n)\n# print(List)\nif sum(List)>= h:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s412515288', 's168889117']
[13964.0, 13964.0]
[41.0, 41.0]
[157, 157]
p02784
u153259685
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['h,n=map(int,input().split())\na=list(map(int,input().split())\nif sum(a)>=h:\n print("Yes")\nelse:\n print("No")', 'h,n=map(int,input().split())\na=list(map(int,input().split()))\nif sum(a)>=h:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s010332802', 's606815119']
[2940.0, 13964.0]
[17.0, 40.0]
[109, 110]
p02784
u155251346
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['H, N, = map(int, input().split())\n\nDamage = []\nfor i in range(1,N+1):\n Ai = map(int, input().split())\n Damage.append(Ai)\nTotal_Damage = sum(Damage)\n\nif H <= Total_Damage:\n print("Yes")\nelse:\n print("No")', 'H, N, = map(int, input().split())\n\n\nfor i in range(1,N+1):\n Damage = []\n Ai = int(input())\n Damage.append(Ai)\nTotal_Damage = sum(Damage)\n\nif H <= Total_Damage:\n print("Yes")\nelse:\n print("No")', 'H, N, = map(int, input().split())\n\nDamage = []\nfor i in range(1,N+1):\n Ai = int(input())\n Damage.append(Ai)\nTotal_Damage = sum(Damage)\n\nif H <= Total_Damage:\n print("Yes")\nelse:\n print("No")\n ', 'H, N = map(int, input().split())\nA_list = []\nfor i in range(1, N+1):\n A_list.append("A_" + str(i))\n\nA_list = int(input())\nA_total = sum(A_list)\n\nif A_total >= H:\n print("Yes")\nelse:\n print("No")', 'H, N = map(int, input().split())\nA_list = []\nfor i in range(1, N+1):\n A_list.append("A_" + str(i))\n\nA_list = map(int, input().split())\nA_total = sum(A_list)\n\nif A_total >= H:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s115917997', 's537329035', 's579293664', 's617228584', 's347091816']
[16444.0, 10136.0, 10136.0, 17212.0, 24212.0]
[35.0, 32.0, 28.0, 60.0, 76.0]
[216, 208, 208, 203, 216]
p02784
u157874153
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['H, N = map(int, input().split())\na = list(map(int, input8).split())\nsum = sum(a)\nif sum >= H:\n print("Yes")\nelse:\n print("No")', 'H, N = map(int, input().split())\na = list(map(int, input().split())\nsum = sum(a)\nif sum >= H:\n print("Yes")\nelse:\n print("No")', 'h, n = map(int, input().split())\na = list(map(int, input().split()))\nif h <= sum(a):\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s415480429', 's776575063', 's126837750']
[3060.0, 2940.0, 14092.0]
[17.0, 17.0, 41.0]
[128, 128, 119]
p02784
u160414758
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['import sys,collections,math,random,fractions,bisect;sys.setrecursionlimit(10**7)\nsr = sys.stdin.readline; P = print; P2 = lambda x: print(*x, sep="\\n")\ndef I(i=0): t = [int(x)-i for x in sr().split()];return t if len(t) > 1 else t[0]\ndef S(): t = sr().split(); return t if len(t) > 1 else t[0]\nL1,L2,L3,L4, = [],[],[],[]\n \nH,N = I()\nA = I()\nif sum([A]) >= H:\n print("Yes")\nelse:\n print("No")\n', 'import sys,collections,math,random,fractions,bisect;sys.setrecursionlimit(10**7)\nsr = sys.stdin.readline; P = print; P2 = lambda x: print(*x, sep="\\n")\ndef I(i=0): t = [int(x)-i for x in sr().split()];return t\ndef S(): t = sr().split(); return t if len(t) > 1 else t[0]\nL1,L2,L3,L4, = [],[],[],[]\n \nH,N = I()\nA = I()\nif sum(A) >= H:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Accepted']
['s221339256', 's786581271']
[16272.0, 16060.0]
[75.0, 70.0]
[398, 372]
p02784
u163201677
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['h ,n =map(int,input().split())\na =list(map(int,input().split()))\n\nif sum(a) >= h:\n print("No")\n \nelse:\n print("Yes")', 'h ,n =map(int,input().split())\na =list(map(int,input().split()))\n\nif sum(a) >= h:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s467572102', 's488382733']
[13964.0, 13964.0]
[41.0, 41.0]
[125, 120]
p02784
u166807268
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['N = [int(x) for x in input().split()]\nattacks = [int(x) for x in input().split()]\nprint("Yes" if H - sum(attacks) <= 0 else "No")', 'H, N = [int(x) for x in input().split()]\nattacks = [int(x) for x in input().split()]\nprint("Yes" if H - sum(attacks) <= 0 else "No")']
['Runtime Error', 'Accepted']
['s649037347', 's148008043']
[13964.0, 13788.0]
[47.0, 45.0]
[129, 132]
p02784
u172147273
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['h,n=map(int,input().split())\na=input()\nlist=a.split()\nsum=0\nfor i in range(n-1):\n sum=sum+int(input())\n#print(sum)\nif sum>=h:\n print("Yes")\nelse:\n print("No")\n', 'h,n=map(int,input().split())\nsum=0\nfor i in range(n):\n a=int(input())\n sum=sum+a\nif sum>=h:\n print("yes")\nelse:\n print("no")', 'h,n=map(int,input().split())\na=input()\nlist=a.split()\nsum=0\nfor item in list:\n sum=sum+int(item)\n#print(sum)\nif sum>=h:\n print("Yes")\nelse:\n print("No")\n\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s039951990', 's978334352', 's170942202']
[10420.0, 4260.0, 10712.0]
[25.0, 21.0, 50.0]
[168, 136, 163]
p02784
u174849391
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['H,N=map(int,input().split())\n\nsum = 0\n1<=H<=10**9\n1<=N<=10**5\n\n\nimport random\n\nfor i in range(1,N+1):\n attack = random.randint(1,10**5)\n print(attack)\n\n sum += attack\n\ntotal = sum\n\nif H - total <= 0:\n print("Yes")\nelse:\n print("No")', 'h, a = map(int, input().split())\nif h % a == 0:\n print(h // a)\nelse:\n print(h // a + 1)', 'H,N=map(int,input().split())\n\nsum = 0\n1<=H<=10**9\n1<=N<=10**4\n\n\nimport random\n\nfor i in range(1,N+1):\n attack = random.randint(1,10**5)\n print(attack)\n\n sum += attack\n\ntotal = sum\n\nif H - total <= 0:\n print("Yes")\nelse:\n print("No")', 'H,N=map(int,input().split())\n\n1<=H<=10**9\n1<=N<=10**5\n\nimport random\n\nfor i in range(1,N+1):\n print(random.randint(1,10**5))\n\nsum = 0\nsum += i\n\nif H - sum < 0:\n print("Yes")\nelif H - sum > 0:\n print("No")\n', 'H,N=map(int,input().split())\n\nattack = list(map(int,input().split()))\nprint(attack)\ntotal = sum(attack)\n\nif H - total <= 0:\n print("Yes")\nelse:\n print("No")\n', 'H,N=map(int,input().split())\n\nsum = 0\n1<=H<=10**9\n1<=N<=10**4\n\n\nimport random\n\nfor i in range(1,N+1):\n attack = random.randint(1,10**4)\n print(attack)\n\n sum += attack\n\ntotal = sum\n\nif H - total <= 0:\n print("Yes")\nelse:\n print("No")\n', 'H,N=map(int,input().split())\n\nsum = 0\n1<=H<=10**9\n1<=N<=10**5\n\nimport random\n\nfor i in range(1,N+1):\n attack = random.randint(1,10**5)\n print(attack)\n sum += attack\n print(sum)\n\nif H - sum < 0:\n print("Yes")\nelif H - sum > 0:\n print("No")', 'H,N=map(int,input().split())\n\nsum = 0\n1<=H<=10**9\n1<=N<=10**5\n\n\nimport random\n\nfor i in range(1,N+1):\n attack = random.randint(1,10**5)\n print(attack)\n\n sum += attack\n\ntotal = sum\n\nif H - total < 0:\n print("Yes")\nelif H - total > 0:\n print("No")', 'H,N=map(int,input().split())\n\nattack = list(map(int,input().split()))\n\ntotal = sum(attack)\n\nif H - total <= 0:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s095891612', 's124594892', 's209618989', 's319025917', 's604446956', 's735892343', 's826305053', 's898599387', 's334096237']
[9536.0, 8984.0, 9532.0, 9480.0, 20532.0, 9572.0, 9628.0, 9388.0, 20500.0]
[138.0, 29.0, 149.0, 133.0, 56.0, 142.0, 169.0, 138.0, 49.0]
[247, 93, 247, 214, 163, 248, 256, 260, 149]
p02784
u175590965
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['h,n = map(int,input().split())\na = list(map(int,input().split()))\nsorted(a)\nif h <= sum(a[:n-1]):\n print("Yes")\nelse:\n print("No")', 'h,n = map(int,input().split())\na = list(map(int,input().split()))\nif h-sum(a) <= 0:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s621245616', 's559382130']
[13964.0, 13964.0]
[74.0, 41.0]
[136, 122]
p02784
u179335173
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['enemy, num = map(int,input().split())\nskills = list(map(int,input().split()))\nprint("Yes") if sum(skills) < enemy else print("No")\n', 'enemy, num = input().split()\nskills = list(map(input().split()))\nprint("Yes") if max(skills) >= enemy else print("No")', 'num = input()\nlist = list(map(int,input().split()))\nlist2 = set(list) \nprint("No") if len(list) == len(list2) else print("Yes")\n', 'enemy, num = map(int,input().split())\nskills = list(map(int,input().split()))\nprint("Yes") if sum(skills) >= enemy else print("No")\n']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s421214224', 's818357570', 's841149563', 's297877860']
[13964.0, 10132.0, 14092.0, 13960.0]
[41.0, 24.0, 44.0, 42.0]
[131, 118, 128, 132]
p02784
u182800367
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['import fileinput\n\nh, n = map(int, input().split())\na = list(map(int, input().split()))\n\nprint(sum(a))\n\nif h <= sum(a):\n print("Yes")\nelse:\n print("No")\n\n\n', 'import fileinput\n\nh, n = map(int, input().split())\na = list(map(int, input().split()))\n\nif h <= sum(a):\n print("Yes")\nelse:\n print("No")\n\n\n']
['Wrong Answer', 'Accepted']
['s945016001', 's744848145']
[14016.0, 14144.0]
[41.0, 40.0]
[160, 145]
p02784
u183976155
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['H,N = list(map(int,input().split))\nA = list(map(int,input().split))\ns = A[0]\nfor i in range(1,len(A)):\n s += A[i]\nif s>=H:\n print("Yes")\nelse:\n print("No")', 'H,N = list(map(int,input().split()))\nA = list(map(int,input().split()))\ns = A[0]\nfor i in range(1,len(A)):\n s += A[i]\nif s>=H:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s222559395', 's678227263']
[3060.0, 13964.0]
[17.0, 55.0]
[164, 168]
p02784
u185405877
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['i = list(map(int, input().split()))\nj = list(map(int, input().split()))\nif i[0]<=sum(j):\n\tprint(Yes)\nelse:\n\tprint(No)', 'i = list(map(int, input().split()))\nj = list(map(int, input().split()))\nif i[0]=<sum(j):\n print(Yes)\nelse:\n print(No)', 'i = list(map(int, input().split()))\nj = list(map(int, input().split()))\nsumj=0\nfor k in range(len(j)):\n sumj+=j[k]\nif i[0]<=sumj:\n print(Yes)\nelse:\n print(No)', 'i = list(map(int, input().split()))\nj = list(map(int, input().split()))\nif i[0]<=sum(j):\n print(Yes)\nelse:\n print(No)', 'i = list(map(int, input().split()))\nj = list(map(int, input().split()))\nif i[0]<=sum(j):\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s219234165', 's235950599', 's256452644', 's693800864', 's164943849']
[13964.0, 2940.0, 13964.0, 13964.0, 13964.0]
[42.0, 17.0, 56.0, 42.0, 41.0]
[117, 119, 161, 119, 123]
p02784
u191394596
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["H, N = map(int, input().split())\natacks = map(int, input().split())\n\nif sum(atacks) >= H:\n print('YES')\nelse:\n print('NO')", "H, N = map(int, input().split())\natacks = map(int, input().split())\n\nif sum(atacks) >= H:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s072425944', 's202996847']
[10712.0, 10584.0]
[37.0, 38.0]
[124, 124]
p02784
u197964561
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["h,n = map(int, input().split())\na = list(map(int, input().split()))\n\nif sum(a) >= h:\n print('YES')\nelse:\n print('NO')\n", "h,n = map(int, input().split())\na = list(map(int, input().split()))\n\nif sum(a) >= h:\n print('Yes')\nelse:\n print('No')\n"]
['Wrong Answer', 'Accepted']
['s790514425', 's605458666']
[13964.0, 13964.0]
[41.0, 42.0]
[124, 124]
p02784
u198062737
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['H, _ = map(int, input().split(" "))\nprint("Yes" if sum(map(int, input().split(" "))) <= H else "No")', 'H, _ = map(int, input().split(" "))\nprint("Yes" if sum(map(int, input().split(" "))) >= H else "No")\n']
['Wrong Answer', 'Accepted']
['s172491463', 's137017375']
[10424.0, 10132.0]
[39.0, 39.0]
[100, 101]
p02784
u201387466
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['h,n=int(input().split())\na = list(map(int,input().split()))\nfor i in range(n):\n h -= a[i]\nif h>0 :\n print("n↨o")\nelse:\n print("y↨es")\n ', 'h,n=map(int,input().split())\na = list(map(int,input().split()))\nfor i in range(n):\n h -= a[i]\nif h>0 :\n print("n↨o")\nelse:\n print("y↨es")\n \n', 'h,n=map(int,input().split())\na = list(map(int,input().split()))\nfor i in range(n):\n h -= a[i]\nif h>0 :\n print("No")\nelse:\n print("Yes")\n \n']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s280059130', 's785997876', 's274015245']
[3060.0, 13964.0, 13964.0]
[17.0, 54.0, 55.0]
[143, 148, 142]
p02784
u217086212
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['h,n = list(map(int,input().split()))\na = list(map(int, input().split()))\n\nif(h <= sum(a)):\n ans = "YES"\nelse:\n ans = "NO"\nprint(ans)', 'h,n = list(map(int,input().split()))\na = list(map(int, input().split()))\n\nif(h <= sum(a)):\n ans = "Yes"\nelse:\n ans = "No"\nprint(ans)']
['Wrong Answer', 'Accepted']
['s938631943', 's811746496']
[13964.0, 13964.0]
[41.0, 41.0]
[134, 134]
p02784
u218393296
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["h,n=map(int, input().split())\naList=list(map(int, input().split()))\nresult = h\nfor a in aList:\n result -= a\nreturn 'Yes' if result <= 0 else 'No'", "h,n=map(int, input().split())\naList=list(map(int, input().split()))\nresult = h\nfor a in aList:\n result -= a\nprint('Yes') if result <= 0 else print('No')\n"]
['Runtime Error', 'Accepted']
['s903120369', 's814490434']
[2940.0, 13964.0]
[18.0, 48.0]
[146, 154]
p02784
u221264296
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['h,n=[int(i) for i in input().split()]\nt=[int(i) for i in input().split()]\nif sum(t)>=h:print("yes")\nelse:print("no")', 'h,n=[int(i) for i in input().split()]\nt=[int(i) for i in input().split()]\nif sum(t)>=h:print("Yes")\nelse:print("No")\n']
['Wrong Answer', 'Accepted']
['s257692382', 's531456937']
[13836.0, 13964.0]
[44.0, 44.0]
[116, 117]
p02784
u222668979
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["h, n = map(int, input().split())\na = list(map(int, input().split()))\n\nprint('Yes' if sum(a) >= h else 'No')\nif h==10:\n print(h)", "import sys\ninput = sys.stdin.readline\n\nh,n = map(int, input().split())\na = list(map(int, input().split()))\na.sort()\n\ncnt = 0\nfor i in range(n):\n cnt += a[i]\n\nif cnt >= h:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s800638623', 's565531291']
[20404.0, 14116.0]
[50.0, 87.0]
[130, 212]
p02784
u223060578
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["H,N = map(int,input().split())\nA = list(map(int,input().split()))\n\nif H - sum(A) <= 0:\n print('YES')\nelse:\n print('NO')", "H,N = map(int,input().split())\nA = list(map(int,input().split()))\n\nif H - sum(A) <= 0:\n print('YES')\nelse:\n print('NO')", 'H, N = map(int, input().split())\nA = list(map(int, input().split()))\n\nif H - sum(A) <= 0:\n print("YES")\nelse:\n print("NO")', 'H, N = map(int, input().split())\nA = list(map(int, input().split()))\n\nif H - sum(A) <= 0:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s196894143', 's693189948', 's834224942', 's250622801']
[20520.0, 20448.0, 20392.0, 20316.0]
[49.0, 52.0, 52.0, 52.0]
[125, 125, 128, 128]
p02784
u223555291
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["a,b=map(int,input().split())\nc=int(input())\nfor i in range(2):\n a-=max(c)\nif a<=0:\n print('Yes')\nelse:\n print('No')\n", "a,b=map(int,input().split())\nc=list(map(int,input().split()))\nfor i in range(b):\n a-=c[i]\nif a<=0:\n print('Yes')\nelse:\n print('No')\n"]
['Runtime Error', 'Accepted']
['s849148104', 's507974458']
[4468.0, 14092.0]
[21.0, 55.0]
[119, 135]
p02784
u227085629
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["h,n = map(int,input().split())\na = int().rstrip().split()\nc = 0\nfor b in a:\n c += b\nif h > c:\n print('No')\nelse:\n print('Yes')", "h,n = map(int,input().split())\nz = input()\na = z.split()\nc = 0\nfor b in a:\n c += int(b)\nif h > c:\n print('No')\nelse:\n print('Yes')\n"]
['Runtime Error', 'Accepted']
['s726588504', 's293953439']
[3064.0, 9944.0]
[17.0, 50.0]
[129, 134]
p02784
u233412274
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["H, N = map(int, input().split())\nA = list(map(int, input().split()))\n\nfor i in A:\n H -= i\n\nif H > 0:\n print('No')\nelse\n print('Yes')", "H, N = map(int, input().split())\nA = (map(int, input().split()))\nfor i in A:\n H -= i\n \nif H > 0:\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s640166012', 's071525466']
[2940.0, 10528.0]
[17.0, 48.0]
[141, 138]
p02784
u245299791
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["H,N=map(int,input().split())\nA=map(int,input().split())\nB=sum(A)\nans='YES'\nif B<H:\n ans='NO'\nprint(ans)", "H,N=map(int,input().split())\nA=map(int,input().split())\nB=sum(A)\nans='Yes'\nif B<H:\n ans='No'\nprint(ans)\n\n"]
['Wrong Answer', 'Accepted']
['s024158048', 's540157712']
[10132.0, 9944.0]
[37.0, 37.0]
[104, 106]
p02784
u250828304
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["H,N = (int(x) for x in input().split())\na = list(map(int,input(),split()))\n\nif sum(a) >= H:\n print('Yes')\nelse:\n print('No')", "H,N = (int(x) for x in input().split())\na = list(map(int,input().split()))\n\nif sum(a) >= H:\n print('Yes')\nelse:\n print('No')\n"]
['Runtime Error', 'Accepted']
['s530330255', 's623885093']
[4260.0, 13964.0]
[19.0, 41.0]
[126, 127]
p02784
u265686269
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["import sys\n\ninputs = sys.stdin.readline()\nA = sys.stdin.readline()\ninputs = inputs.split()\nH, N = inputs[0], inputs[1]\nA = A.split()\n\nA_sum = 0\nfor i in range(len(A)):\n A_sum += A[i]\n\nif A_sum < H:\n print('No')\nelse:\n print('Yes')", "import sys\n\ninputs = sys.stdin.readline()\nA = sys.stdin.readline()\ninputs = inputs.split()\nH, N = int(inputs[0]), int(inputs[1])\nA = A.split()\n\nA_sum = 0\nfor i in range(len(A)):\n A_sum += int(A[i])\n\nif A_sum < H:\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s642747498', 's360736167']
[10100.0, 10020.0]
[26.0, 58.0]
[266, 281]
p02784
u272457181
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["H, N = map(int,input().split())\nA = list(map(int,input().split())\nT = 0\nfor i in range(N):\n T += A[i]\nif H - T <=0:\n print('Yes')\nelse:\n print('No')", "H, N = map(int,input().split())\nA = list(map(int,input().split()))\nT = 0\nfor i in range(N):\n T += A[i]\nif H-T <=0:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s769235143', 's797228864']
[8988.0, 20564.0]
[23.0, 58.0]
[151, 150]
p02784
u273242084
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['h,n = map(int,input().split())\na = list(map(int,input().split()))\nx = max(a)\na.remove(x)\ny = max(a)\nprint(h,x,y)\nif x+y >= h:\n print("Yes")\nelse:\n print("No")', 'h,n = map(int,input().split())\nA = list(map(int,input().split()))\na = sum(A)\nif h <= a:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s908172956', 's357608806']
[13964.0, 20436.0]
[43.0, 53.0]
[174, 126]
p02784
u273496671
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['list = input().split(" ")\nH = int(list[0])\nskill = input().split(" ")\nskill = [int(i) for i in skill]\n\na1 = max(skill)\nskill.remove(a1)\na2 = max(skill)\n\nif a1 + a2 >= H:\n print("YES")\nelse:\n print("NO")', 'list = input().split(" ")\nH = int(list[0])\nskill = input().split(" ")\nskill = [int(i) for i in skill]\n\na1 = max(skill)\nskill.remove(a1)\na2 = max(skill)\n\nif a1 + a2 >= H:\n print("YES")\nelse:\n print("NO")', 'list = input().split(" ")\nH = int(list[0])\nskill = input().split(" ")\nskill = [int(i) for i in skill]\n\nsum = 0\nfor i in skill:\n sum = sum + i\n\nif sum >= H:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s384245913', 's975833315', 's019347022']
[13836.0, 13836.0, 13964.0]
[49.0, 48.0, 53.0]
[208, 208, 197]
p02784
u279533690
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['z=list(map(int,input().split()))\nx=list(map(int,input().split()))\nd={}\nc=0\nfor i in x:\n if d.get(i,0)==0:\n c+=i\nif c>=z[0]:\n print("YES")\nelse:\n print("NO")\n\n \n', 'z=list(map(int,input().split()))\nx=list(map(int,input().split()))\nd={}\nc=0\nfor i in x:\n if d.get(i,0)==0:\n c+=i\nif c>=z[0]:\n print("YES")\nelse:\n print("NO")\n\n \n', 'z=list(map(int,input().split()))\nx=list(map(int,input().split()))\nd={}\nc=0\nfor i in x:\n if d.get(i,0)==0:\n c+=i\nif c>=z[0]:\n print("Yes")\nelse:\n print("No")\n\n \n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s438042056', 's871902013', 's543326213']
[20532.0, 20428.0, 20404.0]
[63.0, 61.0, 65.0]
[197, 197, 197]
p02784
u287500079
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['211 5\n31 41 59 26 53\n', "h,n = map(int,input().split())\na = [int(i) for i in input().split()]\nb = sum(a)\nans = 'Yes'\nif b < h:\n ans = 'No'\nprint(ans)"]
['Runtime Error', 'Accepted']
['s445259875', 's389061210']
[2940.0, 13836.0]
[17.0, 45.0]
[21, 127]
p02784
u291988695
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['i=list(map(int,input().split()))\nj=list(map(int,input().split()))\nh=i[0]\na=True\nc=0\nj.sort()\nfor b in j:\n c+=b\n if c>=h:\n print("Yes")\nprint("No")', 'i=list(map(int,input().split()))\nj=list(map(int,input().split()))\nh=i[0]\na=True\nc=0\nj.sort(reverse=True)\nfor b in j:\n c+=b\n if c>=h:\n print("Yes")\n a=False\nif a:\n print("No")', 'i=list(map(int,input().split()))\nj=list(map(int,input().split()))\nh=i[0]\na=True\nc=0\nj.sort(reverse=True)\nfor b in j:\n c+=b\n if c>=h:\n print("Yes")\n a=False\n break\nif a:\n print("No")\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s687928844', 's935417421', 's766603621']
[14092.0, 13964.0, 13964.0]
[88.0, 95.0, 91.0]
[151, 183, 194]
p02784
u292746386
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['H, N = list(map(int, input().split()))\nA = list(map(int, input().split()))\n\nSUM = sum(A)\nif H > SUM:\n print("NO")\nelse:\n print("YES")', 'H, N = list(map(int, input().split()))\nA = list(map(int, input().split()))\n\nSUM = sum(A)\nif H > SUM:\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Accepted']
['s954148439', 's786601845']
[13964.0, 13964.0]
[42.0, 40.0]
[139, 139]
p02784
u295294832
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['N,K = [int(x) for x in input().split()]\nn=[int(x) for x in input().split()]\nprint("Yes" if sum(n)=>N else "No")\n', 'N,K = [int(x) for x in input().split()]\nn=[int(x) for x in input().split()]\nprint("Yes" if sum(n)>=N else "No")\n']
['Runtime Error', 'Accepted']
['s824407581', 's083444719']
[3064.0, 13792.0]
[17.0, 44.0]
[112, 112]
p02784
u298945776
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["H, N = map(int, input().split())\nA = list(map(int, input().split()))\n\nans = 'No'\nfor i in range(N):\n H -= A[i]\n if N <= 0:\n ans = 'Yes'\n break\nprint(ans)", "H, N = map(int, input().split())\nA = list(map(int, input().split()))\n\nans = 'No'\nfor i in range(N):\n H -= A[i]\n if N <= 0:\n ans = 'Yes'\n break\nprint(ans)", "H, N= map(int, input().split())\nA = list(map(int, input().split()))\n\ntmp = sum(A)\ntmp = H-tmp\n\nif tmp <=0:\n ans = 'Yes'\nelse:\n ans = 'No'\nprint(ans)"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s923852588', 's951624104', 's585797072']
[13964.0, 13964.0, 13964.0]
[56.0, 57.0, 41.0]
[173, 173, 154]
p02784
u300457253
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["hp = int(input())\nhissatsu = int(input())\nhissatsuatk = list(map(int, input().split()))\n\nif hp <= sum(hissatsuatk):\n print('YES')\nelse:\n print('NO')\n", "kazu1 = list(map(int, input().split()))\nkazu2 = list(map(int, input().split()))\n\nif kazu1[0] <= sum(kazu2):\n print('YES')\nelse:\n print('NO')\n", "kazu1 = list(map(int, input().split()))\nkazu2 = list(map(int, input().split()))\n\nif kazu1[0] <= sum(kazu2):\n print('YES')\nelse:\n print('NO')\n", "kazu1 = list(map(int, input().split()))\nkazu2 = list(map(int, input().split()))\n\nif kazu1[0] <= sum(kazu2):\n print('Yes')\nelse:\n print('No')\n"]
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s098715530', 's173173119', 's850110175', 's781727692']
[2940.0, 13964.0, 14016.0, 13964.0]
[17.0, 41.0, 41.0, 40.0]
[155, 147, 147, 147]
p02784
u303059352
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['a, b = map(int, input().split())\nc = map(int, input().split())\nif a <= c.sum():\n print(\'Yes\')\nelse:"\n print(\'No\')', "a, b = map(int, input().split())\nc = map(int, input().split())\nif a <= c.sum():\n print('Yes')\nelse:\n print('No')\n", "a, b = map(int, input().split())\nc = list(map(int, input().split()))\nif a <= sum(c):\n print('Yes')\nelse:\n print('No')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s967151708', 's986821657', 's086176556']
[2940.0, 10420.0, 13964.0]
[17.0, 25.0, 41.0]
[115, 115, 120]
p02784
u305388378
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['h, n = map(int, input().split())\na = list(map(int, input().split()))\nif sum(a) >= h:\n print("yes")\nelse:\n print("no")', 'h, n = map(int, input().split())\na = list(map(int, input().split())\n\nif h <= sum(a):\n print("yes")\nelse:\n print("no")', 'h, n = map(int, input().split())\na = list(map(int, input().split()))\nif sum(a) >= h:\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s244268790', 's747980244', 's799262420']
[14020.0, 2940.0, 13964.0]
[43.0, 17.0, 42.0]
[121, 121, 122]
p02784
u307622233
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["h, n = (int(x) for x in input().split())\na = list(int(x) for x in input().split())\n\ntxt = 'YES' if(sum(a) >= h) else 'NO'\nprint(txt)\n", "h, n = (int(x) for x in input().split())\na = list(int(x) for x in input().split())\n\ntxt = 'Yes' if(sum(a) >= h) else 'No'\nprint(txt)"]
['Wrong Answer', 'Accepted']
['s216909912', 's774137004']
[13964.0, 13964.0]
[46.0, 48.0]
[133, 132]
p02784
u316904674
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["a,b=input().split()\nl = list(map(int, input().split()))\na=int(a)\nb=int(b)\nif a >= sum(l):\n print('Yes')\n\nelse:\n print('No')\n", "a,b=input().split()\nl = list(map(int, input().split()))\na=int(a)\nb=int(b)\nif a <= sum(l):\n print('Yes')\n\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s676833484', 's417021927']
[13964.0, 13964.0]
[40.0, 40.0]
[126, 125]
p02784
u318024671
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['210 5\n31 41 59 26 53', 'H, N = map(int, input().split())\nA = list(map(int, input().split()))\natk = 0\nfor i in A:\n atk += i\nif H > atk:\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Accepted']
['s591850590', 's931276895']
[8888.0, 20436.0]
[24.0, 57.0]
[20, 152]
p02784
u318740143
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['H,N = map(int,input().split())\nM = list(map(int,input().split())\n\nans = 0 \nfor i in M:\n ans = ans + i\nif h > ans:\n print("No)\nelse:\n print("Yes")\n ', 'H,N = map(int,input().split())\nM = list(map(int,input().split())\n\nans = 0 \nfor i in M:\n ans = ans + i\nif h > ans:\n print("No)\nelse:\n print("Yes")\n ', 'H,N = map(int,input().split())\nM = list(map(int,input().split())\n\nans = 0 \nfor i in M:\n ans = ans + i\nif h > ans:\n print("No)\nelse:\n print("Yes")\n ', 'H,N = map(int,input().split())\nM = list(map(int,input().split()))\n \nans = 0 \nfor i in M:\n ans = ans + i\nif H > ans:\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s160444034', 's231838274', 's680006981', 's226219584']
[2940.0, 2940.0, 2940.0, 13964.0]
[17.0, 17.0, 17.0, 50.0]
[186, 164, 170, 163]
p02784
u321605735
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['r=input().split()\nH=int(r[0])\nN=int(r[1])\ndata_pre=input().split()\ndata=[int(s) for s in data_pre]\nif max(data)>=H:\n print("Yes")\nelse:\n print("No")', 'r=input().split()\nH=int(r[0])\nN=int(r[1])\ndata_pre=input().split()\ndata=[int(s) for s in data_pre]\nif sum(data)>=H:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s227579069', 's226844361']
[20392.0, 20568.0]
[55.0, 56.0]
[154, 154]
p02784
u323045245
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['HP, n = map(int, input().split())\ndamege = list(input().split())\nif sum(damege) >= HP:\n print("Yes")\nelse:\n print("No")', 'HP, n = map(int, input().split())\ndamege = list(map(int, input().split()))\nif sum(damege) >= HP:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s203638928', 's473335985']
[10420.0, 13964.0]
[27.0, 42.0]
[121, 131]
p02784
u327211044
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['h, n = map(int, input().split())\na = [int(input()) for _ in range(n)]\ns = sum(a)\nif s >= h:\n print("Yes")\nelse:\n print("No")', 'h, n = map(int, input().split())\na = list(map(int, input().split()))\nif sum(a) >= h:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s003591438', 's666235454']
[4260.0, 13964.0]
[21.0, 40.0]
[126, 123]
p02784
u332331919
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["# 153_b\n\nimport random\n\nH, N = map(int, input().split())\nA = input().split()\nfor i in range(N):\n A[i] = int(A[i])\n\nif (1 <= H, H <= 10 ** 9) and (1 <= N, N <= 10 ** 5):\n skill = random.randint(0, N - 1)\n h = H - A[skill]\n h2 = h - A[skill]\n if h <= 0 or h2 <= 0:\n print('Yes')\n elif h > 0 or h2 > 0:\n print('No')\n", "# 153_b\n\nimport random\n\nH, N = map(int, input().split())\nA = input().split()\nfor i in range(N):\n A[i] = int(A[i])\n\nif (1 <= H, H <= 10 ** 9) and (1 <= N, N <= 10 ** 5):\n for j in range(len(A)):\n H -= A[j]\n if H <= 0:\n print('Yes')\n if H > 0:\n print('No')"]
['Wrong Answer', 'Accepted']
['s699128625', 's684050203']
[17724.0, 17404.0]
[58.0, 71.0]
[376, 318]
p02784
u333700164
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['h,n=map(int,input().split())\na=list(map(int,innput().split()))\n\nif sum(a)>=h:\n print("Yes")\nelse:\n print("No")\n', 'h=int(input())\na=list(map(int,innput().split()))\n\nif sum(a)>=h:\n print("Yes")\nelse:\n print("No")', 'h,n=map(int,input().split())\na=list(map(int,input().split()))\n\nif sum(a)>=h:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s760238174', 's797392790', 's887536695']
[9144.0, 9084.0, 20448.0]
[25.0, 22.0, 54.0]
[113, 98, 112]
p02784
u343523553
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['H,N = map(int,input().split())\na = [int(s) for s in input().split()]\ns = H - sum(a)\nif s < 0:\n print("No")\nelse:\n print("Yes")', 'H,N = map(int,input().split())\na = [int(s) for s in input().split()]\ns = H - sum(a)\nif s <= 0:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s024832526', 's929024680']
[13836.0, 13964.0]
[45.0, 44.0]
[132, 133]
p02784
u344959959
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['a,b = map(int,input().split())\nlis = list(map(int,input().split))\nc = sum(lis)\nprint("Yes" if a > c else "No")', 'a,b = map(int,input().split())\nlis = list(map(int,input().split()))\nc = sum(lis)\nprint("No" if a > c else "Yes")']
['Runtime Error', 'Accepted']
['s928708144', 's453964942']
[10220.0, 20432.0]
[26.0, 49.0]
[110, 112]
p02784
u345483150
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["h,n=map(int,input().split())\na=list(map(int,input().split())\nif sum(a)>=h:\n \tprint('YES')\nelse:\n print('NO')\n", "h,n=map(int,input().split())\nl = [int(input()) for i in range(n)]\n \nif sum(l)>=h:\n print('Yes')\nelse:\n print('No')", "h=int(input())\nn=int(input())\nl = [int(input()) for i in range(n)]\n \nif sum(l)>=h:\n print('Yes')\nelse:\n print('No')", "h,n=map(int,input().split())\na=list(map(int,input().split())\nif sum(a)>=h:\n \tprint('Yes')\nelse:\n print('No')\n", "h,n=map(int,input().split())\nl=[]\nfor i in range(n):\n l.append(int(input()))\n \nif sum(l)>=h:\n print('Yes')\nelse:\n print('No')", "h,n=map(int,input().split())\nl=[]\nfor i in range(n):\n a=int(input())\n l.append(a)\nif sum(l)>=h:\n print('Yes')\nelse:\n print('No')", 'h, n = map(int, input().split())\na = list(map(int, input().split()))\nat = sum(a)\n \nif at >= h:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s230582419', 's451536941', 's545577560', 's602217169', 's629974345', 's657344411', 's680644400']
[2940.0, 4260.0, 3060.0, 2940.0, 4468.0, 4468.0, 13964.0]
[17.0, 21.0, 17.0, 17.0, 20.0, 21.0, 41.0]
[121, 117, 118, 121, 129, 132, 133]
p02784
u349444371
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['H,N=map(int,input().split())\nA=[int(input()) for i in range(N)]\n\nif sum(A)>=H:\n print("Yes")\nelse:\n print("No")', 'H,N=map(int,input().split())\nA=[input() for i in range(N)]\nB=[]\nfor i in range(N):\n a=int(A[i])\n B.append(a)\nif sum(B)>=H:\n print("Yes")\nelse:\n print("No")', 'H,N=map(int,input().split())\nA=input().split()\nB=[]\nfor i in range(N):\n a=int(A[i])\n B.append(a)\nif sum(B)>=H:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s601753249', 's841095582', 's156989089']
[4260.0, 4260.0, 14016.0]
[21.0, 18.0, 64.0]
[113, 159, 147]
p02784
u350997995
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['H,N = map(int,input().split())\nA = list(map(int,input().split()))\nif sum(A)>=H:print("yes")\nelse:print("No")', 'H,N = map(int,input().split())\nA = list(map(int,input().split()))\nif sum(A)>=H:print("yes")\nelse:print("No")H,N = map(int,input().split())\nA = list(map(int,input().split()))\nif sum(A)>=H:print("yes")\nelse:print("No")', 'H,N = map(int,input().split())\nA = list(map(int,input().split()))\nif sum(A)>=H:print("Yes")\nelse:print("No")']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s368963191', 's668802912', 's508455348']
[13964.0, 2940.0, 14020.0]
[43.0, 18.0, 41.0]
[108, 216, 108]
p02784
u357230322
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['h,n=map(int,input().split())\na=list(map(int,input().split()))\nx=0\nfor i in range(n):\n x+=a[i]\nprint(x)', 'h,n=map(int,input().split())\na=list(map(int,input().split()))\nx=0\nfor i in range(n):\n x+=a[i]\nif x>=h:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s120193370', 's443143846']
[13964.0, 13964.0]
[56.0, 55.0]
[103, 138]
p02784
u357630630
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['H,_=map(int,input().split())\nif H <= list(map(int,input().split())):\n print("Yes")\nelse:\n print("No")', 'H, _ = map(int, input().split())\nif H <= sum(map(int, input().split())):\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Accepted']
['s732138519', 's330607494']
[13964.0, 10132.0]
[39.0, 38.0]
[107, 112]
p02784
u361826811
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["\n\nimport sys\n\n# import itertools\n# import math\n\n# import numpy as np\n\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\n\nH, N,*A = map(int, read().split())\nprint('YES' if H<=sum(A) else 'No')", "\n\nimport sys\n\n# import itertools\n# import math\n\n# import numpy as np\n\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\n\nH, N,*A = map(int, readline().split())\nprint('YES' if H<=sum(A) else 'No')", "\n\nimport sys\n\n# import itertools\n# import math\n\n# import numpy as np\n\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\n\nH, N,*A = map(int, read().split())\nprint('Yes' if H<=sum(A) else 'No')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s238154935', 's900977237', 's064950446']
[11608.0, 2940.0, 11608.0]
[38.0, 18.0, 38.0]
[292, 296, 292]
p02784
u363892646
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["h, n = map(int, input().split())\na = list(map(int, input().split()))\nprint(sum(a))\nif (sum(a) >= h):\n print('Yes')\nelse:\n print('No')", 'h, n = map(int, input().split())\na = list(map(int, input().split()))\nprint("Yes"if sum(a) >= h else "No")']
['Wrong Answer', 'Accepted']
['s625834797', 's529213752']
[13964.0, 13964.0]
[42.0, 41.0]
[139, 105]
p02784
u366886346
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['h,n=map(int,input().split())\na=list(map(int,input().split()))\na.sort(reverse=True)\nif a[0]<h:\n print("No")\nelse:\n print("Yes")\n', 'h,n=map(int,input().split())\na=list(map(int,input().split()))\nb=sum(a)\nif b<h:\n print("No")\nelse:\n print("Yes")\n']
['Wrong Answer', 'Accepted']
['s138713110', 's303150434']
[13964.0, 13964.0]
[74.0, 41.0]
[133, 118]
p02784
u370721525
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
["H, N = map(int, input().split())\na = list(map(int, input().split()))\n\nif H > sum(a):\n print('NO')\nelse:\n print('YES')\n", "H, N = map(int, input().split())\na = list(map(int, input().split()))\na.sort(reverse=True)\n\nif H > sum(a[:N]):\n print('NO')\nelse:\n print('YES')", "H, N = map(int, input().split())\na = list(map(int, input().split()))\n\nif H > sum(a):\n print('No')\nelse:\n print('Yes')\n"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s306362591', 's754949704', 's374167516']
[13960.0, 13964.0, 13964.0]
[42.0, 76.0, 41.0]
[120, 144, 120]
p02784
u372670441
2,000
1,048,576
Raccoon is fighting with a monster. The _health_ of the monster is H. Raccoon can use N kinds of special moves. Using the i-th move decreases the monster's health by A_i. There is no other way to decrease the monster's health. Raccoon wins when the monster's health becomes 0 or below. If Raccoon can win without using the same move twice or more, print `Yes`; otherwise, print `No`.
['H,N=map(int,input().split())\nA=list(map(int,input().split()))\nA.sort()\nA.reverse()\na=0\nfor i in range(N):\n a +=A[i]\nif a<=0:\n print("Yes")\nelse:\n print("No")', 'H,N=map(int,input().split())\nA=list(map(int,input().split()))\na=sum(A)\nif a>=H:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s403973184', 's348673628']
[13964.0, 13964.0]
[88.0, 41.0]
[166, 118]