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 |
|---|---|---|---|---|---|---|---|---|---|---|
p02783 | u571444155 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['h, a = map(int, input(),split())\ncount = 0\n\nwhile h > 0:\n count += 1\n h = h - a\n \nprint(count)', 'h, a = map(int, input().split())\ncount = 0\n\nwhile h > 0:\n count += 1\n h = h - a\n \nprint(count)\n'] | ['Runtime Error', 'Accepted'] | ['s920955531', 's913424142'] | [2940.0, 2940.0] | [18.0, 19.0] | [96, 97] |
p02783 | u573754721 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['h, n = map(int, input().split())\na = []\nb = []\nfor _ in range(n):\n ai, bi = map(int, input().split())\n a.append(ai)\n b.append(bi)\n \ndp = [float("inf")] * (2 * 10000 + 1)\ndp[0] = 0\nfor i in range(h):\n for j in range(n):\n if (i + a[j]) > 2 * 10000:\n dp[2 * 10000] = min(dp[2 * 10000], dp[i] + b[j])\n continue\n dp[i + a[j]] = min(dp[i + a[j]], dp[i] + b[j])\n \nans = float(\'inf\')\nfor j in range(h, 2 * 10000 + 1):\n ans = min(ans, dp[j])\nprint(ans)', 'h,a = map(int,input().split())\n\nif h%a:\n print(h//a+1)\nelse:\n print(h//a)'] | ['Runtime Error', 'Accepted'] | ['s081050854', 's114348980'] | [3064.0, 2940.0] | [17.0, 18.0] | [494, 85] |
p02783 | u579699847 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['import numpy as np\nH, A =map(int, input().split())\nprint(np.ceil(H / A))', 'import numpy as np\nH, A =map(int, input().split())\nprint(int(np.ceil(H / A)))'] | ['Wrong Answer', 'Accepted'] | ['s551572103', 's812476779'] | [12416.0, 12392.0] | [153.0, 151.0] | [72, 77] |
p02783 | u581403769 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['h , a = map(int, input().split())\n\nans = h // a\nif h % a == 0:\n print(ans)\nesle:\n print(ans + 1)', 'h , a = map(int, input().split())\n\nans = h // a\nif h % a == 0:\n print(ans)\nelse:\n print(ans + 1)\n'] | ['Runtime Error', 'Accepted'] | ['s773319071', 's755293446'] | [8896.0, 9064.0] | [22.0, 28.0] | [102, 103] |
p02783 | u584883206 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['a = 0\n\nli = input("入力してね").split()\nli = [int(i) for i in li]\n\nwhile 0 < li[0]:\n a += 1\n li[0] -= li[1]\n\nprint(a)', 'a = 0\n\nli = input().split()\nli = [int(i) for i in li]\n\nwhile 0 < li[0]:\n a += 1\n li[0] -= li[1]\n\nprint(a)'] | ['Wrong Answer', 'Accepted'] | ['s244307854', 's973838645'] | [2940.0, 2940.0] | [20.0, 19.0] | [128, 111] |
p02783 | u588749694 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['HA = input()\n\nHA = HA.split(" ")\n\nH = HA[0]\nA = HA[1]\n\nhit = 0\n\nwhile H < 0:\n H = H - A\n hit = hit + 1\n\nprint(hit)', 'S = input().split(" ") \n\nH = int(S[0]) \nA = int(S[1]) \n\natCount = 0 \n\nwhile H > 0:\n H = H - A\n atCount = atCount + 1\n\nprint(atCount)\n\n'] | ['Runtime Error', 'Accepted'] | ['s384064630', 's547023514'] | [3060.0, 2940.0] | [17.0, 19.0] | [116, 208] |
p02783 | u589578850 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['import math \na,b = map(int,input().split())\nprint(math.ceil(a/x))', 'import math \na,b = map(int,input().split())\nprint(math.ceil(a/b))'] | ['Runtime Error', 'Accepted'] | ['s617292675', 's262796342'] | [2940.0, 2940.0] | [17.0, 17.0] | [65, 65] |
p02783 | u591295155 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['h, a = map(int, input())\nprint(h//a+1 if h%a != 0 else h//a)', 'h, a = map(int, input().split())\nprint(h//a+1 if h%a != 0 else h//a)\n'] | ['Runtime Error', 'Accepted'] | ['s277864548', 's459032005'] | [2940.0, 2940.0] | [17.0, 17.0] | [60, 69] |
p02783 | u594862874 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['import math\nH, A = input().split()\nprint(math.ceil(H/A))', 'import math\nH, A = int(input()).split()\nprint(math.ceil(H/A))', 'import math\nH,A = map(int, input().split)\nprint(math.ceil(H/A))', 'import math\n\nH,A = map(int, input().split())\nprint(math.ceil(H/A))'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s135911824', 's486159167', 's837653928', 's999992145'] | [2940.0, 2940.0, 3064.0, 2940.0] | [17.0, 21.0, 18.0, 17.0] | [56, 61, 63, 66] |
p02783 | u597455618 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['h, a = map(int, input().split())\nprint(-(-h//2))', 'h, a = map(int, input().split())\nprint(-(-h//a))'] | ['Wrong Answer', 'Accepted'] | ['s468549235', 's757020364'] | [3316.0, 2940.0] | [20.0, 17.0] | [48, 48] |
p02783 | u598378638 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['import sys\nimport math\n\nargs = sys.argv\n\nhp = int(args[1])\nattack = int(args[2])\n\nif(hp <= attack):\n ans = "1"\nelse:\n ans = str(math.ceil(hp / attack))\n\nprint(ans)', 'import sys\n\nargs = sys.argv\n\nhp = int(args[1])\nattack = int(args[2])\n\nif(hp <= attack):\n ans = "1"\nelse:\n ans = str(hp // attack)\n\nprint(ans)', 'import sys\n\nargs = sys.argv\nif(args[0] <= args[1]):\n ans = "1"\nelse:\n ans = int(args[1]) / int(args[0])\n\nprint(str(ans))', 'import sys\nimport math\n\nargs = sys.argv\n\nhp = int(args[1])\nattack = int(args[2])\n\nif(hp <= attack):\n ans = "1"\nelse:\n ans = str(math.floor(hp / attack))\n\nprint(str(ans))', 'import sys\nimport math\n\nargs = sys.argv\n\nhp = int(args[1])\nattack = int(args[2])\n\nif(hp <= attack):\n ans = "1"\nelse:\n ans = str(math.ceil(hp / attack))\n\nprint(int(ans))', '# -*- coding: utf-8 -*-\n\nimport sys\nimport math\n\nargs = sys.argv\n\nhp = int(args[1])\nattack = int(args[2])\n\nif(hp <= attack):\n ans = "1"\nelse:\n ans = str(math.floor(hp / attack))\n\nprint(str(ans))', 'import math\n\nhp , attack = map(int,input().split())\n\nif(hp <= attack):\n ans = "1"\nelse:\n ans = str(math.ceil(hp / attack))\n\nprint(int(ans))'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s132677268', 's320643027', 's369665204', 's467531673', 's497550913', 's986459827', 's962125252'] | [3060.0, 2940.0, 2940.0, 3060.0, 3060.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [169, 147, 126, 175, 174, 200, 145] |
p02783 | u598888192 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['n,k = map(int,input().split())\nprint((n+k-1)/k)', 'n,k = map(int,input().split())\nprint((n+k-1)//k)\n'] | ['Wrong Answer', 'Accepted'] | ['s889694802', 's981245764'] | [2940.0, 2940.0] | [17.0, 17.0] | [47, 49] |
p02783 | u598924163 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['h = int(input())\nli = []\nli.append(h)\nc=1\nwhile(h > 1):\n h= int(h/2)\n for i in range(2**c): \n li.append(h)\n c += 1\n\n#print(li)\nprint(len(li))', 'h,a = map(int,input().split())\nc = 0\nwhile(True):\n h = h - a\n if(h <= 0):\n c += 1\n break\n\n c += 1\n\nprint(c)\n\n'] | ['Runtime Error', 'Accepted'] | ['s823242375', 's392614345'] | [3060.0, 2940.0] | [17.0, 18.0] | [191, 132] |
p02783 | u600261652 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['import math\nH, A = map(int, input().split())\nprint(math.ceil(H//A))', 'def resolve():\n import math\n H, A = map(int, input().split())\n print(math.ceil(H/A))\nresolve()'] | ['Wrong Answer', 'Accepted'] | ['s808326351', 's429744413'] | [2940.0, 2940.0] | [17.0, 17.0] | [67, 103] |
p02783 | u601620345 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['import math\na = list(map(int,input().split()))\nprint(math.ceil((float)a[0]/a[1]))\n', 'import math\na = list(map(int,input().split()))\nprint(math.ceil(a[0]/a[1]))\n'] | ['Runtime Error', 'Accepted'] | ['s332826928', 's541244183'] | [2940.0, 2940.0] | [17.0, 17.0] | [82, 75] |
p02783 | u601973745 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['hp_list = input().split(" ")\nh = hp_list[0]\na = hp_list[1]\nx = h / a\ny = h // a\nif (x == y):\n count = x\nelse:\n count = y + 1\n \nprint(count)\n', 'hp_list = input().split(" ")\nh = int(hp_list[0])\na = int(hp_list[1])\nx = h / a\ny = h // a\nif (x == y):\n count = x\nelse:\n count = y + 1\n\ncount = int(count)\nprint(count)'] | ['Runtime Error', 'Accepted'] | ['s412172318', 's516906475'] | [2940.0, 3060.0] | [18.0, 17.0] | [142, 169] |
p02783 | u602158689 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['import math\n\nh = int(input())\na = int(input())\n \nprint(math.ceil(h/a))', 'h = int(input())\na = int(input())\n\nreturn math.ceil(h/a)\n', 'import math\n\nh = float(input())\na = float(input())\n\nprint(math.ceil(h/a))', 'import math\n\nh = float(input())\na = float(input())\n \nprint(math.ceil(h/a))', 'import math\n \nh = float(input())\nenemies = [h]\n\ncount = 0\nwhile len(enemies) > 0:\n temp = []\n for enemy in enemies:\n count+=1\n if enemy > 1:\n temp.append(round(enemy / 2))\n temp.append(round(enemy / 2))\n enemies = temp\n\nprint(count)', "import math\n\nval = input().split(' ')\nh = float(val[0])\na = float(val[1])\n\nprint(math.ceil(h/a))"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s252425777', 's295510636', 's602276786', 's889933280', 's947897601', 's714538135'] | [2940.0, 2940.0, 3188.0, 2940.0, 3060.0, 3188.0] | [17.0, 17.0, 18.0, 19.0, 18.0, 19.0] | [70, 57, 73, 74, 251, 96] |
p02783 | u606393507 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ["import sys\n\n\ndef main():\n tmp = input().split()\n h = int(tmp[0].replace('\\n',''))\n a = int(tmp[1].replace('\\n',''))\n n= h/a\n if (h%a >0):\n n+=1\n print(n)\n\nif __name__ == '__main__':\n input = sys.stdin.readline\n main()\n", "import sys\n\n\ndef main():\n tmp = input().split()\n h = int(tmp[0].replace('\\n',''))\n a = int(tmp[1].replace('\\n',''))\n n= h/a\n if (h%a >0):\n n+=1\n print(int(n))\n\nif __name__ == '__main__':\n input = sys.stdin.readline\n main()\n"] | ['Wrong Answer', 'Accepted'] | ['s966374443', 's836540948'] | [2940.0, 3060.0] | [18.0, 17.0] | [249, 254] |
p02783 | u606878291 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ["import math\n\nH, A = map(int, input().split(' '))\n\nprint(math.floor(H / A))\n", "import math\n\nH, A = map(int, input().split(' '))\n\nprint(math.ceil(H / A))\n"] | ['Wrong Answer', 'Accepted'] | ['s393194182', 's472592741'] | [2940.0, 2940.0] | [18.0, 18.0] | [75, 74] |
p02783 | u609258687 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H, A = map(int, input().split())\nprint(int(H/A))', 'from math import ceil\nH, A = map(int, input().split())\nprint(ceil(H/A))'] | ['Wrong Answer', 'Accepted'] | ['s641785213', 's564942137'] | [2940.0, 2940.0] | [17.0, 17.0] | [48, 71] |
p02783 | u609814378 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H = 10\nA = 2\n\nif H % A == 0:\n print(int(H/A))\nelse:\n print((H//A) + 1)', 'H,A = map(int, input().split())\n\nif H % A == 0:\n print(int(H/A))\nelse:\n print((H//A) + 1)\n'] | ['Wrong Answer', 'Accepted'] | ['s928842845', 's302857417'] | [2940.0, 2940.0] | [17.0, 20.0] | [76, 96] |
p02783 | u610274930 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ["H, N = map(int, input().split())\n\ns = list(map(int, input().split()))\n\ns_sum = sum(s)\n\nif s_sum < H:\n print('No')\nelse:\n print('Yes')", 'H, A = map(int, input().split())\ncounter = 0\n\nwhile H > 0:\n H -= A\n counter += 1\n \nprint(counter)'] | ['Runtime Error', 'Accepted'] | ['s025338853', 's097630323'] | [2940.0, 2940.0] | [17.0, 19.0] | [135, 100] |
p02783 | u612814668 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ["import sys\n\ndef use_dp():\n max_a = max([ab[0] for ab in AB])\n dp = [sys.maxsize for i in range(H+max_a)]\n dp[0] = 0\n\n \n for i in range(H):\n if dp[i] == sys.maxsize:\n continue\n \n for j in range(N):\n a = i + AB[j][0]\n b = dp[i] + AB[j][1]\n if dp[a] > b:\n dp[a] = b\n\n \n min_mp = sys.maxsize\n for i in range(H, H+max_a):\n min_mp = min(dp[i], min_mp)\n\n print(min_mp)\n\n\nif __name__ == '__main__':\n H, N = list(map(int, input().split()))\n AB = []\n for n in range(N):\n AB.append(list(map(int, input().split())))\n\n use_dp()", 'import math\n\nH, A = list(map(int, input().split()))\n\nN = math.ceil(H/A)\n\nprint(N)'] | ['Runtime Error', 'Accepted'] | ['s634537691', 's535322378'] | [3064.0, 2940.0] | [17.0, 17.0] | [790, 81] |
p02783 | u613922299 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['s = list(map(int,input().split()))\nm = list(map(int,input().split()))\n\na=s[0]\nfor i in range(s[1]):\n a -= m[i]\n\nif a <= 0:\n print("Yes")\nelse:\n print("No")', 's = [list(map(int,input().split())) for i in range(2)]\n\np = s[0][0]\na = 0\nfor i in range(s[0][1]):\n a += s[1][i]\n\nr = "Yes"\nif p > a:\n r = "No"\n\nprint(r)', 's = [list(map(int,input().split())) for i in range(2)]\n\na=0\nfor i in range(s[0][1]):\n a += s[1][i]\n\nr = "Yes"\nif a < s[0][0]:\n print("No")\nelse:\n print("Yes")', 's = [list(map(int,input().split())) for i in range(2)]\n\na=s[0][0]\nfor i in range(s[0][1]):\n a -= s[1][i]\n\nif a <= 0:\n print("Yes")\nelse:\n print("No")', 's = [list(map(int,input().split())) for i in range(2)]\n\np = s[0][0]\na = 0\nfor i in range(s[0][1]):\n a += s[1][i]\n\nr = "Yes"\nif p > a:\n r = "No"\n\nprint(r)', 's = list(map(int,input().split()))\na = s[0] // s[1]\nb = s[0] % s[1]\nif b != 0:\n a +=1\nprint(a)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s531202530', 's561849727', 's638129354', 's696422032', 's708896132', 's422974372'] | [3060.0, 3060.0, 3060.0, 3060.0, 3060.0, 2940.0] | [17.0, 18.0, 17.0, 17.0, 17.0, 19.0] | [158, 155, 161, 152, 155, 95] |
p02783 | u617010143 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['h, a = map(int, input().split())\ncnt = round(h // a)\nprint(cnt)', 'h, a = map(int, input().split())\ncnt = - ( -h // a)\nprint(cnt)'] | ['Wrong Answer', 'Accepted'] | ['s893567913', 's386733905'] | [2940.0, 2940.0] | [17.0, 17.0] | [63, 62] |
p02783 | u617225232 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['a,b =map(int,input().split())\nif a%B==0:\n print(a/b)\nelse:\n print(1+a//b)', 'a,b =map(int,input().split())\nif a%B==0:\n print(a/b)\nelse:\n print(1+(a//b))\n', 'a, b = map(int, input().split())\nif a % b == 0:\n print(a//b)\nelse:\n print(1+a//b)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s057793343', 's392522947', 's901139274'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [75, 78, 88] |
p02783 | u620549327 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H,N = map(int,input().split())\nA = list(map(int,input().split()))\ns = sum (A)\nif s>=H:\n print("Yes")\nelse:\n print("No")', 'H,N = map(int,input().split())\nA = list(map(int,input().split()))\n\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")', 'H,A = map(int,input().split())\n\nif H%A==0:\n print(H//A)\nelse:\n print(H//A+1)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s323590901', 's505035510', 's591314682', 's836766622'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 19.0, 17.0, 18.0] | [121, 115, 114, 78] |
p02783 | u624617831 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ["\ndef main():\n \n h,a = map(int, input().split())\n\n if h%a== 0:\n print(h//a)\n else:\n prinbt(h%a+1)\n\n\nif __name__ == '__main__':\n main()\n\n", "\ndef main():\n \n h,a = map(int, input().split())\n\n if h <= a:\n print(1)\n\n elif h%a== 0:\n print(h//a)\n else:\n print(h//a+1)\n\n\nif __name__ == '__main__':\n main()\n\n"] | ['Runtime Error', 'Accepted'] | ['s176678741', 's273091706'] | [2940.0, 2940.0] | [17.0, 17.0] | [164, 199] |
p02783 | u625864724 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['h, a = int(input())\nif (h%a == 0):\n print(h//a)\nelse:\n print(h//a + 1)', 'h, a = map(int,input().split())\nif (h%a == 0):\n print(h//a)\nelse:\n print(h//a + 1)\n'] | ['Runtime Error', 'Accepted'] | ['s981791609', 's732409859'] | [9068.0, 9112.0] | [29.0, 29.0] | [72, 85] |
p02783 | u629186149 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['a, b = map(int, input().split())\nc = 0\nwhile a > 0:\n a -= b\n c += 1\nprint(c', 'a, b = map(int, input().split())\nc = 0\nwhile a > 0:\n a -= b\n c += 1\nprint(c)'] | ['Runtime Error', 'Accepted'] | ['s049931481', 's591364972'] | [2940.0, 2940.0] | [18.0, 19.0] | [77, 78] |
p02783 | u629350026 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['h,a=map(int,input().split())\nif h%a==0:\n print((int(h/a))\nelse:\n print((int(h/a)+1))', 'h,a=map(int,input().split())\nif h%a==0:\n print((int(h/a)))\nelse:\n print((int(h/a)+1))'] | ['Runtime Error', 'Accepted'] | ['s669305672', 's795277424'] | [2940.0, 2940.0] | [17.0, 17.0] | [86, 87] |
p02783 | u631579948 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['a,b=map(int,input().split())\ni=0\nwhile a>b:\n a-=b\n i+=1\nprint(i) ', 'a,b=map(int,input().split())\ni=0\nwhile a>0:\n a-=b\n i+=1\nprint(i) \n'] | ['Wrong Answer', 'Accepted'] | ['s768456676', 's551888501'] | [2940.0, 2940.0] | [19.0, 19.0] | [67, 68] |
p02783 | u632369368 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H = int(input())\n\ndef func(h):\n if h == 1:\n return 1\n else:\n return func(h // 2) * 2 + 1\n\nr = func(H)\nprint(r)\n\n', 'H, A = map(int, input().split())\n\nR1 = H // A\nR2 = 1 if H % A > 0 else 0\nprint(R1 + R2)\n'] | ['Runtime Error', 'Accepted'] | ['s266247451', 's371902688'] | [2940.0, 2940.0] | [17.0, 17.0] | [132, 88] |
p02783 | u634046173 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['import math\nH, A map(int, input().split())\n\nprint(math.ceil(H / A))', 'import math\nH, A = map(int, input().split())\n \nprint(math.ceil(H / A))'] | ['Runtime Error', 'Accepted'] | ['s203086742', 's779024526'] | [2940.0, 2940.0] | [18.0, 18.0] | [67, 70] |
p02783 | u636092786 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['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,a=map(int,input().split())\nimport math\nx=h/a \nprint(math.ceil(x))'] | ['Runtime Error', 'Accepted'] | ['s598751310', 's993009865'] | [9168.0, 9112.0] | [26.0, 29.0] | [113, 67] |
p02783 | u639569979 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['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")', 'import math\na, b = map(float, input().split())\nx = a / b\nif (x.is_integer() == False):\n print(math.ceil(x))\nelse:\n print(int(x))\n'] | ['Runtime Error', 'Accepted'] | ['s660279095', 's415795944'] | [2940.0, 2940.0] | [17.0, 18.0] | [149, 135] |
p02783 | u642405274 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['h, a = map(int, input().split())\n\ntimes = h // a\nif h % a != 0 :\n times = 1\nprint(times)', 'h, a = map(int, input().split())\n\ntimes = h // a\nif h % a != 0 :\n times += 1\nprint(times)'] | ['Wrong Answer', 'Accepted'] | ['s021628129', 's397942109'] | [2940.0, 2940.0] | [17.0, 17.0] | [91, 92] |
p02783 | u642418876 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H,A=map(int,input().split())\nans=round(H/A)\nprint(ans)', 'H,A=map(int,input().split())\nimport math\nans=math.ceil(H/A)\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s038063293', 's775698849'] | [2940.0, 2940.0] | [19.0, 17.0] | [54, 70] |
p02783 | u642909262 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H, N = map(int, input().split())\nmove = [int(a) for a in map(int, input().split())]\n\nsmove = sum(move)\nif smove >= H:\n print("Yes")\nelse:\n print("No")', 'from math import ceil\n\nH, A = map(int, input().split())\nprint(ceil(H/A))'] | ['Runtime Error', 'Accepted'] | ['s153201577', 's743160468'] | [3060.0, 2940.0] | [17.0, 17.0] | [156, 72] |
p02783 | u644070128 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['h, a = map(int, input())\n\nprint(h // a + int(h%a != 0))\n', 'h, a = map(int, input())\n\nprint(h//a + int(h%a!=0))', 'h, a = map(int, input())\n\nprint(h//a + int(h%a!=0))\n', 'h, a = map(int, input().split())\n\nprint(h//a + int(h%a!=0))\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s566693160', 's743003679', 's818784761', 's809888395'] | [2940.0, 3060.0, 3188.0, 2940.0] | [17.0, 19.0, 18.0, 17.0] | [56, 51, 52, 60] |
p02783 | u644546699 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['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 A = int(next(tokens))\n\n solve(H, A)\n\ndef solve(H: int, A: int):\n count = 0\n while H < 1:\n count = count + 1\n H = H - A\n\n print(count)\n\n return\n\n\n \nif __name__ == "__main__":\n propare()', '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 A = int(next(tokens))\n\n solve(H, A)\n\ndef solve(H: int, A: int):\n count = 0\n while 0 < H:\n count = count + 1\n H = H - A\n\n print(count)\n\n return\n\n\n \nif __name__ == "__main__":\n propare()'] | ['Wrong Answer', 'Accepted'] | ['s697541853', 's927950950'] | [3060.0, 3064.0] | [17.0, 18.0] | [425, 425] |
p02783 | u649193159 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ["import math\n\nline = input()\nnumList = [int(num) for num in line.split(' ')]\nmonsterHP,servalA = numList[0].numList[1]\nprint(math.ceil(monsterHP/servalA))\n", "import math\n \nline = input()\nnumList = [int(num) for num in line.split(' ')]\nmonsterHP,servalA = numList[0],numList[1]\nprint(math.ceil(monsterHP/servalA))"] | ['Runtime Error', 'Accepted'] | ['s753085517', 's213582458'] | [3060.0, 2940.0] | [20.0, 17.0] | [154, 154] |
p02783 | u649423802 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H,A=map(int,input().split())\n\ncount=0\n\nwhile (H >=0):\n H -= A\n count+=1\nelse:\n \n print(count-1)', 'H,A=map(int,input().split())\n\ncount=0\n\nwhile (H >0):\n H -= A\n count+=1\nelse:\n \n print(count)'] | ['Wrong Answer', 'Accepted'] | ['s988930077', 's436449955'] | [2940.0, 2940.0] | [19.0, 18.0] | [107, 104] |
p02783 | u652181492 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ["list = input().split(' ')\nnum = 0\na = int(list[1])\nb = int(list[0])\nwhile a > 0:\n a -= b\n num += 1\n \nprint(num)", "list = input().split(' ')\nnum = 0\na = int(list[0])\nb = int(list[1])\nwhile a > 0:\n a -= b\n num += 1\n \nprint(num)"] | ['Wrong Answer', 'Accepted'] | ['s648423275', 's087514600'] | [2940.0, 3060.0] | [18.0, 20.0] | [114, 114] |
p02783 | u652569315 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['h,a=map(int,input().split())\nh-=0.01\nprint(h//a+1)', 'h,a=map(int,input().split())\nh-=0.01\nprint(int(h//a)+1)\n'] | ['Wrong Answer', 'Accepted'] | ['s747421385', 's806921959'] | [2940.0, 3060.0] | [17.0, 20.0] | [50, 56] |
p02783 | u652656291 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['h,a =map(int,input().split())\nif h % a == 0:\n print(h // a)\nelse:\n (h // a +1)\n\n\n\n\n', 'n,a = map(int,input())\nif n%a == 0:\n print(n//a)\nelse:\n print(n//a +1)', 'h,a =map(int,input().split())\n\nprint((h-a+1) // a + 1)', 'h, a = map(int, input().split())\n\nans = 0\n\nwhile h > 0:\n ans += 1\n h -= a\n\nprint(ans)\n\n'] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s633419014', 's662105642', 's997975114', 's865387303'] | [2940.0, 3060.0, 2940.0, 2940.0] | [17.0, 19.0, 17.0, 19.0] | [85, 72, 54, 93] |
p02783 | u653175574 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H , A = map(int, input().split())\nans = 0\nwhile(H >= 0):\n H = H - A\n ans + 1\nprint(ans)', 'h,a = tuple(map(int,input().rstrip().split()))\nprint((h+a-1)//a)'] | ['Wrong Answer', 'Accepted'] | ['s876167088', 's704266430'] | [2940.0, 2940.0] | [19.0, 20.0] | [89, 64] |
p02783 | u655048024 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['h,a = map(int,input().split())\nprint(h//a + (1-int(h%a==0))\n', 'h,a = map(int,input().split())\nprint(h//a + (1-(h%a==0))\n', 'h,a = map(int,input())\nprint(h//a + (1-(h%a==0))', 'h,a = map(int,input().split())\nprint(h//a+1-int(h%a==0))'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s400198894', 's479297036', 's558546946', 's694147945'] | [9016.0, 9008.0, 9004.0, 9048.0] | [28.0, 24.0, 24.0, 29.0] | [60, 57, 48, 56] |
p02783 | u657183715 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H,A = map(int,input().split())\nprint(H//A)', 'H,A = map(int,input().split())\ndiv,mod = divmod(H,A)\nif mod==0:\n print(div)\nelse:\n print(div+1)'] | ['Wrong Answer', 'Accepted'] | ['s498160220', 's464205929'] | [2940.0, 2940.0] | [17.0, 17.0] | [42, 101] |
p02783 | u658325491 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ["import math\n\nh, n = map(int,input().split())\na = list(map(int,input().split()))\nsum = 0\nfor i in range(n):\n sum += a[i]\n\nif sum >= h:\n print('Yes')\nelse:\n print('No')\n", "h, n = map(int,input().split())\na = list(map(int,input().split()))\nsum = 0\nfor i in range(n):\n sum += a[i]\n\nif sum >= h:\n print('Yes')\nelse:\n print('No')\n", 'import math\nh, a = map(int,input().split())\nnum = math.ceil(h/a)\n\nprint(num)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s096037273', 's329020378', 's251530126'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [176, 163, 77] |
p02783 | u665745717 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['import numpy as np\n\ns = input().split()\nH = int(s[0])\nN = int(s[1])\n\nm = np.array([list(map(int, input().split())) for i in range(N)])\nA = m[:, 0]\nB = m[:, 1]\n\ndef func(H, m):\n A = m[:, 0]\n B = m[:, 1]\n\n if H < A[i]:\n i = np.argmin((H // A) * B)\n return (H // A[i]) * B[i]\n else:\n i = np.argmax(A / B)\n H_next = H - (H // A[i]) * B[i] \n return (H // A[i]) * B[i] + func(H_next)\n \n func(H_next, )\n j = np.argmin(B)\n print((H // A[i])*B[i] + B[j])\n\nprint(func(H, m))', 's = input().split()\nH = int(s[0])\nA = int(s[1])\n\nans = H // A\nif H % A:\n print(ans+1)\nelse:\n print(ans)'] | ['Runtime Error', 'Accepted'] | ['s660908341', 's873700964'] | [12480.0, 2940.0] | [150.0, 17.0] | [539, 109] |
p02783 | u666961261 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['N,M = map(int,input().split())\ni=1\nfor(i in range(N)):\n He=N*i\n if(H<He):\n break\n else:\n continue\nprint(i)', 'import math\nH,S = map(int,input().split())\ni=1\nif(H<=S):\n print(1)\nelif(H>S):\n N = math.floor(H/S)\nprint(N)', 'h, a = map(int, input().split())\n\ni = 0\n\nwhile h > 0:\n h = h - a\n i += 1\n\nprint(i)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s053561598', 's370789647', 's302831880'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 20.0] | [125, 109, 88] |
p02783 | u671204079 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H,A = map(int, input().split())\ncnt = 0\nwhile(H):\n H -= A\n cnt += 1\n\nprint(cnt)', 'H,A = map(int, input().split())\ncnt = H//A\nif (H%A):\n cnt +=1\nprint(cnt)'] | ['Time Limit Exceeded', 'Accepted'] | ['s212345644', 's239475838'] | [2940.0, 3064.0] | [2104.0, 17.0] | [81, 73] |
p02783 | u674190122 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['\'\'\'\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])', 'H, A = [int(x) for x in input().split()]\nprint( (H // A ) + (H % A > 0))'] | ['Runtime Error', 'Accepted'] | ['s588848558', 's895115163'] | [2940.0, 2940.0] | [17.0, 17.0] | [162, 72] |
p02783 | u678770297 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['import math\n\nH, A = map(int, input().split())\n\nprint (math.ceil(H // A))', 'import math\n\nH, A = map(int, input().split())\n\nprint (math.ceil(H / A))'] | ['Wrong Answer', 'Accepted'] | ['s889171114', 's328993160'] | [2940.0, 2940.0] | [20.0, 17.0] | [72, 71] |
p02783 | u682997551 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H, A = int(input().split())\n\nans = -(-H // A)\n\nprint(ans)', 'H, A = map(int, input().split())\n\nans = -(-H // A)\n\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s503186067', 's823371471'] | [2940.0, 2940.0] | [17.0, 19.0] | [57, 62] |
p02783 | u685244071 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H, A = map(int, input())\nn = (H-1)//A + 1\nprint(n)', 'H, A = map(int, input().split())\nn = (H-1)//A + 1\nprint(n)\n'] | ['Runtime Error', 'Accepted'] | ['s225473777', 's361351050'] | [2940.0, 3064.0] | [17.0, 17.0] | [50, 59] |
p02783 | u688587139 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H, A = map(int, input().split())\n\nif H % A == 0:\n print(H/A)\nelse:\n print(H/A + 1)\n', 'H, A = map(int, input().split())\n\nif H % A == 0:\n print(H//A)\nelse:\n print(H//A + 1)\n'] | ['Wrong Answer', 'Accepted'] | ['s027045078', 's014189053'] | [2940.0, 2940.0] | [17.0, 19.0] | [89, 91] |
p02783 | u689299053 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H,A=int(input())\n \nprint((H // A)+1)', 'H,A=map(int,input().split())\n\nif H%A==0:\n print(H // A)\nelse:\n print((H // A)+1)'] | ['Runtime Error', 'Accepted'] | ['s809151824', 's115653600'] | [2940.0, 2940.0] | [18.0, 17.0] | [37, 82] |
p02783 | u692336506 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H, A = map(int, input().split())\nprint((H + A - 1) / A)', 'H, A = map(int, input().split())\ncounter = 0\nwhile H > 0:\n H -= A\n counter += 1\nprint(counter)'] | ['Wrong Answer', 'Accepted'] | ['s479141759', 's970803415'] | [9080.0, 9016.0] | [28.0, 29.0] | [55, 100] |
p02783 | u694321332 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['a,b = map(int,input().split())\nN = list(map(int,input().split()))\nprint("Yes" if sum(N) >= a else "No")', 'a,b = map(int,input().split())\nprint(a//b if a%b ==0 else a//b+1)'] | ['Runtime Error', 'Accepted'] | ['s384301248', 's611329646'] | [2940.0, 2940.0] | [18.0, 17.0] | [103, 65] |
p02783 | u697386253 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['h = int(input())\ncount = 0\ndef dfs(h):\n global count\n count += 1\n if h == 1:\n quit()\n else:\n dfs(h//2)\n dfs(h//2)\n\ndfs(h)\nprint(count)', 'h,a = map(int, input().split())\ncount = 0\n\nwhile h > 0:\n h -= a\n count += 1\n\nprint(count)'] | ['Runtime Error', 'Accepted'] | ['s202795828', 's647579161'] | [2940.0, 2940.0] | [17.0, 18.0] | [175, 91] |
p02783 | u697968316 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H, A = map(int, input().split())\n\nif H % A == 0:\n print(H / A)\n \nelif H % A != 0:\n print(H / A +1)', 'H,A = map(int,input().split())\n\nif H % A != 0:\n print(H//A)\n \nelif H % A == 0:\n print(H/A)', 'H, A = mat(int, input().split())\n\nif H % A == 0:\n print(H / A)\n \nelif H % A != 0:\n print(H / A +1)', 'H, A = map(int, input().split())\n\nif H % A == 0:\n print(H // A)\n \nelif H % A != 0:\n print(H // A +1)'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s333876850', 's854003037', 's955468782', 's139908368'] | [2940.0, 2940.0, 2940.0, 3316.0] | [17.0, 17.0, 18.0, 21.0] | [101, 93, 101, 103] |
p02783 | u704411633 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['import math\n\n#h = int(input())\n#a = int(input())\n\nh,a = map(int,input().split())\n\nprint(math.ceil((h+a)/a))\n', 'import math\n\n#h = int(input())\n#a = int(input())\n\nh,a = map(int,input().split())\n\nprint(math.ceil((h)/a))\n'] | ['Wrong Answer', 'Accepted'] | ['s266804183', 's037652605'] | [9004.0, 8988.0] | [29.0, 27.0] | [108, 106] |
p02783 | u711626986 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['a, b=map(int,input().split())\nc=a%b\nif c==0:\n print(a/b)\nelse:\n print(a/b+1)', 'a, b=map(int,input().split())\nc=a%b\nif c==0:\n print(a//b)\nelse:\n print(a//b+1)\n'] | ['Wrong Answer', 'Accepted'] | ['s796451998', 's266463803'] | [2940.0, 2940.0] | [17.0, 17.0] | [78, 81] |
p02783 | u716777673 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H, A = int(input().split())\nH = int(H)\nA = int(A)\ncnt=1\nwhile H-A>0:\n\tH=H-A\n cnt=cnt+1\nprint(cnt)', 'a, b = input().split()\nprint((a+b-1)//b)', 'a,b = input().split()\n##print(type(a))\na = int (a)\nb = int(b)\ncnt = 1 \nwhile a - b > 0:\n a=a-b\n cnt = cnt + 1\nprint(cnt)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s057768269', 's936889693', 's231550260'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 20.0] | [100, 40, 127] |
p02783 | u718411265 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H,A=map(int,input().split())\ncount=1\nif H%N==0:\n for i in range(H):\n if 0<H:\n H-A\n count+=1\n H-=A\n print(count)\nelse:\n for i in range(H):\n if 0<H:\n H-A\n count+=1\n H-=A\n print(count+1)', 'H,A=map(int,input().split())\ncount=1\nfor i in range(H):\n if 0<H:\n H-A\n count+=1\n H-=A\n\nprint(count)', 'H,A=map(int,input().split())\nif H%A==0:\n print(H//A)\nelse:\n print(H//A+1)'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s497604906', 's987151501', 's117990892'] | [3060.0, 2940.0, 2940.0] | [17.0, 19.0, 17.0] | [223, 109, 75] |
p02783 | u721425712 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['h,a = map(int, input().split())\n\nans = 0\nwhile h > a:\n h -= a\n ans += 1\n \nprint(ans)', 'h,a = map(int, input().split())\n\nif h%a == 0:\n print(h//a)\nelse:\n print(h//a + 1)\n '] | ['Wrong Answer', 'Accepted'] | ['s440330428', 's501760449'] | [2940.0, 2940.0] | [19.0, 17.0] | [87, 86] |
p02783 | u723792785 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['h,a=map(int, input())\nprint(h//a+1)', 'h,a=map(int,input().split())\nprint(int(h/a+0.99995))'] | ['Runtime Error', 'Accepted'] | ['s520312841', 's990936114'] | [2940.0, 2940.0] | [17.0, 17.0] | [35, 52] |
p02783 | u728318205 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ["h,n = map(int,input().split())\nlist1 = list(map(int,input().split()))\n\nif h-sum(list1)<=0:\n print('Yes')\nelse:\n print('No')", 'h,a = map(int,input().split())\n\nans =1\nwhile h-a>0:\n h-=a\n ans+=1\n\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s437500902', 's248804494'] | [2940.0, 2940.0] | [17.0, 19.0] | [129, 83] |
p02783 | u729836751 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H, A = map(int, input().split())\n\nwhile H > 0:\n H -= A\n\nprint(H)', 'H, A = map(int, input().split())\n\nc = 0\nwhile H > 0:\n H -= A\n c += 1\n\nprint(c)'] | ['Wrong Answer', 'Accepted'] | ['s502856289', 's572246425'] | [2940.0, 2940.0] | [18.0, 19.0] | [68, 84] |
p02783 | u729911693 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H, A = map(int, input().split())\nprint(int(H/A))', 'H, A = map(int, input().split())\nif(H%A > 0):\n print(int(H/A)+1)\nelse:\n print(int(H/A))'] | ['Wrong Answer', 'Accepted'] | ['s231310977', 's351713764'] | [2940.0, 2940.0] | [17.0, 17.0] | [48, 89] |
p02783 | u732034233 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['class Main:\n import math\n H = int(input())\n if H == 1:\n print(1)\n else:\n cnt = int(math.log(H, 2))\n num = 0\n for i in range(cnt+1):\n num += 2 ** i\n print(num)\n', 'class Main:\n import math\n H = int(input())\n if H == 1:\n print(1)\n else:\n cnt = int(math.log(H, 2))\n num = 0\n for i in range(cnt+1):\n num += 2 ** i\n print(num)', 'class Main:\n s = list(map(int, input().split()))\n h = s[0]\n a = s[1]\n cnt = 0\n if h >= a:\n while h > 0:\n h -= a\n cnt += 1\n\n else:\n cnt = 1\n print(cnt)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s565791568', 's756552535', 's583931478'] | [2940.0, 3060.0, 3060.0] | [17.0, 17.0, 19.0] | [221, 212, 207] |
p02783 | u732061897 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H,A = map(int,input().split())\nanswer = H // A\nif answer == 0:\n\tanswer += 1\nprint(answer)', 'H,A = map(int,input().split())\nprint(H//A)', 'H,A = map(int,input().split())\nanswer = H // A\nif answer == 0\n\tanswer += 1\nprint(answer)', 'H, A = map(int, input().split())\nans = H // A\nif H % A == 0:\n print(ans)\nelse:\n print(ans + 1)\n'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s036881883', 's112398394', 's887791202', 's333995394'] | [2940.0, 3060.0, 2940.0, 9056.0] | [18.0, 18.0, 17.0, 28.0] | [89, 42, 88, 101] |
p02783 | u735175408 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ["H,N=map(int,input().split())\nA=[int(x) for x in input().split()]\nif sum(A)>=H:\n print('Yes')\nelse:\n print('No')", 'H=int(input())\nA=int(input())\n\nans=0\nwhile True:\n H -= A\n ans += 1\n if H<=0:\n break\n \nprint(ans) ', "H,N=map(int,input().split())\nA=map(int,input().split())\nif sum(A)>=H:\n print('Yes')\nelse:\n print('No')", 'H,A=map(int,input().split())\n\n\nans=0\nwhile True:\n H -= A\n ans += 1\n if H<=0:\n break\n \nprint(ans) \n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s786854199', 's956481248', 's996386924', 's089607663'] | [2940.0, 2940.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0, 20.0] | [117, 116, 108, 123] |
p02783 | u735335967 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['def main():\n num = list(map(int, input().split()))\n h = num[0]\n a = num[1]\n return check(h, a)\n\ndef check(h,a):\n if (h % a) == 0:\n return h // a\n elif h > a:\n return 1\n elif (h % a) >= 1:\n return (h // a ) + 1\n \n print(main())\n ', 'def main():\n n, k = [int(i) for i in input().split()]\n num = [int(i) for i in input().split()]\n if k >= n:\n return 0\n else:\n l = sorted(num)\n return sum(l[0:n-k])\nprint(main())\n', 'def main():\n n, k = [int(i) for i in input().split()]\n num = [int(i) for i in input().split()]\n sorted(num)\n del num[-k:]\n print(sum(num))\nmain()\n', 'def main():\n n, k = [int(i) for i in input().split()]\n num = [int(i) for i in input().split()]\n if k >= n:\n return 0\n else:\n num = sorted(num)\n return sum(num[0:n-k])\nprint(main())\n', 'def main():\n n, k = [int(i) for i in input().split()]\n num = [int(i) for i in input().split()]\n if k >= n:\n return 0\n else:\n l = sorted(num)\n return sum(l[:-k])\nprint(main())\n', 'def main():\n num = [int(i) for i in input().split()]\n h = num[0]\n a = num[1]\n return attack(h, a)\n\ndef attack(h,a):\n if h % a == 0:\n return h // a\n elif h % a >= 1:\n return (h//a) + 1\n\nprint(main())\n'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s345010409', 's369888113', 's373058245', 's577019814', 's912628660', 's471815866'] | [2940.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 19.0, 17.0, 17.0] | [248, 211, 162, 215, 209, 231] |
p02783 | u737451238 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['h,a = map(int,input().split())\n\nprint(h // a)', 'h,a = map(int,input().split())\n\nif h % a != 0:\n ans = h // a + 1\nelse:\n ans = h // a\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s341099413', 's899330985'] | [3188.0, 2940.0] | [19.0, 17.0] | [45, 101] |
p02783 | u739843002 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['tmp = input().split(" ")\n\nHP = int(tmp[0])\nattack = int(tmp[1])\n\nprint(math.ceil(HP/attack))', 'import math\ntmp = input().split(" ")\n \nHP = int(tmp[0])\nattack = int(tmp[1])\n \nprint(math.ceil(HP/attack))'] | ['Runtime Error', 'Accepted'] | ['s991246546', 's813052932'] | [9092.0, 9020.0] | [22.0, 27.0] | [92, 106] |
p02783 | u742036388 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['n, k = map(int, input().split())\nh = list(map(int, input().split()))\n\nh.sort()\nfor i in range(k):\n h.pop()\n if len(h) == 0:\n break\nprint(0 if len(h) == 0 else sum(h))', 'h, a = map(int, input().split())\n\nfor i in range(1, h+1):\n if (h - a*i) <= 0:\n print(i)\n break'] | ['Runtime Error', 'Accepted'] | ['s741380709', 's473136169'] | [3060.0, 2940.0] | [19.0, 18.0] | [179, 111] |
p02783 | u743374900 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H , A = input().split()\nH , A = int(H), int(A)\nanswer = H // A\nif H % A == 0:\n print(answer)\nelse:\n print(anser + 1)', 'H, A = input().split()\nH, A = int(H), int(A)\nprint(H / A + 1)', 'H , A = input().split()\nH , A = int(H), int(A)\nanswer = H // A\nif H % A == 0:\n print(answer)\nelse:\n print(answer + 1)'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s956809919', 's984458470', 's296948921'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 18.0] | [122, 61, 123] |
p02783 | u745687363 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H, A = map(int, input().split())\nn = H+A-1//A\nprint(n)', 'H, A = int(input().split())\nn = H+A-1//A\nprint(n)', 'import math\nH, A = map(int, input().split())\nn = math.ceil(H/A)\nprint(n)\n'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s294102866', 's525378997', 's523756160'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [54, 49, 73] |
p02783 | u746849814 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['h, a = map(int, input())\n\nprint(h//a + h%a)\n', 'h, a = map(int, input().split())\n\nif h%a != 0:\n print(h//a + 1)\nelse:\n print(h//a)'] | ['Runtime Error', 'Accepted'] | ['s842714579', 's391404466'] | [2940.0, 2940.0] | [17.0, 17.0] | [44, 88] |
p02783 | u752522099 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['h,a = map(int,input().split())\n\nif h % a == 0:\n print(int(a))\nelse:\n print(int(a +1 ))\n', 'h,a = map(int,input().split())\n\nif h <= a:\n print(1)\nelse:\n if h % a == 0:\n body_point = int(h / a)\n print(body_point)\n else:\n body_point = int(h/a) + 1\n print(body_point) \n'] | ['Wrong Answer', 'Accepted'] | ['s803591988', 's687858699'] | [2940.0, 2940.0] | [17.0, 17.0] | [93, 211] |
p02783 | u754511616 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['a,b=list(map(int,input()))\ncount=0\nwhile (a<0):\n count+=1\n a-=b\nprint(count)\n ', 'a,b=list(map(int,input().split()))\ncount=0\nwhile (a<0):\n count+=1\n a-=b\nprint(count)\n ', 'a,b=list(map(int,input().split()))\ncount=0\nwhile (a>0):\n count+=1\n a-=b\nprint(count)\n '] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s472599966', 's933615785', 's559129556'] | [9132.0, 9020.0, 9136.0] | [25.0, 29.0, 30.0] | [81, 89, 89] |
p02783 | u755313517 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['h,a=map(int,input(),split())\n\nn=h/a+1\n\nprint (int(n))', 'import math\nh,a=map(int,input().split())\nprint (math.floor(h/a))', 'import math\nh,a=map(int,input().split())\nprint (math.ceil(h/a))'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s046208528', 's946646550', 's546723990'] | [2940.0, 2940.0, 3060.0] | [17.0, 17.0, 20.0] | [53, 64, 63] |
p02783 | u759412327 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H,A = map(int,input().split())\nprint(--H//A)', 'H,A = map(int,input().split())\nprint(-(-H//A))'] | ['Wrong Answer', 'Accepted'] | ['s802095947', 's428203038'] | [2940.0, 9112.0] | [17.0, 30.0] | [44, 46] |
p02783 | u762488523 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['a, b = map(int, input().split() ) \n\nresult=0\n\nif a % b <>0:\n result += 1 \n\nresult += a // b \nprint(result)\n\n#################\n\n', 'a, b = map(int, input().split() ) \n\nresult=0\n\nif a % b !=0:\n result += 1 \n\nresult += a // b \nprint(result)\n\n#####################\n\n'] | ['Runtime Error', 'Accepted'] | ['s791611575', 's551979004'] | [2940.0, 2940.0] | [17.0, 17.0] | [190, 194] |
p02783 | u767438459 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H,A=map(int,input().split());q=H//A;mod=H%A;print(q+mod)', 'H,A=map(int,input().split());q=H//A;mod=H%A;print(q+min(mod, 1))'] | ['Wrong Answer', 'Accepted'] | ['s426692010', 's721872753'] | [9156.0, 9164.0] | [23.0, 23.0] | [56, 64] |
p02783 | u768559443 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['h,a=map(int,input().split())\nprint(h//a if h%a+==0 else (h//a)+1)', 'h,a=map(int,input().split())\nprint(h//a if h%a==0 else (h//a)+1)'] | ['Runtime Error', 'Accepted'] | ['s915761511', 's621095029'] | [2940.0, 2940.0] | [17.0, 18.0] | [65, 64] |
p02783 | u769383879 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['h, a = map(int,input().split())\n\n\nprint(int((h+0.5)/a))', 'h, a = map(int,input().split())\n\nprint(int((h+1)/a))\n', 'h, a = map(int,input().split())\n\nif h%a == 0:\n print(h/a)\nelse:\n print(h/a+1)\n', 'import math\n\nn, d, a = map(int,input().split())\nxh = [[0 for i in range(2)] for j in range(n)]\nfor i in range(n):\n x,h = map(int,input().split())\n xh[i] = [x,h]\n\nnum = 0\nxh.sort(key=lambda xh:xh[0])\n\ndam = [0]*n\nfor i in range(n):\n res = xh[i][1]-dam[i]\n pos = xh[i][0]\n if res > 0:\n nat = math.ceil(res/a)\n num += nat\n for j in range(i+1,n):\n if xh[j][0]-d <= pos + d:\n dam[j] += a*nat\n else:\n break\n print(dam)\nprint(num)\n', 'import numpy as np\n\nh, n = map(int,input().split())\na = np.zeros(n, dtype = int)\nb = np.zeros(n, dtype = int)\nfor i in range(n):\n a[i], b[i] = map(int,input().split())\n\ndp = np.zeros(10001, dtype = int)\n\nfor i in range(10001):\n dp[i] = (dp[i-a]+b).min()\n\nprint(dp[h])\n', 'h, n = map(int,input().split())\na = list(input().split())\nfor i in n:\n h -= int(a[i])\n\nif h > 0:\n print(\'No\')\nelse:\n print("Yes")\n', 'h, a = map(int,input().split())\n\nif h%a == 0:\n print(int(h/a))\nelse:\n print(int(h/a)+1)\n'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s025451199', 's141770578', 's364360699', 's549587538', 's617197236', 's893453643', 's403058078'] | [2940.0, 2940.0, 2940.0, 3064.0, 12484.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 154.0, 17.0, 17.0] | [55, 53, 84, 515, 274, 139, 94] |
p02783 | u770486670 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['h,a = map(int,input().split())\n\nans=h//a\nif(h%a!=0):\n ans++\nprint(ans)\n', 'h,a = map(int,input().split())\n\nans=(h+a-1)/a\nprint(ans)', 'h,a = map(int,input().split())\n\nans=h//a\nif(h%a!=0):\n ans+=1\nprint(ans)'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s827610831', 's959618405', 's974059898'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [74, 56, 74] |
p02783 | u770944306 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['H, A = input().split() \n\nimport math\n\nprint(math.ceil(H/A))', 'H, A = map(int, input().split())\n\nimport math\n\nprint(math.ceil(H/A))'] | ['Runtime Error', 'Accepted'] | ['s038790810', 's529434129'] | [8960.0, 9100.0] | [24.0, 29.0] | [59, 68] |
p02783 | u771167374 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['from collections import deque \nimport math\nn, d, a = map(int, input().split())\nl = [list(map(int, input().split())) for _ in range(n)]\nl.sort(key = lambda x:x[0])\ncnt = 0\nqueue = deque()\nsum_bomb = 0\nfor i in range(n):\n while len(queue) != 0 and queue[0][0]<l[i][0]:\n sum_bomb -= queue[0][1] * a\n queue.popleft()\n l[i][1] -= sum_bomb\n if l[i][1] <= 0 :\n continue\n num = math.ceil(l[i][1]/a)\n right = l[i][0] + 2 * d\n queue.append([right, num])\n cnt += num\n sum_bomb += num * a\nprint(cnt)\n', 'h, a = map(int, input().split())\nprint(h//a+1 if h%a!=0 else h//a)'] | ['Runtime Error', 'Accepted'] | ['s726045715', 's788590702'] | [9480.0, 2940.0] | [29.0, 17.0] | [533, 66] |
p02783 | u773265208 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ["from bisect import bisect_left\nimport math\nimport sys\nreadlines = sys.stdin.readline\n\ndef main():\n n,d,a = map(int,input().split())\n xx = []\n hh = []\n X = []\n H = []\n for _ in range(n):\n tmp = list(map(int,input().split()))\n xx.append(tmp[0])\n hh.append(tmp[1])\n\n k = zip(xx,hh)\n q = sorted(k)\n for xxx,hhh in q:\n X.append(xxx)\n H.append(hhh)\n X = tuple(X)\n ans = 0\n end = n-1\n while True:\n x = X[end] - d\n start = bisect_left(X,x-d)\n num = math.ceil(H[end] / a)\n ans += num\n H[end] = 0\n e = end\n end = start-1\n for i in range(start,e):\n H[i] -= a * num\n if H[i] > 0:\n end = i\n if end < 0:\n break\n\n print(ans)\nif __name__ == '__main__':\n main()", 'import math\n\nh,a = map(int,input().split())\n\nprint(math.ceil(h/a))\n'] | ['Runtime Error', 'Accepted'] | ['s305923759', 's907876967'] | [3064.0, 2940.0] | [18.0, 17.0] | [723, 67] |
p02783 | u775681539 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['#python3\nfrom numpy import ceil\nh, a = map(int, input().split())\n\nprint(ceil(h/a))\n', '#python3\nfrom numpy import ceil\nh, a = map(int, input().split())\nn = ceil(h/a)\nprint(int(n))\n'] | ['Wrong Answer', 'Accepted'] | ['s679317829', 's485237395'] | [21924.0, 12424.0] | [324.0, 150.0] | [83, 93] |
p02783 | u780147002 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['import math\nH,A = map(int,input().split())\nX = math.ceil(H/A)', 'H,A = map(int,input().split())\nprint(H//A)', 'import math\nH,A = map(int,input().split())\nX = math.ceil(H/A)\nprint(X)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s048088683', 's395152165', 's024981413'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [61, 42, 70] |
p02783 | u782967113 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['import sys\n\nfor line in sys.stdin:\n a, b = list(map(lambda x: int(x), line.split()))\n print h // a', 'import sys\n \nfor line in sys.stdin:\n h, a = list(map(lambda x: int(x), line.split()))\n hits = h // a\n if a % h and a > 0:\n return hits\n return hits + 1\n', 'import sys\n \nfor line in sys.stdin:\n h, a = list(map(lambda x: int(x), line.split()))\n hits = h // a\n if a % h and a > 0:\n print(hits)\n else:\n \tprint(hits + 1)\n', 'import sys\n \nfor line in sys.stdin:\n h, a = list(map(lambda x: int(x), line.split()))\n hits = h // a\n if h % a and a > 0:\n print(hits)\n else:\n \tprint(hits + 1)\n', 'import sys\n \nfor line in sys.stdin:\n h, a = list(map(lambda x: int(x), line.split()))\n print(h // a)', 'import sys\n \nfor line in sys.stdin:\n h, a = list(map(lambda x: int(x), line.split()))\n hits = h // a\n if h % a == 0 and a > 0:\n print(hits)\n else:\n \tprint(hits + 1)\n'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s122348918', 's602766981', 's622985516', 's878968881', 's965987130', 's815441016'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0, 18.0, 17.0] | [104, 169, 182, 182, 106, 187] |
p02783 | u789840108 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ["h a = map(int, input().split(' '))\nif h % a == 0:\n print(h // a)\nelse:\n print(h // a + 1)", "h, a = map(int, input().split(' '))\nif h % a == 0:\n print(h // a)\nelse:\n print(h // a + 1)"] | ['Runtime Error', 'Accepted'] | ['s852315025', 's172250145'] | [2940.0, 2940.0] | [18.0, 17.0] | [95, 96] |
p02783 | u792195263 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['N, K =map(int, input().split())\nH_list = list(map(int, input().split()))\n\nprint(H_list)', 'import math\n\nH, A = map(int, input().split())\n\nprint(math.ceil(H/A))'] | ['Runtime Error', 'Accepted'] | ['s404147591', 's067071354'] | [2940.0, 2940.0] | [17.0, 17.0] | [87, 68] |
p02783 | u798316285 | 2,000 | 1,048,576 | Serval is fighting with a monster. The _health_ of the monster is H. In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health. Serval wins when the monster's health becomes 0 or below. Find the number of attacks Serval needs to make before winning. | ['h=int(input())\nans=0\nc=1\nwhile h>1:\n ans+=c\n c*=2\n h//=2\nans+=c\nprint(ans)', 'import math\nh,a=map(int,input().split())\nprint(math.ceil(h/a))'] | ['Runtime Error', 'Accepted'] | ['s452721783', 's333077272'] | [2940.0, 2940.0] | [18.0, 17.0] | [83, 62] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.