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
p03075
u882858304
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
["l = [int(input()),int(input()),int(input()),int(input()),int(input())]\nk = int(input())\nprint(l,k)\ni = 4\nj = 0\ny = 1\nwhile i+1 :\n j = i-1\n while j+1 :\n if l[j-1]-l[i-1] > k : y = 0\n j -= 1\n i -= 1\nif y == 1 : print('Yay!')\nelse : print(':(')", "l = [int(input()),int(input()),int(input()),int(inp...
['Wrong Answer', 'Accepted']
['s458140041', 's941013432']
[3064.0, 3064.0]
[17.0, 17.0]
[250, 239]
p03075
u882937587
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['m_list = list()\nfor k in range(5):\n m = int(input())\n m_list.append(m)\nnum = int(input())\n\nx_list = list()\ncount = 0\nfor i in range(0, len(m_list)-1):\n for j in range(i+1, len(m_list)):\n x_list.append(m_list[j] - m_list[i])\n\nprint(x_list)\nfor a in range(len(x_list)):\n if x_list[a] >= ...
['Wrong Answer', 'Accepted']
['s917250988', 's494500554']
[3064.0, 3064.0]
[17.0, 17.0]
[383, 368]
p03075
u883040023
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['a=int(input())\nb=int(input())\nc=int(input())\nd=int(input())\ne=int(input())\nk=int(input())\n\nA = [a,b,c,d,e]\nwa = 0\n\nfor i in range(4):\n if A[-1-i]-A[-2-i]>k:\n wa += 1\n \nprint(":("*(wa>=0) or "Yay!")', 'a = int(input())\nb = int(input())\nc = int(input())\nd = int(input())\ne = int(input(...
['Wrong Answer', 'Accepted']
['s997961415', 's843271831']
[3064.0, 3060.0]
[17.0, 17.0]
[214, 156]
p03075
u888610038
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
["a,b,c,d,e,k=[int(input())for i in range(6)]\nif e-a>k:\n print(':(')\nelse:\n print('Yay')", "a,b,c,d,e,k=[int(input())for i in range(6)]\nif e-a>k:\n print(':(')\nelse:\n print('Yay!')\n"]
['Wrong Answer', 'Accepted']
['s037648376', 's045028081']
[2940.0, 2940.0]
[17.0, 17.0]
[88, 90]
p03075
u892251744
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
["a=input()\nb=input()\nc=input()\nd=input()\ne=input()\nf=input()\n\nif e-a > k:\n print(':(')\nelse:\n print('Yay!')", "a=int(input())\nb=int(input())\nc=int(input())\nd=int(input())\ne=int(input())\nk=int(input())\n\nif e-a>k:\n print(':(')\nelse:\n print('Yay!')"]
['Runtime Error', 'Accepted']
['s584884535', 's438761564']
[2940.0, 3060.0]
[18.0, 17.0]
[108, 136]
p03075
u894694822
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['a=int(input())\nb=int(input())\nc=int(input())\nd=int(input())\ne=int(input())\na_1=(a//10)*10\nb_1=(b//10)*10\nc_1=(c//10)*10\nd_1=(d//10)*10\ne_1=(e//10)*10\na_2=a%10\nb_2=b%10\nc_2=c%10\nd_2=d%10\ne_2=e%10\nif a_2==0 and b_2==0 and c_2==0 and d_2==0 and e_2==0:\n a_2+=0\nelif a_2==0:\n a_2+=10\nelif b_2==0:\n b...
['Wrong Answer', 'Accepted']
['s860606129', 's949964482']
[3064.0, 2940.0]
[17.0, 17.0]
[460, 138]
p03075
u896271080
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['import itertools\nx, y, z, k = map(int, input().split())\nal = list(map(int,input().split()))\nbl = list(map(int,input().split()))\ncl = list(map(int,input().split()))\nsum_list = [sum(i) for i in itertools.product(al, bl, cl)]\nsum_list.sort(reverse=True)\nfor i in sum_list[:k]:\n print(i)', "l = [int(input()) for ...
['Runtime Error', 'Runtime Error', 'Accepted']
['s116929256', 's694653890', 's644362902']
[3064.0, 2940.0, 3060.0]
[18.0, 17.0, 17.0]
[284, 155, 172]
p03075
u896741788
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['l=[int(input()) for i in range(5)]\na,c=min(l),max(l)\nk=int(input())\nprint("Yay!") if (a-b)**2<=k**2 else print(":(")', 'l=[int(input()) for i in range(5)]\na,c=min(l),max(l)\nk=int(input())\nprint("Yay!") if (a-c)**2<=k**2 else print(":(")']
['Runtime Error', 'Accepted']
['s656992239', 's880433329']
[2940.0, 2940.0]
[18.0, 17.0]
[116, 116]
p03075
u897561220
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
["N = 6\nval = []\nfor i in range(N):\n val.append(int(input())\nif val[4]-val[0] <= val[5]:\n print('Yay!')\nelse:\n print(':(')\n", "a, b, c, d, e, k = map(int, input().split())\nif e-a <= k:\n print('Yay!')\nelse:\n print(':(')\n", "N = 6\nval = []\nfor i in range(N):\n val.append(int(input()))\n\n...
['Runtime Error', 'Runtime Error', 'Accepted']
['s398841510', 's574860958', 's356621654']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[130, 98, 132]
p03075
u898967808
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
["a = [int(input()) for _ in range(5)]\nk = int(input())\nm = 0\nfor ai in a:\n for aj in a: \n if m < abs(ai - aj):\n m = abs(ai - aj)\nif m <= k:\n print('Yay!'')\nelse:\n print(':(')", "a = [int(input()) for _ in range(5)]\nk = int(input())\nm = 0\nfor ai in a:\n for aj in a: \n if m < abs(ai - ...
['Runtime Error', 'Accepted']
['s262689566', 's521693507']
[3064.0, 3060.0]
[18.0, 17.0]
[187, 186]
p03075
u899929023
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['a=int(input())\nb=int(input())\nc=int(input())\nd=int(input())\ne=int(input())\nk=int(input())\nif e-a>k:\n print("Yay!")\nelse:\n print(":(")\n\n', 'a=int(input())\nb=int(input())\nc=int(input())\nd=int(input())\ne=int(input())\nk=int(input())\nif e-a>k:\n print(":(")\nelse:\n print("Yay!")\n\n']
['Wrong Answer', 'Accepted']
['s886066404', 's776734771']
[3316.0, 2940.0]
[21.0, 17.0]
[141, 141]
p03075
u902462889
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['N = int(input())\n\nlst_A = []\n\nfor i in range(5):\n lst_A.append(input())\n lst_A[i] = int(lst_A[i])\n\nlst_A.sort()\n\nans = N // lst_A[0]\n\nif N % lst_A[0]:\n\n ans += 1\n\nans += 4\n\nprint(ans)', 'a = input()\nb = input()\nc = input()\nd = input()\ne = input()\nk = input()\n\na = int(a)\ne = int(e)\n...
['Wrong Answer', 'Accepted']
['s865473757', 's297040730']
[3060.0, 3060.0]
[18.0, 17.0]
[192, 160]
p03075
u902973687
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['L = [int(input()) for i in range(len("abcde"))]\nk = int(input())\n\nfor i in range(5):\n for j in range(i, 5):\n if abs(L[i] - L[i+j+1]) > k:\n print(":(")\n break\n else:\n continue\n break\nelse:\n print("Yay!")\n\n', 'L = [int(input()) for i in range(len("abcde"))]\nk = int(input())\n\nfor i i...
['Runtime Error', 'Accepted']
['s343937637', 's049303484']
[2940.0, 2940.0]
[17.0, 17.0]
[224, 249]
p03075
u904943473
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
["array1 = [int(input()) for i in range(6)]\narray2 = input[:5]\nk = array1[5] \n \nfor i in range(5):\n if (i < 4 and array2[4 - i] - array2[0] > k):\n print(':(')\n break\n if (i < 3 and array2[4 - i] - array2[1] > k):\n print(':(')\n break\n if (i < 2 and array2[4 - i] - array2[2...
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s083140464', 's158771676', 's189758494', 's210784643', 's309119985', 's341155009', 's402426773', 's481861439', 's545313562', 's636483269', 's692577623', 's721003299', 's782679507', 's909741965', 's945659317', 's980922209', 's392462020']
[3064.0, 2940.0, 2940.0, 3064.0, 2940.0, 2940.0, 2940.0, 2940.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 2940.0, 2940.0, 3064.0, 3064.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 18.0, 17.0, 17.0, 17.0, 18.0, 17.0, 18.0, 17.0, 17.0, 17.0, 18.0, 18.0]
[471, 11, 512, 506, 459, 512, 485, 511, 522, 456, 306, 522, 542, 379, 536, 601, 426]
p03075
u905203728
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['A=[int(input()) for i in range(5)]\nk=int(input())\nfor i in range(5):\n for j in range(i,5):\n if abs(A[i]-A[j])>=k:\n print(":(")\n exit()\nprint("Yay1")', 'A=[int(input()) for i in range(5)]\nk=int(input())\nfor i in range(5):\n for j in range(i,5):\n if abs(A[i]-A[j])>k:\...
['Wrong Answer', 'Accepted']
['s237590675', 's132777939']
[2940.0, 3060.0]
[18.0, 17.0]
[180, 179]
p03075
u905510147
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['li = []\nfor i in range(5):\n x = int(input())\n li.append(x)\n\nk = int(input())\n\nans = "Yey!"\n\nfor i in li:\n for j in li:\n if abs(i - j) > k:\n ans = ":("\n print(ans)\n quit()\n\nprint(ans)', 'li = []\nfor i in range(5):\n x = int(input())\n li.append(x)...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s489970559', 's871832590', 's978308838']
[3060.0, 3060.0, 2940.0]
[17.0, 17.0, 19.0]
[231, 231, 232]
p03075
u907997483
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['X,Y,Z,K = map(int, input().split())\n\n\nA = list(map(int, input().split()))\nB = list(map(int, input().split()))\nC = list(map(int, input().split()))\nD = []\nE2 = []\nF = []\n\n\n\nfor i in A : \n for j in B : \n D.append(i+j)\n \nE = sorted(D, reverse = True)\n\nif len(E) > K : \n for i in rang...
['Runtime Error', 'Accepted']
['s006886245', 's954995751']
[3064.0, 3064.0]
[17.0, 17.0]
[535, 279]
p03075
u910295650
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
["a=list(map(int, [input() for i in range(6)]))\nif(a[4]<a[0])>a[5]:\n print(':(')\nelse:\n print('Yey')", "a=int(input())\nb=int(input())\nc=int(input())\nd=int(input())\ne=int(input())\nk=int(input())\nif(e-a>k):\n print(':(')\nelse:\n print('Yey')", "a=list(map(int, [input() for i in range(6)]))\nif(a[4]...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s212773951', 's241647926', 's437595828', 's539737932', 's678195915', 's711691644', 's746367505', 's763326589', 's783925232', 's033191898']
[2940.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 18.0]
[104, 139, 105, 103, 104, 105, 104, 104, 105, 105]
p03075
u910632349
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['a=[int(input()) for i in range(5)]\nprint(a)\nk=int(input())\nfor i in range(4):\n for j in range(i+1,5):\n print(a[j]-a[i])\n if a[j]-a[i]>k:\n print(":)")\n exit()\nprint("Yay!")', 'a=[int(input()) for i in range(5)]\nk=int(input())\nfor i in range(4):\n for j in range(i+1,...
['Wrong Answer', 'Accepted']
['s805160682', 's253266828']
[9052.0, 9036.0]
[24.0, 26.0]
[210, 176]
p03075
u911446944
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
["ant = []\n\nfor i in range(5):\n ant.append(int(input()))\nk = int(input())\n\nfor i in range(0,5):\n for j in range(1,5):\n if abs(ant[i] - ant[j]) > k:\n print(':(')\n exit()\nprint('Yey!')", "ant = []\n\nfor i in range(5):\n ant.append(int(input()))\nk = int(input())\n\nfor i ...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s105312515', 's337100763', 's759846757', 's781183884', 's500157762']
[3060.0, 3060.0, 3060.0, 3060.0, 3060.0]
[17.0, 17.0, 17.0, 17.0, 17.0]
[215, 217, 210, 276, 219]
p03075
u912318491
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['a=input()\nb=input()\nc=input()\nd=input()\ne=input()\nk=input()\narray=[a,b,c,d,e]\nflag=True\n\nfor i in range(5):\n for j in range(5):\n if array[i]-array[j] >= k:\n flag=False\n print(":(")\n break\n if not flag:\n break\n \nif flag:\n print("Yay!")', 'a=int(input())\nb=int(input())\n...
['Runtime Error', 'Accepted']
['s671024323', 's389418418']
[3060.0, 3064.0]
[17.0, 17.0]
[263, 293]
p03075
u915355756
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['# -*- coding: utf-8 -*-\n\n#input\nimport numpy as np\n[X,Y,Z,K] = list(map(int,input().split()))\nA = list(map(int,input().split()))\nB = list(map(int,input().split()))\nC = list(map(int,input().split()))\n\nD = []\nA.sort(reverse=True)\nB.sort(reverse=True)\nC.sort(reverse=True)\n\n#make list\nfor i in range(min(K,...
['Runtime Error', 'Accepted']
['s837995211', 's107959037']
[12420.0, 2940.0]
[149.0, 18.0]
[504, 183]
p03075
u918601425
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['ls=[]\nfor i in range(5):\n ls.append(int(input()))\nls.sort()\nif ls[4]-ls[0]>k:\n print(":(")\nelse:\n print("Yay!")', 'ls=[]\nfor i in range(5):\n ls.append(int(input()))\nls.sort()\nif ls[4]-ls[0]>int(input()):\n print(":(")\nelse:\n print("Yay!")\n']
['Runtime Error', 'Accepted']
['s747870072', 's406302124']
[2940.0, 2940.0]
[18.0, 17.0]
[114, 126]
p03075
u918845030
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['import math\nn = int(input())\nt = map(int, input())\nbottle_neck = min(t)[0]\nti = math.ceil(n/bottle_neck)\nprint(ti+4)\n', 'n = int(input())\nt=[]\nt = map(int, input())\nbottle_neck = min(t)[0]\nti = int(n/bottle_neck)\nti+=1\nprint(ti+4)\n\n', 'import math\nn = int(input())\nt = map(int, input())\nbottle_neck = ...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s243700437', 's355749412', 's664966401', 's093079401']
[2940.0, 2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 17.0]
[117, 111, 118, 325]
p03075
u919734978
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['a = list(map(int,[input() for i in range(5)]))\n\nif max(a[-1]) - min(a[-1]) > a[-1]:\n print(":(")\nelse:\n print("Yay!")\n', 'a = list(map(int,[input() for i in range(5)]))\nprint(":(")\n', 'a = list(map(int,i for i in input()))\n\nif max(a[-1]) - min(a[-1]) > a[-1]:\n print(":(")\nelse:\n print("Yay!")', 'a = ...
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s087990791', 's377984493', 's536480736', 's548049028', 's268399138']
[2940.0, 3064.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 17.0, 19.0, 17.0]
[120, 59, 110, 120, 122]
p03075
u921773161
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
["a=int(input())\nb=int(input())\nc=int(input())\nd=int(input())\ne=int(input())\nk=int(input())\nif e-d>=k and e-c>=k and e-b>=k and e-b>=k and e-a>=k and d-c>=k and d-b>=k and d-a>=k and c-b>=k and c-a>=k and b-a>=k:\n print('Yay!')\nelse:\n prit(':(')\n", "a=int(input())\nb=int(input())\nc=int(input())\nd=int(inpu...
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s253023346', 's280672341', 's442012729', 's898361779', 's372514428']
[3060.0, 3060.0, 2940.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0]
[246, 247, 24, 235, 168]
p03075
u921811474
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['a = [int(input()) for i in range(5)]\nk = int(input())\nl = max(a) - min(a)\nif l >= k:\n print(":(")\nelse:\n print("Yey!")', 'a = [int(input()) for i in range(5)]\nk = int(input())\nl =[a[i+1]-a[i] for i in range(4)]\nif any(i for i in l) > k:\n print(":(")\nelse:\n print("Yey!")', 'a = [int(input()) fo...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s417001747', 's689839624', 's834281237']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[124, 154, 123]
p03075
u922449550
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
["A = []\nfor a in range(5):\n A.append(int(input()))\n\nk = int(input())\n\nfor i in range(4, 0, -1):\n A[i] -= A[i-1]\n\nif max(A) > k:\n print(':(')\nelse:\n print('Yay')", "A = []\nfor a in range(5):\n A.append(int(input()))\n\nk = int(input())\n\n\nif max(A)-min(A) > k:\n print(':(')\nelse:\n print('Yay')\n...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s169117661', 's995838129', 's108871668']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[163, 129, 130]
p03075
u924308178
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['\nt = [int(input()) for i in range(5)]\nmin=9\nlength=len(t)\nfor i in range(length):\n if min%10>t[i]%10 and t[i]%10!=0:\n min=t[i]\n\ntry:\n t.remove(min)\n t.append(min)\n t.remove(123)\nexcept:\n ans=0\n for _ in range(length-1):\n if t[_]%10!=0:\n ans+=t[_]+10-t[_]%10\n...
['Wrong Answer', 'Accepted']
['s830167853', 's913039946']
[3064.0, 2940.0]
[20.0, 17.0]
[365, 214]
p03075
u929582923
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['\nn = int(input())\nlists = [int(input()) for i in range(5)]\n\nprint(int(-~n/min(lists) + 4))', '\nlist = [int(input()) for i in range(5)]\nkList = []\nfor j in range(0,10):\n for i in list:\n if (i+j) % 10 == 0:\n if i % 10 != 0:\n kList.append(i+j) \n else:\n ...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s135258962', 's455646944', 's427548357']
[2940.0, 3060.0, 3060.0]
[17.0, 18.0, 17.0]
[90, 308, 263]
p03075
u930408895
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['#[a,b,c,d,e,k] = map(int,list(input().split()))\nl = []\nfor i in range(6):\n l.append(int(input()))\n\nif l[4]-l[0]>l[5] :\n print("Yay!")\nelse:\n print(":(")\n\n', '#[a,b,c,d,e,k] = map(int,list(input().split()))\nl = []\nfor i in range(6):\n l.append(int(input()))\n\nif l[4]-l[0]<=l[5] :\n print("Y...
['Wrong Answer', 'Accepted']
['s656618396', 's906269000']
[3060.0, 2940.0]
[20.0, 17.0]
[163, 164]
p03075
u931636178
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['antennas = []\nfor _ in range(5):\n a = int(input())\n antennas.append(a)\nk = int(input())\ncannot_communicate_pair_exists = False\nfor i in range(len(antennas)):\n for q in range(len(antennas)):\n if i == q:\n continue\n if abs(antennas(i)-antennas(q)) > k:\n cannot_communicate_pair_exists = True...
['Runtime Error', 'Accepted']
['s372581211', 's525176635']
[3060.0, 3060.0]
[20.0, 18.0]
[437, 437]
p03075
u935458305
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n"""\nCreated on Tue Feb 26 17:52:43 2019\n\n@author: nakamuratakayuki\n"""\n\natoe = []\nfor i in range(5):\n atoe.append(int(input()))\nk = int(input())\nans = \'Yey!\'\nif atoe[4]-atoe[0] > k:\n ans = \':(\'\nprint(ans)', '#!/usr/bin/env python3\n# -*- codi...
['Wrong Answer', 'Accepted']
['s791739945', 's335024074']
[3060.0, 3060.0]
[17.0, 17.0]
[261, 261]
p03075
u939604385
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['a = int(input())\nb = int(input())\nc = int(input())\nd = int(input())\ne = int(input())\n\nl = [a, b, c, d, e]\nl_times_ten = []\namari_list = []\ntime = 0\nfor i in range(len(l)):\n amari = l[i] % 10\n amari_list.append(amari)\n if amari == 0:\n l_times_ten.append(l[i])\n elif amari != 0:\n ...
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s271961472', 's330508028', 's912112877', 's965836849']
[3064.0, 3064.0, 3064.0, 3064.0]
[17.0, 19.0, 17.0, 17.0]
[478, 496, 486, 467]
p03075
u940279019
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['a,b,c,d,e,k = int(input()) for i in range(6)\nprint("Yay!" if (e - a <= k) else ":(")', '# -*- coding: utf-8 -*-\na = int(input())\nb = int(input())\nc = int(input())\nd = int(input())\ne = int(input())\nk = int(input())\nif( e - a > k):\n\tprint(\':)\')\nelse:\n\tprint(\'Yay\'")', 'a,b,c,d,e,k = (int(input()) for i ...
['Runtime Error', 'Runtime Error', 'Accepted']
['s004450306', 's468159416', 's923073304']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[84, 175, 80]
p03075
u940990031
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['a = int(input().split())\nb = int(input().split())\nc = int(input().split())\nd = int(input().split())\ne = int(input().split())\nk = int(input().split())\n\nif e-a <= k:\n\tprint("Yay!")\nelse :\n\tprint(":(")', 'a = int(input())\nb = int(input())\nc = int(input())\nd = int(input())\ne = int(input())\nk = int(input(...
['Runtime Error', 'Accepted']
['s055795812', 's496731517']
[3060.0, 3060.0]
[17.0, 17.0]
[198, 149]
p03075
u941284420
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['a=[]\nfor i in range(5):\n a.append(int(input()))\nk=int(input())\nif a[4]-a[0]>k:\n ":("\nelse:\n "Yay!"', 'a=[]\nfor i in range(5):\n a.append(int(input()))\nk=int(input())\nif a[4]-a[0]>k:\n print(":(")\nelse:\n print("Yay!")']
['Wrong Answer', 'Accepted']
['s907155729', 's619212960']
[2940.0, 2940.0]
[17.0, 17.0]
[101, 115]
p03075
u943294442
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['n=int(input())\na=int(input())\nb=int(input())\nc=int(input())\nd=int(input())\ne=int(input())\n\n \nmin = min(a,b,c,d,e)\n\nprint(int((n-1)/min)+5)', "a=int(input())\nb=int(input())\nc=int(input())\nd=int(input())\ne=int(input())\nk=int(input())\n \nif e - a > k:\n print(':(')\nelse:\n print('Yay!')"]
['Wrong Answer', 'Accepted']
['s688433975', 's785640174']
[3060.0, 3060.0]
[18.0, 17.0]
[138, 141]
p03075
u945405878
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['distance = []\nfor i in range(4):\n for j in range(i + 1, 4):\n distance.append(anntena[j] - anntena[i])\n \ntmp = [i for i in distance if i > k ]\nif len(tmp) == 0:\n print("Yay!")\nelse:\n print(":(")', 'anntena = [int(input()) for i in range(5)]\nk = int(input())\n\ndistance = []\nfor i in ran...
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s217892521', 's768503873', 's821345492', 's824277375']
[2940.0, 3060.0, 3060.0, 3064.0]
[17.0, 18.0, 17.0, 17.0]
[213, 250, 277, 275]
p03075
u945419374
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['a=int(input())\nb=int(input())\nc=int(input())\nd=int(input())\ne=int(input())\nk=int(input())\nif e-a<=k:\n\tprint("Yay")\nelse:\n\tprint(":(")', 'a=int(input())\nb=int(input())\nc=int(input())\nd=int(input())\ne=int(input())\nk=int(input())\nif e-a<=k:\n\tprint("Yay!")\nelse:\n\tprint(":(")\n \n ']
['Wrong Answer', 'Accepted']
['s243172221', 's918566021']
[3060.0, 3316.0]
[17.0, 21.0]
[133, 144]
p03075
u947327691
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['l=[int(input()) for i in range(5)]\nk=int(input())\n\nif (max(l)-min(l)) > 0:\n print(":(")\nelse:\n print("Yay!")', 'l=[int(input()) for i in range(5)]\nk=int(input())\n\nif (max(l)-min(l)) > k:\n print(":(")\nelse:\n print("Yay!")']
['Wrong Answer', 'Accepted']
['s327442313', 's977414890']
[2940.0, 2940.0]
[18.0, 17.0]
[114, 114]
p03075
u952708174
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
["*Pos, K = [int(input()) for _ in range(6)]\nfor p in range(4):\n if Pos[p + 1] - Pos[p] > K:\n print('Yay!')\n exit()\nprint(':(')", "*Pos, K = [int(input()) for _ in range(6)]\nprint('Yay!' if Pos[4] - pos[0] <= K else ':(')", "*Pos, K = [int(input()) for _ in range(6)]\nprint('Yay!' if Pos[4] - Pos[0] <= K e...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s096453673', 's460124698', 's418159874']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[132, 90, 90]
p03075
u953379577
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['s = []\nfor i in range(5):\n s.apppend(int(input())\nk = int(input())\nfor i in range(4):\n if s[i+1]-s[i] >k:\n print(":(")\n break\nelse:\n print("Yay!")', 's = []\nfor i in range(5):\n s.apppend(int(input()))\nk = int(input())\nfor i in range(4):\n if s[i+1]-s[i] >k:\n print(":(...
['Runtime Error', 'Runtime Error', 'Accepted']
['s183336227', 's663415214', 's323219315']
[8940.0, 8876.0, 8904.0]
[23.0, 24.0, 28.0]
[169, 170, 169]
p03075
u956547804
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
["a=[]\nfor i in range(5):\n a+=input()\nn=input()\ncount=0\nfor c in range(5):\n for i in range(c,5):\n if a[c]+a[i]>n:\n count+=1\nif count==0:\n print('Yay!')\nelse:\n print(':(')\n", "a=int(input())\nb=int(input())\nc=int(input())\nd=int(input())\ne=int(input())\nk=int(input())\nresult...
['Wrong Answer', 'Accepted']
['s294110188', 's710198129']
[2940.0, 3064.0]
[17.0, 19.0]
[199, 201]
p03075
u957167787
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
["a, b, c, d, e ,k = [int(input()) for i in range(6)]\n\nif e - a <= k:\n print('Yay')\nelse:\n print(':(')", "a, b, c, d, e ,k = [int(input()) for i in range(6)]\n\nif e - a <= k:\n print('Yay!')\nelse:\n print(':(')"]
['Wrong Answer', 'Accepted']
['s184287193', 's058114417']
[2940.0, 2940.0]
[17.0, 17.0]
[106, 107]
p03075
u957957759
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
["a=int(input())\nb=int(input())\nc=int(input())\nd=int(input())\ne=int(input())\nf=int(input())\nk=int(input())\n\nif b-a>k or c-b>k or d-c>k or e-d>k or f-e>k:\n print(':(')\nelse:\n print('Yay!')\n \n\n", "a=int(input())\nb=int(input())\nc=int(input())\nd=int(input())\ne=int(input())\nk=int(input())\n\nif b...
['Runtime Error', 'Runtime Error', 'Accepted']
['s176045943', 's436085964', 's306935892']
[3060.0, 3060.0, 3060.0]
[17.0, 23.0, 18.0]
[198, 183, 183]
p03075
u959421160
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
["inpl = []\ninpl.append(int(input()))\ninpl.append(int(input()))\ninpl.append(int(input()))\ninpl.append(int(input()))\ninpl.append(int(input()))\nd = int(input())\nprint(max(inpl),min(inpl))\nprint(':(' if d < (max(inpl) - min(inpl)) else 'Yay!')", "inpl = []\ninpl.append(int(input()))\ninpl.append(int(input()))\ninp...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s287143420', 's407282808', 's540948502', 's630892349']
[3064.0, 3060.0, 3060.0, 3060.0]
[17.0, 17.0, 17.0, 18.0]
[238, 244, 209, 211]
p03075
u961916328
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['list = []\nfor i in range(5):\n list.append(int(input()))\nif list[4]-list[0] < int(input()):\n print(":(")\nelse:\n print("Yay!")', 'list1 = []\nfor i in range(5):\n list1.append(int(input()))\n\nif list1[4] - list1[0] > int(input()):\n print(":(")\nelse:\n print("Yay!")']
['Wrong Answer', 'Accepted']
['s386843864', 's693780154']
[2940.0, 2940.0]
[17.0, 17.0]
[127, 134]
p03075
u962942039
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['antenna = []\nfor i in range(5):\n antenna.append(int(input()))\nk = int(input())\nif k < max(antenna) - min(antenna):\n print("Yay!")\nelse:\n print(":(")', 'antenna = []\nfor i in range(5):\n antenna[i] = int(input())\nk = int(input())\nif k < max(antenna) - min(antenna):\n print("Yay!")\nelse:\n print(":(")'...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s151808683', 's376132245', 's595726186']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[151, 148, 152]
p03075
u965602776
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['A = [int(input()) for _ in range(6)]\nm = min(A[1:])\nprint(4+(A[0]+m-1)//m)', 'A = [int(input()) for _ in range(6)]\nprint([":(", "Yay!"][A[4]-A[0] <= A[5]])']
['Wrong Answer', 'Accepted']
['s219087091', 's562186039']
[2940.0, 2940.0]
[17.0, 18.0]
[74, 77]
p03075
u966695411
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
["a,*_,e,k=[int(input())for x in' '*6];print([':(','Yey!'][e-a<=k])", "a,*_,e,k=map(int,input(input().split()));print([':(','Yey!'][e-a<=k])", "a,*_,e,k=[int(input())for x in' '*6];print(['Yay!',':('][e-a>k])"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s764108019', 's795812435', 's613131068']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[65, 69, 64]
p03075
u967835038
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['n=int(input())\nmath inport ceil\na=[]\nfor i in range(5):\n a.append(int(input()))\nprint(ceil(n/min(a))+4)\n', "a=int(input())\nb=int(input())\nc=int(input())\nd=int(input())\ne=int(input())\nk=int(input())\nif b-a<=k and c-a<=k and d-a<=k and e-a<=k and c-b<=k and d-b<=k and e-b<=k and d-c<=k and e-c<=k and e-d<=...
['Runtime Error', 'Accepted']
['s538946196', 's915606566']
[2940.0, 3064.0]
[17.0, 17.0]
[105, 235]
p03075
u968166680
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
["import sys\n\nread = sys.stdin.read\nreadline = sys.stdin.readline\nreadlines = sys.stdin.readlines\nsys.setrecursionlimit(10 ** 9)\nINF = 1 << 60\nMOD = 1000000007\n\n\ndef main():\n A, B, C, D, E = map(int, readline().split())\n\n if E - A > K:\n print(':(')\n else:\n print('Yay!')\n\n ret...
['Runtime Error', 'Accepted']
['s121503087', 's921891342']
[9108.0, 9072.0]
[19.0, 28.0]
[344, 343]
p03075
u969190727
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['n,a,b,c,d,e=[int(input()) for i in range(6)]\ndist=[n,0,0,0,0,0]\nmove=[a,b,c,d,e,0]\nt=0\nwhile dist[5]<n:\n dist_t=[max(0,dist[0]-move[0])]\n for j in range(1,6):\n dist_t.append(max(0,dist[j]-move[j])+min(dist[j-1],move[j-1]))\n t=t+1\n dist=dist_t\nprint(t)\n \n', 'a,b,c,d,e,k=[int(input()) for i in ran...
['Wrong Answer', 'Accepted']
['s512103501', 's775538785']
[3064.0, 2940.0]
[17.0, 17.0]
[264, 95]
p03075
u969848070
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
["a = [input() for x in range(5)]\nk = int(input())\n\nif a[4] - a[0] > k:\n print(':(')\nelse:\n print('Yay!')\n\n", "a = [int(input()) for x in range(5)]\nk = int(input())\n \nif a[4] - a[0] > k:\n print(':(')\nelse:\n print('Yay!')"]
['Runtime Error', 'Accepted']
['s518555531', 's329947945']
[2940.0, 2940.0]
[17.0, 17.0]
[107, 111]
p03075
u970197315
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
["a = int(input())\nb = int(input())\nc = int(input())\nd = int(input())\ne = int(input())\nk = int(input())\n\nL = []\ncnt = 0\n\nab = abs(a-b)\nac = abs(a-c)\nad = abs(a-d)\nae = abs(a-e)\nbc = abs(b-c)\nbd = abs(b-d)\nbe = abs(b-e)\ncd = abs(c-d)\nce = abs(c-e)\nde = abs(d-e)\n\nL.append(ab)\nL.append(ac)\nL.append(...
['Wrong Answer', 'Accepted']
['s320265606', 's723592050']
[3064.0, 3188.0]
[17.0, 20.0]
[538, 528]
p03075
u972658925
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
["lst = []\nfor i in range(5):\n s=input()\n lst[i]=s\nk = int(input())\n\nc=0\nfor j in range(4):\n lgth=abs(lst[j]-lst[j+1])\n if lgth>k:\n print(':(')\n elif k=3 and lgth<=k:\n print('Yay!')", "lst = []\nfor i in range(5):\n s=input()\n lst[i]=s\nk = int(input())\n\nc=0\nfor j in r...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s487703830', 's536105025', 's792071035', 's859419275']
[2940.0, 3060.0, 3060.0, 3064.0]
[17.0, 17.0, 17.0, 17.0]
[208, 209, 215, 312]
p03075
u972892985
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['x = [int(input()) for i in range(5)]\nk = int(input())\n\nfor i in range(4):\n for _ in range(1,5):\n if abs(x[i] - x[_]) > k:\n print(":(")\n exit()\n print("Yay!")\n', 'x = [int(input()) for i in range(5)]\nk = int(input())\n\nfor i in range(4):\n for _ in range(1,5):\n if abs(x[i] - x[_]) > k:\n...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s000666425', 's284967192', 's496222343', 's499498721', 's512382239', 's547798053', 's703964261', 's821267861']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[173, 177, 172, 168, 165, 177, 172, 171]
p03075
u973013625
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
["a, b, c, d, e, k = (int(input()) for _ in range(6))\nprint('Yey!' if abs(a-e) <= k else ':(')", "a, b, c, d, e, k = (int(input()) for _ in range(6))\nprint('Yay!' if abs(a-e) <= k else ':(')"]
['Wrong Answer', 'Accepted']
['s798608094', 's275298508']
[2940.0, 2940.0]
[17.0, 17.0]
[92, 92]
p03075
u977193988
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['import math\n\nA=int(input())\nB=int(input())\nC=int(input())\nD=int(input())\nE=int(input())\n\na=math.ceil(A/10)\nb=math.ceil(B/10)\nc=math.ceil(C/10)\nd=math.ceil(D/10)\ne=math.ceil(E/10)\n\nloss=max(a-A/10,b-B/10,c-C-10,d-D/10,e-E/10)\n\ntime=a+b+c+d+e-loss\n\nprint(int(time*10))', "a=int(input())\nb=int(input())...
['Wrong Answer', 'Accepted']
['s805025221', 's450555738']
[3064.0, 3060.0]
[17.0, 18.0]
[266, 141]
p03075
u979060189
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
["spot = [int(input()) for i in range(5)]\nk = int(input())\n\nD = True\n\nfor i in range(len(spot)):\n for j in range(i+1, len(spot)):\n if j-i > k:\n D = False\n\nif D:\n print('Yay')\nelse:\n print(':(')", "spot = [int(input()) for i in range(5)]\nk = int(input())\n\nD = True\n\nfor i in r...
['Wrong Answer', 'Accepted']
['s193842882', 's760775714']
[3060.0, 3060.0]
[17.0, 18.0]
[218, 233]
p03075
u979362546
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['a = int(input())\nb = int(input())\nc = int(input())\nd = int(input())\ne = int(input())\nk = int(input())\nif e-a>k or d=a>k or c-a>k or b-a>k:\n print(":(")\nelse:\n print("Yay!")', 'a = int(input())\nb = int(input())\nc = int(input())\nd = int(input())\ne = int(input())\nk = int(input())\nif e-a>k:\n prin...
['Runtime Error', 'Accepted']
['s420473404', 's871016104']
[2940.0, 3064.0]
[17.0, 17.0]
[178, 268]
p03075
u980783809
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
["aas = [int(input()) for _ in range(5)]\nk = int(input())\nfor i in range(1,5):\n if aas[i]-aas[i-1]>k:\n print(':(')\n exit()\nprint('Yay!)", "aas = [int(input()) for _ in range(5)]\nk = int(input())\nprint('Yay!' if max(aas)-min(aas)<=k else ':(')"]
['Runtime Error', 'Accepted']
['s922079902', 's767172348']
[8836.0, 8876.0]
[25.0, 22.0]
[140, 103]
p03075
u982594421
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
["import itertools\na = []\nfor _ in range(5):\n a.append(int(input()))\nk = int(input())\ncombs = itertools.combinations(a, 2)\nl = [(n,m) for (n, m) in combs if m - n > k]\nif len(l) == 0:\n print(':(')\nelse:\n print('Yay!')", "import itertools\na = []\nfor _ in range(5):\n a.append(int(input()))\nk = int(input(...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s415979122', 's680286340', 's124774317']
[3060.0, 3060.0, 2940.0]
[18.0, 17.0, 17.0]
[218, 221, 125]
p03075
u984276646
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['a = int(input())\nb = int(input())\nc = int(input())\nd = int(input())\ne = int(input())\nk = int(input())\nif e - a <= k:\n print(":(")\nelse:\n print("Yay!")', 'a = int(input())\nb = int(input())\nc = int(input())\nd = int(input())\ne = int(input())\nk = int(input())\nif e - a > k:\n print(":(")\nelse:\n print(...
['Wrong Answer', 'Accepted']
['s763417994', 's150864386']
[3060.0, 2940.0]
[17.0, 17.0]
[152, 152]
p03075
u989157442
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['15\n18\n26\n35\n36\n18', "from itertools import combinations\na = [int(input()) for _ in range(5)]\nk = int(input())\nfor b in combinations(a, 2):\n if abs(b[0]-b[1]) > k:\n exit(print(':('))\nprint('Yay!')\n"]
['Wrong Answer', 'Accepted']
['s440035165', 's174523356']
[2940.0, 3060.0]
[17.0, 17.0]
[17, 185]
p03075
u992910889
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['import math\n\na = int(input())\nb = int(input())\nc = int(input())\nd = int(input())\ne = int(input())\naa = math.ceil(a/10)*10\nbb = math.ceil(b/10)*10\ncc = math.ceil(c/10)*10\ndd = math.ceil(d/10)*10\nee = math.ceil(e/10)*10\nlista = [a, bb, cc, dd, ee]\nlistb = [aa, b, cc, dd, ee]\nlistc = [aa, bb, c, dd, ee]\nl...
['Wrong Answer', 'Accepted']
['s211452744', 's732323051']
[3064.0, 3060.0]
[17.0, 17.0]
[491, 287]
p03075
u993310962
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
["a=int(input())\nb=int(input())\nc=int(input())\nd=int(input())\ne=int(input())\nk=int(input())\nif abs(e-a)<=k:\n print('Yey!')\nelse:\n print(':(')", "a=int(input())\nb=int(input())\nc=int(input())\nd=int(input())\ne=int(input())\nk=int(input())\nif (e-a)<=k:\n print('Yey!')\nelse:\n print(':(')", "a=int...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s410072751', 's637557568', 's867966625']
[3060.0, 3060.0, 3060.0]
[17.0, 17.0, 17.0]
[145, 142, 145]
p03075
u997113115
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['K = int(input().split()[3])\nA = sorted(list(map(int, input().split())), reverse=True)\nB = sorted(list(map(int, input().split())), reverse=True)\nC = sorted(list(map(int, input().split())), reverse=True)\n\nans = []\nfor i in range(len(A)):\n for j in range(len(B)):\n if (i+1) * (j+1) > K:\n bre...
['Runtime Error', 'Accepted']
['s555529115', 's365017516']
[3064.0, 2940.0]
[17.0, 20.0]
[504, 136]
p03075
u997393081
2,000
1,048,576
In AtCoder city, there are five antennas standing in a straight line. They are called Antenna A, B, C, D and E from west to east, and their coordinates are a, b, c, d and e, respectively. Two antennas can communicate directly if the distance between them is k or less, and they cannot if the distance is greater than k...
['a=int(input())\nb=int(input())\nc=int(input())\nd=int(input())\ne=int(input())\nk=int(input())\n\nif k>b-a:\n print(":(")\nelif k> c-a:\n print(":(")\nelif k> d-a:\n print(":(")\nelif k> e-a:\n print(":(")\nelif k> c-b:\n print(":(")\nelif k> d-b:\n print(":(")\nelif k> e-b:\n print(":(")\nelif k> d-c:\n prin...
['Wrong Answer', 'Accepted']
['s617857072', 's666883881']
[3064.0, 2940.0]
[18.0, 17.0]
[379, 92]
p03076
u000349418
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['a = int(input())\na1 = a%5\na2 = a + (5-a1)%5\nb = int(input())\nb1=b%5\nb2 = b + (5-b1)%5\nc = int(input())\nc1=c%5\nc2 = c + (5-c1)%5\nd = int(input())\nd1=d%5\nd2 = d + (5-d1)%5\ne = int(input())\ne2 = e + (5-e1)%5\nif min(a1,b1,c1,d1,e1) == 0:\n ans = sum(a2,b2,c2,d2,e2)\nelse:\n ans = sum(a2,b2,c2,d2,e2) -...
['Runtime Error', 'Runtime Error', 'Accepted']
['s012302439', 's293984452', 's826980605']
[3064.0, 3064.0, 3064.0]
[17.0, 18.0, 17.0]
[334, 341, 487]
p03076
u002459665
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['import math\n\nF = []\nfor i in range(5):\n F.append(int(input()))\n# print(F)\nx = F[0] % 10\nxi = 0\nfor i, fi in enumerate(F):\n y = fi % 10\n if y < x:\n x = y\n xi = i\n\nans = 0\nfor i, fi in enumerate(F):\n if i == xi:\n continue\n \n ans += (math.ceil(fi / 10)) * 10\n\na...
['Wrong Answer', 'Accepted']
['s201604533', 's516498735']
[3060.0, 3064.0]
[18.0, 17.0]
[342, 564]
p03076
u003928116
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['list=[]\nans=10\nsum=0\nfor i in range(5):\n list.append(int(input()))\nfor i in range(5):\n if list[i]%10<ans and list[i]%10!=0:\n ans=list[i]%10\nfor j in range(5):\n if list[j]%10!=0:\n sum+=list[j]+(10-list[j]%10)\n else:\n sum+=list[j]\n print(sum)\nprint(sum-(10-ans))', 'list...
['Wrong Answer', 'Accepted']
['s761227268', 's499348946']
[3064.0, 3064.0]
[17.0, 17.0]
[296, 281]
p03076
u010069411
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['a=[]\nfor _ in range(5):\n a.append(int(input()))\n\n#a = [ 29 ,20 ,7 ,35 ,120 ]\n#a = [ 101 ,86 ,119 ,108 ,57 ]\n\ndef ofooo(n):\n return int(round(n+5.1, -1))\n\nm=0\nres = 0\nfor n in a:\n aa = ofooo(n)\n res += aa\n if m < aa-n:\n m = aa-n\nprint(res - m)\n', 'a=[]\nfor _ in range(5):\n a...
['Wrong Answer', 'Accepted']
['s618252369', 's775365009']
[3060.0, 3060.0]
[18.0, 18.0]
[265, 321]
p03076
u013605408
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['A = [int(input()) for i in range(5)]\nj = []\nfor i in A:\n c = 0\n while i >= c:\n c += 10\n j.append(c-i)\nind = [j.index(i) for i in sorted(j)]\ntime = A[ind[-1]]\nd = 0\nfor i in sorted(j):\n if d==4: break\n c = 0\n while A[j.index(i)] >= 10:\n c += 10\n time += c\n d += 1\nprint(time)', 'a = [int(...
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s111630374', 's125589494', 's150575708', 's841657299']
[3064.0, 3060.0, 3056.0, 3060.0]
[2104.0, 18.0, 17.0, 17.0]
[288, 142, 149, 151]
p03076
u013629972
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['import math, string, itertools, fractions, heapq, collections, re, array, bisect, sys, random, time, copy, functools\nsys.setrecursionlimit(10**7)\ninf = 10 ** 20\neps = 1.0 / 10**10\nmod = 10**9+7\ndd = [(-1, 0), (0, 1), (1, 0), (0, -1)]\nddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1)]\...
['Runtime Error', 'Runtime Error', 'Accepted']
['s159926786', 's222950044', 's508843565']
[3064.0, 7120.0, 5464.0]
[18.0, 79.0, 43.0]
[987, 988, 999]
p03076
u016881126
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['import sys\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\nread = sys.stdin.buffer.read\nsys.setrecursionlimit(10 ** 7)\nINF = float(\'inf\')\n\nL = list(map(int, read().decode("utf-8").split()))\n\nlast_ = L[0] % 10\nlast_index = 0\nfor i, t in enumerate(L):\n if 0 < t % 10 < last_:...
['Wrong Answer', 'Accepted']
['s813077371', 's673998676']
[9208.0, 9092.0]
[32.0, 30.0]
[547, 510]
p03076
u023229441
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['A=[int(input()) for i in range(5)]\nB=[10 if A[i]%10==0 else A[i]%10 for i in range(5)]\nk=B.index(min(B))\nC=[A[i]//10*10+10 for i in range(5)]\nprint(sum(C)-C[k]+A[k])', 'A=[int(input()) for i in range(5)]\nB=[10 if A[i]%10==0 else A[i]%10 for i in range(5)]\nk=B.index(min(B))\nC=[(A[i]-0.001)//10*10+10 for i in ra...
['Wrong Answer', 'Accepted']
['s360938096', 's875704031']
[3060.0, 3060.0]
[17.0, 17.0]
[165, 179]
p03076
u023958502
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['time = [int(input()) for i in range(5)]\nten_time = 0\nsmallest_mod = 9\nfor i in range(5):\n div,mod = divmod(time[i],10)\n if mod < smallest_mod:\n smallest_mod = mod\n if mod != 0:\n ten_time += div + 1\n else:ten_time += div\nprint(ten_time * 10 - 10 + smallest_mod)', 'time = [int(input(...
['Wrong Answer', 'Accepted']
['s406258351', 's834649035']
[3060.0, 3060.0]
[17.0, 17.0]
[286, 291]
p03076
u024245528
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['import math\n\nlist_aaa =[int(input()) for i in range(5)]\n\nketa_1 = []\n\ndef roundup(arg_num):\n return math.ceil(arg_num/10)*10\n\nfor i in range(5):\n keta_1.append(str(list_aaa[i])[-1:])\naaa_index = (keta_1.index(min(keta_1,key= lambda x: int(x)<=0)))\n#print(keta_1)\n#print(aaa_index)\n\naaa =list_aaa.p...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s592873021', 's763474673', 's489574576']
[3064.0, 3064.0, 3064.0]
[17.0, 18.0, 18.0]
[464, 301, 538]
p03076
u024782094
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['l=[int(input()) for i in range(5)]\nans=0\nfor i in range(5):\n ans+=(l[i]//10+1)*10\n l[i]=l[i]%10\nprint(ans+min(l)-10)', 'l=[int(input()) for i in range(5)]\nans=0\nm=[0]*5\ncount=0\nfor i in range(5):\n m[i]=l[i]%10\nfor i in range(5):\n if count==0 and l[i]%10==min(m):\n ans+=l[i]\n count+=1\n else:\n...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s432021946', 's686183567', 's000935303']
[2940.0, 3064.0, 3060.0]
[17.0, 17.0, 19.0]
[118, 219, 221]
p03076
u026862065
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['import itertools\n\nl = [int(input()) for i in range(5)]\nl2 = list(itertools.permutations(l))\nmin = float("INF")\nfor i in range(120):\n ans = 0\n for j in range(4):\n if l2[i][j] % 10 == 0:\n ans += l2[i][j]\n else:\n ans += (l2[i][j] // 10 + 1) * 10\n ans += l2[i][4]\n...
['Wrong Answer', 'Accepted']
['s398519067', 's012366907']
[3064.0, 3064.0]
[18.0, 18.0]
[352, 352]
p03076
u030649913
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['A = int(input())\nB = int(input())\nC = int(input())\nD = int(input())\nE = int(input())\n\nall_list = [A, B, C, D, E]\namari = [A%10, B%10, C%10, D%10, E%10]\namari = [ 10 if i == 0 else i for i in amari]\nmin_index = amari.index(min(amari))\namari = [ 0 if i == 10 else i for i in amari]\ngoukei = 0\nfor i, one in e...
['Wrong Answer', 'Accepted']
['s016101690', 's867429269']
[3064.0, 3064.0]
[17.0, 18.0]
[509, 495]
p03076
u031598803
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['import math\n\nn = int(input())\na = int(input())\nb = int(input())\nc = int(input())\nd = int(input())\ne = int(input())\n\n# print(n)\n\n# array = [a, b, c, d, e]\n\ni = 5\nif n <= a:\n if a <= b:\n if b <= c:\n if c <= d:\n if d <= e:\n pass\n e...
['Runtime Error', 'Accepted']
['s286938317', 's200522409']
[3064.0, 3064.0]
[18.0, 17.0]
[813, 885]
p03076
u033524082
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['l=[]\nfor i in range(5):\n l.append(int(input()))\nindexn=10\nindx=0\nfor v in range(5):\n if l[v]%10==0:\n pass\n else:\n if l[v]%10<indexn:\n indexn=l[v]%10\n indx=v\nfor k in range(5):\n if k!=indx:\n l[v]=((l[v]-1)//10+1)*10\n else:\n \nprint(sum(l)...
['Runtime Error', 'Accepted']
['s472777009', 's489753008']
[3064.0, 3064.0]
[17.0, 17.0]
[302, 282]
p03076
u033606236
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['a = [ int(input()) for _ in range(5)]\nn = float("inf")\nfor i in range(5):\n if 0 < a[i] % 2 < 10:\n n = min(n,a[i] % 10)\n print(n)\nelse:\n if n == float("inf"):\n n = 0\nprint(sum([(-a[i]//10)*-10 for i in range(5)]) -(10-n))', 'a = [int(input()) for _ in range(5)]\nb = 10-min([a[i]%10 ...
['Wrong Answer', 'Accepted']
['s391401899', 's875132043']
[3064.0, 3060.0]
[17.0, 17.0]
[247, 151]
p03076
u035268040
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['arr = []\nfor i in range(5):\n arr.append(int(input()))\nindex = 0\nrem_arr = []\nfor i in arr:\n time = i % 10\n if time == 0:\n time += 9\n rem_arr.append(time)\nlast_index = min(enumerate(rem_arr), key=lambda x: x[1])[0]\nlast = arr[last_index]\narr.pop(last_index)\ntotal = 0\nfor i in arr:\n ...
['Wrong Answer', 'Accepted']
['s013493760', 's007340382']
[3064.0, 3064.0]
[17.0, 17.0]
[407, 412]
p03076
u035605655
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['import itertools\nargs = []\nfor _ in range(5):\n tmp = int(input())\n args.append(tmp)\nbest = 643\nfor perm in itertools.permutations(args):\n remainder = 0\n cook = 0\n for t in perm:\n cook += t\n remainder += 10 - cook % 10\n else :\n remainder -= 10 - cook % 10\n cook +...
['Wrong Answer', 'Accepted']
['s021397180', 's990790843']
[3060.0, 3060.0]
[18.0, 18.0]
[368, 390]
p03076
u036363750
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['a = int(input())\nb = int(input())\nc = int(input())\nd = int(input())\ne = int(input())\n\nmi = 999\nar = a % 10\nif ar > 0 and ar < mi:\n mi = ar\nbr = b % 10\nif br > 0 and br < mi:\n mi = br\ncr = c % 10\nif cr > 0 and cr < mi:\n mi = cr\ndr = d % 10\nif dr > 0 and dr < mi:\n mi = dr\ner = e % 10\nif er > 0 a...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s296124677', 's987666220', 's601927756']
[3064.0, 3064.0, 3064.0]
[17.0, 17.0, 19.0]
[532, 511, 589]
p03076
u037098269
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['li = []\nl = []\nfor i in range(5):\n a = int(input())\n li.append(a)\n l.append(a%10)\nind = l.index(min(l))\nans = 0\nfor i in range(5):\n if i != ind:\n ans += (li[i] + 10- l[i]) \nprint(ans+li[ind]) ', 'li = []\nl = []\nfor i in range(5):\n a = int(input())\n li.append(a)\n ...
['Wrong Answer', 'Accepted']
['s672564986', 's013562753']
[3064.0, 3064.0]
[17.0, 17.0]
[224, 342]
p03076
u037221289
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['N = sorted([(input())for i in range(5)],key=lambda x:x[-1])\nS = list(map(int,N))\nprint(S)\n\nnum = 0\nkey = 0\nfor x in S:\n if x % 10 == 0:\n num += x\n elif key == 0 and x % 10 != 0:\n num += x \n key = 1\n else:\n num += x + 10 - int(str(x)[-1])\nprint(num) ', 'import math\nS = [input() for i in r...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s275487090', 's621597221', 's585577329']
[3064.0, 3064.0, 3068.0]
[18.0, 17.0, 17.0]
[277, 355, 268]
p03076
u038450469
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['a = [int(input()) for i in range(5)]\nb =[]\nc = []\nch = False\nt = 0\nfor i in a:\n if ch == False and i % 10 != 0 and i % 10 <= 5:\n t += i\n print(i)\n ch = True\n elif i % 10 == 0:\n t += i\n else:\n t += (int(i/10) + 1)*10\nprint(t)', 'A = [int(input()) for i in range...
['Wrong Answer', 'Accepted']
['s913026792', 's256048375']
[3060.0, 3060.0]
[17.0, 17.0]
[268, 150]
p03076
u039860745
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['import math\nA = int(input())\nB = int(input())\nC = int(input())\nD = int(input())\nE = int(input())\n\ndef roundup(n):\n return int(math.ceil(n /10)) * 10\ndef get_digit(number):\n return number % 10 \ns = 0\nm = []\nli = [A, B, C, D, E]\nfor i in range(len(li)):\n if get_digit(li[i]) >= 1:\n m.ap...
['Wrong Answer', 'Accepted']
['s079483396', 's088038547']
[9140.0, 9048.0]
[25.0, 28.0]
[609, 611]
p03076
u043236471
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
["import itertools\n\nA = int(input())\nB = int(input())\nC = int(input())\nD = int(input())\nE = int(input())\narray = [A, B, C, D, E]\nmin_time= float('inf')\n\nfor i in list(itertools.permutations(array)):\n tmp = i[0] + (10 - i[0]%10)\n tmp += i[1] + (10 - i[1]%10)\n tmp += i[2] + (10 - i[2]%10)\n tmp +...
['Wrong Answer', 'Accepted']
['s550979361', 's817541091']
[3064.0, 3064.0]
[17.0, 18.0]
[403, 512]
p03076
u044635590
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['a = []\nb = []\nfor i in range(5):\n n = int(input())\n b.append(n % 10)\n while n % 10 != 0:\n n = n + 1\n a.append(n)\n\nif min(b) == 0:\n print(a[0] + a[1] + a[2] + a[3] + a[4])\nelse:\n print(a[0] + a[1] + a[2] + a[3] + a[4] - 10 + min(b))', 'a = []\nb = []\nfor i in range(5):\n n = in...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s418405601', 's434280760', 's558122734']
[3064.0, 3064.0, 3060.0]
[17.0, 18.0, 17.0]
[256, 256, 241]
p03076
u048034149
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['a = int(input())\nb = int(input())\nc = int(input())\nd = int(input())\ne = int(input())\n\nmenu = [a, b, c, d, e]\n\ntime = 0\ncount = 0\nfor i in range(5):\n if menu[i] % 10 == 0:\n tmp = menu[count]\n menu[count] = menu[i]\n menu[i] = tmp\n count += 1\n \n\nwhile True:\n ...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s375584212', 's493233502', 's583212141', 's993177295']
[3064.0, 3064.0, 3064.0, 3060.0]
[17.0, 18.0, 17.0, 17.0]
[644, 608, 695, 407]
p03076
u053856575
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['import math\n\na=int(input())\nb=int(input())\nc=int(input())\nd=int(input())\ne=int(input())\n\nA=B=C=D=E=11\n\nif a%10!=0:\n A=a%10\nif b%10!=0:\n B=b%10\nif c%10!=0:\n C=c%10\nif d%10!=0:\n D=d%10\nif e%10!=0:\n E=e%10\n\nk=min(A,B,C,D,E)\nif A=B=C=D=E=0:\n k=10\nsum=(math.ceil(a/10)*10+math.ceil(b/10)*10+ma...
['Runtime Error', 'Accepted']
['s335897022', 's914208403']
[3064.0, 3064.0]
[18.0, 17.0]
[366, 261]
p03076
u054825571
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['import math\nans=0\nA=[int(input()) for i in range(5)]\na=10\nfor i in range(5):\n if a>A[i]:\n p=i\n a=A[i]\nfor i in range(5):\n if i==p:\n ans+=A[i]\n else:\n ans+=10*(math.ceil(A[i]/10))\nprint(ans)', 'import math\nans=0\nA=[int(input()) for i in range(5)]\na=0\nfor i in range(5):\n if (A[i]%10)>a...
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s003603895', 's046108820', 's056653971', 's452959354', 's905872068']
[9168.0, 9200.0, 9004.0, 9196.0, 9204.0]
[26.0, 29.0, 27.0, 26.0, 25.0]
[204, 208, 209, 212, 231]
p03076
u056544471
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['import numpy as np\nA=int(input())\nB=int(input())\nC=int(input())\nD=int(input())\nE=int(input())\n\norder_time = [A,B,C,D,E]\nelapsed_time=0\nextra = []\nfor i in order_time:\n ex = i%10\n extra.append(ex)\nseiri = np.vstack((order_time,extra))\nsort = np.sort(seiri)[:,::-1]\nsort1 = sort[0]\nsort2 =sort[1]\n...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s218231606', 's356292287', 's539229944', 's685487964', 's881135556', 's984161158', 's956369970']
[12504.0, 12492.0, 12504.0, 13792.0, 12500.0, 12504.0, 3064.0]
[149.0, 149.0, 152.0, 150.0, 149.0, 148.0, 17.0]
[454, 452, 462, 454, 486, 462, 483]
p03076
u057415180
2,000
1,048,576
The restaurant AtCoder serves the following five dishes: * ABC Don (rice bowl): takes A minutes to serve. * ARC Curry: takes B minutes to serve. * AGC Pasta: takes C minutes to serve. * APC Ramen: takes D minutes to serve. * ATC Hanbagu (hamburger patty): takes E minutes to serve. Here, the time to serve a ...
['ae = [int(input()) for i in range(5)]\n\nmm = ae[0]%10\nfor i in range(5):\n mm = min(mm, ae[i]%10)\n ae[i] = ((ae[i]//10)+1)*10\n\nprint(sum(ae)-(10-mm))', 'ae = [int(input()) for _ in range(5)]\n\nnxt_time = [0]*n\nfor i in range(n):\n if ae[i] % 10 == 0:\n nxt_time[i] = ae[i]\n else:\n nx...
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s010848499', 's268321932', 's386530988', 's556515204', 's840871536', 's135968772']
[3060.0, 3064.0, 3060.0, 3060.0, 3064.0, 3060.0]
[17.0, 18.0, 18.0, 17.0, 17.0, 18.0]
[153, 462, 219, 193, 724, 271]