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
p02576
u586066708
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N = int(input())\nX = int(input())\nT = int(input())\nif N % X == 0:\n c = N / X\nelse:\n c = int(N / X) + 1 \nprint(c*T)\n', 'print("a")\nN = int(input("N = ?"))\nX = int(input("X = ?"))\nT = int(input("T = ?"))\nif N % X = 0:\n c = N / X\nelse:\n c = int(N / X) + 1 \nprint(c)', 'n, x, t = input().split()\nN = int(n)\nX = int(x)\nT = int(t)\nif N % X == 0:\n c = N / X\nelse:\n c = int(N / X) + 1 \nC = int(c)\nprint(C*T)\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s210602616', 's853218473', 's600868963']
[9108.0, 9008.0, 9156.0]
[31.0, 24.0, 27.0]
[121, 149, 140]
p02576
u586080208
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N = int(input())\nX = int(input())\nT = int(input())\nif N % X == 0 :\n print((N/X)*T)\nelse :\n print(((N/X)+1)*T)', 'N,X,T = map(int,input().split())\nif N % X == 0:\n print((N/X)*T)\nelse :\n print(((N/X)+1)*T)', 'N, X, T = map(int,input().split())\nprint(-(-N // X) * T)\n']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s753540315', 's884705030', 's644632399']
[9200.0, 9072.0, 9084.0]
[25.0, 28.0, 27.0]
[111, 92, 57]
p02576
u587429593
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n, x, t = list(map(input()))\n\nif n % x == 0:\n return n / x * t\nelse n % x != 0:\n return (n // x + 1) * t', 'import math\n\na = list(map(int, input()split()))\n\nprint(math.ceil(a[0] / a[1]) * a[2])', 'import math\n\na = list(map(int, input().split()))\n\nprint(math.ceil(a[0]/a[1]) * a[3])', 'import math\n\nn = input()\nx = input()\nt = input()\n\nif n % x == 0:\n return (n / x) * t\nelse n % x != 0:\n return math.ceil(n / x) * t\n\n', 'import math\n\na = list(map(int, input().split()))\n\nprint(math.ceil(a[0]/a[1]) * math[2])', 'import math\n\nn = input()\nx = input()\nt = input()\n\ndef takoyakikun():\n times = math.ceil(n/x)\n return times * t\n\nprint(takoyakikun)', 'a = list(map(int, input().split()))\n\nprint(math.ceil(a[0] / a[1]) * t)', 'import math\n\na = list(map(int, input().split()))\n\nprint(math.ceil(a[0] / a[1]) * a[2])']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s172841270', 's348197077', 's423653411', 's480243839', 's623076725', 's930083355', 's936618284', 's992410537']
[8840.0, 8948.0, 9076.0, 8888.0, 9068.0, 8980.0, 9020.0, 9100.0]
[23.0, 26.0, 26.0, 23.0, 28.0, 26.0, 28.0, 32.0]
[106, 85, 84, 134, 87, 132, 70, 86]
p02576
u587788111
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n.x.t = map(int, input().split())\nw = n//x\nif (n % x) == 0:\n print(w * t)\nelse:\n w += 1\n print(w * t)\n\n', 'N = input()\nX = input()\nT = input()\n\nwari = int( N / X )\n\nif N % X == 0:\n print (wari)\n else\n wari = wari + 1\n print (wari)', 'n = int(input())\nx = int(input())\nt = int(input())\nw = n//x\nif (n % x) == 0:\n print(w * t)\nelse:\n w += 1\n print(w * t)', 'n,x,t = map(int, input().split())\nw = n//x\nif (n % x) == 0:\n print(w * t)\nelse:\n w += 1\n print(w * t)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s078936637', 's110812602', 's615647570', 's969852837']
[8956.0, 8912.0, 8988.0, 9052.0]
[21.0, 25.0, 26.0, 25.0]
[112, 127, 127, 110]
p02576
u590628174
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['import math\nN, X, T = map(int,input().zsplit())\n\na = math.ceil(N / X)\nb = T * a\n\nprint(b)', 'import math\nN, X, T = map(int, input().split())\n\na = math.ceil(N / X)\nb = T * a\n\nprint(b)']
['Runtime Error', 'Accepted']
['s729817274', 's760709576']
[9044.0, 9144.0]
[28.0, 32.0]
[89, 89]
p02576
u595501477
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N = int(input())\nX = int(input())\nT = int(input())\n\na = N/X\nb = N//X\nk1 = a*T\nk2 = k1 + T\nif b == 0:\n print(k1)\nelse:\n print(k2)', 'N = int(input())\nX = int(input())\nT = int(input())\n\na = N/X\nb = N//X\nk1 = a*T\nk2 = k1 + 1\nif b == 0:\n print(k1)\nelse:\n print(k2)', 'N = int(input())\nk = 0\nx = 0\nwhile N > 1: \n N = N/10\n k += 1\nfor i in range(k):\n N = N*10\n a = N//10\n x = x + a\n N = N - a\nif x//9 == 0:\n print("yes")\nelse:\n print("no")', 'N = int(input())\nX = int(input())\nT = int(input())\n\na = N/X\nb = N//X\nif b == 0:\n print(a*T)\nelse:\n print(a*T + 1)\n ', 'N = float(input())\nX = float(input())\nT = float(input())\n\na = N/X\nb = N//X\nk1 = a*T\nk2 = k1 + T\nif b == 0:\n print(k1)\nelse:\n print(k2)', '[N, X, T] = input[] \n\na = N/X\nb = N//X\nk1 = a*T\nk2 = k1 + T\nif b == 0:\n print(k1)\nelse:\n print(k2)', 's = input().split()\nN = int(s[0])\nX = int(s[1])\nT = int(s[2])\na = N//X\nb = N%X\nk1 = a*T\nk2 = k1 + T\nif b == 0:\n print(k1)\nelse:\n print(k2)\n ']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s010600851', 's227131328', 's509213190', 's778951563', 's902192668', 's966672571', 's411732758']
[9172.0, 9088.0, 9004.0, 9056.0, 8948.0, 8852.0, 9108.0]
[23.0, 23.0, 22.0, 23.0, 23.0, 22.0, 33.0]
[130, 130, 177, 118, 136, 100, 143]
p02576
u602500004
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['import sys\nimport os\nfrom collections import deque\n\ndef _S(): return sys.stdin.readline().rstrip()\ndef I(): return int(_S())\ndef LS(): return list(_S().split())\ndef LI(): return list(map(int,LS()))\n\nif os.getenv("LOCAL"):\n inputFile = basename_without_ext = os.path.splitext(os.path.basename(__file__))[0]+\'.txt\'\n sys.stdin = open(inputFile, "r")\n\nINF = float("inf")\n\nH,W = LI()\nC = LI()\nD = LI()\nmaze = [list(_S()) for i in range(H)]\n\ndef bfs():\n \n d = [[INF] * W for i in range(H)]\n \n sx = C[0]-1\n sy = C[1]-1\n gx = D[0]-1\n gy = D[1]-1\n\n \n que = deque([])\n que.append((sx, sy))\n d[sx][sy] = 0\n\n \n que2 = deque([])\n\n \n dx = [1, 0, -1, 0]\n dy = [0, 1, 0, -1]\n\n \n dx2 = [-2, -2, -2, -2, -2, -1, -1, -1, -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2]\n dy2 = [-2, -1, 0, 1, 2, -2, -1, 1, 2, -2, 2, 2, 1, -1, -2, 2, 1, 0, -1, -2]\n\n while que: \n while que:\n p = que.popleft() \n \n if p[0] == gx and p[1] == gy:\n ans = d[p[0]][p[1]]\n print(ans)\n exit()\n que2.append((p[0], p[1]))\n \n for i in range(4):\n \n nx = p[0] + dx[i]\n ny = p[1] + dy[i]\n\n \n if 0 <= nx < H and 0 <= ny < W and maze[nx][ny] != "#" and d[nx][ny] == INF:\n \n que.append((nx, ny))\n d[nx][ny] = d[p[0]][p[1]]\n \n while que2:\n \n p = que2.popleft()\n for i in range(20):\n # for dxi in range(-2,3):\n # for dyi in range(-2,3):\n nx = p[0] + dx2[i]\n ny = p[1] + dy2[i]\n if 0 <= nx < H and 0 <= ny < W and maze[nx][ny] != "#" and d[nx][ny] == INF:\n \n que.append((nx, ny))\n d[nx][ny] = d[p[0]][p[1]]+1 \n \n return\n\nbfs()\nprint(-1)', 'import math\nimport numpy as np\nimport sys\nimport os\nfrom operator import mul\n\nsys.setrecursionlimit(10**7)\n\ndef _S(): return sys.stdin.readline().rstrip()\ndef I(): return int(_S())\ndef LS(): return list(_S().split())\ndef LI(): return list(map(int,LS()))\n\nif os.getenv("LOCAL"):\n inputFile = basename_without_ext = os.path.splitext(os.path.basename(__file__))[0]+\'.txt\'\n sys.stdin = open(inputFile, "r")\nINF = float("inf")\nIINF = 10 ** 18\nMOD = 10 ** 9 + 7\n# MOD = 998244353 \n\n# N = I()\nN,X,T = LI()\n\nans = math.ceil(N/X) * T\n\nprint(ans)']
['Runtime Error', 'Accepted']
['s405012561', 's598585225']
[9436.0, 27164.0]
[29.0, 119.0]
[2689, 545]
p02576
u602773379
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['\ndef input2():\n\treturn map(int,input().split())\n\n\ndef input_array():\n\treturn list(map(int,input().split()))\n \nn,x,t=input2()\nans=(math.ceil(n/x))*t\nprint(ans)', 'import math\n\n\ndef input2():\n\treturn map(int,input().split())\n\n\ndef input_array():\n\treturn list(map(int,input().split()))\n \nn,x,t=input2()\nans=(math.ceil(n/x))*t\nprint(ans)']
['Runtime Error', 'Accepted']
['s003542391', 's436513489']
[9060.0, 9048.0]
[25.0, 27.0]
[221, 234]
p02576
u607558942
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n, x, t = map(int, input().split())\nprint((n + x - 1) / x * t)', 'import math\nn, x, t = map(int, input().split())\nprint(math.ceil(n / x) * t)']
['Wrong Answer', 'Accepted']
['s018956220', 's031888741']
[9156.0, 9152.0]
[28.0, 27.0]
[62, 75]
p02576
u609922073
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n, x, t = map(int, input().split())\nprint((n//x)*t)', 's = list(map(int, input().split()))\nprint(int((s[0]+(s[1]-1))/s[1]*s[2]))', 's = list(map(int, input().split()))\nprint(int((s[0]+(s[1]-1))//s[1]*s[2]))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s711706943', 's951837238', 's983171615']
[9084.0, 9168.0, 9172.0]
[30.0, 28.0, 27.0]
[51, 73, 74]
p02576
u610579155
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N,X,T=input(),input(),input()\n\nm=(N//X)*T\n\nif N%X==0:\n print(m)\nelse:\n print(m+1)', 'N,X,T = map(int, input().split()) \n\n\nm=(N//X) \nm1=m*T\n\n\nif N%X==0:\n print(m)\nelse:\n print(m+1)\n', 'N,X,T=input(),input(),input()\n\nm=(N//X) \nm1=m*T\n\nif N%X==0:\n print(m)\nelse:\n print(m+1)\n', 'N,X,T = map(int, input().split()) \n\n\nm=(N//X) \nm1=m*T\n\n\nif N%X==0:\n print(m1)\nelse:\n print(m1+T)\n']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s044722541', 's328432890', 's461092765', 's282262873']
[9084.0, 9092.0, 9020.0, 9156.0]
[29.0, 25.0, 23.0, 31.0]
[83, 137, 90, 139]
p02576
u611090896
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N,X,T = map(int,input().split())\ncount=0\nif N <=X:\n print(T)\n break\nelif N > X:\n while N > X:\n N = N - X\n count+=1\n print(T*count)', 'N,X,T = map(int,input().split())\ncount = 1\nwhile N > X:\n N = N - X\n count += 1\nprint(T*count)']
['Runtime Error', 'Accepted']
['s260224102', 's184934606']
[9096.0, 9152.0]
[27.0, 33.0]
[140, 95]
p02576
u612496929
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n, x, t = map(int,input().split())\nres = 0\n\nres = n // x * t\nif n % x != 0:\n res += t\n \nprint(t)', 'n, x, t = map(int,input().split())\nres = 0\n\nres = n // x * t\nif n % x != 0:\n res += t\n \nprint(res)']
['Wrong Answer', 'Accepted']
['s891182802', 's389931753']
[9152.0, 9168.0]
[36.0, 32.0]
[98, 100]
p02576
u612519519
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['import math\nN,X,T = map(int,input().split())\nprint(math.floor(N/X)*T)', 'import math\nN,X,T = map(int,input().split())\nprint(math.ceil(N/X)*T)']
['Wrong Answer', 'Accepted']
['s546125279', 's252926935']
[9052.0, 9020.0]
[30.0, 28.0]
[69, 68]
p02576
u618187934
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n, x, t = map(int, input().split())\nif n % x == 0:\n c = n / x\nelse:\n b = n / x\n c = b // 1\na = int(c * t)\nprint(a)', 'import math\nn,x,t = map(float,input().split())\nif n%x == 0:\n c = n/x\nelse:\n c = math.ceil(n/x)\na = c*t\nprint(a)', 'import math\nN,X,T=map(int,input().split))\nA=T*(math.ceil(N/X))\nprint(A)', 'n,x,t = map(int,input().split())\nif n % x == 0:\n c = n / x\nelse:\n b = n / x\n c = b // 1\na = c * t\nprint(a)', 'import math\nN,X,T=input().split()\nB=math.ceil(N/X)\nA=T*B\nprint(A)', 'import math\nn,x,t = map(float,input().split())\nc = n/x\nb = math.ceil(c)\na = t*b\nprint(a)', 'import math\nn,x,t = map(float,input().split())\nif n%x == 0:\n c = n/x\nelse:\n b = n/x\n c = math.ceil(b)\na = c*t\nprint(a)', 'import math\nN,X,T=map(int,input().split))\nB=math.ceil(N/X)\nA=T*B\nprint(A)', 'from math import ceil,floor\nN,X,T=input().split()\nA=T*(ceil(N/X))\nprint(A)', 'n, x, t = map(int, input().split())\nif n % x == 0:\n c = n / x\nelse:\n b = n / x\n c = b // 1\na = int(c * t)\nprint(a)\n', 'import math\nN,X,T=float(int,input().split())\nB=math.ceil(N/X)\nA=T*B\nprint(A)', 'n,x,t = map(int,input().split())\nif n%x == 0:\n c = n/x\nelse:\n b = n/x\n c = b//1\na = c*t\nprint(a)', 'import math\nn, x, t = map(int, input().split())\nif n % x == 0:\n c = n / x\nelse:\n b = n / x\n c = math.ceil(b)\na = int(c * t)\nprint(a)\n']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s104271912', 's197177460', 's252617683', 's301749072', 's395933825', 's509181242', 's513098866', 's697410539', 's760051145', 's795253947', 's910351351', 's922014575', 's492453799']
[9012.0, 9020.0, 8780.0, 9092.0, 9056.0, 9036.0, 8952.0, 8992.0, 9008.0, 9008.0, 9092.0, 9060.0, 9004.0]
[30.0, 27.0, 25.0, 31.0, 21.0, 27.0, 26.0, 29.0, 22.0, 24.0, 26.0, 35.0, 30.0]
[123, 117, 71, 115, 65, 88, 127, 73, 74, 124, 76, 105, 142]
p02576
u619899291
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['import sys\n\nn, x, t = sys.stdin.readlines()[0].split()\nn, x, t = int(n), int(x), int(t)\nreturn math.ceil(n/x) * t', 'import sys\nimport math\n\nn, x, t = sys.stdin.readlines()[0].split()\nn,x,t = float(n),int(x),int(t)\n\nprint(int(math.ceil(n/x) * t))']
['Runtime Error', 'Accepted']
['s055858101', 's821450740']
[9032.0, 9116.0]
[27.0, 30.0]
[113, 129]
p02576
u621596556
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n,x,t = map(int,input().split())\n\nans = int(n/x)*t\n\nif(n%x != 0):\n ans += t\n \n', 'n,x,t = map(int,input().split())\n \nans = int(n/x)*t\n \nif(n%x != 0):\n ans += t\n \nprint(ans)']
['Wrong Answer', 'Accepted']
['s219535543', 's536479742']
[9128.0, 9008.0]
[28.0, 33.0]
[80, 92]
p02576
u623283955
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n,x,t=map(int,input().split())\nk=n//x\nprint((t+1)*k)', 'n,x,t=map(int,input().split())\nk=n//x\nif n==k*x:\n print(k*t)\nelse:\n print((k+1)*t)']
['Wrong Answer', 'Accepted']
['s337467277', 's735759009']
[9168.0, 9152.0]
[35.0, 32.0]
[52, 84]
p02576
u632126475
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N, maxx, time = map(int, input.split())\nans = time * (N //maxx + 1)\nif(N != 0): \n \tprint(ans)\nelse \n\tprint("0")', 'N,maxx,time = map(int, input.split())\nif (N!= 0):\n\tans = time*(N //maxx + 1)\nelse :\n\tans=0 \nprint(ans)', "def multiplier(N,maxx,time):\n if N%maxx==0 :\n return N//maxx\n else :\n return N//maxx+1\n \ndef main():\n\tN,maxx,time = map(int, input().split())\n\tif N!=0 :\n\t\tans = time * multiplier(N,maxx,time)\n\telse:\n\t\tans=0 \n\tprint(ans)\n \nif __name__ == '__main__':\n main()\n "]
['Runtime Error', 'Runtime Error', 'Accepted']
['s200278977', 's701536597', 's103493846']
[8956.0, 8944.0, 9164.0]
[25.0, 25.0, 28.0]
[112, 103, 273]
p02576
u632395989
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N, X, T = map(int, input().split())\n\nans = N // X\nif N % X != 0:\n ans += 1\n\nprint(ans)\n', 'N, X, T = map(int, input().split())\n\nans = (N // X) * T\nif N % X != 0:\n ans += T\n\nprint(ans)\n']
['Wrong Answer', 'Accepted']
['s830848382', 's762964858']
[9060.0, 9076.0]
[25.0, 27.0]
[90, 96]
p02576
u635621124
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
[' N, X, T = map(int, input().split())\n if N % X == 0:\n ans = N / X * T\n else:\n ans = (N // X + 1) * T\n print(int(ans))', 'N, X, T = map(int, input().split())\nif N % X == 0:\n ans = N / X * T\nelse:\n ans = (N // X + 1) * T\nprint(int(ans))']
['Runtime Error', 'Accepted']
['s279370932', 's913762878']
[8668.0, 9008.0]
[25.0, 27.0]
[143, 119]
p02576
u641446860
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N, X, T = map(int, input.split())\nprint((N + X - 1) / X * T)', 'N, X, T = map(int, input().split())\nprint((N + X - 1) / X * T)\n', 'N, X, T = map(int, input().split())\nprint((N + X - 1) // X * T)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s302600636', 's445630373', 's081462687']
[8908.0, 9044.0, 9112.0]
[23.0, 25.0, 33.0]
[60, 63, 63]
p02576
u641545507
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['import math\n\nN, X, T = map(int, input().split())\n\nprint(math.ceil(N / X))', 'import math\n\nN, X, T = map(int, input().split())\n\nprint(math.ceil(N / X) * T)']
['Wrong Answer', 'Accepted']
['s093601470', 's017148098']
[9152.0, 9160.0]
[28.0, 28.0]
[73, 77]
p02576
u643679148
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
["# -*- coding: utf-8 -*-\nfrom collections import Counter as C\n\nh, w, m = map(int, input().split())\n\nhs, ws = [], []\nhw = []\n\nfor i in range(m):\n hi, w = map(int, input().split())\n hs.append(hi)\n ws.append(w)\n hw.append([hi, w])\n\n\nch = C(hs).most_common()\ncw = C(ws).most_common()\nanss = []\npre_ans = -float('inf')\nmrow = ch[0][0]\nmcow = cw[0][0]\n\nfor num1, num2 in zip(ch, cw):\n row, cow = num1[0], num2[0]\n if mrow > row and mcow > cow:\n break\n ans1 = hs.count(row)\n ans2 = ws.count(cow)\n ans = ans1 + ans2\n\n if [row, cow] in hw:\n ans -= 1\n\n anss.append(ans)\n\n if pre_ans >= ans:\n ans = pre_ans\n else:\n pre_ans = ans\n\n\nprint(max(anss))\n", "# -*- coding: utf-8 -*-\nfrom collections import Counter as C\n\nh, w, m = map(int, input().split())\n\nhs, ws = [], []\nhw = []\n\nfor i in range(m):\n hi, w = map(int, input().split())\n hs.append(hi)\n ws.append(w)\n hw.append([hi, w])\n\n\nch = C(hs).most_common()\ncw = C(ws).most_common()\nanss = []\npre_ans = -float('inf')\nmrow = ch[0][0]\nmcow = cw[0][0]\n\nfor num1, num2 in zip(ch, cw):\n row, cow = num1[0], num2[0]\n if mrow > row and mcow > cow:\n break\n ans1 = hs.count(row)\n ans2 = ws.count(cow)\n ans = ans1 + ans2\n\n if [row, cow] in hw:\n ans -= 1\n\n anss.append(ans)\n\n\nprint(max(anss))\n", 'import math\nn, x, t = map(int, input().split())\n\ny = math.ceil(n / x) * t\nprint(int(y))\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s059819808', 's888689729', 's858540366']
[9408.0, 9400.0, 9144.0]
[32.0, 29.0, 29.0]
[703, 625, 88]
p02576
u645937929
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['import math\n\nnum_list = input().split()\n\nprint(math.ceil(int(num_list[0]) / int(num_list[1])) * int(num_list[2])', 'import math\n\nnum_list = input().split(" ")\n\nprint(math.ceil(int(num_list[0]) / int(num_list[1])) * int(num_list[2])', 'import math\n\nnum_list = input().split(" ")\n\nprint(math.ceil(int(num_list[0]) / int(num_list[1])) * int(num_list[2]))']
['Runtime Error', 'Runtime Error', 'Accepted']
['s679237250', 's996369468', 's208301031']
[8900.0, 9028.0, 9064.0]
[23.0, 24.0, 28.0]
[112, 115, 116]
p02576
u655663334
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['import numpy as np\nimport collections\n\nH,W = list(map(int, input().split()))\n\nChw = list(map(int, input().split()))\nDhw = list(map(int, input().split()))\n\nSs = []\nfor _ in range(H):\n tmp = input()\n Ss.append(list(tmp))\n\nmazeArray = np.zeros((H+6, W+6), dtype = \'int64\')\n\nfor i in range(H+6):\n for j in range(W+6):\n if(i < 3 or i > H+2):\n mazeArray[i][j] = -1\n \n elif(j < 3 or j > W+2):\n mazeArray[i][j] = -1\n \n else:\n if(Ss[i - 3][j-3] == "#"):\n mazeArray[i][j] = -1\n else:\n mazeArray[i][j] = 100000\n\n\n\nH_que = collections.deque()\nW_que = collections.deque()\n\nH_que.append(Chw[0])\nW_que.append(Chw[1])\n\nmazeArray[Chw[0]+2][Chw[1]+2] = 0\n\n#print(mazeArray)\n\nfor _ in range(10**6):\n H_iti = H_que.popleft() + 2\n W_iti = W_que.popleft() + 2\n\n \n if(mazeArray[H_iti][W_iti] < mazeArray[H_iti - 1][W_iti]):\n mazeArray[H_iti - 1][W_iti] = mazeArray[H_iti][W_iti]\n\n H_que.append(H_iti - 3)\n W_que.append(W_iti - 2)\n\n elif(mazeArray[H_iti - 1][W_iti] == -1):\n for i in range(H_iti-2, H_iti):\n for j in range(W_iti -2, W_iti + 3):\n if(mazeArray[H_iti][W_iti] < mazeArray[i][j]):\n mazeArray[i][j] = mazeArray[H_iti][W_iti] + 1\n\n H_que.append(i - 2)\n W_que.append(j - 2)\n \n \n if(mazeArray[H_iti][W_iti] < mazeArray[H_iti + 1][W_iti]):\n mazeArray[H_iti + 1][W_iti] = mazeArray[H_iti][W_iti]\n\n H_que.append(H_iti - 1)\n W_que.append(W_iti - 2)\n \n elif(mazeArray[H_iti+1][W_iti] == -1):\n for i in range(H_iti+1, H_iti+3):\n for j in range(W_iti -2, W_iti + 3):\n if(mazeArray[H_iti][W_iti] < mazeArray[i][j]):\n mazeArray[i][j] = mazeArray[H_iti][W_iti] + 1\n\n H_que.append(i - 2)\n W_que.append(j - 2)\n\n \n if(mazeArray[H_iti][W_iti] < mazeArray[H_iti][W_iti - 1]):\n mazeArray[H_iti][W_iti - 1] = mazeArray[H_iti][W_iti]\n\n H_que.append(H_iti - 2)\n W_que.append(W_iti - 3)\n\n elif(mazeArray[H_iti][W_iti-1] == -1):\n for i in range(H_iti-2, H_iti+3):\n for j in range(W_iti -2, W_iti):\n if(mazeArray[H_iti][W_iti] < mazeArray[i][j]):\n mazeArray[i][j] = mazeArray[H_iti][W_iti] + 1\n\n H_que.append(i - 2)\n W_que.append(j - 2)\n\n \n if(mazeArray[H_iti][W_iti] < mazeArray[H_iti][W_iti + 1]):\n mazeArray[H_iti][W_iti + 1] = mazeArray[H_iti][W_iti]\n\n H_que.append(H_iti - 2)\n W_que.append(W_iti - 1)\n\n elif(mazeArray[H_iti][W_iti-1] == -1):\n for i in range(H_iti-2, H_iti+3):\n for j in range(W_iti +1, W_iti + 3):\n if(mazeArray[H_iti][W_iti] < mazeArray[i][j]):\n mazeArray[i][j] = mazeArray[H_iti][W_iti] + 1\n\n H_que.append(i - 2)\n W_que.append(j - 2)\n\n \n\n\n if(len(H_que) == 0):\n break\n\n#print(mazeArray)\n\nif(mazeArray[Dhw[0]+2][Dhw[1]+2] == 100000):\n print(-1)\n\nelse:\n print(mazeArray[Dhw[0]+2][Dhw[1]+2])', 'N,X,T = list(map(int, input().split()))\n\nprint(-(-N // X) * T)']
['Runtime Error', 'Accepted']
['s769871900', 's041934837']
[27120.0, 9148.0]
[122.0, 31.0]
[3295, 62]
p02576
u656803083
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n, x, t = map(int, input().split())\ntime = int(n/x)\nprint(time*t)', 'n,x,t = map(int, input().split())\n \nif n <= x:\n print(t)\nelif n % x == 0:\n print(n//x*t)\nelse:\n print((n//x+1)*t)']
['Wrong Answer', 'Accepted']
['s048384232', 's193026082']
[9152.0, 9164.0]
[28.0, 29.0]
[65, 116]
p02576
u658600714
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['z, x, t = map(int, input().split())\n\nans = math.ceil(z/x)*t\n', "n = int(input())\nif n%9 == 0:\n print('Yes')\nelse:\n print('No')", 'import math\nz,x,t=map(int, input().split())\n\nans =math.ceil(z/x)*t\nprint(ans)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s056539984', 's382347917', 's667142783']
[9132.0, 9136.0, 9076.0]
[24.0, 22.0, 29.0]
[60, 64, 77]
p02576
u658915215
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n, x, t = map(int, input().split())\n\nimport math\n\nprint(t*math.ceil(int(input())/x))', 'n, x, t = map(int, input().split())\n\nimport math\n\nprint(t*math.ceil(n/x))']
['Runtime Error', 'Accepted']
['s774318734', 's150957613']
[9140.0, 9008.0]
[30.0, 32.0]
[84, 73]
p02576
u661649266
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N, X, T = map(int, input().split())\ntime = (N // X) * T\nprint(time)', 'N, X, T = map(int, input().split())\nif N % X != 0: \n time = ((N // X) + 1) * T\nelse:\n time = (N // X) * T\nprint(time)']
['Wrong Answer', 'Accepted']
['s842018466', 's460043250']
[9080.0, 9160.0]
[28.0, 26.0]
[67, 119]
p02576
u667084803
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N, X, T = map(int, input().split())\n\nprint(T * (N+X-1)//X)', 'N, X, T = map(int, input().split())\nprint(T * ((N+X-1)//X))']
['Wrong Answer', 'Accepted']
['s430709161', 's707320331']
[9080.0, 9092.0]
[28.0, 27.0]
[58, 59]
p02576
u667694979
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N, X, T = map(int,input().split())\n\nans=N//X*T if N%X==0 else ans=(N//X+1)*T\nprint(ans)', 'n, x, t = map(int, input().split())\nif n % x == 0:\n ans = n//x\nelse :\n ans = n//x + 1\n \nans *= t\nprint(ans)\n ']
['Runtime Error', 'Accepted']
['s772131988', 's718743413']
[8916.0, 9144.0]
[26.0, 25.0]
[87, 115]
p02576
u668078904
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N,X,T=map(int,input().split())\n\nif N%X==0:\n print(N/X*T)\nelse:\n print((round(N/X)*T+T))', 'import math\n\nN,X,T=map(int,input().split())\n\nif N%X==0:\n print(N//X*T)\nelse:\n b=int((N//X)*T+T)\n print(b)']
['Wrong Answer', 'Accepted']
['s997799619', 's561899476']
[9160.0, 9028.0]
[28.0, 36.0]
[89, 108]
p02576
u673173160
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n, x, t = map(int, input().split())\nif n%x == 0:\n print(n//x * t)\nelse:\n print((n//x + 1)+t)', 'n, x, t = map(int, input().split())\nif n%x == 0:\n print(n//x * t)\nelse:\n print((n//x + 1)*t)']
['Wrong Answer', 'Accepted']
['s973709192', 's391939600']
[9060.0, 9092.0]
[31.0, 25.0]
[98, 98]
p02576
u674588203
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['\n# A - Takoyaki\n\nimport math\n\nN,X,T=map(int,input().split())\n\npritn(math.ceil(N/X)*T)', '\n# A - Takoyaki\n\nN,X,T=map(int,input().split())\n\nif N%X==0:\n num=N//X\nelse:\n num=N//X +1\n\nprint(num*T)']
['Runtime Error', 'Accepted']
['s253142248', 's914737256']
[9020.0, 9140.0]
[28.0, 32.0]
[115, 138]
p02576
u677400065
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
["a = int(input())\nif a%9:\n print('No')\nelse:\n print('Yes')\n \n", "a = int(input())\nif a%9==0:\n print('Yes')\nelse:\n print('No')\n \n", 'import numpy as np\na,b,c = map(int,input().split())\nprint(int(np.ceil(a/b)*c))']
['Runtime Error', 'Runtime Error', 'Accepted']
['s066106589', 's934283894', 's063404966']
[9096.0, 9092.0, 27064.0]
[25.0, 23.0, 114.0]
[63, 66, 78]
p02576
u684814987
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['h, w, m = map(int, input().split())\n \nmp = []\nhp = [0] * h\nwp = [0] * w\n \nfor i in range(m):\n l = list(map(int, input().split()))\n mp.append(l)\n hp[l[0]-1] += 1\n wp[l[1]-1] += 1\n \nmaxhp = max(hp)\nmaxwp = max(wp)\nhpdex = [i for i, x in enumerate(hp) if x == maxhp]\nwpdex = [i for i, x in enumerate(wp) if x == maxwp]\n \nfor i in range(len(hpdex)):\n for j in range(len(wpdex)):\n if [hpdex[i] + 1, wpdex[j] + 1] not in mp:\n print(maxhp + maxwp)\n exit()\n \nprint(maxhp + maxwp - 1)\n', '\nn, x, t = map(int, input().split())\nif n % x == 0:\n print(n // x * t)\nelse:\n print((n // x + 1) * t)']
['Runtime Error', 'Accepted']
['s091018658', 's325110628']
[9236.0, 9156.0]
[27.0, 30.0]
[520, 107]
p02576
u686230543
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n, x, t = map(int, input().split())\nprint((n + 1) // x * t)', 'n, x, t = map(int, input().split())\nprint((n + x - 1) // x * t)']
['Wrong Answer', 'Accepted']
['s897175231', 's542252444']
[9152.0, 9136.0]
[28.0, 29.0]
[59, 63]
p02576
u686817216
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['import math as m\n\nN=input()\nX=input()\nT=input()\n\nN=int(N)\nX=int(X)\nT=int(T)\n\ns=N/X\ns=m.ceil(s)\ns=int(s)\ni=s*T\nprint(i)', 'import math as m\n\ns=N/X\ns=m.ceil(s)\ns=int(s)\ni=s*T\nprint(i)', 'import math as m\n\nN=int(input())\nX=int(input())\nT=int(input())\ns=N/X\ns=m.ceil(s)\ns=int(s)\ni=s*T\nprint(i)', 'import math as m\n\nN=input()\nX=input()\nT=input()\n\nN=int(N)\nX=int(X)\nT=int(T)\n\ns=N/X\ns=m.ceil(s)\ns=int(s)\ni=s*T\nprint(i)', 'import math as m\n\ns=N/X\ns=m.ceil(s)\ns=int(s)\ni=s*T\nprint(i)', 'import math as m\n\nLIST=list(map(int,input().split()))\n\nN=LIST[0]\nX=LIST[1]\nT=LIST[2]\n\ns=N/X\ns=m.ceil(s)\ns=int(s)\ni=s*T\nprint(i)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s039580525', 's187687382', 's196190345', 's315651204', 's696288635', 's496564129']
[8964.0, 8968.0, 9144.0, 8960.0, 8928.0, 9076.0]
[26.0, 24.0, 30.0, 29.0, 25.0, 28.0]
[118, 59, 104, 118, 59, 127]
p02576
u689281702
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N, X, T = map(int, input().split())\ntime = N // X * T + T * N % T\nprint(int(time))', 'N, X, T = map(int, input().split())\nif N % X == 0:\n time = ( N // X ) * T\nelse:\n time = ( N // X ) * T + T\nprint(int(time))']
['Wrong Answer', 'Accepted']
['s457971654', 's312212909']
[9144.0, 9156.0]
[32.0, 33.0]
[82, 125]
p02576
u691576679
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['a=inpiut()\na=[int(i) for i in a.split()]\n\nn=int(a[0]/a[1])\nprint(n*a[2])', 'import math\na=input()\na=[int(i) for i in a.split()]\n\nn=math.ceil(a[0]/a[1])\nprint(n*a[2])']
['Runtime Error', 'Accepted']
['s501710682', 's343152310']
[8924.0, 9036.0]
[26.0, 28.0]
[72, 89]
p02576
u693007703
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N, X, T = [int(i) for i in input().spilt()]\n\nans = 0\n\nif N % X == 0:\n ans = (N // X) * T\nelse :\n ans = ((N // X) + 1) * T \n\nprint(ans)', 'N, X, T = [int(i) for i in input().split()]\n \nq, r = divmod(N, X)\n \noutput = 0\nif r > 0:\n output = (q+1) * T\nelse :\n output = q * T\n \nprint(output)']
['Runtime Error', 'Accepted']
['s402308878', 's394524277']
[8996.0, 8960.0]
[25.0, 27.0]
[136, 156]
p02576
u696919316
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['import math\nn, x, t = list(map(int, input().split()))\nz = n / x\nif z == n//x:\n k = int(z)+1\n print(k * t)\nelse:\n print(int(z) * t)', 'n, x, t = list(map(int, input().split()))\nz = n / x\nif z != float(n//x):\n k = int(z) + 1\n print(k * t)\nelse:\n print(int(z) * t)\n\n']
['Wrong Answer', 'Accepted']
['s859662705', 's242873028']
[9144.0, 9000.0]
[28.0, 30.0]
[133, 138]
p02576
u698526962
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
["x = list(map(lambda i: int(i), input().split(' ')))\nall = x[0]\navailable = x[1]\ntime = x[2]\n\nresult = (all/available) * time\nif all%available != 0:\n result += time \n\nprint(int(result))", "x = list(map(lambda i: int(i), input().split(' ')))\nall = x[0]\navailable = x[1]\ntime = x[2]\n\nresult = int(all/available) * time\n#print(result)\nif all%available != 0:\n result += time \n\nprint(int(result))"]
['Wrong Answer', 'Accepted']
['s375315938', 's299657710']
[9100.0, 9108.0]
[32.0, 31.0]
[187, 205]
p02576
u699696451
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N, X, T = map(int,input().split())\n\nans = 0\nwhile(N >= X):\n if N >= X:\n ans += T\n N = N - X\n else:\n ans += T\n break\n \n \nprint(ans)', 'N, X, T = map(int,input().split())\n\nans = 0\nwhile(N >= 0):\n if N == 0:\n break\n if N >= X:\n ans += T\n N = N - X\n else:\n ans += T\n break\n \nprint(ans)']
['Wrong Answer', 'Accepted']
['s550471662', 's533464314']
[9188.0, 9164.0]
[28.0, 32.0]
[170, 194]
p02576
u701658616
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N, X, T = map(int, input().split())\n\ncnt = N // X\nif N % X == 0:\n cnt += 1\n\nprint(T*cnt)', 'N, X, T = map(int, input().split())\n\ncnt = N // X\nif N % X != 0:\n cnt += 1\n\nprint(T*cnt)']
['Wrong Answer', 'Accepted']
['s514931649', 's634646619']
[9152.0, 9160.0]
[29.0, 28.0]
[89, 89]
p02576
u702399883
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n,x,t=input().split()\nn=int(n)\nx=int(x)\nt=int(t)\nq,mod=divmod(n,x)\nif amari==0:\n print(q*t)\nelse:\n print(q*(t+1))', 'n,x,t=input().split()\nn=int(n)\nx=int(x)\nt=int(t)\nsyou,amari=divmod(n,x)\nif amari==0:\n print(syou*t)\nelse:\n print(syou*(t+1))\n ', 'n,x,t=input().split()\nn=int(n)\nx=int(x)\nt=int(t)\nq,mod=divmod(n,x)\nif mod==0:\n print(q*t)\nelse:\n print((q+1)*t)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s210379499', 's950826816', 's772579491']
[9168.0, 9164.0, 9168.0]
[28.0, 28.0, 33.0]
[115, 129, 113]
p02576
u705418271
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N,X,T=map(int,input().split())\nif N%X=0:\n print((N/X)*T)\nelse:\n print((N//X+1)*T)', 'N,X,T=map(int,input().split())\nif N%X==0:\n print((N//X)*T)\nelse:\n print((N//X+1)*T)']
['Runtime Error', 'Accepted']
['s810697053', 's190358129']
[8872.0, 9164.0]
[27.0, 28.0]
[83, 85]
p02576
u707567014
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['a,b,c = map(int,input().split())\nif a%b ==0:\n time = a%b * c\nelse:\n time = (a%b + 1) *c\nprint(time)\n', 'a,b,c = map(int,input().split())\nif a%b ==0:\n time = (a//b) * c\nelse:\n time = (a//b + 1) *c\nprint(time)\n']
['Wrong Answer', 'Accepted']
['s564244248', 's882428952']
[9144.0, 9144.0]
[30.0, 30.0]
[102, 106]
p02576
u719790500
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['import math\n\nn,x,t = map(int, input().split())\nprint(math.ceil(n/x)*t)import math', 'import math\n\nn,x,t = map(int, input().split())\nprint(math.ceil(n/x)*t)']
['Runtime Error', 'Accepted']
['s559997789', 's951525770']
[8924.0, 9096.0]
[27.0, 30.0]
[81, 70]
p02576
u724088399
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N,X,T = map(int,input().split())\nkaisuu = N//12\nif kaisuu*X < N:\n zikan = kaisuu+zikan\nelse:\n zikan = kaisuu\nprint(zikan)', 'N,X,T = map(int,input().split())\nkaisuu = N//X\nif kaisuu*X < N:\n zikan = (kaisuu+1)*T\nelse:\n zikan = kaisuu*T\nprint(zikan)']
['Runtime Error', 'Accepted']
['s218135117', 's248156137']
[9152.0, 9164.0]
[28.0, 29.0]
[127, 128]
p02576
u724295910
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N, X, T = map(int, input().split())\n\nif N / X:\n\tprint(N / X * T)\nelse:\n\tprint((N / X + 1) * T)\n', 'N, X, T = input().split()\n\nif N / X:\n\tprint(N / X * T)\nelse:\n\tprint((N / X + 1) * T)\n', 'N, X, T = map(int, input().split())\n\nif N // X:\n\tprint(N // X * T)\nelse:\n\tprint((N // X + 1) * T)\n', 'N, X, T = map(int, input().split())\n\nif N % X:\n\tprint((N // X + 1) * T)\nelse:\n\tprint(N // X * T)\n']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s062554648', 's745747231', 's880470608', 's192197541']
[9044.0, 8948.0, 9008.0, 9072.0]
[32.0, 27.0, 28.0, 30.0]
[95, 85, 98, 97]
p02576
u725518274
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n=input()\ns=0\nfor i in n:\n s+=int(i)\n s=s%9\nif s%9==0:\n print(Yes)\nelse:\n print("No")\n ', 'import math\nn,x,t=list(map(int,input().split()))\nprint(math.ceil(n/x)*t)']
['Runtime Error', 'Accepted']
['s430269372', 's412783944']
[9028.0, 9092.0]
[26.0, 27.0]
[92, 72]
p02576
u727051308
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N, X, T = map(int,input().split())\nif N % X == 0:\n print( T*N // X )\nelse:\n print( N*T // X + N )\n', 'N, X, T = map(int,input().split())\nif T % X == 0:\n print( T // X )\nelse:\n print( T // X + 1 )', 'if (int(input())%9 == 0:\n print("Yes")\nelse:\n print("No")\n', 'N, X, T = map(int,input().split())\nif X % T == 0:\n print( X // T )\nelse:\n print( X // T + 1 )\n', ' N, X, T = map(int,input().split())\nif N % X == 0:\n print( T*N // X )\nelse:\n print( N*T // X + T )\n', 'N, X, T = map(int,input().split())\nif N % X == 0:\n print((N//X)*T)\nelse:\n print((N//X+1)*T)']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s366748230', 's688366839', 's812185813', 's878402170', 's981198436', 's361913894']
[9088.0, 9164.0, 8872.0, 9048.0, 8868.0, 8932.0]
[32.0, 27.0, 27.0, 27.0, 27.0, 25.0]
[100, 95, 60, 96, 101, 93]
p02576
u733866054
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n,x,t=map(int,input().split())\n\nif n%x==0 :\n print((n//x)*t)\nelse :\n print((n//x+1)*t)', 'n,x,t=map(int,input().split())\nif n%x!=0 :\n print((n//x+1) *t)\nelse:\n print((n//x)*t)\n']
['Runtime Error', 'Accepted']
['s040132939', 's073819127']
[9012.0, 9168.0]
[29.0, 26.0]
[116, 92]
p02576
u734197299
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['param=input().split()\n\nama=int(param[0])%int(param[1])\nprint(ama)\nwar=(int(param[0])-ama)/int(param[1])\nprint(war)\n\nif ama==0:\n tim=war*int(param[2])\nelse:\n tim=(war+1)*int(param[2])\n\nprint(int(tim))', 'param=input().split()\n\nama=int(param[0])%int(param[1])\nprint(ama)\nwar=(int(param[0])-ama)/int(param[1])\nprint(war)\n\nif ama==0:\n tim=war*int(param[2])\nelse:\n tim=(war+1)*int(param[2])\n\ntim=int(tim)\nprint(tim)', 'param=list(map(int,input().split()))\n\nama=param[0]%param[1]\nwar=(param[0]-ama)/param[1]\n\nif ama==0:\n tim=war*param[2]\nelse:\n tim=(war+1)*param[2]\n\nprint(int(tim))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s015795784', 's046619733', 's854398123']
[9116.0, 9104.0, 9040.0]
[36.0, 24.0, 30.0]
[205, 213, 168]
p02576
u735011400
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n, x, t = map(int, input().split())\na = 0\n\nprint(n, x, t)\n\na = (n + (x - 1)) // x\n\nprint(a * t)', 'n, x, t = map(int, input().split())\na = 0\na = (n + (x - 1)) // x\nprint(a * t)']
['Wrong Answer', 'Accepted']
['s029735233', 's482099564']
[9016.0, 9016.0]
[30.0, 29.0]
[95, 77]
p02576
u736470924
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
["def resolve():\n from collections import deque\n\n h, w = map(int, input().split())\n c_h, c_w = map(int, input().split())\n c_h -= 1\n c_w -= 1\n d_h, d_w = map(int, input().split())\n d_h -= 1\n d_w -= 1\n dist = [[10**18 for i in range(w)] for i in range(h)]\n dist[c_h][c_w] = 0\n\n C = []\n for _ in range(h):\n C.append(list(input()))\n D = [(-1, 0), (1, 0), (0, -1), (0, 1)]\n queue = deque([(c_h, c_w)])\n\n while queue:\n (x, y) = queue.popleft()\n d = dist[x][y]\n\n for (dx, dy) in D:\n new_x, new_y = x + dx, y + dy\n if -1 < new_x < h and -1 < new_y < w:\n if C[new_x][new_y] == '.' and dist[new_x][new_y] > d:\n dist[new_x][new_y] = d\n queue.appendleft((new_x, new_y))\n\n for dx in range(-2, 3):\n for dy in range(-2, 3):\n if -1 < x + dx < h and -1 < y + dy < w and (dx != 0 or dy != 0):\n if C[x + dx][y + dy] == '.' and dist[x + dx][y + dy] > d:\n dist[x + dx][y + dy] = d + 1\n queue.append((x + dx, y + dy))\n\n ans = dist[d_h][d_w]\n if ans == 10**18:\n print(-1)\n else:\n print(ans)\n\nresolve()", "def resolve():\n from collections import deque\n\n h, w = map(int, input().split())\n c_h, c_w = map(int, input().split())\n c_h -= 1\n c_w -= 1\n d_h, d_w = map(int, input().split())\n d_h -= 1\n d_w -= 1\n dist = [[10**18 for i in range(w)] for i in range(h)]\n dist[c_h][c_w] = 0\n\n C = []\n for _ in range(h):\n C.append(list(input()))\n D = [(-1, 0), (1, 0), (0, -1), (0, 1)]\n queue = deque([(c_h, c_w)])\n\n while queue:\n (x, y) = queue.popleft()\n d = dist[x][y]\n\n for (dx, dy) in D:\n new_x, new_y = x + dx, y + dy\n if -1 < new_x < h and -1 < new_y < w:\n if C[new_x][new_y] == '.' and dist[new_x][new_y] > d:\n dist[new_x][new_y] = d\n queue.appendleft((new_x, new_y))\n\n for dx in range(-2, 3):\n for dy in range(-2, 3):\n if -1 < x + dx < h and -1 < y + dy < w and (x + dx == 0 and y + dy == 0):\n if C[x + dx][y + dy] == '.' and dist[x + dx][y + dy] > d:\n dist[x + dx][y + dy] = d + 1\n queue.append((x + dx, y + dy))\n\n ans = dist[d_h][d_w]\n if ans == 10**18:\n print(-1)\n else:\n print(ans)\n\nresolve()", 'def resolve():\n import math\n n, x, t = map(int, input().split())\n print(math.ceil(n / x) * t)\n\nresolve()']
['Runtime Error', 'Runtime Error', 'Accepted']
['s309493000', 's319816138', 's608779733']
[9340.0, 9316.0, 9184.0]
[31.0, 31.0, 31.0]
[1245, 1254, 113]
p02576
u738439089
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N,X,T=map(int, input().split())\nif N%X==0:\n print(N/X*T)\n else:\n print((int(N/X)+1)*T)\n ', 'N,X,T=map(int, input().split())\nif N%X==0:\n print(int(N/X*T))\nelse:\n print((int(N/X)+1)*T)']
['Runtime Error', 'Accepted']
['s045230472', 's947938329']
[9004.0, 9152.0]
[29.0, 28.0]
[92, 92]
p02576
u739014096
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['\nN,X,T = map(int, input().split())\nprint(N)\n\n\ncount = 0\n\n\nif N % X == 0:\n count = N / X\n print(count)\nelse:\n count = N // X + 1\n print(count)\n\n\nans = count * T\n', 'import math\n\nN,X,T = map(int, input().split())\n\nprint(math.ceil(N/X) * T)\n']
['Wrong Answer', 'Accepted']
['s927424597', 's708205322']
[9152.0, 9036.0]
[27.0, 27.0]
[287, 165]
p02576
u748757847
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n, x, t = map(int, input().split())\n\nif n % x == 0:\n print(n / x * t)\nelse:\n print((n / x + 1) * t)', 'n, x, t = map(int, input().split())\n\nif n % x == 0:\n print(n // x * t)\nelse:\n print((n // x + 1) * t)\n']
['Wrong Answer', 'Accepted']
['s290329315', 's462268416']
[9156.0, 9152.0]
[27.0, 26.0]
[101, 104]
p02576
u750651325
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['import re\nimport sys\nimport math\nimport itertools\nimport bisect\nfrom copy import copy\nfrom collections import deque,Counter\nfrom decimal import Decimal\nimport functools\ndef v(): return input()\ndef k(): return int(input())\ndef S(): return input().split()\ndef I(): return map(int,input().split())\ndef X(): return list(input())\ndef L(): return list(input().split())\ndef l(): return list(map(int,input().split()))\ndef lcm(a,b): return a*b//math.gcd(a,b)\nsys.setrecursionlimit(10 ** 9)\nmod = 10**9+7\ncnt = 0\nans = 0\ninf = float("inf")\nal = "abcdefghijklmnopqrstuvwxyz"\n\nimport string\ns = v()\n\nif s == \'zyxwvutsrqponmlkjihgfedcba\':\n print(-1)\n exit()\n\nlis =list(string.ascii_lowercase)\nnlis = [0]*26\n\nfor i in s:\n t = lis.index(i)\n nlis[t] += 1\n\nif sum(nlis) != 26:\n for i in range(26):\n if nlis[i] == 0:\n print(s+lis[i])\n break\nelse:\n for i in range(25, -1, -1):\n for j in lis:\n if s[i] < j and j not in s[:i]:\n print(s[:i] + j)\n exit()\n', 'import re\nimport sys\nimport math\nimport itertools\nimport bisect\nfrom copy import copy\nfrom collections import deque,Counter\nfrom decimal import Decimal\nimport functools\ndef v(): return input()\ndef k(): return int(input())\ndef S(): return input().split()\ndef I(): return map(int,input().split())\ndef X(): return list(input())\ndef L(): return list(input().split())\ndef l(): return list(map(int,input().split()))\ndef lcm(a,b): return a*b//math.gcd(a,b)\nsys.setrecursionlimit(10 ** 9)\nmod = 10**9+7\ncnt = 0\nans = 0\ninf = float("inf")\nal = "abcdefghijklmnopqrstuvwxyz"\n\nn,x,t = I()\n\nif n % x == 0:\n print(t*(n//x))\nelse:\n print(t*(n//x+1))\n\n\n']
['Runtime Error', 'Accepted']
['s597396175', 's764734945']
[10496.0, 10472.0]
[37.0, 41.0]
[1027, 643]
p02576
u754702137
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['import math\nn,x,t=map(int(input().split()))\nans=math.ceiling(n/x)*t\nprint(ans)', 'import math\nn,x,t=map(int,input().split())\nans=math.ceil(n/x)*t\nprint(ans)']
['Runtime Error', 'Accepted']
['s955723882', 's974073827']
[8932.0, 8996.0]
[21.0, 27.0]
[78, 74]
p02576
u763550415
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['line = [int(i) for i in input().rstrip().split()]\nN = line[0]\nX = line[1]\nT = line[2]\n\nprint((N//X+1)*T)line = [int(i) for i in input().rstrip().split()]\nN = line[0]\nX = line[1]\nT = line[2]\n\nif N%X == 0:\n\tprint((N//X)*T)\nelse:\n print((N//X+1)*T)\n ', 'line = [int(i) for i in input().rstrip().split()]\nN = line[0]\nX = line[1]\nT = line[2]\n \nif N%X == 0:\n\tprint((N//X)*T)\nelse:\n print((N//X+1)*T)']
['Runtime Error', 'Accepted']
['s786969642', 's149120684']
[9016.0, 9148.0]
[23.0, 29.0]
[253, 145]
p02576
u763843362
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n,x,t= map(int,input().split())\nf1=n/x\nf2=n//x\nif f1==f2:\n print(f2)\nelse:\n print(f2+1)', 'n,x,t= map(int,input().split())\nf1=n/x\nf2=n//x\nif f1==f2:\n print(f2*t)\nelse:\n print((f2+1)*t)\n']
['Wrong Answer', 'Accepted']
['s038779806', 's312869504']
[9124.0, 9064.0]
[32.0, 33.0]
[89, 96]
p02576
u766646838
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
["n = list(input())\na = 0\nfor i in n:\n a +=int(i)\n \nif a%9==0:\n print('Yes')\nelse:\n print('No')", 'm,n,k = map(int,input().split())\nif m%n == 0:\n print(int(k*((m//n))))\nelif m%n !=0:\n print(int(k*((m//n)+1)))']
['Runtime Error', 'Accepted']
['s271545851', 's057714421']
[9156.0, 9164.0]
[26.0, 27.0]
[97, 111]
p02576
u770018088
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['q = input().strip().split()\nN, X, T = int(q[0]), int(q[1]), int(q[2])\nans = ((N + X) // X - 1) * T\nprint(ans)', 'q = input().strip().split()\nN, X, T = int(q[0]), int(q[1]), int(q[2])\nans = ((N + x) // x - 1) * T\nprint(ans)', 'q = input().strip().split()\nN, X, T = int(q[0]), int(q[1]), int(q[2])\nans = (N + X - 1) // X * T\nprint(ans)\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s167106504', 's745699322', 's816965455']
[9032.0, 9016.0, 9148.0]
[29.0, 25.0, 27.0]
[109, 109, 108]
p02576
u773081031
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N,X,T = int(input().split())\nt = 0\nwhile(N>0):\n t += 1\n N -= X\n\nprint(T*t)', 'N,X,T = map(int, input().split())\nt = 0\nwhile(N>0):\n t += 1\n N -= X\n\nprint(T*t)']
['Runtime Error', 'Accepted']
['s744022281', 's327938297']
[9112.0, 9100.0]
[24.0, 25.0]
[76, 81]
p02576
u780962115
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['import math\nn, x, t = map(int, input().split())\nprint(math.ceil(x/n)*t)', 'import math\nn, x, t = map(int, input().split())\nprint(math.ceil(n/x)*t)']
['Wrong Answer', 'Accepted']
['s121215313', 's883484205']
[9088.0, 9092.0]
[27.0, 27.0]
[71, 71]
p02576
u787466693
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N = int(input())\n\nc = N % 9\nif(c==0):\n print("Yes")\nelse:\n print("No")\n \n ', 'N,X,T = map(int,input().split())\n\ncount = 0\nwhile(N>0):\n N = N - X\n count += 1\n \nprint(T*count)']
['Runtime Error', 'Accepted']
['s644461068', 's742763955']
[9148.0, 9032.0]
[27.0, 31.0]
[87, 98]
p02576
u799428760
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['if __name__ == "__main__":\n n, x, t = map(int, input().split())\n\n ans = t * (n + x - 1) / x\n ans = int(ans)\n print(ans)', 'if __name__ == "__main__":\n n, x, t = map(int, input().split())\n\n if n%x == 0:\n ans = n//x\n else:\n ans = (n//x) + 1\n ans *= t\n print(ans)']
['Wrong Answer', 'Accepted']
['s706641716', 's465291737']
[9156.0, 9136.0]
[27.0, 32.0]
[131, 166]
p02576
u800058906
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n,x,t=map(int,input().split())\n\np=n//x\n\nif t%p==0:\n print(t*p)\nelse:\n print(t*(p+1))', 'n,x,t=map(int,input().split())\n\np=n//x\n\nif n%x==0:\n print(t*p)\nelse:\n print(t*(p+1))']
['Runtime Error', 'Accepted']
['s152953938', 's738652282']
[9148.0, 9152.0]
[28.0, 29.0]
[86, 86]
p02576
u801617021
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['import math as mt\na,b,c=map(int,input().split())\ny=b/a\ny1=mt.ceil(y)\ny2=int(y1)\ny3=int(y2*c)\nprint(y3)', 'import math as mt\na,b,c=map(int,input().split())\ny=a/b\ny1=mt.ceil(y)\ny2=int(y1)\ny3=int(y2*c)\nprint(y3)\n']
['Wrong Answer', 'Accepted']
['s344982346', 's436192645']
[9148.0, 9152.0]
[27.0, 28.0]
[102, 103]
p02576
u803865203
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['import math\nN,X,T=map(int,input().split())\nans = math.ceil(N/(X*T))\nprint(ans)\n', 'import math\nN,X,T=map(int,input().split())\nans = math.ceil(N/X)*T\nprint(ans)\n']
['Wrong Answer', 'Accepted']
['s039485074', 's582023042']
[9144.0, 9156.0]
[32.0, 26.0]
[79, 77]
p02576
u818213347
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['import numpy as np\nh,w,m = map(int,input().split())\nbomb = list(tuple(map(lambda x: int(x)-1,input().split())) for i in range(m))\nMap= np.zeros((h,w))\nfor i in bomb:\n Map[i] = 1\n \nbombx = np.count_nonzero(Map,axis=0)\nbomby = np.count_nonzero(Map,axis=1)\nmaxx = max(bombx)\nmaxy = max(bomby)\nmaxx_index = np.where(bombx == maxx)\nmaxy_index = np.where(bomby == maxy)\n\nflag = 0\nfor i in maxx_index[0]:\n for j in maxy_index[0]:\n if Map[i][j] == 0:\n flag = 1\nif flag == 0:\n print(maxx+maxy)\nelse:\n print(maxx+maxy-1)', 'n,x,t = map(int,input().split())\ncnt = -((-n)//x)\nprint(t*cnt)']
['Runtime Error', 'Accepted']
['s176567058', 's840309116']
[27128.0, 9096.0]
[113.0, 29.0]
[543, 62]
p02576
u821969418
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n, x, t = map(int, input().split())\n\nif n%t == 0:\n print(int((n//x)*t))\nelse:\n print(int((n // x)*t + 1))\n', 'n, x, t = map(int, input().split())\n\nif n%x == 0:\n ans = (n // x) * t\nelse:\n ans = (n // x + 1) * t\n\nprint(ans)\n']
['Wrong Answer', 'Accepted']
['s088442706', 's543547649']
[9148.0, 9056.0]
[24.0, 28.0]
[112, 118]
p02576
u821989875
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['import math\nN, X, T = map(int, input().split())\nprint(math.ceil(n / x) * t)\n', 'import math\nN, X, T = map(int, input().split())\nprint(math.ceil(N/ X)* T)']
['Runtime Error', 'Accepted']
['s918911367', 's907824221']
[8876.0, 9072.0]
[22.0, 29.0]
[76, 73]
p02576
u822090837
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N,X,T=map(int, input().split())\nif N%X==0:\n print(N//X)\nelse:\n print((N//X)+1)', 'N,X,T=map(int, input().split())\nif N%X==0:\n print((N//X)*T)\nelse:\n print(((N//X)+1)*T)']
['Wrong Answer', 'Accepted']
['s821812892', 's514892563']
[9152.0, 9172.0]
[27.0, 25.0]
[84, 92]
p02576
u826637752
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n,x,t = map(int,input().split())\n\nif n%x == 0:\n print(t*n/x)\nelse:\n print(t*n/x + t)', 'n,x,t = map(int,input().split())\n\nif n%x == 0:\n print(t*n//x)\nelse:\n print(t*n//x + t)', 'n,x,t = map(int,input().split())\n\nif n%x == 0:\n print(t*(n//x))\nelse:\n print(t*(n//x)+t)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s104008201', 's347216526', 's899746489']
[9152.0, 9156.0, 9092.0]
[22.0, 27.0, 30.0]
[86, 88, 90]
p02576
u827765795
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N = int(input())\nA = list(map(int, input().split()))\nA.reverse()\nans = 0\nmax_step = 0\nfor i in range(N):\n max_step = max(A[i:]) - A[i]\n ans += max_step\nprint(ans)', 'N = int(input())\nA = list(map(int, input().split()))\nA.reverse()\nans = 0\nmax_step = 0\nfor i in range(N):\n max_step = max(A[i:]) - A[i]\n ans += max_step\nprint(ans)', 'N, X, T = map(int, input().split())\nmin_time = 0\nwhile N > 0:\n min_time += T\n N -= X\nprint(min_time)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s628781873', 's797713319', 's188735144']
[9072.0, 9040.0, 9152.0]
[26.0, 26.0, 33.0]
[168, 168, 106]
p02576
u835090251
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N=int(input())\nX=int(input())\nT=int(input())\nprint((N//X+1)*T)\n', 'N,X,T=map(int,input(),split())\nif N/X==0:\n print(N/X*T)\nelse:\n print((N//X+1)*T)\n', 'N=int(input())\nX=int(input())\nT=int(input())\nprint((int(N//X)+1)*T)\n', 'N,X,T=map(int,input(),split())\nprint((N//X+1)*T)', 'N=int(input())\nX=int(input())\nT=int(input())\nprint((int(N/X)+1)*T)', 'n,x,t=map(int,input().split())\nif n%x==0:\n print(n//x*t)\nelse:\n print((n//x+1)*t)\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s112720271', 's147785366', 's461879396', 's610908414', 's672232592', 's515580837']
[9076.0, 9084.0, 9096.0, 8968.0, 9160.0, 9048.0]
[23.0, 22.0, 24.0, 20.0, 25.0, 30.0]
[63, 83, 68, 48, 66, 84]
p02576
u843764230
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['X = int(input())\nT = int(input())\nN = int(input())\nY = X\nans = 0\ncnt = 1\n\nwhile X < N:\n X = X + Y\n cnt = cnt + 1\n\nans = T * cnt\nprint(ans)\n', 'n,x,t = map(int, input().split())\nY = X\nans = 0\ncnt = 1\n\nwhile X < N:\n X = X + Y\n cnt = cnt + 1\n\tans = T * cnt\n\tprint(ans)', 'X = int(input())\nT = int(input())\nN = int(input())\nY = X\nans = 0\ncnt = 1\n\nwhile X < N:\n X = X + Y\n cnt = cnt + 1\n\nans = T * cnt\nprint(ans)\n', '# -*- coding: utf-8 -*-\nX = int(input())\nT = int(input())\nN = int(input())\nY = X\nans = 0\ncnt = 1\n\nwhile X < N:\n X = X + Y\n cnt = cnt + 1\n\nans = T * cnt\nprint(ans)\n', 'n, x, t = map(int, input().split())\ntm = (n // x) * t \nif (n % x) != 0:\n tm += t\nprint(tm)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s069109966', 's303493239', 's611838796', 's676806125', 's781101891']
[9048.0, 9020.0, 8976.0, 9060.0, 9156.0]
[24.0, 23.0, 28.0, 25.0, 29.0]
[145, 128, 145, 169, 93]
p02576
u844590940
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['import math\nN,X,T=list(map(int,input().split()))\nprint(N,X,T)\nprint(math.ceil(N/X)*T)', 'import math\nN,X,T=list(map(int,input().split()))\nprint(math.ceil(N/X)*T)']
['Wrong Answer', 'Accepted']
['s593348808', 's784005545']
[9156.0, 9080.0]
[30.0, 29.0]
[85, 72]
p02576
u845982808
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n,x,t = map(int, input().split())\nans = 0\nans += -(-n//x)\nprint(ans)', 'n,x,t = map(int, input().split())\nans = 0\nans += -(-n//x)\nprint(t*ans)']
['Wrong Answer', 'Accepted']
['s210766683', 's599122597']
[9012.0, 8920.0]
[29.0, 27.0]
[68, 70]
p02576
u848097937
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['import sys\ninput = sys.stdin.readline\nh,w,m = map(int,input().rstrip().split())\nhw = [list(map(int,input().rstrip().split()))for _ in range(m)]\n\ntate = [0]*(h+1)\nyoko = [0]*(w+1)\nbombpoint = set()\n\nfor x,y in hw:\n tate[x] += 1\n yoko[y] += 1\n bombpoint.add((x,y))\n\nans_x = []\nans_y = []\nx_max = max(tate)\ny_max = max(yoko)\nfor i in range(len(tate)):\n if tate[i] == x_max:\n ans_x.append(i)\nfor i in range(len(yoko)):\n if yoko[i] == y_max:\n ans_y.append(i)\n\nans = x_max + y_max\nfor x in ans_x:\n for y in ans_y:\n if (x,y) not in bombpoint:\n print(ans)\n exit()\nprint(ans - 1)\n', 'N, X, T = (int(x) for x in input().split() )\n\na = int(N/X)\n\nif N % X != 0:\n t = (a + 1)* T\nelse:\n t = a * T\n\nprint(t)\n']
['Runtime Error', 'Accepted']
['s338559125', 's496831800']
[9220.0, 9032.0]
[31.0, 27.0]
[632, 124]
p02576
u849756457
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N, X, T = [int(i) for i in input().split()]\nprint(T * N // X)', 'N, X, T = [int(i) for i in input().split()]\nprint((N // X) * T)', 'import math\nN, X, T = [int(i) for i in input().split()]\nprint(math.ceil(N / X) * T)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s446948033', 's505026723', 's014395022']
[9148.0, 9056.0, 9148.0]
[30.0, 28.0, 34.0]
[61, 63, 83]
p02576
u853315858
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n,x,t=map(int,input().split())\nd=x//n\nprint(t*(d+1))', 'n,x,t=map(int,input().split())\nd=n//x\nif n%x==0:\n print (t*d)\nelse: \n print(t*(d+1))\n\n\n']
['Wrong Answer', 'Accepted']
['s492364343', 's158037973']
[9152.0, 9140.0]
[32.0, 32.0]
[52, 90]
p02576
u854931881
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n,x,t=map(int,input().split())\ns=ceil(n//x)\nprint(s*t)', 'import math\nn,x,t=map(int,input().split())\ns=math.ceil(n/x)\nprint(s*t)']
['Runtime Error', 'Accepted']
['s990062507', 's027091883']
[9028.0, 9104.0]
[21.0, 33.0]
[54, 70]
p02576
u855057563
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n=int(input())\nl=map(int,input().split())\nans=0\nmaxt=0\nfor i in l:\n if i<maxt:\n ans+=maxt-i\n maxt=max(i,maxt)\nprint(ans)\n', 'n=int(input())\nl=list(map(int,input().split()))\nans=0\nmaxt=0\nfor i in l:\n if i<maxt:\n ans+=maxt-1\n maxt=max(i,maxt)\nprint(ans)\n', 'n,x,t=map(int,input().split())\nif n%x==0:\n print(n/x*t)\nelse:\n print((n/x+1)*t)', 'n,x,t=map(int,input().split())\nif n%x==0:\n print(n//x*t)\nelse:\n print((n//x+1)*t)\n']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s105524141', 's157973441', 's429347574', 's812225411']
[9132.0, 9164.0, 9128.0, 9144.0]
[28.0, 24.0, 31.0, 31.0]
[126, 134, 81, 84]
p02576
u855219015
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N, X, T = (int(a) for a in input().split())\nprint(math.ceil(N / X) * T)', 'import math\nN, X, T = (int(a) for a in input().split())\nprint(math.ceil(N / X) * T)\n']
['Runtime Error', 'Accepted']
['s345436090', 's845726255']
[9112.0, 9156.0]
[25.0, 29.0]
[71, 84]
p02576
u856564576
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n, x, t = map(int, input().split(" "))\n\nout = int(math.ceil(n/x)) * t\nprint(out)', 'import math\nn, x, t = map(int, input().split(" "))\n \nout = int(math.ceil(n/x)) * t if x != 0 else 0\nprint(out)']
['Runtime Error', 'Accepted']
['s247419883', 's874781394']
[9156.0, 9160.0]
[22.0, 28.0]
[80, 110]
p02576
u857267582
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['print("33")', '\nimport math\n\nn, x, t = map(int, input().split())\n\nres = math.ceil(1. * n / x) * t\n\nprint(res)\n']
['Wrong Answer', 'Accepted']
['s351700184', 's777413974']
[9012.0, 9152.0]
[34.0, 28.0]
[11, 95]
p02576
u862654689
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N, X, T = [int(s) for s in input().split(" ")]\n\nt = T * (N + X - 1) / X \nprint(t)', 'N, X, T = [int(s) for s in input().split(" ")]\n\nt = T * ((N + X - 1) // X )\nprint(t)']
['Wrong Answer', 'Accepted']
['s403542235', 's534351729']
[9140.0, 9148.0]
[32.0, 29.0]
[81, 84]
p02576
u863850961
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['# cook your dish here\nn,x,t=list(map(int,input().split()))\nrate=int(x/t)\nif(rate==0 or rate==1):\n answer=n*t\n print(int(answer))\nelif(rate!=0 and rate!=1):\n answer=n/rate\n print(int(answer))\nelif(n==20 , x=12 , t=6 ):\n print(12)', '# cook your dish here\nn,x,t=list(map(int,input().split()))\nrate=int(x/t)\nif(rate==0 or rate==1):\n answer=n*t\n print(int(answer))\nelse:\n answer=n/rate\n print(int(answer))', 'import math\n \nn, x, t = map(int, input().split())\n \n\n# print(count * t)\n \ncount = n // x\nif n % x != 0:\n count = count + 1\nprint(count * t)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s838645840', 's872752450', 's326237783']
[8996.0, 9068.0, 9128.0]
[27.0, 30.0, 27.0]
[243, 181, 168]
p02576
u864090097
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N = int(input())\n\nhantei = 0\n\nwhile N != 0 or N > 1:\n hantei += N % 10\n N = N // 10\n\nif hantei % 9 == 0:\n ans = "Yes"\nelse:\n ans = "No"\n\nprint(ans)\n', 'N, X, T = map(int ,input().split())\n\nans = (N // X) * T\nif N % X != 0:\n ans += T\n\nprint(ans)']
['Runtime Error', 'Accepted']
['s764040687', 's855469208']
[9152.0, 9164.0]
[26.0, 30.0]
[160, 95]
p02576
u869937227
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
["import sys\nimport os\nimport math\nf = open('test01.txt', 'r')\nsys.stdin = f\n\nn,x,t = map(int,input().split())\nprint(math.ceil(n/x)*t)", 'import math\n\nn,x,t = map(int,input().split())\nprint(math.ceil(n/x)*t)\n']
['Runtime Error', 'Accepted']
['s872021616', 's868474693']
[9028.0, 9064.0]
[22.0, 28.0]
[132, 70]
p02576
u872271866
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['def solve():\n N = int(input())\n X = int(input())\n T = int(input())\n try_num = N // X\n print(try_num)\n if N % X != 0 :\n try_num += 1\n total_time = try_num * T\n print(total_time)\n\nif __name__ == "__main__":\n solve()', '\ndef main() :\n N, X, T= list(map(int, input().split()))\n print((N + X - 1) // X * T)\n\nif __name__ == "__main__":\n main()']
['Runtime Error', 'Accepted']
['s264849170', 's889776046']
[9156.0, 9064.0]
[26.0, 25.0]
[247, 129]
p02576
u879866069
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['\nimport math\nN, X, T = [int(i) for i in input().split()]\nprint(math.ceil(N/X * T))', '\nimport math\nN, X, T = [int(i) for i in input().split()]\nprint(math.ceil(N/X) * T)']
['Wrong Answer', 'Accepted']
['s877561515', 's267437890']
[9160.0, 9152.0]
[28.0, 34.0]
[107, 107]
p02576
u879921371
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['n,x,t=map(int,input().split())\nm=math.ceil(n/x)*t', 'import math\nn,x,t=map(int,input().split())\nm=math.ceil(n/x)*t\nprint(m)']
['Runtime Error', 'Accepted']
['s949892147', 's500433818']
[9144.0, 9100.0]
[27.0, 30.0]
[49, 70]
p02576
u880730787
2,000
1,048,576
Takahashi loves takoyaki - a ball-shaped snack. With a takoyaki machine, he can make at most X pieces of takoyaki at a time, taking T minutes regardless of the number of pieces to make. How long does it take to make N takoyaki?
['N,X,T = map(int,input().split())\na = N // X\nif N % X == 0:\n Time = a*T\nelse:\n Tiem = (a+1)*T\nprint(Time)', 'N,X,T = map(int,input().split())\na = N // X\nTime = 0\nif N % X == 0:\n Time = a*T\nelse:\n Time = (a+1)*T\nprint(Time)']
['Runtime Error', 'Accepted']
['s837166630', 's108456698']
[9032.0, 9156.0]
[29.0, 26.0]
[110, 119]