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 | u129961029 | 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())\ns=list(map(int,input().split()))\nif a<=sum(s):\n print ("Yes")\nelse:\n print("No")\n\n', 'a,b=map(int,input().split())\ns=list(map(int,input().split()))\ncount=0\nfor i in range(b):\n for j in range(i,b):\n if a<s[i]+s[j] and count==0:\n print("yes")\n count+=1\nif count==0:\n print("no")\n', 'a,b=map(int,input().split())\ns=list(map(int,input().split()))\ncount=0\nfor i in range(b):\n for j in range(i,b):\n if a<s[i]+s[j] and count==0:\n print("yes")\n count+=1\nif count==0:\n print("no")\n', 'a,b=map(int,input().split())\ncount=0\nwhile a>0:\n count+=1\n a-=b\nprint(count)\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s212385226', 's555069035', 's749511786', 's421585566'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 19.0] | [117, 242, 242, 83] |
p02783 | u129978636 | 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())\nt=h%a\nif(t>0):\n print((h//a)+t)\nelse:\n print(h//a)', 'h,a=map(int,input().split())\nt=h%a\nif(t>0):\n print((h//a)+1)\nelse:\n print(h//a)\n'] | ['Wrong Answer', 'Accepted'] | ['s656832331', 's100122650'] | [2940.0, 2940.0] | [17.0, 17.0] | [81, 82] |
p02783 | u133356863 | 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()))\nsum=0\nfor i in range(n):\n sum+=a[i]\nprint('Yes' if sum>=h else 'No')", 'h,a=map(int,input().split())\nif h%a==0:\n print(h//a)\nelse:\n print(1+h//a)'] | ['Runtime Error', 'Accepted'] | ['s800023022', 's409938431'] | [2940.0, 2940.0] | [17.0, 17.0] | [133, 79] |
p02783 | u133833119 | 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(int(math.floor(H/A)))', 'import math\nH, A = map(int, input().split())\nprint(int(math.ceil(H/A)))'] | ['Wrong Answer', 'Accepted'] | ['s519317544', 's552613914'] | [2940.0, 2940.0] | [17.0, 18.0] | [72, 71] |
p02783 | u135346354 | 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\ninput = sys.stdin.readline\n\nN, D, A = map(int, input().split())\nS = [0]*N\nfor i in range(N):\n x, h = map(int, input().split())\n if h % A == 0:\n h //= A\n else:\n h = h//A + 1\n S[i] = [x, h]\n\nS.sort()\nprint(S)\ncnt = 0\n\nfor i in range(N):\n if S[i][1] <= 0:\n continue\n cnt += S[i][1]\n dmg = S[i][1]\n max_X = S[i][0] + D*2\n for j in range(i+1, N):\n if S[j][0] > max_X:\n break\n S[j][1] -= dmg\n\nprint(cnt)\n', 'H, A = map(int, input().split())\n\nif H % A == 0:\n print(H//A)\nelse:\n print(H // A + 1) '] | ['Runtime Error', 'Accepted'] | ['s222507516', 's798493749'] | [3064.0, 2940.0] | [18.0, 17.0] | [482, 93] |
p02783 | u137808818 | 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)', 'import math\nh,a = map(int,input().split())\nprint(math.ceil(h/a))'] | ['Runtime Error', 'Accepted'] | ['s236943764', 's576537336'] | [2940.0, 2940.0] | [18.0, 17.0] | [42, 64] |
p02783 | u144203608 | 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(1)\nelif H/A:\n print(H/A)\nelse :\n print((H//A)+1)\n ', 'H,A=map(int,input().split())\nimport math\nprint(math.ceil(H/A))'] | ['Wrong Answer', 'Accepted'] | ['s094253759', 's300723295'] | [2940.0, 2940.0] | [17.0, 17.0] | [100, 62] |
p02783 | u159144188 | 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 = H // A\nif H % A != 0:\n ans = ans + 1\nprint(ans)', 'H, A = map(int, input().split())\nans = H // A\nif H % A != 0:\n ans = ans + 1\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s151041709', 's760475967'] | [9012.0, 9076.0] | [24.0, 25.0] | [85, 87] |
p02783 | u163529815 | 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 = [0] * N\nB = [0] * N\nfor i in range(N):\n A[i], B[i] = map(int, input().split())\nma = max(A)\ndp = [float("inf")] * (H + ma)\ndp[0] = 0\nfor i in range(N):\n a = A[i]\n b = B[i]\n for j in range(1, H + ma):\n dp[j] = min(dp[j - a] + b, dp[j])\nprint(min(dp[H:]))\n', 'H, A = map(int,input().split())\nif H % A == 0:\n print(H // A)\nelse:\n print(H // A + 1)\n'] | ['Runtime Error', 'Accepted'] | ['s219371142', 's658660808'] | [3188.0, 2940.0] | [17.0, 17.0] | [307, 93] |
p02783 | u163703551 | 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 socket\n\nhostname = socket.gethostname()\n\nif hostname == 'F451C':\n sys.stdin = open('a1.in')\n\n\ndef read_int_list():\n return list(map(int, input().split()))\n\n\ndef read_str_list():\n return input().split()\n\n\ndef read_int():\n return int(input())\n\n\ndef read_str():\n return input()\n\n\ndef main():\n H, A = read_int_list\n res = 0\n for i in range(n):\n H = H - A\n res += 1\n if H <= 0:\n break\n print(res)\n\n\nmain()\n", "import sys\nimport socket\n\nhostname = socket.gethostname()\n\nif hostname == 'F451C':\n sys.stdin = open('a1.in')\n\n\ndef read_int_list():\n return list(map(int, input().split()))\n\n\ndef read_str_list():\n return input().split()\n\n\ndef read_int():\n return int(input())\n\n\ndef read_str():\n return input()\n\n\ndef main():\n H, A = read_int_list()\n res = 0\n for i in range(n):\n H = H - A\n res += 1\n if H <= 0:\n break\n print(res)\n\n\nmain()\n", "import sys\nimport socket\n\nhostname = socket.gethostname()\n\nif hostname == 'F451C':\n sys.stdin = open('a1.in')\n\n\ndef read_int_list():\n return list(map(int, input().split()))\n\n\ndef read_str_list():\n return input().split()\n\n\ndef read_int():\n return int(input())\n\n\ndef read_str():\n return input()\n\n\ndef main():\n H, A = read_int_list()\n res = 0\n for i in range(n):\n H = H - A\n res += 1\n if H <= 0:\n break\n print(res)\n\n\nmain()\n", "import sys\nimport socket\n\nhostname = socket.gethostname()\n\nif hostname == 'F451C':\n sys.stdin = open('a1.in')\n\n\ndef read_int_list():\n return list(map(int, input().split()))\n\n\ndef read_str_list():\n return input().split()\n\n\ndef read_int():\n return int(input())\n\n\ndef read_str():\n return input()\n\n\ndef main_0():\n H, A = read_int_list()\n res = 0\n for i in range(10001):\n H = H - A\n res += 1\n if H <= 0:\n break\n print(res)\n\n\ndef main_1():\n H, A = read_int_list()\n res = H // A\n if H % A != 0:\n res += 1\n print(res)\n\n\ndef main():\n H, A = read_int_list()\n res = 0\n while H > 0:\n H -= A\n res += 1\n print(res)\n\nmain_1()\n"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s022833088', 's072586556', 's280750633', 's548344615'] | [3060.0, 3060.0, 3696.0, 3828.0] | [17.0, 18.0, 27.0, 28.0] | [464, 466, 470, 699] |
p02783 | u164678731 | 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. | ['# coding: utf-8\nfrom math import floor\nh, a = map(int, input().split())\nprint(floor(h / a))', '# coding: utf-8\nfrom math import ceil\nh, a = map(int, input().split())\nprint(ceil(h / a))'] | ['Wrong Answer', 'Accepted'] | ['s896668774', 's872875206'] | [2940.0, 2940.0] | [18.0, 17.0] | [91, 89] |
p02783 | u166807268 | 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 = [int(x) for x in input().split()]\nH = [int(x) for x in input().split()]\nprint(math.ceil(H))', 'import math\nH, A = [int(x) for x in input().split()]\nprint(math.ceil(A))', 'import math\n\nA = [int(x) for x in input().split()]\nH = [int(x) for x in input().split()]\nprint(math.ceil(H/A))', 'import math\n\nH, A = [int(x) for x in input().split()]\nprint(math.ceil(H/A))'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s324881174', 's593208209', 's873414041', 's649032114'] | [2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 18.0, 17.0, 17.0] | [107, 72, 110, 75] |
p02783 | u167932128 | 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\nH, N = map(int, input().split())\nA, B = np.zeros(N, dtype=np.int), np.zeros(N, dtype=np.int)\n\nfor i in range(N):\n A[i], B[i] = map(int, input().split())\n\nC = np.zeros(H+1, dtype=np.int)\nmin_cost_A = int(A[B.argmin()])\nC[1:min_cost_A+1] = min(B)\nsa = np.zeros(N, dtype=np.int)\n\ndef hoggg(C, A, B, i, N):\n for j in range(N):\n if A[j] >= i:\n sa[j] = B[j]\n else:\n sa[j] = C[i - A[j]] + B[j]\n return min(sa)\n\nfor i in range(min_cost_A, H+1):\n C[i] = hoggg(C, A, B, i, N)\n\nprint(int(C[H]))', 'H, A = map(int, input().split())\n\ni, m = divmod(H, A)\n\nif m != 0:\n i += 1\n\nprint(i)\n\n'] | ['Runtime Error', 'Accepted'] | ['s559929517', 's892967348'] | [12568.0, 2940.0] | [148.0, 18.0] | [551, 88] |
p02783 | u168416324 | 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=h//a+1\nif h%a==0:\n ans-=1\nprint(ans)\n', 'h,a=map(int,input().split())\nans=0\nwhile h>a:\n h-=a\n ans+=1\nprint(ans)\n', 'n,k=map(int,input().split())\nmon=list(map(int,input().split()))\nmon.sort(reverse=True)\nfor i in range(k):\n mon.pop(0)\nprint(sum(mon))\n \n', 'n,k=map(int,input().split())\nmon=list(map(int,input().split()))\nmon.sort(reverse=True)\n\nprint(sum(mon[k:]))\n', 'h,a=map(int,input().split())\nans=h//a+1\nif h%a==0:\n ans-=1\nprint(ans)\n'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s061093509', 's272079192', 's328557642', 's551971635', 's738254854'] | [8912.0, 9060.0, 9040.0, 8956.0, 9056.0] | [23.0, 26.0, 26.0, 23.0, 29.0] | [70, 73, 138, 108, 71] |
p02783 | u169138653 | 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 math import ceil\nh,a=map(int,input().split())\nprint(h/a)', 'from math import ceil\nh,a=map(int,input().split())\nprint(ceil(h/a))\n'] | ['Wrong Answer', 'Accepted'] | ['s314297331', 's902122301'] | [2940.0, 2940.0] | [17.0, 17.0] | [61, 68] |
p02783 | u170296094 | 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\nn = round((int(H)/int(A)) + 0.5)\n\nprint(n)10', 'H, A = input().split()\n\nn = (int(H)/int(A)) +(int(H)%int(A)>0)\n\nprint(int(n))'] | ['Runtime Error', 'Accepted'] | ['s994184272', 's784683120'] | [2940.0, 2940.0] | [17.0, 17.0] | [68, 77] |
p02783 | u170410075 | 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()))\nh.sort(reverse=True)\nc=0\nfor i in range(k):\n h.pop(0)\n \nfor i in range(len(h)):\n c+=h[i]\nprint(c)\n', 'h,a=map(int,input().split())\n\nt=h%a\nh-=t\nc=int(h/a)\nprint(c)', 'import math\nh,a=map(int,input().split())\nt=math.ceil(h/a)\nprint(t)\n'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s042833697', 's808599704', 's313953213'] | [3060.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [169, 60, 67] |
p02783 | u172147273 | 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())\na=int(input())\nprint((h+a-1)//a)', 'h,a= map(int, input().split())\nprint((h+a-1)//a)'] | ['Runtime Error', 'Accepted'] | ['s786138231', 's162321293'] | [2940.0, 2940.0] | [18.0, 17.0] | [47, 48] |
p02783 | u175590965 | 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())\nprint((a+b)/b-1)', 'a,b = map(int,input().split())\nprint((a+b)//b-1)', 'h,a =map(int,input().split())\nprint((h+a-1)//a)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s377389924', 's514421410', 's294357937'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [47, 48, 47] |
p02783 | u175746978 | 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'] | ['s951842590', 's560017231'] | [2940.0, 2940.0] | [20.0, 18.0] | [87, 89] |
p02783 | u178304274 | 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())\na = int(input())\nans = 0\nans = h // a\nans += 1\nprint(ans)', 'h,a = list(map(int,input().split()))\nans = 0\nsyou = h // a\nmod = h % a\nans = syou\nif(mod != 0):\n ans += 1\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s823330818', 's281064655'] | [2940.0, 3316.0] | [17.0, 18.0] | [74, 119] |
p02783 | u178806894 | 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[h,a]=input().split()\nmath.ceil(int(h)/int(a))', 'import math\n[h,a]=input().split()\nprint(math.ceil(int(h)/int(a)))\n'] | ['Wrong Answer', 'Accepted'] | ['s977789350', 's979159977'] | [2940.0, 2940.0] | [18.0, 18.0] | [58, 66] |
p02783 | u179749305 | 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. | ['# -*- coding: utf-8 -*-\nimport math\n\nn = input().split(" ")\nh = int(n[0])\na = int(n[1])\n\ndef main(health, attack):\n total = health / attack\n return math.ceil(total)\n\n\nif __name__ == \'__main__\':\n main(h, a)', '# -*- coding: utf-8 -*-\nimport math\n\nn = input().split(" ")\nh = int(n[0])\na = int(n[1])\n\ndef main(health, attack):\n total = health / attack\n print(math.ceil(total))\n\n\nif __name__ == \'__main__\':\n main(h, a)'] | ['Wrong Answer', 'Accepted'] | ['s347142767', 's236528341'] | [3060.0, 3060.0] | [18.0, 17.0] | [214, 214] |
p02783 | u181519750 | 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_str, A_str = input().split('')\n\nprint(int(H_str) // int(A_str) + 1)", "H_str, A_str = input().split(' ')\nH = int(H_str)\nA = int(A_str)\n\nif H % A == 0:\n print(H // A)\nelse:\n print(H // A + 1)"] | ['Runtime Error', 'Accepted'] | ['s335071154', 's832650925'] | [2940.0, 2940.0] | [18.0, 17.0] | [69, 121] |
p02783 | u183200783 | 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\na = H/A\nif a != 0: a += 1\nprint(a)', 'H, A = map(int, input().split())\n\nnum = 0\nwhile True:\n H -= A\n num += 1\n if H <= 0:\n break\n\nprint(num)'] | ['Wrong Answer', 'Accepted'] | ['s286399159', 's220911278'] | [2940.0, 2940.0] | [17.0, 19.0] | [68, 118] |
p02783 | u183341342 | 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. | ['the_string = input()\na, b = the_string.split()\na = int(a)\nb = int(b)\nif a%b == 0:\n ans = a/b\nelse:\n ans = a/b +1\nprint(ans)', 'the_string = input()\na, b = the_string.split()\na = int(a)\nb = int(b)\nans = a/b + 1\nprint(ans)', 'the_string = input()\na, b = the_string.split()\na = int(a)\nb = int(b)\nif a%%b = 0:\n ans = a/b\nelse:\n ans = a/b +1\nprint(ans)', 'the_string = input()\na, b = the_string.split()\na = int(a)\nb = int(b)\nif a%b == 0:\n ans = a//b\nelse:\n ans = a//b +1\nprint(ans)'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s049678802', 's445973490', 's915458963', 's613782890'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [129, 93, 129, 131] |
p02783 | u185405877 | 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. | ['i = list(map(int, input().split()))\nif i[0]%i[1]==0:\n print(i[0]/i[1])\nelse:\n print((i[0]/i[1])+1)', 'n=int(input())\nz=0\nwhile n>0:\n z+=n\n n=n//2\nprint(z)', 'i = list(map(int, input().split()))\nif i[0]%i[1]==0:\n print(i[0]/i[1])\nelse:\n print((i[0]/i[1])+1)', 'i = list(map(int, input().split()))\nif i[0]%i[1]==0:\n print(i[0]//i[1])\nelse:\n print((i[0]//i[1])+1)'] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s045815199', 's490327171', 's841332354', 's656083911'] | [2940.0, 2940.0, 3060.0, 2940.0] | [17.0, 17.0, 21.0, 18.0] | [100, 54, 100, 102] |
p02783 | u185409358 | 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. | ['S1 = list(map(int, input().split()))\nS2 = list(map(int, input().split()))\n\nH = S1[0]\n\nif H > sum(S2):\n print("no")\nelse:\n print("yes")', 'H, A = map(int, input().split())\nprint(-(-H // A))'] | ['Runtime Error', 'Accepted'] | ['s534086621', 's160603895'] | [2940.0, 2940.0] | [18.0, 17.0] | [140, 50] |
p02783 | u193264896 | 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\nfrom collections import Counter\nfrom itertools import product, permutations,combinations\nfrom operator import itemgetter\nfrom heapq import heappop, heappush\nfrom bisect import bisect_left, bisect_right, bisect\n\n#from scipy.sparse.csgraph import shortest_path, floyd_warshall, dijkstra, bellman_ford, johnson, minimum_spanning_tree\n#from scipy.sparse import csr_matrix, coo_matrix, lil_matrix\n#import numpy as np\nfrom fractions import gcd\nfrom math import ceil,floor, sqrt, cos, sin, pi, factorial\nimport sys\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\nsys.setrecursionlimit(10**8)\nINF = float('inf')\n\ndef main():\n h, a = map(int, readline().split())\n print(h//a+1)\n \n \nif __name__ == '__main__':\n main()", "import sys\nimport math\nreadline = sys.stdin.buffer.readline\nsys.setrecursionlimit(10 ** 8)\nINF = float('inf')\nMOD = 10 ** 9 + 7\n\ndef main():\n H, A = map(int, readline().split())\n print(math.ceil(H/A))\n\nif __name__ == '__main__':\n main()"] | ['Wrong Answer', 'Accepted'] | ['s846529871', 's200714914'] | [5588.0, 3060.0] | [54.0, 17.0] | [837, 245] |
p02783 | u198035503 | 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()\nprint(h // a)', 'h, a = input().split()\nh = int(h)\na = int(a)\nans = h // a + (0 if h % a == 0 else 1)\nprint(ans)\n'] | ['Runtime Error', 'Accepted'] | ['s233250999', 's905244119'] | [2940.0, 2940.0] | [17.0, 17.0] | [36, 96] |
p02783 | u201928947 | 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().cplit())\nprint(h//a+1)', 'h,a = map(int,input().split())\nif h % a == 0:\n print(h//a)\nelse:\n print(h//a+1)'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s873553562', 's944900731', 's116275425'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [42, 44, 81] |
p02783 | u202570162 | 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 ceilT(a,b): \n return (a+b-1)//b\nH,A=map(int,input().split())\nprint(ceil(H,A))', '\ndef ceilT(a,b): \n return (a+b-1)//b\nH,A=map(int,input().split())\nprint(ceilT(H,A))'] | ['Runtime Error', 'Accepted'] | ['s651999191', 's141000402'] | [2940.0, 2940.0] | [18.0, 17.0] | [116, 117] |
p02783 | u205087376 | 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())\nfor n in range(0,):\n if h - a*n <= 0\n exit()\nprint(n)', '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'] | ['s914027288', 's762027886'] | [2940.0, 2940.0] | [17.0, 17.0] | [86, 90] |
p02783 | u205936263 | 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. | ['10000 1', 'import math\n(H, A) = list(map(int, input().split()))\n\nprint(math.ceil(H / A))'] | ['Runtime Error', 'Accepted'] | ['s232233991', 's307365601'] | [2940.0, 3068.0] | [17.0, 18.0] | [7, 77] |
p02783 | u211277872 | 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)', 'h, a = map(int, input().split())\nif h%a == 0:\n print(h//a)\nelse:\n print(h//a+1)'] | ['Wrong Answer', 'Accepted'] | ['s022021397', 's218983254'] | [2940.0, 2940.0] | [17.0, 17.0] | [48, 81] |
p02783 | u217303170 | 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)', 'h,a = map(int,input().split())\nif h%a==0:\n print(h//a)\nelse:\n print(h//a+1)'] | ['Wrong Answer', 'Accepted'] | ['s864628729', 's302286138'] | [2940.0, 2940.0] | [18.0, 17.0] | [79, 81] |
p02783 | u217836256 | 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=input()\nA=input()\nn=H//A+1\nprint(n)', 'H=input()\nA=input()\nh = int(H)\na= int(A)\nn :int= h // a + 1\nprint(n)', 'H =input()\nA =input()\nh = int(H)\na = int(A)\nif h % a == 0:\n n = h // a\nelse:\n n = h // a +1\nprint(n)', 'h=input()\na=input()\nH = int(h)\nA= int(a)\nn :int= H // A + 1\nprint(n)', 'h=input()\na=input()\nH = int(h)\nA= int(a)\nn = H // A + 1\nprint(n)', 'H=input()\nA=input()\nh = int(H)\na = int(A)\nif mod(h,a) == 0:\n n = h // A\nelse:\n n = h // a +1\nprint(n)', 'H=input()\nA=input()\nh = int(H)\na = int(A)\nif mod(H,A) == 0:\n n = H // A\nelse:\n n = H // A +1\nprint(n)', 'H,A =input().split()\nh = int(H)\na = int(A)\nif h % a == 0:\n n = h // a\nelse:\n n = h // a +1\nprint(n)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s010656257', 's338956079', 's419855827', 's539201771', 's622795876', 's768027608', 's810831187', 's684380540'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 18.0, 17.0, 17.0, 17.0] | [37, 68, 106, 68, 64, 107, 107, 105] |
p02783 | u218071226 | 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+1)//a)', 'h, a = map(int, input().split())\nif a==1:\n\tprint(h)\nelse:\n\tprint((h-1)//a+1)'] | ['Wrong Answer', 'Accepted'] | ['s426518403', 's276097116'] | [2940.0, 2940.0] | [17.0, 17.0] | [48, 76] |
p02783 | u218393296 | 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\nwhile True:\n result = h - a\n if (result > 0):\n count += 1\n else:\n \tbreak \nreturn count', 'h,a=map(int, input().split())\ncount = 0\nwhile True:\n result = h - a\n if (result > 0):\n count += 1\n else:\n break \nprint(count)', 'h,a=map(int, input().split())\ncount = 0\nwhile True:\n h = h - a\n if (h > 0):\n count += 1\n else:\n break\nprint(count + 1)\n'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s236465056', 's878282668', 's700881975'] | [2940.0, 2940.0, 2940.0] | [17.0, 2104.0, 19.0] | [133, 134, 128] |
p02783 | u223555291 | 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=int(input())\nb=int(input())\nc=0\nwhile 1:\n a-=b\n c+=1\n if a<=0:\n break\n else:\n pass\nprint(c)', 'h,a=map(int,input().split())\ni=0\nwhile 1:\n i+=1\n h-=a\n if h<=0:\n break\nprint(i)\n'] | ['Runtime Error', 'Accepted'] | ['s183563676', 's586246587'] | [2940.0, 3060.0] | [17.0, 19.0] | [103, 96] |
p02783 | u224007104 | 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\ninput_list=sys.argv[0:]\nH=int(input_list[1])\nA=int(input_list[2])\nQ=math.ceil(H/A)\nprint(Q)', 'import math\nH=int(input())\nA=int(input())\nQ=math.ceil(H/A)\nprint(Q)', 'HN=input()\nHN_list=HN.split()\nH=int(HN_list[0])\nN=int(HN_list[1])\nA=input()\nA_list=A.split()\naaa=map(int, A_list)\nA_sum=sum(aaa)\nif A_sum>H:\n print("Yes")\nelse:\n print("No")', 'import math\nstr = input()\nstr_list=str.split()\nH=int(str_list[0])\nA=int(str_list[1])\nQ=math.ceil(H/A)\nprint(Q)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s037223744', 's257849084', 's455459855', 's645112939'] | [2940.0, 2940.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [114, 67, 179, 110] |
p02783 | u225493896 | 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 )\n', 'h, a = map(int, input().split())\nprint( h//a if h%a==0 else h//a+1)\n'] | ['Wrong Answer', 'Accepted'] | ['s801349673', 's955055486'] | [2940.0, 2940.0] | [17.0, 18.0] | [52, 68] |
p02783 | u231189826 | 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 = list(map(int, input().split()))\nA = []\nB = []\nfor _ in range(N):\n a,b = list(map(int, input().split()))\n A.append(a)\n B.append(b)\n\ndp = [float('inf') for i in range(H+max(A))]\ndp[0] = 0\n\nfor i in range(H+max(A)):\n m = []\n for j in range(N):\n if i-A[j] >= 0:\n m.append(dp[i-A[j]]+B[j])\n m.append(dp[i])\n dp[i] = min(m)\n\nprint(min(dp[H:]))\n\n\n", 'H,A = list(map(int, input().split()))\ni = 0\nwhile(True):\n i += 1\n if A * i >= H:\n break\n\nprint(i)'] | ['Runtime Error', 'Accepted'] | ['s970301578', 's153539825'] | [3064.0, 2940.0] | [18.0, 18.0] | [385, 110] |
p02783 | u231776587 | 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 = list(map(int, input().split()))\nlst = list(map(int, input().split()))\nsum = 0\nfor _ in range(n):\n sum += lst[_]\nif sum >= h:\n print('Yes')\nelse:\n print('No')", 'h, a = list(map(int, input().split()))\nb = int(h/a)\nif b == h/a:\n print(b)\nelse:\n print(b + 1)'] | ['Runtime Error', 'Accepted'] | ['s847636668', 's441673919'] | [3060.0, 2940.0] | [17.0, 17.0] | [167, 96] |
p02783 | u232652798 | 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 = [int(x) for x in input().split()]\nk = 0\nif m>n:\n print(1)\nelse:\n print(n//m)', 'n, m = [int(x) for x in input().split()]\nk = 0\nif m>n:\n print(1)\nelse:\n while n > 0:\n n = n - m\n k += 1\n print(k)'] | ['Wrong Answer', 'Accepted'] | ['s394414408', 's438621716'] | [2940.0, 2940.0] | [17.0, 19.0] | [89, 136] |
p02783 | u235066013 | 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(i)for i in input().split()]\nif h%a==0:\n print(h//a)\nelse:\n print(''h//a+1)", 'h,a=[int(i)for i in input().split()]\nif h%a==0:\n print(h//a)\nelse:\n print(h//a+1)'] | ['Runtime Error', 'Accepted'] | ['s141304331', 's807788896'] | [2940.0, 2940.0] | [17.0, 18.0] | [85, 83] |
p02783 | u237601489 | 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)+1)\n', 'h,a = map(int,input().split())\n\nprint(-(-h//a))\n'] | ['Wrong Answer', 'Accepted'] | ['s167327290', 's628701233'] | [2940.0, 2940.0] | [17.0, 17.0] | [52, 48] |
p02783 | u237634011 | 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))\n'] | ['Wrong Answer', 'Accepted'] | ['s083094655', 's374045875'] | [9036.0, 9108.0] | [28.0, 28.0] | [44, 55] |
p02783 | u238940874 | 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())\na = 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)'] | ['Runtime Error', 'Accepted'] | ['s348874197', 's320644665'] | [2940.0, 2940.0] | [17.0, 17.0] | [90, 87] |
p02783 | u243159381 | 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 True:\n h-=a\n cnt+=1\n if h<=0:\n break\nprint(cnt)', 'h,a=map(int,input.split())\ncnt=0\nwhile h>=0:\n h-=a\n cnt+=1\nprint cnt', 'h,a=map(int,input.split())\ncnt=0\nwhile h>=0:\n h-=a\n cnt+=1\nprint(cnt)', 'h,a=map(int,input.split())\ncnt=0\nwhile h>0:\n h-=a\n cnt+=1\nprint(cnt)', 'h,a=map(int,input().split())\ncnt=0\nwhile True:\n h-=a\n cnt+=1\n if h<=0:\n break\nprint(cnt)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s011776237', 's249154267', 's796312862', 's938661221', 's334655048'] | [9028.0, 8896.0, 8860.0, 9016.0, 9096.0] | [26.0, 27.0, 25.0, 21.0, 29.0] | [102, 74, 75, 74, 104] |
p02783 | u247552437 | 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(Hitpoint,Attack):\n count_num = 0\n while true:\n Hitpoint -= Attack\n count_num += 1\n if Hitpoint <= 0:\n break\n\nif __name__ == "__main__":\n inp=input() \n main(inp.replace(\' \', \',\'))', 'def main(Hitpoint,Attack):\n count_num = 0\n while True:\n Hitpoint -= Attack\n count_num += 1\n if Hitpoint <= 0:\n break\n return count_num\n \nif __name__ == "__main__":\n inp=input().split()\n hitpoint = int(inp[0])\n attack = int(inp[1])\n print(main(hitpoint,attack))'] | ['Runtime Error', 'Accepted'] | ['s980329754', 's319171593'] | [2940.0, 2940.0] | [18.0, 18.0] | [211, 289] |
p02783 | u250944591 | 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))', 'import math\nh,a=map(int,input().split())\nprint(math.ceil(h/a))'] | ['Wrong Answer', 'Accepted'] | ['s410044735', 's458562472'] | [9108.0, 8964.0] | [28.0, 28.0] | [63, 62] |
p02783 | u252964975 | 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\nH, A = map(int, input().split())\nn = math.floor(H/A)\n\n\n\nprint(n)', 'import math\n\nH, A = map(int, input().split())\nn = math.ceil(H/A)\nprint(n)\n'] | ['Wrong Answer', 'Accepted'] | ['s740265291', 's320186428'] | [2940.0, 2940.0] | [18.0, 17.0] | [127, 74] |
p02783 | u253011685 | 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())\nA=int(input())\n \nans=int(H//A)+1\nprint(ans)', 'H=int(input())\nA=int(input())\n\nans=int(H/A)+1\nprint(ans) ', 'H,A = map(int, input().split())\n\ncount=0\nwhile H >0:\n H -=A\n count+=1\n \nprint(count)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s305706754', 's685475486', 's825534270'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 19.0] | [58, 57, 93] |
p02783 | u254066052 | 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(x) for x in input().split()]\nattack = True\ncount = 0\nwhile(attack):\n H = H - A\n count = count + 1\n if H < 0:\n attack = False\n\nprint(count - 1)\n ', 'H , A = [int(x) for x in input().split()]\nattack = True\ncount = 0\n\nwhile(attack):\n H = H - A\n count = count + 1\n if H <= 0:\n attack = False\n\nprint(count)\n '] | ['Wrong Answer', 'Accepted'] | ['s391197313', 's667342289'] | [2940.0, 2940.0] | [19.0, 18.0] | [181, 179] |
p02783 | u255943004 | 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.ceil\nH,A = map(int,input().split())\nprint(ceil(H/A))', 'import math\nH,A = map(int,input().split())\nprint(math.ceil(H/A))'] | ['Runtime Error', 'Accepted'] | ['s728329340', 's037517015'] | [2940.0, 2940.0] | [17.0, 17.0] | [64, 64] |
p02783 | u264508862 | 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())\nprint(b//a+1)', 'import math\na,b=map(float,input().split())\nprint(math.ceil(a/b))'] | ['Wrong Answer', 'Accepted'] | ['s647996444', 's452177618'] | [2940.0, 2940.0] | [17.0, 17.0] | [42, 64] |
p02783 | u264681142 | 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 % 2 == 0:\n \tprint(h // a)\nelse:\n\tprint(h // a + 1)', 'h, a = map(int, input().split())\n\nans = (h + a - 1) // a\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s528171514', 's892271297'] | [2940.0, 2940.0] | [17.0, 17.0] | [90, 67] |
p02783 | u265118937 | 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 = 0\nwhile True:\n h = h - a\n n = n + 1\n if h >= a:\n break\nprint(n) ', 'h, a = map(int, input(). split())\nn = 0\nwhile h <= 0:\n h = h - a\n n = n + 1\nprint(n) ', 'h, a = map(int, input(), split())\nn = 0\nwhile h <= 0:\n h = h - a\n n = n + 1\nprint(n) ', 'h, a = map(int, input(), split())\nn = 0\nwhile True:\n h = h - a\n n = n + 1\n if h <= a:\n break\nprint(n) ', 'h, a = map(int, input(), split())\nn = 0\nwhile True:\n h = h - a\n n = n + 1\n if h <= 0:\n break\nprint(n) ', 'h, a = map(int, input(). split())\nn = 0\nwhile True:\n h = h - a\n n = n + 1\n if h <= 0:\n break\nprint(n) '] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s034594753', 's262638309', 's362355387', 's646363301', 's686740425', 's737332382'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3064.0] | [17.0, 17.0, 18.0, 17.0, 17.0, 18.0] | [118, 91, 91, 118, 118, 118] |
p02783 | u265506056 | 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 operator import itemgetter\nH,N=map(int,input().split())\nList=[]\nA=0\nB=0\nC=10*10*10*10\nD=0\nfor i in range(N):\n a,b=list(map(int,input().split()))\n c=a/b\n List.append((a,b,c))\nList1=sorted(List,key=itemgetter(2))\nList2=sorted(List,key=itemgetter(0))\nfor i in range(H):\n if A<H:\n h=H-A\n if h>=List1[N-1][0]:\n A=A+List1[N-1][0]\n B=B+List1[N-1][1]\n else:\n for j in range(N):\n if List2[j][0]>=h:\n temp1=List2[j][0]\n temp=List2[j][1]\n if temp<=C:\n C=temp\n D=temp1\n B=B+C\n A=A+D\n elif A>=H:\n break\nprint(B)', 'H,A=map(int,input().split())\nB=H//A\nif H%A==0:\n print(B)\nelse:\n print(B+1)'] | ['Runtime Error', 'Accepted'] | ['s624440476', 's664314449'] | [3064.0, 2940.0] | [18.0, 17.0] | [719, 80] |
p02783 | u265686269 | 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\nH = sys.stdin.readline()\nH = int(H)\n\ncount = 0\nroop_c = 2\nwhile True:\n H = H // 2\n count += roop_c\n roop_c *= 2\n\n if H == 1:\n break\n\nprint(count+1)\n', "import sys\ninputs = sys.stdin.readline()\ninputs = inputs.split()\n# inputs = inputs.split('')\n\nH, A = int(inputs[0]), int(inputs[1])\n\ncount = 0\nwhile H>0:\n H = H - A\n count += 1\nprint(count)\n"] | ['Runtime Error', 'Accepted'] | ['s974984600', 's581367965'] | [2940.0, 2940.0] | [18.0, 18.0] | [178, 197] |
p02783 | u267029978 | 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##i18n##\na = input().split()\nH = int(a[0])\nA = int(a[1])\n\nnum = H // A\nremain = H % A\nif remain != 0:\n out = num + 1\nelse:\n out = num \n\nprint(num)\n\n', '\n##i18n##\na = input().split()\nH = int(a[0])\nA = int(a[1])\n\nnum = H // A\nremain = H % A\nif remain >= 0:\n out = num + 1\nelse:\n out = num \n\nprint(num)\n\n', '\n##i18n##\na = input().split()\nH = int(a[0])\nA = int(a[1])\n\nnum = H // A\nremain = H % A\n\nif A >= H:\n out = 1\nelse:\n if remain > 0:\n out = num + 1\n else:\n out = num \n\nprint(num)\n\n', 'A ,H = map(int, input().split())\n\nnum = H // A\nremain = H % A\n\nif remain > 0:\n out = num + 1\nelse:\n out = num \n\nprint(out)\n', '\n##i18n##\na = input().split()\nH = int(a[0])\nA = int(a[1])\n\nnum = H // A\nremain = H % A\n\nif A >= H:\n out = 1\nelse:\n if remain > 0:\n out = num + 1\n else:\n out = num \n\nprint(out)\n\n'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s186160228', 's347205667', 's366448010', 's670753906', 's427507097'] | [2940.0, 3060.0, 2940.0, 2940.0, 2940.0] | [18.0, 19.0, 17.0, 18.0, 17.0] | [157, 157, 186, 130, 186] |
p02783 | u267267582 | 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()\nHA=HA.split()\nn=HA[0]/HA[1]\nif int(HA[0])%int(HA[1])==0:\n print(n)\nelse:\n print(n+1)', 'HA=input()\nHA=HA.split()\nn=int(HA[0])/int(HA[1])\nif int(HA[0])%int(HA[1])==0:\n print(int(n))\nelse:\n print(int(n+1))\n'] | ['Runtime Error', 'Accepted'] | ['s052927843', 's314467995'] | [2940.0, 2940.0] | [17.0, 19.0] | [97, 118] |
p02783 | u271230052 | 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())\na*m>=h\nprint(m)', 'h,a=map(int,input().split())\ni=0\nwhile h-a*i>0:\n i+=1\nprint(i)'] | ['Runtime Error', 'Accepted'] | ['s515719145', 's095447307'] | [2940.0, 2940.0] | [17.0, 19.0] | [45, 63] |
p02783 | u272150741 | 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 = input()\nA = input()\n\nif H%A == 0:\n return H/A\nelse:\n return H/A + 1', 'H = input()\nA = input()\n\nif H%A == 0:\n print(H/A)\nelse:\n print(H/A + 1)', 'H = int(input())\nA = int(input())\n \nif H%A == 0:\n ans = int(H/A)\n print(ans)\nelse:\n ans = int(H/A) + 1\n print(ans)', 'H, A = map(int, input().split())\nif H%A == 0:\n ans = int(H/A)\n print(ans)\nelse:\n ans = int(H/A) + 1\n print(ans)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s020216838', 's537201418', 's568609332', 's024626767'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0] | [73, 73, 126, 123] |
p02783 | u272457181 | 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())\nT = 0\nwhile H <= 0:\n H -= A\n T += 1\nprint(T)', 'H, A =map(int,input().split())\nT = 0\nwhile H > 0:\n H -= A\n T += 1\nprint(T)\n'] | ['Wrong Answer', 'Accepted'] | ['s907787200', 's147031474'] | [8972.0, 9156.0] | [32.0, 26.0] | [77, 77] |
p02783 | u273186459 | 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\nwhile h>:\n h=h-a\n count=count+1\nprint(count)', 'h,a=map(int,input().split())\ncount=0\nwhile h>0:\n h=h-a\n count=count+1\nprint(count)'] | ['Runtime Error', 'Accepted'] | ['s588563475', 's257431143'] | [8904.0, 9172.0] | [22.0, 25.0] | [83, 84] |
p02783 | u274635633 | 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=h//a\nif h%a!=0:\n ans+=1\nprint()\n', 'h,a=map(int,input().split())\nprint(h//a)', 'h,a=map(int,input().split())\nans=h//a\nif h%a!=0:\n ans+=1\nprint(ans)\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s134911279', 's536226600', 's367740859'] | [2940.0, 3064.0, 2940.0] | [17.0, 17.0, 20.0] | [66, 40, 69] |
p02783 | u276980836 | 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. | ['#!/usr/bin/env python3\nh,n = map(int,input().split())\na = list(map(int,input().split()))\nsum=0\nfor i in a:\n sum+=i\n\nif sum>=h:\n print("Yes")\nelse:\n print("No")\n', '#!/usr/bin/env python3\nH, A = map(int,input().split())\ncount=0\nwhile H>0:\n count+=1\n H-=A\nprint(count)\n'] | ['Runtime Error', 'Accepted'] | ['s513181092', 's922297074'] | [2940.0, 3060.0] | [17.0, 19.0] | [169, 109] |
p02783 | u277353449 | 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=h//a\nif ans%1!=0:\n ans=ans+1\nprint(ans)', 'h,a=map(int,input().split())\nans=h//a\nif h%a!=0:\n ans=ans+1\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s479479478', 's769439966'] | [2940.0, 2940.0] | [17.0, 17.0] | [75, 73] |
p02783 | u283341082 | 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())\nfrom math import floor\nprint(floor(H//A))', 'H, A = map(int, input().split())\nfrom math import ceil\nprint(ceil(H/A))'] | ['Wrong Answer', 'Accepted'] | ['s810357815', 's317729069'] | [2940.0, 3064.0] | [17.0, 26.0] | [74, 71] |
p02783 | u287920108 | 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())\na = int(input())\ncounter = 0\n\nwhile h > 0:\n h -= a\n counter += 1\n \nprint(counter)', 'h,a = map(int, input().split())\ncounter = 0\n\nwhile h > 0:\n h -= a\n counter += 1\n \nprint(counter)'] | ['Runtime Error', 'Accepted'] | ['s188579065', 's758214690'] | [2940.0, 2940.0] | [17.0, 19.0] | [107, 105] |
p02783 | u288980918 | 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)\n', 'H,A = map(int,input().split())\nprint(H//A if H%A == 0 else H//A+1)'] | ['Runtime Error', 'Accepted'] | ['s009269519', 's714131975'] | [9052.0, 9156.0] | [27.0, 25.0] | [67, 66] |
p02783 | u290234308 | 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())\nT = list(map(int, input().split()))\nT.sort()\nif K>=N:\n print(0)\nelse:\n for i in range(K):\n T.pop()\n \n print(sum(T)) ', 'def c(i):\n return i\n\nH,A = map(int, input().split())\na,b = map(c,divmod(H,A))\nif b==0:\n print(a)\nelse:\n print(a+1)\n'] | ['Runtime Error', 'Accepted'] | ['s877609555', 's086856400'] | [2940.0, 2940.0] | [17.0, 17.0] | [167, 124] |
p02783 | u290279680 | 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())\nprint((H+A-1)//A)'] | ['Runtime Error', 'Accepted'] | ['s742831445', 's166723321'] | [2940.0, 2940.0] | [17.0, 17.0] | [48, 50] |
p02783 | u296101474 | 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())\nprint(math.ceil(h//a + 1))\n', 'import Math\n\nh, a = map(int, input().split())\nprint(math.ceil(h/a))\n', 'import math\n\nh, a = map(int, input().split())\nprint(math.ceil(h/a))\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s300352360', 's963651251', 's249163881'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [73, 68, 68] |
p02783 | u296215701 | 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()))\n\nif(sum(A) > H):\n print("Yes")\nelse:\n print("No")\n', 'H,A=map(int, input().split())\n\ncount = 0;\n\nwhile(H > 0):\n H -= A\n count += 1\n \nprint(count)'] | ['Runtime Error', 'Accepted'] | ['s209546206', 's917247753'] | [2940.0, 2940.0] | [17.0, 18.0] | [118, 94] |
p02783 | u298633786 | 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 = map(int, input().split(' '))\nprint(math.ceil(H / A))"] | ['Runtime Error', 'Accepted'] | ['s013174471', 's152784677'] | [2940.0, 3064.0] | [17.0, 18.0] | [58, 71] |
p02783 | u300457253 | 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 = int(input())\nattack = int(input())\n\nprint(-(-(hp) //attack))\n\n', 'kazu = list(map(int, input().split()))\n\nprint(-(-(kazu[0]) // kazu[1]))\n'] | ['Runtime Error', 'Accepted'] | ['s008000202', 's513623125'] | [2940.0, 2940.0] | [17.0, 17.0] | [67, 72] |
p02783 | u301423857 | 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 = [int(x) for x in input().split()]\n\n# dp[i] = min magic points to decrease i health points\nmaxmax = 99999999\ndp = [maxmax for x in range(h+1)]\ndp[0] = 0\nfor x in range(n):\n a,b = [int(r) for r in input().split()]\n \n for j in range(h):\n dp[min(j+a, h)] = min(dp[min(j+a, h)], dp[j]+b)\n\nprint(dp[h])\n', 'a,b = [int(x) for x in input().split()]\n\nprint(a//b)', 'import math\na,b = [int(x) for x in input().split()]\n\nprint(math.ceil(a/b))\n'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s756286983', 's832529527', 's840509790'] | [3060.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [319, 52, 75] |
p02783 | u305349402 | 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 = input()\na = a.split(" ")\ni = 0\nwhile 1:\n if a[0]<0:\n break\n else:\n i = i+1\n \ta[0]=a[0]-a[1]\n \nprint(i)', 'a = input()\na = a.split(" ")\ni = 0\nwhile 1:\n if a[0]<0:\n break\n else:\n i = i+1\n a[0]=int(a[0])-int(a[1])\n \nprint(i)', 'a = input()\na = a.split(" ")\ni = 0\nwhile 1:\n if a[0]<0:\n break\n else:\n i = i+1\n \tb=a[0]-a[1]*i\n \nprint(i)', 'a = input()\na = a.split(" ")\ni = 0\nwhile 1:\n if int(a[0])=<0:\n break\n else:\n i = i+1\n a[0]=int(a[0])-int(a[1])\n \nprint(i)\n ', 'a = input()\na = a.split(" ")\ni = 0\nwhile 1:\n if int(a[0]) <= 0:\n break\n else:\n i = i+1\n a[0]=int(a[0])-int(a[1])\n \nprint(i)\n '] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s098558586', 's105309794', 's437298508', 's441158833', 's857370568'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 18.0, 17.0, 17.0, 24.0] | [117, 129, 116, 138, 140] |
p02783 | u308684517 | 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 print((h+a-1)//a)', 'h, a = map(int, input().split())\n print(h//a + h%a != 0)', 'h, a = map(int, input().split())\nprint((h+a-1)//a)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s081269556', 's291094071', 's020643356'] | [2940.0, 2940.0, 2940.0] | [19.0, 18.0, 18.0] | [52, 57, 50] |
p02783 | u310937700 | 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,H=input().split()\nprint(math.ceil(H/A))\n', 'import math\nA,H==(float(x) for x in input().split())\nprint(math.ceil(H/A))\n', 'import math\nH,A=(float(x) for x in input().split())\nprint(math.ceil(H/A))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s172359502', 's973499440', 's726136889'] | [2940.0, 2940.0, 2940.0] | [18.0, 18.0, 18.0] | [54, 75, 73] |
p02783 | u313238134 | 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. | ['b = int(input())\na = int(input())\nc = 0\nwhile (b>0):\n b = b-a\n c = c+1\nprint(c)', 'H = int(input())\nA = int(input())\nc = 0\nwhile (H>0):\n H = H-A\n c = c+1\nprint(c)', 'import math\nH = int(input())\nA = int(input())\nprint(math.ceil(H/A))', 'import math\n\nH, A = [int(x) for x in input().split()]\nprint(math.ceil(H/A))'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s259184821', 's655367594', 's731955179', 's094127290'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 17.0] | [85, 85, 67, 75] |
p02783 | u314057689 | 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(input().split())\n\nprint((h+a-1)//a)', 'h,a = map(int, input().split())\n\nprint((h+a-1)//a)\n\n'] | ['Runtime Error', 'Accepted'] | ['s578898516', 's568117920'] | [2940.0, 2940.0] | [17.0, 18.0] | [45, 52] |
p02783 | u317779196 | 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())\nans = math.ceil(h/a)\nprint(ans)', 'import math \nh, a = map(int, input().split())\nans = math.ceil(h/a)\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s115193532', 's756845076'] | [2940.0, 2940.0] | [17.0, 17.0] | [75, 77] |
p02783 | u318024671 | 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()))\natk = 0\nfor i in A:\n atk += i\nif H > atk:\n print("No")\nelse:\n print("Yes")', 'H, A = map(int, input().split())\ncount=0\nwhile(H > 0):\n H -= A\n count += 1\nprint(count)'] | ['Runtime Error', 'Accepted'] | ['s515430637', 's840835636'] | [9028.0, 8796.0] | [26.0, 28.0] | [152, 93] |
p02783 | u318740143 | 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 = (int(x) for x in input().split())\n\nK = N/M\n\nprint(K+1)', 'N,M = (int(x) for x in input().split())\n\nK = N/M\nif N < M:\n print(1)\nelse if N > M && N%M == 0:\n print(K)\nelse:\n print(K+1)\n\n', 'N,M = (int(x) for x in input().split())\n \nK = N/M\nif N < M:\n print(1)\nelif N%M == 0:\n print(K)\nelse:\n print(K+1)', 'N,M = (int(x) for x in input().split())\n \nK = int(N/M)\nif N < M:\n print(1)\nelif N%M == 0:\n print(K)\nelse:\n print(K+1)'] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s331881964', 's449570715', 's878805453', 's263127186'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [60, 128, 115, 120] |
p02783 | u319164479 | 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())\na = int(input())\ni = 0\nwhile h > 0:\n h = h - a\n i = i + 1\nprint(i)', 'h,a=(int(x) for x in input().split())\ni = 0\nwhile h > 0:\n h = h - a\n i = i + 1\nprint(i)'] | ['Runtime Error', 'Accepted'] | ['s801360162', 's685336922'] | [2940.0, 2940.0] | [17.0, 19.0] | [89, 93] |
p02783 | u319589470 | 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,inpit().split())\nans = 0\nfor k in range(100000000):\n h = h-a\n if h <=0:\n ans = k+1\n break\nprint(ans)', 'h,a = map(int,input().split())\nans = 0\nfor k in range(100000000):\n h = h-a\n if h <=0:\n ans = k+1\n break\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s051541046', 's166034848'] | [2940.0, 2940.0] | [17.0, 18.0] | [122, 122] |
p02783 | u323045245 | 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())\nq, mod = divmod(h, a)\nif mod != 0:\n print(q)\nelse:\n print(q+1)\n', 'h, a = map(int, input().split())\nq, mod = divmod(h, a)\nif mod == 0:\n print(q)\nelse:\n print(q+1)'] | ['Wrong Answer', 'Accepted'] | ['s225737689', 's706276207'] | [2940.0, 2940.0] | [17.0, 18.0] | [98, 97] |
p02783 | u325119213 | 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 = input()\n\nwaza = 0\nfor i in range(0, N):\n waza = waza + int(A.split()[i])\n\nif waza >= H:\n print("Yes")\nelse:\n print("No")\n', 'import math\n\nhp, attack = map(int, input().split())\n\nprint(math.ceil(hp / attack))\n\n\n#\n\n# print(x)\n# else:\n# print(x + 1)\n\n# count = 0\n# \n# while True:\n\n# count += 1\n# \n# if hp <= 0:\n# print(count)\n# break\n# \n'] | ['Runtime Error', 'Accepted'] | ['s641213146', 's372941718'] | [9096.0, 2940.0] | [24.0, 17.0] | [167, 298] |
p02783 | u327077757 | 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()),int(input())\nif(H%A != 0): print((H//A) + 1)\nelse: print(H/A)', 'import math\nH,A = map(int,input().split())\nprint(math.ceil(H/A))'] | ['Runtime Error', 'Accepted'] | ['s493629105', 's165617545'] | [2940.0, 2940.0] | [17.0, 17.0] | [80, 64] |
p02783 | u328510800 | 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())\ndp = [10 ** 9] * (h+1)\ndp[0] = 0\n\nfor ni in range(n):\n a, b = map(int, input().split())\n for hi in range(h):\n nj = min(j+a, h)\n dp[nj] = min(dp[nj], dp[j] + b)\n\nprint(dp[h])', 'h, a = map(int, input().split())\n\ncount = 0\nwhile True:\n h -= a\n count += 1\n if h <= 0:\n break\nprint(count)'] | ['Runtime Error', 'Accepted'] | ['s114931998', 's267653839'] | [3060.0, 2940.0] | [17.0, 19.0] | [214, 123] |
p02783 | u337626942 | 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 A>=H:\n\tprint(1)\nelse:\n print((N//M)+1)', 'H, A=map(int, input().split())\n\nif A>=H:\n\tprint(1)\nelif H%A==0:\n\tprint(H//A)\nelse:\n\tprint((H//A)+1)'] | ['Runtime Error', 'Accepted'] | ['s983401586', 's972285692'] | [2940.0, 2940.0] | [17.0, 18.0] | [74, 99] |
p02783 | u337820403 | 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(sum(sorted(list(map(int, input().split())))[:0 if n<=k else n-k]))', 'h, a = map(int, input().split())\nans = 0\nwhile h>0:\n h -= a\n ans += 1\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s027690833', 's115658370'] | [3060.0, 2940.0] | [19.0, 19.0] | [105, 86] |
p02783 | u340494803 | 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\nn, m = input().split()\nprint(math.ceil(n/m))', 'import math\nn, m = int(input().split())\nprint(math.ceil(n/m))\n', 'import math\nn, m = map(int, input().split())\nprint(math.ceil(n/m))\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s490127093', 's901064443', 's309861388'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [56, 62, 67] |
p02783 | u340781303 | 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 not h%1 else h//a + 1)', 'h,a = map(int, input().split())\nif h<=a: print(1)\nelse:\n\tprint(h//a if h%a==0 else h//a + 1)'] | ['Wrong Answer', 'Accepted'] | ['s193172871', 's035158902'] | [9080.0, 9088.0] | [30.0, 28.0] | [68, 92] |
p02783 | u343128979 | 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. | ['#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\nimport math\nimport string\n\n\ndef inputIntList():\n return [int(s) for s in input().split()]\n\n\ndef inputInt():\n return int(input())\n\n\ndef main():\n H, A = inputIntList()\n ans = math.floor(H / A)\n\n return ans\n\n\nif __name__ == "__main__":\n print(main())\n', '#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\nimport math\nimport string\n\n\ndef inputIntList():\n return [int(s) for s in input().split()]\n\n\ndef inputInt():\n return int(input())\n\n\ndef main():\n H, A = inputIntList()\n ans = math.ceil(H / A)\n\n return ans\n\n\nif __name__ == "__main__":\n print(main())\n'] | ['Wrong Answer', 'Accepted'] | ['s348703815', 's169286962'] | [3956.0, 3772.0] | [33.0, 25.0] | [301, 300] |
p02783 | u345483150 | 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().solit())\nif h%a==0:\n print(h/a)\nelse:\n print(int(h//a)+1)', 'h,a=map(int, input().solit())\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(int(h/a))\nelse:\n print(int(h//a)+1)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s251915333', 's990974481', 's374893442'] | [2940.0, 2940.0, 2940.0] | [17.0, 19.0, 17.0] | [80, 75, 84] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.