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
u374004058
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`.
["S = list(map(int, input().split()))\nA = list(map(int, input().split()))\nH , N = S[0], S[1]\nfor i in A:\n N -= i\nif H <= 0:\n print('Yes')\nelse:\n print('No')", "S = list(map(int, input().split()))\nA = list(map(int, input().split()))\nH , N = S[0], S[1]\nfor i in A:\n H -= i\nif H <= 0:\n print('Yes')\nelse:\n print('No')\n"]
['Wrong Answer', 'Accepted']
['s489001590', 's999560959']
[13960.0, 13964.0]
[48.0, 49.0]
[163, 164]
p02784
u374802266
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())\nif sum(list(map(int,input().split())))<h:\n print('Yes')\nelse:\n print('No')", "h,n=map(int,input().split())\nprint('Yes' if sum(list(map(int,input().split())))>=h else 'No')"]
['Wrong Answer', 'Accepted']
['s233962770', 's308226451']
[13964.0, 13964.0]
[42.0, 40.0]
[109, 93]
p02784
u378082660
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 math\n\nh,n = map(int, input().split())\na = list(map(int, input().split()))\n\na_sum = sum(a)\n\nif h <= a_sum:\n print('YES')\nelse:\n print('NO')", "import math\n\nh,n = map(int, input().split())\na = list(map(int, input().split()))\n\na_sum = sum(a)\n\nif h <= a_sum:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s342251079', 's767463817']
[14012.0, 14092.0]
[42.0, 44.0]
[151, 151]
p02784
u379959788
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()))\nif sum(A) >= H:\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Accepted']
['s281030020', 's081502587']
[13964.0, 14016.0]
[41.0, 40.0]
[137, 124]
p02784
u394352233
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()\nlis = list(map(int,input().split())\nA =sum(lis)\nif H > A:\n print("No")\nelse:\n print("Yes")', 'H, N = input().split()\nH = int(H)\n#print(H)\n#H, N = input().split()\nlis = list(map(int,input().split()))\nA =sum(lis)\nif H > A:\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Accepted']
['s201499571', 's158756864']
[2940.0, 13964.0]
[17.0, 41.0]
[119, 165]
p02784
u396210538
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`.
['from sys import stdin\n\n# S,T = stdin.readline().rstrip().split()\nH,N = [int(x) for x in stdin.readline().rstrip().split()]\ns = list(map(int,input().split()))\n\nif H>sum(s):\n print("NO")\nelse :\n print("YES")\n', 'from sys import stdin\n\n# S,T = stdin.readline().rstrip().split()\nH,N = [int(x) for x in stdin.readline().rstrip().split()]\ns = list(map(int,input().split()))\n\nif H>sum(s):\n print("No")\nelse :\n print("Yes")\n']
['Wrong Answer', 'Accepted']
['s962945654', 's890860712']
[13964.0, 13964.0]
[41.0, 40.0]
[208, 208]
p02784
u405080602
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 math\n\ndef resolve():\n\n H,N=map(int,input().split())\n\n A=list(map(int,input().split()))\n\n if sum(A)>=H:\n print("Yes")\n else:\n print(\'No\')\n\n\nimport sys\nfrom io import StringIO\nimport unittest\n\nclass TestClass(unittest.TestCase):\n def assertIO(self, input, output):\n stdout, stdin = sys.stdout, sys.stdin\n sys.stdout, sys.stdin = StringIO(), StringIO(input)\n resolve()\n sys.stdout.seek(0)\n out = sys.stdout.read()[:-1]\n sys.stdout, sys.stdin = stdout, stdin\n self.assertEqual(out, output)\n def test_入力例_1(self):\n input = """10 3\n4 5 6"""\n output = """Yes"""\n self.assertIO(input, output)\n def test_入力例_2(self):\n input = """20 3\n4 5 6"""\n output = """No"""\n self.assertIO(input, output)\n def test_入力例_3(self):\n input = """210 5\n31 41 59 26 53"""\n output = """Yes"""\n self.assertIO(input, output)\n def test_入力例_4(self):\n input = """211 5\n31 41 59 26 53"""\n output = """No"""\n self.assertIO(input, output)\n\nif __name__ == "__main__":\n unittest.main()', '\n \n H,N=map(int,input().split())\n\n A=list(map(int,input().split()))\n\n if sum(A)>=H:\n print("Yes")\n else:\n print(\'No\')', 'H,N=map(int,input().split())\n\nA=list(map(int,input().split()))\n\nif sum(A)>=H:\n print("Yes")\nelse:\n print(\'No\')']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s171578616', 's974094269', 's058556868']
[5928.0, 2940.0, 13964.0]
[51.0, 17.0, 41.0]
[1152, 138, 116]
p02784
u406405116
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)\na = [int(input()) for i in range(n) ]\nif sum(a) >= h:\n print(\'Yes\')\nelse:\n print(\'No\')', 'h, n = input().split(" ")\nh = int(h)\nn = int(n)\na = input().split(" ")\na = [int(x) for x in a]\nif sum(a) >= h:\n print(\'Yes\')\nelse:\n print(\'No\')']
['Runtime Error', 'Accepted']
['s714986142', 's773888563']
[4468.0, 13788.0]
[21.0, 43.0]
[136, 145]
p02784
u407567153
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,number=map(int,input().split())\na=list(map(int, input().split()))\n\ni=0\nattack=0\n\nwhile True:\n attack=attack+a[i]\n i=i+1\n if i==number:\n break\n\nif attack>=HP:\n print('True')\nelse:print('失敗!')", "HP,number=map(int,input().split())\na=list(map(int, input().split()))\n\ni=0\nattack=0\n\nwhile True:\n attack=attack+a[i]\n i=i+1\n if i==number:\n break\n\nif attack>=HP:\n print('Yes')\nelse:print('No')"]
['Wrong Answer', 'Accepted']
['s666717393', 's215008961']
[13964.0, 13964.0]
[61.0, 62.0]
[206, 198]
p02784
u408375121
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(' '))\nsum = 0\nfor i in range(N):\n damage = int(input())\n sum += damage\n \nif sum >= H:\n print('Yes')\nelse:\n print('No')\n ", "H, N = map(int, input().split(' '))\nnumlist = input().split(' ')\ncount = 0\nfor num in numlist:\n count += int(num)\n \nif count >= H:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s845185684', 's668979170']
[4260.0, 9944.0]
[20.0, 59.0]
[156, 167]
p02784
u414048826
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 math\nh, n = map(int, input().split())\nattack_list = list(map(int, input().split()))\ndamage = 0\nfor attack in attack_list:\n damage += attack\n if damage > h:\n print('Yes')\nprint('No')", "import math\nh, n = map(int, input().split())\nattack_list = list(map(int, input().split()))\ndamage = 0\nfor attack in attack_list:\n damage += attack\n if damage >= h:\n print('Yes')\nprint('No')", "import math\nh, n = map(int, input().split())\nattack_list = list(map(int, input().split()))\ndamage = 0\nfor attack in attack_list:\n damage += attack\n if damage >= h:\n print('Yes')\n exit()\nprint('No')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s193844073', 's839686269', 's015535380']
[14088.0, 14012.0, 14012.0]
[62.0, 63.0, 53.0]
[193, 194, 205]
p02784
u417254762
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\ns=0\n\nfor i in range(N):\n s+=A[i]\nif(s>=H):\n print(Yes)\nelse:\n print(No)\n', 'H, N = map(int, input().split())\nA = list(map(int, input().split()))\n\ns=0\n\nfor i in range(N):\n s+=A[i]\nif(s>=H):\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Accepted']
['s816070327', 's596525434']
[13964.0, 13964.0]
[55.0, 55.0]
[151, 155]
p02784
u419963262
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()\nA=list(map(int,input().split()))\nh=int(H)\nfor i in range(int(N)):\n if h-A[i]>0:\n h-=A[i]\nif h>0:\n print("No")\nelse:\n print("Yes")', 'H,N=input().split()\nA=list(map(int,input().split()))\nh=int(H)\nfor i in range(int(N)):\n h-=A[i]\nif h>0:\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Accepted']
['s714891865', 's462334328']
[13960.0, 13964.0]
[67.0, 55.0]
[155, 138]
p02784
u422272120
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())\nn_list = [int(i) for i in input().split()] \n\natk = 0\nn_list.sort()\nfor i in range(n):\n h = h - n_list[i]\n if h <= 0:\n print ("yes")\n exit (0)\n\nprint ("No")\n', 'h, n = map(int, input().split())\nn_list = [int(i) for i in input().split()] \nn_list.sort()\n\nfor dmg in n_list:\n h = h - dmg\n if h <= 0:\n print ("Yes")\n exit (0)\n\nprint ("No")']
['Wrong Answer', 'Accepted']
['s195498334', 's924366207']
[13836.0, 13964.0]
[96.0, 89.0]
[209, 194]
p02784
u427571081
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`.
['k,n=map(int,input().split())\na=list(map(int,intput().split()))\nif sum(a)>=k:\n print("Yes")\nelse:\n print("No")', 'k,n=map(int,input().split())\na=list(map(int,input().split()))\nif sum(a)>=k:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s995130493', 's006295298']
[3060.0, 13964.0]
[17.0, 40.0]
[111, 110]
p02784
u429029348
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())\ndamage=sum(a)\nif damage>=h:\n print("Yes")\nelse:\n print("No")', 'h,n=map(int,input().split())\na=list(map(int,input().split()))\ndamage=sum(a)\nif damage>=h:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s574834322', 's414478010']
[3064.0, 14020.0]
[17.0, 41.0]
[127, 128]
p02784
u430336181
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\nSA = sum(A)\nprint(H - SA)\n\nif H <= SA:\n print("Yes")\n\nelif H > SA:\n print("No")', 'H, N = map(int, input().split())\nA = list(map(int, input().split()))\n\nSA = sum(A)\nprint(SA)\nif H // SA > 1:\n print("No")\nelse:\n print("Yes")', 'H, N = map(int, input().split())\nA = list(map(int, input().split()))\n\nSA = sum(A)\nprint(H - SA)\n\nif H - SA <= 0:\n print("Yes")\n\nelif H - SA > 0:\n print("No")', 'H, N = map(int, input().split())\nA = list(map(int, input().split()))\n\nSA = sum(A)\nprint(SA)\nif H //SA >= 0:\n print("No")\nelse:\n print("Yes")', 'H, N = map(int, input().split())\nA = list(map(int, input().split()))\n\nSA = sum(A)\n\n\nif H <= SA:\n print("Yes")\n\nelif H > SA:\n print("No")']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s217012635', 's411991940', 's480840953', 's786850561', 's417691387']
[13964.0, 13964.0, 13964.0, 13964.0, 13964.0]
[40.0, 41.0, 41.0, 41.0, 40.0]
[155, 146, 163, 146, 142]
p02784
u434296044
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`.
['def main():\n H,N=map(int,input().split())\n\n have=list(map(int,input().split()))\n cal=0\n\n for i in have:\n cal+=i\n if cal>=H:\n print("YES")\n return\n\n print("NO")\n return\n\n\nmain()\n', 'def main():\n H,N=map(int,input().split())\n\n have=list(map(int,input().split()))\n cal=0\n\n for i in have:\n cal+=i\n if cal>=H:\n print("YES")\n return\n\n print("NO")\n return\n\n\nmain()\n', 'def main():\n H,N=map(int,input().split())\n\n have=list(map(int,input().split()))\n cal=0\n\n for i in have:\n cal+=i\n if cal>=H:\n print("Yes")\n return\n\n print("No")\n return\n\n\nmain()\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s145741034', 's248632294', 's568079050']
[13964.0, 13964.0, 13964.0]
[45.0, 46.0, 45.0]
[231, 231, 231]
p02784
u436611990
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()\nA = []\nA = input().split()\n\nif int(H)-sum(A) <=0:\n print("Yes")\nelse:\n print("No")', 'H, N = input().split()\nA = list(input().split())\n\nif int(H)-sum(A) <=0:\n print("Yes")\nelse:\n print("No")', 'H, N = input().split()\nA = list(map(,int input().split()))\n\nif int(H)-sum(A) <=0:\n print("Yes")\nelse:\n print("No")', 'H, N = input().split()\nA = input().split()\n\nif int(H)-sum(A) <=0:\n print("Yes")\nelse:\n print("No")', 'H, N = input().split()\nA = list(map(int, input().split()))\n\nif int(H)-sum(A) <=0:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s310697743', 's344813535', 's371761882', 's665539767', 's495810601']
[10708.0, 10420.0, 2940.0, 10132.0, 13964.0]
[28.0, 26.0, 17.0, 28.0, 41.0]
[111, 110, 120, 104, 120]
p02784
u442877951
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,A = list(map(int, input().split()))\nfor i in A[N]:\n if H <= 0:\n break\n else:\n H -= A[i]\nif set(A):\n print("Yes")\nelse:\n print("No")', 'H,N = map(int, input().split())\nA = list(map(int, input().split()))\ndamage = sum(A)\nif damage >= H:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s135671180', 's434773369']
[3060.0, 13964.0]
[17.0, 41.0]
[145, 134]
p02784
u449108605
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 = map(int,input().split())\nAi = map(int, input().split())\n \nif sum(A) >= H:\n print('Yes')\nelse:\n print('No')", "H,N = map(int,input().split())\nAi = map(int, input().split())\n \nif sum(Ai) >= H:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s464594370', 's233356614']
[2940.0, 10132.0]
[18.0, 37.0]
[113, 115]
p02784
u450147945
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)\n\nA = input().split()\n\nif sum(A)>=H:\n print('Yes')\nelse:\n print('No')", "H, N = input().split()\nH = int(H)\nN = int(N)\nA = input().split()\nA = list(map(int, A))\n\nif sum(A)>=H:\n print('Yes')\nelse:\n print('No')\n"]
['Runtime Error', 'Accepted']
['s141159868', 's800680109']
[10132.0, 13964.0]
[25.0, 41.0]
[115, 137]
p02784
u464689569
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=int(input())\nskill=int(input())\nfor i in range(skill):\n damage=int(input())\n enemy=enemy-damage\nif(enemy<=0):\n print("Yes")\nelse:\n print("No")\n', 'enemy,skill=map(int,input().split())\nfor i in range(skill):\n damage=int(input())\n enemy=enemy-damage\nif(enemy<=0):\n print("Yes")\nelse:\n print("No")\n', 'enemy,skill=map(int,input().split())\ndamage=map(int,input().split())\nif(enemy-sum(damage)<=0):\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s352128733', 's639851871', 's686107007']
[3060.0, 4260.0, 9944.0]
[17.0, 21.0, 37.0]
[161, 160, 134]
p02784
u467041847
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()))\ni = 0\nwhile (i < n):\n if(a[i] <= 0):\n print("Yes")\n break\n else:\n i += 1\nprint("No")', 'h, n = list(map(int, input().split()))\na = list(map(int, input().split()))\ni = 0\nwhile (i < n):\n if(a[i] <= 0):\n print("Yes")\nprint("No")', 'h, n = list(map(int, input().split()))\na = list(map(int, input().split()))\nanswer = "No"\ni = 0\nwhile (i < n):\n if(a[i] <= 0):\n answer = "Yes"\n break\n else:\n i += 1\nprint(answer)', 'h, n = list(map(int, input().split()))\na = list(map(int, input().split()))\nanswer = "No"\ni = 0\nwhile (i < n):\n h -= a[i]\n if(h <= 0):\n answer = "Yes"\n break\n else:\n i += 1\nprint(answer)\n']
['Wrong Answer', 'Time Limit Exceeded', 'Wrong Answer', 'Accepted']
['s014825521', 's167181092', 's580637086', 's709929303']
[13964.0, 13964.0, 13964.0, 13964.0]
[57.0, 2104.0, 56.0, 68.0]
[170, 141, 188, 198]
p02784
u471217476
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 math\nn,k=map(int,input().split())\nl=list(map(int,input().split()))\nif sum(l)>=n:\n print("YES")\nelse:\n print("NO")\n', "import math\nn,k=map(int,input().split())\nl=list(map(int,input().split()))\nif sum(l)>=n:\n print('Yes')\nelse:\n print('No')\n"]
['Wrong Answer', 'Accepted']
['s207090835', 's401073777']
[14012.0, 14012.0]
[41.0, 41.0]
[127, 127]
p02784
u483304397
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()\nA = list(int(input().split()))\nA = [int(a) for a in A]\nif H > sum(A):\n print('No')\nelse:\n print('Yes')", "H, N = input().split()\nA = list(input().split())\nH = int(H)\nN = int(N)\nA = [int(a) for a in A]\nif H > sum(A):\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s882871837', 's421190495']
[9944.0, 13492.0]
[25.0, 45.0]
[131, 148]
p02784
u488272873
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\nans = None\n\nfor a in A:\n sum = sum + a\n if H < a:\n ans = "Yes"\n break\nif H > sum and ans == None:\n ans = "No"\n\nprint(ans)\n', 'H,N = map(int, input().split())\nA = list(map(int, input().split()))\n\nsum = 0\nans = None\n\nfor a in A:\n sum = sum + a\n if H < a:\n ans = "Yes"\n break\nif H > sum and ans == None:\n ans = "No"\nelse:\n ans = "Yes"\n\nprint(ans)']
['Wrong Answer', 'Accepted']
['s494785648', 's552400311']
[13964.0, 13964.0]
[54.0, 54.0]
[222, 243]
p02784
u488925368
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, atk = input().split()\n\nhp = int(hp)\natk = int(atk)\n\nnumlist = list((input().split()))\n\nnumlist = list(map(int, numlist))\n\nnumlist = sorted(numlist, reverse=True)\n\nprint(numlist)\n\nfor i in range(atk):\n value = 0\n value = value + numlist[i]\n if value > hp:\n print("Yes")\n break\n else:\n print("No")\n break', 'hp, atk = input().split()\n\nhp = int(hp)\natk = int(atk)\n\nvalue = 0\n\nnumlist = list((input().split()))\n\nnumlist = list(map(int, numlist))\n\nnumlist = sorted(numlist, reverse=True)\n\nfor i in range(atk):\n value = value + numlist[i]\n if value > hp:\n print("Yes")\n else:\n if i+1 == atk:\n print("No")\n else:\n continue', 'hp, atk = input().split()\n\nhp = int(hp)\natk = int(atk)\n\nnumlist = list((input().split()))\n\nnumlist = list(map(int, numlist))\n\nnumlist = sorted(numlist, reverse=True)\n\nfor i in range(atk):\n value = 0\n value = value + numlist[i]\n if value > hp:\n print("Yes")\n break\n else:\n print("No")\n break', 'import math\n\nhp, atk = input().split()\n\nhp = int(hp)\natk = int(atk)\n\nnumlist = list((input().split()))\n\nnumlist = list(map(int, numlist))\n\nfor i in range(atk):\n value = 0\n value = value + numlist[i]\n\nif value > hp:\n print("Yes")\nelse:\n print("No")', 'hp, atk = input().split()\n\nhp = int(hp)\natk = int(atk)\n\nvalue = 0\n\nnumlist = list((input().split()))\n\nnumlist = list(map(int, numlist))\n\nprint(numlist)\n\nfor i in range(atk):\n value = value + numlist[i]\n\nif value > hp:\n print("Yes")\nelse:\n print("No")', 'hp, atk = input().split()\n\nhp = int(hp)\natk = int(atk)\n\nvalue = 0\n\nnumlist = list((input().split()))\n\nnumlist = list(map(int, numlist))\n\nfor i in range(atk):\n value = value + numlist[i]\n\nif value >= hp:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s049050298', 's314323704', 's457392365', 's465188867', 's744355789', 's838435821']
[13492.0, 14016.0, 13196.0, 14012.0, 13492.0, 14020.0]
[84.0, 104.0, 75.0, 58.0, 63.0, 55.0]
[346, 361, 330, 259, 259, 244]
p02784
u491330513
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 ('Yse')\nelse:\n print ('No')", 'H, N = map(int, input().split())\nA = list(map(int, input().split()))\n\nif H <= sum(A):\n print ("Yse")\nelse:\n print ("No")', 'H, N = map(int, input().split())\nA = list(map(int, input().split()))\n\nif sum(A) >= H:\n print ("Yse")\nelse:\n print ("No")\n', '\n#a,b = map(int, input().split())\nimport math\nif __name__ == "__main__":\n\n H, N = map(int, input().split())\n A = list(map(int, input().split()))\n\n allAttack = 0\n for i in A:\n allAttack += i\n \n if allAttack > H:\n print ("Yse")\n else:\n print ("No")\n\n ', "H, N = map(int, input().split())\nA = list(map(int, input().split()))\nif H <= sum(A):\n print ('Yse')\nelse:\n print ('No')", '\n#a,b = map(int, input().split())\nimport math\nif __name__ == "__main__":\n\n H, N = map(int, input().split())\n A = list(map(int, input().split()))\n\n if sum(A) > H:\n print ("Yse")\n else:\n print ("No")\n\n ', "H, N = map(int, input().split())\nA = list(map(int, input().split()))\nif H <= sum(A):\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s098537052', 's499599772', 's665212558', 's674157830', 's681400896', 's880609280', 's951229590']
[13964.0, 13964.0, 14016.0, 14012.0, 13960.0, 14012.0, 13964.0]
[41.0, 42.0, 41.0, 49.0, 41.0, 41.0, 40.0]
[126, 126, 127, 294, 125, 229, 119]
p02784
u492999896
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`.
['inp1 =input().split(" ")\nHP,N= int(inp1[0]),int(inp1[1])\n\ninp2 = input().split(" ")\n\nATK = 0\nfor x in range(N):\n ATK += int(inp2[x])\n \nif HP <= ATK:\n print("YES")\nelse:\n print("NO")', 'inp1 =input().split(" ")\nHP,N= int(inp1[0]),int(inp1[1])\n\ninp2 = input().split(" ")\n\nATK = 0\nfor x in range(N):\n ATK += int(inp2[x])\n \nif HP <= ATK:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s874020570', 's943106110']
[10712.0, 10420.0]
[57.0, 63.0]
[185, 185]
p02784
u499106786
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(" ")\nA = list(map(int, input().split()))\nif sum(A) < H:\n print("No")\nelse:\n print("Yes")', 'H, N = input().split(" ")\nA = input()\nif sum(A) < H:\n print("No")\nelse:\n print("Yes")', 'H, N = input().split(" ")\nA = input()\nA = [int(a) for a in A]\nif sum(A) < H:\n print("No")\nelse:\n print("Yes")', 'H, N = input().split(" ")\nA = list(map(int, input().split()))\nif sum(A) < int(H):\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s446017073', 's758271481', 's940785326', 's680748721']
[13964.0, 4260.0, 4468.0, 13964.0]
[42.0, 19.0, 18.0, 42.0]
[111, 87, 111, 116]
p02784
u501451051
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, A = map(int, input().split())\n\nsa = list(map(int, input().split()))\nprint(sa)\n\ncounter = 0\n\nwhile H > 0:\n for i in sa:\n H = H - i\n counter += 1\n\nif counter >= len(sa):\n print("YES")\nelse:\n print("NO")', 'H, A = map(int, input().split())\n\nsa = list(map(int, input().split()))\n\n\nwhile H > 0:\n for i in sa:\n H = H - i\n\n if H > 0:\n break\n\nif H <= 0:\n print("YES")\nelse:\n print("NO")', 'H, A = map(int, input().split())\n\nsa = list(map(int, input().split()))\n\ncounter = 0\n\nwhile H > 0:\n for i in sa:\n H = H - sa\n counter += 1\n\nif counter >= len(sa):\n print("YES")\nelse:\n print("NO")', 'H, A = map(int, input().split())\n\nsa = list(map(int, input().split()))\n\nfor i in sa:\n H = H - i\n\nif H <= 0:\n print("YES")\nelse:\n print("NO")', 'H, A = map(int, input().split())\n\nsa = list(map(int, input().split()))\n\nfor i in sa:\n H = H - i\n\nif H <= 0:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s338978348', 's441945736', 's662793937', 's804617450', 's277593371']
[13964.0, 14016.0, 13964.0, 14016.0, 13964.0]
[74.0, 48.0, 40.0, 49.0, 48.0]
[212, 184, 203, 143, 143]
p02784
u507113442
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\u3000=\u3000input().split()\n \nprint(min(a*int(b),b*(int(a)))', 'a,b = input().split()\n \nprint(min(a*int(b),b*int(a) ) )\n \n', 'a,b = input().split()\n \nprint(min(a*int(b),b*int(a) ) )\n', 'a,b =\u3000input().split()\n \nprint(min(a*int(b),b*(int(a) ) )', 'a,b=map(int,input().split())\ns=sum(map(int,input().split()))\nprint("Yes" ifs>=a else "No")', 'a,b=map(int,input().split())\ns=sum(map(int,input().split()))\nprint("Yes" if s>=a else "No")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s174332585', 's462915426', 's637740610', 's861624370', 's952133369', 's880947362']
[2940.0, 1679600.0, 1679600.0, 2940.0, 3068.0, 10132.0]
[17.0, 1594.0, 1144.0, 17.0, 17.0, 37.0]
[58, 63, 56, 58, 90, 91]
p02784
u508061226
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);\n\nA = list(map(int, input().split()));\n\nif sum(A) > h:\n print("No");\nelse:\n print("Yes");\n', 'h, n = input().split;\nh = int(h);\nn = int(n);\n\nA = list(map(int, input().split()));\n\nif sum(A) > h:\n print("No");\nelse:\n print("Yes");', 'h, n = input().split();\nh = int(h);\nn = int(n);\n\nA = list(map(int, input().split()));\n\nif sum(A) >= h:\n print("Yes");\nelse:\n print("No");\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s097715897', 's532106466', 's191034472']
[14092.0, 3060.0, 13964.0]
[42.0, 17.0, 41.0]
[139, 136, 140]
p02784
u508934152
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\nAt = 0\nfor i in range(N):\n At += A[i]\n \nif At >= H:\n print('Yes')\nelse:\n print('No')", "H, N = map(int, input().split())\nA = input().split()\n\nAt = 0\nfor i in range(N):\n At += int(A[i])\n \nif At >= H:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s595230856', 's476978071']
[10580.0, 10132.0]
[27.0, 70.0]
[142, 147]
p02784
u509392332
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())\nAi = list(map(int,input().split()))\nAi_sum = sum(Ai)\nif Ai_sum >= H:\n print('YES')\nelse:\n print('NO')", "H, N = map(int,input().split())\nAi = list(map(int,input().split()))\nAi_sum = sum(Ai)\nif Ai_sum >= H:\n print('YES')\nelse:\n print('NO')", "H, N = map(int,input().split())\nAi = list(map(int,input().split()))\nAi_sum = sum(Ai)\nif Ai_sum >= H:\n print('YES')\nelse:\n print('NO')", "H, N = map(int,input().split())\nAi = list(map(int,input().split()))\nAi_sum = sum(Ai)\nif Ai_sum >= H:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s152101007', 's152673385', 's716780440', 's676695060']
[13964.0, 13964.0, 13964.0, 13964.0]
[41.0, 40.0, 41.0, 42.0]
[139, 139, 139, 139]
p02784
u510434738
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)\nA= input()\ntotal=0\nfor i in A:\n total += int(i)\nif total >= H:\n print("Yes")\nelif total < H:\n print("No")', 'H, N = input().split()\nH = int(H)\nN = int(N)\nA= input().split()\ntotal=0\nfor i in A:\n total += int(i)\nif total >= H:\n print("Yes")\nelif total < H:\n print("No")']
['Runtime Error', 'Accepted']
['s729250795', 's349184920']
[4468.0, 11996.0]
[18.0, 50.0]
[159, 167]
p02784
u510582860
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\nH,N=map(int,input().split())\nA=map(int,input().split())\ns=0\nfor i in range(N):\n s+=A[i]\n if s>=H:\n print('Yes')\n sys.exit()\nprint('No')", "H,N=map(int,input().split())\nA=list(map(int,input().split()))\ns=0\nflg=True\nfor i in range(N):\n s+=A[i]\n if s>=H:\n print('Yes')\n flg=False\n break\nif flg:\n\tprint('No')\n"]
['Runtime Error', 'Accepted']
['s346885223', 's847496696']
[16544.0, 20424.0]
[35.0, 65.0]
[154, 177]
p02784
u516927307
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())\nif sum(a)>=h:\n print("Y")\nelse:\n print("N")', 'h, n = map(int, input().split())\na = map(int, input().split())\nif sum(a)>=h:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s217512039', 's208244807']
[10708.0, 10132.0]
[37.0, 37.0]
[108, 111]
p02784
u521602455
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 = list(map(int, input().split()))\nH = X[0]\nA = X[2:]\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']
['s150123100', 's953315235']
[3060.0, 13964.0]
[18.0, 41.0]
[107, 97]
p02784
u522293645
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\n\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\n\nfor i in range(n):\n sum += a[i]\n\nif h <= sum:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s372120455', 's604602716']
[13964.0, 13964.0]
[54.0, 56.0]
[161, 161]
p02784
u523764640
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 math\n\n h, n = map(int, input().split())\n a = map(int, input().split())\n if h - sum(a) > 0:\n print("No")\n else:\n print("Yes")', 'import math\n \nh, n = map(int, input().split())\na = map(int, input().split())\nif h - sum(a) > 0:\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Accepted']
['s515686565', 's505942797']
[2940.0, 10132.0]
[17.0, 37.0]
[161, 134]
p02784
u526818929
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")', 'H, N = 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']
['s340114897', 's704201131']
[8836.0, 20480.0]
[30.0, 51.0]
[124, 124]
p02784
u529106146
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 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')"]
['Wrong Answer', 'Accepted']
['s681916507', 's570856411']
[13964.0, 13964.0]
[41.0, 43.0]
[136, 122]
p02784
u529500825
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 = list(map(int, input().split()))\nA = list(map(int, input().split()))\nfor i in range(H[1]):\n H[0]= H[0] -A[i]\nif H[0] =< 0:\n print('Yes')\nelse:\n print('No')", "H, N = map(int, input().split())\nA = list(map(int, input().split()))\nfor i in range(N):\n H = H -A[i]\nif H =< 0:\n print('Yes')\nelse:\n print('No')", "H = list(map(int, input().split()))\nA = list(map(int, input().split()))\nfor i in range(H[1]):\n H[0]= H[0] -A[i]\nif H[0] <= 0:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s444465345', 's745906009', 's975596471']
[3064.0, 3064.0, 13964.0]
[17.0, 17.0, 60.0]
[167, 153, 167]
p02784
u530883476
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(int(input()))\ncount= 0\nfor i in range (B):\n\tcount=count+C[i]\nif count<=A:\n\tprint("Yes")\nelse: print("No")', 'A,B=map(int,input().split())\nC=list(input().split())\ncount= 0\nfor i in range (B):\n\tcount=count+int(C[i])\nif count>=A:\n\tprint("Yes")\nelse: print("No")']
['Runtime Error', 'Accepted']
['s993581502', 's126804752']
[4260.0, 10420.0]
[21.0, 55.0]
[142, 149]
p02784
u534634083
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()\na = input().split()\nvalue = int(sorted(a)[-1]) + int(sorted(a)[-2])\nresult = 'yes' if value >= int(h) else 'no'\nprint(result)", 'H,N = map(int,input().split())\n\nA = input().split()\n\nresult = 0\n\nfor i in range(N):\n result += int(A[i])\n\nif H - result <= 0:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s648430699', 's799157372']
[10844.0, 10552.0]
[132.0, 56.0]
[147, 167]
p02784
u540841127
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(H < sum(A))', 'H,N = map(int,input().split())\nA = list(map(int,input().split()))\nif H > sum(A):\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Accepted']
['s263427179', 's724484205']
[13964.0, 13964.0]
[41.0, 41.0]
[83, 115]
p02784
u540912766
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()))\nsum = 0\n\nfor i in range(N):\n sum += A[i]\n\nif (H - sum) >= 0:\n print("Yes")\nelse:\n print("No")', 'H, N = map(int, input().split())\nA = list(map(int,input().split()))\nsum = 0\n\nfor i in range(N):\n sum += A[i]\n\nif (H - sum) <= 0:\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Accepted']
['s086170304', 's903447550']
[20536.0, 20504.0]
[58.0, 60.0]
[170, 171]
p02784
u541551314
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, _ = map(int, input().split(" "))\ns = sum(map(int, input().split(" ")))\nreturn (hp - s) <= 0', 'hp, _ = map(int, input().split(" "))\ns = sum(map(int, input().split(" ")))\nprint("Yes" if (hp - s) <= 0 else "No")\n']
['Runtime Error', 'Accepted']
['s361353809', 's285830017']
[2940.0, 10420.0]
[17.0, 38.0]
[95, 115]
p02784
u543000780
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")\n']
['Wrong Answer', 'Accepted']
['s468983326', 's710017718']
[20448.0, 20512.0]
[54.0, 50.0]
[115, 117]
p02784
u545221414
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\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\n']
['Wrong Answer', 'Accepted']
['s779191156', 's577194182']
[13964.0, 13964.0]
[40.0, 42.0]
[125, 125]
p02784
u547167033
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())\na = list(map(int,input().split()))\nprint('Yes' if sum(a)>=h else 'No')", "h,n=map(int,input().split())\na = list(map(int,input().split()))\nprint('Yes' if sum(a)>=h else 'No')\n"]
['Runtime Error', 'Accepted']
['s464203089', 's673701347']
[3060.0, 13964.0]
[17.0, 41.0]
[91, 100]
p02784
u552176911
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, a = map(int, input().split(" "))\naL = list(map(int, input().split(" ")))\n\nif sum(aL) <= a:\n print("Yes")\n exit()\nprint("No")', 'h, a = map(int, input().split(" "))\naL = list(map(int, input().split(" ")))\n\nif sum(aL) <= h:\n print("Yes")\n exit()\nprint("No")', 'h, a = map(int, input().split(" "))\naL = list(map(int, input().split(" ")))\n\nif sum(aL) >= h:\n print("Yes")\n exit()\nprint("No")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s470093533', 's528579923', 's908949684']
[13964.0, 13964.0, 13964.0]
[40.0, 41.0, 41.0]
[133, 133, 133]
p02784
u553824105
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\tprint("No")', 'H, N= map(int,input().split())\nA = list(map(int,input().split()))\nif sum(A) >= H:\n\tprint("Yes")\nelse:\n\tprint("No")']
['Wrong Answer', 'Accepted']
['s360654077', 's284578157']
[13964.0, 13964.0]
[41.0, 43.0]
[114, 114]
p02784
u558782626
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())\nskills_sum = sum(map(int, input()))\nprint("Yes" if H-skills_sum <= 0 else "No")', 'H, N = map(int, input().split())\nskills_sum = sum(map(int, input().split()))\nprint("Yes" if H-skills_sum <= 0 else "No")']
['Runtime Error', 'Accepted']
['s109400913', 's402204168']
[3060.0, 10132.0]
[17.0, 37.0]
[104, 120]
p02784
u562550538
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`.
['\na,b=map(int, input().split())\nA = list(map(int, input().split()))\nsum = 0\nfor at in list:\n\tsum += at\n\t\n\t\nif a <= sum:\n\tprint("Yes")\nelse:\n\tprint("No")', '\na,b=map(int, input().split())\nA = list(map(int, input().split())\n\nsum=0\nfor at in list:\n\tsum += at\n\t\n\t\nif a <= sum:\n\tprint("Yes")\nelse:\n\tprint("No")', '\na,b=map(int, input().split())\nA = list(map(int, input().split()))\n\ntotal = 0\nfor at in list:\n\tsum += at\n\t\n\t\nif a <= sum:\n\tprint("Yes")\nelse:\n\tprint("No")', '\na,b=map(int, input().split())\nA = list(map(int, input().split()))\nsum = 0\nfor at in A:\n\tsum += at\n\t\n\t\nif a <= sum:\n\tprint("Yes")\nelse:\n\tprint("No")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s151998504', 's343720874', 's544877491', 's374153987']
[13964.0, 2940.0, 13964.0, 13964.0]
[40.0, 17.0, 40.0, 47.0]
[151, 149, 154, 148]
p02784
u571444155
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\na = sorted(a)\n\nfor i in a:\n h = h - a\n \nif h <= 0:\n print('Yes')\nelse:\n print('No')", "h, n = map(int, input().split())\na = list(map(int, input().split()))\n\na = sorted(a)\n\nfor i in a:\n h = h - a\n \nif h <= 0:\n print('Yes')\nelse:\n print('No)", "h, n = map(int, input().split())\na = list(map(int, input().split()))\n \na = sorted(a)\n \nfor i in a:\n h = h - i\n \nif h <= 0:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s587838962', 's709918193', 's165992972']
[13964.0, 2940.0, 13964.0]
[75.0, 17.0, 85.0]
[156, 155, 158]
p02784
u571608999
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 = input().split()\nL2 = input().split()\nH, N = int(L1[0]), int(L1[1])\n\nd = 0\nfor i in L2:\n d += int(i)\n\nif d < H:\n print("NO")\nelse:\n print("YES")', 'L1 = input().split()\nL2 = input().split()\nH, N = int(L1[0]), int(L1[1])\n\nd = 0\nfor i in L2:\n d += int(i)\n\nif d < H:\n print("NO")\nelse:\n print("YES")', 'L1 = input().split()\nL2 = input().split()\nH, N = int(L1[0]), int(L1[1])\n\nd = 0\nfor i in L2:\n d += int(i)\n\nif d < H:\n print("NO")\nelse:\n print("YES")', 'L1 = input().split()\nL2 = input().split()\nH, N = int(L1[0]), int(L1[1])\n\nd = 0\nfor i in L2:\n d += int(i)\n\nif d < H:\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s028120690', 's235252728', 's693964310', 's986907410']
[9944.0, 10712.0, 10404.0, 10420.0]
[56.0, 51.0, 58.0, 51.0]
[157, 157, 157, 157]
p02784
u571832343
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()))\nl = []\n\nfor i in range(5):\n for j in range(5):\n if a[i] + a[j] >= h:\n l.append(1)\n else:\n l.append(0)\n\nprint('Yes' if sum(l) > 0 else 'No')", "h, n = map(int,input().split())\na = list(map(int,input().split()))\nprint('Yes' if sum(a) >= h else 'No')"]
['Runtime Error', 'Accepted']
['s888362096', 's081239022']
[13964.0, 13964.0]
[42.0, 42.0]
[223, 104]
p02784
u583888880
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\n\nfor i in range(A.length()):\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\nsum = 0\n\nfor i in range(len(A)):\n sum += A[i]\n\nif(sum >= H):\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s754345673', 's106000316']
[13964.0, 13964.0]
[44.0, 58.0]
[175, 171]
p02784
u585348179
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('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')"]
['Wrong Answer', 'Accepted']
['s784641582', 's523519351']
[13964.0, 13964.0]
[41.0, 40.0]
[118, 119]
p02784
u588557741
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("Yss")\nelse:\n print("No")', '\nH,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', 'Accepted']
['s872011288', 's682635678']
[20588.0, 20740.0]
[48.0, 52.0]
[123, 124]
p02784
u588749694
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`.
['S_hn = input().split(" ") \nS_a = input().split(" ") \n\nH = int(S_hn[0]) \nN = int(S_hn[1]) \nA = [] \nfor i in range(N):\n A.append(int(S_a[i]))\n \nif H < sum(A):\n print("YES")\nelse:\n print("NO")', 'S_hn = input().split(" ") \nS_a = input().split(" ") \n\nH = int(S_hn[0]) \nN = int(S_hn[1]) \nA = [] \nfor i in range(N):\n A.append(int(S_a[i]))\n \nif H <= sum(A):\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s044476409', 's120005743']
[13964.0, 14016.0]
[58.0, 59.0]
[288, 289]
p02784
u594862874
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(intput().split())\nA = map(int , input().split())\nprint('Yes' if sum(A)>=H else 'No')", "H, N = map(int, input().split())\nAs = map(int,input().split())\nprint('Yes' if sum(As)>=H else 'No')"]
['Runtime Error', 'Accepted']
['s484701433', 's477921597']
[2940.0, 10132.0]
[18.0, 37.0]
[95, 99]
p02784
u596297663
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, h = map(int, input().split())\na = list(map(int, input().split()))\n\nsum = 0\nfor i in range(n):\n\tsum = sum + a[i]\nif sum >= h :\n\tprint("Yes")\nelse:\n\tprint("No")\n', 'n, h = map(int, input().split())\na = list(map(int, input().split()))\n\nsum = 0\nfor i in range(n):\n\tsum = sum + a[i]\nif sum >= h :\n\tprint("Yes")\nelse:\n\tprint("No")\n', 'h, n = map(int, input().split())\na = list(map(int, input().split()))\n\nsum = 0\nfor i in range(n):\n\tsum = sum + a[i]\nif sum >= h :\n\tprint("Yes")\nelse:\n\tprint("No")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s663058247', 's781030436', 's026037837']
[13960.0, 13964.0, 13964.0]
[55.0, 54.0, 57.0]
[162, 162, 162]
p02784
u597443755
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\ndef main():\n\tH,N=map(int, input().split())\n\tA = [int(_) for _ in input().split()]\n\tif sum(A)>=H:\n\t\tprint('YES')\n\telse:\n\t\tprint('NO')\nmain()", "\n\ndef main():\n\tH,N=map(int, input().split())\n\tA = [int(_) for _ in input().split()]\n\tif sum(A)>=H:\n\t\tprint('Yes')\n\telse:\n\t\tprint('No')\nmain()"]
['Wrong Answer', 'Accepted']
['s777931107', 's263762702']
[13836.0, 13964.0]
[43.0, 43.0]
[176, 176]
p02784
u597456301
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\nimport math\ninput=sys.stdin.readline\n\n\nn,a=map(int,input().split())\narr=list(map(int,input().split()))\nflag=0\nfor i in range(a):\n n=n-arr[i]\n if(n<=0):\n flag=1\nif(flag):\n print("YES")\nelse:\n print("NO")\n\n\n\n', 'import sys\nimport math\ninput=sys.stdin.readline\n\n\nn,a=map(int,input().split())\narr=list(map(int,input().split()))\nflag=0\nfor i in range(a):\n n=n-arr[i]\n if(n<=0):\n flag=1\nif(flag):\n print("Yes")\nelse:\n print("No")\n\n\n\n']
['Wrong Answer', 'Accepted']
['s771627421', 's414077711']
[14040.0, 13984.0]
[57.0, 58.0]
[236, 236]
p02784
u598378638
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())\nna = map(int, input().split())\n\nattack = 0\nfor i in na :\n attack = attack + i\n\nif(hp <= attack):\n ans = 'YES'\nelse:\n ans = 'NO'\n\nprint(ans)", "hp , n = map(int, input().split())\nna = map(int, input().split())\n\nattack = 0\nfor i in na :\n attack = attack + i\n\nif(hp <= attack):\n ans = 'Yes'\nelse:\n ans = 'No'\n\nprint(ans)"]
['Wrong Answer', 'Accepted']
['s398928868', 's953552459']
[10132.0, 10532.0]
[49.0, 54.0]
[183, 183]
p02784
u598696606
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`.
['buf = input().split(" ")\nH=int(buf[0])\nN=int(buf[1])\n\nA = list(map(int, input().split())) \n\nA=sorted(A, reverse=True)\n\nfor i in range(N):\n H=H-A\n\nif H<=0:\n print("Yes")\nelse:\n print("No")\n\n', 'buf = input().split(" ")\nH=int(buf[0])\nN=int(buf[1])\n \nA = list(map(int, input().split())) \n \nA=sorted(A, reverse=True)\n \nfor i in range(N):\n if H<=0:\n break\n H=H-A[i]\n \nif H<=0:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s323802475', 's849867613']
[13964.0, 13964.0]
[74.0, 91.0]
[192, 218]
p02784
u598924163
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()\nfor i in range(n):\n a[i] = int(a[i])\n\n\nif(sum(a) >= h):\n print('YES')\nelse:\n print('NO')\n\n", "h,n = map(int,input().split())\na = input().split()\nfor i in range(n):\n a[i] = int(a[i])\n\n\nif(sum(a) >= h):\n print('Yes')\nelse:\n print('No')\n\n"]
['Wrong Answer', 'Accepted']
['s039592813', 's102252840']
[10132.0, 10552.0]
[55.0, 57.0]
[150, 150]
p02784
u600261652
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())\nPP = sum(map(int, input().split()))\nprint("Yes" if PP>=H else(No))', 'H, N = int(input())\nPP = list(map(int, input().split()))\nprint("Yes" if sum(PP)>=H else(No))', 'def resolve():\n H, N = map(int, input().split())\n A = list(map(int, input().split()))\n print("Yes" if sum(A) >= H else "No")\nresolve()']
['Runtime Error', 'Runtime Error', 'Accepted']
['s004287603', 's834642820', 's627370044']
[3060.0, 3060.0, 13964.0]
[17.0, 17.0, 41.0]
[86, 92, 143]
p02784
u601575292
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\ns = 0\nfor i in range(N):\n a = int(input())\n s += a\n\nif H > s:\n print("No")\nelse:\n print("Yes")', 'H, N = map(int, input().split())\na = input()\n\ns = 0\nfor ai in a:\n a = int(ai)\n s += a\n\nif H > s:\n print("No")\nelse:\n print("Yes")', 'H, N = map(int, input().split())\na = list(map(int, input().split()))\n\ns = 0\nfor i in a:\n s += i\n\nif H > s:\n print("No")\nelse:\n print("Yes")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s568779009', 's878901539', 's849132782']
[4260.0, 4260.0, 13964.0]
[20.0, 20.0, 49.0]
[141, 142, 150]
p02784
u601620345
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 math\na = list(map(int,input().split()))\nb = list(map(int,input().split()))\nif sum(b) >= a[0]\n\tprint("Yes")\nelse\n\tprint("No")\n ', 'import math\na = list(map(int,input().split()))\nb = list(map(int,input().split()))\nif b.sum >= a[0]\n\tprint("yes")\nelse\n\tprint("no")\n\n\t', 'import math\na = [int(input().split()) for l in range(2)]\nif sum(a[1]) >= a[0][0]\n\tprint("Yes")\nelse\n\tprint("No")', 'import math\na = [list(map(int,input().split())) for l in range(2)]\nif sum(a[1]) >= a[0][0]\n\tprint("Yes")\nelse\n\tprint("No")', 'import math\na = [int(input()).split() for l in range(2)]\nif sum(a[1]) >= a[0][0]\n\tprint("Yes")\nelse\n\tprint("No")', 'import math\na = [input().split() for l in range(3)]\nif sum(a[1]) >= a[0][0]\n\tprint("Yes")\nelse\n\tprint("No")', 'import math\na = [input().split() for l in range(2)]\nif sum(a[1]) >= a[0][0]\n\tprint("Yes")\nelse\n\tprint("No")', 'a = [list(map(int,input().split())) for l in range(2)]\n\nif sum(a[1]) >= a[0][0]:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s063656246', 's081256625', 's338320830', 's627548277', 's661957105', 's778078393', 's936378374', 's901092218']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 13964.0]
[17.0, 17.0, 17.0, 17.0, 18.0, 17.0, 17.0, 40.0]
[133, 133, 112, 122, 112, 107, 107, 119]
p02784
u602158689
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`.
["temp = input()\ntemp = temp.split(' ')\nh = int(temp[0])\nn = int(temp[1])\na = input().split(' ')\n\nif h <= sum(int(i) for i in a):\n\tprint('Yes')\nelse\n\tprint('No')", "temp = input()\ntemp = temp.split(' ')\nh = int(temp[0])\nn = int(temp[1])\na = input().split(' ')\n\nif h <= sum(int(i) for i in a):\n\tprint('Yes')\nelse:\n\tprint('No')"]
['Runtime Error', 'Accepted']
['s390621109', 's845716157']
[2940.0, 10132.0]
[17.0, 43.0]
[159, 160]
p02784
u606523772
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 = list(map(int, input().split()))\nA_list = quicksort(A_list)\n#A_list.reverse()\nfor i in range(N):\n H -= A_list[i]\nif H > 0:\n print("No")\nelse:\n print("Yes")', 'H, N = map(int, input().split())\nA_list = list(map(int, input().split()))\nA_list = quicksort(A_list)\n#A_list.reverse()\nfor i in range(N):\n H -= A_list[i]\nif H > 0:\n print("No")\nelse:\n print("Yes")', 'H, N = map(int, input().split())\nA_list = list(map(int, input().split()))\nfor i in range(N):\n H -= A_list[i]\nif H > 0:\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s564603417', 's618486302', 's556646742']
[13964.0, 13964.0, 13964.0]
[42.0, 40.0, 53.0]
[205, 205, 160]
p02784
u609502714
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 math\n\na,b=map(int,input().split())\narray = map(int,input().split())\n\nsum = 0\n\nfor skill in array:\n a -= skill\nif(a <= 0):\n print("yes")\nelse:\n print("no")\n', 'import math\n\na,b=map(int,input().split())\narray = map(int,input().split())\n\nsum = 0\n\nfor skill in array:\n sum += skill\n\nif(sum >= a):\n print("yes")\nelse:\n print("no")\n\n', 'import math\n\na,b=map(int,input().split())\narray = map(int,input().split())\n\nsum = 0\n\nfor skill in array:\n a -= skill\n print(a)\nif(a <= 0):\n print("yes")\nelse:\n print("no")\n', "import math\n\na,b=map(int,input().split())\narray = map(int,input().split())\n\nsum = 0\n\nfor skill in array:\n sum += skill\n\nif(sum >= a):\n print('yes')\nelse:\n print('no')\n\n", 'import math\n\na,b=map(int,input().split())\narray = map(int,input().split())\n\nsum = 0\n\nfor skill in array:\n a -= skill\nif(a <= 0):\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s313776337', 's475590401', 's748162870', 's885733787', 's511430812']
[10708.0, 10132.0, 10676.0, 10132.0, 10528.0]
[49.0, 54.0, 119.0, 49.0, 48.0]
[165, 171, 176, 171, 165]
p02784
u617515020
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("Yes" if h > sum(a) else "No")', 'h,n=map(int,input().split())\na=list(map(int,input().split()))\nprint("No" if h > sum(a) else "Yes")']
['Wrong Answer', 'Accepted']
['s841563818', 's346214601']
[13964.0, 14016.0]
[41.0, 41.0]
[98, 98]
p02784
u618747173
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\n\nhp, length = [int(v) for v in input().split(' ')]\n\nif length < 2:\n print('no')\n sys.exit(0)\n \n\ndamages = sorted([int(d) for d in input().split(' ')])\n\n\nif damages[-1] + damages[-2] >= hp:\n print('yes')\nelse:\n print('no')", "import math\n\n\nhp, length = [int(v) for v in input().split(' ')]\ndamages = sorted([int(d) for d in input().split(' ')])\n\n\nif damages[-1] + damages[-2] >= hp:\n print('yes')\nelse:\n print('no')", "import sys\n \n \nhp, length = [int(v) for v in input().split(' ')]\ndamages = sorted([int(d) for d in input().split(' ')])\n \n \nfor d in reversed(damages):\n hp -= d\n if hp <= 0:\n print('Yes')\n sys.exit(0)\n\nprint('No')"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s599622487', 's661733889', 's597741793']
[13964.0, 14012.0, 13964.0]
[79.0, 77.0, 90.0]
[248, 195, 233]
p02784
u620549327
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']
['s818767096', 's369320176']
[13964.0, 13964.0]
[42.0, 40.0]
[110, 119]
p02784
u623814058
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"YNeos"[H>sum(map(int,input().split()))::2]', 'H,N=map(int,input().split())\n"NYoe s"[H<=sum(map(int,input().split()))::2]', 'H,N=map(int,input().split())\nprint("NYoe s"[H<=sum(map(int,input().split()))::2])']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s053353330', 's811215365', 's293369985']
[16496.0, 16296.0, 16480.0]
[45.0, 46.0, 48.0]
[72, 74, 81]
p02784
u634046173
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, gomi = int(input().split())\nprint('Yes' if A <= list(map(int,input().split())) else 'No')", "A, gomi = map(int, input().split())\nprint('Yes' if A <= list(map(int,input().split())) else 'No')", "A, gomi = map(int, input().split())\nprint('Yes' if A <= sum(list(map(int,input().split()))) else 'No')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s383546025', 's545417588', 's050155075']
[3060.0, 13964.0, 13964.0]
[17.0, 40.0, 41.0]
[92, 97, 102]
p02784
u636092786
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())\ns=sum(a)\nif s==h or s>h:\n print("YES")\nelse:\n print("NO")', 'h,n=map(int,input().split())\na=map(int,input().split())\ns=sum(a)\n\nif s>=h:\n print("YES")\nelse:\n print("NO")', 'h,n=map(int,input().split())\na=map(int,input().split())\ns=sum(a)\n\nif s>=h:\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s481791377', 's742309760', 's772715373']
[16312.0, 16464.0, 16460.0]
[47.0, 48.0, 45.0]
[119, 113, 114]
p02784
u639569979
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(float, input().split())\nattack_list = list(map(float, input().split()))\n\n\nprint(sum(attack_list))\n\n\nif(a <= sum(attack_list)):\n print("Yes")\nelse:\n print("No")', 'a, b = map(float, input().split())\nattack_list = list(map(float, input().split()))\n\nif(a <= sum(attack_list)):\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s081555897', 's394265528']
[13196.0, 13196.0]
[42.0, 41.0]
[176, 149]
p02784
u644546699
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\ndef propare():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n H = int(next(tokens))\n N = int(next(tokens))\n A_list = []\n for i in range(N):\n A_list.append(i)\n\n solve(H, N, A_list)\n\ndef solve(H: int, N: int, A_list: list):\n sum_a = 0\n for a in A_list:\n sum_a += sum_a + a\n\n if H < sum_a:\n print(\'Yes\')\n else:\n print(\'No\')\n\n return\n\n\n \nif __name__ == "__main__":\n propare()', '211 5\n31 41 59 26 53', 'import sys\n\ndef propare():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n H = int(next(tokens))\n N = int(next(tokens))\n A_list = []\n for i in range(N):\n A_list.append(int(next(tokens)))\n\n solve(H, N, A_list)\n\ndef solve(H: int, N: int, A_list: list):\n sum_a = 0\n for a in A_list:\n sum_a = sum_a + a\n\n if H <= sum_a:\n print(\'Yes\')\n else:\n print(\'No\')\n\n return\n\n\n \nif __name__ == "__main__":\n propare()']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s035186394', 's852432718', 's467564058']
[7088.0, 2940.0, 13996.0]
[381.0, 17.0, 63.0]
[550, 20, 566]
p02784
u648257619
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 math\n\nh, n = map(int, input().split())\na = [int(i) for i in input().split()]\n\nif sum(a) >= h:\n print('yes')\nelse:\n print('no')", "h, n = map(int, input().split())\na = [int(i) for i in input().split()]\n\nif sum(a) >= h:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s461679269', 's815233829']
[14012.0, 13836.0]
[44.0, 45.0]
[135, 122]
p02784
u652656291
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())\nsp = (map(int,input().split())) for i in range(n):\n if h > sum(sp):\n print('No')\n else:\n print('Yes')\n", "h,n = map(int,input().split())\nsp = [list(map(int,input().split()))for i in range(n)]\nif h > sum(sp):\n print('No')\nelse:\n print('Yes')", "h,n = map(int,input().split())\nsp = (map(int,input().split())) for i in range(n)\nif h > sum(sp):\n print('No')\nelse:\n print('Yes')", "h,n = map(int,input().split())\nsp = map(int,input().split()) \nif h > sum(sp):\n print('No')\nelse:\n print('Yes')\n"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s126113381', 's497598141', 's561627496', 's555297272']
[2940.0, 13964.0, 2940.0, 9944.0]
[17.0, 39.0, 17.0, 37.0]
[141, 136, 131, 113]
p02784
u655048024
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())\na = list(map(int,input().split()))\nans = 0\nfor i in range(n):\n ans += a[i]\nif(ans>=h):\n print("Yes")\nelse:\n print("No")\n', 'h,n = map(int,input())\na = list(map(int,input().split()))\nans = 0\nfor i in a:\n ans += a[i]\nif(ans>=h):\n print("Yes")\nelse:\n print("No")', 'h,n = map(int,input().split())\na = list(map(int,input().split()))\nans = 0\nfor i in range(n):\n ans += a[i]\nif(ans>=h):\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s571658824', 's827952921', 's275294611']
[9168.0, 9120.0, 20456.0]
[25.0, 23.0, 59.0]
[146, 138, 154]
p02784
u659587571
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`.
['input_list = list(map(int, input().split()))\nhp = input_list[0]\narts = input_list[1]\narts_list = list(map(int, input().split()))\nif hp < sum(arts_list):\n print(Yes)\nelse:\n print(No)\n', 'input_list = list(map(int, input().split()))\nhp = input_list[0]\narts = input_list[1]\narts_list = list(map(int, input().split()))\nif hp <= sum(arts_list):\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s655084310', 's637193399']
[13964.0, 13964.0]
[41.0, 41.0]
[184, 188]
p02784
u660313082
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('No')\n \nelse:\n print('YES')\n ", "h,n=map(int,input().split())\nA=list(map(int,input().split()))\nif sum(A)<h:\n print('No')\n \nelse:\n summ=0\n for i in A:\n h-=i\n if h<=0:\n print('Yes')\n break\n if h>0:\n print('No')"]
['Wrong Answer', 'Accepted']
['s587813090', 's558339368']
[13964.0, 13964.0]
[41.0, 52.0]
[123, 233]
p02784
u665745717
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`.
["s = input().split()\nH = int(s[0])\nN = int(s[1])\n\nA = input().split()\n\nif len(A) != N:\n print('error')\nelse:\n if sum(A) >= H:\n print('Yes')\n else:\n print('No')\n", "s = input().split()\nH = int(s[0])\nN = int(s[1])\n\nA = list(map(int, input().split()))\n\nif sum(A) >= H:\n print('Yes')\nelse:\n print('No')\n"]
['Runtime Error', 'Accepted']
['s196666744', 's574875537']
[10552.0, 13964.0]
[25.0, 43.0]
[182, 141]
p02784
u666961261
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 = [i for i in input().split()]\nres = 0\nfor i in m:\n res += int(i)\nif res<= h:\n print('Yes')\nelse:\n print('No')", "h, n = map(int, input().split())\n\nm = [i for i in input().split()]\n\nres = 0\n\nfor i in m:\n res += int(i)\n\nif res >= h:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s981287581', 's313998586']
[10764.0, 10764.0]
[59.0, 52.0]
[145, 159]
p02784
u669173971
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()),reverse=True)\n\nfor i in range(n):\n h-=a[i]\nif h>0:\n print('No')\nelse:\n print('Yes')", "h,n=map(int,input().split())\na=sorted(list(map(int,input().split())),reverse=True)\n\nfor i in range(n):\n h-=a[i]\nif h>0:\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s370428564', 's105673429']
[10532.0, 13964.0]
[24.0, 90.0]
[153, 161]
p02784
u674190122
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`.
['\'\'\'\n211 5\n31 41 59 26 53\n\'\'\'\npower, moves = [int(x) for x in input().split()]\npowers = sum([int(x) for x in input().split()])\nprint(["NO","YES"][powers >= power])', '\'\'\'\n211 5\n31 41 59 26 53\n\'\'\'\npower, moves = [int(x) for x in input().split()]\npowers = sum([int(x) for x in input().split()])\nprint(["NO","YES"][powers >= power])', '\'\'\'\n211 5\n31 41 59 26 53\n\'\'\'\npower, moves = [int(x) for x in input().split()]\npowers = [int(x) for x in input().split()]\nprint("No" if sum(powers) < power else "Yes")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s098645911', 's169842359', 's879387185']
[13836.0, 13656.0, 13836.0]
[43.0, 42.0, 44.0]
[162, 162, 166]
p02784
u676232868
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()\nh, n = [int(x) for x in val.split()]\nval = input()\na = [int(x) for x in val.split()]\n\nsum = a.sum()\nif h - sum <= 0:\n print("Yes")\nelse:\n print("No")\n', 'val = input()\nh, n = [int(x) for x in val.split()]\nval = input()\na = [int(x) for x in val.split()]\n \nsum = sum(a)\nif h - sum <= 0:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s537889449', 's179148164']
[14264.0, 14424.0]
[44.0, 45.0]
[166, 165]
p02784
u676458682
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("yes" if sum(A)>=H else "No")', '\ndef abc153_b():\n H,N=map(int,input().split())\n A=list(map(int,input().split()))\n attack=0\n for a in A:\n if attack>=H:\n print("Yes")\n return\n else:\n attack+=a\n if attack >= H:\n print("Yes")\n return\n else:\n print("No")\n return\n \nabc153_b()']
['Wrong Answer', 'Accepted']
['s022045567', 's340434266']
[13964.0, 13964.0]
[41.0, 46.0]
[97, 338]
p02784
u686608807
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 = []\na.append(map(int,input().split()))\nsum = 0\n\nfor i in a:\n sum += i\n \nif sum >= h:\n print("Yes")\nelse:\n print("No")', 'h, n = map(int, input().split())\na = list(map(int,input().split()))\nsum = 0\n\nfor i in a:\n sum += i\n \nif sum >= h:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Accepted']
['s408289238', 's443807091']
[10132.0, 13964.0]
[25.0, 48.0]
[157, 151]
p02784
u687053495
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`.
['\nH, N = map(int, input().split())\n\nA = list(map(int, input().split()))\n\nS = sum(A)\n\nprint("yes" if H <= S else "no")', '\nH, N = map(int, input().split())\n\nA = list(map(int, input().split()))\n\nS = sum(A)\n\nprint("Yes" if H <= S else "No")']
['Wrong Answer', 'Accepted']
['s060854855', 's574112066']
[13964.0, 14092.0]
[41.0, 41.0]
[116, 116]
p02784
u695079172
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`.
['def main():\n h,n = map(int,input().split())\n a_lst = list(map(int,input().split()))\n for attack in a_lst:\n h == attack\n if h <= 0:\n print("Yes")\n else:\n print("No")\n\n\n\nif __name__ == \'__main__\':\n main()\n', 'def main():\n h,n = map(int,input().split())\n a_lst = list(map(int,input().split()))\n for attack in a_lst:\n h -= attack\n if h <= 0:\n print("Yes")\n else:\n print("No")\n\n\n\nif __name__ == \'__main__\':\n main()\n']
['Wrong Answer', 'Accepted']
['s219915997', 's946449822']
[13964.0, 14092.0]
[43.0, 44.0]
[242, 242]
p02784
u697968316
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\nList = []\nfor _ in N:\n List.append(int(input()))\n\ntotal = 0\nfor l in len(List):\n total += List[l]\n \nif H > total:\n print('No')\n \nelif H <= total:\n print('Yes')\n", "H, N = map(int, input().split())\n\nList = map(int, input().split())\n\ntotal = 0\nfor l in len(List):\n total += List[l]\n \nif H > total:\n print('No')\n \nelif H <= total:\n print('Yes')", "H, N = map(int, input().split())\n \nList = list(map(int, input().split()))\n \ntotal = 0\nfor l in range(len(List)):\n total += List[l]\n \nif H > total:\n print('No')\n \nelif H <= total:\n print('Yes')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s167516628', 's614509512', 's783825314']
[3060.0, 10424.0, 13964.0]
[17.0, 25.0, 56.0]
[200, 182, 197]